@moosend/mooskin 1.1.5 → 1.2.0-beta.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/LICENSE +21 -21
- package/README.md +1 -1
- package/lib/ActionsDropdown/ActionsDropdown.d.ts +6 -6
- package/lib/ActionsDropdown/model.d.ts +12 -12
- package/lib/ActionsDropdown/styles.d.ts +10 -10
- package/lib/Alert/Alert.d.ts +8 -8
- package/lib/Alert/model.d.ts +5 -5
- package/lib/Alert/styles.d.ts +8 -8
- package/lib/Anchor/Anchor.d.ts +3 -3
- package/lib/Anchor/model.d.ts +4 -4
- package/lib/Anchor/styles.d.ts +3 -3
- package/lib/Box/Box.d.ts +3 -3
- package/lib/Box/model.d.ts +125 -120
- package/lib/Box/resources.d.ts +9 -9
- package/lib/Box/styles.d.ts +8 -8
- package/lib/Button/Button.d.ts +7 -7
- package/lib/Button/model.d.ts +8 -6
- package/lib/Button/styles.d.ts +7 -7
- package/lib/Carousel/Carousel.d.ts +7 -7
- package/lib/Carousel/model.d.ts +33 -33
- package/lib/Carousel/styles.d.ts +4 -4
- package/lib/Checkbox/Checkbox.d.ts +8 -8
- package/lib/Checkbox/model.d.ts +13 -13
- package/lib/Checkbox/styles.d.ts +6 -6
- package/lib/DatePicker/DatePicker.d.ts +3 -3
- package/lib/DatePicker/model.d.ts +16 -16
- package/lib/DateRange/DateRange.d.ts +5 -5
- package/lib/DateRange/model.d.ts +17 -17
- package/lib/DateRange/styles.d.ts +3 -3
- package/lib/DateSelect/DateSelect.d.ts +3 -3
- package/lib/DateSelect/model.d.ts +7 -7
- package/lib/DateTimePicker/DateTimePicker.d.ts +3 -3
- package/lib/DateTimePicker/model.d.ts +15 -11
- package/lib/Description/Description.d.ts +3 -3
- package/lib/Description/styles.d.ts +3 -3
- package/lib/Drawer/Drawer.d.ts +10 -10
- package/lib/Drawer/model.d.ts +21 -21
- package/lib/Drawer/styles.d.ts +25 -25
- package/lib/Expandable/Expandable.d.ts +9 -9
- package/lib/Expandable/model.d.ts +13 -13
- package/lib/Expandable/styles.d.ts +9 -9
- package/lib/Footer/Footer.d.ts +6 -6
- package/lib/Footer/styles.d.ts +7 -7
- package/lib/Grid/Grid.d.ts +5 -5
- package/lib/Grid/model.d.ts +18 -18
- package/lib/Grid/styles.d.ts +5 -5
- package/lib/IconButton/IconButton.d.ts +3 -3
- package/lib/IconButton/model.d.ts +4 -4
- package/lib/IconButton/styles.d.ts +3 -3
- package/lib/Image/Image.d.ts +3 -3
- package/lib/Image/styles.d.ts +2 -2
- package/lib/Input/Input.d.ts +12 -12
- package/lib/Input/model.d.ts +30 -30
- package/lib/Input/styles.d.ts +13 -13
- package/lib/Label/Label.d.ts +3 -3
- package/lib/Label/{Model.d.ts → model.d.ts} +5 -5
- package/lib/Label/styles.d.ts +3 -3
- package/lib/Layout/Layout.d.ts +3 -3
- package/lib/Layout/model.d.ts +5 -5
- package/lib/Layout/styles.d.ts +3 -3
- package/lib/List/List.d.ts +8 -8
- package/lib/List/styles.d.ts +7 -7
- package/lib/Loader/Loader.d.ts +3 -3
- package/lib/Loader/model.d.ts +5 -5
- package/lib/Loader/styles.d.ts +4 -4
- package/lib/LoadingBar/LoadingBar.d.ts +3 -3
- package/lib/LoadingBar/model.d.ts +7 -7
- package/lib/LoadingBar/styles.d.ts +3 -3
- package/lib/Modal/Modal.d.ts +10 -10
- package/lib/Modal/model.d.ts +15 -15
- package/lib/Modal/styles.d.ts +14 -14
- package/lib/NumberLabel/NumberLabel.d.ts +3 -3
- package/lib/NumberLabel/model.d.ts +7 -7
- package/lib/Pagination/Pagination.d.ts +4 -4
- package/lib/Pagination/model.d.ts +12 -12
- package/lib/Pagination/styles.d.ts +6 -6
- package/lib/Radio/Radio.d.ts +8 -8
- package/lib/Radio/model.d.ts +14 -14
- package/lib/Radio/styles.d.ts +6 -6
- package/lib/Select/Select.d.ts +14 -14
- package/lib/Select/model.d.ts +28 -25
- package/lib/Select/styles.d.ts +17 -17
- package/lib/Selector/Selector.d.ts +4 -4
- package/lib/Selector/model.d.ts +10 -10
- package/lib/Selector/styles.d.ts +4 -4
- package/lib/Sidemenu/Sidemenu.d.ts +4 -4
- package/lib/Sidemenu/model.d.ts +10 -10
- package/lib/Sidemenu/styles.d.ts +4 -4
- package/lib/Skeleton/Skeleton.d.ts +5 -5
- package/lib/Skeleton/model.d.ts +14 -14
- package/lib/Skeleton/styles.d.ts +6 -6
- package/lib/Slider/Slider.d.ts +3 -3
- package/lib/Slider/model.d.ts +7 -7
- package/lib/Slider/styles.d.ts +3 -3
- package/lib/Stack/Stack.d.ts +5 -5
- package/lib/Stack/model.d.ts +6 -6
- package/lib/Stack/styles.d.ts +3 -3
- package/lib/Steps/Steps.d.ts +6 -6
- package/lib/Steps/model.d.ts +16 -16
- package/lib/Steps/styles.d.ts +7 -7
- package/lib/Styled/GlobalStyles.d.ts +1 -1
- package/lib/Styled/MooskinContextProvider.d.ts +6 -6
- package/lib/Styled/model.d.ts +223 -223
- package/lib/Switch/Switch.d.ts +4 -4
- package/lib/Switch/model.d.ts +16 -16
- package/lib/Switch/styles.d.ts +7 -7
- package/lib/Table/Table.d.ts +7 -7
- package/lib/Table/styles.d.ts +7 -7
- package/lib/Tabs/Tabs.d.ts +6 -6
- package/lib/Tabs/model.d.ts +13 -13
- package/lib/Tabs/styles.d.ts +6 -6
- package/lib/Tags/Tags.d.ts +8 -8
- package/lib/Tags/model.d.ts +20 -20
- package/lib/Tags/styles.d.ts +8 -8
- package/lib/Text/Text.d.ts +3 -3
- package/lib/Text/model.d.ts +4 -4
- package/lib/Text/styles.d.ts +3 -3
- package/lib/TextArea/TextArea.d.ts +3 -3
- package/lib/TextArea/model.d.ts +4 -4
- package/lib/TextArea/styles.d.ts +2 -2
- package/lib/TextEditor/TextEditor.d.ts +3 -3
- package/lib/TextEditor/model.d.ts +19 -15
- package/lib/_utils/globals/locales.d.ts +20 -20
- package/lib/_utils/globals/screens.d.ts +29 -29
- package/lib/_utils/globals/variables.d.ts +3 -3
- package/lib/_utils/helper.d.ts +103 -103
- package/lib/_utils/index.d.ts +1 -3
- package/lib/_utils/test-setup.d.ts +1 -0
- package/lib/_utils/types/commonTypes.d.ts +4 -4
- package/lib/components/ActionsDropdown/ActionsDropdown.d.ts +6 -6
- package/lib/components/ActionsDropdown/ActionsDropdown.js +82 -0
- package/lib/components/ActionsDropdown/ActionsDropdown.js.map +1 -0
- package/lib/{_utils/adapter.d.ts → components/ActionsDropdown/ActionsDropdown.spec.d.ts} +1 -1
- package/lib/components/ActionsDropdown/ActionsDropdown.spec.js +35 -0
- package/lib/components/ActionsDropdown/ActionsDropdown.spec.js.map +1 -0
- package/lib/components/ActionsDropdown/model.d.ts +12 -12
- package/lib/components/ActionsDropdown/model.js +2 -0
- package/lib/components/ActionsDropdown/model.js.map +1 -0
- package/lib/components/ActionsDropdown/styles.d.ts +10 -10
- package/lib/components/ActionsDropdown/styles.js +94 -0
- package/lib/components/ActionsDropdown/styles.js.map +1 -0
- package/lib/components/Alert/Alert.d.ts +8 -8
- package/lib/components/Alert/Alert.js +105 -0
- package/lib/components/Alert/Alert.js.map +1 -0
- package/lib/components/{_utils/adapter.d.ts → Alert/Alert.spec.d.ts} +1 -1
- package/lib/components/Alert/Alert.spec.js +39 -0
- package/lib/components/Alert/Alert.spec.js.map +1 -0
- package/lib/components/Alert/model.d.ts +5 -5
- package/lib/components/Alert/model.js +2 -0
- package/lib/components/Alert/model.js.map +1 -0
- package/lib/components/Alert/styles.d.ts +8 -8
- package/lib/components/Alert/styles.js +126 -0
- package/lib/components/Alert/styles.js.map +1 -0
- package/lib/components/Anchor/Anchor.d.ts +3 -3
- package/lib/components/Anchor/Anchor.js +27 -0
- package/lib/components/Anchor/Anchor.js.map +1 -0
- package/lib/components/Anchor/Anchor.spec.d.ts +1 -0
- package/lib/components/Anchor/Anchor.spec.js +31 -0
- package/lib/components/Anchor/Anchor.spec.js.map +1 -0
- package/lib/components/Anchor/model.d.ts +4 -4
- package/lib/components/Anchor/model.js +2 -0
- package/lib/components/Anchor/model.js.map +1 -0
- package/lib/components/Anchor/styles.d.ts +3 -3
- package/lib/components/Anchor/styles.js +18 -0
- package/lib/components/Anchor/styles.js.map +1 -0
- package/lib/components/Box/Box.d.ts +3 -3
- package/lib/components/Box/Box.js +51 -0
- package/lib/components/Box/Box.js.map +1 -0
- package/lib/components/Box/Box.spec.d.ts +1 -0
- package/lib/components/Box/Box.spec.js +10 -0
- package/lib/components/Box/Box.spec.js.map +1 -0
- package/lib/components/Box/model.d.ts +125 -120
- package/lib/components/Box/model.js +103 -0
- package/lib/components/Box/model.js.map +1 -0
- package/lib/components/Box/resources.d.ts +9 -9
- package/lib/components/Box/resources.js +311 -0
- package/lib/components/Box/resources.js.map +1 -0
- package/lib/components/Box/styles.d.ts +8 -8
- package/lib/components/Box/styles.js +290 -0
- package/lib/components/Box/styles.js.map +1 -0
- package/lib/components/Button/Button.d.ts +7 -7
- package/lib/components/Button/Button.js +72 -0
- package/lib/components/Button/Button.js.map +1 -0
- package/lib/components/Button/Button.spec.d.ts +1 -0
- package/lib/components/Button/Button.spec.js +29 -0
- package/lib/components/Button/Button.spec.js.map +1 -0
- package/lib/components/Button/model.d.ts +8 -6
- package/lib/components/Button/model.js +2 -0
- package/lib/components/Button/model.js.map +1 -0
- package/lib/components/Button/styles.d.ts +7 -7
- package/lib/components/Button/styles.js +84 -0
- package/lib/components/Button/styles.js.map +1 -0
- package/lib/components/Carousel/Carousel.d.ts +7 -7
- package/lib/components/Carousel/Carousel.js +30 -0
- package/lib/components/Carousel/Carousel.js.map +1 -0
- package/lib/components/Carousel/Carousel.spec.d.ts +1 -0
- package/lib/components/Carousel/Carousel.spec.js +12 -0
- package/lib/components/Carousel/Carousel.spec.js.map +1 -0
- package/lib/components/Carousel/model.d.ts +33 -33
- package/lib/components/Carousel/model.js +2 -0
- package/lib/components/Carousel/model.js.map +1 -0
- package/lib/components/Carousel/styles.d.ts +4 -4
- package/lib/components/Carousel/styles.js +18 -0
- package/lib/components/Carousel/styles.js.map +1 -0
- package/lib/components/Checkbox/Checkbox.d.ts +8 -8
- package/lib/components/Checkbox/Checkbox.js +83 -0
- package/lib/components/Checkbox/Checkbox.js.map +1 -0
- package/lib/components/Checkbox/Checkbox.spec.d.ts +1 -0
- package/lib/components/Checkbox/Checkbox.spec.js +29 -0
- package/lib/components/Checkbox/Checkbox.spec.js.map +1 -0
- package/lib/components/Checkbox/model.d.ts +13 -13
- package/lib/components/Checkbox/model.js +2 -0
- package/lib/components/Checkbox/model.js.map +1 -0
- package/lib/components/Checkbox/styles.d.ts +6 -6
- package/lib/components/Checkbox/styles.js +35 -0
- package/lib/components/Checkbox/styles.js.map +1 -0
- package/lib/components/DatePicker/DatePicker.d.ts +3 -3
- package/lib/components/DatePicker/DatePicker.js +45 -0
- package/lib/components/DatePicker/DatePicker.js.map +1 -0
- package/lib/components/DatePicker/DatePicker.spec.d.ts +1 -0
- package/lib/components/DatePicker/DatePicker.spec.js +11 -0
- package/lib/components/DatePicker/DatePicker.spec.js.map +1 -0
- package/lib/components/DatePicker/model.d.ts +16 -16
- package/lib/components/DatePicker/model.js +2 -0
- package/lib/components/DatePicker/model.js.map +1 -0
- package/lib/components/DateRange/DateRange.d.ts +5 -5
- package/lib/components/DateRange/DateRange.js +51 -0
- package/lib/components/DateRange/DateRange.js.map +1 -0
- package/lib/components/DateRange/DateRange.spec.d.ts +1 -0
- package/lib/components/DateRange/DateRange.spec.js +18 -0
- package/lib/components/DateRange/DateRange.spec.js.map +1 -0
- package/lib/components/DateRange/model.d.ts +17 -17
- package/lib/components/DateRange/model.js +2 -0
- package/lib/components/DateRange/model.js.map +1 -0
- package/lib/components/DateRange/styles.d.ts +3 -3
- package/lib/components/DateRange/styles.js +58 -0
- package/lib/components/DateRange/styles.js.map +1 -0
- package/lib/components/DateSelect/DateSelect.d.ts +3 -3
- package/lib/components/DateSelect/DateSelect.js +153 -0
- package/lib/components/DateSelect/DateSelect.js.map +1 -0
- package/lib/components/DateSelect/DateSelect.spec.d.ts +1 -0
- package/lib/components/DateSelect/DateSelect.spec.js +78 -0
- package/lib/components/DateSelect/DateSelect.spec.js.map +1 -0
- package/lib/components/DateSelect/model.d.ts +7 -7
- package/lib/components/DateSelect/model.js +2 -0
- package/lib/components/DateSelect/model.js.map +1 -0
- package/lib/components/DateTimePicker/DateTimePicker.d.ts +3 -3
- package/lib/components/DateTimePicker/DateTimePicker.js +45 -0
- package/lib/components/DateTimePicker/DateTimePicker.js.map +1 -0
- package/lib/components/DateTimePicker/DateTimePicker.spec.d.ts +1 -0
- package/lib/components/DateTimePicker/DateTimePicker.spec.js +11 -0
- package/lib/components/DateTimePicker/DateTimePicker.spec.js.map +1 -0
- package/lib/components/DateTimePicker/model.d.ts +15 -11
- package/lib/components/DateTimePicker/model.js +2 -0
- package/lib/components/DateTimePicker/model.js.map +1 -0
- package/lib/components/Description/Description.d.ts +3 -3
- package/lib/components/Description/Description.js +22 -0
- package/lib/components/Description/Description.js.map +1 -0
- package/lib/components/Description/Description.spec.d.ts +1 -0
- package/lib/components/Description/Description.spec.js +10 -0
- package/lib/components/Description/Description.spec.js.map +1 -0
- package/lib/components/Description/styles.d.ts +3 -3
- package/lib/components/Description/styles.js +11 -0
- package/lib/components/Description/styles.js.map +1 -0
- package/lib/components/Drawer/Drawer.d.ts +10 -10
- package/lib/components/Drawer/Drawer.js +146 -0
- package/lib/components/Drawer/Drawer.js.map +1 -0
- package/lib/components/Drawer/Drawer.spec.d.ts +1 -0
- package/lib/components/Drawer/Drawer.spec.js +34 -0
- package/lib/components/Drawer/Drawer.spec.js.map +1 -0
- package/lib/components/Drawer/model.d.ts +21 -21
- package/lib/components/Drawer/model.js +2 -0
- package/lib/components/Drawer/model.js.map +1 -0
- package/lib/components/Drawer/styles.d.ts +25 -25
- package/lib/components/Drawer/styles.js +202 -0
- package/lib/components/Drawer/styles.js.map +1 -0
- package/lib/components/Expandable/Expandable.d.ts +9 -9
- package/lib/components/Expandable/Expandable.js +117 -0
- package/lib/components/Expandable/Expandable.js.map +1 -0
- package/lib/components/Expandable/Expandable.spec.d.ts +1 -0
- package/lib/components/Expandable/Expandable.spec.js +67 -0
- package/lib/components/Expandable/Expandable.spec.js.map +1 -0
- package/lib/components/Expandable/model.d.ts +13 -13
- package/lib/components/Expandable/model.js +2 -0
- package/lib/components/Expandable/model.js.map +1 -0
- package/lib/components/Expandable/styles.d.ts +9 -9
- package/lib/components/Expandable/styles.js +45 -0
- package/lib/components/Expandable/styles.js.map +1 -0
- package/lib/components/Footer/Footer.d.ts +6 -6
- package/lib/components/Footer/Footer.js +37 -0
- package/lib/components/Footer/Footer.js.map +1 -0
- package/lib/components/Footer/Footer.spec.d.ts +1 -0
- package/lib/components/Footer/Footer.spec.js +21 -0
- package/lib/components/Footer/Footer.spec.js.map +1 -0
- package/lib/components/Footer/styles.d.ts +7 -7
- package/lib/components/Footer/styles.js +34 -0
- package/lib/components/Footer/styles.js.map +1 -0
- package/lib/components/Grid/Grid.d.ts +5 -5
- package/lib/components/Grid/Grid.js +30 -0
- package/lib/components/Grid/Grid.js.map +1 -0
- package/lib/components/Grid/Grid.spec.d.ts +1 -0
- package/lib/components/Grid/Grid.spec.js +51 -0
- package/lib/components/Grid/Grid.spec.js.map +1 -0
- package/lib/components/Grid/model.d.ts +18 -18
- package/lib/components/Grid/model.js +2 -0
- package/lib/components/Grid/model.js.map +1 -0
- package/lib/components/Grid/styles.d.ts +5 -5
- package/lib/components/Grid/styles.js +76 -0
- package/lib/components/Grid/styles.js.map +1 -0
- package/lib/components/IconButton/IconButton.d.ts +3 -3
- package/lib/components/IconButton/IconButton.js +26 -0
- package/lib/components/IconButton/IconButton.js.map +1 -0
- package/lib/components/IconButton/IconButton.spec.d.ts +1 -0
- package/lib/components/IconButton/IconButton.spec.js +23 -0
- package/lib/components/IconButton/IconButton.spec.js.map +1 -0
- package/lib/components/IconButton/model.d.ts +4 -4
- package/lib/components/IconButton/model.js +2 -0
- package/lib/components/IconButton/model.js.map +1 -0
- package/lib/components/IconButton/styles.d.ts +3 -3
- package/lib/components/IconButton/styles.js +14 -0
- package/lib/components/IconButton/styles.js.map +1 -0
- package/lib/components/Image/Image.d.ts +3 -3
- package/lib/components/Image/Image.js +20 -0
- package/lib/components/Image/Image.js.map +1 -0
- package/lib/components/Image/Image.spec.d.ts +1 -0
- package/lib/components/Image/Image.spec.js +10 -0
- package/lib/components/Image/Image.spec.js.map +1 -0
- package/lib/components/Image/styles.d.ts +2 -2
- package/lib/components/Image/styles.js +7 -0
- package/lib/components/Image/styles.js.map +1 -0
- package/lib/components/Input/Input.d.ts +12 -12
- package/lib/components/Input/Input.js +141 -0
- package/lib/components/Input/Input.js.map +1 -0
- package/lib/components/Input/Input.spec.d.ts +1 -0
- package/lib/components/Input/Input.spec.js +80 -0
- package/lib/components/Input/Input.spec.js.map +1 -0
- package/lib/components/Input/model.d.ts +30 -30
- package/lib/components/Input/model.js +2 -0
- package/lib/components/Input/model.js.map +1 -0
- package/lib/components/Input/styles.d.ts +13 -13
- package/lib/components/Input/styles.js +99 -0
- package/lib/components/Input/styles.js.map +1 -0
- package/lib/components/Label/Label.d.ts +3 -3
- package/lib/components/Label/Label.js +31 -0
- package/lib/components/Label/Label.js.map +1 -0
- package/lib/components/Label/Label.spec.d.ts +1 -0
- package/lib/components/Label/Label.spec.js +10 -0
- package/lib/components/Label/Label.spec.js.map +1 -0
- package/lib/components/Label/{Model.d.ts → model.d.ts} +5 -5
- package/lib/components/Label/model.js +2 -0
- package/lib/components/Label/model.js.map +1 -0
- package/lib/components/Label/styles.d.ts +3 -3
- package/lib/components/Label/styles.js +12 -0
- package/lib/components/Label/styles.js.map +1 -0
- package/lib/components/Layout/Layout.d.ts +3 -3
- package/lib/components/Layout/Layout.js +20 -0
- package/lib/components/Layout/Layout.js.map +1 -0
- package/lib/components/Layout/Layout.spec.d.ts +1 -0
- package/lib/components/Layout/Layout.spec.js +19 -0
- package/lib/components/Layout/Layout.spec.js.map +1 -0
- package/lib/components/Layout/model.d.ts +5 -5
- package/lib/components/Layout/model.js +2 -0
- package/lib/components/Layout/model.js.map +1 -0
- package/lib/components/Layout/styles.d.ts +3 -3
- package/lib/components/Layout/styles.js +10 -0
- package/lib/components/Layout/styles.js.map +1 -0
- package/lib/components/List/List.d.ts +8 -8
- package/lib/components/List/List.js +43 -0
- package/lib/components/List/List.js.map +1 -0
- package/lib/components/List/List.spec.d.ts +1 -0
- package/lib/components/List/List.spec.js +48 -0
- package/lib/components/List/List.spec.js.map +1 -0
- package/lib/components/List/styles.d.ts +7 -7
- package/lib/components/List/styles.js +28 -0
- package/lib/components/List/styles.js.map +1 -0
- package/lib/components/Loader/Loader.d.ts +3 -3
- package/lib/components/Loader/Loader.js +23 -0
- package/lib/components/Loader/Loader.js.map +1 -0
- package/lib/components/Loader/Loader.spec.d.ts +1 -0
- package/lib/components/Loader/Loader.spec.js +10 -0
- package/lib/components/Loader/Loader.spec.js.map +1 -0
- package/lib/components/Loader/model.d.ts +5 -5
- package/lib/components/Loader/model.js +2 -0
- package/lib/components/Loader/model.js.map +1 -0
- package/lib/components/Loader/styles.d.ts +4 -4
- package/lib/components/Loader/styles.js +24 -0
- package/lib/components/Loader/styles.js.map +1 -0
- package/lib/components/LoadingBar/LoadingBar.d.ts +3 -3
- package/lib/components/LoadingBar/LoadingBar.js +47 -0
- package/lib/components/LoadingBar/LoadingBar.js.map +1 -0
- package/lib/components/LoadingBar/LoadingBar.spec.d.ts +1 -0
- package/lib/components/LoadingBar/LoadingBar.spec.js +24 -0
- package/lib/components/LoadingBar/LoadingBar.spec.js.map +1 -0
- package/lib/components/LoadingBar/model.d.ts +7 -7
- package/lib/components/LoadingBar/model.js +2 -0
- package/lib/components/LoadingBar/model.js.map +1 -0
- package/lib/components/LoadingBar/styles.d.ts +3 -3
- package/lib/components/LoadingBar/styles.js +22 -0
- package/lib/components/LoadingBar/styles.js.map +1 -0
- package/lib/components/Modal/Modal.d.ts +10 -10
- package/lib/components/Modal/Modal.js +120 -0
- package/lib/components/Modal/Modal.js.map +1 -0
- package/lib/components/Modal/Modal.spec.d.ts +1 -0
- package/lib/components/Modal/Modal.spec.js +34 -0
- package/lib/components/Modal/Modal.spec.js.map +1 -0
- package/lib/components/Modal/model.d.ts +15 -15
- package/lib/components/Modal/model.js +2 -0
- package/lib/components/Modal/model.js.map +1 -0
- package/lib/components/Modal/styles.d.ts +14 -14
- package/lib/components/Modal/styles.js +121 -0
- package/lib/components/Modal/styles.js.map +1 -0
- package/lib/components/NumberLabel/NumberLabel.d.ts +3 -3
- package/lib/components/NumberLabel/NumberLabel.js +182 -0
- package/lib/components/NumberLabel/NumberLabel.js.map +1 -0
- package/lib/components/NumberLabel/NumberLabel.spec.d.ts +1 -0
- package/lib/components/NumberLabel/NumberLabel.spec.js +94 -0
- package/lib/components/NumberLabel/NumberLabel.spec.js.map +1 -0
- package/lib/components/NumberLabel/model.d.ts +7 -7
- package/lib/components/NumberLabel/model.js +2 -0
- package/lib/components/NumberLabel/model.js.map +1 -0
- package/lib/components/Pagination/Pagination.d.ts +4 -4
- package/lib/components/Pagination/Pagination.js +121 -0
- package/lib/components/Pagination/Pagination.js.map +1 -0
- package/lib/components/Pagination/Pagination.spec.d.ts +1 -0
- package/lib/components/Pagination/Pagination.spec.js +26 -0
- package/lib/components/Pagination/Pagination.spec.js.map +1 -0
- package/lib/components/Pagination/model.d.ts +12 -12
- package/lib/components/Pagination/model.js +2 -0
- package/lib/components/Pagination/model.js.map +1 -0
- package/lib/components/Pagination/styles.d.ts +6 -6
- package/lib/components/Pagination/styles.js +49 -0
- package/lib/components/Pagination/styles.js.map +1 -0
- package/lib/components/Radio/Radio.d.ts +8 -8
- package/lib/components/Radio/Radio.js +78 -0
- package/lib/components/Radio/Radio.js.map +1 -0
- package/lib/components/Radio/Radio.spec.d.ts +1 -0
- package/lib/components/Radio/Radio.spec.js +29 -0
- package/lib/components/Radio/Radio.spec.js.map +1 -0
- package/lib/components/Radio/model.d.ts +14 -14
- package/lib/components/Radio/model.js +2 -0
- package/lib/components/Radio/model.js.map +1 -0
- package/lib/components/Radio/styles.d.ts +6 -6
- package/lib/components/Radio/styles.js +37 -0
- package/lib/components/Radio/styles.js.map +1 -0
- package/lib/components/Select/Select.d.ts +14 -14
- package/lib/components/Select/Select.js +287 -0
- package/lib/components/Select/Select.js.map +1 -0
- package/lib/components/Select/Select.spec.d.ts +1 -0
- package/lib/components/Select/Select.spec.js +41 -0
- package/lib/components/Select/Select.spec.js.map +1 -0
- package/lib/components/Select/model.d.ts +28 -25
- package/lib/components/Select/model.js +2 -0
- package/lib/components/Select/model.js.map +1 -0
- package/lib/components/Select/styles.d.ts +17 -17
- package/lib/components/Select/styles.js +159 -0
- package/lib/components/Select/styles.js.map +1 -0
- package/lib/components/Selector/Selector.d.ts +4 -4
- package/lib/components/Selector/Selector.js +42 -0
- package/lib/components/Selector/Selector.js.map +1 -0
- package/lib/components/Selector/Selector.spec.d.ts +1 -0
- package/lib/components/Selector/Selector.spec.js +28 -0
- package/lib/components/Selector/Selector.spec.js.map +1 -0
- package/lib/components/Selector/model.d.ts +10 -10
- package/lib/components/Selector/model.js +2 -0
- package/lib/components/Selector/model.js.map +1 -0
- package/lib/components/Selector/styles.d.ts +4 -4
- package/lib/components/Selector/styles.js +44 -0
- package/lib/components/Selector/styles.js.map +1 -0
- package/lib/components/Sidemenu/Sidemenu.d.ts +4 -4
- package/lib/components/Sidemenu/Sidemenu.js +42 -0
- package/lib/components/Sidemenu/Sidemenu.js.map +1 -0
- package/lib/components/Sidemenu/Sidemenu.spec.d.ts +1 -0
- package/lib/components/Sidemenu/Sidemenu.spec.js +28 -0
- package/lib/components/Sidemenu/Sidemenu.spec.js.map +1 -0
- package/lib/components/Sidemenu/model.d.ts +10 -10
- package/lib/components/Sidemenu/model.js +2 -0
- package/lib/components/Sidemenu/model.js.map +1 -0
- package/lib/components/Sidemenu/styles.d.ts +4 -4
- package/lib/components/Sidemenu/styles.js +29 -0
- package/lib/components/Sidemenu/styles.js.map +1 -0
- package/lib/components/Skeleton/Skeleton.d.ts +5 -5
- package/lib/components/Skeleton/Skeleton.js +43 -0
- package/lib/components/Skeleton/Skeleton.js.map +1 -0
- package/lib/components/Skeleton/Skeleton.spec.d.ts +1 -0
- package/lib/components/Skeleton/Skeleton.spec.js +31 -0
- package/lib/components/Skeleton/Skeleton.spec.js.map +1 -0
- package/lib/components/Skeleton/model.d.ts +14 -14
- package/lib/components/Skeleton/model.js +2 -0
- package/lib/components/Skeleton/model.js.map +1 -0
- package/lib/components/Skeleton/styles.d.ts +6 -6
- package/lib/components/Skeleton/styles.js +53 -0
- package/lib/components/Skeleton/styles.js.map +1 -0
- package/lib/components/Slider/Slider.d.ts +3 -3
- package/lib/components/Slider/Slider.js +11 -0
- package/lib/components/Slider/Slider.js.map +1 -0
- package/lib/components/Slider/Slider.spec.d.ts +1 -0
- package/lib/components/Slider/Slider.spec.js +10 -0
- package/lib/components/Slider/Slider.spec.js.map +1 -0
- package/lib/components/Slider/model.d.ts +7 -7
- package/lib/components/Slider/model.js +2 -0
- package/lib/components/Slider/model.js.map +1 -0
- package/lib/components/Slider/styles.d.ts +3 -3
- package/lib/components/Slider/styles.js +61 -0
- package/lib/components/Slider/styles.js.map +1 -0
- package/lib/components/Stack/Stack.d.ts +5 -5
- package/lib/components/Stack/Stack.js +75 -0
- package/lib/components/Stack/Stack.js.map +1 -0
- package/lib/components/Stack/Stack.spec.d.ts +1 -0
- package/lib/components/Stack/Stack.spec.js +43 -0
- package/lib/components/Stack/Stack.spec.js.map +1 -0
- package/lib/components/Stack/model.d.ts +6 -6
- package/lib/components/Stack/model.js +2 -0
- package/lib/components/Stack/model.js.map +1 -0
- package/lib/components/Stack/styles.d.ts +3 -3
- package/lib/components/Stack/styles.js +12 -0
- package/lib/components/Stack/styles.js.map +1 -0
- package/lib/components/Steps/Steps.d.ts +6 -6
- package/lib/components/Steps/Steps.js +90 -0
- package/lib/components/Steps/Steps.js.map +1 -0
- package/lib/components/Steps/Steps.spec.d.ts +1 -0
- package/lib/components/Steps/Steps.spec.js +83 -0
- package/lib/components/Steps/Steps.spec.js.map +1 -0
- package/lib/components/Steps/model.d.ts +16 -16
- package/lib/components/Steps/model.js +2 -0
- package/lib/components/Steps/model.js.map +1 -0
- package/lib/components/Steps/styles.d.ts +7 -7
- package/lib/components/Steps/styles.js +45 -0
- package/lib/components/Steps/styles.js.map +1 -0
- package/lib/components/Styled/GlobalStyles.d.ts +1 -1
- package/lib/components/Styled/GlobalStyles.js +50 -0
- package/lib/components/Styled/GlobalStyles.js.map +1 -0
- package/lib/components/Styled/MooskinContextProvider.d.ts +6 -6
- package/lib/components/Styled/MooskinContextProvider.js +31 -0
- package/lib/components/Styled/MooskinContextProvider.js.map +1 -0
- package/lib/components/Styled/model.d.ts +223 -223
- package/lib/components/Styled/model.js +2 -0
- package/lib/components/Styled/model.js.map +1 -0
- package/lib/components/Switch/Switch.d.ts +4 -4
- package/lib/components/Switch/Switch.js +53 -0
- package/lib/components/Switch/Switch.js.map +1 -0
- package/lib/components/Switch/Switch.spec.d.ts +1 -0
- package/lib/components/Switch/Switch.spec.js +27 -0
- package/lib/components/Switch/Switch.spec.js.map +1 -0
- package/lib/components/Switch/model.d.ts +16 -16
- package/lib/components/Switch/model.js +2 -0
- package/lib/components/Switch/model.js.map +1 -0
- package/lib/components/Switch/styles.d.ts +7 -7
- package/lib/components/Switch/styles.js +58 -0
- package/lib/components/Switch/styles.js.map +1 -0
- package/lib/components/Table/Table.d.ts +7 -7
- package/lib/components/Table/Table.js +40 -0
- package/lib/components/Table/Table.js.map +1 -0
- package/lib/components/Table/Table.spec.d.ts +1 -0
- package/lib/components/Table/Table.spec.js +38 -0
- package/lib/components/Table/Table.spec.js.map +1 -0
- package/lib/components/Table/styles.d.ts +7 -7
- package/lib/components/Table/styles.js +56 -0
- package/lib/components/Table/styles.js.map +1 -0
- package/lib/components/Tabs/Tabs.d.ts +6 -6
- package/lib/components/Tabs/Tabs.js +81 -0
- package/lib/components/Tabs/Tabs.js.map +1 -0
- package/lib/components/Tabs/Tabs.spec.d.ts +1 -0
- package/lib/components/Tabs/Tabs.spec.js +83 -0
- package/lib/components/Tabs/Tabs.spec.js.map +1 -0
- package/lib/components/Tabs/model.d.ts +13 -13
- package/lib/components/Tabs/model.js +2 -0
- package/lib/components/Tabs/model.js.map +1 -0
- package/lib/components/Tabs/styles.d.ts +6 -6
- package/lib/components/Tabs/styles.js +29 -0
- package/lib/components/Tabs/styles.js.map +1 -0
- package/lib/components/Tags/Tags.d.ts +8 -8
- package/lib/components/Tags/Tags.js +190 -0
- package/lib/components/Tags/Tags.js.map +1 -0
- package/lib/components/Tags/Tags.spec.d.ts +1 -0
- package/lib/components/Tags/Tags.spec.js +101 -0
- package/lib/components/Tags/Tags.spec.js.map +1 -0
- package/lib/components/Tags/model.d.ts +20 -20
- package/lib/components/Tags/model.js +2 -0
- package/lib/components/Tags/model.js.map +1 -0
- package/lib/components/Tags/styles.d.ts +8 -8
- package/lib/components/Tags/styles.js +58 -0
- package/lib/components/Tags/styles.js.map +1 -0
- package/lib/components/Text/Text.d.ts +3 -3
- package/lib/components/Text/Text.js +25 -0
- package/lib/components/Text/Text.js.map +1 -0
- package/lib/components/Text/Text.spec.d.ts +1 -0
- package/lib/components/Text/Text.spec.js +10 -0
- package/lib/components/Text/Text.spec.js.map +1 -0
- package/lib/components/Text/model.d.ts +4 -4
- package/lib/components/Text/model.js +2 -0
- package/lib/components/Text/model.js.map +1 -0
- package/lib/components/Text/styles.d.ts +3 -3
- package/lib/components/Text/styles.js +11 -0
- package/lib/components/Text/styles.js.map +1 -0
- package/lib/components/TextArea/TextArea.d.ts +3 -3
- package/lib/components/TextArea/TextArea.js +24 -0
- package/lib/components/TextArea/TextArea.js.map +1 -0
- package/lib/components/TextArea/TextArea.spec.d.ts +1 -0
- package/lib/components/TextArea/TextArea.spec.js +39 -0
- package/lib/components/TextArea/TextArea.spec.js.map +1 -0
- package/lib/components/TextArea/model.d.ts +4 -4
- package/lib/components/TextArea/model.js +2 -0
- package/lib/components/TextArea/model.js.map +1 -0
- package/lib/components/TextArea/styles.d.ts +2 -2
- package/lib/components/TextArea/styles.js +14 -0
- package/lib/components/TextArea/styles.js.map +1 -0
- package/lib/components/TextEditor/TextEditor.d.ts +3 -3
- package/lib/components/TextEditor/TextEditor.js +88 -0
- package/lib/components/TextEditor/TextEditor.js.map +1 -0
- package/lib/components/TextEditor/TextEditor.spec.d.ts +1 -0
- package/lib/components/TextEditor/TextEditor.spec.js +30 -0
- package/lib/components/TextEditor/TextEditor.spec.js.map +1 -0
- package/lib/components/TextEditor/model.d.ts +19 -15
- package/lib/components/TextEditor/model.js +2 -0
- package/lib/components/TextEditor/model.js.map +1 -0
- package/lib/components/_utils/globals/locales.d.ts +20 -20
- package/lib/components/_utils/globals/locales.js +21 -0
- package/lib/components/_utils/globals/locales.js.map +1 -0
- package/lib/components/_utils/globals/screens.d.ts +29 -29
- package/lib/components/_utils/globals/screens.js +29 -0
- package/lib/components/_utils/globals/screens.js.map +1 -0
- package/lib/components/_utils/globals/variables.d.ts +3 -3
- package/lib/components/_utils/globals/variables.js +213 -0
- package/lib/components/_utils/globals/variables.js.map +1 -0
- package/lib/components/_utils/helper.d.ts +103 -103
- package/lib/components/_utils/helper.js +139 -0
- package/lib/components/_utils/helper.js.map +1 -0
- package/lib/components/_utils/index.d.ts +1 -3
- package/lib/components/_utils/index.js +2 -0
- package/lib/components/_utils/index.js.map +1 -0
- package/lib/components/_utils/test-setup.d.ts +1 -0
- package/lib/components/_utils/test-setup.js +9 -0
- package/lib/components/_utils/test-setup.js.map +1 -0
- package/lib/components/_utils/types/commonTypes.d.ts +4 -4
- package/lib/components/_utils/types/commonTypes.js +2 -0
- package/lib/components/_utils/types/commonTypes.js.map +1 -0
- package/lib/components/index/index.d.ts +87 -87
- package/lib/components/index/index.js +50 -0
- package/lib/components/index/index.js.map +1 -0
- package/lib/index/index.d.ts +87 -87
- package/lib/index/index.js +6 -35
- package/lib/index/index.js.LICENSE.txt +33 -0
- package/lib/index/style.css +3 -3
- package/lib/stories/ActionsDropdown.stories.d.ts +9 -7
- package/lib/stories/ActionsDropdown.stories.js +26 -0
- package/lib/stories/ActionsDropdown.stories.js.map +1 -0
- package/lib/stories/Alert.stories.d.ts +9 -7
- package/lib/stories/Alert.stories.js +29 -0
- package/lib/stories/Alert.stories.js.map +1 -0
- package/lib/stories/Anchor.stories.d.ts +10 -6
- package/lib/stories/Anchor.stories.js +21 -0
- package/lib/stories/Anchor.stories.js.map +1 -0
- package/lib/stories/Box.stories.d.ts +9 -5
- package/lib/stories/Box.stories.js +21 -0
- package/lib/stories/Box.stories.js.map +1 -0
- package/lib/stories/Button.stories.d.ts +9 -8
- package/lib/stories/Button.stories.js +39 -0
- package/lib/stories/Button.stories.js.map +1 -0
- package/lib/stories/Carousel.stories.d.ts +9 -5
- package/lib/stories/Carousel.stories.js +16 -0
- package/lib/stories/Carousel.stories.js.map +1 -0
- package/lib/stories/Checkbox.stories.d.ts +13 -9
- package/lib/stories/Checkbox.stories.js +43 -0
- package/lib/stories/Checkbox.stories.js.map +1 -0
- package/lib/stories/DatePicker.stories.d.ts +9 -5
- package/lib/stories/DatePicker.stories.js +15 -0
- package/lib/stories/DatePicker.stories.js.map +1 -0
- package/lib/stories/DateRange.stories.d.ts +9 -5
- package/lib/stories/DateRange.stories.js +25 -0
- package/lib/stories/DateRange.stories.js.map +1 -0
- package/lib/stories/DateSelect.stories.d.ts +14 -10
- package/lib/stories/DateSelect.stories.js +46 -0
- package/lib/stories/DateSelect.stories.js.map +1 -0
- package/lib/stories/DateTimePicker.stories.d.ts +9 -5
- package/lib/stories/DateTimePicker.stories.js +15 -0
- package/lib/stories/DateTimePicker.stories.js.map +1 -0
- package/lib/stories/Drawer.stories.d.ts +12 -8
- package/lib/stories/Drawer.stories.js +58 -0
- package/lib/stories/Drawer.stories.js.map +1 -0
- package/lib/stories/Expandable.stories.d.ts +9 -5
- package/lib/stories/Expandable.stories.js +22 -0
- package/lib/stories/Expandable.stories.js.map +1 -0
- package/lib/stories/Footer.stories.d.ts +9 -5
- package/lib/stories/Footer.stories.js +25 -0
- package/lib/stories/Footer.stories.js.map +1 -0
- package/lib/stories/Grid.stories.d.ts +9 -5
- package/lib/stories/Grid.stories.js +52 -0
- package/lib/stories/Grid.stories.js.map +1 -0
- package/lib/stories/IconButton.stories.d.ts +10 -6
- package/lib/stories/IconButton.stories.js +21 -0
- package/lib/stories/IconButton.stories.js.map +1 -0
- package/lib/stories/Input.stories.d.ts +10 -7
- package/lib/stories/Input.stories.js +58 -0
- package/lib/stories/Input.stories.js.map +1 -0
- package/lib/stories/Layout.stories.d.ts +9 -5
- package/lib/stories/Layout.stories.js +24 -0
- package/lib/stories/Layout.stories.js.map +1 -0
- package/lib/stories/List.stories.d.ts +9 -6
- package/lib/stories/List.stories.js +87 -0
- package/lib/stories/List.stories.js.map +1 -0
- package/lib/stories/Loader.stories.d.ts +9 -5
- package/lib/stories/Loader.stories.js +12 -0
- package/lib/stories/Loader.stories.js.map +1 -0
- package/lib/stories/LoadingBar.stories.d.ts +9 -5
- package/lib/stories/LoadingBar.stories.js +16 -0
- package/lib/stories/LoadingBar.stories.js.map +1 -0
- package/lib/stories/Modal.stories.d.ts +9 -5
- package/lib/stories/Modal.stories.js +21 -0
- package/lib/stories/Modal.stories.js.map +1 -0
- package/lib/stories/NumberLabel.stories.d.ts +15 -11
- package/lib/stories/NumberLabel.stories.js +39 -0
- package/lib/stories/NumberLabel.stories.js.map +1 -0
- package/lib/stories/Pagination.stories.d.ts +9 -5
- package/lib/stories/Pagination.stories.js +17 -0
- package/lib/stories/Pagination.stories.js.map +1 -0
- package/lib/stories/Radio.stories.d.ts +13 -9
- package/lib/stories/Radio.stories.js +44 -0
- package/lib/stories/Radio.stories.js.map +1 -0
- package/lib/stories/Select.stories.d.ts +12 -8
- package/lib/stories/Select.stories.js +83 -0
- package/lib/stories/Select.stories.js.map +1 -0
- package/lib/stories/Selector.stories.d.ts +9 -5
- package/lib/stories/Selector.stories.js +20 -0
- package/lib/stories/Selector.stories.js.map +1 -0
- package/lib/stories/Sidemenu.stories.d.ts +9 -5
- package/lib/stories/Sidemenu.stories.js +17 -0
- package/lib/stories/Sidemenu.stories.js.map +1 -0
- package/lib/stories/Skeleton.stories.d.ts +11 -7
- package/lib/stories/Skeleton.stories.js +41 -0
- package/lib/stories/Skeleton.stories.js.map +1 -0
- package/lib/stories/Slider.stories.d.ts +9 -5
- package/lib/stories/Slider.stories.js +14 -0
- package/lib/stories/Slider.stories.js.map +1 -0
- package/lib/stories/Stack.stories.d.ts +14 -10
- package/lib/stories/Stack.stories.js +86 -0
- package/lib/stories/Stack.stories.js.map +1 -0
- package/lib/stories/StackedTags.stories.d.ts +9 -5
- package/lib/stories/StackedTags.stories.js +28 -0
- package/lib/stories/StackedTags.stories.js.map +1 -0
- package/lib/stories/Steps.stories.d.ts +9 -5
- package/lib/stories/Steps.stories.js +20 -0
- package/lib/stories/Steps.stories.js.map +1 -0
- package/lib/stories/Switch.stories.d.ts +11 -7
- package/lib/stories/Switch.stories.js +25 -0
- package/lib/stories/Switch.stories.js.map +1 -0
- package/lib/stories/Table.stories.d.ts +9 -5
- package/lib/stories/Table.stories.js +42 -0
- package/lib/stories/Table.stories.js.map +1 -0
- package/lib/stories/Tabs.stories.d.ts +9 -5
- package/lib/stories/Tabs.stories.js +19 -0
- package/lib/stories/Tabs.stories.js.map +1 -0
- package/lib/stories/Tags.stories.d.ts +11 -7
- package/lib/stories/Tags.stories.js +40 -0
- package/lib/stories/Tags.stories.js.map +1 -0
- package/lib/stories/TextEditor.stories.d.ts +13 -9
- package/lib/stories/TextEditor.stories.js +41 -0
- package/lib/stories/TextEditor.stories.js.map +1 -0
- package/lib/stories/Textarea.stories.d.ts +10 -6
- package/lib/stories/Textarea.stories.js +21 -0
- package/lib/stories/Textarea.stories.js.map +1 -0
- package/package.json +136 -126
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../components/Anchor/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAMvC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,CAAuB;WACnD,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;;;;;;;;;YAStD,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;UACvC,CAAC,KAAK,EAAE,EAAE,WAAC,OAAA,CAAA,MAAA,KAAK,CAAC,OAAO,0CAAE,UAAU,CAAC,UAAU,KAAI,SAAS,CAAC,UAAU,CAAC,UAAU,CAAA,EAAA;CAC3F,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IBoxComponentProps } from './model';
|
|
3
|
-
export declare const Box: React.FC<IBoxComponentProps>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { IBoxComponentProps } from './model';
|
|
3
|
+
export declare const Box: React.FC<IBoxComponentProps>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
import { withMooskinContext } from '../Styled/MooskinContextProvider';
|
|
14
|
+
import { StyledBox } from './styles';
|
|
15
|
+
import { Screens } from '../_utils/globals/screens';
|
|
16
|
+
const BoxView = (_a) => {
|
|
17
|
+
var { className = '', style = {}, transition = '0.2s all', noRender = [], setRef, boxAs } = _a, props = __rest(_a, ["className", "style", "transition", "noRender", "setRef", "boxAs"]);
|
|
18
|
+
const [shouldRender, setShouldRender] = React.useState(checkShouldRender(noRender || []));
|
|
19
|
+
React.useEffect(() => {
|
|
20
|
+
if (noRender) {
|
|
21
|
+
const onResize = () => {
|
|
22
|
+
if (noRender) {
|
|
23
|
+
setShouldRender(checkShouldRender(noRender));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
window.addEventListener('resize', onResize);
|
|
27
|
+
return () => {
|
|
28
|
+
window.removeEventListener('resize', onResize);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}, []);
|
|
32
|
+
if (shouldRender) {
|
|
33
|
+
return React.createElement(StyledBox, Object.assign({ className: className, style: style, ref: (ref) => setRef === null || setRef === void 0 ? void 0 : setRef(ref) }, props, { as: boxAs }));
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
};
|
|
37
|
+
BoxView.displayName = 'Box';
|
|
38
|
+
export const Box = withMooskinContext(React.memo(BoxView));
|
|
39
|
+
const checkShouldRender = (noRender) => {
|
|
40
|
+
const width = window.innerWidth;
|
|
41
|
+
const found = noRender.find((screen) => {
|
|
42
|
+
const limits = Screens[screen];
|
|
43
|
+
return limits.max >= width && limits.min <= width;
|
|
44
|
+
});
|
|
45
|
+
if (found) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
return true;
|
|
49
|
+
};
|
|
50
|
+
Box.displayName = 'Box';
|
|
51
|
+
//# sourceMappingURL=Box.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.js","sourceRoot":"","sources":["../../../components/Box/Box.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAKpD,MAAM,OAAO,GAAiC,CAAC,EAQ9C,EAAE,EAAE;QAR0C,EAC9C,SAAS,GAAG,EAAE,EACd,KAAK,GAAG,EAAE,EACV,UAAU,GAAG,UAAU,EACvB,QAAQ,GAAG,EAAE,EACb,MAAM,EACN,KAAK,OAEL,EADG,KAAK,cAPsC,mEAQ9C,CADQ;IAER,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC;IAE1F,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACpB,IAAI,QAAQ,EAAE;YACb,MAAM,QAAQ,GAAG,GAAG,EAAE;gBACrB,IAAI,QAAQ,EAAE;oBACb,eAAe,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC;iBAC7C;YACF,CAAC,CAAC;YAEF,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;YAE5C,OAAO,GAAG,EAAE;gBACX,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC,CAAC;SACF;IACF,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,YAAY,EAAE;QACjB,OAAO,oBAAC,SAAS,kBAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,GAAgB,EAAE,EAAE,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,GAAG,CAAC,IAAM,KAAK,IAAE,EAAE,EAAE,KAAK,IAAI,CAAC;KACzH;IAED,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,KAAK,CAAC;AAE5B,MAAM,CAAC,MAAM,GAAG,GAAiC,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;AAEzF,MAAM,iBAAiB,GAAG,CAAC,QAA2B,EAAE,EAAE;IACzD,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC;IAEhC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;QACtC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAC/B,OAAO,MAAM,CAAC,GAAG,IAAI,KAAK,IAAI,MAAM,CAAC,GAAG,IAAI,KAAK,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,IAAI,KAAK,EAAE;QACV,OAAO,KAAK,CAAC;KACb;IAED,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAEF,GAAG,CAAC,WAAW,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import { Box } from './Box';
|
|
4
|
+
describe('Box', () => {
|
|
5
|
+
test('renders Box correctly', () => {
|
|
6
|
+
const { container } = render(React.createElement(Box, { align: "baseline", p: 5, m: 5 }, "Box"));
|
|
7
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=Box.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.spec.js","sourceRoot":"","sources":["../../../components/Box/Box.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;IACpB,IAAI,CAAC,uBAAuB,EAAE,GAAG,EAAE;QAClC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC3B,oBAAC,GAAG,IAAC,KAAK,EAAC,UAAU,EAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,UAE1B,CACN,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;IAChD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,120 +1,125 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IMooskinContext, IStyledTheme, IThemeBackgroundColors, IThemeBorderColors, IThemeFontColors } from '../Styled/model';
|
|
3
|
-
export declare type IntensityType = 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
|
-
export declare type BoxShadowIntensityType = IntensityType | 'inner' | 'outline';
|
|
5
|
-
export declare type NestedThemeType = `${keyof IStyledTheme}.${keyof IThemeFontColors | keyof IThemeBorderColors | keyof IThemeBackgroundColors}`;
|
|
6
|
-
export declare type ScreenType = 'lg' | 'md' | 'sm' | 'xs';
|
|
7
|
-
export declare const boxComponentProps: string[];
|
|
8
|
-
export declare type IBoxComponentProps = IBaseBoxComponentProps & React.HTMLAttributes<HTMLElement>;
|
|
9
|
-
export declare type IBoxImageComponentProps = IBaseBoxComponentProps & React.ImgHTMLAttributes<HTMLImageElement>;
|
|
10
|
-
export declare type IBoxLabelComponentProps = IBaseBoxComponentProps & React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
11
|
-
export declare type IButtonBoxComponentProps = IBoxComponentProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
12
|
-
export declare type IInputBoxComponentProps = IBoxComponentProps & React.InputHTMLAttributes<HTMLInputElement>;
|
|
13
|
-
export declare type IAnchorBoxComponentProps = IBoxComponentProps & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
14
|
-
export declare type ITextAreaBoxComponentProps = IBoxComponentProps & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
15
|
-
export interface IBaseBoxComponentProps extends IMooskinContext {
|
|
16
|
-
noRender?: Array<ScreenType>;
|
|
17
|
-
setRef?: (ref: HTMLElement) => void;
|
|
18
|
-
boxAs?: any;
|
|
19
|
-
m?: React.CSSProperties['margin'] | Array<React.CSSProperties['margin']>;
|
|
20
|
-
mt?: React.CSSProperties['marginTop'] | Array<React.CSSProperties['marginTop']>;
|
|
21
|
-
mr?: React.CSSProperties['marginRight'] | Array<React.CSSProperties['marginRight']>;
|
|
22
|
-
mb?: React.CSSProperties['marginBottom'] | Array<React.CSSProperties['marginBottom']>;
|
|
23
|
-
ml?: React.CSSProperties['marginLeft'] | Array<React.CSSProperties['marginLeft']>;
|
|
24
|
-
mx?: number | string | Array<number | string>;
|
|
25
|
-
my?: number | string | Array<number | string>;
|
|
26
|
-
p?: React.CSSProperties['padding'] | Array<React.CSSProperties['padding']>;
|
|
27
|
-
pt?: React.CSSProperties['paddingTop'] | Array<React.CSSProperties['paddingTop']>;
|
|
28
|
-
pr?: React.CSSProperties['paddingRight'] | Array<React.CSSProperties['paddingRight']>;
|
|
29
|
-
pb?: React.CSSProperties['paddingBottom'] | Array<React.CSSProperties['paddingBottom']>;
|
|
30
|
-
pl?: React.CSSProperties['paddingLeft'] | Array<React.CSSProperties['paddingLeft']>;
|
|
31
|
-
px?: number | string | Array<number | string>;
|
|
32
|
-
py?: number | string | Array<number | string>;
|
|
33
|
-
fontColor?: React.CSSProperties['color'] | NestedThemeType | Array<React.CSSProperties['color']>;
|
|
34
|
-
opacity?: React.CSSProperties['opacity'] | Array<React.CSSProperties['opacity']>;
|
|
35
|
-
fontFamily?: React.CSSProperties['fontFamily'] | Array<React.CSSProperties['fontFamily']>;
|
|
36
|
-
fontSize?: React.CSSProperties['fontSize'] | Array<React.CSSProperties['fontSize']>;
|
|
37
|
-
fontWeight?: React.CSSProperties['fontWeight'] | Array<React.CSSProperties['fontWeight']>;
|
|
38
|
-
lineHeight?: React.CSSProperties['lineHeight'] | Array<React.CSSProperties['lineHeight']>;
|
|
39
|
-
textAlign?: React.CSSProperties['textAlign'] | Array<React.CSSProperties['textAlign']>;
|
|
40
|
-
fontStyle?: React.CSSProperties['fontStyle'] | Array<React.CSSProperties['fontStyle']>;
|
|
41
|
-
textTransform?: React.CSSProperties['textTransform'] | Array<React.CSSProperties['textTransform']>;
|
|
42
|
-
textDecoration?: React.CSSProperties['textDecoration'] | Array<React.CSSProperties['textDecoration']>;
|
|
43
|
-
w?: React.CSSProperties['width'] | Array<React.CSSProperties['width']>;
|
|
44
|
-
h?: React.CSSProperties['height'] | Array<React.CSSProperties['height']>;
|
|
45
|
-
maxW?: React.CSSProperties['maxWidth'] | Array<React.CSSProperties['maxWidth']>;
|
|
46
|
-
minW?: React.CSSProperties['minWidth'] | Array<React.CSSProperties['minWidth']>;
|
|
47
|
-
maxH?: React.CSSProperties['maxHeight'] | Array<React.CSSProperties['maxHeight']>;
|
|
48
|
-
minH?: React.CSSProperties['minHeight'] | Array<React.CSSProperties['minHeight']>;
|
|
49
|
-
d?: React.CSSProperties['display'] | Array<React.CSSProperties['display']>;
|
|
50
|
-
overflow?: React.CSSProperties['overflow'] | Array<React.CSSProperties['overflow']>;
|
|
51
|
-
overflowX?: React.CSSProperties['overflowX'] | Array<React.CSSProperties['overflowX']>;
|
|
52
|
-
overflowY?: React.CSSProperties['overflowY'] | Array<React.CSSProperties['overflowY']>;
|
|
53
|
-
align?: React.CSSProperties['alignItems'] | Array<React.CSSProperties['alignItems']>;
|
|
54
|
-
alignContent?: React.CSSProperties['alignContent'] | Array<React.CSSProperties['alignContent']>;
|
|
55
|
-
alignSelf?: React.CSSProperties['alignSelf'] | Array<React.CSSProperties['alignSelf']>;
|
|
56
|
-
justifyItems?: React.CSSProperties['justifyItems'] | Array<React.CSSProperties['justifyItems']>;
|
|
57
|
-
justify?: React.CSSProperties['justifyContent'] | Array<React.CSSProperties['justifyContent']>;
|
|
58
|
-
justifySelf?: React.CSSProperties['justifySelf'] | Array<React.CSSProperties['justifySelf']>;
|
|
59
|
-
flexWrap?: React.CSSProperties['flexWrap'] | Array<React.CSSProperties['flexWrap']>;
|
|
60
|
-
direction?: React.CSSProperties['flexDirection'] | Array<React.CSSProperties['flexDirection']>;
|
|
61
|
-
flex?: React.CSSProperties['flex'] | Array<React.CSSProperties['flex']>;
|
|
62
|
-
flexGrow?: React.CSSProperties['flexGrow'] | Array<React.CSSProperties['flexGrow']>;
|
|
63
|
-
flexShrink?: React.CSSProperties['flexShrink'] | Array<React.CSSProperties['flexShrink']>;
|
|
64
|
-
flexBasis?: React.CSSProperties['flexBasis'] | Array<React.CSSProperties['flexBasis']>;
|
|
65
|
-
order?: React.CSSProperties['order'] | Array<React.CSSProperties['order']>;
|
|
66
|
-
bg?: React.CSSProperties['background'] | Array<React.CSSProperties['background']>;
|
|
67
|
-
bgImage?: React.CSSProperties['backgroundImage'] | Array<React.CSSProperties['backgroundImage']>;
|
|
68
|
-
bgColor?: React.CSSProperties['backgroundColor'] | NestedThemeType | Array<React.CSSProperties['backgroundColor']>;
|
|
69
|
-
bgSize?: React.CSSProperties['backgroundSize'] | Array<React.CSSProperties['backgroundSize']>;
|
|
70
|
-
bgPosition?: React.CSSProperties['backgroundPosition'] | Array<React.CSSProperties['backgroundPosition']>;
|
|
71
|
-
bgRepeat?: React.CSSProperties['backgroundRepeat'] | Array<React.CSSProperties['backgroundRepeat']>;
|
|
72
|
-
border?: React.CSSProperties['border'] | Array<React.CSSProperties['border']>;
|
|
73
|
-
borderWidth?: React.CSSProperties['borderWidth'] | Array<React.CSSProperties['borderWidth']>;
|
|
74
|
-
borderStyle?: React.CSSProperties['borderStyle'] | Array<React.CSSProperties['borderStyle']>;
|
|
75
|
-
borderColor?: React.CSSProperties['borderColor'] | NestedThemeType | Array<React.CSSProperties['borderColor']>;
|
|
76
|
-
borderTop?: React.CSSProperties['borderTop'] | Array<React.CSSProperties['borderTop']>;
|
|
77
|
-
borderTopWidth?: React.CSSProperties['borderTopWidth'] | Array<React.CSSProperties['borderTopWidth']>;
|
|
78
|
-
borderTopStyle?: React.CSSProperties['borderTopStyle'] | Array<React.CSSProperties['borderTopStyle']>;
|
|
79
|
-
borderTopColor?: React.CSSProperties['borderTopColor'] | Array<React.CSSProperties['borderTopColor']>;
|
|
80
|
-
borderRight?: React.CSSProperties['borderRight'] | Array<React.CSSProperties['borderRight']>;
|
|
81
|
-
borderRightWidth?: React.CSSProperties['borderRightWidth'] | Array<React.CSSProperties['borderRightWidth']>;
|
|
82
|
-
borderRightStyle?: React.CSSProperties['borderRightStyle'] | Array<React.CSSProperties['borderRightStyle']>;
|
|
83
|
-
borderRightColor?: React.CSSProperties['borderRightColor'] | Array<React.CSSProperties['borderRightColor']>;
|
|
84
|
-
borderBottom?: React.CSSProperties['borderBottom'] | Array<React.CSSProperties['borderBottom']>;
|
|
85
|
-
borderBottomWidth?: React.CSSProperties['borderBottomWidth'] | Array<React.CSSProperties['borderBottomWidth']>;
|
|
86
|
-
borderBottomStyle?: React.CSSProperties['borderBottomStyle'] | Array<React.CSSProperties['borderBottomStyle']>;
|
|
87
|
-
borderBottomColor?: React.CSSProperties['borderBottomColor'] | Array<React.CSSProperties['borderBottomColor']>;
|
|
88
|
-
borderLeft?: React.CSSProperties['borderLeft'] | Array<React.CSSProperties['borderLeft']>;
|
|
89
|
-
borderLeftWidth?: React.CSSProperties['borderLeftWidth'] | Array<React.CSSProperties['borderLeftWidth']>;
|
|
90
|
-
borderLeftStyle?: React.CSSProperties['borderLeftStyle'] | Array<React.CSSProperties['borderLeftStyle']>;
|
|
91
|
-
borderLeftColor?: React.CSSProperties['borderLeftColor'] | Array<React.CSSProperties['borderLeftColor']>;
|
|
92
|
-
borderRadius?: React.CSSProperties['borderRadius'] | Array<React.CSSProperties['borderRadius']>;
|
|
93
|
-
borderTopLeftRadius?: React.CSSProperties['borderTopLeftRadius'] | Array<React.CSSProperties['borderTopLeftRadius']>;
|
|
94
|
-
borderTopRightRadius?: React.CSSProperties['borderTopRightRadius'] | Array<React.CSSProperties['borderTopRightRadius']>;
|
|
95
|
-
borderBottomRightRadius?: React.CSSProperties['borderBottomRightRadius'] | Array<React.CSSProperties['borderBottomRightRadius']>;
|
|
96
|
-
borderBottomLeftRadius?: React.CSSProperties['borderBottomLeftRadius'] | Array<React.CSSProperties['borderBottomLeftRadius']>;
|
|
97
|
-
position?: React.CSSProperties['position'] | Array<React.CSSProperties['position']>;
|
|
98
|
-
zIndex?: React.CSSProperties['zIndex'] | Array<React.CSSProperties['zIndex']>;
|
|
99
|
-
top?: React.CSSProperties['top'] | Array<React.CSSProperties['top']>;
|
|
100
|
-
right?: React.CSSProperties['right'] | Array<React.CSSProperties['right']>;
|
|
101
|
-
bottom?: React.CSSProperties['bottom'] | Array<React.CSSProperties['bottom']>;
|
|
102
|
-
left?: React.CSSProperties['left'] | Array<React.CSSProperties['left']>;
|
|
103
|
-
boxShadow?: React.CSSProperties['boxShadow'] | BoxShadowIntensityType;
|
|
104
|
-
animation?: React.CSSProperties['animation'] | Array<React.CSSProperties['animation']>;
|
|
105
|
-
visibility?: React.CSSProperties['visibility'] | Array<React.CSSProperties['visibility']>;
|
|
106
|
-
cursor?: React.CSSProperties['cursor'] | Array<React.CSSProperties['cursor']>;
|
|
107
|
-
round?: IntensityType;
|
|
108
|
-
whiteSpace?: React.CSSProperties['whiteSpace'] | Array<React.CSSProperties['whiteSpace']>;
|
|
109
|
-
wordBreak?: React.CSSProperties['wordBreak'] | Array<React.CSSProperties['wordBreak']>;
|
|
110
|
-
gridTemplateColumns?: React.CSSProperties['gridTemplateColumns'] | Array<React.CSSProperties['gridTemplateColumns']>;
|
|
111
|
-
_hover?: string;
|
|
112
|
-
all?: React.CSSProperties['all'] | Array<React.CSSProperties['all']>;
|
|
113
|
-
transition?: React.CSSProperties['transition'] | Array<React.CSSProperties['transition']>;
|
|
114
|
-
transform?: React.CSSProperties['transform'] | Array<React.CSSProperties['transform']>;
|
|
115
|
-
textOverflow?: React.CSSProperties['textOverflow'] | Array<React.CSSProperties['textOverflow']>;
|
|
116
|
-
outline?: React.CSSProperties['outline'] | Array<React.CSSProperties['outline']>;
|
|
117
|
-
outlineWidth?: React.CSSProperties['outlineWidth'] | Array<React.CSSProperties['outlineWidth']>;
|
|
118
|
-
outlineStyle?: React.CSSProperties['outlineStyle'] | Array<React.CSSProperties['outlineStyle']>;
|
|
119
|
-
outlineColor?: React.CSSProperties['outlineColor'] | NestedThemeType | Array<React.CSSProperties['outlineColor']>;
|
|
120
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IMooskinContext, IStyledTheme, IThemeBackgroundColors, IThemeBorderColors, IThemeFontColors } from '../Styled/model';
|
|
3
|
+
export declare type IntensityType = 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
|
+
export declare type BoxShadowIntensityType = IntensityType | 'inner' | 'outline';
|
|
5
|
+
export declare type NestedThemeType = `${keyof IStyledTheme}.${keyof IThemeFontColors | keyof IThemeBorderColors | keyof IThemeBackgroundColors}`;
|
|
6
|
+
export declare type ScreenType = 'lg' | 'md' | 'sm' | 'xs';
|
|
7
|
+
export declare const boxComponentProps: string[];
|
|
8
|
+
export declare type IBoxComponentProps = IBaseBoxComponentProps & React.HTMLAttributes<HTMLElement>;
|
|
9
|
+
export declare type IBoxImageComponentProps = IBaseBoxComponentProps & React.ImgHTMLAttributes<HTMLImageElement>;
|
|
10
|
+
export declare type IBoxLabelComponentProps = IBaseBoxComponentProps & React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
11
|
+
export declare type IButtonBoxComponentProps = IBoxComponentProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
12
|
+
export declare type IInputBoxComponentProps = IBoxComponentProps & React.InputHTMLAttributes<HTMLInputElement>;
|
|
13
|
+
export declare type IAnchorBoxComponentProps = IBoxComponentProps & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
14
|
+
export declare type ITextAreaBoxComponentProps = IBoxComponentProps & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
15
|
+
export interface IBaseBoxComponentProps extends IMooskinContext {
|
|
16
|
+
noRender?: Array<ScreenType>;
|
|
17
|
+
setRef?: (ref: HTMLElement) => void;
|
|
18
|
+
boxAs?: any;
|
|
19
|
+
m?: React.CSSProperties['margin'] | Array<React.CSSProperties['margin']>;
|
|
20
|
+
mt?: React.CSSProperties['marginTop'] | Array<React.CSSProperties['marginTop']>;
|
|
21
|
+
mr?: React.CSSProperties['marginRight'] | Array<React.CSSProperties['marginRight']>;
|
|
22
|
+
mb?: React.CSSProperties['marginBottom'] | Array<React.CSSProperties['marginBottom']>;
|
|
23
|
+
ml?: React.CSSProperties['marginLeft'] | Array<React.CSSProperties['marginLeft']>;
|
|
24
|
+
mx?: number | string | Array<number | string>;
|
|
25
|
+
my?: number | string | Array<number | string>;
|
|
26
|
+
p?: React.CSSProperties['padding'] | Array<React.CSSProperties['padding']>;
|
|
27
|
+
pt?: React.CSSProperties['paddingTop'] | Array<React.CSSProperties['paddingTop']>;
|
|
28
|
+
pr?: React.CSSProperties['paddingRight'] | Array<React.CSSProperties['paddingRight']>;
|
|
29
|
+
pb?: React.CSSProperties['paddingBottom'] | Array<React.CSSProperties['paddingBottom']>;
|
|
30
|
+
pl?: React.CSSProperties['paddingLeft'] | Array<React.CSSProperties['paddingLeft']>;
|
|
31
|
+
px?: number | string | Array<number | string>;
|
|
32
|
+
py?: number | string | Array<number | string>;
|
|
33
|
+
fontColor?: React.CSSProperties['color'] | NestedThemeType | Array<React.CSSProperties['color']>;
|
|
34
|
+
opacity?: React.CSSProperties['opacity'] | Array<React.CSSProperties['opacity']>;
|
|
35
|
+
fontFamily?: React.CSSProperties['fontFamily'] | Array<React.CSSProperties['fontFamily']>;
|
|
36
|
+
fontSize?: React.CSSProperties['fontSize'] | Array<React.CSSProperties['fontSize']>;
|
|
37
|
+
fontWeight?: React.CSSProperties['fontWeight'] | Array<React.CSSProperties['fontWeight']>;
|
|
38
|
+
lineHeight?: React.CSSProperties['lineHeight'] | Array<React.CSSProperties['lineHeight']>;
|
|
39
|
+
textAlign?: React.CSSProperties['textAlign'] | Array<React.CSSProperties['textAlign']>;
|
|
40
|
+
fontStyle?: React.CSSProperties['fontStyle'] | Array<React.CSSProperties['fontStyle']>;
|
|
41
|
+
textTransform?: React.CSSProperties['textTransform'] | Array<React.CSSProperties['textTransform']>;
|
|
42
|
+
textDecoration?: React.CSSProperties['textDecoration'] | Array<React.CSSProperties['textDecoration']>;
|
|
43
|
+
w?: React.CSSProperties['width'] | Array<React.CSSProperties['width']>;
|
|
44
|
+
h?: React.CSSProperties['height'] | Array<React.CSSProperties['height']>;
|
|
45
|
+
maxW?: React.CSSProperties['maxWidth'] | Array<React.CSSProperties['maxWidth']>;
|
|
46
|
+
minW?: React.CSSProperties['minWidth'] | Array<React.CSSProperties['minWidth']>;
|
|
47
|
+
maxH?: React.CSSProperties['maxHeight'] | Array<React.CSSProperties['maxHeight']>;
|
|
48
|
+
minH?: React.CSSProperties['minHeight'] | Array<React.CSSProperties['minHeight']>;
|
|
49
|
+
d?: React.CSSProperties['display'] | Array<React.CSSProperties['display']>;
|
|
50
|
+
overflow?: React.CSSProperties['overflow'] | Array<React.CSSProperties['overflow']>;
|
|
51
|
+
overflowX?: React.CSSProperties['overflowX'] | Array<React.CSSProperties['overflowX']>;
|
|
52
|
+
overflowY?: React.CSSProperties['overflowY'] | Array<React.CSSProperties['overflowY']>;
|
|
53
|
+
align?: React.CSSProperties['alignItems'] | Array<React.CSSProperties['alignItems']>;
|
|
54
|
+
alignContent?: React.CSSProperties['alignContent'] | Array<React.CSSProperties['alignContent']>;
|
|
55
|
+
alignSelf?: React.CSSProperties['alignSelf'] | Array<React.CSSProperties['alignSelf']>;
|
|
56
|
+
justifyItems?: React.CSSProperties['justifyItems'] | Array<React.CSSProperties['justifyItems']>;
|
|
57
|
+
justify?: React.CSSProperties['justifyContent'] | Array<React.CSSProperties['justifyContent']>;
|
|
58
|
+
justifySelf?: React.CSSProperties['justifySelf'] | Array<React.CSSProperties['justifySelf']>;
|
|
59
|
+
flexWrap?: React.CSSProperties['flexWrap'] | Array<React.CSSProperties['flexWrap']>;
|
|
60
|
+
direction?: React.CSSProperties['flexDirection'] | Array<React.CSSProperties['flexDirection']>;
|
|
61
|
+
flex?: React.CSSProperties['flex'] | Array<React.CSSProperties['flex']>;
|
|
62
|
+
flexGrow?: React.CSSProperties['flexGrow'] | Array<React.CSSProperties['flexGrow']>;
|
|
63
|
+
flexShrink?: React.CSSProperties['flexShrink'] | Array<React.CSSProperties['flexShrink']>;
|
|
64
|
+
flexBasis?: React.CSSProperties['flexBasis'] | Array<React.CSSProperties['flexBasis']>;
|
|
65
|
+
order?: React.CSSProperties['order'] | Array<React.CSSProperties['order']>;
|
|
66
|
+
bg?: React.CSSProperties['background'] | Array<React.CSSProperties['background']>;
|
|
67
|
+
bgImage?: React.CSSProperties['backgroundImage'] | Array<React.CSSProperties['backgroundImage']>;
|
|
68
|
+
bgColor?: React.CSSProperties['backgroundColor'] | NestedThemeType | Array<React.CSSProperties['backgroundColor']>;
|
|
69
|
+
bgSize?: React.CSSProperties['backgroundSize'] | Array<React.CSSProperties['backgroundSize']>;
|
|
70
|
+
bgPosition?: React.CSSProperties['backgroundPosition'] | Array<React.CSSProperties['backgroundPosition']>;
|
|
71
|
+
bgRepeat?: React.CSSProperties['backgroundRepeat'] | Array<React.CSSProperties['backgroundRepeat']>;
|
|
72
|
+
border?: React.CSSProperties['border'] | Array<React.CSSProperties['border']>;
|
|
73
|
+
borderWidth?: React.CSSProperties['borderWidth'] | Array<React.CSSProperties['borderWidth']>;
|
|
74
|
+
borderStyle?: React.CSSProperties['borderStyle'] | Array<React.CSSProperties['borderStyle']>;
|
|
75
|
+
borderColor?: React.CSSProperties['borderColor'] | NestedThemeType | Array<React.CSSProperties['borderColor']>;
|
|
76
|
+
borderTop?: React.CSSProperties['borderTop'] | Array<React.CSSProperties['borderTop']>;
|
|
77
|
+
borderTopWidth?: React.CSSProperties['borderTopWidth'] | Array<React.CSSProperties['borderTopWidth']>;
|
|
78
|
+
borderTopStyle?: React.CSSProperties['borderTopStyle'] | Array<React.CSSProperties['borderTopStyle']>;
|
|
79
|
+
borderTopColor?: React.CSSProperties['borderTopColor'] | Array<React.CSSProperties['borderTopColor']>;
|
|
80
|
+
borderRight?: React.CSSProperties['borderRight'] | Array<React.CSSProperties['borderRight']>;
|
|
81
|
+
borderRightWidth?: React.CSSProperties['borderRightWidth'] | Array<React.CSSProperties['borderRightWidth']>;
|
|
82
|
+
borderRightStyle?: React.CSSProperties['borderRightStyle'] | Array<React.CSSProperties['borderRightStyle']>;
|
|
83
|
+
borderRightColor?: React.CSSProperties['borderRightColor'] | Array<React.CSSProperties['borderRightColor']>;
|
|
84
|
+
borderBottom?: React.CSSProperties['borderBottom'] | Array<React.CSSProperties['borderBottom']>;
|
|
85
|
+
borderBottomWidth?: React.CSSProperties['borderBottomWidth'] | Array<React.CSSProperties['borderBottomWidth']>;
|
|
86
|
+
borderBottomStyle?: React.CSSProperties['borderBottomStyle'] | Array<React.CSSProperties['borderBottomStyle']>;
|
|
87
|
+
borderBottomColor?: React.CSSProperties['borderBottomColor'] | Array<React.CSSProperties['borderBottomColor']>;
|
|
88
|
+
borderLeft?: React.CSSProperties['borderLeft'] | Array<React.CSSProperties['borderLeft']>;
|
|
89
|
+
borderLeftWidth?: React.CSSProperties['borderLeftWidth'] | Array<React.CSSProperties['borderLeftWidth']>;
|
|
90
|
+
borderLeftStyle?: React.CSSProperties['borderLeftStyle'] | Array<React.CSSProperties['borderLeftStyle']>;
|
|
91
|
+
borderLeftColor?: React.CSSProperties['borderLeftColor'] | Array<React.CSSProperties['borderLeftColor']>;
|
|
92
|
+
borderRadius?: React.CSSProperties['borderRadius'] | Array<React.CSSProperties['borderRadius']>;
|
|
93
|
+
borderTopLeftRadius?: React.CSSProperties['borderTopLeftRadius'] | Array<React.CSSProperties['borderTopLeftRadius']>;
|
|
94
|
+
borderTopRightRadius?: React.CSSProperties['borderTopRightRadius'] | Array<React.CSSProperties['borderTopRightRadius']>;
|
|
95
|
+
borderBottomRightRadius?: React.CSSProperties['borderBottomRightRadius'] | Array<React.CSSProperties['borderBottomRightRadius']>;
|
|
96
|
+
borderBottomLeftRadius?: React.CSSProperties['borderBottomLeftRadius'] | Array<React.CSSProperties['borderBottomLeftRadius']>;
|
|
97
|
+
position?: React.CSSProperties['position'] | Array<React.CSSProperties['position']>;
|
|
98
|
+
zIndex?: React.CSSProperties['zIndex'] | Array<React.CSSProperties['zIndex']>;
|
|
99
|
+
top?: React.CSSProperties['top'] | Array<React.CSSProperties['top']>;
|
|
100
|
+
right?: React.CSSProperties['right'] | Array<React.CSSProperties['right']>;
|
|
101
|
+
bottom?: React.CSSProperties['bottom'] | Array<React.CSSProperties['bottom']>;
|
|
102
|
+
left?: React.CSSProperties['left'] | Array<React.CSSProperties['left']>;
|
|
103
|
+
boxShadow?: React.CSSProperties['boxShadow'] | BoxShadowIntensityType;
|
|
104
|
+
animation?: React.CSSProperties['animation'] | Array<React.CSSProperties['animation']>;
|
|
105
|
+
visibility?: React.CSSProperties['visibility'] | Array<React.CSSProperties['visibility']>;
|
|
106
|
+
cursor?: React.CSSProperties['cursor'] | Array<React.CSSProperties['cursor']>;
|
|
107
|
+
round?: IntensityType;
|
|
108
|
+
whiteSpace?: React.CSSProperties['whiteSpace'] | Array<React.CSSProperties['whiteSpace']>;
|
|
109
|
+
wordBreak?: React.CSSProperties['wordBreak'] | Array<React.CSSProperties['wordBreak']>;
|
|
110
|
+
gridTemplateColumns?: React.CSSProperties['gridTemplateColumns'] | Array<React.CSSProperties['gridTemplateColumns']>;
|
|
111
|
+
_hover?: string;
|
|
112
|
+
all?: React.CSSProperties['all'] | Array<React.CSSProperties['all']>;
|
|
113
|
+
transition?: React.CSSProperties['transition'] | Array<React.CSSProperties['transition']>;
|
|
114
|
+
transform?: React.CSSProperties['transform'] | Array<React.CSSProperties['transform']>;
|
|
115
|
+
textOverflow?: React.CSSProperties['textOverflow'] | Array<React.CSSProperties['textOverflow']>;
|
|
116
|
+
outline?: React.CSSProperties['outline'] | Array<React.CSSProperties['outline']>;
|
|
117
|
+
outlineWidth?: React.CSSProperties['outlineWidth'] | Array<React.CSSProperties['outlineWidth']>;
|
|
118
|
+
outlineStyle?: React.CSSProperties['outlineStyle'] | Array<React.CSSProperties['outlineStyle']>;
|
|
119
|
+
outlineColor?: React.CSSProperties['outlineColor'] | NestedThemeType | Array<React.CSSProperties['outlineColor']>;
|
|
120
|
+
userSelect?: React.CSSProperties['userSelect'] | Array<React.CSSProperties['userSelect']>;
|
|
121
|
+
verticalAlign?: React.CSSProperties['verticalAlign'] | Array<React.CSSProperties['verticalAlign']>;
|
|
122
|
+
pointerEvents?: React.CSSProperties['pointerEvents'] | Array<React.CSSProperties['pointerEvents']>;
|
|
123
|
+
label?: string;
|
|
124
|
+
disabled?: boolean;
|
|
125
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export const boxComponentProps = [
|
|
2
|
+
'id',
|
|
3
|
+
'className',
|
|
4
|
+
'style',
|
|
5
|
+
'm',
|
|
6
|
+
'mt',
|
|
7
|
+
'mr',
|
|
8
|
+
'mb',
|
|
9
|
+
'ml',
|
|
10
|
+
'mx',
|
|
11
|
+
'my',
|
|
12
|
+
'boxShadow',
|
|
13
|
+
'color',
|
|
14
|
+
'round',
|
|
15
|
+
'p',
|
|
16
|
+
'pt',
|
|
17
|
+
'pr',
|
|
18
|
+
'pb',
|
|
19
|
+
'pl',
|
|
20
|
+
'px',
|
|
21
|
+
'py',
|
|
22
|
+
'opacity',
|
|
23
|
+
'fontFamily',
|
|
24
|
+
'fontSize',
|
|
25
|
+
'fontWeight',
|
|
26
|
+
'lineHeight',
|
|
27
|
+
'textAlign',
|
|
28
|
+
'fontStyle',
|
|
29
|
+
'textTransform',
|
|
30
|
+
'textDecoration',
|
|
31
|
+
'w',
|
|
32
|
+
'h',
|
|
33
|
+
'minW',
|
|
34
|
+
'maxW',
|
|
35
|
+
'minH',
|
|
36
|
+
'maxH',
|
|
37
|
+
'd',
|
|
38
|
+
'overflow',
|
|
39
|
+
'overflowX',
|
|
40
|
+
'overflowY',
|
|
41
|
+
'align',
|
|
42
|
+
'alignContent',
|
|
43
|
+
'alignSelf',
|
|
44
|
+
'justifyItems',
|
|
45
|
+
'justify',
|
|
46
|
+
'justifySelf',
|
|
47
|
+
'wrap',
|
|
48
|
+
'direction',
|
|
49
|
+
'flex',
|
|
50
|
+
'flexGrow',
|
|
51
|
+
'flexShrink',
|
|
52
|
+
'flexBasis',
|
|
53
|
+
'order',
|
|
54
|
+
'bg',
|
|
55
|
+
'bgImage',
|
|
56
|
+
'bgColor',
|
|
57
|
+
'bgSize',
|
|
58
|
+
'bgPosition',
|
|
59
|
+
'bgRepeat',
|
|
60
|
+
'border',
|
|
61
|
+
'borderWidth',
|
|
62
|
+
'borderStyle',
|
|
63
|
+
'borderColor',
|
|
64
|
+
'borderTop',
|
|
65
|
+
'borderTopWidth',
|
|
66
|
+
'borderTopStyle',
|
|
67
|
+
'borderTopColor',
|
|
68
|
+
'borderRight',
|
|
69
|
+
'borderRightWidth',
|
|
70
|
+
'borderRightStyle',
|
|
71
|
+
'borderRightColor',
|
|
72
|
+
'borderBottom',
|
|
73
|
+
'borderBottomWidth',
|
|
74
|
+
'borderBottomStyle',
|
|
75
|
+
'borderBottomColor',
|
|
76
|
+
'borderLeft',
|
|
77
|
+
'borderLeftWidth',
|
|
78
|
+
'borderLeftStyle',
|
|
79
|
+
'borderLeftColor',
|
|
80
|
+
'borderRadius',
|
|
81
|
+
'borderTopLeftRadius',
|
|
82
|
+
'borderTopRightRadius',
|
|
83
|
+
'borderBottomRightRadius',
|
|
84
|
+
'borderBottomLeftRadius',
|
|
85
|
+
'position',
|
|
86
|
+
'zIndex',
|
|
87
|
+
'top',
|
|
88
|
+
'right',
|
|
89
|
+
'bottom',
|
|
90
|
+
'left',
|
|
91
|
+
'animation',
|
|
92
|
+
'visibility',
|
|
93
|
+
'cursor',
|
|
94
|
+
'userSelect',
|
|
95
|
+
'verticalAlign',
|
|
96
|
+
'pointerEvents',
|
|
97
|
+
'label',
|
|
98
|
+
'disabled',
|
|
99
|
+
'boxAs',
|
|
100
|
+
'children',
|
|
101
|
+
'theme',
|
|
102
|
+
];
|
|
103
|
+
//# sourceMappingURL=model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../components/Box/model.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC,IAAI;IACJ,WAAW;IACX,OAAO;IACP,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,WAAW;IACX,OAAO;IACP,OAAO;IACP,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,SAAS;IACT,YAAY;IACZ,UAAU;IACV,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,WAAW;IACX,eAAe;IACf,gBAAgB;IAChB,GAAG;IACH,GAAG;IACH,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,GAAG;IACH,UAAU;IACV,WAAW;IACX,WAAW;IACX,OAAO;IACP,cAAc;IACd,WAAW;IACX,cAAc;IACd,SAAS;IACT,aAAa;IACb,MAAM;IACN,WAAW;IACX,MAAM;IACN,UAAU;IACV,YAAY;IACZ,WAAW;IACX,OAAO;IACP,IAAI;IACJ,SAAS;IACT,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,UAAU;IACV,QAAQ;IACR,aAAa;IACb,aAAa;IACb,aAAa;IACb,WAAW;IACX,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,cAAc;IACd,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,YAAY;IACZ,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,cAAc;IACd,qBAAqB;IACrB,sBAAsB;IACtB,yBAAyB;IACzB,wBAAwB;IACxB,UAAU;IACV,QAAQ;IACR,KAAK;IACL,OAAO;IACP,QAAQ;IACR,MAAM;IACN,WAAW;IACX,YAAY;IACZ,QAAQ;IACR,YAAY;IACZ,eAAe;IACf,eAAe;IACf,OAAO;IACP,UAAU;IACV,OAAO;IACP,UAAU;IACV,OAAO;CACP,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
interface ISupportedStyleProps {
|
|
2
|
-
[key: string]: {
|
|
3
|
-
property: string;
|
|
4
|
-
processedValue?: boolean;
|
|
5
|
-
usePallete?: boolean;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export declare const SupportedStyleProps: ISupportedStyleProps;
|
|
9
|
-
export {};
|
|
1
|
+
interface ISupportedStyleProps {
|
|
2
|
+
[key: string]: {
|
|
3
|
+
property: string;
|
|
4
|
+
processedValue?: boolean;
|
|
5
|
+
usePallete?: boolean;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare const SupportedStyleProps: ISupportedStyleProps;
|
|
9
|
+
export {};
|