[{"name":"Ui.Button","comment":" Defines a Button component\n\n\n# Types\n\n@docs ButtonColor, ButtonEmphasis, ButtonContent\n\n\n# Views\n\n@docs view, customView\n\n","unions":[{"name":"ButtonColor","comment":" Defines the available button colors\n\n  - `Primary`: used to get users main focus\n  - `Secondary`: used as an accent to `Primary`\n  - `Warn`: used to indicate a destructive and/or dangerous action\n\n","args":[],"cases":[["Primary",[]],["Secondary",[]],["Warn",[]]]},{"name":"ButtonContent","comment":" Defins the content of the button\n","args":[],"cases":[["Text",["String.String"]],["TextWithLeftIcon",["String.String","String.String"]],["TextWithRightIcon",["String.String","String.String"]],["Icon",["{ icon : Ui.Icon.Icon, tooltip : String.String }"]]]},{"name":"ButtonEmphasis","comment":" Defines the emphasis of the button\n","args":[],"cases":[["High",[]],["Mid",[]],["Low",[]]]}],"aliases":[],"values":[{"name":"customView","comment":" Returns a custom view of a button.\nOnly use this when `view` is not enough.\n","type":"List.List (Html.Styled.Attribute msg) -> { onClick : msg, color : Ui.Button.ButtonColor, emphasis : Ui.Button.ButtonEmphasis } -> Ui.Button.ButtonContent -> Html.Styled.Html msg"},{"name":"view","comment":" Returns a view of a button\nThis should be used whenever possible.\nYou can use `customView` if you need to\ncustomize the button.\n","type":"{ onClick : msg, color : Ui.Button.ButtonColor, emphasis : Ui.Button.ButtonEmphasis } -> Ui.Button.ButtonContent -> Html.Styled.Html msg"}],"binops":[]},{"name":"Ui.Icon","comment":" Defines a Button component\n\n\n# Types\n\n@docs Icon\n\n\n# Views\n\n@docs view\n\n# Helpers\n\n@docs setFill\n\n# Icons\n\n@docs chevronLeft, chevronRight, edit, close\n\n","unions":[{"name":"Icon","comment":" Defines the Icon type\n","args":[],"cases":[]}],"aliases":[],"values":[{"name":"chevronLeft","comment":" Chevron left icon\n","type":"Ui.Icon.Icon"},{"name":"chevronRight","comment":" Chevron right icon\n","type":"Ui.Icon.Icon"},{"name":"close","comment":" Close icon\n","type":"Ui.Icon.Icon"},{"name":"edit","comment":" Edit icon\n","type":"Ui.Icon.Icon"},{"name":"setFill","comment":" Set a fill color for the given icon\n","type":"Color.Color -> Ui.Icon.Icon -> Ui.Icon.Icon"},{"name":"view","comment":" Creates a view for the given icon\n","type":"Ui.Icon.Icon -> Html.Styled.Html msg"}],"binops":[]},{"name":"Ui.Pagination","comment":" Defines a Pagination component\n\n\n## Types\n\n@docs Model\n\n\n## Model\n\n@docs init, currentPage, previousPage, nextPage, setPage, getTail, getInitial\n\n\n## Views\n\n@docs view, customView\n\n","unions":[{"name":"Model","comment":" The Pagination model\n","args":[],"cases":[]}],"aliases":[],"values":[{"name":"currentPage","comment":" Returns the current page number\n","type":"Ui.Pagination.Model -> Basics.Int"},{"name":"customView","comment":" Returns a custom view of a pagination component.\nOnly use this when `view` is not enough.\n","type":"List.List (Html.Styled.Attribute Basics.Never) -> Ui.Pagination.Model -> { siblingCount : Basics.Int, boundaryCount : Basics.Int, onNav : Ui.Pagination.Model -> msg } -> Accessibility.Styled.Html msg"},{"name":"getInitial","comment":" Return the left range [1,current page - 1] of the current page\n","type":"Ui.Pagination.Model -> List.List Basics.Int"},{"name":"getTail","comment":" Return the right range [current page + 1, number of pages] of the current page\n","type":"Ui.Pagination.Model -> List.List Basics.Int"},{"name":"init","comment":" Creates a model for the component\n","type":"Basics.Int -> Basics.Int -> Result.Result String.String Ui.Pagination.Model"},{"name":"nextPage","comment":" Go to the next page\n","type":"Ui.Pagination.Model -> Maybe.Maybe Ui.Pagination.Model"},{"name":"previousPage","comment":" Go to the previous page\n","type":"Ui.Pagination.Model -> Maybe.Maybe Ui.Pagination.Model"},{"name":"setPage","comment":" Set the current page\n","type":"Ui.Pagination.Model -> Basics.Int -> Maybe.Maybe Ui.Pagination.Model"},{"name":"view","comment":" Returns a view of a pagination component.\nThis should be used whenever possible.\nYou can use `customView` if you need to\ncustomize the button.\n","type":"Ui.Pagination.Model -> { siblingCount : Basics.Int, boundaryCount : Basics.Int, onNav : Ui.Pagination.Model -> msg } -> Accessibility.Styled.Html msg"}],"binops":[]},{"name":"Ui.RadioButton","comment":" Defines a RadioButton component\n\n\n## Types\n\n@docs Direction\n\n\n## Views\n\n@docs view, customView\n\n","unions":[{"name":"Direction","comment":" Defines the Direction\n","args":[],"cases":[["Horizontal",[]],["Vertical",[]]]}],"aliases":[],"values":[{"name":"customView","comment":" Returns a custom view of a radio button group.\nOnly use this when `view` is not enough.\n","type":"List.List (Html.Attribute Basics.Never) -> { onChange : a -> msg, options : List.List { optionLabel : String.String, value : a, disabled : Basics.Bool }, label : String.String, selected : Maybe.Maybe a, direction : Ui.RadioButton.Direction } -> Accessibility.Styled.Html msg"},{"name":"view","comment":" Return a view of a radio button group.\nThis should be used whenever possible.\nYou can use `customView` if you need to\ncustomize the button.\n","type":"{ onChange : a -> msg, options : List.List { optionLabel : String.String, value : a, disabled : Basics.Bool }, label : String.String, selected : Maybe.Maybe a, direction : Ui.RadioButton.Direction } -> Accessibility.Styled.Html msg"}],"binops":[]}]