@autoguru/overdrive 3.0.0-next.8 → 4.0.2
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/CHANGELOG.md +106 -0
- package/dist/components/Actions/Actions.d.ts +7 -0
- package/dist/components/Actions/Actions.d.ts.map +1 -0
- package/dist/components/Actions/Actions.js +3 -14
- package/dist/components/Actions/index.d.ts +2 -0
- package/dist/components/Actions/index.d.ts.map +1 -0
- package/dist/components/Actions/index.js +1 -3
- package/dist/components/Actions/stories.js +37 -16
- package/dist/components/Alert/Alert.css.d.ts +4 -0
- package/dist/components/Alert/Alert.css.d.ts.map +1 -0
- package/dist/components/Alert/Alert.css.js +20 -28
- package/dist/components/Alert/Alert.d.ts +15 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/Alert.js +26 -49
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Alert/index.js +1 -3
- package/dist/components/Alert/stories.js +63 -60
- package/dist/components/Anchor/Anchor.css.d.ts +2 -0
- package/dist/components/Anchor/Anchor.css.d.ts.map +1 -0
- package/dist/components/Anchor/Anchor.css.js +3 -11
- package/dist/components/Anchor/Anchor.d.ts +14 -0
- package/dist/components/Anchor/Anchor.d.ts.map +1 -0
- package/dist/components/Anchor/Anchor.js +28 -42
- package/dist/components/Anchor/index.d.ts +2 -0
- package/dist/components/Anchor/index.d.ts.map +1 -0
- package/dist/components/Anchor/index.js +1 -3
- package/dist/components/Anchor/stories.js +2 -1
- package/dist/components/AutoSuggest/AutoSuggest.css.d.ts +15 -0
- package/dist/components/AutoSuggest/AutoSuggest.css.d.ts.map +1 -0
- package/dist/components/AutoSuggest/AutoSuggest.css.js +76 -84
- package/dist/components/AutoSuggest/AutoSuggest.d.ts +29 -0
- package/dist/components/AutoSuggest/AutoSuggest.d.ts.map +1 -0
- package/dist/components/AutoSuggest/AutoSuggest.js +300 -459
- package/dist/components/AutoSuggest/index.d.ts +3 -0
- package/dist/components/AutoSuggest/index.d.ts.map +1 -0
- package/dist/components/AutoSuggest/index.js +1 -3
- package/dist/components/AutoSuggest/stories.js +9 -5
- package/dist/components/AutoSuggest/useLayoutSuggestionVisible.d.ts +3 -0
- package/dist/components/AutoSuggest/useLayoutSuggestionVisible.d.ts.map +1 -0
- package/dist/components/AutoSuggest/useLayoutSuggestionVisible.js +31 -29
- package/dist/components/Badge/Badge.css.d.ts +13 -0
- package/dist/components/Badge/Badge.css.d.ts.map +1 -0
- package/dist/components/Badge/Badge.css.js +71 -79
- package/dist/components/Badge/Badge.d.ts +11 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/Badge.js +28 -31
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Badge/index.js +1 -3
- package/dist/components/Badge/stories.js +22 -16
- package/dist/components/Box/Box.d.ts +7 -0
- package/dist/components/Box/Box.d.ts.map +1 -0
- package/dist/components/Box/Box.js +53 -112
- package/dist/components/Box/argTypes.d.ts +7 -0
- package/dist/components/Box/argTypes.d.ts.map +1 -0
- package/dist/components/Box/argTypes.js +94 -64
- package/dist/components/Box/index.d.ts +4 -0
- package/dist/components/Box/index.d.ts.map +1 -0
- package/dist/components/Box/index.js +2 -4
- package/dist/components/Box/stories.js +23 -8
- package/dist/components/Box/useBoxStyles.css.d.ts +46 -0
- package/dist/components/Box/useBoxStyles.css.d.ts.map +1 -0
- package/dist/components/Box/useBoxStyles.css.js +85 -105
- package/dist/components/Box/useBoxStyles.d.ts +66 -0
- package/dist/components/Box/useBoxStyles.d.ts.map +1 -0
- package/dist/components/Box/useBoxStyles.js +47 -75
- package/dist/components/BulletList/Bullet.css.d.ts +3 -0
- package/dist/components/BulletList/Bullet.css.d.ts.map +1 -0
- package/dist/components/BulletList/Bullet.css.js +41 -49
- package/dist/components/BulletList/Bullet.d.ts +7 -0
- package/dist/components/BulletList/Bullet.d.ts.map +1 -0
- package/dist/components/BulletList/Bullet.js +24 -35
- package/dist/components/BulletList/BulletList.css.d.ts +3 -0
- package/dist/components/BulletList/BulletList.css.d.ts.map +1 -0
- package/dist/components/BulletList/BulletList.css.js +5 -13
- package/dist/components/BulletList/BulletList.d.ts +6 -0
- package/dist/components/BulletList/BulletList.d.ts.map +1 -0
- package/dist/components/BulletList/BulletList.js +10 -19
- package/dist/components/BulletList/context.d.ts +5 -0
- package/dist/components/BulletList/context.d.ts.map +1 -0
- package/dist/components/BulletList/context.js +1 -3
- package/dist/components/BulletList/index.d.ts +3 -0
- package/dist/components/BulletList/index.d.ts.map +1 -0
- package/dist/components/BulletList/index.js +2 -4
- package/dist/components/BulletList/stories.js +61 -73
- package/dist/components/BulletText/BulletText.css.d.ts +6 -0
- package/dist/components/BulletText/BulletText.css.d.ts.map +1 -0
- package/dist/components/BulletText/BulletText.css.js +13 -21
- package/dist/components/BulletText/BulletText.d.ts +8 -0
- package/dist/components/BulletText/BulletText.d.ts.map +1 -0
- package/dist/components/BulletText/BulletText.js +15 -34
- package/dist/components/BulletText/index.d.ts +2 -0
- package/dist/components/BulletText/index.d.ts.map +1 -0
- package/dist/components/BulletText/index.js +1 -3
- package/dist/components/BulletText/stories.js +28 -15
- package/dist/components/Button/Button.css.d.ts +30 -0
- package/dist/components/Button/Button.css.d.ts.map +1 -0
- package/dist/components/Button/Button.css.js +143 -151
- package/dist/components/Button/Button.d.ts +20 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.js +72 -102
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.js +1 -3
- package/dist/components/Button/stories.js +183 -126
- package/dist/components/CheckBox/CheckBox.css.d.ts +3 -0
- package/dist/components/CheckBox/CheckBox.css.d.ts.map +1 -0
- package/dist/components/CheckBox/CheckBox.css.js +20 -28
- package/dist/components/CheckBox/CheckBox.d.ts +14 -0
- package/dist/components/CheckBox/CheckBox.d.ts.map +1 -0
- package/dist/components/CheckBox/CheckBox.js +16 -35
- package/dist/components/CheckBox/index.d.ts +2 -0
- package/dist/components/CheckBox/index.d.ts.map +1 -0
- package/dist/components/CheckBox/index.js +1 -3
- package/dist/components/CheckBox/stories.js +73 -35
- package/dist/components/Columns/Column.css.d.ts +3 -0
- package/dist/components/Columns/Column.css.d.ts.map +1 -0
- package/dist/components/Columns/Column.css.js +26 -36
- package/dist/components/Columns/Column.d.ts +15 -0
- package/dist/components/Columns/Column.d.ts.map +1 -0
- package/dist/components/Columns/Column.js +16 -33
- package/dist/components/Columns/Columns.css.d.ts +7 -0
- package/dist/components/Columns/Columns.css.d.ts.map +1 -0
- package/dist/components/Columns/Columns.css.js +31 -39
- package/dist/components/Columns/Columns.d.ts +25 -0
- package/dist/components/Columns/Columns.d.ts.map +1 -0
- package/dist/components/Columns/Columns.js +21 -40
- package/dist/components/Columns/index.d.ts +3 -0
- package/dist/components/Columns/index.d.ts.map +1 -0
- package/dist/components/Columns/index.js +2 -4
- package/dist/components/Columns/stories.js +142 -81
- package/dist/components/DateInput/DateInput.d.ts +3 -0
- package/dist/components/DateInput/DateInput.d.ts.map +1 -0
- package/dist/components/DateInput/DateInput.js +7 -21
- package/dist/components/DateInput/index.d.ts +2 -0
- package/dist/components/DateInput/index.d.ts.map +1 -0
- package/dist/components/DateInput/index.js +1 -3
- package/dist/components/DateInput/stories.js +2 -1
- package/dist/components/Flyout/Flyout.d.ts +4 -0
- package/dist/components/Flyout/Flyout.d.ts.map +1 -0
- package/dist/components/Flyout/Flyout.js +4 -22
- package/dist/components/Flyout/index.d.ts +2 -0
- package/dist/components/Flyout/index.d.ts.map +1 -0
- package/dist/components/Flyout/index.js +1 -3
- package/dist/components/Flyout/stories.js +36 -22
- package/dist/components/Heading/Heading.d.ts +11 -0
- package/dist/components/Heading/Heading.d.ts.map +1 -0
- package/dist/components/Heading/Heading.js +19 -34
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/Heading/index.d.ts.map +1 -0
- package/dist/components/Heading/index.js +1 -3
- package/dist/components/Heading/stories.js +37 -22
- package/dist/components/Icon/Icon.css.d.ts +2 -0
- package/dist/components/Icon/Icon.css.d.ts.map +1 -0
- package/dist/components/Icon/Icon.css.js +5 -13
- package/dist/components/Icon/Icon.d.ts +13 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/Icon.js +8 -20
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/Icon/index.js +1 -3
- package/dist/components/Icon/stories.js +2 -1
- package/dist/components/Inline/Inline.d.ts +13 -0
- package/dist/components/Inline/Inline.d.ts.map +1 -0
- package/dist/components/Inline/Inline.js +30 -45
- package/dist/components/Inline/index.d.ts +2 -0
- package/dist/components/Inline/index.d.ts.map +1 -0
- package/dist/components/Inline/index.js +1 -3
- package/dist/components/Inline/stories.js +65 -34
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.css.d.ts +4 -0
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.css.d.ts.map +1 -0
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.css.js +48 -56
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.d.ts +6 -0
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.d.ts.map +1 -0
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.js +7 -14
- package/dist/components/LinearProgressIndicator/index.d.ts +2 -0
- package/dist/components/LinearProgressIndicator/index.d.ts.map +1 -0
- package/dist/components/LinearProgressIndicator/index.js +1 -3
- package/dist/components/LinearProgressIndicator/stories.js +15 -5
- package/dist/components/LoadingBox/LoadingBox.css.d.ts +3 -0
- package/dist/components/LoadingBox/LoadingBox.css.d.ts.map +1 -0
- package/dist/components/LoadingBox/LoadingBox.css.js +18 -26
- package/dist/components/LoadingBox/LoadingBox.d.ts +9 -0
- package/dist/components/LoadingBox/LoadingBox.d.ts.map +1 -0
- package/dist/components/LoadingBox/LoadingBox.js +6 -23
- package/dist/components/LoadingBox/index.d.ts +2 -0
- package/dist/components/LoadingBox/index.d.ts.map +1 -0
- package/dist/components/LoadingBox/index.js +1 -3
- package/dist/components/LoadingBox/stories.js +16 -8
- package/dist/components/Meta/Meta.css.d.ts +2 -0
- package/dist/components/Meta/Meta.css.d.ts.map +1 -0
- package/dist/components/Meta/Meta.css.js +8 -16
- package/dist/components/Meta/Meta.d.ts +10 -0
- package/dist/components/Meta/Meta.d.ts.map +1 -0
- package/dist/components/Meta/Meta.js +7 -17
- package/dist/components/Meta/index.d.ts +2 -0
- package/dist/components/Meta/index.d.ts.map +1 -0
- package/dist/components/Meta/index.js +1 -3
- package/dist/components/Meta/stories.js +8 -1
- package/dist/components/MinimalModal/MinimalModal.css.d.ts +3 -0
- package/dist/components/MinimalModal/MinimalModal.css.d.ts.map +1 -0
- package/dist/components/MinimalModal/MinimalModal.css.js +7 -15
- package/dist/components/MinimalModal/MinimalModal.d.ts +7 -0
- package/dist/components/MinimalModal/MinimalModal.d.ts.map +1 -0
- package/dist/components/MinimalModal/MinimalModal.js +27 -38
- package/dist/components/MinimalModal/index.d.ts +2 -0
- package/dist/components/MinimalModal/index.d.ts.map +1 -0
- package/dist/components/MinimalModal/index.js +1 -3
- package/dist/components/MinimalModal/stories.js +43 -145
- package/dist/components/Modal/Modal.css.d.ts +5 -0
- package/dist/components/Modal/Modal.css.d.ts.map +1 -0
- package/dist/components/Modal/Modal.css.js +30 -38
- package/dist/components/Modal/Modal.d.ts +9 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/Modal.js +72 -102
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Modal/index.js +1 -3
- package/dist/components/Modal/stories.js +33 -74
- package/dist/components/NumberInput/NumberInput.d.ts +7 -0
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -0
- package/dist/components/NumberInput/NumberInput.js +29 -47
- package/dist/components/NumberInput/index.d.ts +2 -0
- package/dist/components/NumberInput/index.d.ts.map +1 -0
- package/dist/components/NumberInput/index.js +1 -3
- package/dist/components/NumberInput/stories.js +2 -1
- package/dist/components/OrderedList/OrderedList.css.d.ts +2 -0
- package/dist/components/OrderedList/OrderedList.css.d.ts.map +1 -0
- package/dist/components/OrderedList/OrderedList.css.js +8 -16
- package/dist/components/OrderedList/OrderedList.d.ts +14 -0
- package/dist/components/OrderedList/OrderedList.d.ts.map +1 -0
- package/dist/components/OrderedList/OrderedList.js +26 -47
- package/dist/components/OrderedList/index.d.ts +2 -0
- package/dist/components/OrderedList/index.d.ts.map +1 -0
- package/dist/components/OrderedList/index.js +1 -3
- package/dist/components/OrderedList/stories.js +51 -33
- package/dist/components/OutsideClick/OutsideClick.d.ts +8 -0
- package/dist/components/OutsideClick/OutsideClick.d.ts.map +1 -0
- package/dist/components/OutsideClick/OutsideClick.js +35 -40
- package/dist/components/OutsideClick/index.d.ts +2 -0
- package/dist/components/OutsideClick/index.d.ts.map +1 -0
- package/dist/components/OutsideClick/index.js +1 -3
- package/dist/components/OutsideClick/stories.js +12 -3
- package/dist/components/OverdriveProvider/OverdriveProvider.d.ts +7 -0
- package/dist/components/OverdriveProvider/OverdriveProvider.d.ts.map +1 -0
- package/dist/components/OverdriveProvider/OverdriveProvider.js +18 -28
- package/dist/components/OverdriveProvider/index.d.ts +2 -0
- package/dist/components/OverdriveProvider/index.d.ts.map +1 -0
- package/dist/components/OverdriveProvider/index.js +1 -3
- package/dist/components/Pagination/Bubble.d.ts +10 -0
- package/dist/components/Pagination/Bubble.d.ts.map +1 -0
- package/dist/components/Pagination/Bubble.js +19 -28
- package/dist/components/Pagination/Pagination.css.d.ts +4 -0
- package/dist/components/Pagination/Pagination.css.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.css.js +20 -28
- package/dist/components/Pagination/Pagination.d.ts +16 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.js +69 -119
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Pagination/index.js +1 -3
- package/dist/components/Pagination/stories.js +12 -7
- package/dist/components/Portal/Portal.d.ts +10 -0
- package/dist/components/Portal/Portal.d.ts.map +1 -0
- package/dist/components/Portal/Portal.js +22 -30
- package/dist/components/Portal/index.d.ts +2 -0
- package/dist/components/Portal/index.d.ts.map +1 -0
- package/dist/components/Portal/index.js +1 -3
- package/dist/components/Portal/stories.js +29 -13
- package/dist/components/Positioner/Positioner.css.d.ts +2 -0
- package/dist/components/Positioner/Positioner.css.d.ts.map +1 -0
- package/dist/components/Positioner/Positioner.css.js +6 -14
- package/dist/components/Positioner/Positioner.d.ts +12 -0
- package/dist/components/Positioner/Positioner.d.ts.map +1 -0
- package/dist/components/Positioner/Positioner.js +86 -106
- package/dist/components/Positioner/alignment.d.ts +11 -0
- package/dist/components/Positioner/alignment.d.ts.map +1 -0
- package/dist/components/Positioner/alignment.js +10 -13
- package/dist/components/Positioner/index.d.ts +3 -0
- package/dist/components/Positioner/index.d.ts.map +1 -0
- package/dist/components/Positioner/index.js +2 -4
- package/dist/components/Positioner/stories.js +60 -40
- package/dist/components/ProgressBar/ProgressBar.css.d.ts +3 -0
- package/dist/components/ProgressBar/ProgressBar.css.d.ts.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.css.js +6 -14
- package/dist/components/ProgressBar/ProgressBar.d.ts +9 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.js +11 -20
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/ProgressBar/index.d.ts.map +1 -0
- package/dist/components/ProgressBar/index.js +1 -3
- package/dist/components/ProgressBar/stories.js +28 -8
- package/dist/components/ProgressBarGroup/ProgressBarGroup.css.d.ts +2 -0
- package/dist/components/ProgressBarGroup/ProgressBarGroup.css.d.ts.map +1 -0
- package/dist/components/ProgressBarGroup/ProgressBarGroup.css.js +4 -12
- package/dist/components/ProgressBarGroup/ProgressBarGroup.d.ts +10 -0
- package/dist/components/ProgressBarGroup/ProgressBarGroup.d.ts.map +1 -0
- package/dist/components/ProgressBarGroup/ProgressBarGroup.js +14 -30
- package/dist/components/ProgressBarGroup/index.d.ts +2 -0
- package/dist/components/ProgressBarGroup/index.d.ts.map +1 -0
- package/dist/components/ProgressBarGroup/index.js +1 -3
- package/dist/components/ProgressBarGroup/stories.js +8 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.css.d.ts +9 -0
- package/dist/components/ProgressSpinner/ProgressSpinner.css.d.ts.map +1 -0
- package/dist/components/ProgressSpinner/ProgressSpinner.css.js +73 -81
- package/dist/components/ProgressSpinner/ProgressSpinner.d.ts +9 -0
- package/dist/components/ProgressSpinner/ProgressSpinner.d.ts.map +1 -0
- package/dist/components/ProgressSpinner/ProgressSpinner.js +13 -20
- package/dist/components/ProgressSpinner/index.d.ts +2 -0
- package/dist/components/ProgressSpinner/index.d.ts.map +1 -0
- package/dist/components/ProgressSpinner/index.js +1 -3
- package/dist/components/ProgressSpinner/stories.js +23 -12
- package/dist/components/Radio/Radio.css.d.ts +2 -0
- package/dist/components/Radio/Radio.css.d.ts.map +1 -0
- package/dist/components/Radio/Radio.css.js +23 -31
- package/dist/components/Radio/Radio.d.ts +10 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -0
- package/dist/components/Radio/Radio.js +19 -36
- package/dist/components/Radio/RadioGroup.d.ts +19 -0
- package/dist/components/Radio/RadioGroup.d.ts.map +1 -0
- package/dist/components/Radio/RadioGroup.js +7 -23
- package/dist/components/Radio/index.d.ts +3 -0
- package/dist/components/Radio/index.d.ts.map +1 -0
- package/dist/components/Radio/index.js +2 -4
- package/dist/components/Radio/stories.js +71 -37
- package/dist/components/Section/Section.css.d.ts +3 -0
- package/dist/components/Section/Section.css.d.ts.map +1 -0
- package/dist/components/Section/Section.css.js +5 -13
- package/dist/components/Section/Section.d.ts +8 -0
- package/dist/components/Section/Section.d.ts.map +1 -0
- package/dist/components/Section/Section.js +3 -14
- package/dist/components/Section/index.d.ts +2 -0
- package/dist/components/Section/index.d.ts.map +1 -0
- package/dist/components/Section/index.js +1 -3
- package/dist/components/Section/stories.js +15 -4
- package/dist/components/SelectInput/SelectInput.css.d.ts +4 -0
- package/dist/components/SelectInput/SelectInput.css.d.ts.map +1 -0
- package/dist/components/SelectInput/SelectInput.css.js +11 -19
- package/dist/components/SelectInput/SelectInput.d.ts +6 -0
- package/dist/components/SelectInput/SelectInput.d.ts.map +1 -0
- package/dist/components/SelectInput/SelectInput.js +11 -30
- package/dist/components/SelectInput/index.d.ts +2 -0
- package/dist/components/SelectInput/index.d.ts.map +1 -0
- package/dist/components/SelectInput/index.js +1 -3
- package/dist/components/SelectInput/stories.js +12 -7
- package/dist/components/SimplePagination/SimplePagination.d.ts +14 -0
- package/dist/components/SimplePagination/SimplePagination.d.ts.map +1 -0
- package/dist/components/SimplePagination/SimplePagination.js +17 -31
- package/dist/components/SimplePagination/index.d.ts +2 -0
- package/dist/components/SimplePagination/index.d.ts.map +1 -0
- package/dist/components/SimplePagination/index.js +1 -3
- package/dist/components/SimplePagination/stories.js +12 -7
- package/dist/components/Stack/Divider.css.d.ts +2 -0
- package/dist/components/Stack/Divider.css.d.ts.map +1 -0
- package/dist/components/Stack/Divider.css.js +4 -12
- package/dist/components/Stack/Divider.d.ts +3 -0
- package/dist/components/Stack/Divider.d.ts.map +1 -0
- package/dist/components/Stack/Divider.js +4 -7
- package/dist/components/Stack/Stack.css.d.ts +5 -0
- package/dist/components/Stack/Stack.css.d.ts.map +1 -0
- package/dist/components/Stack/Stack.css.js +10 -18
- package/dist/components/Stack/Stack.d.ts +11 -0
- package/dist/components/Stack/Stack.d.ts.map +1 -0
- package/dist/components/Stack/Stack.js +23 -32
- package/dist/components/Stack/index.d.ts +2 -0
- package/dist/components/Stack/index.d.ts.map +1 -0
- package/dist/components/Stack/index.js +1 -3
- package/dist/components/Stack/stories.js +11 -5
- package/dist/components/StandardModal/StandardModal.css.d.ts +8 -0
- package/dist/components/StandardModal/StandardModal.css.d.ts.map +1 -0
- package/dist/components/StandardModal/StandardModal.css.js +57 -69
- package/dist/components/StandardModal/StandardModal.d.ts +16 -0
- package/dist/components/StandardModal/StandardModal.d.ts.map +1 -0
- package/dist/components/StandardModal/StandardModal.js +50 -69
- package/dist/components/StandardModal/index.d.ts +2 -0
- package/dist/components/StandardModal/index.d.ts.map +1 -0
- package/dist/components/StandardModal/index.js +1 -3
- package/dist/components/StandardModal/stories.js +42 -145
- package/dist/components/StarRating/StarRating.css.d.ts +2 -0
- package/dist/components/StarRating/StarRating.css.d.ts.map +1 -0
- package/dist/components/StarRating/StarRating.css.js +8 -16
- package/dist/components/StarRating/StarRating.d.ts +13 -0
- package/dist/components/StarRating/StarRating.d.ts.map +1 -0
- package/dist/components/StarRating/StarRating.js +46 -72
- package/dist/components/StarRating/index.d.ts +2 -0
- package/dist/components/StarRating/index.d.ts.map +1 -0
- package/dist/components/StarRating/index.js +1 -3
- package/dist/components/StarRating/stories.js +8 -1
- package/dist/components/Stepper/Stepper.css.d.ts +5 -0
- package/dist/components/Stepper/Stepper.css.d.ts.map +1 -0
- package/dist/components/Stepper/Stepper.css.js +29 -39
- package/dist/components/Stepper/Stepper.d.ts +13 -0
- package/dist/components/Stepper/Stepper.d.ts.map +1 -0
- package/dist/components/Stepper/Stepper.js +95 -128
- package/dist/components/Stepper/index.d.ts +2 -0
- package/dist/components/Stepper/index.d.ts.map +1 -0
- package/dist/components/Stepper/index.js +1 -3
- package/dist/components/Stepper/stories.js +8 -1
- package/dist/components/Switch/Switch.css.d.ts +5 -0
- package/dist/components/Switch/Switch.css.d.ts.map +1 -0
- package/dist/components/Switch/Switch.css.js +41 -49
- package/dist/components/Switch/Switch.d.ts +9 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/Switch.js +27 -46
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/Switch/index.js +1 -3
- package/dist/components/Switch/stories.js +8 -1
- package/dist/components/Table/Table.css.d.ts +2 -0
- package/dist/components/Table/Table.css.d.ts.map +1 -0
- package/dist/components/Table/Table.css.js +6 -14
- package/dist/components/Table/Table.d.ts +9 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/Table.js +5 -20
- package/dist/components/Table/TableCell.css.d.ts +2 -0
- package/dist/components/Table/TableCell.css.d.ts.map +1 -0
- package/dist/components/Table/TableCell.css.js +20 -28
- package/dist/components/Table/TableCell.d.ts +12 -0
- package/dist/components/Table/TableCell.d.ts.map +1 -0
- package/dist/components/Table/TableCell.js +11 -24
- package/dist/components/Table/TableHeadCell.css.d.ts +10 -0
- package/dist/components/Table/TableHeadCell.css.d.ts.map +1 -0
- package/dist/components/Table/TableHeadCell.css.js +50 -61
- package/dist/components/Table/TableHeadCell.d.ts +14 -0
- package/dist/components/Table/TableHeadCell.d.ts.map +1 -0
- package/dist/components/Table/TableHeadCell.js +40 -53
- package/dist/components/Table/TableRow.d.ts +8 -0
- package/dist/components/Table/TableRow.d.ts.map +1 -0
- package/dist/components/Table/TableRow.js +2 -12
- package/dist/components/Table/TableRowGroup.d.ts +7 -0
- package/dist/components/Table/TableRowGroup.d.ts.map +1 -0
- package/dist/components/Table/TableRowGroup.js +2 -11
- package/dist/components/Table/context.d.ts +9 -0
- package/dist/components/Table/context.d.ts.map +1 -0
- package/dist/components/Table/context.js +10 -17
- package/dist/components/Table/index.d.ts +6 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Table/index.js +5 -7
- package/dist/components/Table/stories.js +264 -173
- package/dist/components/Tabs/Tab.css.d.ts +7 -0
- package/dist/components/Tabs/Tab.css.d.ts.map +1 -0
- package/dist/components/Tabs/Tab.css.js +35 -43
- package/dist/components/Tabs/Tab.d.ts +10 -0
- package/dist/components/Tabs/Tab.d.ts.map +1 -0
- package/dist/components/Tabs/Tab.js +50 -63
- package/dist/components/Tabs/TabList.css.d.ts +3 -0
- package/dist/components/Tabs/TabList.css.d.ts.map +1 -0
- package/dist/components/Tabs/TabList.css.js +22 -30
- package/dist/components/Tabs/TabList.d.ts +9 -0
- package/dist/components/Tabs/TabList.d.ts.map +1 -0
- package/dist/components/Tabs/TabList.js +69 -92
- package/dist/components/Tabs/TabPane.css.d.ts +2 -0
- package/dist/components/Tabs/TabPane.css.d.ts.map +1 -0
- package/dist/components/Tabs/TabPane.css.js +3 -11
- package/dist/components/Tabs/TabPane.d.ts +5 -0
- package/dist/components/Tabs/TabPane.d.ts.map +1 -0
- package/dist/components/Tabs/TabPane.js +15 -24
- package/dist/components/Tabs/TabPanes.css.d.ts +2 -0
- package/dist/components/Tabs/TabPanes.css.d.ts.map +1 -0
- package/dist/components/Tabs/TabPanes.css.js +8 -16
- package/dist/components/Tabs/TabPanes.d.ts +13 -0
- package/dist/components/Tabs/TabPanes.d.ts.map +1 -0
- package/dist/components/Tabs/TabPanes.js +6 -18
- package/dist/components/Tabs/Tabs.d.ts +16 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.js +10 -20
- package/dist/components/Tabs/index.d.ts +6 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/Tabs/index.js +5 -7
- package/dist/components/Tabs/stories.js +143 -80
- package/dist/components/Text/Text.d.ts +11 -0
- package/dist/components/Text/Text.d.ts.map +1 -0
- package/dist/components/Text/Text.js +13 -29
- package/dist/components/Text/index.d.ts +4 -0
- package/dist/components/Text/index.d.ts.map +1 -0
- package/dist/components/Text/index.js +2 -4
- package/dist/components/Text/stories.js +40 -28
- package/dist/components/Text/useTextStyles.css.d.ts +7 -0
- package/dist/components/Text/useTextStyles.css.d.ts.map +1 -0
- package/dist/components/Text/useTextStyles.css.js +19 -39
- package/dist/components/Text/useTextStyles.d.ts +15 -0
- package/dist/components/Text/useTextStyles.d.ts.map +1 -0
- package/dist/components/Text/useTextStyles.js +5 -19
- package/dist/components/TextAreaInput/TextAreaInput.d.ts +3 -0
- package/dist/components/TextAreaInput/TextAreaInput.d.ts.map +1 -0
- package/dist/components/TextAreaInput/TextAreaInput.js +7 -23
- package/dist/components/TextAreaInput/index.d.ts +2 -0
- package/dist/components/TextAreaInput/index.d.ts.map +1 -0
- package/dist/components/TextAreaInput/index.js +1 -3
- package/dist/components/TextAreaInput/stories.js +2 -1
- package/dist/components/TextContainer/TextContainer.d.ts +9 -0
- package/dist/components/TextContainer/TextContainer.d.ts.map +1 -0
- package/dist/components/TextContainer/TextContainer.js +8 -27
- package/dist/components/TextContainer/index.d.ts +2 -0
- package/dist/components/TextContainer/index.d.ts.map +1 -0
- package/dist/components/TextContainer/index.js +1 -3
- package/dist/components/TextContainer/stories.js +74 -48
- package/dist/components/TextInput/TextInput.d.ts +3 -0
- package/dist/components/TextInput/TextInput.d.ts.map +1 -0
- package/dist/components/TextInput/TextInput.js +5 -23
- package/dist/components/TextInput/index.d.ts +2 -0
- package/dist/components/TextInput/index.d.ts.map +1 -0
- package/dist/components/TextInput/index.js +1 -3
- package/dist/components/TextInput/stories.js +2 -1
- package/dist/components/TextLink/TextLink.css.d.ts +3 -0
- package/dist/components/TextLink/TextLink.css.d.ts.map +1 -0
- package/dist/components/TextLink/TextLink.css.js +15 -23
- package/dist/components/TextLink/TextLink.d.ts +14 -0
- package/dist/components/TextLink/TextLink.d.ts.map +1 -0
- package/dist/components/TextLink/TextLink.js +25 -53
- package/dist/components/TextLink/index.d.ts +2 -0
- package/dist/components/TextLink/index.d.ts.map +1 -0
- package/dist/components/TextLink/index.js +1 -3
- package/dist/components/TextLink/stories.js +26 -15
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +19 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.js +12 -26
- package/dist/components/ThemeProvider/index.d.ts +2 -0
- package/dist/components/ThemeProvider/index.d.ts.map +1 -0
- package/dist/components/ThemeProvider/index.js +1 -3
- package/dist/components/Toaster/Toast.css.d.ts +3 -0
- package/dist/components/Toaster/Toast.css.d.ts.map +1 -0
- package/dist/components/Toaster/Toast.css.js +9 -17
- package/dist/components/Toaster/Toast.d.ts +13 -0
- package/dist/components/Toaster/Toast.d.ts.map +1 -0
- package/dist/components/Toaster/Toast.js +105 -197
- package/dist/components/Toaster/index.d.ts +2 -0
- package/dist/components/Toaster/index.d.ts.map +1 -0
- package/dist/components/Toaster/index.js +1 -3
- package/dist/components/Toaster/stories.js +35 -25
- package/dist/components/Tooltip/Tooltip.css.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.css.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.css.js +9 -21
- package/dist/components/Tooltip/Tooltip.d.ts +9 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.js +32 -43
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/components/Tooltip/index.js +1 -3
- package/dist/components/Tooltip/stories.js +22 -11
- package/dist/components/VisuallyHidden/VisuallyHidden.css.d.ts +2 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.css.d.ts.map +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.css.js +5 -13
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +7 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +3 -13
- package/dist/components/VisuallyHidden/index.d.ts +2 -0
- package/dist/components/VisuallyHidden/index.d.ts.map +1 -0
- package/dist/components/VisuallyHidden/index.js +1 -3
- package/dist/components/VisuallyHidden/stories.js +18 -6
- package/dist/components/index.d.ts +52 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +51 -53
- package/dist/components/private/CheckableBase/CheckableBase.css.d.ts +7 -0
- package/dist/components/private/CheckableBase/CheckableBase.css.d.ts.map +1 -0
- package/dist/components/private/CheckableBase/CheckableBase.css.js +38 -46
- package/dist/components/private/CheckableBase/CheckableBase.d.ts +16 -0
- package/dist/components/private/CheckableBase/CheckableBase.d.ts.map +1 -0
- package/dist/components/private/CheckableBase/CheckableBase.js +27 -52
- package/dist/components/private/CheckableBase/index.d.ts +2 -0
- package/dist/components/private/CheckableBase/index.d.ts.map +1 -0
- package/dist/components/private/CheckableBase/index.js +1 -3
- package/dist/components/private/CheckableBase/useCheckableStyles.d.ts +4 -0
- package/dist/components/private/CheckableBase/useCheckableStyles.d.ts.map +1 -0
- package/dist/components/private/CheckableBase/useCheckableStyles.js +3 -5
- package/dist/components/private/InputBase/HintText.css.d.ts +2 -0
- package/dist/components/private/InputBase/HintText.css.d.ts.map +1 -0
- package/dist/components/private/InputBase/HintText.css.js +3 -11
- package/dist/components/private/InputBase/HintText.d.ts +9 -0
- package/dist/components/private/InputBase/HintText.d.ts.map +1 -0
- package/dist/components/private/InputBase/HintText.js +14 -23
- package/dist/components/private/InputBase/InputState.css.d.ts +58 -0
- package/dist/components/private/InputBase/InputState.css.d.ts.map +1 -0
- package/dist/components/private/InputBase/InputState.css.js +80 -96
- package/dist/components/private/InputBase/NotchedBase.css.d.ts +14 -0
- package/dist/components/private/InputBase/NotchedBase.css.d.ts.map +1 -0
- package/dist/components/private/InputBase/NotchedBase.css.js +83 -78
- package/dist/components/private/InputBase/NotchedBase.d.ts +14 -0
- package/dist/components/private/InputBase/NotchedBase.d.ts.map +1 -0
- package/dist/components/private/InputBase/NotchedBase.js +34 -54
- package/dist/components/private/InputBase/index.d.ts +2 -0
- package/dist/components/private/InputBase/index.d.ts.map +1 -0
- package/dist/components/private/InputBase/index.js +1 -3
- package/dist/components/private/InputBase/withEnhancedInput.css.d.ts +16 -0
- package/dist/components/private/InputBase/withEnhancedInput.css.d.ts.map +1 -0
- package/dist/components/private/InputBase/withEnhancedInput.css.js +45 -57
- package/dist/components/private/InputBase/withEnhancedInput.d.ts +57 -0
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -0
- package/dist/components/private/InputBase/withEnhancedInput.js +89 -148
- package/dist/hooks/useAttachedBoxes/index.d.ts +2 -0
- package/dist/hooks/useAttachedBoxes/index.d.ts.map +1 -0
- package/dist/hooks/useAttachedBoxes/index.js +1 -3
- package/dist/hooks/useAttachedBoxes/stories.js +49 -28
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.css.d.ts +9 -0
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.css.d.ts.map +1 -0
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.css.js +18 -26
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.d.ts +18 -0
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.d.ts.map +1 -0
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.js +46 -60
- package/dist/hooks/useMedia/index.d.ts +2 -0
- package/dist/hooks/useMedia/index.d.ts.map +1 -0
- package/dist/hooks/useMedia/index.js +1 -3
- package/dist/hooks/useMedia/stories.js +26 -21
- package/dist/hooks/useMedia/useMedia.d.ts +3 -0
- package/dist/hooks/useMedia/useMedia.d.ts.map +1 -0
- package/dist/hooks/useMedia/useMedia.js +31 -37
- package/dist/hooks/useNegativeMargin/useNegativeMargin.d.ts +3 -0
- package/dist/hooks/useNegativeMargin/useNegativeMargin.d.ts.map +1 -0
- package/dist/hooks/useNegativeMargin/useNegativeMargin.js +2 -4
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.css.d.ts +2 -0
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.css.d.ts.map +1 -0
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.css.js +5 -13
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.d.ts +4 -0
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.d.ts.map +1 -0
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.js +3 -5
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.css.d.ts +2 -0
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.css.d.ts.map +1 -0
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.css.js +4 -12
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.d.ts +4 -0
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.d.ts.map +1 -0
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.js +3 -5
- package/dist/hooks/useResponsiveValue/index.d.ts +2 -0
- package/dist/hooks/useResponsiveValue/index.d.ts.map +1 -0
- package/dist/hooks/useResponsiveValue/index.js +1 -3
- package/dist/hooks/useResponsiveValue/stories.js +18 -9
- package/dist/hooks/useResponsiveValue/useResponsiveValue.d.ts +3 -0
- package/dist/hooks/useResponsiveValue/useResponsiveValue.d.ts.map +1 -0
- package/dist/hooks/useResponsiveValue/useResponsiveValue.js +14 -14
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -7
- package/dist/reset/globalFonts.css.d.ts +2 -0
- package/dist/reset/globalFonts.css.d.ts.map +1 -0
- package/dist/reset/globalFonts.css.js +12 -20
- package/dist/reset/globalReset.css.d.ts +2 -0
- package/dist/reset/globalReset.css.d.ts.map +1 -0
- package/dist/reset/globalReset.css.js +13 -21
- package/dist/reset/reset.css.d.ts +49 -0
- package/dist/reset/reset.css.d.ts.map +1 -0
- package/dist/reset/reset.css.js +109 -105
- package/dist/themes/base/index.d.ts +8 -0
- package/dist/themes/base/index.d.ts.map +1 -0
- package/dist/themes/base/index.js +7 -9
- package/dist/themes/base/tokens.d.ts +3 -0
- package/dist/themes/base/tokens.d.ts.map +1 -0
- package/dist/themes/base/tokens.js +249 -256
- package/dist/themes/base/vars.css.d.ts +3 -0
- package/dist/themes/base/vars.css.d.ts.map +1 -0
- package/dist/themes/base/vars.css.js +2 -10
- package/dist/themes/flat_red/index.d.ts +8 -0
- package/dist/themes/flat_red/index.d.ts.map +1 -0
- package/dist/themes/flat_red/index.js +8 -10
- package/dist/themes/flat_red/tokens.d.ts +3 -0
- package/dist/themes/flat_red/tokens.d.ts.map +1 -0
- package/dist/themes/flat_red/tokens.js +167 -166
- package/dist/themes/flat_red/vars.css.d.ts +2 -0
- package/dist/themes/flat_red/vars.css.d.ts.map +1 -0
- package/dist/themes/flat_red/vars.css.js +2 -10
- package/dist/themes/helpers.d.ts +2 -0
- package/dist/themes/helpers.d.ts.map +1 -0
- package/dist/themes/helpers.js +10 -9
- package/dist/themes/index.d.ts +3 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/index.js +2 -4
- package/dist/themes/makeTheme.d.ts +12 -0
- package/dist/themes/makeTheme.d.ts.map +1 -0
- package/dist/themes/makeTheme.js +19 -27
- package/dist/themes/tokens.d.ts +95 -0
- package/dist/themes/tokens.d.ts.map +1 -0
- package/dist/themes/tokens.js +1 -3
- package/dist/utils/index.d.ts +19 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +77 -93
- package/dist/utils/mapTokenToProperty.d.ts +6 -0
- package/dist/utils/mapTokenToProperty.d.ts.map +1 -0
- package/dist/utils/mapTokenToProperty.js +10 -22
- package/dist/utils/resolveResponsiveProps.d.ts +7 -0
- package/dist/utils/resolveResponsiveProps.d.ts.map +1 -0
- package/dist/utils/resolveResponsiveProps.js +31 -29
- package/dist/utils/responsiveProps.css.d.ts +5 -0
- package/dist/utils/responsiveProps.css.d.ts.map +1 -0
- package/dist/utils/responsiveProps.css.js +17 -29
- package/dist/utils/responsiveStyle.d.ts +4 -0
- package/dist/utils/responsiveStyle.d.ts.map +1 -0
- package/dist/utils/responsiveStyle.js +16 -26
- package/package.json +8 -6
|
@@ -1,51 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
import clsx from 'clsx';
|
|
4
2
|
import * as React from 'react';
|
|
5
|
-
import { createContext, useContext } from 'react';
|
|
6
|
-
import { Box } from
|
|
7
|
-
import { Stack } from
|
|
8
|
-
import { useTextStyles } from
|
|
9
|
-
import * as styles from
|
|
10
|
-
const cycles = [
|
|
3
|
+
import { createContext, useContext, } from 'react';
|
|
4
|
+
import { Box } from '../Box';
|
|
5
|
+
import { Stack } from '../Stack';
|
|
6
|
+
import { useTextStyles } from '../Text';
|
|
7
|
+
import * as styles from './OrderedList.css';
|
|
8
|
+
const cycles = [
|
|
9
|
+
'decimal',
|
|
10
|
+
'lower-roman',
|
|
11
|
+
'lower-alpha',
|
|
12
|
+
'upper-alpha',
|
|
13
|
+
'lower-roman',
|
|
14
|
+
];
|
|
11
15
|
const OrderedListContext = createContext(-1);
|
|
12
|
-
export const OrderedList =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} else {
|
|
25
|
-
myCycle = type === null ? cycle + 1 : cycles.indexOf(type);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return <Box is="ol" paddingLeft="6" marginTop={myCycle > 0 ? '2' : 'none'} className={clsx(styles.root.default, useTextStyles({
|
|
29
|
-
colour: 'dark'
|
|
30
|
-
}), {
|
|
31
|
-
[styles.root.firstOccurrence]: cycle === -1
|
|
32
|
-
}, className)} style={{
|
|
33
|
-
listStyleType: cycles[myCycle]
|
|
34
|
-
}} start={start}>
|
|
35
|
-
<OrderedListContext.Provider value={myCycle}>
|
|
36
|
-
<Stack space="2">{children}</Stack>
|
|
37
|
-
</OrderedListContext.Provider>
|
|
38
|
-
</Box>;
|
|
16
|
+
export const OrderedList = ({ children, className = '', type = null, start }) => {
|
|
17
|
+
const cycle = useContext(OrderedListContext);
|
|
18
|
+
let myCycle;
|
|
19
|
+
if (cycle + 1 > cycles.length) {
|
|
20
|
+
myCycle = type === null ? 0 : cycles.indexOf(type);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
myCycle = type === null ? cycle + 1 : cycles.indexOf(type);
|
|
24
|
+
}
|
|
25
|
+
return (React.createElement(Box, { is: "ol", paddingLeft: "6", marginTop: myCycle > 0 ? '2' : 'none', className: clsx(styles.root.default, useTextStyles({ colour: 'dark' }), { [styles.root.firstOccurrence]: cycle === -1 }, className), style: { listStyleType: cycles[myCycle] }, start: start },
|
|
26
|
+
React.createElement(OrderedListContext.Provider, { value: myCycle },
|
|
27
|
+
React.createElement(Stack, { space: "2" }, children))));
|
|
39
28
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
let {
|
|
43
|
-
className = '',
|
|
44
|
-
children
|
|
45
|
-
} = _ref2;
|
|
46
|
-
return <Box is="li" className={className}>
|
|
47
|
-
{children}
|
|
48
|
-
</Box>;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
OrderedList.Item = Item;
|
|
29
|
+
const Item = ({ className = '', children }) => (React.createElement(Box, { is: "li", className: className }, children));
|
|
30
|
+
OrderedList.Item = Item;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/OrderedList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,45 +1,63 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8
|
+
|
|
3
9
|
import * as React from 'react';
|
|
4
10
|
import { Text } from "../Text/index.js";
|
|
5
11
|
import { OrderedList } from "./index.js";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
14
|
export default {
|
|
7
15
|
title: 'Foundation/List/OrderedList',
|
|
8
16
|
component: OrderedList
|
|
9
17
|
};
|
|
10
18
|
|
|
11
|
-
const Template = args =>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
19
|
+
const Template = args => _jsxs(OrderedList, _objectSpread(_objectSpread({}, args), {}, {
|
|
20
|
+
children: [_jsx(OrderedList.Item, {
|
|
21
|
+
children: _jsx(Text, {
|
|
22
|
+
children: "Strawberry"
|
|
23
|
+
})
|
|
24
|
+
}), _jsxs(OrderedList.Item, {
|
|
25
|
+
children: [_jsx(Text, {
|
|
26
|
+
children: "Watermelon"
|
|
27
|
+
}), _jsxs(OrderedList, {
|
|
28
|
+
children: [_jsx(OrderedList.Item, {
|
|
29
|
+
children: _jsx(Text, {
|
|
30
|
+
children: "Mango"
|
|
31
|
+
})
|
|
32
|
+
}), _jsx(OrderedList.Item, {
|
|
33
|
+
children: _jsx(Text, {
|
|
34
|
+
children: "Banana"
|
|
35
|
+
})
|
|
36
|
+
}), _jsxs(OrderedList.Item, {
|
|
37
|
+
children: [_jsx(Text, {
|
|
38
|
+
children: "Apple"
|
|
39
|
+
}), _jsxs(OrderedList, {
|
|
40
|
+
children: [_jsx(OrderedList.Item, {
|
|
41
|
+
children: _jsx(Text, {
|
|
42
|
+
children: "Grape"
|
|
43
|
+
})
|
|
44
|
+
}), _jsx(OrderedList.Item, {
|
|
45
|
+
children: _jsx(Text, {
|
|
46
|
+
children: "Orange"
|
|
47
|
+
})
|
|
48
|
+
})]
|
|
49
|
+
})]
|
|
50
|
+
}), _jsx(OrderedList.Item, {
|
|
51
|
+
children: _jsx(Text, {
|
|
52
|
+
children: "Pineapple"
|
|
53
|
+
})
|
|
54
|
+
})]
|
|
55
|
+
})]
|
|
56
|
+
}), _jsx(OrderedList.Item, {
|
|
57
|
+
children: _jsx(Text, {
|
|
58
|
+
children: "Pear"
|
|
59
|
+
})
|
|
60
|
+
})]
|
|
61
|
+
}));
|
|
44
62
|
|
|
45
63
|
export const standard = Template.bind({});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FunctionComponent, ReactElement, RefObject } from 'react';
|
|
2
|
+
export declare const useOutsideClick: (refs: Array<RefObject<HTMLElement>>, onClickAway: () => void) => void;
|
|
3
|
+
export interface Props {
|
|
4
|
+
children: ReactElement;
|
|
5
|
+
onOutsideClick?(): void;
|
|
6
|
+
}
|
|
7
|
+
export declare const OutsideClick: FunctionComponent<Props>;
|
|
8
|
+
//# sourceMappingURL=OutsideClick.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutsideClick.d.ts","sourceRoot":"","sources":["../../../lib/components/OutsideClick/OutsideClick.tsx"],"names":[],"mappings":"AACA,OAAO,EAGN,iBAAiB,EACjB,YAAY,EACZ,SAAS,EAGT,MAAM,OAAO,CAAC;AAIf,eAAO,MAAM,eAAe,SACrB,MAAM,UAAU,WAAW,CAAC,CAAC,eACtB,MAAM,IAAI,SA6BvB,CAAC;AAmBF,MAAM,WAAW,KAAK;IACrB,QAAQ,EAAE,YAAY,CAAC;IAEvB,cAAc,CAAC,IAAI,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,KAAK,CAmBjD,CAAC"}
|
|
@@ -1,45 +1,40 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
import { warning } from '@autoguru/utilities';
|
|
4
|
-
import { Children, cloneElement, useEffect, useRef } from 'react';
|
|
5
|
-
import { noop } from
|
|
2
|
+
import { Children, cloneElement, useEffect, useRef, } from 'react';
|
|
3
|
+
import { noop } from '../../utils';
|
|
6
4
|
export const useOutsideClick = (refs, onClickAway) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
5
|
+
const callbackRef = useRef(onClickAway);
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
callbackRef.current = onClickAway;
|
|
8
|
+
}, [onClickAway]);
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
if (typeof document === 'undefined' ||
|
|
11
|
+
typeof onClickAway !== 'function')
|
|
12
|
+
return undefined;
|
|
13
|
+
return bindEvent(document, 'mouseup', (event) => {
|
|
14
|
+
const shouldClose = refs
|
|
15
|
+
.map((item) => item.current)
|
|
16
|
+
.every((element) => !element?.contains(event.target));
|
|
17
|
+
if (shouldClose) {
|
|
18
|
+
callbackRef.current();
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}, [refs]);
|
|
21
22
|
};
|
|
22
|
-
|
|
23
23
|
const bindEvent = (node, event, callback) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
node.addEventListener(event, callback, {
|
|
25
|
+
passive: true,
|
|
26
|
+
});
|
|
27
|
+
return () => {
|
|
28
|
+
node.removeEventListener(event, callback);
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export const OutsideClick = ({ children, onOutsideClick = noop, }) => {
|
|
32
|
+
const child = Children.only(children);
|
|
33
|
+
const rootClickRef = useRef(null);
|
|
34
|
+
const hasRef = Object.prototype.hasOwnProperty.call(child.props, 'ref');
|
|
35
|
+
warning(!hasRef, 'This component overrides the child ref, use with caution.');
|
|
36
|
+
useOutsideClick([rootClickRef], onOutsideClick);
|
|
37
|
+
return cloneElement(child, {
|
|
38
|
+
ref: rootClickRef,
|
|
39
|
+
});
|
|
30
40
|
};
|
|
31
|
-
|
|
32
|
-
export const OutsideClick = _ref => {
|
|
33
|
-
let {
|
|
34
|
-
children,
|
|
35
|
-
onOutsideClick = noop
|
|
36
|
-
} = _ref;
|
|
37
|
-
const child = Children.only(children);
|
|
38
|
-
const rootClickRef = useRef(null);
|
|
39
|
-
const hasRef = Object.prototype.hasOwnProperty.call(child.props, 'ref');
|
|
40
|
-
process.env.NODE_ENV !== "production" ? warning(!hasRef, 'This component overrides the child ref, use with caution.') : void 0;
|
|
41
|
-
useOutsideClick([rootClickRef], onOutsideClick);
|
|
42
|
-
return cloneElement(child, {
|
|
43
|
-
ref: rootClickRef
|
|
44
|
-
});
|
|
45
|
-
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/OutsideClick/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8
|
+
|
|
3
9
|
import { action } from '@storybook/addon-actions';
|
|
4
10
|
import * as React from 'react';
|
|
5
11
|
import { Button } from "../Button/index.js";
|
|
6
12
|
import { OutsideClick } from "./index.js";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
14
|
export default {
|
|
8
15
|
title: 'Utility/OutsideClick',
|
|
9
16
|
component: OutsideClick,
|
|
@@ -21,9 +28,11 @@ export default {
|
|
|
21
28
|
}
|
|
22
29
|
};
|
|
23
30
|
|
|
24
|
-
const Template = args =>
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
const Template = args => _jsx(OutsideClick, _objectSpread(_objectSpread({}, args), {}, {
|
|
32
|
+
children: _jsx(Button, {
|
|
33
|
+
children: "Click anywhere but here"
|
|
34
|
+
})
|
|
35
|
+
}));
|
|
27
36
|
|
|
28
37
|
const standardProps = {
|
|
29
38
|
onOutsideClick() {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentProps, FunctionComponent } from 'react';
|
|
2
|
+
import { ThemeProvider } from '../ThemeProvider/ThemeProvider';
|
|
3
|
+
export interface Props extends ComponentProps<typeof ThemeProvider> {
|
|
4
|
+
noBodyLevelTheming: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const OverdriveProvider: FunctionComponent<Props>;
|
|
7
|
+
//# sourceMappingURL=OverdriveProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverdriveProvider.d.ts","sourceRoot":"","sources":["../../../lib/components/OverdriveProvider/OverdriveProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAGrE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,MAAM,WAAW,KAAM,SAAQ,cAAc,CAAC,OAAO,aAAa,CAAC;IAIlE,kBAAkB,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,EAAE,iBAAiB,CAAC,KAAK,CA8BtD,CAAC"}
|
|
@@ -1,30 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
import * as React from 'react';
|
|
4
2
|
import { useEffect } from 'react';
|
|
5
|
-
import { isBrowser } from
|
|
6
|
-
import { ThemeProvider } from
|
|
7
|
-
export const OverdriveProvider =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
document.body.style.backgroundColor = tokens.body.backgroundColour;
|
|
24
|
-
document.body.style.color = tokens.body.colour;
|
|
25
|
-
}
|
|
26
|
-
}, [vars]);
|
|
27
|
-
return <ThemeProvider vars={vars} themeClass={themeClass} tokens={tokens}>
|
|
28
|
-
{children}
|
|
29
|
-
</ThemeProvider>;
|
|
30
|
-
};
|
|
3
|
+
import { isBrowser } from '../../utils';
|
|
4
|
+
import { ThemeProvider } from '../ThemeProvider/ThemeProvider';
|
|
5
|
+
export const OverdriveProvider = ({ noBodyLevelTheming = false, vars, themeClass, tokens, breakpoints, children, }) => {
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
if (!isBrowser)
|
|
8
|
+
return;
|
|
9
|
+
if (!noBodyLevelTheming) {
|
|
10
|
+
document.body.classList.add(themeClass);
|
|
11
|
+
document.body.style.backgroundColor = vars.body.backgroundColour;
|
|
12
|
+
document.body.style.color = vars.body.colour;
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
document.body.style.backgroundColor = tokens.body.backgroundColour;
|
|
16
|
+
document.body.style.color = tokens.body.colour;
|
|
17
|
+
}
|
|
18
|
+
}, [vars]);
|
|
19
|
+
return (React.createElement(ThemeProvider, { vars: vars, themeClass: themeClass, tokens: tokens, breakpoints: breakpoints }, children));
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/OverdriveProvider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FunctionComponent, MouseEventHandler } from 'react';
|
|
2
|
+
export interface Props {
|
|
3
|
+
selected?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
gap?: boolean;
|
|
6
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Bubble: FunctionComponent<Props>;
|
|
10
|
+
//# sourceMappingURL=Bubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../lib/components/Pagination/Bubble.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEX,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,OAAO,CAAC;AAQf,MAAM,WAAW,KAAK;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAyC3C,CAAC"}
|
|
@@ -1,30 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
import clsx from 'clsx';
|
|
4
2
|
import * as React from 'react';
|
|
5
|
-
import { Box } from
|
|
6
|
-
import { useTextStyles } from
|
|
7
|
-
import * as styles from
|
|
8
|
-
export const Bubble =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
disabled,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[styles.selectedItem]: selected,
|
|
25
|
-
[styles.disabled]: gap,
|
|
26
|
-
[styles.activeItem]: !gap
|
|
27
|
-
})} onClick={onClick}>
|
|
28
|
-
{gap ? '...' : children}
|
|
29
|
-
</Box>;
|
|
30
|
-
};
|
|
3
|
+
import { Box } from '../Box';
|
|
4
|
+
import { useTextStyles } from '../Text';
|
|
5
|
+
import * as styles from './Pagination.css';
|
|
6
|
+
export const Bubble = ({ className = '', selected = false, gap = false, children, disabled, onClick, }) => {
|
|
7
|
+
let backgroundColour = 'transparent';
|
|
8
|
+
if (selected)
|
|
9
|
+
backgroundColour = 'green900';
|
|
10
|
+
else if (disabled)
|
|
11
|
+
backgroundColour = 'gray200';
|
|
12
|
+
return (React.createElement(Box, { is: "button", backgroundColour: backgroundColour, display: "flex", overflow: "hidden", alignItems: "center", flexDirection: "row", justifyContent: "center", textAlign: "center", borderRadius: "pill", pointerEvents: disabled ? 'none' : void 0, className: clsx(className, useTextStyles({
|
|
13
|
+
fontWeight: 'bold',
|
|
14
|
+
colour: selected ? 'white' : 'light',
|
|
15
|
+
size: '3',
|
|
16
|
+
}), {
|
|
17
|
+
[styles.selectedItem]: selected,
|
|
18
|
+
[styles.disabled]: gap,
|
|
19
|
+
[styles.activeItem]: !gap,
|
|
20
|
+
}), onClick: onClick }, gap ? '...' : children));
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Pagination/Pagination.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ,QAEnB,CAAC;AAEH,eAAO,MAAM,YAAY,QAEvB,CAAC;AAEH,eAAO,MAAM,UAAU,QAiBrB,CAAC"}
|
|
@@ -1,34 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
4
|
-
|
|
5
|
-
__vanilla_filescope__.setFileScope("lib/components/Pagination/Pagination.css.ts", "@autoguru/overdrive");
|
|
6
|
-
|
|
7
1
|
import { style } from '@vanilla-extract/css';
|
|
8
|
-
import { vars } from
|
|
2
|
+
import { vars } from '../../themes/base/vars.css';
|
|
9
3
|
const paginationBubbleSize = '36px';
|
|
10
4
|
export const disabled = style({
|
|
11
|
-
|
|
12
|
-
}
|
|
5
|
+
color: vars.colours.background.neutral,
|
|
6
|
+
});
|
|
13
7
|
export const selectedItem = style({
|
|
14
|
-
|
|
15
|
-
}
|
|
8
|
+
transition: 'none',
|
|
9
|
+
});
|
|
16
10
|
export const activeItem = style({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
lineHeight: `calc(${paginationBubbleSize} - 3px)`,
|
|
12
|
+
width: paginationBubbleSize,
|
|
13
|
+
height: paginationBubbleSize,
|
|
14
|
+
cursor: 'pointer',
|
|
15
|
+
transition: `background-color 0.2s ${vars.animation.easing.decelerate} 0s, box-shadow 0.2s ${vars.animation.easing.decelerate} 0s`,
|
|
16
|
+
selectors: {
|
|
17
|
+
[`&:not(${selectedItem}):hover`]: {
|
|
18
|
+
backgroundColor: vars.colours.background.body,
|
|
19
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.primary.background.strong}, ${vars.elevation['1']}`,
|
|
20
|
+
},
|
|
21
|
+
[`&:not(${selectedItem}):active`]: {
|
|
22
|
+
backgroundColor: vars.colours.background.body,
|
|
23
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.primary.background.strong}, ${vars.elevation['1']}`,
|
|
24
|
+
},
|
|
26
25
|
},
|
|
27
|
-
|
|
28
|
-
backgroundColor: vars.colours.background.body,
|
|
29
|
-
boxShadow: "inset 0 0 0 1px ".concat(vars.colours.intent.primary.background.strong, ", ").concat(vars.elevation['1'])
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}, "activeItem");
|
|
33
|
-
|
|
34
|
-
__vanilla_filescope__.endFileScope();
|
|
26
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
interface OnChangeObject {
|
|
3
|
+
pageNumber: number;
|
|
4
|
+
}
|
|
5
|
+
export declare type TOnChangeEventHandler = (event: OnChangeObject) => void;
|
|
6
|
+
export interface Props {
|
|
7
|
+
numPagesDisplayed?: number;
|
|
8
|
+
activePage: number;
|
|
9
|
+
total: number;
|
|
10
|
+
pageSize: number;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
onChange?: TOnChangeEventHandler;
|
|
13
|
+
}
|
|
14
|
+
export declare const Pagination: FunctionComponent<Props>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../lib/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAGA,OAAO,EACN,iBAAiB,EAIjB,MAAM,OAAO,CAAC;AAWf,UAAU,cAAc;IACvB,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,oBAAY,qBAAqB,GAAG,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;AAEpE,MAAM,WAAW,KAAK;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CACjC;AA8DD,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,KAAK,CA2D/C,CAAC"}
|