@autoguru/overdrive 4.43.4 → 4.43.5
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.stories.d.ts +2 -2
- package/dist/components/Actions/Actions.stories.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +4 -4
- package/dist/components/Alert/Alert.stories.d.ts +1 -1
- package/dist/components/Alert/Alert.stories.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.d.ts +7 -7
- package/dist/components/Anchor/Anchor.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.js +32 -32
- package/dist/components/Anchor/Anchor.stories.d.ts +9 -16
- package/dist/components/Anchor/Anchor.stories.d.ts.map +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.js +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.stories.d.ts +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.stories.d.ts.map +1 -1
- package/dist/components/Badge/Badge.css.d.ts +11 -5
- package/dist/components/Badge/Badge.css.d.ts.map +1 -1
- package/dist/components/Badge/Badge.css.js +13 -7
- package/dist/components/Badge/Badge.stories.d.ts +1 -2
- package/dist/components/Badge/Badge.stories.d.ts.map +1 -1
- package/dist/components/Box/Box.spec.d.ts +2 -0
- package/dist/components/Box/Box.spec.d.ts.map +1 -0
- package/dist/components/Box/Box.stories.d.ts +1 -1
- package/dist/components/Box/Box.stories.d.ts.map +1 -1
- package/dist/components/Box/boxStyles.d.ts +8 -1
- package/dist/components/Box/boxStyles.d.ts.map +1 -1
- package/dist/components/Box/boxStyles.js +24 -14
- package/dist/components/Box/useBox.d.ts.map +1 -1
- package/dist/components/Box/useBox.js +7 -6
- package/dist/components/BulletList/Bullet.css.d.ts.map +1 -1
- package/dist/components/BulletList/Bullet.css.js +6 -5
- package/dist/components/BulletList/Bullet.stories.d.ts +2 -2
- package/dist/components/BulletList/Bullet.stories.d.ts.map +1 -1
- package/dist/components/BulletText/BulletText.stories.d.ts +1 -1
- package/dist/components/BulletText/BulletText.stories.d.ts.map +1 -1
- package/dist/components/Button/Button.css.d.ts +27 -27
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/Button.stories.d.ts +1 -1
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/CheckBox/CheckBox.stories.d.ts +1 -1
- package/dist/components/CheckBox/CheckBox.stories.d.ts.map +1 -1
- package/dist/components/ColourInput/ColourInput.stories.d.ts +1 -1
- package/dist/components/ColourInput/ColourInput.stories.d.ts.map +1 -1
- package/dist/components/Columns/Columns.css.d.ts.map +1 -1
- package/dist/components/Columns/Columns.css.js +3 -2
- package/dist/components/Columns/Columns.stories.d.ts +1 -1
- package/dist/components/Columns/Columns.stories.d.ts.map +1 -1
- package/dist/components/DateInput/DateInput.stories.d.ts +1 -1
- package/dist/components/DateInput/DateInput.stories.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +2 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.css.d.ts +0 -2
- package/dist/components/DateTimePicker/DateTimePicker.css.d.ts.map +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.css.js +21 -30
- package/dist/components/DateTimePicker/DateTimePicker.d.ts.map +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.js +14 -7
- package/dist/components/DateTimePicker/DateTimePicker.stories.d.ts +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.stories.d.ts.map +1 -1
- package/dist/components/DividerLine/DividerLine.stories.d.ts +2 -2
- package/dist/components/DividerLine/DividerLine.stories.d.ts.map +1 -1
- package/dist/components/DropDown/DropDown.stories.d.ts +2 -2
- package/dist/components/DropDown/DropDown.stories.d.ts.map +1 -1
- package/dist/components/DropDown/DropDownOption.js +3 -3
- package/dist/components/EditableText/EditableText.d.ts +1 -1
- package/dist/components/EditableText/EditableText.js +7 -7
- package/dist/components/EditableText/EditableText.stories.d.ts +1 -1
- package/dist/components/EditableText/EditableText.stories.d.ts.map +1 -1
- package/dist/components/FillHeightBox/FillHeightBox.stories.d.ts +1 -1
- package/dist/components/FillHeightBox/FillHeightBox.stories.d.ts.map +1 -1
- package/dist/components/Flyout/Flyout.stories.d.ts +1 -1
- package/dist/components/Flyout/Flyout.stories.d.ts.map +1 -1
- package/dist/components/Heading/Heading.d.ts +6 -9
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/Heading/Heading.js +25 -28
- package/dist/components/Heading/Heading.stories.d.ts +700 -62
- package/dist/components/Heading/Heading.stories.d.ts.map +1 -1
- package/dist/components/Heading/index.d.ts +1 -1
- package/dist/components/Heading/index.d.ts.map +1 -1
- package/dist/components/Heading/index.js +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.stories.d.ts +2 -2
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.stories.d.ts.map +1 -1
- package/dist/components/Icon/Icon.stories.d.ts +2 -1
- package/dist/components/Icon/Icon.stories.d.ts.map +1 -1
- package/dist/components/Image/Image.stories.d.ts +1 -1
- package/dist/components/Image/Image.stories.d.ts.map +1 -1
- package/dist/components/Inline/Inline.js +1 -1
- package/dist/components/Inline/Inline.stories.d.ts +1 -1
- package/dist/components/Inline/Inline.stories.d.ts.map +1 -1
- package/dist/components/IntentStripe/IntentStripe.stories.d.ts +1 -1
- package/dist/components/IntentStripe/IntentStripe.stories.d.ts.map +1 -1
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.stories.d.ts +2 -2
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.stories.d.ts.map +1 -1
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts +16 -14
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts.map +1 -1
- package/dist/components/Meta/Meta.stories.d.ts +2 -1
- package/dist/components/Meta/Meta.stories.d.ts.map +1 -1
- package/dist/components/MinimalModal/MinimalModal.stories.d.ts +3 -3
- package/dist/components/MinimalModal/MinimalModal.stories.d.ts.map +1 -1
- package/dist/components/Modal/Modal.stories.d.ts +1 -1
- package/dist/components/Modal/Modal.stories.d.ts.map +1 -1
- package/dist/components/NumberBubble/NumberBubble.stories.d.ts +1 -1
- package/dist/components/NumberBubble/NumberBubble.stories.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.stories.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.stories.d.ts.map +1 -1
- package/dist/components/OptionGrid/OptionGrid.stories.d.ts +1 -1
- package/dist/components/OptionGrid/OptionGrid.stories.d.ts.map +1 -1
- package/dist/components/OptionList/OptionList.stories.d.ts +1 -1
- package/dist/components/OptionList/OptionList.stories.d.ts.map +1 -1
- package/dist/components/OrderedList/OrderedList.js +2 -2
- package/dist/components/OrderedList/OrderedList.stories.d.ts +1 -1
- package/dist/components/OrderedList/OrderedList.stories.d.ts.map +1 -1
- package/dist/components/OutsideClick/OutsideClick.stories.d.ts +1 -1
- package/dist/components/OutsideClick/OutsideClick.stories.d.ts.map +1 -1
- package/dist/components/OverdriveProvider/OverdriveProvider.stories.d.ts +1 -1
- package/dist/components/OverdriveProvider/OverdriveProvider.stories.d.ts.map +1 -1
- package/dist/components/Pagination/Bubble.js +2 -2
- package/dist/components/Pagination/Pagination.js +2 -2
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/components/Pagination/Pagination.stories.d.ts.map +1 -1
- package/dist/components/Portal/Portal.stories.d.ts +1 -1
- package/dist/components/Portal/Portal.stories.d.ts.map +1 -1
- package/dist/components/Positioner/Positioner.stories.d.ts +1 -1
- package/dist/components/Positioner/Positioner.stories.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +1 -1
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts.map +1 -1
- package/dist/components/ProgressBarGroup/ProgressBarGroup.css.d.ts +1 -0
- package/dist/components/ProgressBarGroup/ProgressBarGroup.css.d.ts.map +1 -1
- package/dist/components/ProgressBarGroup/ProgressBarGroup.css.js +3 -0
- package/dist/components/ProgressBarGroup/ProgressBarGroup.js +1 -2
- package/dist/components/ProgressBarGroup/ProgressBarGroup.stories.d.ts +1 -1
- package/dist/components/ProgressBarGroup/ProgressBarGroup.stories.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.stories.d.ts +2 -2
- package/dist/components/ProgressSpinner/ProgressSpinner.stories.d.ts.map +1 -1
- package/dist/components/Radio/Radio.stories.d.ts +1 -1
- package/dist/components/Radio/Radio.stories.d.ts.map +1 -1
- package/dist/components/ScrollPane/ScrollPane.stories.d.ts +1 -1
- package/dist/components/ScrollPane/ScrollPane.stories.d.ts.map +1 -1
- package/dist/components/SearchBar/SearchBar.stories.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.stories.d.ts.map +1 -1
- package/dist/components/Section/Section.stories.d.ts +16 -13
- package/dist/components/Section/Section.stories.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInput.stories.d.ts +1 -1
- package/dist/components/SelectInput/SelectInput.stories.d.ts.map +1 -1
- package/dist/components/SimplePagination/SimplePagination.stories.d.ts +2 -2
- package/dist/components/SimplePagination/SimplePagination.stories.d.ts.map +1 -1
- package/dist/components/SliderProgress/SliderProgress.stories.d.ts +3 -3
- package/dist/components/SliderProgress/SliderProgress.stories.d.ts.map +1 -1
- package/dist/components/Stack/Stack.stories.d.ts +1 -1
- package/dist/components/Stack/Stack.stories.d.ts.map +1 -1
- package/dist/components/StandardModal/StandardModal.js +2 -2
- package/dist/components/StandardModal/StandardModal.stories.d.ts +1 -1
- package/dist/components/StandardModal/StandardModal.stories.d.ts.map +1 -1
- package/dist/components/StarRating/StarRating.stories.d.ts +1 -1
- package/dist/components/StarRating/StarRating.stories.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.js +2 -2
- package/dist/components/Stepper/Stepper.stories.d.ts +1 -1
- package/dist/components/Stepper/Stepper.stories.d.ts.map +1 -1
- package/dist/components/StickyBox/StickyBox.stories.d.ts +1 -1
- package/dist/components/StickyBox/StickyBox.stories.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +2 -2
- package/dist/components/Switch/Switch.stories.d.ts +1 -1
- package/dist/components/Switch/Switch.stories.d.ts.map +1 -1
- package/dist/components/Table/Table.stories.d.ts +1 -1
- package/dist/components/Table/Table.stories.d.ts.map +1 -1
- package/dist/components/Table/TableCell.css.d.ts.map +1 -1
- package/dist/components/Table/TableCell.css.js +0 -1
- package/dist/components/Table/TableCell.d.ts.map +1 -1
- package/dist/components/Table/TableCell.js +2 -2
- package/dist/components/Table/TableHeadCell.js +1 -1
- package/dist/components/Tabs/Tab.css.d.ts +8 -8
- package/dist/components/Tabs/Tab.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.js +3 -4
- package/dist/components/Tabs/TabList.css.d.ts +2 -2
- package/dist/components/Tabs/TabList.js +2 -2
- package/dist/components/Tabs/Tabs.stories.d.ts +1 -1
- package/dist/components/Tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/components/Text/Text.d.ts +10 -9
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +34 -26
- package/dist/components/Text/Text.stories.d.ts +1 -1
- package/dist/components/Text/Text.stories.d.ts.map +1 -1
- package/dist/components/Text/index.d.ts +2 -3
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/Text/index.js +2 -2
- package/dist/components/Text/textStyles.d.ts +16 -0
- package/dist/components/Text/textStyles.d.ts.map +1 -0
- package/dist/components/Text/textStyles.js +32 -0
- package/dist/components/TextAreaInput/TextAreaInput.stories.d.ts +1 -1
- package/dist/components/TextAreaInput/TextAreaInput.stories.d.ts.map +1 -1
- package/dist/components/TextBubble/TextBubble.css.d.ts.map +1 -1
- package/dist/components/TextBubble/TextBubble.css.js +1 -0
- package/dist/components/TextBubble/TextBubble.d.ts.map +1 -1
- package/dist/components/TextBubble/TextBubble.js +0 -1
- package/dist/components/TextBubble/TextBubble.stories.d.ts +1 -1
- package/dist/components/TextBubble/TextBubble.stories.d.ts.map +1 -1
- package/dist/components/TextContainer/TextContainer.stories.d.ts +1 -1
- package/dist/components/TextContainer/TextContainer.stories.d.ts.map +1 -1
- package/dist/components/TextInput/TextInput.stories.d.ts +1 -1
- package/dist/components/TextInput/TextInput.stories.d.ts.map +1 -1
- package/dist/components/TextLink/TextLink.d.ts +11 -11
- package/dist/components/TextLink/TextLink.d.ts.map +1 -1
- package/dist/components/TextLink/TextLink.js +31 -32
- package/dist/components/TextLink/TextLink.stories.d.ts +605 -206
- package/dist/components/TextLink/TextLink.stories.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +3 -3
- package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +2 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts.map +1 -1
- package/dist/components/private/CheckableBase/CheckableBase.js +3 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/stories/borders.stories.d.ts +1 -1
- package/dist/stories/borders.stories.d.ts.map +1 -1
- package/dist/stories/helpers/stack.css.d.ts +5 -5
- package/dist/stories/helpers/styles.css.d.ts +7 -7
- package/dist/stories/icons.stories.d.ts +1 -1
- package/dist/stories/icons.stories.d.ts.map +1 -1
- package/dist/stories/intentional-colours.stories.d.ts +1 -1
- package/dist/stories/intentional-colours.stories.d.ts.map +1 -1
- package/dist/stories/palette.stories.d.ts +1 -1
- package/dist/stories/palette.stories.d.ts.map +1 -1
- package/dist/stories/shared/argTypes-box.d.ts +1 -1
- package/dist/stories/shared/argTypes-box.d.ts.map +1 -1
- package/dist/stories/shared/argTypes.d.ts +1 -0
- package/dist/stories/shared/argTypes.d.ts.map +1 -1
- package/dist/stories/space.stories.d.ts +1 -1
- package/dist/stories/space.stories.d.ts.map +1 -1
- package/dist/stories/theme.stories.d.ts +1 -1
- package/dist/stories/theme.stories.d.ts.map +1 -1
- package/dist/styles/global.css.d.ts +2 -0
- package/dist/styles/global.css.d.ts.map +1 -0
- package/dist/styles/global.css.js +71 -0
- package/dist/styles/{intentional.css.d.ts → intentColorset.css.d.ts} +2 -11
- package/dist/styles/intentColorset.css.d.ts.map +1 -0
- package/dist/styles/intentColorset.css.js +67 -0
- package/dist/styles/layers.css.d.ts +1 -0
- package/dist/styles/layers.css.d.ts.map +1 -1
- package/dist/styles/layers.css.js +1 -0
- package/dist/styles/reset.css.d.ts +89 -0
- package/dist/styles/reset.css.d.ts.map +1 -0
- package/dist/{reset → styles}/reset.css.js +72 -73
- package/dist/styles/resetStyles.d.ts +4 -0
- package/dist/styles/resetStyles.d.ts.map +1 -0
- package/dist/styles/resetStyles.js +13 -0
- package/dist/styles/sprinkles.css.d.ts +30 -12
- package/dist/styles/sprinkles.css.d.ts.map +1 -1
- package/dist/styles/sprinkles.css.js +31 -4
- package/dist/styles/typography.css.d.ts +20 -76
- package/dist/styles/typography.css.d.ts.map +1 -1
- package/dist/styles/typography.css.js +26 -44
- package/dist/styles/vars.css.d.ts +1 -1
- package/dist/styles/vars.css.d.ts.map +1 -1
- package/dist/themes/base/index.d.ts +274 -278
- package/dist/themes/base/index.d.ts.map +1 -1
- package/dist/themes/base/tokens.d.ts +4 -6
- package/dist/themes/base/tokens.d.ts.map +1 -1
- package/dist/themes/base/tokens.js +4 -6
- package/dist/themes/flat_red/index.d.ts +274 -278
- package/dist/themes/flat_red/index.d.ts.map +1 -1
- package/dist/themes/flat_red/tokens.d.ts +4 -6
- package/dist/themes/flat_red/tokens.d.ts.map +1 -1
- package/dist/themes/index.d.ts +274 -278
- package/dist/themes/index.d.ts.map +1 -1
- package/dist/themes/makeTheme.d.ts +268 -270
- package/dist/themes/makeTheme.d.ts.map +1 -1
- package/dist/themes/neutral/index.d.ts +273 -277
- package/dist/themes/neutral/index.d.ts.map +1 -1
- package/dist/themes/neutral/tokens.d.ts +4 -6
- package/dist/themes/neutral/tokens.d.ts.map +1 -1
- package/dist/themes/theme.css.d.ts +269 -271
- package/dist/themes/theme.css.d.ts.map +1 -1
- package/dist/themes/theme.css.js +15 -17
- package/dist/utils/propGuards.d.ts +2 -0
- package/dist/utils/propGuards.d.ts.map +1 -0
- package/dist/utils/propGuards.js +5 -0
- package/dist/utils/sprinkles.d.ts +1 -1
- package/dist/utils/sprinkles.d.ts.map +1 -1
- package/dist/utils/sprinkles.js +3 -3
- package/package.json +36 -42
- package/readme.md +6 -5
- package/dist/components/Anchor/Anchor.css.d.ts +0 -2
- package/dist/components/Anchor/Anchor.css.d.ts.map +0 -1
- package/dist/components/Anchor/Anchor.css.js +0 -10
- package/dist/components/Anchor/Anchor.spec.d.ts +0 -2
- package/dist/components/Anchor/Anchor.spec.d.ts.map +0 -1
- package/dist/components/Box/Box.test.d.ts +0 -2
- package/dist/components/Box/Box.test.d.ts.map +0 -1
- package/dist/components/Box/Box.test.js +0 -114
- package/dist/components/Text/useTextStyles.css.d.ts +0 -8
- package/dist/components/Text/useTextStyles.css.d.ts.map +0 -1
- package/dist/components/Text/useTextStyles.css.js +0 -44
- package/dist/components/Text/useTextStyles.d.ts +0 -21
- package/dist/components/Text/useTextStyles.d.ts.map +0 -1
- package/dist/components/Text/useTextStyles.js +0 -23
- package/dist/components/TextLink/TextLink.spec.d.ts +0 -2
- package/dist/components/TextLink/TextLink.spec.d.ts.map +0 -1
- package/dist/reset/globalFonts.css.d.ts +0 -2
- package/dist/reset/globalFonts.css.d.ts.map +0 -1
- package/dist/reset/globalFonts.css.js +0 -24
- package/dist/reset/globalReset.css.d.ts +0 -2
- package/dist/reset/globalReset.css.d.ts.map +0 -1
- package/dist/reset/globalReset.css.js +0 -45
- package/dist/reset/reset.css.d.ts +0 -50
- package/dist/reset/reset.css.d.ts.map +0 -1
- package/dist/styles/intentional.css.d.ts.map +0 -1
- package/dist/styles/intentional.css.js +0 -134
- package/dist/utils/refs.d.ts +0 -2
- package/dist/utils/refs.d.ts.map +0 -1
- package/dist/utils/refs.js +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.css.d.ts","sourceRoot":"","sources":["../../lib/themes/theme.css.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAKpD,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEQ,CAAC;AAEtB,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"theme.css.d.ts","sourceRoot":"","sources":["../../lib/themes/theme.css.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAKpD,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEQ,CAAC;AAEtB,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC;AAiSrC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI3B,CAAC;AAGF,OAAO,EAAE,eAAe,IAAI,iBAAiB,EAAE,CAAC;AAEhD,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAC,OAAO,eAAe,CAAC,CAAC;AAGrE,eAAO,MAAM,SAAS,QAKpB,CAAC"}
|
package/dist/themes/theme.css.js
CHANGED
|
@@ -104,25 +104,23 @@ const THEME_CONTRACT = {
|
|
|
104
104
|
color: {
|
|
105
105
|
gamut: coloursWithWhite,
|
|
106
106
|
surface: {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
success:
|
|
112
|
-
info:
|
|
113
|
-
danger:
|
|
114
|
-
warning:
|
|
107
|
+
page: null,
|
|
108
|
+
hard: null,
|
|
109
|
+
soft: null,
|
|
110
|
+
accent: null,
|
|
111
|
+
success: null,
|
|
112
|
+
info: null,
|
|
113
|
+
danger: null,
|
|
114
|
+
warning: null
|
|
115
115
|
},
|
|
116
116
|
content: {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
success: 'color-content-success',
|
|
125
|
-
warning: 'color-content-warning'
|
|
117
|
+
normal: null,
|
|
118
|
+
soft: null,
|
|
119
|
+
inverse: null,
|
|
120
|
+
info: null,
|
|
121
|
+
danger: null,
|
|
122
|
+
success: null,
|
|
123
|
+
warning: null
|
|
126
124
|
},
|
|
127
125
|
interactive: {
|
|
128
126
|
border: 'color-interactive-border',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propGuards.d.ts","sourceRoot":"","sources":["../../lib/utils/propGuards.ts"],"names":[],"mappings":"AAcA,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,OAAO,EAAE,IAAI,EAAE,CAAC,4BAI7D"}
|
|
@@ -7,7 +7,7 @@ interface SortedProps<T extends object> {
|
|
|
7
7
|
sprinklesProps: Sprinkles;
|
|
8
8
|
sprinklesResponsiveProps: SprinklesResponsive;
|
|
9
9
|
sprinklesLegacyColourProps: SprinklesLegacyColours;
|
|
10
|
-
|
|
10
|
+
baseProps: RemainingProps<T>;
|
|
11
11
|
}
|
|
12
12
|
export declare const isSprinklesProperty: (key: string) => boolean;
|
|
13
13
|
export declare const isSprinklesLegacyColourProperty: (key: string) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprinkles.d.ts","sourceRoot":"","sources":["../../lib/utils/sprinkles.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,SAAS,EAEd,KAAK,sBAAsB,EAE3B,KAAK,mBAAmB,EACxB,MAAM,yBAAyB,CAAC;AAEjC,KAAK,eAAe,GACjB,MAAM,SAAS,GACf,MAAM,mBAAmB,GACzB,MAAM,sBAAsB,CAAC;AAGhC,KAAK,cAAc,CAAC,CAAC,SAAS,MAAM,IAAI;KACtC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,eAAe,GAAG,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAC7D,CAAC;AAEF,UAAU,WAAW,CAAC,CAAC,SAAS,MAAM;IACrC,cAAc,EAAE,SAAS,CAAC;IAC1B,wBAAwB,EAAE,mBAAmB,CAAC;IAC9C,0BAA0B,EAAE,sBAAsB,CAAC;IACnD,
|
|
1
|
+
{"version":3,"file":"sprinkles.d.ts","sourceRoot":"","sources":["../../lib/utils/sprinkles.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,SAAS,EAEd,KAAK,sBAAsB,EAE3B,KAAK,mBAAmB,EACxB,MAAM,yBAAyB,CAAC;AAEjC,KAAK,eAAe,GACjB,MAAM,SAAS,GACf,MAAM,mBAAmB,GACzB,MAAM,sBAAsB,CAAC;AAGhC,KAAK,cAAc,CAAC,CAAC,SAAS,MAAM,IAAI;KACtC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,eAAe,GAAG,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAC7D,CAAC;AAEF,UAAU,WAAW,CAAC,CAAC,SAAS,MAAM;IACrC,cAAc,EAAE,SAAS,CAAC;IAC1B,wBAAwB,EAAE,mBAAmB,CAAC;IAC9C,0BAA0B,EAAE,sBAAsB,CAAC;IACnD,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;CAC7B;AAKD,eAAO,MAAM,mBAAmB,GAAI,KAAK,MAAM,YAE9C,CAAC;AAKF,eAAO,MAAM,+BAA+B,GAAI,KAAK,MAAM,YAI1D,CAAC;AAKF,eAAO,MAAM,6BAA6B,GAAI,KAAK,MAAM,YAExD,CAAC;AAQF,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,MAAM,EAAE,OAAO,CAAC,sBAYtC,CAAC;AAa7B,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,MAAM,EACrD,OAAO,CAAC,KACN,WAAW,CAAC,CAAC,CAgCf,CAAC"}
|
package/dist/utils/sprinkles.js
CHANGED
|
@@ -22,7 +22,7 @@ export const filterPropsWithStyles = props => {
|
|
|
22
22
|
sprinklesProps: {},
|
|
23
23
|
sprinklesResponsiveProps: {},
|
|
24
24
|
sprinklesLegacyColourProps: {},
|
|
25
|
-
|
|
25
|
+
baseProps: {}
|
|
26
26
|
};
|
|
27
27
|
for (const key in props) {
|
|
28
28
|
if (Object.prototype.hasOwnProperty.call(props, key)) {
|
|
@@ -34,7 +34,7 @@ export const filterPropsWithStyles = props => {
|
|
|
34
34
|
} else if (isSprinklesLegacyColourProperty(key)) {
|
|
35
35
|
acc.sprinklesLegacyColourProps[key] = value;
|
|
36
36
|
} else {
|
|
37
|
-
acc.
|
|
37
|
+
acc.baseProps[key] = value;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -42,6 +42,6 @@ export const filterPropsWithStyles = props => {
|
|
|
42
42
|
sprinklesProps: acc.sprinklesProps,
|
|
43
43
|
sprinklesResponsiveProps: acc.sprinklesResponsiveProps,
|
|
44
44
|
sprinklesLegacyColourProps: acc.sprinklesLegacyColourProps,
|
|
45
|
-
|
|
45
|
+
baseProps: acc.baseProps
|
|
46
46
|
};
|
|
47
47
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autoguru/overdrive",
|
|
3
|
-
"version": "4.43.
|
|
3
|
+
"version": "4.43.5",
|
|
4
4
|
"description": "Overdrive is a product component library, and design system for AutoGuru.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,11 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"sideEffects": [
|
|
23
|
-
"./lib
|
|
24
|
-
"./lib/theme/**/*",
|
|
23
|
+
"./lib/**/global.css.*",
|
|
25
24
|
"./lib/themes/**/*",
|
|
26
|
-
"./dist
|
|
27
|
-
"./dist/theme/**/*",
|
|
25
|
+
"./dist/**/global.css.*",
|
|
28
26
|
"./dist/themes/**/*"
|
|
29
27
|
],
|
|
30
28
|
"files": [
|
|
@@ -35,7 +33,7 @@
|
|
|
35
33
|
},
|
|
36
34
|
"scripts": {
|
|
37
35
|
"analyse": "vite build --config vite-analyse.config.ts",
|
|
38
|
-
"build": "babel lib --out-dir dist --extensions '.ts,.tsx,.css' --ignore 'lib/**/*.
|
|
36
|
+
"build": "babel lib --out-dir dist --extensions '.ts,.tsx,.css' --ignore 'lib/stories,lib/**/*.spec.tsx,lib/**/*.stories.tsx'",
|
|
39
37
|
"chromatic": "chromatic test --exit-zero-on-changes --build-script-name storybook:build",
|
|
40
38
|
"copy:public": "node scripts/copyPublic.js",
|
|
41
39
|
"check-deps": "npx npm-check-updates@latest --interactive --format group",
|
|
@@ -90,41 +88,37 @@
|
|
|
90
88
|
"@babel/preset-typescript": "7.27.1",
|
|
91
89
|
"@babel/runtime-corejs3": "7.27.1",
|
|
92
90
|
"@changesets/cli": "2.29.4",
|
|
93
|
-
"@chromatic-com/storybook": "
|
|
94
|
-
"@internationalized/date": "^3.
|
|
91
|
+
"@chromatic-com/storybook": "4.0.0-next.7",
|
|
92
|
+
"@internationalized/date": "^3.8.1",
|
|
95
93
|
"@octokit/rest": "^21.1.1",
|
|
96
94
|
"@popperjs/core": "^2.11.8",
|
|
97
|
-
"@react-stately/toggle": "^3.8.
|
|
98
|
-
"@storybook/addon-a11y": "
|
|
99
|
-
"@storybook/addon-
|
|
100
|
-
"@storybook/addon-
|
|
101
|
-
"@storybook/addon-
|
|
102
|
-
"@storybook/addon-
|
|
103
|
-
"@storybook/
|
|
104
|
-
"@
|
|
105
|
-
"@storybook/manager-api": "8.6.12",
|
|
106
|
-
"@storybook/react": "8.6.12",
|
|
107
|
-
"@storybook/react-vite": "8.6.12",
|
|
108
|
-
"@storybook/test": "8.6.12",
|
|
109
|
-
"@storybook/theming": "8.6.12",
|
|
95
|
+
"@react-stately/toggle": "^3.8.4",
|
|
96
|
+
"@storybook/addon-a11y": "9.0.0-rc.4",
|
|
97
|
+
"@storybook/addon-docs": "9.0.0-rc.4",
|
|
98
|
+
"@storybook/addon-links": "9.0.0-rc.4",
|
|
99
|
+
"@storybook/addon-onboarding": "9.0.0-rc.4",
|
|
100
|
+
"@storybook/addon-vitest": "9.0.0-rc.4",
|
|
101
|
+
"@storybook/react-vite": "9.0.0-rc.4",
|
|
102
|
+
"@testing-library/dom": "^10.4.0",
|
|
110
103
|
"@testing-library/jest-dom": "^6.6.3",
|
|
111
104
|
"@testing-library/react": "^16.3.0",
|
|
112
105
|
"@testing-library/react-hooks": "^8.0.1",
|
|
113
106
|
"@testing-library/user-event": "^14.6.1",
|
|
114
|
-
"@types/node": "22.15.
|
|
115
|
-
"@types/react": "19.1.
|
|
116
|
-
"@types/react-dom": "19.1.
|
|
107
|
+
"@types/node": "22.15.21",
|
|
108
|
+
"@types/react": "19.1.5",
|
|
109
|
+
"@types/react-dom": "19.1.5",
|
|
117
110
|
"@types/webpack-env": "^1.18.8",
|
|
111
|
+
"@typescript-eslint/utils": "^8.32.1",
|
|
118
112
|
"@vanilla-extract/babel-plugin": "^1.2.0",
|
|
119
|
-
"@vanilla-extract/css": "^1.17.
|
|
120
|
-
"@vanilla-extract/dynamic": "^2.1.
|
|
113
|
+
"@vanilla-extract/css": "^1.17.2",
|
|
114
|
+
"@vanilla-extract/dynamic": "^2.1.3",
|
|
121
115
|
"@vanilla-extract/recipes": "^0.5.5",
|
|
122
116
|
"@vanilla-extract/sprinkles": "^1.6.3",
|
|
123
|
-
"@vanilla-extract/vite-plugin": "^5.0.
|
|
124
|
-
"@vanilla-extract/webpack-plugin": "^2.3.
|
|
125
|
-
"@vitest/browser": "3.1.
|
|
126
|
-
"@vitest/coverage-v8": "3.1.
|
|
127
|
-
"@vitest/eslint-plugin": "1.
|
|
117
|
+
"@vanilla-extract/vite-plugin": "^5.0.2",
|
|
118
|
+
"@vanilla-extract/webpack-plugin": "^2.3.19",
|
|
119
|
+
"@vitest/browser": "3.1.4",
|
|
120
|
+
"@vitest/coverage-v8": "3.1.4",
|
|
121
|
+
"@vitest/eslint-plugin": "1.2.0",
|
|
128
122
|
"babel-plugin-add-import-extension": "^1.6.0",
|
|
129
123
|
"babel-plugin-dev-expression": "^0.2.3",
|
|
130
124
|
"babel-plugin-macros": "^3.1.0",
|
|
@@ -133,16 +127,16 @@
|
|
|
133
127
|
"clsx": "^2.1.1",
|
|
134
128
|
"colord": "^2.9.3",
|
|
135
129
|
"concurrently": "^9.1.2",
|
|
136
|
-
"core-js": "^3.
|
|
130
|
+
"core-js": "^3.42.0",
|
|
137
131
|
"csstype": "^3.1.3",
|
|
138
132
|
"deepmerge": "^4.3.1",
|
|
139
|
-
"es-toolkit": "1.
|
|
140
|
-
"eslint": "9.
|
|
141
|
-
"eslint-plugin-storybook": "0.
|
|
133
|
+
"es-toolkit": "1.38.0",
|
|
134
|
+
"eslint": "9.27.0",
|
|
135
|
+
"eslint-plugin-storybook": "9.0.0-rc.4",
|
|
142
136
|
"husky": "^9.1.7",
|
|
143
137
|
"intersection-observer": "^0.12.2",
|
|
144
138
|
"jsdom": "26.1.0",
|
|
145
|
-
"lint-staged": "
|
|
139
|
+
"lint-staged": "16.0.0",
|
|
146
140
|
"magic-string": "^0.30.17",
|
|
147
141
|
"mini-css-extract-plugin": "^2.9.2",
|
|
148
142
|
"mockdate": "^3.0.5",
|
|
@@ -153,22 +147,22 @@
|
|
|
153
147
|
"prop-types": "^15.8.1",
|
|
154
148
|
"rand-seed": "^2.1.7",
|
|
155
149
|
"react": "^19.1.0",
|
|
156
|
-
"react-aria": "^3.
|
|
157
|
-
"react-aria-components": "^1.
|
|
150
|
+
"react-aria": "^3.40.0",
|
|
151
|
+
"react-aria-components": "^1.9.0",
|
|
158
152
|
"react-dom": "^19.1.0",
|
|
159
153
|
"react-focus-lock": "2.13.6",
|
|
160
154
|
"react-intersection-observer": "^9.16.0",
|
|
161
155
|
"react-keyed-flatten-children": "5.0.0",
|
|
162
|
-
"react-stately": "^3.
|
|
156
|
+
"react-stately": "^3.38.0",
|
|
163
157
|
"react-swipeable": "^7.0.2",
|
|
164
158
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
165
|
-
"storybook": "
|
|
159
|
+
"storybook": "9.0.0-rc.4",
|
|
166
160
|
"storybook-addon-tag-badges": "^1.4.0",
|
|
167
161
|
"typescript": "5.8.3",
|
|
168
162
|
"url-loader": "^4.1.1",
|
|
169
163
|
"vite": "6.3.5",
|
|
170
|
-
"vitest": "^3.1.
|
|
171
|
-
"webpack": "5.99.
|
|
164
|
+
"vitest": "^3.1.4",
|
|
165
|
+
"webpack": "5.99.9"
|
|
172
166
|
},
|
|
173
167
|
"peerDependencies": {
|
|
174
168
|
"@autoguru/icons": ">=1.8.8",
|
package/readme.md
CHANGED
|
@@ -40,12 +40,10 @@ To use Overdrive in your project, install it via yarn:
|
|
|
40
40
|
yarn add @autoguru/overdrive react react-dom
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
Then, import the reset and configure the
|
|
43
|
+
Then, import the reset and configure the Overdrive Provider with the theme you
|
|
44
44
|
want to use:
|
|
45
45
|
|
|
46
46
|
```jsx
|
|
47
|
-
import '@autoguru/overdrive/reset';
|
|
48
|
-
// It is important that the reset import happens before any of this.
|
|
49
47
|
import { OverdriveProvider, Button } from '@autoguru/overdrive';
|
|
50
48
|
|
|
51
49
|
<OverdriveProvider>
|
|
@@ -53,6 +51,10 @@ import { OverdriveProvider, Button } from '@autoguru/overdrive';
|
|
|
53
51
|
</OverdriveProvider>;
|
|
54
52
|
```
|
|
55
53
|
|
|
54
|
+
The Overdrive Provider automatically applies global base styles to the body tag.
|
|
55
|
+
If you need more control over where the global base styles are applied, you can
|
|
56
|
+
also apply `data-od-base` to any element.
|
|
57
|
+
|
|
56
58
|
You can also customise the theme colours using the provider props:
|
|
57
59
|
|
|
58
60
|
```jsx
|
|
@@ -72,8 +74,7 @@ You can also customise the theme colours using the provider props:
|
|
|
72
74
|
|
|
73
75
|
## Thanks
|
|
74
76
|
|
|
75
|
-
[Chromatic](https://www.
|
|
76
|
-
testing.
|
|
77
|
+
[Chromatic](https://www.chromatic.com) for providing visual regression testing.
|
|
77
78
|
|
|
78
79
|
## License
|
|
79
80
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Anchor/Anchor.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,QAGf,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
4
|
-
__vanilla_filescope__.setFileScope("lib/components/Anchor/Anchor.css.ts", "@autoguru/overdrive");
|
|
5
|
-
import { style } from '@vanilla-extract/css';
|
|
6
|
-
export const root = style({
|
|
7
|
-
textDecoration: 'none',
|
|
8
|
-
cursor: 'pointer'
|
|
9
|
-
}, "root");
|
|
10
|
-
__vanilla_filescope__.endFileScope();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.spec.d.ts","sourceRoot":"","sources":["../../../lib/components/Anchor/Anchor.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Box.test.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/Box.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { composeStories } from '@storybook/react';
|
|
4
|
-
import { render, screen } from '@testing-library/react';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { Box } from "./Box.js";
|
|
7
|
-
import * as stories from "./Box.stories.js";
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const {
|
|
10
|
-
ComponentAsProp,
|
|
11
|
-
DataAttributes,
|
|
12
|
-
ResponsiveProps,
|
|
13
|
-
Standard
|
|
14
|
-
} = composeStories(stories);
|
|
15
|
-
describe('Box', async () => {
|
|
16
|
-
await it('renders the standard Box story', async () => {
|
|
17
|
-
await Standard.run();
|
|
18
|
-
const text = Standard.args.children;
|
|
19
|
-
const boxElement = screen.getByText(text);
|
|
20
|
-
expect(boxElement.tagName).toBe('DIV');
|
|
21
|
-
});
|
|
22
|
-
await it('renders the Box story with responsive props', async () => {
|
|
23
|
-
await ResponsiveProps.run();
|
|
24
|
-
const boxElement = screen.getByText('Resize the viewport');
|
|
25
|
-
expect(boxElement.className).toMatchSnapshot();
|
|
26
|
-
});
|
|
27
|
-
await it('merges custom className with component styles', () => {
|
|
28
|
-
render(_jsx(Box, {
|
|
29
|
-
padding: "3",
|
|
30
|
-
className: "my-custom-class another-class",
|
|
31
|
-
children: "Custom Class Box"
|
|
32
|
-
}));
|
|
33
|
-
const boxElement = screen.getByText('Custom Class Box');
|
|
34
|
-
expect(boxElement.className).toContain('my-custom-class');
|
|
35
|
-
expect(boxElement.className).toContain('another-class');
|
|
36
|
-
expect(boxElement).not.toHaveAttribute('padding');
|
|
37
|
-
expect(boxElement.className).toMatchSnapshot();
|
|
38
|
-
});
|
|
39
|
-
await it('renders as a button element', () => {
|
|
40
|
-
render(_jsx(Box, {
|
|
41
|
-
as: "button",
|
|
42
|
-
children: "Button Box"
|
|
43
|
-
}));
|
|
44
|
-
const buttonElement = screen.getByRole('button', {
|
|
45
|
-
name: 'Button Box'
|
|
46
|
-
});
|
|
47
|
-
expect(buttonElement.tagName).toBe('BUTTON');
|
|
48
|
-
});
|
|
49
|
-
await it('renders using a React element passed to "as" prop', async () => {
|
|
50
|
-
await ComponentAsProp.run();
|
|
51
|
-
const boxElement = screen.getByText('Styled props merged with custom component');
|
|
52
|
-
expect(boxElement.tagName).toBe('A');
|
|
53
|
-
expect(boxElement).toHaveAttribute('href', '#hello');
|
|
54
|
-
expect(boxElement.className).toContain('keep-my-custom-class-name');
|
|
55
|
-
expect(boxElement).not.toHaveAttribute('backgroundColor');
|
|
56
|
-
expect(boxElement).not.toHaveAttribute('borderColor');
|
|
57
|
-
expect(boxElement).not.toHaveAttribute('borderWidth');
|
|
58
|
-
expect(boxElement).not.toHaveAttribute('p');
|
|
59
|
-
});
|
|
60
|
-
await it('renders as an anchor tag with href', () => {
|
|
61
|
-
render(_jsx(Box, {
|
|
62
|
-
as: "a",
|
|
63
|
-
href: "/test-link",
|
|
64
|
-
children: "Anchor Box"
|
|
65
|
-
}));
|
|
66
|
-
const anchorElement = screen.getByRole('link', {
|
|
67
|
-
name: 'Anchor Box'
|
|
68
|
-
});
|
|
69
|
-
expect(anchorElement.tagName).toBe('A');
|
|
70
|
-
expect(anchorElement).toHaveAttribute('href', '/test-link');
|
|
71
|
-
});
|
|
72
|
-
await it('renders with odComponent and testId props', async () => {
|
|
73
|
-
await DataAttributes.run();
|
|
74
|
-
const boxElement = screen.getByText('The most basic box (or is it?)');
|
|
75
|
-
expect(boxElement).toHaveAttribute('id', 'so-basic');
|
|
76
|
-
expect(boxElement).toHaveAttribute('data-od-component', 'box-basic');
|
|
77
|
-
expect(boxElement).toHaveAttribute('data-test-id', 'basically-perfect');
|
|
78
|
-
expect(boxElement).toHaveAttribute('data-custom-attribute', 'somewhat less basic');
|
|
79
|
-
});
|
|
80
|
-
await it('applies basic style props (padding)', () => {
|
|
81
|
-
render(_jsx(Box, {
|
|
82
|
-
padding: "4",
|
|
83
|
-
children: "Padded Box"
|
|
84
|
-
}));
|
|
85
|
-
const boxElement = screen.getByText('Padded Box');
|
|
86
|
-
expect(boxElement.className).toMatchSnapshot();
|
|
87
|
-
});
|
|
88
|
-
await it('applies responsive style props for padding', () => {
|
|
89
|
-
render(_jsx(Box, {
|
|
90
|
-
padding: ['2', '4', '6'],
|
|
91
|
-
children: "Responsive Padded Box"
|
|
92
|
-
}));
|
|
93
|
-
const boxElement = screen.getByText('Responsive Padded Box');
|
|
94
|
-
expect(boxElement.className).toMatchSnapshot();
|
|
95
|
-
});
|
|
96
|
-
await it('applies colour and backgroundColour props', () => {
|
|
97
|
-
render(_jsx(Box, {
|
|
98
|
-
color: "onSurface",
|
|
99
|
-
backgroundColor: "danger",
|
|
100
|
-
children: "Coloured Box"
|
|
101
|
-
}));
|
|
102
|
-
const boxElement = screen.getByText('Coloured Box');
|
|
103
|
-
expect(boxElement.className).toMatchSnapshot();
|
|
104
|
-
});
|
|
105
|
-
await it('applies border props correctly', () => {
|
|
106
|
-
render(_jsx(Box, {
|
|
107
|
-
borderColor: "warning",
|
|
108
|
-
borderWidth: "2",
|
|
109
|
-
children: "Bordered Box"
|
|
110
|
-
}));
|
|
111
|
-
const boxElement = screen.getByText('Bordered Box');
|
|
112
|
-
expect(boxElement.className).toMatchSnapshot();
|
|
113
|
-
});
|
|
114
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const root: string;
|
|
2
|
-
export declare const sizes: Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9", string>;
|
|
3
|
-
export declare const colours: Record<"link" | "white" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | "muted" | "unset", string>;
|
|
4
|
-
export declare const fontWeight: Record<"bold" | "normal" | "semiBold", string>;
|
|
5
|
-
export declare const noWrap: string;
|
|
6
|
-
export declare const breakWord: string;
|
|
7
|
-
export declare const transform: Record<"capitalize" | "uppercase", string>;
|
|
8
|
-
//# sourceMappingURL=useTextStyles.css.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTextStyles.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Text/useTextStyles.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI,QAOf,CAAC;AAEH,eAAO,MAAM,KAAK,qEAWjB,CAAC;AAEF,eAAO,MAAM,OAAO,sLAKlB,CAAC;AAEH,eAAO,MAAM,UAAU,gDAEtB,CAAC;AAEF,eAAO,MAAM,MAAM,QAAkC,CAAC;AACtD,eAAO,MAAM,SAAS,QAAqC,CAAC;AAE5D,eAAO,MAAM,SAAS,4CAKrB,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
5
|
-
__vanilla_filescope__.setFileScope("lib/components/Text/useTextStyles.css.ts", "@autoguru/overdrive");
|
|
6
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
-
import { style, styleVariants } from '@vanilla-extract/css';
|
|
9
|
-
import { overdriveTokens as vars } from "../../themes/theme.css.js";
|
|
10
|
-
import { mapTokenToProperty } from "../../utils/mapTokenToProperty.js";
|
|
11
|
-
export const root = style({
|
|
12
|
-
selectors: {
|
|
13
|
-
'&::selection': {
|
|
14
|
-
color: vars.typography.colour.white,
|
|
15
|
-
background: vars.typography.colour.primary
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}, "root");
|
|
19
|
-
export const sizes = styleVariants(Object.entries(vars.typography.size).reduce((result, _ref) => {
|
|
20
|
-
let [name, size] = _ref;
|
|
21
|
-
return _objectSpread(_objectSpread({}, result), {}, {
|
|
22
|
-
[name]: {
|
|
23
|
-
fontSize: size.fontSize,
|
|
24
|
-
lineHeight: size.lineHeight
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}, {}), "sizes");
|
|
28
|
-
export const colours = styleVariants(_objectSpread(_objectSpread({}, mapTokenToProperty(vars.typography.colour, 'color')), {}, {
|
|
29
|
-
unset: {
|
|
30
|
-
color: 'unset'
|
|
31
|
-
}
|
|
32
|
-
}), "colours");
|
|
33
|
-
export const fontWeight = styleVariants(mapTokenToProperty(vars.typography.fontWeight, 'fontWeight'), "fontWeight");
|
|
34
|
-
export const noWrap = style({
|
|
35
|
-
whiteSpace: 'nowrap'
|
|
36
|
-
}, "noWrap");
|
|
37
|
-
export const breakWord = style({
|
|
38
|
-
wordBreak: 'break-word'
|
|
39
|
-
}, "breakWord");
|
|
40
|
-
export const transform = styleVariants(mapTokenToProperty({
|
|
41
|
-
uppercase: 'uppercase',
|
|
42
|
-
capitalize: 'capitalize'
|
|
43
|
-
}, 'textTransform'), "transform");
|
|
44
|
-
__vanilla_filescope__.endFileScope();
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { UseBoxProps } from '../Box/useBox';
|
|
2
|
-
import * as styles from './useTextStyles.css';
|
|
3
|
-
export type TextColor = keyof typeof styles.colours;
|
|
4
|
-
export type TextFontWeight = keyof typeof styles.fontWeight;
|
|
5
|
-
export type TextSize = keyof typeof styles.sizes;
|
|
6
|
-
export type TextTransform = keyof typeof styles.transform;
|
|
7
|
-
export type TextTags = 'p' | 'label' | 'span';
|
|
8
|
-
export interface TextStyleProps {
|
|
9
|
-
align?: UseBoxProps['textAlign'];
|
|
10
|
-
as?: TextTags;
|
|
11
|
-
colour?: TextColor;
|
|
12
|
-
fontWeight?: TextFontWeight;
|
|
13
|
-
is?: TextTags;
|
|
14
|
-
noWrap?: boolean;
|
|
15
|
-
breakWord?: boolean;
|
|
16
|
-
size?: TextSize;
|
|
17
|
-
transform?: TextTransform;
|
|
18
|
-
}
|
|
19
|
-
export declare const useTextStyles: ({ align, colour, fontWeight, is, as, noWrap, breakWord, size, transform, }: TextStyleProps) => string;
|
|
20
|
-
export default useTextStyles;
|
|
21
|
-
//# sourceMappingURL=useTextStyles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTextStyles.d.ts","sourceRoot":"","sources":["../../../lib/components/Text/useTextStyles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAG9C,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC;AACpD,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,MAAM,CAAC,UAAU,CAAC;AAC5D,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC;AACjD,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,MAAM,CAAC,SAAS,CAAC;AAE1D,MAAM,MAAM,QAAQ,GAAG,GAAG,GAAG,OAAO,GAAG,MAAM,CAAC;AAC9C,MAAM,WAAW,cAAc;IAE9B,KAAK,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IAEjC,EAAE,CAAC,EAAE,QAAQ,CAAC;IAEd,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,UAAU,CAAC,EAAE,cAAc,CAAC;IAE5B,EAAE,CAAC,EAAE,QAAQ,CAAC;IAEd,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB,SAAS,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,GAAI,4EAU3B,cAAc,WAWhB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { boxStyles } from "../Box/boxStyles.js";
|
|
5
|
-
import * as styles from "./useTextStyles.css.js";
|
|
6
|
-
export const useTextStyles = _ref => {
|
|
7
|
-
let {
|
|
8
|
-
align,
|
|
9
|
-
colour,
|
|
10
|
-
fontWeight,
|
|
11
|
-
is,
|
|
12
|
-
as = is,
|
|
13
|
-
noWrap,
|
|
14
|
-
breakWord,
|
|
15
|
-
size,
|
|
16
|
-
transform
|
|
17
|
-
} = _ref;
|
|
18
|
-
return clsx(styles.root, boxStyles({
|
|
19
|
-
as,
|
|
20
|
-
textAlign: align
|
|
21
|
-
}), colour !== 'unset' && styles.colours[colour !== null && colour !== void 0 ? colour : 'neutral'], fontWeight && styles.fontWeight[fontWeight], noWrap && styles.noWrap, breakWord && styles.breakWord, size && styles.sizes[size], transform && styles.transform[transform]);
|
|
22
|
-
};
|
|
23
|
-
export default useTextStyles;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextLink.spec.d.ts","sourceRoot":"","sources":["../../../lib/components/TextLink/TextLink.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalFonts.css.d.ts","sourceRoot":"","sources":["../../lib/reset/globalFonts.css.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
4
|
-
__vanilla_filescope__.setFileScope("lib/reset/globalFonts.css.ts", "@autoguru/overdrive");
|
|
5
|
-
import { globalFontFace } from '@vanilla-extract/css';
|
|
6
|
-
globalFontFace('AvertaStandard', {
|
|
7
|
-
fontStyle: 'normal',
|
|
8
|
-
fontWeight: 400,
|
|
9
|
-
fontDisplay: 'swap',
|
|
10
|
-
src: `local('Averta Std Regular'), local('AvertaStd-Regular'),url('https://cdn.autoguru.com.au/assets/fonts/avertastd-regular-webfont.woff2') format('woff2'),url('https://cdn.autoguru.com.au/assets/fonts/avertastd-regular-webfont.woff') format('woff')`
|
|
11
|
-
});
|
|
12
|
-
globalFontFace('AvertaStandard', {
|
|
13
|
-
fontStyle: 'normal',
|
|
14
|
-
fontWeight: 500,
|
|
15
|
-
fontDisplay: 'swap',
|
|
16
|
-
src: `local('Averta Std Semibold'), local('AvertaStd-Semibold'),url('https://cdn.autoguru.com.au/assets/fonts/avertastd-semibold-webfont.woff2') format('woff2'),url('https://cdn.autoguru.com.au/assets/fonts/avertastd-semibold-webfont.woff') format('woff')`
|
|
17
|
-
});
|
|
18
|
-
globalFontFace('AvertaStandard', {
|
|
19
|
-
fontStyle: 'normal',
|
|
20
|
-
fontWeight: 700,
|
|
21
|
-
fontDisplay: 'swap',
|
|
22
|
-
src: `local('Averta Std Bold'), local('AvertaStd-Bold'),url('https://cdn.autoguru.com.au/assets/fonts/avertastd-bold-webfont.woff2') format('woff2'),url('https://cdn.autoguru.com.au/assets/fonts/avertastd-bold-webfont.woff') format('woff')`
|
|
23
|
-
});
|
|
24
|
-
__vanilla_filescope__.endFileScope();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalReset.css.d.ts","sourceRoot":"","sources":["../../lib/reset/globalReset.css.ts"],"names":[],"mappings":""}
|