@autoguru/overdrive 4.3.4 → 4.4.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/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 -20
- 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/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 -84
- 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/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 +15 -0
- package/dist/components/Anchor/Anchor.d.ts.map +1 -0
- package/dist/components/Anchor/Anchor.js +28 -53
- 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/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 +30 -0
- package/dist/components/AutoSuggest/AutoSuggest.d.ts.map +1 -0
- package/dist/components/AutoSuggest/AutoSuggest.js +306 -619
- 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 +31 -1
- 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 +27 -43
- 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/Box/Box.d.ts +9 -0
- package/dist/components/Box/Box.d.ts.map +1 -0
- package/dist/components/Box/Box.js +53 -122
- 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/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 -38
- 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 +7 -0
- package/dist/components/BulletList/BulletList.d.ts.map +1 -0
- package/dist/components/BulletList/BulletList.js +10 -23
- 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/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 +9 -0
- package/dist/components/BulletText/BulletText.d.ts.map +1 -0
- package/dist/components/BulletText/BulletText.js +15 -56
- 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/Button/Button.css.d.ts +40 -0
- package/dist/components/Button/Button.css.d.ts.map +1 -0
- package/dist/components/Button/Button.css.js +235 -243
- 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 +76 -140
- 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/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 -54
- 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/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 -51
- 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 +26 -0
- package/dist/components/Columns/Columns.d.ts.map +1 -0
- package/dist/components/Columns/Columns.js +22 -55
- 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/DateInput/DateInput.d.ts +3 -0
- package/dist/components/DateInput/DateInput.d.ts.map +1 -0
- package/dist/components/DateInput/DateInput.js +7 -33
- 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 +36 -2
- 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 -40
- 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/Heading/Heading.d.ts +12 -0
- package/dist/components/Heading/Heading.d.ts.map +1 -0
- package/dist/components/Heading/Heading.js +20 -40
- 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/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 -25
- 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/Image/Image.d.ts +8 -0
- package/dist/components/Image/Image.d.ts.map +1 -0
- package/dist/components/Image/Image.js +4 -22
- package/dist/components/Image/ImageServerProvider.d.ts +19 -0
- package/dist/components/Image/ImageServerProvider.d.ts.map +1 -0
- package/dist/components/Image/ImageServerProvider.js +35 -55
- package/dist/components/Image/ResponsiveImage.d.ts +11 -0
- package/dist/components/Image/ResponsiveImage.d.ts.map +1 -0
- package/dist/components/Image/ResponsiveImage.js +21 -46
- package/dist/components/Image/SimpleImage.d.ts +12 -0
- package/dist/components/Image/SimpleImage.d.ts.map +1 -0
- package/dist/components/Image/SimpleImage.js +1 -29
- package/dist/components/Image/index.d.ts +3 -0
- package/dist/components/Image/index.d.ts.map +1 -0
- package/dist/components/Image/index.js +2 -4
- package/dist/components/Image/types.d.ts +2 -0
- package/dist/components/Image/types.d.ts.map +1 -0
- package/dist/components/Image/types.js +1 -3
- package/dist/components/Inline/Inline.d.ts +15 -0
- package/dist/components/Inline/Inline.d.ts.map +1 -0
- package/dist/components/Inline/Inline.js +30 -71
- 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 +12 -1
- 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 -31
- 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/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 -38
- 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/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 +11 -0
- package/dist/components/Meta/Meta.d.ts.map +1 -0
- package/dist/components/Meta/Meta.js +7 -29
- 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/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 +9 -0
- package/dist/components/MinimalModal/MinimalModal.d.ts.map +1 -0
- package/dist/components/MinimalModal/MinimalModal.js +27 -62
- 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/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 +11 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/Modal.js +72 -128
- 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/NumberBubble/NumberBubble.css.d.ts +2 -0
- package/dist/components/NumberBubble/NumberBubble.css.d.ts.map +1 -0
- package/dist/components/NumberBubble/NumberBubble.css.js +4 -12
- package/dist/components/NumberBubble/NumberBubble.d.ts +10 -0
- package/dist/components/NumberBubble/NumberBubble.d.ts.map +1 -0
- package/dist/components/NumberBubble/NumberBubble.js +23 -51
- package/dist/components/NumberBubble/index.d.ts +2 -0
- package/dist/components/NumberBubble/index.d.ts.map +1 -0
- package/dist/components/NumberBubble/index.js +1 -3
- 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 -66
- 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 +36 -2
- 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 +16 -0
- package/dist/components/OrderedList/OrderedList.d.ts.map +1 -0
- package/dist/components/OrderedList/OrderedList.js +26 -60
- 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/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/OverdriveProvider/OverdriveProvider.d.ts +8 -0
- package/dist/components/OverdriveProvider/OverdriveProvider.d.ts.map +1 -0
- package/dist/components/OverdriveProvider/OverdriveProvider.js +18 -34
- 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 +12 -0
- package/dist/components/Pagination/Bubble.d.ts.map +1 -0
- package/dist/components/Pagination/Bubble.js +19 -41
- 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 -164
- 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/Portal/Portal.d.ts +10 -0
- package/dist/components/Portal/Portal.d.ts.map +1 -0
- package/dist/components/Portal/Portal.js +22 -36
- 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/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 +13 -0
- package/dist/components/Positioner/Positioner.d.ts.map +1 -0
- package/dist/components/Positioner/Positioner.js +84 -107
- 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/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 -29
- 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/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 -42
- 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/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 -31
- 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/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 -58
- 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 -32
- 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/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 +9 -0
- package/dist/components/Section/Section.d.ts.map +1 -0
- package/dist/components/Section/Section.js +3 -18
- 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/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 -59
- 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 +35 -1
- 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 -55
- 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/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 -13
- 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 -43
- 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/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 -123
- 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/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 -89
- 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/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 -176
- 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/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 -62
- 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/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 -28
- 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 -41
- 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 -86
- 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 -17
- 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 -15
- package/dist/components/Table/context.d.ts +11 -0
- package/dist/components/Table/context.d.ts.map +1 -0
- package/dist/components/Table/context.js +10 -21
- 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/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 -80
- 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 +11 -0
- package/dist/components/Tabs/TabList.d.ts.map +1 -0
- package/dist/components/Tabs/TabList.js +67 -120
- 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 +7 -0
- package/dist/components/Tabs/TabPane.d.ts.map +1 -0
- package/dist/components/Tabs/TabPane.js +15 -32
- 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 +15 -0
- package/dist/components/Tabs/TabPanes.d.ts.map +1 -0
- package/dist/components/Tabs/TabPanes.js +5 -22
- package/dist/components/Tabs/Tabs.d.ts +18 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.js +10 -22
- 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/Text/Text.d.ts +12 -0
- package/dist/components/Text/Text.d.ts.map +1 -0
- package/dist/components/Text/Text.js +14 -36
- 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/useTextStyles.css.d.ts +8 -0
- package/dist/components/Text/useTextStyles.css.d.ts.map +1 -0
- package/dist/components/Text/useTextStyles.css.js +20 -42
- package/dist/components/Text/useTextStyles.d.ts +16 -0
- package/dist/components/Text/useTextStyles.d.ts.map +1 -0
- package/dist/components/Text/useTextStyles.js +5 -20
- 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 -34
- 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 +27 -2
- 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 -42
- 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/TextInput/TextInput.d.ts +3 -0
- package/dist/components/TextInput/TextInput.d.ts.map +1 -0
- package/dist/components/TextInput/TextInput.js +5 -35
- 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 +36 -2
- 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 +24 -63
- 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/ThemeProvider/ThemeProvider.d.ts +20 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.js +13 -31
- 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 -217
- 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/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 +13 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.js +40 -72
- 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/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 +8 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +3 -19
- 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/index.d.ts +54 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +53 -55
- 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 -90
- 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 -28
- 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 +103 -80
- package/dist/components/private/InputBase/NotchedBase.d.ts +17 -0
- package/dist/components/private/InputBase/NotchedBase.d.ts.map +1 -0
- package/dist/components/private/InputBase/NotchedBase.js +35 -80
- 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 +29 -0
- package/dist/components/private/InputBase/withEnhancedInput.css.d.ts.map +1 -0
- package/dist/components/private/InputBase/withEnhancedInput.css.js +114 -59
- package/dist/components/private/InputBase/withEnhancedInput.d.ts +60 -0
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -0
- package/dist/components/private/InputBase/withEnhancedInput.js +93 -177
- 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/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 -71
- 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/useMedia.d.ts +3 -0
- package/dist/hooks/useMedia/useMedia.d.ts.map +1 -0
- package/dist/hooks/useMedia/useMedia.js +31 -39
- 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/useResponsiveValue.d.ts +3 -0
- package/dist/hooks/useResponsiveValue/useResponsiveValue.d.ts.map +1 -0
- package/dist/hooks/useResponsiveValue/useResponsiveValue.js +17 -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 +257 -264
- 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 +175 -179
- 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 +18 -29
- package/dist/themes/tokens.d.ts +96 -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/number.d.ts +6 -0
- package/dist/utils/number.d.ts.map +1 -0
- package/dist/utils/number.js +24 -21
- 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 +12 -11
|
@@ -1,44 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
4
|
-
|
|
5
|
-
__vanilla_filescope__.setFileScope("lib/components/Columns/Columns.css.ts", "@autoguru/overdrive");
|
|
6
|
-
|
|
7
1
|
import { styleVariants } from '@vanilla-extract/css';
|
|
8
|
-
import { vars } from
|
|
9
|
-
import { makeResponsiveStyle } from
|
|
2
|
+
import { vars } from '../../themes/base/vars.css';
|
|
3
|
+
import { makeResponsiveStyle } from '../../utils/responsiveProps.css';
|
|
10
4
|
export const space = {
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
spaceX: makeResponsiveStyle(vars.space, 'paddingLeft'),
|
|
6
|
+
spaceY: makeResponsiveStyle(vars.space, 'paddingTop'),
|
|
13
7
|
};
|
|
14
8
|
export const wrapping = styleVariants({
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
9
|
+
wrap: {
|
|
10
|
+
flexWrap: 'wrap',
|
|
11
|
+
},
|
|
12
|
+
noWrap: {
|
|
13
|
+
flexWrap: 'nowrap',
|
|
14
|
+
},
|
|
15
|
+
reverseWrap: {
|
|
16
|
+
flexWrap: 'wrap-reverse',
|
|
17
|
+
},
|
|
18
|
+
});
|
|
25
19
|
export const align = styleVariants({
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
__vanilla_filescope__.endFileScope();
|
|
20
|
+
stretch: {
|
|
21
|
+
alignContent: 'stretch',
|
|
22
|
+
alignItems: 'stretch',
|
|
23
|
+
},
|
|
24
|
+
top: {
|
|
25
|
+
alignContent: 'flex-start',
|
|
26
|
+
alignItems: 'flex-start',
|
|
27
|
+
},
|
|
28
|
+
centre: {
|
|
29
|
+
alignContent: 'center',
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
},
|
|
32
|
+
bottom: {
|
|
33
|
+
alignContent: 'flex-end',
|
|
34
|
+
alignItems: 'flex-end',
|
|
35
|
+
},
|
|
36
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
import { Tokens } from '../../themes/tokens';
|
|
4
|
+
import { ResponsiveProp } from '../../utils/responsiveProps.css';
|
|
5
|
+
import { Box } from '../Box';
|
|
6
|
+
import * as styles from './Columns.css';
|
|
7
|
+
export interface Props extends Omit<ComponentProps<typeof Box>, 'css'> {
|
|
8
|
+
className?: string;
|
|
9
|
+
columns?: number;
|
|
10
|
+
space?: ResponsiveProp<keyof Tokens['space']>;
|
|
11
|
+
spaceX?: ResponsiveProp<keyof typeof styles.space.spaceX>;
|
|
12
|
+
spaceY?: ResponsiveProp<keyof typeof styles.space.spaceY>;
|
|
13
|
+
noWrap?: boolean;
|
|
14
|
+
wrappingDirection?: keyof typeof styles.wrapping;
|
|
15
|
+
align?: keyof typeof styles.align;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
interface ColumnContextValue {
|
|
19
|
+
spaceXCls: any;
|
|
20
|
+
spaceYCls: any;
|
|
21
|
+
isList: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const ColumnContext: React.Context<ColumnContextValue>;
|
|
24
|
+
export declare const Columns: React.ForwardRefExoticComponent<Pick<Props, "value" | "id" | "backgroundColour" | "space" | "width" | "min" | "size" | "muted" | "name" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "alignItems" | "boxShadow" | "color" | "content" | "display" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pointerEvents" | "position" | "textAlign" | "translate" | "userSelect" | "borderRadius" | "borderWidth" | "columns" | "margin" | "overflow" | "padding" | "start" | "hidden" | "default" | "wrap" | "open" | "multiple" | "disabled" | "key" | "is" | "className" | "paddingX" | "paddingY" | "marginX" | "marginY" | "borderWidthX" | "borderWidthY" | "borderWidthTop" | "borderWidthRight" | "borderWidthBottom" | "borderWidthLeft" | "borderColour" | "borderColourX" | "borderColourY" | "borderColourTop" | "borderColourRight" | "borderColourBottom" | "borderColourLeft" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "minLength" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "target" | "type" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "align" | "noWrap" | "spaceX" | "spaceY" | "wrappingDirection"> & React.RefAttributes<HTMLElement>>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=Columns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Columns.d.ts","sourceRoot":"","sources":["../../../lib/components/Columns/Columns.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACN,cAAc,EAGd,SAAS,EAET,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,KAAK,CAAC;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,cAAc,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,QAAQ,CAAC;IACjD,KAAK,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC;IAClC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,UAAU,kBAAkB;IAC3B,SAAS,MAAC;IACV,SAAS,MAAC;IACV,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,aAAa,mCAAiD,CAAC;AAE5E,eAAO,MAAM,OAAO,glNAiEnB,CAAC"}
|
|
@@ -1,58 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
const _excluded = ["className", "children", "space", "spaceX", "spaceY", "noWrap", "wrappingDirection", "align", "is"];
|
|
6
|
-
|
|
7
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8
|
-
|
|
9
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
|
-
|
|
11
1
|
import clsx from 'clsx';
|
|
12
2
|
import * as React from 'react';
|
|
13
|
-
import { createContext, forwardRef, useMemo } from 'react';
|
|
14
|
-
import { useNegativeMarginLeft, useNegativeMarginTop } from
|
|
15
|
-
import { resolveResponsiveStyle } from
|
|
16
|
-
import { Box } from
|
|
17
|
-
import * as styles from
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, forwardRef, useMemo, } from 'react';
|
|
4
|
+
import { useNegativeMarginLeft, useNegativeMarginTop, } from '../../hooks/useNegativeMargin/useNegativeMargin';
|
|
5
|
+
import { resolveResponsiveStyle } from '../../utils/resolveResponsiveProps';
|
|
6
|
+
import { Box } from '../Box';
|
|
7
|
+
import * as styles from './Columns.css';
|
|
19
8
|
export const ColumnContext = createContext(null);
|
|
20
|
-
export const Columns = forwardRef((
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const marginTopFix = useNegativeMarginTop(resolvedSpaceY);
|
|
38
|
-
return _jsx(Box, _objectSpread(_objectSpread({
|
|
39
|
-
ref: ref,
|
|
40
|
-
is: is,
|
|
41
|
-
display: "flex",
|
|
42
|
-
flexDirection: "row",
|
|
43
|
-
className: clsx(marginLeftFix, marginTopFix, styles.align[align], className, {
|
|
44
|
-
[styles.wrapping.wrap]: !noWrap,
|
|
45
|
-
[styles.wrapping.noWrap]: noWrap,
|
|
46
|
-
[styles.wrapping.reverseWrap]: wrappingDirection === 'reverse'
|
|
47
|
-
})
|
|
48
|
-
}, boxProps), {}, {
|
|
49
|
-
children: _jsx(ColumnContext.Provider, {
|
|
50
|
-
value: useMemo(() => ({
|
|
51
|
-
spaceXCls: resolveResponsiveStyle(resolvedSpaceX, styles.space.spaceX),
|
|
52
|
-
spaceYCls: resolveResponsiveStyle(resolvedSpaceY, styles.space.spaceY),
|
|
53
|
-
isList: typeof is === 'string' && ['ul', 'ol'].includes(is)
|
|
54
|
-
}), [resolvedSpaceX, resolvedSpaceY, styles]),
|
|
55
|
-
children: children
|
|
56
|
-
})
|
|
57
|
-
}));
|
|
58
|
-
});
|
|
9
|
+
export const Columns = forwardRef(({ className = '', children, space, spaceX, spaceY, noWrap, wrappingDirection = 'default', align = 'stretch', is, ...boxProps }, ref) => {
|
|
10
|
+
const resolvedSpaceX = spaceX || space || ['none'];
|
|
11
|
+
const resolvedSpaceY = spaceY || space || ['none'];
|
|
12
|
+
const marginLeftFix = useNegativeMarginLeft(resolvedSpaceX);
|
|
13
|
+
const marginTopFix = useNegativeMarginTop(resolvedSpaceY);
|
|
14
|
+
return (React.createElement(Box, { ref: ref, is: is, display: "flex", flexDirection: "row", className: clsx(marginLeftFix, marginTopFix, styles.align[align], className, {
|
|
15
|
+
[styles.wrapping.wrap]: !noWrap,
|
|
16
|
+
[styles.wrapping.noWrap]: noWrap,
|
|
17
|
+
[styles.wrapping.reverseWrap]: wrappingDirection === 'reverse',
|
|
18
|
+
}), ...boxProps },
|
|
19
|
+
React.createElement(ColumnContext.Provider, { value: useMemo(() => ({
|
|
20
|
+
spaceXCls: resolveResponsiveStyle(resolvedSpaceX, styles.space.spaceX),
|
|
21
|
+
spaceYCls: resolveResponsiveStyle(resolvedSpaceY, styles.space.spaceY),
|
|
22
|
+
isList: typeof is === 'string' &&
|
|
23
|
+
['ul', 'ol'].includes(is),
|
|
24
|
+
}), [resolvedSpaceX, resolvedSpaceY, styles]) }, children)));
|
|
25
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Columns/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const DateInput: React.ForwardRefExoticComponent<Partial<Pick<HTMLInputElement, "min" | "max">> & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<HTMLInputElement>>;
|
|
3
|
+
//# sourceMappingURL=DateInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../lib/components/DateInput/DateInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,SAAS,6VAgCrB,CAAC"}
|
|
@@ -1,36 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
const _excluded = ["field", "eventHandlers", "validation", "isLoading", "suffixed", "prefixed"];
|
|
6
|
-
|
|
7
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8
|
-
|
|
9
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
|
-
|
|
11
1
|
import { warning } from '@autoguru/utilities';
|
|
12
2
|
import * as React from 'react';
|
|
13
|
-
import { Box } from
|
|
14
|
-
import { withEnhancedInput } from
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
field,
|
|
19
|
-
eventHandlers,
|
|
20
|
-
validation,
|
|
21
|
-
isLoading,
|
|
22
|
-
suffixed,
|
|
23
|
-
prefixed
|
|
24
|
-
} = _ref,
|
|
25
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
-
|
|
27
|
-
process.env.NODE_ENV !== "production" ? warning(field.value !== '', 'Date Input does not support empty values.') : void 0;
|
|
28
|
-
return _jsx(Box, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
29
|
-
is: "input"
|
|
30
|
-
}, eventHandlers), field), rest), {}, {
|
|
31
|
-
autoComplete: "off",
|
|
32
|
-
type: "date"
|
|
33
|
-
}));
|
|
3
|
+
import { Box } from '../Box';
|
|
4
|
+
import { withEnhancedInput } from '../private/InputBase';
|
|
5
|
+
export const DateInput = withEnhancedInput(({ field, eventHandlers, validation, isLoading, suffixed, prefixed, size, ...rest }) => {
|
|
6
|
+
warning(field.value !== '', 'Date Input does not support empty values.');
|
|
7
|
+
return (React.createElement(Box, { is: "input", ...eventHandlers, ...field, ...rest, autoComplete: "off", type: "date" }));
|
|
34
8
|
}, {
|
|
35
|
-
|
|
36
|
-
});
|
|
9
|
+
primitiveType: 'date',
|
|
10
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/DateInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
6
6
|
|
|
7
7
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
8
|
|
|
9
|
-
import { AccountEditIcon, AlertCircleIcon, CalendarIcon, CarMultipleIcon, CurrencyUsdIcon, PlusIcon, StarIcon } from '@autoguru/icons';
|
|
9
|
+
import { AccountEditIcon, AlertCircleIcon, CalendarIcon, CarIcon, CarMultipleIcon, CurrencyUsdIcon, PlusIcon, StarIcon } from '@autoguru/icons';
|
|
10
10
|
import { action } from '@storybook/addon-actions';
|
|
11
11
|
import isChromatic from 'chromatic/isChromatic';
|
|
12
12
|
import * as React from 'react';
|
|
@@ -155,4 +155,38 @@ invalid.args = invalidProps;
|
|
|
155
155
|
invalid.argTypes = argTypes;
|
|
156
156
|
export const loading = Template.bind(loadingProps);
|
|
157
157
|
loading.args = loadingProps;
|
|
158
|
-
loading.argTypes = argTypes;
|
|
158
|
+
loading.argTypes = argTypes;
|
|
159
|
+
|
|
160
|
+
const smallProps = _objectSpread(_objectSpread({}, standardProps), {}, {
|
|
161
|
+
size: 'small'
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
export const small = Template.bind(smallProps);
|
|
165
|
+
small.args = smallProps;
|
|
166
|
+
small.argTypes = argTypes;
|
|
167
|
+
|
|
168
|
+
const withValueSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
|
|
169
|
+
size: 'small'
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
export const withValueSmall = Template.bind(withValueSmallProps);
|
|
173
|
+
withValueSmall.args = withValueSmallProps;
|
|
174
|
+
withValueSmall.argTypes = argTypes;
|
|
175
|
+
|
|
176
|
+
const withIconSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
|
|
177
|
+
prefixIcon: CarIcon,
|
|
178
|
+
size: 'small'
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
export const withIconSmall = Template.bind(withIconSmallProps);
|
|
182
|
+
withIconSmall.args = withIconSmallProps;
|
|
183
|
+
withIconSmall.argTypes = argTypes;
|
|
184
|
+
|
|
185
|
+
const loadingSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
|
|
186
|
+
isLoading: true,
|
|
187
|
+
size: 'small'
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
export const loadingSmall = Template.bind(loadingSmallProps);
|
|
191
|
+
loadingSmall.args = loadingSmallProps;
|
|
192
|
+
loadingSmall.argTypes = argTypes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Flyout.d.ts","sourceRoot":"","sources":["../../../lib/components/Flyout/Flyout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIzE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,eAAO,MAAM,MAAM,EAAE,iBAAiB,CACrC,wBAAwB,CAAC,OAAO,UAAU,CAAC,CAkB3C,CAAC"}
|
|
@@ -1,41 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
const _excluded = ["children", "triggerRef", "isOpen", "alignment", "triggerOffset"];
|
|
6
|
-
|
|
7
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8
|
-
|
|
9
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
|
-
|
|
11
1
|
import * as React from 'react';
|
|
12
|
-
import { Box } from
|
|
13
|
-
import { Positioner } from
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
let {
|
|
17
|
-
children,
|
|
18
|
-
triggerRef,
|
|
19
|
-
isOpen,
|
|
20
|
-
alignment,
|
|
21
|
-
triggerOffset
|
|
22
|
-
} = _ref,
|
|
23
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
-
|
|
25
|
-
return _jsx(Positioner, _objectSpread(_objectSpread({
|
|
26
|
-
triggerRef: triggerRef,
|
|
27
|
-
isOpen: isOpen,
|
|
28
|
-
alignment: alignment,
|
|
29
|
-
triggerOffset: triggerOffset
|
|
30
|
-
}, rest), {}, {
|
|
31
|
-
children: _jsx(Box, {
|
|
32
|
-
overflow: "hidden",
|
|
33
|
-
backgroundColour: "white",
|
|
34
|
-
boxShadow: "4",
|
|
35
|
-
borderRadius: "1",
|
|
36
|
-
borderWidth: "1",
|
|
37
|
-
borderColour: "gray",
|
|
38
|
-
children: children
|
|
39
|
-
})
|
|
40
|
-
}));
|
|
41
|
-
};
|
|
2
|
+
import { Box } from '../Box';
|
|
3
|
+
import { Positioner } from '../Positioner';
|
|
4
|
+
export const Flyout = ({ children, triggerRef, isOpen, alignment, triggerOffset, ...rest }) => (React.createElement(Positioner, { triggerRef: triggerRef, isOpen: isOpen, alignment: alignment, triggerOffset: triggerOffset, ...rest },
|
|
5
|
+
React.createElement(Box, { overflow: "hidden", backgroundColour: "white", boxShadow: "4", borderRadius: "1", borderWidth: "1", borderColour: "gray" }, children)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Flyout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps, FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { Tokens } from '../../themes/tokens';
|
|
3
|
+
import { Box } from '../Box';
|
|
4
|
+
import type { TextStyleProps } from '../Text';
|
|
5
|
+
export interface Props extends Omit<TextStyleProps, 'is'>, Pick<ComponentProps<typeof Box>, 'id'> {
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
is?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
9
|
+
colour?: Exclude<keyof Tokens['typography']['colour'], 'muted'>;
|
|
10
|
+
}
|
|
11
|
+
export declare const Heading: FunctionComponent<Props>;
|
|
12
|
+
//# sourceMappingURL=Heading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../lib/components/Heading/Heading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,MAAM,WAAW,KAChB,SAAQ,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,EACjC,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;CAChE;AAWD,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC,KAAK,CA8B5C,CAAC"}
|
|
@@ -1,43 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
import * as React from 'react';
|
|
4
|
-
import { Box } from
|
|
5
|
-
import { useTextStyles } from
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box } from '../Box';
|
|
3
|
+
import { useTextStyles } from '../Text';
|
|
7
4
|
const sizeScaleDefaults = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
h1: '8',
|
|
6
|
+
h2: '7',
|
|
7
|
+
h3: '6',
|
|
8
|
+
h4: '4',
|
|
9
|
+
h5: '3',
|
|
10
|
+
h6: '2',
|
|
14
11
|
};
|
|
15
|
-
export const Heading =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
children
|
|
28
|
-
} = _ref;
|
|
29
|
-
return _jsx(Box, {
|
|
30
|
-
id: id,
|
|
31
|
-
is: is,
|
|
32
|
-
className: [useTextStyles({
|
|
33
|
-
size,
|
|
34
|
-
align,
|
|
35
|
-
colour,
|
|
36
|
-
noWrap,
|
|
37
|
-
transform,
|
|
38
|
-
fontWeight,
|
|
39
|
-
breakWord
|
|
40
|
-
}), className],
|
|
41
|
-
children: children
|
|
42
|
-
});
|
|
43
|
-
};
|
|
12
|
+
export const Heading = ({ is = 'h1', align, fontWeight = 'bold', noWrap, transform, colour = 'dark', size = sizeScaleDefaults[is], id, breakWord, className = '', children, }) => (React.createElement(Box, { id: id, is: is, className: [
|
|
13
|
+
useTextStyles({
|
|
14
|
+
size,
|
|
15
|
+
align,
|
|
16
|
+
colour,
|
|
17
|
+
noWrap,
|
|
18
|
+
transform,
|
|
19
|
+
fontWeight,
|
|
20
|
+
breakWord,
|
|
21
|
+
}),
|
|
22
|
+
className,
|
|
23
|
+
] }, children));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Heading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Icon/Icon.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,8BAGd,CAAC"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { vars } from "../../themes/base/vars.css.js";
|
|
8
|
-
import { makeResponsiveStyle } from "../../utils/responsiveProps.css.js";
|
|
9
|
-
export const size = makeResponsiveStyle(vars.icon.size, value => ({
|
|
10
|
-
width: value,
|
|
11
|
-
height: value
|
|
1
|
+
import { vars } from '../../themes/base/vars.css';
|
|
2
|
+
import { makeResponsiveStyle } from '../../utils/responsiveProps.css';
|
|
3
|
+
export const size = makeResponsiveStyle(vars.icon.size, (value) => ({
|
|
4
|
+
width: value,
|
|
5
|
+
height: value,
|
|
12
6
|
}));
|
|
13
|
-
|
|
14
|
-
__vanilla_filescope__.endFileScope();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IconType } from '@autoguru/icons';
|
|
2
|
+
import type { FunctionComponent, ReactElement, SVGAttributes } from 'react';
|
|
3
|
+
import { ResponsiveProp } from '../../utils/responsiveProps.css';
|
|
4
|
+
import type { BoxStyleProps } from '../Box';
|
|
5
|
+
import * as styles from './Icon.css';
|
|
6
|
+
export interface Props {
|
|
7
|
+
display?: Extract<BoxStyleProps['display'], 'block' | 'inlineBlock'>;
|
|
8
|
+
className?: string;
|
|
9
|
+
size?: ResponsiveProp<keyof typeof styles.size | string>;
|
|
10
|
+
icon: IconType | ReactElement<SVGAttributes<SVGElement>, 'svg'>;
|
|
11
|
+
}
|
|
12
|
+
export declare const Icon: FunctionComponent<Props>;
|
|
13
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../lib/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK5E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAG5C,OAAO,KAAK,MAAM,MAAM,YAAY,CAAC;AAErC,MAAM,WAAW,KAAK;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC,CAAC;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,CAAC;IACzD,IAAI,EAAE,QAAQ,GAAG,YAAY,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,CAAC;CAChE;AAED,eAAO,MAAM,IAAI,EAAE,iBAAiB,CAAC,KAAK,CAoBzC,CAAC"}
|
|
@@ -1,30 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
import * as React from 'react';
|
|
4
2
|
import { cloneElement } from 'react';
|
|
5
|
-
import { resolveResponsiveStyle } from
|
|
6
|
-
import { Box, useBoxStyles } from
|
|
7
|
-
import * as styles from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
let {
|
|
11
|
-
className = '',
|
|
12
|
-
icon,
|
|
13
|
-
size = 'small',
|
|
14
|
-
display = 'block'
|
|
15
|
-
} = _ref;
|
|
16
|
-
return _jsx(Box, {
|
|
17
|
-
is: "i",
|
|
18
|
-
display: display,
|
|
19
|
-
className: [resolveResponsiveStyle(size, styles.size), className],
|
|
20
|
-
role: "presentation",
|
|
21
|
-
children: cloneElement(icon, {
|
|
22
|
-
className: useBoxStyles({
|
|
3
|
+
import { resolveResponsiveStyle } from '../../utils/resolveResponsiveProps';
|
|
4
|
+
import { Box, useBoxStyles } from '../Box';
|
|
5
|
+
import * as styles from './Icon.css';
|
|
6
|
+
export const Icon = ({ className = '', icon, size = 'small', display = 'block', }) => (React.createElement(Box, { is: "i", display: display, className: [resolveResponsiveStyle(size, styles.size), className], role: "presentation" }, cloneElement(icon, {
|
|
7
|
+
className: useBoxStyles({
|
|
23
8
|
is: 'svg',
|
|
24
9
|
display: 'block',
|
|
25
10
|
width: 'full',
|
|
26
|
-
height: 'full'
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
};
|
|
11
|
+
height: 'full',
|
|
12
|
+
}),
|
|
13
|
+
})));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|