react-miui 0.28.2 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.ts +14 -14
- package/.storybook/preview.tsx +17 -14
- package/CHANGELOG.md +27 -0
- package/README.md +1 -1
- package/dist/components/form/Checkbox.d.ts +8 -5
- package/dist/components/form/Checkbox.d.ts.map +1 -1
- package/dist/components/form/Checkbox.js +10 -4
- package/dist/components/form/Checkbox.js.map +1 -1
- package/dist/components/form/Checkbox.styled.js +1 -1
- package/dist/components/form/Checkbox.styled.js.map +1 -1
- package/dist/components/form/ColorPicker.d.ts +5 -3
- package/dist/components/form/ColorPicker.d.ts.map +1 -1
- package/dist/components/form/ColorPicker.js +8 -4
- package/dist/components/form/ColorPicker.js.map +1 -1
- package/dist/components/form/ColorPicker.styled.js +1 -1
- package/dist/components/form/ColorPicker.styled.js.map +1 -1
- package/dist/components/form/Label.d.ts +97 -6
- package/dist/components/form/Label.d.ts.map +1 -1
- package/dist/components/form/Label.js +42 -8
- package/dist/components/form/Label.js.map +1 -1
- package/dist/components/form/Select.d.ts +5 -1
- package/dist/components/form/Select.d.ts.map +1 -1
- package/dist/components/form/Select.js +1 -1
- package/dist/components/form/Select.js.map +1 -1
- package/dist/components/form/Toggle.d.ts +100 -5
- package/dist/components/form/Toggle.d.ts.map +1 -1
- package/dist/components/form/Toggle.js +8 -4
- package/dist/components/form/Toggle.js.map +1 -1
- package/dist/components/form/choice/Choice.d.ts +5 -4
- package/dist/components/form/choice/Choice.d.ts.map +1 -1
- package/dist/components/form/choice/Choice.js +42 -8
- package/dist/components/form/choice/Choice.js.map +1 -1
- package/dist/components/form/choice/ChoiceItem.d.ts +5 -1
- package/dist/components/form/choice/ChoiceItem.d.ts.map +1 -1
- package/dist/components/form/choice/ChoiceItem.js +3 -1
- package/dist/components/form/choice/ChoiceItem.js.map +1 -1
- package/dist/components/form/choice/ChoiceItem.styled.d.ts +85 -0
- package/dist/components/form/choice/ChoiceItem.styled.d.ts.map +1 -0
- package/dist/components/form/choice/ChoiceItem.styled.js +9 -0
- package/dist/components/form/choice/ChoiceItem.styled.js.map +1 -0
- package/dist/components/form/input/Input.css.d.ts +16 -16
- package/dist/components/form/input/Input.css.d.ts.map +1 -1
- package/dist/components/form/input/Input.css.js.map +1 -1
- package/dist/components/form/input/Input.d.ts +1 -1
- package/dist/components/form/input/Input.d.ts.map +1 -1
- package/dist/components/form/input/Input.js.map +1 -1
- package/dist/components/form/textarea/TextArea.d.ts +4 -2
- package/dist/components/form/textarea/TextArea.d.ts.map +1 -1
- package/dist/components/form/textarea/TextArea.js +5 -3
- package/dist/components/form/textarea/TextArea.js.map +1 -1
- package/dist/components/icons/Battery.js +2 -2
- package/dist/components/icons/Battery.js.map +1 -1
- package/dist/components/icons/Checkmark.js +1 -1
- package/dist/components/icons/Checkmark.js.map +1 -1
- package/dist/components/icons/Config.js +1 -1
- package/dist/components/icons/Config.js.map +1 -1
- package/dist/components/icons/Dots.js +1 -1
- package/dist/components/icons/Dots.js.map +1 -1
- package/dist/components/icons/Heart.js +1 -1
- package/dist/components/icons/Heart.js.map +1 -1
- package/dist/components/icons/Trash.js +1 -1
- package/dist/components/icons/Trash.js.map +1 -1
- package/dist/components/layout/card/Card.d.ts +5 -9
- package/dist/components/layout/card/Card.d.ts.map +1 -1
- package/dist/components/layout/card/Card.js +2 -15
- package/dist/components/layout/card/Card.js.map +1 -1
- package/dist/components/layout/card/Card.styled.d.ts +87 -0
- package/dist/components/layout/card/Card.styled.d.ts.map +1 -0
- package/dist/components/layout/card/Card.styled.js +23 -0
- package/dist/components/layout/card/Card.styled.js.map +1 -0
- package/dist/components/layout/header/Header.d.ts +8 -3
- package/dist/components/layout/header/Header.d.ts.map +1 -1
- package/dist/components/layout/header/Header.js +46 -8
- package/dist/components/layout/header/Header.js.map +1 -1
- package/dist/components/layout/header/HeaderIconAction.d.ts.map +1 -1
- package/dist/components/layout/header/HeaderIconAction.js.map +1 -1
- package/dist/components/layout/header/HeaderIconAction.styled.js +1 -1
- package/dist/components/layout/header/HeaderIconAction.styled.js.map +1 -1
- package/dist/components/layout/header/StickyHeader.d.ts +1 -0
- package/dist/components/layout/header/StickyHeader.d.ts.map +1 -1
- package/dist/components/layout/header/StickyHeader.js +1 -1
- package/dist/components/layout/header/StickyHeader.js.map +1 -1
- package/dist/components/layout/section/SearchContainer.d.ts +83 -6
- package/dist/components/layout/section/SearchContainer.d.ts.map +1 -1
- package/dist/components/layout/section/SearchContainer.js +2 -9
- package/dist/components/layout/section/SearchContainer.js.map +1 -1
- package/dist/components/layout/section/Section.d.ts +86 -7
- package/dist/components/layout/section/Section.d.ts.map +1 -1
- package/dist/components/layout/section/Section.js +4 -2
- package/dist/components/layout/section/Section.js.map +1 -1
- package/dist/components/native/index.d.ts.map +1 -1
- package/dist/components/native/index.js +3 -1
- package/dist/components/native/index.js.map +1 -1
- package/dist/components/ui/action/Action.js.map +1 -1
- package/dist/components/ui/action/EqualActions.d.ts +4 -3
- package/dist/components/ui/action/EqualActions.d.ts.map +1 -1
- package/dist/components/ui/action/EqualActions.js +41 -10
- package/dist/components/ui/action/EqualActions.js.map +1 -1
- package/dist/components/ui/action/EqualActions.styled.d.ts +87 -0
- package/dist/components/ui/action/EqualActions.styled.d.ts.map +1 -0
- package/dist/components/ui/action/EqualActions.styled.js +20 -0
- package/dist/components/ui/action/EqualActions.styled.js.map +1 -0
- package/dist/components/ui/directionPad/Button.d.ts +6 -4
- package/dist/components/ui/directionPad/Button.d.ts.map +1 -1
- package/dist/components/ui/directionPad/Button.js +44 -10
- package/dist/components/ui/directionPad/Button.js.map +1 -1
- package/dist/components/ui/directionPad/Button.styled.d.ts +168 -0
- package/dist/components/ui/directionPad/Button.styled.d.ts.map +1 -0
- package/dist/components/ui/directionPad/Button.styled.js +24 -0
- package/dist/components/ui/directionPad/Button.styled.js.map +1 -0
- package/dist/components/ui/directionPad/Middle.d.ts +4 -3
- package/dist/components/ui/directionPad/Middle.d.ts.map +1 -1
- package/dist/components/ui/directionPad/Middle.js +40 -8
- package/dist/components/ui/directionPad/Middle.js.map +1 -1
- package/dist/components/ui/directionPad/Middle.styled.d.ts +85 -0
- package/dist/components/ui/directionPad/Middle.styled.d.ts.map +1 -0
- package/dist/components/ui/directionPad/Middle.styled.js +19 -0
- package/dist/components/ui/directionPad/Middle.styled.js.map +1 -0
- package/dist/components/ui/directionPad/Pad.d.ts +9 -4
- package/dist/components/ui/directionPad/Pad.d.ts.map +1 -1
- package/dist/components/ui/directionPad/Pad.js +51 -13
- package/dist/components/ui/directionPad/Pad.js.map +1 -1
- package/dist/components/ui/directionPad/Pad.styled.d.ts +168 -0
- package/dist/components/ui/directionPad/Pad.styled.d.ts.map +1 -0
- package/dist/components/ui/directionPad/Pad.styled.js +21 -0
- package/dist/components/ui/directionPad/Pad.styled.js.map +1 -0
- package/dist/components/ui/drawer/Drawer.d.ts +7 -18
- package/dist/components/ui/drawer/Drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer/Drawer.js +38 -56
- package/dist/components/ui/drawer/Drawer.js.map +1 -1
- package/dist/components/ui/drawer/Drawer.styled.d.ts +168 -0
- package/dist/components/ui/drawer/Drawer.styled.d.ts.map +1 -0
- package/dist/components/ui/drawer/Drawer.styled.js +21 -0
- package/dist/components/ui/drawer/Drawer.styled.js.map +1 -0
- package/dist/components/ui/keyValue/KeyValue.d.ts +10 -4
- package/dist/components/ui/keyValue/KeyValue.d.ts.map +1 -1
- package/dist/components/ui/keyValue/KeyValue.js +64 -22
- package/dist/components/ui/keyValue/KeyValue.js.map +1 -1
- package/dist/components/ui/keyValue/KeyValue.styled.d.ts +503 -0
- package/dist/components/ui/keyValue/KeyValue.styled.d.ts.map +1 -0
- package/dist/components/ui/keyValue/KeyValue.styled.js +63 -0
- package/dist/components/ui/keyValue/KeyValue.styled.js.map +1 -0
- package/dist/components/ui/loader/PopLoader.js +1 -1
- package/dist/components/ui/loader/PopLoader.js.map +1 -1
- package/dist/components/ui/modal/ModalButtons.styled.d.ts +87 -89
- package/dist/components/ui/modal/ModalButtons.styled.d.ts.map +1 -1
- package/dist/components/ui/modal/ModalButtons.styled.js +4 -2
- package/dist/components/ui/modal/ModalButtons.styled.js.map +1 -1
- package/dist/components/ui/pop/OnButtonClick.js +1 -1
- package/dist/components/ui/pop/OnButtonClick.js.map +1 -1
- package/dist/components/ui/pop/Pop.d.ts.map +1 -1
- package/dist/components/ui/pop/Pop.js +4 -0
- package/dist/components/ui/pop/Pop.js.map +1 -1
- package/dist/components/ui/pop/Pop.styled.js +1 -1
- package/dist/components/ui/pop/Pop.styled.js.map +1 -1
- package/dist/components/ui/progress/Progress.d.ts +6 -4
- package/dist/components/ui/progress/Progress.d.ts.map +1 -1
- package/dist/components/ui/progress/Progress.js +45 -8
- package/dist/components/ui/progress/Progress.js.map +1 -1
- package/dist/components/ui/stats/Stats.d.ts +14 -8
- package/dist/components/ui/stats/Stats.d.ts.map +1 -1
- package/dist/components/ui/stats/Stats.js +64 -16
- package/dist/components/ui/stats/Stats.js.map +1 -1
- package/dist/components/ui/stats/Stats.styled.d.ts +419 -0
- package/dist/components/ui/stats/Stats.styled.d.ts.map +1 -0
- package/dist/components/ui/stats/Stats.styled.js +56 -0
- package/dist/components/ui/stats/Stats.styled.js.map +1 -0
- package/dist/components/ui/tabs/Item.d.ts +8 -4
- package/dist/components/ui/tabs/Item.d.ts.map +1 -1
- package/dist/components/ui/tabs/Item.js +5 -10
- package/dist/components/ui/tabs/Item.js.map +1 -1
- package/dist/components/ui/tabs/Item.styled.d.ts +4 -0
- package/dist/components/ui/tabs/Item.styled.d.ts.map +1 -0
- package/dist/components/ui/tabs/Item.styled.js +20 -0
- package/dist/components/ui/tabs/Item.styled.js.map +1 -0
- package/dist/components/ui/tabs/Selector.d.ts +7 -5
- package/dist/components/ui/tabs/Selector.d.ts.map +1 -1
- package/dist/components/ui/tabs/Selector.js +11 -11
- package/dist/components/ui/tabs/Selector.js.map +1 -1
- package/dist/components/ui/tabs/Selector.styled.d.ts +2 -0
- package/dist/components/ui/tabs/Selector.styled.d.ts.map +1 -0
- package/dist/components/ui/tabs/Selector.styled.js +14 -0
- package/dist/components/ui/tabs/Selector.styled.js.map +1 -0
- package/dist/components/ui/toaster/Toaster.d.ts.map +1 -1
- package/dist/components/ui/toaster/Toaster.js +1 -0
- package/dist/components/ui/toaster/Toaster.js.map +1 -1
- package/dist/components/utils/Gap.d.ts +87 -0
- package/dist/components/utils/Gap.d.ts.map +1 -0
- package/dist/components/utils/Gap.js +18 -0
- package/dist/components/utils/Gap.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/scrollbars.css.d.ts.map +1 -1
- package/dist/scrollbars.css.js +2 -2
- package/dist/scrollbars.css.js.map +1 -1
- package/dist/theme.css-global.d.ts +3 -0
- package/dist/theme.css-global.d.ts.map +1 -0
- package/dist/theme.css-global.js +19 -0
- package/dist/theme.css-global.js.map +1 -0
- package/dist/theme.css-reset.d.ts.map +1 -1
- package/dist/theme.css-reset.js +2 -4
- package/dist/theme.css-reset.js.map +1 -1
- package/dist/theme.d.ts +2 -2
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/index.js.map +1 -1
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/highlight.css +21 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +5 -3
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +1467 -1136
- package/docs/classes/index.Pop.html +123 -0
- package/docs/classes/index.ToasterProvider.html +120 -0
- package/docs/documents/Test.html +2 -0
- package/docs/enums/index.ICON.html +10 -0
- package/docs/functions/index.Action.html +31 -0
- package/docs/functions/index.Button.html +16 -0
- package/docs/functions/index.Card.html +15 -0
- package/docs/functions/index.Checkbox.html +11 -0
- package/docs/functions/index.Choice.html +10 -0
- package/docs/functions/index.ColorPicker.html +11 -0
- package/docs/functions/index.CoveringLoader.html +31 -0
- package/docs/functions/index.DirectionPad.html +10 -0
- package/docs/functions/index.Drawer.html +10 -0
- package/docs/functions/index.EqualActions.html +10 -0
- package/docs/functions/index.FullLoader.html +30 -0
- package/docs/functions/index.Gap.html +15 -0
- package/docs/functions/index.HandleEsc.html +29 -0
- package/docs/functions/index.Header.html +14 -0
- package/docs/functions/index.HeaderIconAction.html +31 -0
- package/docs/functions/index.Icon-1.html +29 -0
- package/docs/functions/index.If.html +29 -0
- package/docs/functions/index.Input.html +1 -0
- package/docs/functions/index.KeyValue.html +10 -0
- package/docs/functions/index.Label.html +10 -0
- package/docs/functions/index.Line.html +16 -0
- package/docs/functions/index.List.html +40 -0
- package/docs/functions/index.Loader.html +32 -0
- package/docs/functions/index.Loading.html +34 -0
- package/docs/functions/index.Message.html +16 -0
- package/docs/functions/index.Modal.html +30 -0
- package/docs/functions/index.ModalButtons.html +16 -0
- package/docs/functions/index.PopLoader.html +32 -0
- package/docs/functions/index.PopOption.html +29 -0
- package/docs/functions/index.Progress.html +11 -0
- package/docs/functions/index.SearchContainer.html +15 -0
- package/docs/functions/index.Section.html +19 -0
- package/docs/functions/index.Select.html +15 -0
- package/docs/functions/index.Selector.html +10 -0
- package/docs/functions/index.Spacer.html +15 -0
- package/docs/functions/index.Stats.html +10 -0
- package/docs/functions/index.StickyHeader.html +15 -0
- package/docs/functions/index.Table.html +15 -0
- package/docs/functions/index.TextArea.html +10 -0
- package/docs/functions/index.Toggle.html +13 -0
- package/docs/functions/index.ToolButton.html +16 -0
- package/docs/functions/index.borderPxToRem.html +1 -0
- package/docs/functions/index.createTheme.html +1 -0
- package/docs/functions/index.css.html +1 -0
- package/docs/functions/index.dimensionsPxToRem.html +1 -0
- package/docs/functions/index.fontPxToRem.html +1 -0
- package/docs/functions/index.getCssText.html +1 -0
- package/docs/functions/index.globalCss.html +3 -0
- package/docs/functions/index.injectGlobalStyles.html +1 -0
- package/docs/functions/index.keyframes.html +1 -0
- package/docs/functions/index.pxToRem.html +1 -0
- package/docs/functions/index.styled.html +1 -0
- package/docs/functions/index.useToaster.html +1 -0
- package/docs/index.html +6 -116
- package/docs/interfaces/index.IconProps.html +3 -0
- package/docs/interfaces/index.InputCustomProps.html +7 -0
- package/docs/interfaces/index.StickyHeaderProps.html +9 -0
- package/docs/modules/index.html +1 -0
- package/docs/modules.html +1 -205
- package/docs/types/index.ActionProps.html +1 -0
- package/docs/types/index.CardProps.html +1 -0
- package/docs/types/index.CheckboxProps.html +2 -0
- package/docs/types/index.ChoiceProps.html +1 -0
- package/docs/types/index.ColorPickerProps.html +1 -0
- package/docs/types/index.DirectionPadProps.html +1 -0
- package/docs/types/index.DrawerProps.html +1 -0
- package/docs/types/index.EqualActionsProps.html +1 -0
- package/docs/types/index.HeaderProps.html +1 -0
- package/docs/types/index.InputProps.html +1 -0
- package/docs/types/index.KeyValueProps.html +1 -0
- package/docs/types/index.LabelProps.html +1 -0
- package/docs/types/index.OverwriteProps.html +1 -0
- package/docs/types/index.ProgressProps.html +5 -0
- package/docs/types/index.SelectProps.html +1 -0
- package/docs/types/index.SelectorProps.html +1 -0
- package/docs/types/index.Stat.html +1 -0
- package/docs/types/index.StatsProps.html +1 -0
- package/docs/types/index.TextAreaProps.html +1 -0
- package/docs/types/index.ThemeCSS.html +1 -0
- package/docs/types/index.ToggleProps.html +4 -0
- package/docs/variables/index.CheckboxCheckmarkWrapperSelector.html +1 -0
- package/docs/variables/index.CheckboxTextLabelSelector.html +1 -0
- package/docs/variables/index.ChoiceItemSelector.html +1 -0
- package/docs/variables/index.ColorPickerColorDisplaySelector.html +1 -0
- package/docs/variables/index.DirectionPadButtonDotSelector.html +1 -0
- package/docs/variables/index.DirectionPadButtonSelector.html +1 -0
- package/docs/variables/index.DirectionPadLineSelector.html +1 -0
- package/docs/variables/index.DirectionPadMiddleSelector.html +1 -0
- package/docs/variables/index.DrawerContentSelector.html +1 -0
- package/docs/variables/index.HeaderAfterSelector.html +1 -0
- package/docs/variables/index.HeaderBeforeSelector.html +1 -0
- package/docs/variables/index.HeaderContentsSelector.html +1 -0
- package/docs/variables/index.KeyValueIconSelector.html +1 -0
- package/docs/variables/index.KeyValueItemSelector.html +1 -0
- package/docs/variables/index.KeyValueKeySelector.html +1 -0
- package/docs/variables/index.KeyValuePairSelector.html +1 -0
- package/docs/variables/index.KeyValueValueSelector.html +1 -0
- package/docs/variables/index.LabelTextSelector.html +1 -0
- package/docs/variables/index.ProgressBackgroundSelector.html +1 -0
- package/docs/variables/index.ProgressValueSelector.html +1 -0
- package/docs/variables/index.SelectorItemSelector.html +1 -0
- package/docs/variables/index.StatsItemSelector.html +1 -0
- package/docs/variables/index.StatsLabelSelector.html +1 -0
- package/docs/variables/index.StatsSeparatorSelector.html +1 -0
- package/docs/variables/index.StatsValueSelector.html +1 -0
- package/docs/variables/index.ToggleStyledToggleSelector.html +1 -0
- package/docs/variables/index.config.html +1 -0
- package/docs/variables/index.cssReset.html +2 -0
- package/docs/variables/index.miuiScrollbars.html +1 -0
- package/docs/variables/index.theme.html +1 -0
- package/esm/components/form/Checkbox.d.ts +8 -5
- package/esm/components/form/Checkbox.d.ts.map +1 -1
- package/esm/components/form/Checkbox.js +9 -5
- package/esm/components/form/Checkbox.js.map +1 -1
- package/esm/components/form/Checkbox.stories.d.ts +1 -1
- package/esm/components/form/Checkbox.stories.d.ts.map +1 -1
- package/esm/components/form/Checkbox.styled.js +1 -1
- package/esm/components/form/Checkbox.styled.js.map +1 -1
- package/esm/components/form/ColorPicker.d.ts +5 -3
- package/esm/components/form/ColorPicker.d.ts.map +1 -1
- package/esm/components/form/ColorPicker.js +8 -5
- package/esm/components/form/ColorPicker.js.map +1 -1
- package/esm/components/form/ColorPicker.stories.d.ts +1 -1
- package/esm/components/form/ColorPicker.stories.d.ts.map +1 -1
- package/esm/components/form/ColorPicker.styled.js +1 -1
- package/esm/components/form/ColorPicker.styled.js.map +1 -1
- package/esm/components/form/Label.d.ts +97 -6
- package/esm/components/form/Label.d.ts.map +1 -1
- package/esm/components/form/Label.js +8 -5
- package/esm/components/form/Label.js.map +1 -1
- package/esm/components/form/Label.stories.d.ts +1 -1
- package/esm/components/form/Label.stories.d.ts.map +1 -1
- package/esm/components/form/Select.d.ts +5 -1
- package/esm/components/form/Select.d.ts.map +1 -1
- package/esm/components/form/Select.js +2 -1
- package/esm/components/form/Select.js.map +1 -1
- package/esm/components/form/Select.stories.d.ts +1 -1
- package/esm/components/form/Select.stories.d.ts.map +1 -1
- package/esm/components/form/Toggle.d.ts +100 -5
- package/esm/components/form/Toggle.d.ts.map +1 -1
- package/esm/components/form/Toggle.js +8 -5
- package/esm/components/form/Toggle.js.map +1 -1
- package/esm/components/form/Toggle.stories.d.ts +1 -1
- package/esm/components/form/Toggle.stories.d.ts.map +1 -1
- package/esm/components/form/choice/Choice.d.ts +5 -4
- package/esm/components/form/choice/Choice.d.ts.map +1 -1
- package/esm/components/form/choice/Choice.js +8 -5
- package/esm/components/form/choice/Choice.js.map +1 -1
- package/esm/components/form/choice/Choice.stories.d.ts +1 -1
- package/esm/components/form/choice/Choice.stories.d.ts.map +1 -1
- package/esm/components/form/choice/ChoiceItem.d.ts +5 -1
- package/esm/components/form/choice/ChoiceItem.d.ts.map +1 -1
- package/esm/components/form/choice/ChoiceItem.js +3 -1
- package/esm/components/form/choice/ChoiceItem.js.map +1 -1
- package/esm/components/form/choice/ChoiceItem.styled.d.ts +85 -0
- package/esm/components/form/choice/ChoiceItem.styled.d.ts.map +1 -0
- package/esm/components/form/choice/ChoiceItem.styled.js +6 -0
- package/esm/components/form/choice/ChoiceItem.styled.js.map +1 -0
- package/esm/components/form/input/Input.css.d.ts +16 -16
- package/esm/components/form/input/Input.css.d.ts.map +1 -1
- package/esm/components/form/input/Input.css.js.map +1 -1
- package/esm/components/form/input/Input.d.ts +1 -1
- package/esm/components/form/input/Input.d.ts.map +1 -1
- package/esm/components/form/input/Input.js.map +1 -1
- package/esm/components/form/input/Input.stories.d.ts +1 -1
- package/esm/components/form/input/Input.stories.d.ts.map +1 -1
- package/esm/components/form/input/Input.stories.js +3 -2
- package/esm/components/form/input/Input.stories.js.map +1 -1
- package/esm/components/form/textarea/TextArea.d.ts +4 -2
- package/esm/components/form/textarea/TextArea.d.ts.map +1 -1
- package/esm/components/form/textarea/TextArea.js +7 -5
- package/esm/components/form/textarea/TextArea.js.map +1 -1
- package/esm/components/form/textarea/TextArea.stories.d.ts +1 -1
- package/esm/components/form/textarea/TextArea.stories.d.ts.map +1 -1
- package/esm/components/icons/Battery.js +2 -2
- package/esm/components/icons/Battery.js.map +1 -1
- package/esm/components/icons/Checkmark.js +1 -1
- package/esm/components/icons/Checkmark.js.map +1 -1
- package/esm/components/icons/Config.js +1 -1
- package/esm/components/icons/Config.js.map +1 -1
- package/esm/components/icons/Dots.js +1 -1
- package/esm/components/icons/Dots.js.map +1 -1
- package/esm/components/icons/Heart.js +1 -1
- package/esm/components/icons/Heart.js.map +1 -1
- package/esm/components/icons/Icon.stories.d.ts +10 -0
- package/esm/components/icons/Icon.stories.d.ts.map +1 -0
- package/esm/components/icons/Icon.stories.js +49 -0
- package/esm/components/icons/Icon.stories.js.map +1 -0
- package/esm/components/icons/Trash.js +1 -1
- package/esm/components/icons/Trash.js.map +1 -1
- package/esm/components/layout/card/Card.d.ts +5 -9
- package/esm/components/layout/card/Card.d.ts.map +1 -1
- package/esm/components/layout/card/Card.js +2 -12
- package/esm/components/layout/card/Card.js.map +1 -1
- package/esm/components/layout/card/Card.stories.d.ts +11 -0
- package/esm/components/layout/card/Card.stories.d.ts.map +1 -0
- package/esm/components/layout/card/Card.stories.js +39 -0
- package/esm/components/layout/card/Card.stories.js.map +1 -0
- package/esm/components/layout/card/Card.styled.d.ts +87 -0
- package/esm/components/layout/card/Card.styled.d.ts.map +1 -0
- package/esm/components/layout/card/Card.styled.js +20 -0
- package/esm/components/layout/card/Card.styled.js.map +1 -0
- package/esm/components/layout/header/Header.d.ts +8 -3
- package/esm/components/layout/header/Header.d.ts.map +1 -1
- package/esm/components/layout/header/Header.js +10 -5
- package/esm/components/layout/header/Header.js.map +1 -1
- package/esm/components/layout/header/Header.stories.d.ts +1 -1
- package/esm/components/layout/header/Header.stories.d.ts.map +1 -1
- package/esm/components/layout/header/HeaderIconAction.d.ts.map +1 -1
- package/esm/components/layout/header/HeaderIconAction.js.map +1 -1
- package/esm/components/layout/header/HeaderIconAction.stories.d.ts +1 -1
- package/esm/components/layout/header/HeaderIconAction.stories.d.ts.map +1 -1
- package/esm/components/layout/header/HeaderIconAction.styled.js +2 -2
- package/esm/components/layout/header/HeaderIconAction.styled.js.map +1 -1
- package/esm/components/layout/header/StickyHeader.d.ts +1 -0
- package/esm/components/layout/header/StickyHeader.d.ts.map +1 -1
- package/esm/components/layout/header/StickyHeader.js +1 -1
- package/esm/components/layout/header/StickyHeader.js.map +1 -1
- package/esm/components/layout/header/StickyHeader.stories.d.ts +1 -1
- package/esm/components/layout/header/StickyHeader.stories.d.ts.map +1 -1
- package/esm/components/layout/list/Header.stories.d.ts +1 -1
- package/esm/components/layout/list/Header.stories.d.ts.map +1 -1
- package/esm/components/layout/list/Item.stories.d.ts +1 -1
- package/esm/components/layout/list/Item.stories.d.ts.map +1 -1
- package/esm/components/layout/list/Item.stories.js +0 -2
- package/esm/components/layout/list/Item.stories.js.map +1 -1
- package/esm/components/layout/list/Label.stories.d.ts +1 -1
- package/esm/components/layout/list/Label.stories.d.ts.map +1 -1
- package/esm/components/layout/list/List.stories.d.ts +1 -1
- package/esm/components/layout/list/List.stories.d.ts.map +1 -1
- package/esm/components/layout/list/Value.stories.d.ts +1 -1
- package/esm/components/layout/list/Value.stories.d.ts.map +1 -1
- package/esm/components/layout/section/SearchContainer.d.ts +83 -6
- package/esm/components/layout/section/SearchContainer.d.ts.map +1 -1
- package/esm/components/layout/section/SearchContainer.js +2 -6
- package/esm/components/layout/section/SearchContainer.js.map +1 -1
- package/esm/components/layout/section/Section.d.ts +86 -7
- package/esm/components/layout/section/Section.d.ts.map +1 -1
- package/esm/components/layout/section/Section.js +4 -2
- package/esm/components/layout/section/Section.js.map +1 -1
- package/esm/components/layout/section/Section.stories.d.ts +1 -1
- package/esm/components/layout/section/Section.stories.d.ts.map +1 -1
- package/esm/components/layout/table/Table.stories.d.ts +1 -1
- package/esm/components/layout/table/Table.stories.d.ts.map +1 -1
- package/esm/components/native/index.d.ts.map +1 -1
- package/esm/components/native/index.js +3 -1
- package/esm/components/native/index.js.map +1 -1
- package/esm/components/ui/action/Action.js.map +1 -1
- package/esm/components/ui/action/Action.stories.d.ts +1 -1
- package/esm/components/ui/action/Action.stories.d.ts.map +1 -1
- package/esm/components/ui/action/EqualActions.d.ts +4 -3
- package/esm/components/ui/action/EqualActions.d.ts.map +1 -1
- package/esm/components/ui/action/EqualActions.js +8 -7
- package/esm/components/ui/action/EqualActions.js.map +1 -1
- package/esm/components/ui/action/EqualActions.stories.d.ts +10 -0
- package/esm/components/ui/action/EqualActions.stories.d.ts.map +1 -0
- package/esm/components/ui/action/EqualActions.stories.js +38 -0
- package/esm/components/ui/action/EqualActions.stories.js.map +1 -0
- package/esm/components/ui/action/EqualActions.styled.d.ts +87 -0
- package/esm/components/ui/action/EqualActions.styled.d.ts.map +1 -0
- package/esm/components/ui/action/EqualActions.styled.js +17 -0
- package/esm/components/ui/action/EqualActions.styled.js.map +1 -0
- package/esm/components/ui/button/Button.stories.d.ts +1 -1
- package/esm/components/ui/button/Button.stories.d.ts.map +1 -1
- package/esm/components/ui/directionPad/Button.d.ts +6 -4
- package/esm/components/ui/directionPad/Button.d.ts.map +1 -1
- package/esm/components/ui/directionPad/Button.js +10 -7
- package/esm/components/ui/directionPad/Button.js.map +1 -1
- package/esm/components/ui/directionPad/Button.styled.d.ts +168 -0
- package/esm/components/ui/directionPad/Button.styled.d.ts.map +1 -0
- package/esm/components/ui/directionPad/Button.styled.js +20 -0
- package/esm/components/ui/directionPad/Button.styled.js.map +1 -0
- package/esm/components/ui/directionPad/Middle.d.ts +4 -3
- package/esm/components/ui/directionPad/Middle.d.ts.map +1 -1
- package/esm/components/ui/directionPad/Middle.js +7 -5
- package/esm/components/ui/directionPad/Middle.js.map +1 -1
- package/esm/components/ui/directionPad/Middle.styled.d.ts +85 -0
- package/esm/components/ui/directionPad/Middle.styled.d.ts.map +1 -0
- package/esm/components/ui/directionPad/Middle.styled.js +16 -0
- package/esm/components/ui/directionPad/Middle.styled.js.map +1 -0
- package/esm/components/ui/directionPad/Pad.d.ts +9 -4
- package/esm/components/ui/directionPad/Pad.d.ts.map +1 -1
- package/esm/components/ui/directionPad/Pad.js +15 -11
- package/esm/components/ui/directionPad/Pad.js.map +1 -1
- package/esm/components/ui/directionPad/Pad.stories.d.ts +10 -0
- package/esm/components/ui/directionPad/Pad.stories.d.ts.map +1 -0
- package/esm/components/ui/directionPad/Pad.stories.js +79 -0
- package/esm/components/ui/directionPad/Pad.stories.js.map +1 -0
- package/esm/components/ui/directionPad/Pad.styled.d.ts +168 -0
- package/esm/components/ui/directionPad/Pad.styled.d.ts.map +1 -0
- package/esm/components/ui/directionPad/Pad.styled.js +17 -0
- package/esm/components/ui/directionPad/Pad.styled.js.map +1 -0
- package/esm/components/ui/drawer/Drawer.d.ts +7 -18
- package/esm/components/ui/drawer/Drawer.d.ts.map +1 -1
- package/esm/components/ui/drawer/Drawer.js +38 -54
- package/esm/components/ui/drawer/Drawer.js.map +1 -1
- package/esm/components/ui/drawer/Drawer.stories.d.ts +11 -0
- package/esm/components/ui/drawer/Drawer.stories.d.ts.map +1 -0
- package/esm/components/ui/drawer/Drawer.stories.js +101 -0
- package/esm/components/ui/drawer/Drawer.stories.js.map +1 -0
- package/esm/components/ui/drawer/Drawer.styled.d.ts +168 -0
- package/esm/components/ui/drawer/Drawer.styled.d.ts.map +1 -0
- package/esm/components/ui/drawer/Drawer.styled.js +17 -0
- package/esm/components/ui/drawer/Drawer.styled.js.map +1 -0
- package/esm/components/ui/keyValue/KeyValue.d.ts +10 -4
- package/esm/components/ui/keyValue/KeyValue.d.ts.map +1 -1
- package/esm/components/ui/keyValue/KeyValue.js +26 -19
- package/esm/components/ui/keyValue/KeyValue.js.map +1 -1
- package/esm/components/ui/keyValue/KeyValue.stories.d.ts +11 -0
- package/esm/components/ui/keyValue/KeyValue.stories.d.ts.map +1 -0
- package/esm/components/ui/keyValue/KeyValue.stories.js +98 -0
- package/esm/components/ui/keyValue/KeyValue.stories.js.map +1 -0
- package/esm/components/ui/keyValue/KeyValue.styled.d.ts +503 -0
- package/esm/components/ui/keyValue/KeyValue.styled.d.ts.map +1 -0
- package/esm/components/ui/keyValue/KeyValue.styled.js +55 -0
- package/esm/components/ui/keyValue/KeyValue.styled.js.map +1 -0
- package/esm/components/ui/line/Line.stories.d.ts +1 -1
- package/esm/components/ui/line/Line.stories.d.ts.map +1 -1
- package/esm/components/ui/loader/CoveringLoader.stories.d.ts +1 -1
- package/esm/components/ui/loader/CoveringLoader.stories.d.ts.map +1 -1
- package/esm/components/ui/loader/FullLoader.stories.d.ts +1 -1
- package/esm/components/ui/loader/FullLoader.stories.d.ts.map +1 -1
- package/esm/components/ui/loader/Loader.stories.d.ts +1 -1
- package/esm/components/ui/loader/Loader.stories.d.ts.map +1 -1
- package/esm/components/ui/loader/Loading.stories.d.ts +1 -1
- package/esm/components/ui/loader/Loading.stories.d.ts.map +1 -1
- package/esm/components/ui/loader/PopLoader.js +1 -1
- package/esm/components/ui/loader/PopLoader.js.map +1 -1
- package/esm/components/ui/loader/PopLoader.stories.d.ts +1 -1
- package/esm/components/ui/loader/PopLoader.stories.d.ts.map +1 -1
- package/esm/components/ui/message/Message.stories.d.ts +1 -1
- package/esm/components/ui/message/Message.stories.d.ts.map +1 -1
- package/esm/components/ui/modal/Modal.stories.d.ts +1 -1
- package/esm/components/ui/modal/Modal.stories.d.ts.map +1 -1
- package/esm/components/ui/modal/ModalButtons.stories.d.ts +1 -1
- package/esm/components/ui/modal/ModalButtons.stories.d.ts.map +1 -1
- package/esm/components/ui/modal/ModalButtons.styled.d.ts +87 -89
- package/esm/components/ui/modal/ModalButtons.styled.d.ts.map +1 -1
- package/esm/components/ui/modal/ModalButtons.styled.js +4 -2
- package/esm/components/ui/modal/ModalButtons.styled.js.map +1 -1
- package/esm/components/ui/pop/OnButtonClick.js +1 -1
- package/esm/components/ui/pop/OnButtonClick.js.map +1 -1
- package/esm/components/ui/pop/Pop.d.ts.map +1 -1
- package/esm/components/ui/pop/Pop.js +4 -0
- package/esm/components/ui/pop/Pop.js.map +1 -1
- package/esm/components/ui/pop/Pop.stories.d.ts +1 -1
- package/esm/components/ui/pop/Pop.stories.d.ts.map +1 -1
- package/esm/components/ui/pop/Pop.styled.js +1 -1
- package/esm/components/ui/pop/Pop.styled.js.map +1 -1
- package/esm/components/ui/progress/Progress.d.ts +6 -4
- package/esm/components/ui/progress/Progress.d.ts.map +1 -1
- package/esm/components/ui/progress/Progress.js +10 -5
- package/esm/components/ui/progress/Progress.js.map +1 -1
- package/esm/components/ui/progress/Progress.stories.d.ts +1 -1
- package/esm/components/ui/progress/Progress.stories.d.ts.map +1 -1
- package/esm/components/ui/progress/Progress.stories.js.map +1 -1
- package/esm/components/ui/stats/Stats.d.ts +14 -8
- package/esm/components/ui/stats/Stats.d.ts.map +1 -1
- package/esm/components/ui/stats/Stats.js +16 -14
- package/esm/components/ui/stats/Stats.js.map +1 -1
- package/esm/components/ui/stats/Stats.stories.d.ts +11 -0
- package/esm/components/ui/stats/Stats.stories.d.ts.map +1 -0
- package/esm/components/ui/stats/Stats.stories.js +104 -0
- package/esm/components/ui/stats/Stats.stories.js.map +1 -0
- package/esm/components/ui/stats/Stats.styled.d.ts +419 -0
- package/esm/components/ui/stats/Stats.styled.d.ts.map +1 -0
- package/esm/components/ui/stats/Stats.styled.js +49 -0
- package/esm/components/ui/stats/Stats.styled.js.map +1 -0
- package/esm/components/ui/tabs/Item.d.ts +8 -4
- package/esm/components/ui/tabs/Item.d.ts.map +1 -1
- package/esm/components/ui/tabs/Item.js +5 -7
- package/esm/components/ui/tabs/Item.js.map +1 -1
- package/esm/components/ui/tabs/Item.styled.d.ts +4 -0
- package/esm/components/ui/tabs/Item.styled.d.ts.map +1 -0
- package/esm/components/ui/tabs/Item.styled.js +17 -0
- package/esm/components/ui/tabs/Item.styled.js.map +1 -0
- package/esm/components/ui/tabs/Selector.d.ts +7 -5
- package/esm/components/ui/tabs/Selector.d.ts.map +1 -1
- package/esm/components/ui/tabs/Selector.js +9 -7
- package/esm/components/ui/tabs/Selector.js.map +1 -1
- package/esm/components/ui/tabs/Selector.stories.d.ts +10 -0
- package/esm/components/ui/tabs/Selector.stories.d.ts.map +1 -0
- package/esm/components/ui/tabs/Selector.stories.js +72 -0
- package/esm/components/ui/tabs/Selector.stories.js.map +1 -0
- package/esm/components/ui/tabs/Selector.styled.d.ts +2 -0
- package/esm/components/ui/tabs/Selector.styled.d.ts.map +1 -0
- package/esm/components/ui/tabs/Selector.styled.js +11 -0
- package/esm/components/ui/tabs/Selector.styled.js.map +1 -0
- package/esm/components/ui/toaster/Toaster.d.ts.map +1 -1
- package/esm/components/ui/toaster/Toaster.js +1 -0
- package/esm/components/ui/toaster/Toaster.js.map +1 -1
- package/esm/components/ui/toaster/Toaster.stories.d.ts +1 -1
- package/esm/components/ui/toaster/Toaster.stories.d.ts.map +1 -1
- package/esm/components/ui/toolButton/ToolButton.stories.d.ts +1 -1
- package/esm/components/ui/toolButton/ToolButton.stories.d.ts.map +1 -1
- package/esm/components/utils/Gap.d.ts +87 -0
- package/esm/components/utils/Gap.d.ts.map +1 -0
- package/esm/components/utils/Gap.js +15 -0
- package/esm/components/utils/Gap.js.map +1 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -0
- package/esm/index.js.map +1 -1
- package/esm/scrollbars.css.d.ts.map +1 -1
- package/esm/scrollbars.css.js +2 -2
- package/esm/scrollbars.css.js.map +1 -1
- package/esm/theme.css-global.d.ts +3 -0
- package/esm/theme.css-global.d.ts.map +1 -0
- package/esm/theme.css-global.js +16 -0
- package/esm/theme.css-global.js.map +1 -0
- package/esm/theme.css-reset.d.ts.map +1 -1
- package/esm/theme.css-reset.js +2 -4
- package/esm/theme.css-reset.js.map +1 -1
- package/esm/theme.d.ts +2 -2
- package/esm/utils/index.d.ts +0 -1
- package/esm/utils/index.d.ts.map +1 -1
- package/esm/utils/index.js +0 -1
- package/esm/utils/index.js.map +1 -1
- package/package.json +13 -34
- package/src/components/form/Checkbox.stories.tsx +1 -1
- package/src/components/form/Checkbox.styled.ts +1 -1
- package/src/components/form/Checkbox.tsx +23 -14
- package/src/components/form/ColorPicker.stories.tsx +1 -1
- package/src/components/form/ColorPicker.styled.ts +1 -1
- package/src/components/form/ColorPicker.tsx +21 -14
- package/src/components/form/Label.stories.tsx +1 -1
- package/src/components/form/Label.tsx +13 -11
- package/src/components/form/Select.stories.tsx +1 -1
- package/src/components/form/Select.tsx +8 -1
- package/src/components/form/Toggle.stories.tsx +1 -1
- package/src/components/form/Toggle.tsx +12 -9
- package/src/components/form/choice/Choice.stories.tsx +1 -1
- package/src/components/form/choice/Choice.tsx +13 -8
- package/src/components/form/choice/ChoiceItem.styled.ts +9 -0
- package/src/components/form/choice/ChoiceItem.tsx +8 -2
- package/src/components/form/input/Input.css.ts +3 -5
- package/src/components/form/input/Input.stories.tsx +5 -4
- package/src/components/form/input/Input.tsx +3 -2
- package/src/components/form/textarea/TextArea.stories.tsx +1 -1
- package/src/components/form/textarea/TextArea.tsx +12 -7
- package/src/components/icons/Battery.tsx +2 -2
- package/src/components/icons/Checkmark.tsx +1 -1
- package/src/components/icons/Config.tsx +1 -1
- package/src/components/icons/Dots.tsx +1 -1
- package/src/components/icons/Heart.tsx +1 -1
- package/src/components/icons/Icon.stories.tsx +82 -0
- package/src/components/icons/Trash.tsx +1 -1
- package/src/components/layout/card/Card.stories.tsx +93 -0
- package/src/components/layout/card/Card.styled.ts +25 -0
- package/src/components/layout/card/Card.tsx +5 -27
- package/src/components/layout/header/Header.stories.tsx +2 -2
- package/src/components/layout/header/Header.tsx +15 -7
- package/src/components/layout/header/HeaderIconAction.stories.tsx +1 -1
- package/src/components/layout/header/HeaderIconAction.styled.ts +2 -2
- package/src/components/layout/header/HeaderIconAction.tsx +1 -0
- package/src/components/layout/header/StickyHeader.stories.tsx +2 -2
- package/src/components/layout/header/StickyHeader.tsx +10 -2
- package/src/components/layout/list/Header.stories.tsx +1 -1
- package/src/components/layout/list/Item.stories.tsx +1 -4
- package/src/components/layout/list/Label.stories.tsx +1 -1
- package/src/components/layout/list/List.stories.tsx +1 -1
- package/src/components/layout/list/Value.stories.tsx +1 -1
- package/src/components/layout/section/SearchContainer.tsx +2 -15
- package/src/components/layout/section/Section.stories.tsx +1 -1
- package/src/components/layout/section/Section.tsx +4 -7
- package/src/components/layout/table/Table.stories.tsx +1 -1
- package/src/components/native/index.ts +3 -1
- package/src/components/ui/action/Action.stories.tsx +1 -1
- package/src/components/ui/action/Action.tsx +2 -2
- package/src/components/ui/action/EqualActions.stories.tsx +72 -0
- package/src/components/ui/action/EqualActions.styled.ts +21 -0
- package/src/components/ui/action/EqualActions.tsx +21 -14
- package/src/components/ui/button/Button.stories.tsx +1 -1
- package/src/components/ui/directionPad/Button.styled.ts +25 -0
- package/src/components/ui/directionPad/Button.tsx +16 -8
- package/src/components/ui/directionPad/Middle.styled.ts +19 -0
- package/src/components/ui/directionPad/Middle.tsx +13 -7
- package/src/components/ui/directionPad/Pad.stories.tsx +143 -0
- package/src/components/ui/directionPad/Pad.styled.ts +22 -0
- package/src/components/ui/directionPad/Pad.tsx +30 -19
- package/src/components/ui/drawer/Drawer.stories.tsx +167 -0
- package/src/components/ui/drawer/Drawer.styled.ts +22 -0
- package/src/components/ui/drawer/Drawer.tsx +44 -67
- package/src/components/ui/keyValue/KeyValue.stories.tsx +143 -0
- package/src/components/ui/keyValue/KeyValue.styled.ts +70 -0
- package/src/components/ui/keyValue/KeyValue.tsx +49 -24
- package/src/components/ui/line/Line.stories.tsx +1 -1
- package/src/components/ui/loader/CoveringLoader.stories.tsx +1 -1
- package/src/components/ui/loader/FullLoader.stories.tsx +1 -1
- package/src/components/ui/loader/Loader.stories.tsx +1 -1
- package/src/components/ui/loader/Loading.stories.tsx +1 -1
- package/src/components/ui/loader/PopLoader.stories.tsx +1 -1
- package/src/components/ui/loader/PopLoader.tsx +1 -1
- package/src/components/ui/message/Message.stories.tsx +1 -1
- package/src/components/ui/message/Message.tsx +1 -1
- package/src/components/ui/modal/Modal.stories.tsx +1 -1
- package/src/components/ui/modal/ModalButtons.stories.tsx +1 -1
- package/src/components/ui/modal/ModalButtons.styled.ts +4 -4
- package/src/components/ui/pop/OnButtonClick.tsx +1 -1
- package/src/components/ui/pop/Pop.stories.tsx +1 -1
- package/src/components/ui/pop/Pop.styled.ts +1 -1
- package/src/components/ui/pop/Pop.tsx +5 -1
- package/src/components/ui/progress/Progress.stories.tsx +2 -1
- package/src/components/ui/progress/Progress.tsx +25 -7
- package/src/components/ui/stats/Stats.stories.tsx +167 -0
- package/src/components/ui/stats/Stats.styled.ts +62 -0
- package/src/components/ui/stats/Stats.tsx +35 -25
- package/src/components/ui/tabs/Item.styled.ts +19 -0
- package/src/components/ui/tabs/Item.tsx +14 -13
- package/src/components/ui/tabs/Selector.stories.tsx +108 -0
- package/src/components/ui/tabs/Selector.styled.ts +13 -0
- package/src/components/ui/tabs/Selector.tsx +16 -13
- package/src/components/ui/toaster/Toaster.stories.tsx +1 -1
- package/src/components/ui/toaster/Toaster.tsx +1 -0
- package/src/components/ui/toolButton/ToolButton.stories.tsx +1 -1
- package/src/components/utils/Gap.tsx +19 -0
- package/src/index.ts +2 -0
- package/src/scrollbars.css.ts +3 -3
- package/src/theme.css-global.ts +19 -0
- package/src/theme.css-reset.ts +2 -4
- package/src/types/fnWithProps.ts +1 -1
- package/src/utils/index.ts +0 -1
- package/.prettierignore +0 -3
- package/.prettierrc.json +0 -1
- package/dist/components/layout/card/Card.module.scss +0 -15
- package/dist/components/layout/section/SearchContainer.module.scss +0 -3
- package/dist/components/ui/action/EqualActions.module.scss +0 -11
- package/dist/components/ui/directionPad/Pad.module.scss +0 -45
- package/dist/components/ui/drawer/Drawer.module.scss +0 -15
- package/dist/components/ui/keyValue/KeyValue.module.scss +0 -57
- package/dist/components/ui/message/Message.module.scss +0 -31
- package/dist/components/ui/modal/ModalButton.d.ts +0 -8
- package/dist/components/ui/modal/ModalButton.d.ts.map +0 -1
- package/dist/components/ui/modal/ModalButton.js +0 -31
- package/dist/components/ui/modal/ModalButton.js.map +0 -1
- package/dist/components/ui/stats/Stats.module.scss +0 -48
- package/dist/components/ui/tabs/Item.module.scss +0 -11
- package/dist/components/ui/tabs/Selector.module.scss +0 -6
- package/dist/global.scss +0 -95
- package/dist/scrollbars.scss +0 -22
- package/dist/utils/makeVariants.d.ts +0 -3
- package/dist/utils/makeVariants.d.ts.map +0 -1
- package/dist/utils/makeVariants.js +0 -14
- package/dist/utils/makeVariants.js.map +0 -1
- package/docs/assets/pages.css +0 -14
- package/docs/classes/Drawer.html +0 -549
- package/docs/classes/Pop.html +0 -580
- package/docs/classes/ToasterProvider.html +0 -568
- package/docs/enums/ICON.html +0 -123
- package/docs/functions/Action.html +0 -135
- package/docs/functions/Button.html +0 -161
- package/docs/functions/Card.html +0 -132
- package/docs/functions/Checkbox.html +0 -134
- package/docs/functions/Choice.html +0 -132
- package/docs/functions/ColorPicker.html +0 -134
- package/docs/functions/CoveringLoader.html +0 -135
- package/docs/functions/DirectionPad.html +0 -132
- package/docs/functions/EqualActions.html +0 -132
- package/docs/functions/FullLoader.html +0 -134
- package/docs/functions/HandleEsc.html +0 -132
- package/docs/functions/Header.html +0 -137
- package/docs/functions/HeaderIconAction.html +0 -135
- package/docs/functions/Icon-1.html +0 -132
- package/docs/functions/If.html +0 -132
- package/docs/functions/Input.html +0 -131
- package/docs/functions/KeyValue.html +0 -132
- package/docs/functions/Label.html +0 -132
- package/docs/functions/Line.html +0 -161
- package/docs/functions/List-1.html +0 -142
- package/docs/functions/Loader.html +0 -136
- package/docs/functions/Loading.html +0 -138
- package/docs/functions/Message.html +0 -161
- package/docs/functions/Modal-1.html +0 -132
- package/docs/functions/ModalButtons.html +0 -155
- package/docs/functions/PopLoader.html +0 -136
- package/docs/functions/PopOption.html +0 -132
- package/docs/functions/Progress.html +0 -135
- package/docs/functions/SearchContainer.html +0 -132
- package/docs/functions/Section.html +0 -167
- package/docs/functions/Select.html +0 -155
- package/docs/functions/Selector.html +0 -131
- package/docs/functions/Spacer.html +0 -155
- package/docs/functions/Stats.html +0 -132
- package/docs/functions/StickyHeader.html +0 -126
- package/docs/functions/Table.html +0 -155
- package/docs/functions/TextArea.html +0 -132
- package/docs/functions/Toggle.html +0 -132
- package/docs/functions/ToolButton.html +0 -161
- package/docs/functions/borderPxToRem.html +0 -126
- package/docs/functions/createTheme.html +0 -135
- package/docs/functions/css.html +0 -133
- package/docs/functions/dimensionsPxToRem.html +0 -126
- package/docs/functions/fontPxToRem.html +0 -126
- package/docs/functions/getCssText.html +0 -121
- package/docs/functions/globalCss.html +0 -137
- package/docs/functions/keyframes.html +0 -137
- package/docs/functions/pxToRem.html +0 -126
- package/docs/functions/styled.html +0 -137
- package/docs/functions/useToaster.html +0 -121
- package/docs/interfaces/IconProps.html +0 -78
- package/docs/interfaces/InputCustomProps.html +0 -126
- package/docs/interfaces/LabelProps.html +0 -103
- package/docs/interfaces/StickyHeaderProps.html +0 -99
- package/docs/interfaces/ToggleProps.html +0 -135
- package/docs/modules/List.html +0 -60
- package/docs/modules/Modal.html +0 -57
- package/docs/pages/tutorials/Test.html +0 -116
- package/docs/types/ActionProps.html +0 -117
- package/docs/types/ChoiceProps.html +0 -117
- package/docs/types/InputProps.html +0 -122
- package/docs/types/OverwriteProps.html +0 -132
- package/docs/types/ThemeCSS.html +0 -117
- package/docs/variables/List.Header.html +0 -52
- package/docs/variables/List.Item.html +0 -52
- package/docs/variables/Modal.RemovePadding.html +0 -51
- package/docs/variables/config.html +0 -131
- package/docs/variables/cssReset.html +0 -119
- package/docs/variables/miuiScrollbars.html +0 -117
- package/docs/variables/theme.html +0 -117
- package/esm/components/layout/card/Card.module.scss +0 -15
- package/esm/components/layout/section/SearchContainer.module.scss +0 -3
- package/esm/components/ui/action/EqualActions.module.scss +0 -11
- package/esm/components/ui/directionPad/Pad.module.scss +0 -45
- package/esm/components/ui/drawer/Drawer.module.scss +0 -15
- package/esm/components/ui/keyValue/KeyValue.module.scss +0 -57
- package/esm/components/ui/message/Message.module.scss +0 -31
- package/esm/components/ui/modal/ModalButton.d.ts +0 -8
- package/esm/components/ui/modal/ModalButton.d.ts.map +0 -1
- package/esm/components/ui/modal/ModalButton.js +0 -13
- package/esm/components/ui/modal/ModalButton.js.map +0 -1
- package/esm/components/ui/stats/Stats.module.scss +0 -48
- package/esm/components/ui/tabs/Item.module.scss +0 -11
- package/esm/components/ui/tabs/Selector.module.scss +0 -6
- package/esm/global.scss +0 -95
- package/esm/scrollbars.scss +0 -22
- package/esm/utils/makeVariants.d.ts +0 -3
- package/esm/utils/makeVariants.d.ts.map +0 -1
- package/esm/utils/makeVariants.js +0 -11
- package/esm/utils/makeVariants.js.map +0 -1
- package/next.config.js +0 -6
- package/src/components/layout/card/Card.module.scss +0 -15
- package/src/components/layout/section/SearchContainer.module.scss +0 -3
- package/src/components/ui/action/EqualActions.module.scss +0 -11
- package/src/components/ui/directionPad/Pad.module.scss +0 -45
- package/src/components/ui/drawer/Drawer.module.scss +0 -15
- package/src/components/ui/keyValue/KeyValue.module.scss +0 -57
- package/src/components/ui/message/Message.module.scss +0 -31
- package/src/components/ui/modal/ModalButton.tsx +0 -27
- package/src/components/ui/stats/Stats.module.scss +0 -48
- package/src/components/ui/tabs/Item.module.scss +0 -11
- package/src/components/ui/tabs/Selector.module.scss +0 -6
- package/src/demo/Demo.module.scss +0 -4
- package/src/demo/Demo.tsx +0 -25
- package/src/demo/Main.module.scss +0 -38
- package/src/demo/Main.tsx +0 -84
- package/src/demo/Menu.module.scss +0 -42
- package/src/demo/Menu.tsx +0 -43
- package/src/demo/NextLink.tsx +0 -11
- package/src/demo/components/form/Form.tsx +0 -31
- package/src/demo/components/form/Search.tsx +0 -33
- package/src/demo/components/form/TextArea.tsx +0 -13
- package/src/demo/components/layout/card/Card.tsx +0 -21
- package/src/demo/components/ui/action/Action.tsx +0 -109
- package/src/demo/components/ui/action/ActionDemo.module.scss +0 -3
- package/src/demo/components/ui/directionPad/Pad.tsx +0 -41
- package/src/demo/components/ui/drawer/Drawer.tsx +0 -29
- package/src/demo/components/ui/icons/Icons.tsx +0 -24
- package/src/demo/components/ui/keyValue/KeyValue.tsx +0 -49
- package/src/demo/components/ui/stats/Stats.module.scss +0 -29
- package/src/demo/components/ui/stats/Stats.tsx +0 -60
- package/src/demo/components/ui/tabs/Tabs.tsx +0 -15
- package/src/demo/componentsMap.ts +0 -107
- package/src/demo/utils/safeUseHash.ts +0 -15
- package/src/demo-global.scss +0 -9
- package/src/global.scss +0 -95
- package/src/pages/_app.tsx +0 -24
- package/src/pages/index.tsx +0 -10
- package/src/pages/react-miui.tsx +0 -13
- package/src/scrollbars.scss +0 -22
- package/src/utils/makeVariants.ts +0 -13
- package/typedoc.cjs +0 -5
- package/typedoc.mjs +0 -49
- /package/src/demo/{components/form/countries.const.ts → countries.const.ts} +0 -0
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
flex: 1;
|
|
3
|
-
height: 100%;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.header {
|
|
9
|
-
margin: 0;
|
|
10
|
-
padding: 20px 20px 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.component {
|
|
14
|
-
padding: 20px;
|
|
15
|
-
flex: 1;
|
|
16
|
-
overflow: auto;
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
margin-top: 20px;
|
|
20
|
-
|
|
21
|
-
&--transparent {
|
|
22
|
-
background-position: 0px 0px, 10px 10px;
|
|
23
|
-
background-size: 20px 20px;
|
|
24
|
-
background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee 100%),linear-gradient(45deg, #eee 25%, white 25%, white 75%, #eee 75%, #eee 100%);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&--mobile {
|
|
28
|
-
border-radius: 20px;
|
|
29
|
-
max-width: 400px;
|
|
30
|
-
width: 100%;
|
|
31
|
-
padding: 0;
|
|
32
|
-
margin: 20px 0;
|
|
33
|
-
align-self: center;
|
|
34
|
-
border: 10px solid black;
|
|
35
|
-
border-top-width: 30px;
|
|
36
|
-
position: relative;
|
|
37
|
-
}
|
|
38
|
-
}
|
package/src/demo/Main.tsx
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
|
|
3
|
-
import classnames from "classnames";
|
|
4
|
-
|
|
5
|
-
import type { AnyComponent } from "../types";
|
|
6
|
-
import type { TheMap, TheMapItem } from "./componentsMap";
|
|
7
|
-
|
|
8
|
-
import { Choice } from "../components/form/choice/Choice";
|
|
9
|
-
|
|
10
|
-
import { safeUseHash } from "./utils/safeUseHash";
|
|
11
|
-
import { componentsMap } from "./componentsMap";
|
|
12
|
-
|
|
13
|
-
import styles from "./Main.module.scss";
|
|
14
|
-
|
|
15
|
-
type BG = "white" | "transparent" | "mobile";
|
|
16
|
-
|
|
17
|
-
interface ComponentInfo {
|
|
18
|
-
Component: AnyComponent<any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
19
|
-
name: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const getComponentByHash = (hash: string): ComponentInfo | null => {
|
|
23
|
-
const parts = hash.split("/");
|
|
24
|
-
let obj: TheMap | undefined = componentsMap,
|
|
25
|
-
objItem: TheMapItem | undefined;
|
|
26
|
-
|
|
27
|
-
while (parts.length) {
|
|
28
|
-
const first = parts.shift()!;
|
|
29
|
-
objItem = obj?.[first];
|
|
30
|
-
|
|
31
|
-
if (!objItem) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
obj = objItem.children;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
if (objItem?.Component) {
|
|
38
|
-
return {
|
|
39
|
-
name: objItem.name,
|
|
40
|
-
Component: objItem.Component,
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return null;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const values: BG[] = ["white", "transparent", "mobile"];
|
|
48
|
-
|
|
49
|
-
const Main: React.FC = (props) => {
|
|
50
|
-
const [bg, handleBgChange] = useState<string>("white");
|
|
51
|
-
|
|
52
|
-
const hash = safeUseHash();
|
|
53
|
-
const hashWithoutHash = hash.substr(1);
|
|
54
|
-
const info = getComponentByHash(hashWithoutHash);
|
|
55
|
-
|
|
56
|
-
if (!info) {
|
|
57
|
-
return (
|
|
58
|
-
<div className={styles.container}>
|
|
59
|
-
<h1 className={styles.header}>Hi there</h1>
|
|
60
|
-
This is poor man's StoryBook.
|
|
61
|
-
</div>
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const Component = info.Component;
|
|
66
|
-
|
|
67
|
-
const componentCls = classnames(styles.component, {
|
|
68
|
-
[styles["component--transparent"] as string]: bg === "transparent",
|
|
69
|
-
[styles["component--mobile"] as string]: bg === "mobile",
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
return (
|
|
73
|
-
<div className={styles.container}>
|
|
74
|
-
<h1 className={styles.header}>{info.name}</h1>
|
|
75
|
-
<Choice values={values} value={bg} name={"x"} onChange={handleBgChange} />
|
|
76
|
-
|
|
77
|
-
<div className={componentCls}>
|
|
78
|
-
<Component />
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export { Main };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
.menu {
|
|
2
|
-
margin: 0;
|
|
3
|
-
padding: 0;
|
|
4
|
-
border-right: 1px solid black;
|
|
5
|
-
overflow: auto;
|
|
6
|
-
|
|
7
|
-
ul {
|
|
8
|
-
margin: 0 0 0 15px;
|
|
9
|
-
padding: 0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
li {
|
|
13
|
-
padding: 0;
|
|
14
|
-
margin: 0;
|
|
15
|
-
list-style-type: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
> ul {
|
|
19
|
-
margin: 0;
|
|
20
|
-
display: block;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
> ul > li > a {
|
|
24
|
-
padding: 10px;
|
|
25
|
-
text-transform: uppercase;
|
|
26
|
-
font-size: 16px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
a {
|
|
30
|
-
padding: 5px 10px;
|
|
31
|
-
display: block;
|
|
32
|
-
color: black;
|
|
33
|
-
text-decoration: none;
|
|
34
|
-
font-size: 14px;
|
|
35
|
-
|
|
36
|
-
&:hover {
|
|
37
|
-
background: var(--active-bg);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
--focus-bg-set: var(--focus-color);
|
|
41
|
-
}
|
|
42
|
-
}
|
package/src/demo/Menu.tsx
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import classnames from "classnames";
|
|
4
|
-
|
|
5
|
-
import type { componentsMap } from "./componentsMap";
|
|
6
|
-
|
|
7
|
-
import styles from "./Menu.module.scss";
|
|
8
|
-
|
|
9
|
-
interface Props {
|
|
10
|
-
ancestors?: string[];
|
|
11
|
-
list: typeof componentsMap;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const Menu: React.FC<Props> = (props) => {
|
|
15
|
-
const cmp = Object.entries(props.list).map(([urlHash, component]) => {
|
|
16
|
-
const label = component.name;
|
|
17
|
-
const children = component.children
|
|
18
|
-
? <Menu ancestors={[...props.ancestors!, urlHash]} list={component.children} />
|
|
19
|
-
: null;
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<li key={urlHash}>
|
|
23
|
-
<a href={"#" + [...props.ancestors!, urlHash].join("/")}>{label}</a>
|
|
24
|
-
{children}
|
|
25
|
-
</li>
|
|
26
|
-
);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
const contents = <ul>{cmp}</ul>;
|
|
30
|
-
|
|
31
|
-
if (!props.ancestors!.length) {
|
|
32
|
-
cmp.unshift(<li key={"--main"}><a href={"#"}>Main</a></li>);
|
|
33
|
-
return <menu className={classnames(styles.menu, "miui-scrollbars")}>{contents}</menu>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return contents;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
Menu.defaultProps = {
|
|
40
|
-
ancestors: [],
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export { Menu };
|
package/src/demo/NextLink.tsx
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import Link from "next/link";
|
|
4
|
-
|
|
5
|
-
const NextLink: React.FC<Omit<React.ComponentProps<typeof Link>, "href"> & { href: string }> = (props) => {
|
|
6
|
-
return <Link legacyBehavior={true} {...props} />;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
NextLink,
|
|
11
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { Section, Input, Label, Button, TextArea } from "../../../index";
|
|
4
|
-
|
|
5
|
-
// @TODO add checkbox
|
|
6
|
-
// @TODO add toggle
|
|
7
|
-
// @TODO some kind of `form` wrapper which also takes cares of margins?
|
|
8
|
-
const FormDemo = () => {
|
|
9
|
-
return (
|
|
10
|
-
<Section.Container>
|
|
11
|
-
<Section>
|
|
12
|
-
<Section vertical={true} horizontal={true}>
|
|
13
|
-
<Label label={"First name"}>
|
|
14
|
-
<Input placeholder={""} />
|
|
15
|
-
</Label>
|
|
16
|
-
<Label label={"E-mail"}>
|
|
17
|
-
<Input placeholder={"Don't forget the @"} suffix={".com"} />
|
|
18
|
-
</Label>
|
|
19
|
-
<Label label={"Your story"}>
|
|
20
|
-
<TextArea placeholder={"Hello"} />
|
|
21
|
-
</Label>
|
|
22
|
-
<Label>
|
|
23
|
-
<Button>Submit</Button>
|
|
24
|
-
</Label>
|
|
25
|
-
</Section>
|
|
26
|
-
</Section>
|
|
27
|
-
</Section.Container>
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export { FormDemo };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { SearchContainer, Input, ICON, Icon, Section, List } from "../../../index";
|
|
4
|
-
|
|
5
|
-
const Item = List.Item;
|
|
6
|
-
|
|
7
|
-
const SearchDemo = () => {
|
|
8
|
-
return (
|
|
9
|
-
<Section.Container>
|
|
10
|
-
<SearchContainer>
|
|
11
|
-
<Input placeholder={"Search..."} prefix={<Icon name={ICON.search} />} />
|
|
12
|
-
</SearchContainer>
|
|
13
|
-
<Section>
|
|
14
|
-
<List>
|
|
15
|
-
<List.Header>Messages</List.Header>
|
|
16
|
-
<Item>Lorem</Item>
|
|
17
|
-
<Item>Ipsum</Item>
|
|
18
|
-
<Item>Dolor</Item>
|
|
19
|
-
</List>
|
|
20
|
-
</Section>
|
|
21
|
-
<Section>
|
|
22
|
-
<List>
|
|
23
|
-
<List.Header>Contacts</List.Header>
|
|
24
|
-
<Item>Lorem</Item>
|
|
25
|
-
<Item>Ipsum</Item>
|
|
26
|
-
<Item>Dolor</Item>
|
|
27
|
-
</List>
|
|
28
|
-
</Section>
|
|
29
|
-
</Section.Container>
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export { SearchDemo };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { Card, Section } from "../../../../index";
|
|
4
|
-
|
|
5
|
-
const CardDemo = () => {
|
|
6
|
-
return (
|
|
7
|
-
<Section.Container>
|
|
8
|
-
<Card>
|
|
9
|
-
<Section vertical={true} horizontal={true}>Content</Section>
|
|
10
|
-
</Card>
|
|
11
|
-
<Card>
|
|
12
|
-
<Section vertical={true} horizontal={true}>Content</Section>
|
|
13
|
-
</Card>
|
|
14
|
-
<Card variant={"margin"}>
|
|
15
|
-
<Section vertical={true} horizontal={true}>Content</Section>
|
|
16
|
-
</Card>
|
|
17
|
-
</Section.Container>
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export { CardDemo };
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { Action, ICON, StickyHeader, Header, EqualActions } from "../../../../index";
|
|
4
|
-
import { NextLink } from "../../../NextLink";
|
|
5
|
-
|
|
6
|
-
import styles from "./ActionDemo.module.scss";
|
|
7
|
-
|
|
8
|
-
const handleClick = () => { alert(1); };
|
|
9
|
-
|
|
10
|
-
const ActionDemo: React.FC = () => {
|
|
11
|
-
return (
|
|
12
|
-
<>
|
|
13
|
-
<div>
|
|
14
|
-
<Action icon={ICON.checkmark} /> - action without action
|
|
15
|
-
</div>
|
|
16
|
-
<div>
|
|
17
|
-
<Action icon={ICON.checkmark} Link={NextLink} to={"react-miui"} /> - internal link action
|
|
18
|
-
</div>
|
|
19
|
-
<div>
|
|
20
|
-
<Action icon={ICON.checkmark} href={"https://www.npmjs.com/package/react-miui"} /> - external link action
|
|
21
|
-
</div>
|
|
22
|
-
<div>
|
|
23
|
-
<Action icon={ICON.checkmark} onClick={handleClick} /> - onClick action
|
|
24
|
-
</div>
|
|
25
|
-
<div>
|
|
26
|
-
<Action icon={ICON.checkmark} onClick={handleClick} label={"Pineapple"} /> - onClick action with label
|
|
27
|
-
</div>
|
|
28
|
-
</>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const ActionsOnLeft = () => {
|
|
33
|
-
return (
|
|
34
|
-
<StickyHeader position={"left"}>
|
|
35
|
-
<Header center={true} className={styles.header as string}>
|
|
36
|
-
<Action icon={ICON.checkmark} />
|
|
37
|
-
<Action icon={ICON.checkmark} />
|
|
38
|
-
<Action icon={ICON.checkmark} />
|
|
39
|
-
</Header>
|
|
40
|
-
<StickyHeader.Content>
|
|
41
|
-
content
|
|
42
|
-
</StickyHeader.Content>
|
|
43
|
-
</StickyHeader>
|
|
44
|
-
|
|
45
|
-
);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const ActionsOnBottom = () => {
|
|
49
|
-
return (
|
|
50
|
-
<StickyHeader position={"bottom"}>
|
|
51
|
-
<Header center={true} className={styles.header as string}>
|
|
52
|
-
<Action icon={ICON.checkmark} />
|
|
53
|
-
<Action icon={ICON.checkmark} />
|
|
54
|
-
<Action icon={ICON.checkmark} />
|
|
55
|
-
</Header>
|
|
56
|
-
<StickyHeader.Content>
|
|
57
|
-
content
|
|
58
|
-
</StickyHeader.Content>
|
|
59
|
-
</StickyHeader>
|
|
60
|
-
|
|
61
|
-
);
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
const ActionLabelsOnBottom = () => {
|
|
65
|
-
return (
|
|
66
|
-
<StickyHeader position={"bottom"}>
|
|
67
|
-
<Header center={true} className={styles.header as string}>
|
|
68
|
-
<Action icon={ICON.checkmark} label={"Add"} />
|
|
69
|
-
<Action icon={ICON.checkmark} label={"Delete"} />
|
|
70
|
-
<Action icon={ICON.checkmark} label={"Share on Web"} />
|
|
71
|
-
</Header>
|
|
72
|
-
<StickyHeader.Content>
|
|
73
|
-
<StickyHeader position={"top"}>
|
|
74
|
-
<Header center={true} className={styles.header as string}>
|
|
75
|
-
<Action icon={ICON.checkmark} label={"Add"} />
|
|
76
|
-
<Action icon={ICON.checkmark} label={"Delete"} />
|
|
77
|
-
<Action icon={ICON.checkmark} label={"Share"} />
|
|
78
|
-
</Header>
|
|
79
|
-
<StickyHeader.Content>
|
|
80
|
-
When you put just `Action`s into Header it will be automatically wrapped with EqualActions so if
|
|
81
|
-
labels width are not equal each action will take the same space as the most wide item.
|
|
82
|
-
If you don't like this behavior - wrap your actions into React.Fragment {"<></>"} or pass extra
|
|
83
|
-
{"<span />"}.
|
|
84
|
-
</StickyHeader.Content>
|
|
85
|
-
</StickyHeader>
|
|
86
|
-
</StickyHeader.Content>
|
|
87
|
-
</StickyHeader>
|
|
88
|
-
);
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
const ActionsDemo = () => {
|
|
92
|
-
return (
|
|
93
|
-
<div>
|
|
94
|
-
To make every action take the same amount of horizontal space you need to wrap every Action with
|
|
95
|
-
EqualActions wrapper. Some components (like Header) will do that automatically for you. If you need to use
|
|
96
|
-
Actions outside of such components - manually wrap them with EqualActions.
|
|
97
|
-
|
|
98
|
-
<div>
|
|
99
|
-
<EqualActions>
|
|
100
|
-
<Action icon={ICON.checkmark} label={"Add"} />
|
|
101
|
-
<Action icon={ICON.checkmark} label={"Delete"} />
|
|
102
|
-
<Action icon={ICON.checkmark} label={"Share on Web"} />
|
|
103
|
-
</EqualActions>
|
|
104
|
-
</div>
|
|
105
|
-
</div>
|
|
106
|
-
);
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export { ActionDemo, ActionsOnLeft, ActionsOnBottom, ActionLabelsOnBottom, ActionsDemo };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React, { useCallback, useState } from "react";
|
|
2
|
-
|
|
3
|
-
import { DirectionPad } from "../../../../index";
|
|
4
|
-
|
|
5
|
-
const DirectionPadDemo: React.FC = (props) => {
|
|
6
|
-
const [lastClick, setLastClick] = useState("<none>");
|
|
7
|
-
|
|
8
|
-
const handleLeftClick = useCallback(() => {
|
|
9
|
-
setLastClick("left");
|
|
10
|
-
}, []);
|
|
11
|
-
const handleRightClick = useCallback(() => {
|
|
12
|
-
setLastClick("right");
|
|
13
|
-
}, []);
|
|
14
|
-
const handleUpClick = useCallback(() => {
|
|
15
|
-
setLastClick("up");
|
|
16
|
-
}, []);
|
|
17
|
-
const handleDownClick = useCallback(() => {
|
|
18
|
-
setLastClick("down");
|
|
19
|
-
}, []);
|
|
20
|
-
const handleMiddleClick = useCallback(() => {
|
|
21
|
-
setLastClick("res");
|
|
22
|
-
}, []);
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<>
|
|
26
|
-
<DirectionPad
|
|
27
|
-
onLeftPress={handleLeftClick}
|
|
28
|
-
onRightPress={handleRightClick}
|
|
29
|
-
onUpPress={handleUpClick}
|
|
30
|
-
onDownPress={handleDownClick}
|
|
31
|
-
onMiddlePress={handleMiddleClick}
|
|
32
|
-
middleLabel={"RES"}
|
|
33
|
-
/>
|
|
34
|
-
<div>
|
|
35
|
-
Last clicked button: {lastClick}
|
|
36
|
-
</div>
|
|
37
|
-
</>
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export { DirectionPadDemo };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React, { useCallback, useState } from "react";
|
|
2
|
-
|
|
3
|
-
import { Drawer } from "../../../../index";
|
|
4
|
-
|
|
5
|
-
interface Props {}
|
|
6
|
-
|
|
7
|
-
const DrawerDemo: React.FC<Props> = (props) => {
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
9
|
-
const [open, setOpen] = useState(false);
|
|
10
|
-
|
|
11
|
-
const handleToggleOpen = useCallback(() => {
|
|
12
|
-
setOpen(p => !p);
|
|
13
|
-
}, []);
|
|
14
|
-
|
|
15
|
-
const handleClose = useCallback(() => {
|
|
16
|
-
setOpen(false);
|
|
17
|
-
}, []);
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<>
|
|
21
|
-
<Drawer isOpen={open} onClose={handleClose}>
|
|
22
|
-
Drawer content
|
|
23
|
-
</Drawer>
|
|
24
|
-
<button onClick={handleToggleOpen}>open drawer</button>
|
|
25
|
-
</>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export { DrawerDemo };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { Icon, ICON, List } from "../../../../index";
|
|
4
|
-
|
|
5
|
-
const Item = List.Item;
|
|
6
|
-
|
|
7
|
-
const IconsDemo: React.FC = () => {
|
|
8
|
-
const icons = Object.values(ICON).map((value) => {
|
|
9
|
-
return (
|
|
10
|
-
<Item key={value} ratio={"1/"}>
|
|
11
|
-
{value}
|
|
12
|
-
<Icon name={value} />
|
|
13
|
-
</Item>
|
|
14
|
-
);
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<List>
|
|
19
|
-
{icons}
|
|
20
|
-
</List>
|
|
21
|
-
);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { IconsDemo };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { Icon, ICON, KeyValue, Section } from "../../../../index";
|
|
4
|
-
|
|
5
|
-
interface Props {}
|
|
6
|
-
|
|
7
|
-
const items = [
|
|
8
|
-
{
|
|
9
|
-
key: "Turbo",
|
|
10
|
-
value: "100x",
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
key: "Turbo",
|
|
14
|
-
value: "100x",
|
|
15
|
-
icon: <Icon name={ICON.heart} />,
|
|
16
|
-
onClick: () => { alert(1); },
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
value: "99%",
|
|
20
|
-
icon: <Icon name={ICON.battery} />,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
key: "4,25 V",
|
|
24
|
-
value: "99%",
|
|
25
|
-
icon: <Icon name={ICON.battery} />,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
key: "Just key",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
value: "Just value",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
key: <>Multi line<br />key</>,
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
value: <>Multi line<br />value</>,
|
|
38
|
-
},
|
|
39
|
-
];
|
|
40
|
-
|
|
41
|
-
const KeyValueDemo: React.FC<Props> = (props) => {
|
|
42
|
-
return (
|
|
43
|
-
<Section vertical={true} horizontal={true}>
|
|
44
|
-
<KeyValue items={items} valueFirst={true} cols={3} />
|
|
45
|
-
</Section>
|
|
46
|
-
);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export { KeyValueDemo };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
.coloredBox {
|
|
2
|
-
height: 300px;
|
|
3
|
-
background: var(--green1-darker);
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: flex-end;
|
|
7
|
-
color: white;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.header {
|
|
12
|
-
--custom-header-color: var(--green1-darker);
|
|
13
|
-
--custom-text-color: white;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.header2 {
|
|
17
|
-
--custom-header-color: var(--active-bg);
|
|
18
|
-
--custom-text-color: white;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.coloredBox2 {
|
|
22
|
-
height: 300px;
|
|
23
|
-
background: var(--active-bg);
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: flex-end;
|
|
27
|
-
color: white;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { Stats, Header, StickyHeader } from "../../../../index";
|
|
4
|
-
|
|
5
|
-
import styles from "./Stats.module.scss";
|
|
6
|
-
|
|
7
|
-
interface Props {}
|
|
8
|
-
|
|
9
|
-
const stats = [
|
|
10
|
-
{
|
|
11
|
-
label: "Temperature",
|
|
12
|
-
value: "32°C",
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
label: "Used",
|
|
16
|
-
value: "320.3 mAh",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: "Used for",
|
|
20
|
-
value: "14h 32m",
|
|
21
|
-
},
|
|
22
|
-
];
|
|
23
|
-
|
|
24
|
-
const StatsDemo: React.FC<Props> = (props) => {
|
|
25
|
-
return (
|
|
26
|
-
<StickyHeader position={"top"}>
|
|
27
|
-
<Header
|
|
28
|
-
center={true}
|
|
29
|
-
variant={"colored"}
|
|
30
|
-
className={styles.header as string}
|
|
31
|
-
>
|
|
32
|
-
Battery
|
|
33
|
-
</Header>
|
|
34
|
-
<StickyHeader.Content className={"miui-scrollbars"}>
|
|
35
|
-
<div className={styles.coloredBox}>
|
|
36
|
-
<Stats stats={stats} />
|
|
37
|
-
</div>
|
|
38
|
-
</StickyHeader.Content>
|
|
39
|
-
</StickyHeader>
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const StatsDarkDemo = () => (
|
|
44
|
-
<StickyHeader position={"top"}>
|
|
45
|
-
<Header
|
|
46
|
-
center={true}
|
|
47
|
-
variant={"colored"}
|
|
48
|
-
className={styles.header2 as string}
|
|
49
|
-
>
|
|
50
|
-
Battery
|
|
51
|
-
</Header>
|
|
52
|
-
<StickyHeader.Content className={"miui-scrollbars"}>
|
|
53
|
-
<div className={styles.coloredBox2}>
|
|
54
|
-
<Stats stats={stats} variant={"dark"} />
|
|
55
|
-
</div>
|
|
56
|
-
</StickyHeader.Content>
|
|
57
|
-
</StickyHeader>
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
export { StatsDemo, StatsDarkDemo };
|