moved Widget.Style.Material to Widget.Material

This commit is contained in:
Lucas Payr 2021-01-26 14:26:32 +01:00
parent d0a4d01995
commit 1933b81b59
36 changed files with 48 additions and 60 deletions

View File

@ -32,7 +32,7 @@ import Widget
import Widget.Icon as Icon import Widget.Icon as Icon
import Widget.Layout exposing (LayoutStyle) import Widget.Layout exposing (LayoutStyle)
import Widget.Snackbar exposing (SnackbarStyle) import Widget.Snackbar exposing (SnackbarStyle)
import Widget.Style.Material as Material exposing (Palette) import Widget.Material as Material exposing (Palette)
style : Palette -> Style msg style : Palette -> Style msg

View File

@ -1,7 +1,7 @@
module Data.Theme exposing (Theme(..), toStyle) module Data.Theme exposing (Theme(..), toStyle)
import Data.Style as Style exposing (Style) import Data.Style as Style exposing (Style)
import Widget.Style.Material exposing (Palette) import Widget.Material as Material exposing (Palette)
type Theme type Theme
@ -13,7 +13,7 @@ toStyle : Theme -> Style msg
toStyle theme = toStyle theme =
case theme of case theme of
Material -> Material ->
Style.style Widget.Style.Material.defaultPalette Style.style Material.defaultPalette
DarkMaterial -> DarkMaterial ->
Style.style Widget.Style.Material.darkPalette Style.style Material.darkPalette

View File

@ -8,10 +8,10 @@ import Material.Icons as MaterialIcons
import Material.Icons.Types exposing (Coloring(..)) import Material.Icons.Types exposing (Coloring(..))
import Widget exposing (ButtonStyle, ColumnStyle, RowStyle) import Widget exposing (ButtonStyle, ColumnStyle, RowStyle)
import Widget.Icon as Icon import Widget.Icon as Icon
import Widget.Style.Customize as Customize import Widget.Customize as Customize
import Widget.Style.Material as Material import Widget.Material as Material
import Widget.Style.Material.Color as MaterialColor import Widget.Material.Color as MaterialColor
import Widget.Style.Material.Typography as Typography import Widget.Material.Typography as Typography
type alias Style style msg = type alias Style style msg =

View File

@ -5,7 +5,7 @@ import Element exposing (Element)
import FeatherIcons import FeatherIcons
import Widget exposing (ButtonStyle, DialogStyle) import Widget exposing (ButtonStyle, DialogStyle)
import Widget.Icon as Icon import Widget.Icon as Icon
import Widget.Style.Material as Material import Widget.Material as Material
type alias Style style msg = type alias Style style msg =

View File

@ -15,7 +15,7 @@ import Material.Icons.Types exposing (Coloring(..))
import Octicons import Octicons
import Widget exposing (ButtonStyle, RowStyle) import Widget exposing (ButtonStyle, RowStyle)
import Widget.Icon exposing (Icon) import Widget.Icon exposing (Icon)
import Widget.Style.Material as Material import Widget.Material as Material
import Zondicons import Zondicons

View File

@ -6,8 +6,8 @@ import Element.Font as Font
import FeatherIcons import FeatherIcons
import Widget exposing (ColumnStyle, DividerStyle, ExpansionItemStyle, HeaderStyle, ImageItemStyle, ItemStyle, MultiLineItemStyle, SwitchStyle, TextItemStyle) import Widget exposing (ColumnStyle, DividerStyle, ExpansionItemStyle, HeaderStyle, ImageItemStyle, ItemStyle, MultiLineItemStyle, SwitchStyle, TextItemStyle)
import Widget.Icon as Icon import Widget.Icon as Icon
import Widget.Style.Material as Material import Widget.Material as Material
import Widget.Style.Material.Color as MaterialColor import Widget.Material.Color as MaterialColor
type alias Style style msg = type alias Style style msg =

View File

@ -5,7 +5,7 @@ import Element exposing (Element)
import FeatherIcons import FeatherIcons
import Widget exposing (ButtonStyle, ColumnStyle) import Widget exposing (ButtonStyle, ColumnStyle)
import Widget.Icon as Icon import Widget.Icon as Icon
import Widget.Style.Material as Material import Widget.Material as Material
type alias Style style msg = type alias Style style msg =

View File

@ -4,7 +4,7 @@ import Browser
import Element exposing (Element) import Element exposing (Element)
import Set exposing (Set) import Set exposing (Set)
import Widget exposing (ButtonStyle, RowStyle) import Widget exposing (ButtonStyle, RowStyle)
import Widget.Style.Material as Material import Widget.Material as Material
type alias Style style msg = type alias Style style msg =

View File

@ -3,7 +3,7 @@ module Example.ProgressIndicator exposing (Model, Msg, init, subscriptions, upda
import Browser import Browser
import Element exposing (Element) import Element exposing (Element)
import Widget exposing (ProgressIndicatorStyle) import Widget exposing (ProgressIndicatorStyle)
import Widget.Style.Material as Material import Widget.Material as Material
type alias Style style msg = type alias Style style msg =

View File

@ -3,7 +3,7 @@ module Example.Select exposing (Model, Msg, init, subscriptions, update, view)
import Browser import Browser
import Element exposing (Element) import Element exposing (Element)
import Widget exposing (ButtonStyle, RowStyle) import Widget exposing (ButtonStyle, RowStyle)
import Widget.Style.Material as Material import Widget.Material as Material
type alias Style style msg = type alias Style style msg =

View File

@ -6,7 +6,7 @@ import FeatherIcons
import Time import Time
import Widget exposing (ButtonStyle, ColumnStyle, RowStyle, SnackbarStyle) import Widget exposing (ButtonStyle, ColumnStyle, RowStyle, SnackbarStyle)
import Widget.Snackbar as Snackbar exposing (Snackbar) import Widget.Snackbar as Snackbar exposing (Snackbar)
import Widget.Style.Material as Material import Widget.Material as Material
type alias Style style msg = type alias Style style msg =

View File

@ -3,7 +3,7 @@ module Example.SortTable exposing (Model, Msg, init, subscriptions, update, view
import Browser import Browser
import Element exposing (Element) import Element exposing (Element)
import Widget exposing (SortTableStyle) import Widget exposing (SortTableStyle)
import Widget.Style.Material as Material import Widget.Material as Material
type alias Style style msg = type alias Style style msg =

View File

@ -4,7 +4,7 @@ import Browser
import Element exposing (Element) import Element exposing (Element)
import FeatherIcons import FeatherIcons
import Widget exposing (RowStyle, SwitchStyle) import Widget exposing (RowStyle, SwitchStyle)
import Widget.Style.Material as Material import Widget.Material as Material
type alias Style style msg = type alias Style style msg =

View File

@ -3,7 +3,7 @@ module Example.Tab exposing (Model, Msg, init, subscriptions, update, view)
import Browser import Browser
import Element exposing (Element) import Element exposing (Element)
import Widget exposing (TabStyle) import Widget exposing (TabStyle)
import Widget.Style.Material as Material import Widget.Material as Material
type alias Style style msg = type alias Style style msg =

View File

@ -4,7 +4,7 @@ import Browser
import Element exposing (Element) import Element exposing (Element)
import Set exposing (Set) import Set exposing (Set)
import Widget exposing (ColumnStyle, TextInputStyle) import Widget exposing (ColumnStyle, TextInputStyle)
import Widget.Style.Material as Material import Widget.Material as Material
type alias Style style msg = type alias Style style msg =

View File

@ -2,8 +2,8 @@ module Internal.Item exposing (DividerStyle, ExpansionItem, ExpansionItemStyle,
import Element exposing (Attribute, Element) import Element exposing (Attribute, Element)
import Element.Input as Input import Element.Input as Input
import Widget.Icon as Icon exposing (Icon, IconStyle) import Widget.Customize exposing (content)
import Widget.Style.Customize exposing (content) import Widget.Icon exposing (Icon, IconStyle)
type alias ItemStyle content msg = type alias ItemStyle content msg =

View File

@ -4,7 +4,7 @@ import Element exposing (Attribute, Element)
import Internal.Button exposing (Button, ButtonStyle) import Internal.Button exposing (Button, ButtonStyle)
import Internal.Item as Item exposing (Item) import Internal.Item as Item exposing (Item)
import Internal.Select as Select import Internal.Select as Select
import Widget.Style.Customize as Customize import Widget.Customize as Customize
{-| -} {-| -}

View File

@ -7,8 +7,8 @@ import Element.Font as Font
import Html.Attributes as Attributes import Html.Attributes as Attributes
import Internal.Button exposing (ButtonStyle) import Internal.Button exposing (ButtonStyle)
import Internal.Material.Palette exposing (Palette) import Internal.Material.Palette exposing (Palette)
import Widget.Style.Material.Color as MaterialColor import Widget.Material.Color as MaterialColor
import Widget.Style.Material.Typography as Typography import Widget.Material.Typography as Typography
baseButton : Palette -> ButtonStyle msg baseButton : Palette -> ButtonStyle msg

View File

@ -7,7 +7,7 @@ import Element.Font as Font
import Internal.Button exposing (ButtonStyle) import Internal.Button exposing (ButtonStyle)
import Internal.Material.Button as Button import Internal.Material.Button as Button
import Internal.Material.Palette exposing (Palette) import Internal.Material.Palette exposing (Palette)
import Widget.Style.Material.Color as MaterialColor import Widget.Material.Color as MaterialColor
chip : Palette -> ButtonStyle msg chip : Palette -> ButtonStyle msg

View File

@ -6,8 +6,8 @@ import Element.Border as Border
import Internal.Dialog exposing (DialogStyle) import Internal.Dialog exposing (DialogStyle)
import Internal.Material.Button as Button import Internal.Material.Button as Button
import Internal.Material.Palette exposing (Palette) import Internal.Material.Palette exposing (Palette)
import Widget.Style.Material.Color as MaterialColor import Widget.Material.Color as MaterialColor
import Widget.Style.Material.Typography as Typography import Widget.Material.Typography as Typography
alertDialog : Palette -> DialogStyle msg alertDialog : Palette -> DialogStyle msg

View File

@ -19,11 +19,8 @@ import Html.Attributes as Attributes
import Internal.Item exposing (DividerStyle, ExpansionItemStyle, HeaderStyle, ImageItemStyle, ItemStyle, MultiLineItemStyle, TextItemStyle) import Internal.Item exposing (DividerStyle, ExpansionItemStyle, HeaderStyle, ImageItemStyle, ItemStyle, MultiLineItemStyle, TextItemStyle)
import Internal.Material.Icon as Icon import Internal.Material.Icon as Icon
import Internal.Material.Palette exposing (Palette) import Internal.Material.Palette exposing (Palette)
import Svg import Widget.Material.Color as MaterialColor
import Svg.Attributes import Widget.Material.Typography as Typography
import Widget.Icon exposing (Icon)
import Widget.Style.Material.Color as MaterialColor
import Widget.Style.Material.Typography as Typography
fullBleedDivider : Palette -> ItemStyle (DividerStyle msg) msg fullBleedDivider : Palette -> ItemStyle (DividerStyle msg) msg

View File

@ -1,6 +1,5 @@
module Internal.Material.Layout exposing (drawerButton, layout, menu, menuTabButton, more_vert, search) module Internal.Material.Layout exposing (drawerButton, layout, menu, menuTabButton, more_vert, search)
import Color
import Element import Element
import Element.Background as Background import Element.Background as Background
import Element.Border as Border import Element.Border as Border
@ -13,11 +12,11 @@ import Internal.Material.Snackbar as Snackbar
import Internal.Material.TextInput as TextInput import Internal.Material.TextInput as TextInput
import Svg import Svg
import Svg.Attributes import Svg.Attributes
import Widget.Customize as Customize
import Widget.Icon as Icon exposing (Icon) import Widget.Icon as Icon exposing (Icon)
import Widget.Layout exposing (LayoutStyle) import Widget.Layout exposing (LayoutStyle)
import Widget.Style.Customize as Customize import Widget.Material.Color as MaterialColor
import Widget.Style.Material.Color as MaterialColor import Widget.Material.Typography as Typography
import Widget.Style.Material.Typography as Typography
more_vert : Icon msg more_vert : Icon msg

View File

@ -11,7 +11,7 @@ import Element.Border as Border
import Element.Font as Font import Element.Font as Font
import Internal.List exposing (ColumnStyle, RowStyle) import Internal.List exposing (ColumnStyle, RowStyle)
import Internal.Material.Palette exposing (Palette) import Internal.Material.Palette exposing (Palette)
import Widget.Style.Material.Color as MaterialColor import Widget.Material.Color as MaterialColor
row : RowStyle msg row : RowStyle msg

View File

@ -6,9 +6,9 @@ import Element.Border as Border
import Element.Font as Font import Element.Font as Font
import Internal.Material.Button as Button import Internal.Material.Button as Button
import Internal.Material.Palette exposing (Palette) import Internal.Material.Palette exposing (Palette)
import Widget.Customize as Customize
import Widget.Material.Color as MaterialColor
import Widget.Snackbar exposing (SnackbarStyle) import Widget.Snackbar exposing (SnackbarStyle)
import Widget.Style.Customize as Customize
import Widget.Style.Material.Color as MaterialColor
snackbar : Palette -> SnackbarStyle msg snackbar : Palette -> SnackbarStyle msg

View File

@ -7,7 +7,7 @@ import Element.Border as Border
import Html.Attributes as Attributes import Html.Attributes as Attributes
import Internal.Material.Palette exposing (Palette) import Internal.Material.Palette exposing (Palette)
import Internal.Switch exposing (SwitchStyle) import Internal.Switch exposing (SwitchStyle)
import Widget.Style.Material.Color as MaterialColor import Widget.Material.Color as MaterialColor
switch : Palette -> SwitchStyle msg switch : Palette -> SwitchStyle msg

View File

@ -8,8 +8,8 @@ import Internal.Button exposing (ButtonStyle)
import Internal.Material.Button as Button import Internal.Material.Button as Button
import Internal.Material.Palette exposing (Palette) import Internal.Material.Palette exposing (Palette)
import Internal.Tab exposing (TabStyle) import Internal.Tab exposing (TabStyle)
import Widget.Style.Material.Color as MaterialColor import Widget.Material.Color as MaterialColor
import Widget.Style.Material.Typography as Typography import Widget.Material.Typography as Typography
tabButton : Palette -> ButtonStyle msg tabButton : Palette -> ButtonStyle msg

View File

@ -5,8 +5,8 @@ import Element.Border as Border
import Internal.Material.Chip as Chip import Internal.Material.Chip as Chip
import Internal.Material.Palette exposing (Palette) import Internal.Material.Palette exposing (Palette)
import Internal.TextInput exposing (TextInputStyle) import Internal.TextInput exposing (TextInputStyle)
import Widget.Style.Customize as Customize import Widget.Customize as Customize
import Widget.Style.Material.Color as MaterialColor import Widget.Material.Color as MaterialColor
textInput : Palette -> TextInputStyle msg textInput : Palette -> TextInputStyle msg

View File

@ -10,9 +10,7 @@ module Internal.SortTable exposing
, unsortableColumn , unsortableColumn
) )
import Color exposing (Color)
import Element exposing (Attribute, Element, Length) import Element exposing (Attribute, Element, Length)
import Html exposing (Html)
import Internal.Button as Button exposing (ButtonStyle) import Internal.Button as Button exposing (ButtonStyle)
import Widget.Icon exposing (Icon) import Widget.Icon exposing (Icon)

View File

@ -1,11 +1,8 @@
module Internal.Switch exposing (Switch, SwitchStyle, switch) module Internal.Switch exposing (Switch, SwitchStyle, switch)
import Color exposing (Color)
import Element exposing (Attribute, Element) import Element exposing (Attribute, Element)
import Element.Input as Input import Element.Input as Input
import Element.Region as Region import Element.Region as Region
import Html exposing (Html)
import Widget.Icon exposing (Icon)
{-| -} {-| -}

View File

@ -1,11 +1,8 @@
module Internal.Tab exposing (Tab, TabStyle, tab) module Internal.Tab exposing (Tab, TabStyle, tab)
import Color exposing (Color)
import Element exposing (Attribute, Element) import Element exposing (Attribute, Element)
import Html exposing (Html)
import Internal.Button exposing (ButtonStyle) import Internal.Button exposing (ButtonStyle)
import Internal.Select as Select exposing (Select) import Internal.Select as Select exposing (Select)
import Widget.Icon exposing (Icon)
{-| -} {-| -}

View File

@ -1,4 +1,4 @@
module Widget.Style.Customize exposing module Widget.Customize exposing
( element, mapElement ( element, mapElement
, elementButton, mapElementButton , elementButton, mapElementButton
, elementColumn, mapElementColumn , elementColumn, mapElementColumn

View File

@ -34,9 +34,9 @@ import Internal.Button as Button exposing (Button, ButtonStyle)
import Internal.Dialog as Dialog import Internal.Dialog as Dialog
import Internal.Select as Select exposing (Select) import Internal.Select as Select exposing (Select)
import Internal.TextInput as TextInput exposing (TextInput, TextInputStyle) import Internal.TextInput as TextInput exposing (TextInput, TextInputStyle)
import Widget.Customize as Customize
import Widget.Icon exposing (Icon) import Widget.Icon exposing (Icon)
import Widget.Snackbar as Snackbar exposing (Message, SnackbarStyle) import Widget.Snackbar as Snackbar exposing (Message, SnackbarStyle)
import Widget.Style.Customize as Customize
{-| -} {-| -}

View File

@ -1,4 +1,4 @@
module Widget.Style.Material exposing module Widget.Material exposing
( Palette, defaultPalette, darkPalette ( Palette, defaultPalette, darkPalette
, containedButton, outlinedButton, textButton , containedButton, outlinedButton, textButton
, iconButton, toggleButton, buttonRow , iconButton, toggleButton, buttonRow

View File

@ -1,4 +1,4 @@
module Widget.Style.Material.Color exposing module Widget.Material.Color exposing
( buttonHoverOpacity, buttonFocusOpacity, buttonPressedOpacity, buttonDisabledOpacity, buttonSelectedOpacity ( buttonHoverOpacity, buttonFocusOpacity, buttonPressedOpacity, buttonDisabledOpacity, buttonSelectedOpacity
, accessibleTextColor, accessibleWithTextColor , accessibleTextColor, accessibleWithTextColor
, withShade, scaleOpacity , withShade, scaleOpacity

View File

@ -1,4 +1,4 @@
module Widget.Style.Material.Typography exposing module Widget.Material.Typography exposing
( h1, h2, h3, h4, h5, h6 ( h1, h2, h3, h4, h5, h6
, subtitle1, subtitle2 , subtitle1, subtitle2
, body1, body2 , body1, body2

View File

@ -9,7 +9,7 @@ import Element.Border
import Element.Font import Element.Font
import Element.Input import Element.Input
import Widget exposing (ButtonStyle, ColumnStyle, RowStyle) import Widget exposing (ButtonStyle, ColumnStyle, RowStyle)
import Widget.Style.Material as Material exposing (Palette) import Widget.Material as Material exposing (Palette)
type alias Style style msg = type alias Style style msg =