💀 Remove checkbox icons from the asset list

This commit is contained in:
Tessa Kelly 2019-06-03 15:17:39 -07:00
parent 358658e5de
commit be32adc648
2 changed files with 4 additions and 20 deletions

View File

@ -11,10 +11,6 @@ type alias Assets =
, attention_svg : Asset
, bulb : String
, calendar : String
, checkboxChecked_svg : Asset
, checkboxCheckedPartially_svg : Asset
, checkboxLockOnInside_svg : Asset
, checkboxUnchecked_svg : Asset
, checkmark : String
, checkWhite_svg : Asset
, class : String
@ -107,10 +103,6 @@ assets =
, attention_svg = Asset "assets/images/attention.svg"
, bulb = "icon-bulb"
, calendar = "icon-calendar"
, checkboxChecked_svg = Asset "assets/images/checkbox_checked.svg"
, checkboxCheckedPartially_svg = Asset "assets/images/checkbox_checkedPartially.svg"
, checkboxLockOnInside_svg = Asset "assets/images/checkbox_lock_on_inside.svg"
, checkboxUnchecked_svg = Asset "assets/images/checkbox_unchecked.svg"
, checkmark = "icon-checkmark"
, checkWhite_svg = Asset "assets/images/check-white.svg"
, class = "icon-class"

View File

@ -6,12 +6,11 @@ module Examples.TextArea exposing (Msg, State, example, init, update)
-}
import Assets exposing (assets)
import Dict exposing (Dict)
import Html.Styled as Html
import ModuleExample as ModuleExample exposing (Category(..), ModuleExample)
import Nri.Ui.AssetPath exposing (Asset(..))
import Nri.Ui.Checkbox.V3 as Checkbox
import Nri.Ui.Checkbox.V5 as Checkbox
import Nri.Ui.Text.V2 as Text
import Nri.Ui.TextArea.V4 as TextArea
@ -22,7 +21,6 @@ type Msg
| ToggleLabel Bool
| ToggleAutoResize Bool
| ToggleErrorState Bool
| NoOp
{-| -}
@ -42,32 +40,29 @@ example parentMessage state =
, content =
[ Text.heading [ Html.text "Textarea controls" ]
, Html.div []
[ Checkbox.viewWithLabel assets
[ Checkbox.viewWithLabel
{ identifier = "show-textarea-label"
, label = "Show Label"
, setterMsg = ToggleLabel
, selected = state.showLabel
, disabled = False
, theme = Checkbox.Square
, noOpMsg = NoOp
}
, Checkbox.viewWithLabel assets
, Checkbox.viewWithLabel
{ identifier = "textarea-autoresize"
, label = "Autoresize"
, setterMsg = ToggleAutoResize
, selected = state.autoResize
, disabled = False
, theme = Checkbox.Square
, noOpMsg = NoOp
}
, Checkbox.viewWithLabel assets
, Checkbox.viewWithLabel
{ identifier = "textarea-isInError"
, label = "Show Error State"
, setterMsg = ToggleErrorState
, selected = state.isInError
, disabled = False
, theme = Checkbox.Square
, noOpMsg = NoOp
}
]
, TextArea.view
@ -181,9 +176,6 @@ update msg state =
, Cmd.none
)
NoOp ->
( state, Cmd.none )
-- INTERNAL