Use Modal.V12

This commit is contained in:
Tessa Kelly 2023-08-31 10:19:18 -06:00
parent 2fc9204f19
commit dccfeb5f7e
9 changed files with 12 additions and 6 deletions

View File

@ -26,7 +26,7 @@ import Nri.Ui.ClickableText.V3 as ClickableText
import Nri.Ui.Colors.Extra
import Nri.Ui.Colors.V1 as Colors
import Nri.Ui.Fonts.V1 as Fonts
import Nri.Ui.Modal.V11 as Modal
import Nri.Ui.Modal.V12 as Modal
import Nri.Ui.Text.V6 as Text
import Nri.Ui.UiIcon.V1 as UiIcon
import Task

View File

@ -30,7 +30,7 @@ import Nri.Ui.Colors.V1 as Colors
import Nri.Ui.Data.PremiumDisplay as PremiumDisplay
import Nri.Ui.Heading.V3 as Heading
import Nri.Ui.Message.V4 as Message
import Nri.Ui.Modal.V11 as Modal
import Nri.Ui.Modal.V12 as Modal
import Nri.Ui.RadioButton.V4 as RadioButton
import Nri.Ui.Text.V6 as Text
import Routes

View File

@ -6,6 +6,7 @@ Nri.Ui.Mark.V2,upgrade to V5
Nri.Ui.Mark.V3,upgrade to V5
Nri.Ui.Mark.V4,upgrade to V5
Nri.Ui.Message.V3,upgrade to V4
Nri.Ui.Modal.V11,upgrade to V12
Nri.Ui.SideNav.V4,upgrade to V5
Nri.Ui.Switch.V2,upgrade to V3
Nri.Ui.Table.V6,upgrade to V7

1 Nri.Ui.Block.V4 upgrade to V6
6 Nri.Ui.Mark.V3 upgrade to V5
7 Nri.Ui.Mark.V4 upgrade to V5
8 Nri.Ui.Message.V3 upgrade to V4
9 Nri.Ui.Modal.V11 upgrade to V12
10 Nri.Ui.SideNav.V4 upgrade to V5
11 Nri.Ui.Switch.V2 upgrade to V3
12 Nri.Ui.Table.V6 upgrade to V7

View File

@ -57,6 +57,7 @@
"Nri.Ui.Message.V3",
"Nri.Ui.Message.V4",
"Nri.Ui.Modal.V11",
"Nri.Ui.Modal.V12",
"Nri.Ui.Page.V3",
"Nri.Ui.Pagination.V1",
"Nri.Ui.Palette.V1",

View File

@ -169,6 +169,9 @@ hint = 'upgrade to V4'
hint = 'upgrade to V11'
usages = ['component-catalog-app/Examples/RadioButton.elm']
[forbidden."Nri.Ui.Modal.V11"]
hint = 'upgrade to V12'
[forbidden."Nri.Ui.Modal.V3"]
hint = 'upgrade to V11'

View File

@ -43,7 +43,7 @@ import Html.Styled exposing (..)
import Html.Styled.Attributes exposing (id)
import Html.Styled.Events as Events
import Nri.Ui.FocusTrap.V1 as FocusTrap exposing (FocusTrap)
import Nri.Ui.Modal.V11 as Modal
import Nri.Ui.Modal.V12 as Modal
import Task
main : Program () Modal.Model Msg

View File

@ -1,4 +1,4 @@
module Nri.Ui.Modal.V11 exposing
module Nri.Ui.Modal.V12 exposing
( view, closeButton, closeButtonId
, Model, init, open, close
, Msg, update, subscriptions
@ -43,7 +43,7 @@ import Html.Styled exposing (..)
import Html.Styled.Attributes exposing (id)
import Html.Styled.Events as Events
import Nri.Ui.FocusTrap.V1 as FocusTrap exposing (FocusTrap)
import Nri.Ui.Modal.V11 as Modal
import Nri.Ui.Modal.V12 as Modal
import Task
main : Program () Modal.Model Msg

View File

@ -7,7 +7,7 @@ import Html.Styled as Html exposing (Html, toUnstyled)
import Html.Styled.Attributes as Attributes
import Html.Styled.Events as Events
import Json.Encode as Encode
import Nri.Ui.Modal.V11 as Modal
import Nri.Ui.Modal.V12 as Modal
import ProgramTest exposing (..)
import SimulatedEffect.Cmd
import Spec.KeyboardHelpers exposing (pressTabBackKey, pressTabKey)

View File

@ -53,6 +53,7 @@
"Nri.Ui.Message.V3",
"Nri.Ui.Message.V4",
"Nri.Ui.Modal.V11",
"Nri.Ui.Modal.V12",
"Nri.Ui.Page.V3",
"Nri.Ui.Pagination.V1",
"Nri.Ui.Palette.V1",