From 46f8eb58c1901ec6ae626c69798feff26ebda73a Mon Sep 17 00:00:00 2001 From: Tessa Kelly Date: Tue, 17 Mar 2020 11:28:08 -0700 Subject: [PATCH] :skull: remove update script that didn't render well on the package site --- src/Nri/Ui/BannerAlert/V6.elm | 143 ---------------------------------- 1 file changed, 143 deletions(-) diff --git a/src/Nri/Ui/BannerAlert/V6.elm b/src/Nri/Ui/BannerAlert/V6.elm index 0c5fe5c7..93b0d0fa 100644 --- a/src/Nri/Ui/BannerAlert/V6.elm +++ b/src/Nri/Ui/BannerAlert/V6.elm @@ -13,149 +13,6 @@ Changes from V5: - takes HTML rather than BannerContent -
-elm-refactor upgrade script - - import Css - import Html.Styled as Html - import Html.Styled.Attributes as Attributes - import Nri.Ui.BannerAlert.V6 as BannerAlert - import Nri.Ui.Fonts.V1 as Fonts - - upgrade_Nri_Ui_BannerAlert_V5_alert bannerContent maybeMsg = - BannerAlert.alert - (case bannerContent of - Nri.Ui.BannerAlert.V5.Plain string -> - [ Html.text string ] - - Nri.Ui.BannerAlert.V5.WithLink { target, prefixText, linkUrl, postfixText, linkText } -> - [ Html.div - [ Attributes.css - [ Css.fontSize (Css.px 20) - , Css.fontWeight (Css.int 700) - , Css.lineHeight (Css.px 25) - , Css.maxWidth (Css.px 600) - , Fonts.baseFont - ] - ] - [ Html.text prefixText - , Html.a - [ Attributes.href linkUrl - , case target of - Nri.Ui.BannerAlert.V5.Blank -> - Attributes.target "_blank" - - Nri.Ui.BannerAlert.V5.Self -> - Attributes.target "_self" - ] - [ Html.text linkText ] - , Html.text postfixText - ] - ] - ) - maybeMsg - - upgrade_Nri_Ui_BannerAlert_V5_error bannerContent maybeMsg = - BannerAlert.error - (case bannerContent of - Nri.Ui.BannerAlert.V5.Plain string -> - [ Html.text string ] - - Nri.Ui.BannerAlert.V5.WithLink { target, prefixText, linkUrl, postfixText, linkText } -> - [ Html.div - [ Attributes.css - [ Css.fontSize (Css.px 20) - , Css.fontWeight (Css.int 700) - , Css.lineHeight (Css.px 25) - , Css.maxWidth (Css.px 600) - , Fonts.baseFont - ] - ] - [ Html.text prefixText - , Html.a - [ Attributes.href linkUrl - , case target of - Nri.Ui.BannerAlert.V5.Blank -> - Attributes.target "_blank" - - Nri.Ui.BannerAlert.V5.Self -> - Attributes.target "_self" - ] - [ Html.text linkText ] - , Html.text postfixText - ] - ] - ) - maybeMsg - - upgrade_Nri_Ui_BannerAlert_V5_neutral bannerContent maybeMsg = - BannerAlert.neutral - (case bannerContent of - Nri.Ui.BannerAlert.V5.Plain string -> - [ Html.text string ] - - Nri.Ui.BannerAlert.V5.WithLink { target, prefixText, linkUrl, postfixText, linkText } -> - [ Html.div - [ Attributes.css - [ Css.fontSize (Css.px 20) - , Css.fontWeight (Css.int 700) - , Css.lineHeight (Css.px 25) - , Css.maxWidth (Css.px 600) - , Fonts.baseFont - ] - ] - [ Html.text prefixText - , Html.a - [ Attributes.href linkUrl - , case target of - Nri.Ui.BannerAlert.V5.Blank -> - Attributes.target "_blank" - - Nri.Ui.BannerAlert.V5.Self -> - Attributes.target "_self" - ] - [ Html.text linkText ] - , Html.text postfixText - ] - ] - ) - maybeMsg - - upgrade_Nri_Ui_BannerAlert_V5_success bannerContent maybeMsg = - BannerAlert.success - (case bannerContent of - Nri.Ui.BannerAlert.V5.Plain string -> - [ Html.text string ] - - Nri.Ui.BannerAlert.V5.WithLink { target, prefixText, linkUrl, postfixText, linkText } -> - [ Html.div - [ Attributes.css - [ Css.fontSize (Css.px 20) - , Css.fontWeight (Css.int 700) - , Css.lineHeight (Css.px 25) - , Css.maxWidth (Css.px 600) - , Fonts.baseFont - ] - ] - [ Html.text prefixText - , Html.a - [ Attributes.href linkUrl - , case target of - Nri.Ui.BannerAlert.V5.Blank -> - Attributes.target "_blank" - - Nri.Ui.BannerAlert.V5.Self -> - Attributes.target "_self" - ] - [ Html.text linkText ] - , Html.text postfixText - ] - ] - ) - maybeMsg - -
- -} import Accessibility.Styled as Html exposing (Html)