[{"name":"Prefab.Alert","comment":" A simple alert component that can be used to display messages to the user.\n\nSee [clarity.design alerts](https://clarity.design/documentation/alert)\n\n\n# Creating\n\n@docs new, view\n\n\n# Modifying\n\n@docs withDismiss, withSize, withType\n\n\n# Types\n\n@docs AlertSize, AlertType\n\n","unions":[{"name":"AlertSize","comment":" The size of the alert to display\n","args":[],"cases":[["Normal",[]],["Compact",[]]]},{"name":"AlertType","comment":" The type of alert to display\n","args":[],"cases":[["Success",[]],["Info",[]],["Warning",[]],["Danger",[]]]}],"aliases":[],"values":[{"name":"new","comment":" Create a new alert with the given message and default settings\n","type":"{ message : String.String } -> Prefab.Alert.Alert msg"},{"name":"view","comment":" Display the alert\n","type":"List.List (Element.Attribute msg) -> Prefab.Alert.Alert msg -> Element.Element msg"},{"name":"withDismiss","comment":" Set a dismiss button with the given message\n","type":"msg -> Prefab.Alert.Alert msg -> Prefab.Alert.Alert msg"},{"name":"withSize","comment":" Set the size of the alert\n","type":"Prefab.Alert.AlertSize -> Prefab.Alert.Alert msg -> Prefab.Alert.Alert msg"},{"name":"withType","comment":" Set the type of alert\n","type":"Prefab.Alert.AlertType -> Prefab.Alert.Alert msg -> Prefab.Alert.Alert msg"}],"binops":[]},{"name":"Prefab.Button","comment":" Button Module\n\nClosely modeled after the Clarity Design System's button component. <https://clarity.design/documentation/button>\n\n\n# Options\n\n@docs Size, Style, Variant\n\n\n# Button\n\n@docs new, view\n\n\n# Adding Options\n\n@docs withDisable, withIconLeft, withIconRight, withSize, withStyle, withVariant, withLabelHidden, withoutCaps\n\n","unions":[{"name":"Size","comment":" Change the Size of the button\n","args":[],"cases":[["Normal",[]],["Small",[]],["Large",[]],["Block",[]]]},{"name":"Style","comment":" Change the Style of the button\n","args":[],"cases":[["Primary",[]],["Secondary",[]],["Success",[]],["Danger",[]],["Warning",[]],["Info",[]]]},{"name":"Variant","comment":" Change the Variant of the button\n","args":[],"cases":[["Solid",[]],["Outline",[]],["Flat",[]]]}],"aliases":[],"values":[{"name":"new","comment":" Create a new button with a label and an optional onClick message\n","type":"{ label : String.String, onClick : Maybe.Maybe msg } -> Prefab.Button.Button msg"},{"name":"view","comment":" View the button\n","type":"List.List (Element.Attribute msg) -> Prefab.Button.Button msg -> Element.Element msg"},{"name":"withDisable","comment":" Disable the button\n","type":"Prefab.Button.Button msg -> Prefab.Button.Button msg"},{"name":"withIconLeft","comment":" Add an icon to the left of the button\n","type":"FontAwesome.Icon FontAwesome.WithoutId -> Prefab.Button.Button msg -> Prefab.Button.Button msg"},{"name":"withIconRight","comment":" Add an icon to the right of the button\n","type":"FontAwesome.Icon FontAwesome.WithoutId -> Prefab.Button.Button msg -> Prefab.Button.Button msg"},{"name":"withLabelHidden","comment":" Hide the label of the button\n","type":"Prefab.Button.Button msg -> Prefab.Button.Button msg"},{"name":"withSize","comment":" Change the Size of the button\n","type":"Prefab.Button.Size -> Prefab.Button.Button msg -> Prefab.Button.Button msg"},{"name":"withStyle","comment":" Change the Style of the button\n","type":"Prefab.Button.Style -> Prefab.Button.Button msg -> Prefab.Button.Button msg"},{"name":"withVariant","comment":" Change the Variant of the button\n","type":"Prefab.Button.Variant -> Prefab.Button.Button msg -> Prefab.Button.Button msg"},{"name":"withoutCaps","comment":" Change the button to not be all caps\n","type":"Prefab.Button.Button msg -> Prefab.Button.Button msg"}],"binops":[]},{"name":"Prefab.Card","comment":" A card is a container with a white background, a rounded border, and a shadow.\n\n\n# Card\n\n@docs view\n\n","unions":[],"aliases":[],"values":[{"name":"view","comment":" A card is a container with a white background, a rounded border, and a shadow.\n","type":"List.List (Element.Attribute msg) -> Element.Element msg -> Element.Element msg"}],"binops":[]},{"name":"Prefab.Checkbox","comment":" A checkbox with a label to the right of the checkbox.\n\n\n# Checkbox\n\n@docs view\n\n","unions":[],"aliases":[],"values":[{"name":"view","comment":" A checkbox with a label to the right of the checkbox.\n","type":"List.List (Element.Attribute msg) -> { onChange : Basics.Bool -> msg, checked : Basics.Bool, label : String.String } -> Element.Element msg"}],"binops":[]},{"name":"Prefab.Icon","comment":" A simple icon component that wraps the `FontAwesome` module.\n\n\n# Icon\n\n@docs icon\n\n","unions":[],"aliases":[],"values":[{"name":"icon","comment":" Create an icon with the given name and attributes.\n","type":"List.List (Element.Attribute msg) -> FontAwesome.Icon hasId -> Element.Element msg"}],"binops":[]},{"name":"Prefab.Input","comment":" Text Inputs\n\n\n# Creating\n\n@docs new, view\n\n\n# Modifying\n\n@docs withDisabled, withError, withHelpText, withInputType, withLayout, withOnEnter, withPlaceholder, withRequired, withSpellCheck\n\n\n# Types\n\n@docs InputType, Layout\n\n","unions":[{"name":"InputType","comment":" The type of input to display\n","args":[],"cases":[["Text",[]],["Username",[]],["CurrentPassword",[]],["NewPassword",[]],["Email",[]],["Search",[]],["Spellchecked",[]],["Multiline",[]]]},{"name":"Layout","comment":" The layout of the input\n","args":[],"cases":[["Vertical",[]],["Horizontal",[]]]}],"aliases":[],"values":[{"name":"new","comment":" Create a new input\n","type":"{ onChange : String.String -> msg, value : String.String, label : String.String } -> Prefab.Input.Input msg"},{"name":"view","comment":" View an input\n","type":"List.List (Element.Attribute msg) -> Prefab.Input.Input msg -> Element.Element msg"},{"name":"withDisabled","comment":" Modify the disabled state of an input\n","type":"Basics.Bool -> Prefab.Input.Input msg -> Prefab.Input.Input msg"},{"name":"withError","comment":" Modify the error state of an input\n","type":"Maybe.Maybe String.String -> Prefab.Input.Input msg -> Prefab.Input.Input msg"},{"name":"withHelpText","comment":" Modify the help text of an input\n","type":"String.String -> Prefab.Input.Input msg -> Prefab.Input.Input msg"},{"name":"withInputType","comment":" Modify the input type of an input\n","type":"Prefab.Input.InputType -> Prefab.Input.Input msg -> Prefab.Input.Input msg"},{"name":"withLayout","comment":" Modify the layout of an input\n","type":"Prefab.Input.Layout -> Prefab.Input.Input msg -> Prefab.Input.Input msg"},{"name":"withOnEnter","comment":" Modify the onEnter message of an input\n","type":"msg -> Prefab.Input.Input msg -> Prefab.Input.Input msg"},{"name":"withPlaceholder","comment":" Modify the placeholder of an input\n","type":"String.String -> Prefab.Input.Input msg -> Prefab.Input.Input msg"},{"name":"withRequired","comment":" Modify the required state of an input\n","type":"Prefab.Input.Input msg -> Prefab.Input.Input msg"},{"name":"withSpellCheck","comment":" Modify the spell check of an input\n","type":"Prefab.Input.Input msg -> Prefab.Input.Input msg"}],"binops":[]},{"name":"Prefab.Link","comment":" A link styled as a button.\n\n\n# Link\n\nStyles like buttons\n\n\n# Creating\n\n@docs new, view\n\n\n# Modifying\n\n@docs withIconLeft, withIconRight, withSize, withStyle, withVariant, withoutCaps, withLabelHidden\n\n\n# Types\n\n@docs Size, Style, Variant\n\n","unions":[{"name":"Size","comment":" The size of the button\n","args":[],"cases":[["Normal",[]],["Small",[]],["Large",[]]]},{"name":"Style","comment":" The style of the button\n","args":[],"cases":[["Primary",[]],["Secondary",[]],["Success",[]],["Danger",[]],["Warning",[]],["Info",[]]]},{"name":"Variant","comment":" The style of the button\n","args":[],"cases":[["Solid",[]],["Outline",[]],["Flat",[]]]}],"aliases":[],"values":[{"name":"new","comment":" Create a new link styled as a button\n","type":"{ label : String.String, path : String.String } -> Prefab.Link.Link msg"},{"name":"view","comment":" View the link styled as a button\n","type":"List.List (Element.Attribute msg) -> Prefab.Link.Link msg -> Element.Element msg"},{"name":"withIconLeft","comment":" Add an icon to the left of the button\n","type":"FontAwesome.Icon FontAwesome.WithoutId -> Prefab.Link.Link msg -> Prefab.Link.Link msg"},{"name":"withIconRight","comment":" Add an icon to the right of the button\n","type":"FontAwesome.Icon FontAwesome.WithoutId -> Prefab.Link.Link msg -> Prefab.Link.Link msg"},{"name":"withLabelHidden","comment":" Hide the label of the link\n","type":"Prefab.Link.Link msg -> Prefab.Link.Link msg"},{"name":"withSize","comment":" Modify the size of the button\n","type":"Prefab.Link.Size -> Prefab.Link.Link msg -> Prefab.Link.Link msg"},{"name":"withStyle","comment":" Modify the style of the button\n","type":"Prefab.Link.Style -> Prefab.Link.Link msg -> Prefab.Link.Link msg"},{"name":"withVariant","comment":" Modify the variant of the button\n","type":"Prefab.Link.Variant -> Prefab.Link.Link msg -> Prefab.Link.Link msg"},{"name":"withoutCaps","comment":" Remove all caps from the link\n","type":"Prefab.Link.Link msg -> Prefab.Link.Link msg"}],"binops":[]},{"name":"Prefab.Loader","comment":" A loader component.\n\n\n# Loader\n\n@docs view\n\n","unions":[],"aliases":[],"values":[{"name":"view","comment":" The loader component.\n","type":"List.List (Element.Attribute msg) -> Element.Element msg"}],"binops":[]},{"name":"Prefab.Radio","comment":" A radio button group.\n\n\n# Creating\n\n@docs new, view\n\n\n# Modifying\n\n@docs withLayout, withOptions, withSerializer, withMessage, withDisabled, withDefaultButton, withCustomButton\n\n\n# Types\n\n@docs Layout\n\n","unions":[{"name":"Layout","comment":" The arrangement of the radio buttons.\n","args":[],"cases":[["Vertical",[]],["VerticalInline",[]],["Horizontal",[]],["HorizontalInline",[]],["Compact",[]]]}],"aliases":[],"values":[{"name":"new","comment":" Create a new radio button group.\n","type":"{ label : String.String, onChange : a -> msg, selected : Maybe.Maybe a } -> Prefab.Radio.Radio a msg"},{"name":"view","comment":" View the radio button group.\n","type":"List.List (Element.Attribute msg) -> Prefab.Radio.Radio a msg -> Element.Element msg"},{"name":"withCustomButton","comment":" Use custom button\n","type":"(Element.Input.OptionState -> Element.Element msg) -> Prefab.Radio.Radio a msg -> Prefab.Radio.Radio a msg"},{"name":"withDefaultButton","comment":" Use default broswer button\n","type":"Prefab.Radio.Radio a msg -> Prefab.Radio.Radio a msg"},{"name":"withDisabled","comment":" Disable the radio buttons.\n","type":"Basics.Bool -> Prefab.Radio.Radio a msg -> Prefab.Radio.Radio a msg"},{"name":"withLayout","comment":" Change the arrangement of the radio buttons.\n","type":"Prefab.Radio.Layout -> Prefab.Radio.Radio a msg -> Prefab.Radio.Radio a msg"},{"name":"withMessage","comment":" Add a help message of the radio buttons.\n","type":"String.String -> Prefab.Radio.Radio a msg -> Prefab.Radio.Radio a msg"},{"name":"withOptions","comment":" Change the options of the radio buttons.\n","type":"List.List a -> Prefab.Radio.Radio a msg -> Prefab.Radio.Radio a msg"},{"name":"withSerializer","comment":" Change the serializer of the radio buttons.\n","type":"(a -> String.String) -> Prefab.Radio.Radio a msg -> Prefab.Radio.Radio a msg"}],"binops":[]},{"name":"Prefab.Text","comment":" A collection of text elements with predefined styles.\n\n\n# Text Helpers\n\n@docs body, form, grid, h1, h2, h3, h4, h5, h6, headerSmall, helpText, label, sectionHeader, table, fontFamily\n\n","unions":[],"aliases":[],"values":[{"name":"body","comment":" A body text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"},{"name":"fontFamily","comment":" A default font family.\n","type":"Element.Attribute msg"},{"name":"form","comment":" A form text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"},{"name":"grid","comment":" A grid text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"},{"name":"h1","comment":" A large header text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"},{"name":"h2","comment":" A medium header text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"},{"name":"h3","comment":" A small header text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"},{"name":"h4","comment":" A very small header text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"},{"name":"h5","comment":" A very very small header text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"},{"name":"h6","comment":" A very very very small header text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"},{"name":"headerSmall","comment":" A small header text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"},{"name":"helpText","comment":" A help text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"},{"name":"label","comment":" A form text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"},{"name":"sectionHeader","comment":" A section header text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"},{"name":"table","comment":" A table text element.\n","type":"List.List (Element.Attribute msg) -> String.String -> Element.Element msg"}],"binops":[]},{"name":"Theme","comment":" This module contains the color palette for the application.\n\n\n# Colors\n\n@docs white, primary, secondary, gray1, gray2, gray3, gray4, gray5, gray6, gray7, gray8, gray9, black, red, danger, warning, blue, green, success, link, info, transparent\n\n\n# Helpers\n\n@docs addAlpha\n\n|\n\n","unions":[],"aliases":[],"values":[{"name":"addAlpha","comment":" Add alpha channel to color |\n","type":"Basics.Float -> Element.Color -> Element.Color"},{"name":"black","comment":" Black color |\n","type":"Element.Color"},{"name":"blue","comment":" Blue color |\n","type":"Element.Color"},{"name":"danger","comment":" Danger color |\n","type":"Element.Color"},{"name":"gray1","comment":" Gray color 1 |\n","type":"Element.Color"},{"name":"gray2","comment":" Gray color 2 |\n","type":"Element.Color"},{"name":"gray3","comment":" Gray color 3 |\n","type":"Element.Color"},{"name":"gray4","comment":" Gray color 4 |\n","type":"Element.Color"},{"name":"gray5","comment":" Gray color 5 |\n","type":"Element.Color"},{"name":"gray6","comment":" Gray color 6 |\n","type":"Element.Color"},{"name":"gray7","comment":" Gray color 7 |\n","type":"Element.Color"},{"name":"gray8","comment":" Gray color 8 |\n","type":"Element.Color"},{"name":"gray9","comment":" Gray color 9 |\n","type":"Element.Color"},{"name":"green","comment":" Green color |\n","type":"Element.Color"},{"name":"info","comment":" Info color |\n","type":"Element.Color"},{"name":"link","comment":" Link color |\n","type":"Element.Color"},{"name":"primary","comment":" Primary color |\n","type":"Element.Color"},{"name":"red","comment":" Red color |\n","type":"Element.Color"},{"name":"secondary","comment":" Secondary color |\n","type":"Element.Color"},{"name":"success","comment":" Success color |\n","type":"Element.Color"},{"name":"transparent","comment":" Transparent color |\n","type":"Element.Color"},{"name":"warning","comment":" Warning color |\n","type":"Element.Color"},{"name":"white","comment":" White color |\n","type":"Element.Color"}],"binops":[]}]