@autoguru/overdrive 4.42.0-next.1 → 4.43.0-next.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 +4 -3
- package/dist/components/Actions/Actions.d.ts.map +1 -1
- package/dist/components/Actions/Actions.js +5 -9
- package/dist/components/Actions/Actions.stories.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +13 -17
- package/dist/components/Anchor/Anchor.js +3 -3
- package/dist/components/AutoSuggest/AutoSuggest.js +2 -2
- package/dist/components/Box/Box.d.ts +6 -9
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Box/Box.js +12 -117
- package/dist/components/Box/Box.stories.d.ts +3 -20
- package/dist/components/Box/Box.stories.d.ts.map +1 -1
- package/dist/components/Box/argTypes.d.ts.map +1 -1
- package/dist/components/Box/argTypes.js +1 -1
- package/dist/components/Box/boxStyles.d.ts +5 -0
- package/dist/components/Box/boxStyles.d.ts.map +1 -0
- package/dist/components/Box/boxStyles.js +32 -0
- package/dist/components/Box/index.d.ts +3 -3
- package/dist/components/Box/index.d.ts.map +1 -1
- package/dist/components/Box/index.js +3 -2
- package/dist/components/Box/useBox.d.ts +22 -0
- package/dist/components/Box/useBox.d.ts.map +1 -0
- package/dist/components/Box/useBox.js +42 -0
- package/dist/components/BulletText/BulletText.d.ts +4 -5
- package/dist/components/BulletText/BulletText.d.ts.map +1 -1
- package/dist/components/BulletText/BulletText.js +6 -8
- 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.js +4 -4
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/ColourInput/ColourInput.js +4 -4
- package/dist/components/Columns/Column.d.ts +13 -14
- package/dist/components/Columns/Column.d.ts.map +1 -1
- package/dist/components/Columns/Column.js +23 -37
- package/dist/components/Columns/Columns.css.d.ts +18 -6
- package/dist/components/Columns/Columns.css.d.ts.map +1 -1
- package/dist/components/Columns/Columns.css.js +46 -34
- package/dist/components/Columns/Columns.d.ts +13 -24
- package/dist/components/Columns/Columns.d.ts.map +1 -1
- package/dist/components/Columns/Columns.js +31 -40
- package/dist/components/Columns/Columns.stories.d.ts +7 -904
- package/dist/components/Columns/Columns.stories.d.ts.map +1 -1
- package/dist/components/Columns/index.d.ts +2 -2
- package/dist/components/Columns/index.d.ts.map +1 -1
- package/dist/components/Columns/index.js +2 -2
- package/dist/components/DateInput/DateInput.js +1 -1
- package/dist/components/DatePicker/DatePicker.js +3 -3
- package/dist/components/DividerLine/DividerLine.js +2 -2
- package/dist/components/DropDown/DropDown.stories.d.ts +5 -5
- package/dist/components/DropDown/DropDown.stories.d.ts.map +1 -1
- package/dist/components/DropDown/DropDownOption.js +2 -2
- package/dist/components/DropDown/DropDownOptionsList.js +2 -1
- package/dist/components/EditableText/EditableText.d.ts +2 -2
- package/dist/components/EditableText/EditableText.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.js +2 -2
- 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/Flyout/Flyout.stories.d.ts +1 -1
- package/dist/components/Heading/Heading.d.ts +4 -4
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/Heading/Heading.js +10 -12
- package/dist/components/Heading/Heading.stories.d.ts +1 -8
- package/dist/components/Heading/Heading.stories.d.ts.map +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.css.d.ts +12 -0
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.css.d.ts.map +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.css.js +33 -0
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.d.ts +5 -4
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.d.ts.map +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.js +46 -35
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/Inline/Inline.d.ts +13 -13
- package/dist/components/Inline/Inline.d.ts.map +1 -1
- package/dist/components/Inline/Inline.js +54 -55
- package/dist/components/Inline/Inline.stories.d.ts +3 -32
- package/dist/components/Inline/Inline.stories.d.ts.map +1 -1
- package/dist/components/Inline/index.d.ts +1 -1
- package/dist/components/Inline/index.d.ts.map +1 -1
- package/dist/components/Inline/index.js +1 -1
- package/dist/components/IntentStripe/IntentStripe.d.ts +1 -2
- package/dist/components/IntentStripe/IntentStripe.d.ts.map +1 -1
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.d.ts.map +1 -1
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.js +1 -0
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts +394 -431
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts.map +1 -1
- package/dist/components/Meta/Meta.js +1 -1
- package/dist/components/MinimalModal/MinimalModal.css.d.ts +1 -1
- package/dist/components/MinimalModal/MinimalModal.stories.d.ts +6 -1
- package/dist/components/MinimalModal/MinimalModal.stories.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/NumberBubble/NumberBubble.d.ts.map +1 -1
- package/dist/components/NumberBubble/NumberBubble.js +3 -3
- package/dist/components/OptionGrid/OptionGrid.css.js +1 -1
- package/dist/components/OptionList/OptionList.d.ts +2 -2
- package/dist/components/OptionList/OptionListItem.js +1 -1
- package/dist/components/Pagination/Bubble.js +1 -1
- package/dist/components/Pagination/Pagination.js +3 -3
- package/dist/components/ProgressSpinner/ProgressSpinner.js +3 -3
- package/dist/components/ScrollPane/ScrollPane.d.ts +3 -3
- package/dist/components/ScrollPane/ScrollPane.d.ts.map +1 -1
- package/dist/components/ScrollPane/ScrollPane.js +1 -2
- package/dist/components/ScrollPane/ScrollPane.stories.d.ts +1 -1
- package/dist/components/ScrollPane/ScrollPane.stories.d.ts.map +1 -1
- package/dist/components/Section/Section.d.ts +4 -5
- package/dist/components/Section/Section.d.ts.map +1 -1
- package/dist/components/Section/Section.js +18 -13
- package/dist/components/Section/Section.stories.d.ts +1 -1
- package/dist/components/SimplePagination/SimplePagination.js +1 -1
- package/dist/components/SliderProgress/ProgressStep.js +2 -1
- package/dist/components/SliderProgress/SliderProgress.js +2 -1
- package/dist/components/SliderProgress/SliderProgress.stories.d.ts +1 -1
- package/dist/components/Stack/Divider.css.d.ts +1 -1
- package/dist/components/Stack/Divider.css.d.ts.map +1 -1
- package/dist/components/Stack/Divider.css.js +8 -3
- package/dist/components/Stack/Stack.d.ts +8 -9
- package/dist/components/Stack/Stack.d.ts.map +1 -1
- package/dist/components/Stack/Stack.js +50 -35
- package/dist/components/Stack/Stack.stories.d.ts +2 -17
- package/dist/components/Stack/Stack.stories.d.ts.map +1 -1
- package/dist/components/StandardModal/StandardModal.js +2 -2
- package/dist/components/StarRating/StarRating.d.ts.map +1 -1
- package/dist/components/StarRating/StarRating.js +3 -2
- package/dist/components/Stepper/Stepper.css.d.ts +1 -2
- package/dist/components/Stepper/Stepper.css.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.css.js +7 -12
- package/dist/components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.js +15 -30
- package/dist/components/Table/TableCell.d.ts.map +1 -1
- package/dist/components/Table/TableCell.js +2 -2
- package/dist/components/Table/TableHeadCell.d.ts +1 -1
- package/dist/components/Table/TableHeadCell.d.ts.map +1 -1
- package/dist/components/Table/TableHeadCell.js +4 -2
- package/dist/components/Tabs/Tab.js +5 -5
- package/dist/components/Text/Text.d.ts +4 -2
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +2 -5
- package/dist/components/Text/Text.stories.d.ts.map +1 -1
- package/dist/components/Text/useTextStyles.css.d.ts +1 -1
- package/dist/components/Text/useTextStyles.css.d.ts.map +1 -1
- package/dist/components/Text/useTextStyles.css.js +5 -1
- package/dist/components/Text/useTextStyles.d.ts +4 -5
- package/dist/components/Text/useTextStyles.d.ts.map +1 -1
- package/dist/components/Text/useTextStyles.js +3 -4
- package/dist/components/TextAreaInput/TextAreaInput.d.ts.map +1 -1
- package/dist/components/TextAreaInput/TextAreaInput.js +7 -6
- package/dist/components/TextBubble/TextBubble.d.ts.map +1 -1
- package/dist/components/TextBubble/TextBubble.js +3 -3
- package/dist/components/TextContainer/TextContainer.d.ts +0 -1
- package/dist/components/TextContainer/TextContainer.d.ts.map +1 -1
- package/dist/components/TextContainer/TextContainer.js +13 -25
- package/dist/components/TextContainer/TextContainer.stories.d.ts +3 -6
- package/dist/components/TextContainer/TextContainer.stories.d.ts.map +1 -1
- package/dist/components/TextLink/TextLink.d.ts +2 -2
- package/dist/components/TextLink/TextLink.d.ts.map +1 -1
- package/dist/components/TextLink/TextLink.js +8 -8
- package/dist/components/TextLink/TextLink.stories.d.ts +27 -22
- package/dist/components/TextLink/TextLink.stories.d.ts.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +5 -4
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +9 -3
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +1 -5
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts.map +1 -1
- package/dist/components/private/CheckableBase/CheckableBase.d.ts.map +1 -1
- package/dist/components/private/CheckableBase/CheckableBase.js +10 -10
- package/dist/components/private/InputBase/HintText.js +5 -5
- package/dist/components/private/InputBase/withEnhancedInput.d.ts +3 -3
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.js +4 -4
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useDeepCompareMemo/index.d.ts +2 -0
- package/dist/hooks/useDeepCompareMemo/index.d.ts.map +1 -0
- package/dist/hooks/useDeepCompareMemo/index.js +13 -0
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.d.ts +1 -2
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.d.ts.map +1 -1
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.d.ts +1 -2
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.d.ts.map +1 -1
- package/dist/reset/globalReset.css.js +30 -13
- package/dist/reset/reset.css.d.ts.map +1 -1
- package/dist/reset/reset.css.js +94 -37
- package/dist/stories/helpers/index.d.ts +1 -1
- package/dist/stories/helpers/index.d.ts.map +1 -1
- package/dist/stories/helpers/sprinkles.css.d.ts +1 -1
- package/dist/stories/helpers/stack.css.d.ts.map +1 -0
- package/dist/styles/layers.css.d.ts +2 -0
- package/dist/styles/layers.css.d.ts.map +1 -1
- package/dist/styles/layers.css.js +2 -0
- package/dist/styles/sprinkles.css.d.ts +405 -71
- package/dist/styles/sprinkles.css.d.ts.map +1 -1
- package/dist/styles/sprinkles.css.js +193 -19
- package/dist/styles/vars.css.d.ts +2 -0
- package/dist/styles/vars.css.d.ts.map +1 -0
- package/dist/styles/vars.css.js +7 -0
- package/dist/test/vitest.setup.d.ts +2 -0
- package/dist/test/vitest.setup.d.ts.map +1 -0
- package/dist/themes/makeTheme.d.ts +1 -0
- package/dist/themes/makeTheme.d.ts.map +1 -1
- package/dist/themes/makeTheme.js +2 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/sprinkles.d.ts +11 -0
- package/dist/utils/sprinkles.d.ts.map +1 -0
- package/dist/utils/sprinkles.js +34 -0
- package/package.json +26 -23
- package/dist/components/Box/useBoxStyles.css.d.ts +0 -48
- package/dist/components/Box/useBoxStyles.css.d.ts.map +0 -1
- package/dist/components/Box/useBoxStyles.css.js +0 -141
- package/dist/components/Box/useBoxStyles.d.ts +0 -69
- package/dist/components/Box/useBoxStyles.d.ts.map +0 -1
- package/dist/components/Box/useBoxStyles.js +0 -80
- package/dist/components/Columns/Column.css.d.ts +0 -3
- package/dist/components/Columns/Column.css.d.ts.map +0 -1
- package/dist/components/Columns/Column.css.js +0 -35
- package/dist/components/Stack/Divider.d.ts +0 -3
- package/dist/components/Stack/Divider.d.ts.map +0 -1
- package/dist/components/Stack/Divider.js +0 -14
- package/dist/components/Stack/Stack.css.d.ts +0 -5
- package/dist/components/Stack/Stack.css.d.ts.map +0 -1
- package/dist/components/Stack/Stack.css.js +0 -18
- package/dist/styles/stack.css.d.ts.map +0 -1
- package/dist/styles/stack.css.js +0 -44
- package/dist/test/vitest-setup.d.ts +0 -2
- package/dist/test/vitest-setup.d.ts.map +0 -1
- /package/dist/{styles → stories/helpers}/stack.css.d.ts +0 -0
- /package/dist/test/{vitest-setup.js → vitest.setup.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingBox.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/LoadingBox/LoadingBox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC
|
|
1
|
+
{"version":3,"file":"LoadingBox.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/LoadingBox/LoadingBox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE/B,wBAYoC;AAEpC,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const container: string;
|
|
2
2
|
export declare const content: string;
|
|
3
|
-
export declare const borders: Record<"center" | "
|
|
3
|
+
export declare const borders: Record<"center" | "flexEnd" | "flexStart", string>;
|
|
4
4
|
//# sourceMappingURL=MinimalModal.css.d.ts.map
|
|
@@ -21,7 +21,12 @@ declare const _default: {
|
|
|
21
21
|
noThemedWrapper?: boolean | undefined;
|
|
22
22
|
ref?: React.Ref<HTMLElement | undefined> | undefined;
|
|
23
23
|
key?: React.Key | null | undefined;
|
|
24
|
-
alignItems?:
|
|
24
|
+
alignItems?: ("stretch" | "center" | "flex-end" | "flex-start" | "baseline" | {
|
|
25
|
+
mobile?: "stretch" | "center" | "flex-end" | "flex-start" | "baseline" | undefined;
|
|
26
|
+
tablet?: "stretch" | "center" | "flex-end" | "flex-start" | "baseline" | undefined;
|
|
27
|
+
desktop?: "stretch" | "center" | "flex-end" | "flex-start" | "baseline" | undefined;
|
|
28
|
+
largeDesktop?: "stretch" | "center" | "flex-end" | "flex-start" | "baseline" | undefined;
|
|
29
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "stretch" | "center" | "flex-end" | "flex-start" | "baseline" | null>;
|
|
25
30
|
}>) => React.JSX.Element)[];
|
|
26
31
|
};
|
|
27
32
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MinimalModal.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/MinimalModal/MinimalModal.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC
|
|
1
|
+
{"version":3,"file":"MinimalModal.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/MinimalModal/MinimalModal.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWjC,wBAcsC;AAEtC,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AA+H3C,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAQzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAQ/B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAQ/B,CAAC"}
|
|
@@ -110,7 +110,7 @@ export const Modal = _ref => {
|
|
|
110
110
|
"aria-hidden": "true",
|
|
111
111
|
position: "fixed",
|
|
112
112
|
pointerEvents: disableBackdropClick || state === 'CLOSING' ? 'none' : undefined,
|
|
113
|
-
opacity: state === 'OPEN' ? undefined : 0,
|
|
113
|
+
opacity: state === 'OPEN' ? undefined : '0',
|
|
114
114
|
backgroundColour: hideBackdrop ? 'transparent' : 'neutral',
|
|
115
115
|
className: [styles.backdrop.root, styles.transition, hideBackdrop && styles.backdrop.invisible],
|
|
116
116
|
onClick: handleBackdropClick
|
|
@@ -118,7 +118,7 @@ export const Modal = _ref => {
|
|
|
118
118
|
role: "presentation",
|
|
119
119
|
position: "fixed",
|
|
120
120
|
overflow: "hidden",
|
|
121
|
-
opacity: state === 'OPEN' ? undefined : 0,
|
|
121
|
+
opacity: state === 'OPEN' ? undefined : '0',
|
|
122
122
|
className: [styles.root, styles.transition, state === 'OPENING' && styles.entry],
|
|
123
123
|
children: children
|
|
124
124
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberBubble.d.ts","sourceRoot":"","sources":["../../../lib/components/NumberBubble/NumberBubble.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAGnE,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"NumberBubble.d.ts","sourceRoot":"","sources":["../../../lib/components/NumberBubble/NumberBubble.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAGnE,OAAO,EAAE,GAAG,EAAa,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAI/B,MAAM,WAAW,KAChB,SAAQ,IAAI,CACX,cAAc,CAAC,OAAO,GAAG,CAAC,EAC1B,cAAc,GAAG,UAAU,GAAG,SAAS,CACvC;IACD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;CACnD;AAaD,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,KAAK,CAoCjD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -9,7 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { useMemo } from 'react';
|
|
11
11
|
import { toPrettyBigNumber } from "../../utils/number.js";
|
|
12
|
-
import { Box,
|
|
12
|
+
import { Box, boxStyles } from "../Box/index.js";
|
|
13
13
|
import { Text } from "../Text/index.js";
|
|
14
14
|
import * as styles from "./NumberBubble.css.js";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -35,14 +35,14 @@ export const NumberBubble = _ref => {
|
|
|
35
35
|
return _jsx(Box, _objectSpread(_objectSpread({
|
|
36
36
|
borderRadius: "full",
|
|
37
37
|
backgroundColour: "gray900",
|
|
38
|
-
display: "
|
|
38
|
+
display: "inline-block",
|
|
39
39
|
position: "relative",
|
|
40
40
|
padding: valuePaddingMap[size]
|
|
41
41
|
}, boxProps), {}, {
|
|
42
42
|
children: _jsx(Text, {
|
|
43
43
|
size: "2",
|
|
44
44
|
strong: true,
|
|
45
|
-
className: clsx(styles.bubbleText,
|
|
45
|
+
className: clsx(styles.bubbleText, boxStyles({
|
|
46
46
|
position: 'absolute'
|
|
47
47
|
})),
|
|
48
48
|
colour: textColour,
|
|
@@ -19,15 +19,15 @@ export declare const OptionList: {
|
|
|
19
19
|
(props: {
|
|
20
20
|
name?: string | undefined;
|
|
21
21
|
value: string;
|
|
22
|
-
autoFocus?: boolean | undefined;
|
|
23
22
|
id?: string | undefined;
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
autoFocus?: boolean | undefined;
|
|
24
25
|
'aria-controls'?: string | undefined;
|
|
25
26
|
'aria-describedby'?: string | undefined;
|
|
26
27
|
'aria-details'?: string | undefined;
|
|
27
28
|
'aria-errormessage'?: string | undefined;
|
|
28
29
|
'aria-label'?: string | undefined;
|
|
29
30
|
'aria-labelledby'?: string | undefined;
|
|
30
|
-
children?: React.ReactNode;
|
|
31
31
|
onFocus?: ((e: React.FocusEvent<Element, Element>) => void) | undefined;
|
|
32
32
|
onBlur?: ((e: React.FocusEvent<Element, Element>) => void) | undefined;
|
|
33
33
|
onChange?: ((isSelected: boolean) => void) | undefined;
|
|
@@ -18,7 +18,7 @@ export const Bubble = _ref => {
|
|
|
18
18
|
let backgroundColour = 'transparent';
|
|
19
19
|
if (selected) backgroundColour = 'green900';else if (disabled) backgroundColour = 'gray200';
|
|
20
20
|
return _jsx(Box, {
|
|
21
|
-
|
|
21
|
+
as: "button",
|
|
22
22
|
backgroundColour: backgroundColour,
|
|
23
23
|
display: "flex",
|
|
24
24
|
overflow: "hidden",
|
|
@@ -20,7 +20,7 @@ const NavButton = _ref => {
|
|
|
20
20
|
onClick = noop
|
|
21
21
|
} = _ref;
|
|
22
22
|
return _jsx(Box, {
|
|
23
|
-
|
|
23
|
+
as: "button",
|
|
24
24
|
"aria-disabled": disabled,
|
|
25
25
|
"aria-label": label,
|
|
26
26
|
display: "flex",
|
|
@@ -50,7 +50,7 @@ const Loading = _ref2 => {
|
|
|
50
50
|
placeholderBubblesNum = 3
|
|
51
51
|
} = _ref2;
|
|
52
52
|
return _jsxs(Inline, {
|
|
53
|
-
|
|
53
|
+
as: "span",
|
|
54
54
|
space: "3",
|
|
55
55
|
children: [_jsx(NavButton, {
|
|
56
56
|
disabled: true,
|
|
@@ -83,7 +83,7 @@ export const Pagination = _ref3 => {
|
|
|
83
83
|
}, [numPages]);
|
|
84
84
|
const allowedActive = useMemo(() => withinBoundaries(activePage, numPages), [activePage, numPages]);
|
|
85
85
|
return !loading && total && pageSize && activePage && numPagesDisplayed ? _jsxs(Inline, {
|
|
86
|
-
|
|
86
|
+
as: "nav",
|
|
87
87
|
space: "3",
|
|
88
88
|
"aria-label": "pagination",
|
|
89
89
|
children: [_jsx(NavButton, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { Box,
|
|
5
|
+
import { Box, boxStyles } from "../Box/index.js";
|
|
6
6
|
import * as styles from "./ProgressSpinner.css.js";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
export const ProgressSpinner = _ref => {
|
|
@@ -14,8 +14,8 @@ export const ProgressSpinner = _ref => {
|
|
|
14
14
|
return _jsx(Box, {
|
|
15
15
|
className: [styles.size[size].circular, styles.colours[colour], className],
|
|
16
16
|
children: _jsx("svg", {
|
|
17
|
-
className: clsx(
|
|
18
|
-
|
|
17
|
+
className: clsx(boxStyles({
|
|
18
|
+
as: 'svg',
|
|
19
19
|
display: 'block',
|
|
20
20
|
overflow: 'hidden'
|
|
21
21
|
}), styles.circular),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentProps
|
|
2
|
-
import { ThemeTokens as Tokens } from '../../themes';
|
|
1
|
+
import React, { type ComponentProps } from 'react';
|
|
2
|
+
import type { ThemeTokens as Tokens } from '../../themes';
|
|
3
3
|
import { Box } from '../Box';
|
|
4
4
|
export interface Props extends Omit<ComponentProps<typeof Box>, 'overflow'> {
|
|
5
5
|
bottomGap?: keyof Tokens['space'];
|
|
@@ -8,5 +8,5 @@ export interface Props extends Omit<ComponentProps<typeof Box>, 'overflow'> {
|
|
|
8
8
|
rounded?: boolean;
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const ScrollPane:
|
|
11
|
+
export declare const ScrollPane: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
//# sourceMappingURL=ScrollPane.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollPane.d.ts","sourceRoot":"","sources":["../../../lib/components/ScrollPane/ScrollPane.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScrollPane.d.ts","sourceRoot":"","sources":["../../../lib/components/ScrollPane/ScrollPane.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAE/D,OAAO,KAAK,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAI7B,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,UAAU,CAAC;IAC1E,SAAS,CAAC,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,UAAU,2FAWtB,CAAC"}
|
|
@@ -6,8 +6,7 @@ const _excluded = ["className", "rounded"];
|
|
|
6
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
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
8
|
import clsx from 'clsx';
|
|
9
|
-
import
|
|
10
|
-
import { forwardRef } from 'react';
|
|
9
|
+
import React, { forwardRef } from 'react';
|
|
11
10
|
import { Box } from "../Box/index.js";
|
|
12
11
|
import * as styles from "./ScrollPane.css.js";
|
|
13
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { ScrollPane } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.
|
|
6
|
+
component: React.ForwardRefExoticComponent<Omit<import("./ScrollPane").Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
type Story = StoryObj<typeof ScrollPane>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollPane.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/ScrollPane/ScrollPane.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;;;;;AAE/B,wBAGoC;AAEpC,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"ScrollPane.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/ScrollPane/ScrollPane.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;;;;;AAE/B,wBAGoC;AAEpC,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,QAAQ,EAAE,KA8BtB,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { type FunctionComponent, type ReactNode } from 'react';
|
|
2
|
+
import { type UseBoxProps } from '../Box';
|
|
3
3
|
import * as styles from './Section.css';
|
|
4
|
-
export interface
|
|
4
|
+
export interface SectionProps extends Pick<UseBoxProps, 'paddingX' | 'ref'> {
|
|
5
5
|
width?: keyof typeof styles.width;
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const Section: FunctionComponent<
|
|
9
|
-
export default Section;
|
|
8
|
+
export declare const Section: FunctionComponent<SectionProps>;
|
|
10
9
|
//# sourceMappingURL=Section.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../lib/components/Section/Section.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../lib/components/Section/Section.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAElD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,KAAK,CAAC;IAC1E,KAAK,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC;IAClC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC,YAAY,CAYnD,CAAC"}
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
+
const _excluded = ["children", "width"];
|
|
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; }
|
|
3
8
|
import clsx from 'clsx';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { useBox } from "../Box/index.js";
|
|
6
11
|
import * as styles from "./Section.css.js";
|
|
7
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
13
|
export const Section = _ref => {
|
|
9
14
|
let {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
children,
|
|
16
|
+
width = 'medium'
|
|
17
|
+
} = _ref,
|
|
18
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
const {
|
|
20
|
+
Component
|
|
21
|
+
} = useBox(_objectSpread({
|
|
22
|
+
width: 'full'
|
|
23
|
+
}, props));
|
|
24
|
+
return _jsx(Component, {
|
|
17
25
|
className: clsx(styles.root, styles.width[width]),
|
|
18
|
-
width: "full",
|
|
19
|
-
paddingX: paddingX,
|
|
20
26
|
children: children
|
|
21
27
|
});
|
|
22
|
-
};
|
|
23
|
-
export default Section;
|
|
28
|
+
};
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { Section } from '.';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FunctionComponent<import("./Section").
|
|
6
|
+
component: React.FunctionComponent<import("./Section").SectionProps>;
|
|
7
7
|
argTypes: {
|
|
8
8
|
paddingX: import("@storybook/core/csf").InputType | undefined;
|
|
9
9
|
};
|
|
@@ -12,7 +12,7 @@ declare const meta: {
|
|
|
12
12
|
totalCount: number;
|
|
13
13
|
activeIndex: number;
|
|
14
14
|
onRequestNext: () => void;
|
|
15
|
-
backgroundColour?:
|
|
15
|
+
backgroundColour?: "white" | "black900" | "black800" | "black700" | "black600" | "black500" | "black400" | "black300" | "black200" | "black100" | "gray900" | "gray800" | "gray700" | "gray600" | "gray500" | "gray400" | "gray300" | "gray200" | "gray100" | "green900" | "green800" | "green700" | "green600" | "green500" | "green400" | "green300" | "green200" | "green100" | "blue900" | "blue800" | "blue700" | "blue600" | "blue500" | "blue400" | "blue300" | "blue200" | "blue100" | "yellow900" | "yellow800" | "yellow700" | "yellow600" | "yellow500" | "yellow400" | "yellow300" | "yellow200" | "yellow100" | "red900" | "red800" | "red700" | "red600" | "red500" | "red400" | "red300" | "red200" | "red100" | "success" | "danger" | "warning" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "transparent" | undefined;
|
|
16
16
|
paused: boolean;
|
|
17
17
|
duration: string;
|
|
18
18
|
}>) => React.JSX.Element)[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const hr: string;
|
|
2
2
|
//# sourceMappingURL=Divider.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Stack/Divider.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Divider.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Stack/Divider.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,EAAE,QAOb,CAAC"}
|
|
@@ -3,9 +3,14 @@
|
|
|
3
3
|
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
4
4
|
__vanilla_filescope__.setFileScope("lib/components/Stack/Divider.css.ts", "@autoguru/overdrive");
|
|
5
5
|
import { style } from '@vanilla-extract/css';
|
|
6
|
+
import { gapVar } from "../../styles/vars.css.js";
|
|
6
7
|
import { overdriveTokens as vars } from "../../themes/theme.css.js";
|
|
7
|
-
export const
|
|
8
|
+
export const hr = style({
|
|
9
|
+
borderStyle: 'none',
|
|
10
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.background.neutral}`,
|
|
8
11
|
height: '1px',
|
|
9
|
-
|
|
10
|
-
}
|
|
12
|
+
margin: 0,
|
|
13
|
+
transform: `translateY(calc(${gapVar}/-2))`,
|
|
14
|
+
width: '100%'
|
|
15
|
+
}, "hr");
|
|
11
16
|
__vanilla_filescope__.endFileScope();
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
3
|
-
import
|
|
4
|
-
export interface
|
|
5
|
-
|
|
6
|
-
className?: string;
|
|
1
|
+
import React, { type ElementType } from 'react';
|
|
2
|
+
import type { SprinklesResponsive } from '../../styles/sprinkles.css';
|
|
3
|
+
import { type BoxBasedProps } from '../Box';
|
|
4
|
+
export interface StackProps<E extends ElementType = 'div'> extends BoxBasedProps<E> {
|
|
5
|
+
alignItems?: SprinklesResponsive['alignItems'];
|
|
7
6
|
dividers?: boolean;
|
|
8
|
-
|
|
7
|
+
space?: SprinklesResponsive['gap'];
|
|
8
|
+
width?: SprinklesResponsive['width'];
|
|
9
9
|
}
|
|
10
|
-
export declare const Stack:
|
|
11
|
-
export default Stack;
|
|
10
|
+
export declare const Stack: <E extends ElementType = "div">({ space, children, alignItems, width, dividers, ...props }: StackProps<E>) => React.JSX.Element;
|
|
12
11
|
//# sourceMappingURL=Stack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../lib/components/Stack/Stack.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../lib/components/Stack/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAG1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,KAAK,aAAa,EAAiC,MAAM,QAAQ,CAAC;AAI3E,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,CACxD,SAAQ,aAAa,CAAC,CAAC,CAAC;IAIxB,UAAU,CAAC,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAI/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAKnB,KAAK,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAInC,KAAK,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;CACrC;AA4BD,eAAO,MAAM,KAAK,GAAI,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,4DAOlD,UAAU,CAAC,CAAC,CAAC,sBA0Cf,CAAC"}
|
|
@@ -1,48 +1,63 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
+
const _excluded = ["space", "children", "alignItems", "width", "dividers"];
|
|
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 React, { Children } from 'react';
|
|
5
9
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
6
|
-
import { Box } from "../Box/index.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
import { Box, useBox } from "../Box/index.js";
|
|
11
|
+
import * as styles from "./Divider.css.js";
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
const Divider = () => _jsx("hr", {
|
|
14
|
+
className: styles.hr
|
|
15
|
+
});
|
|
11
16
|
export const Stack = _ref => {
|
|
12
17
|
let {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
space = '2',
|
|
19
|
+
children,
|
|
20
|
+
alignItems,
|
|
21
|
+
width,
|
|
22
|
+
dividers = false
|
|
23
|
+
} = _ref,
|
|
24
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
const {
|
|
26
|
+
Component,
|
|
27
|
+
componentProps,
|
|
28
|
+
SemanticChild
|
|
29
|
+
} = useBox(_objectSpread({
|
|
30
|
+
display: 'flex',
|
|
31
|
+
flexDirection: 'column',
|
|
32
|
+
gap: space,
|
|
33
|
+
odComponent: 'stack',
|
|
34
|
+
width
|
|
35
|
+
}, props));
|
|
22
36
|
const items = flattenChildren(children);
|
|
23
37
|
if (items.length < 2) {
|
|
24
38
|
return _jsx(_Fragment, {
|
|
25
39
|
children: items
|
|
26
40
|
});
|
|
27
41
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
width: width,
|
|
34
|
-
children: Children.map(items, (child, idx) => _jsxs(Box, {
|
|
35
|
-
as: listItem,
|
|
36
|
-
display: alignItems ? 'flex' : void 0,
|
|
37
|
-
flexDirection: "column",
|
|
42
|
+
const Item = _ref2 => {
|
|
43
|
+
let {
|
|
44
|
+
children
|
|
45
|
+
} = _ref2;
|
|
46
|
+
if (alignItems) return _jsx(Box, {
|
|
38
47
|
alignItems: alignItems,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
as: SemanticChild,
|
|
49
|
+
display: "flex",
|
|
50
|
+
flexDirection: "column",
|
|
51
|
+
children: children
|
|
52
|
+
});
|
|
53
|
+
return _jsx(Box, {
|
|
54
|
+
as: SemanticChild,
|
|
55
|
+
children: children
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
return _jsx(Component, _objectSpread(_objectSpread({}, componentProps), {}, {
|
|
59
|
+
children: Children.map(items, (child, idx) => _jsxs(Item, {
|
|
60
|
+
children: [dividers && idx > 0 && _jsx(Divider, {}), child]
|
|
45
61
|
}))
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
export default Stack;
|
|
62
|
+
}));
|
|
63
|
+
};
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
import React from 'react';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import { Stack } from '.';
|
|
4
|
-
declare const meta:
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FunctionComponent<import("./Stack").Props>;
|
|
7
|
-
argTypes: {
|
|
8
|
-
space: {
|
|
9
|
-
options: string[];
|
|
10
|
-
defaultValue: number;
|
|
11
|
-
control: {
|
|
12
|
-
type: "select";
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
width: import("@storybook/core/csf").InputType | undefined;
|
|
16
|
-
alignItems: import("@storybook/core/csf").InputType | undefined;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
3
|
+
declare const meta: Meta<typeof Stack>;
|
|
19
4
|
export default meta;
|
|
20
5
|
type Story = StoryObj<typeof Stack>;
|
|
21
6
|
export declare const Standard: Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/Stack/Stack.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/Stack/Stack.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMlD,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAe1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAwB5B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,eAAO,MAAM,QAAQ,EAAE,KAAU,CAAC;AAElC,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAGF,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAC"}
|
|
@@ -95,13 +95,13 @@ export const StandardModal = _ref => {
|
|
|
95
95
|
paddingY: "3",
|
|
96
96
|
paddingLeft: "5",
|
|
97
97
|
paddingRight: "2",
|
|
98
|
-
|
|
98
|
+
borderBottomWidth: "1",
|
|
99
99
|
borderColour: "light",
|
|
100
100
|
children: [_jsx(Box, {
|
|
101
101
|
flexGrow: 1,
|
|
102
102
|
id: titleId,
|
|
103
103
|
children: _jsx(Heading, {
|
|
104
|
-
|
|
104
|
+
as: "h4",
|
|
105
105
|
children: title
|
|
106
106
|
})
|
|
107
107
|
}), _jsx(Button, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StarRating.d.ts","sourceRoot":"","sources":["../../../lib/components/StarRating/StarRating.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA2B,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAYtE,oBAAY,eAAe;IAC1B,MAAM,WAAW;IACjB,KAAK,UAAU;CACf;AAqBD,MAAM,WAAW,KAAK;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,UAAU,EAAE,oBAAoB,CAAC,KAAK,CAgClD,CAAC;
|
|
1
|
+
{"version":3,"file":"StarRating.d.ts","sourceRoot":"","sources":["../../../lib/components/StarRating/StarRating.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA2B,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAYtE,oBAAY,eAAe;IAC1B,MAAM,WAAW;IACjB,KAAK,UAAU;CACf;AAqBD,MAAM,WAAW,KAAK;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,UAAU,EAAE,oBAAoB,CAAC,KAAK,CAgClD,CAAC;AAyDF,eAAe,UAAU,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { StarHalfIcon, StarIcon } from '@autoguru/icons';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { memo } from 'react';
|
|
7
|
-
import { Box,
|
|
7
|
+
import { Box, boxStyles } from "../Box/index.js";
|
|
8
8
|
import { Icon } from "../Icon/index.js";
|
|
9
9
|
import { Inline } from "../Inline/index.js";
|
|
10
10
|
import { Text } from "../Text/index.js";
|
|
@@ -54,6 +54,7 @@ export const StarRating = memo(_ref => {
|
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
|
+
StarRating.displayName = 'StarRating';
|
|
57
58
|
const getStarIconType = (index, rating) => {
|
|
58
59
|
if (index + 1 <= Math.floor(rating)) {
|
|
59
60
|
return EStarType.Full;
|
|
@@ -81,7 +82,7 @@ const Star = _ref2 => {
|
|
|
81
82
|
return _jsx(Icon, {
|
|
82
83
|
icon: star,
|
|
83
84
|
size: starSizeMap.get(size),
|
|
84
|
-
className: clsx(
|
|
85
|
+
className: clsx(boxStyles({
|
|
85
86
|
position: 'relative'
|
|
86
87
|
}), styles.star.default, {
|
|
87
88
|
[styles.star.empty]: starType === EStarType.Empty
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const disabled: string;
|
|
2
2
|
export declare const root: string;
|
|
3
|
-
export declare const width: Record<"full" | "default", string>;
|
|
4
3
|
export declare const handle: Record<"default" | "disabled", string>;
|
|
5
|
-
export declare const label: string;
|
|
4
|
+
export declare const label: string[];
|
|
6
5
|
//# sourceMappingURL=Stepper.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Stepper/Stepper.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Stepper.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Stepper/Stepper.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ,QAAmC,CAAC;AAEzD,eAAO,MAAM,IAAI,QAMf,CAAC;AAEH,eAAO,MAAM,MAAM,wCAiBjB,CAAC;AAEH,eAAO,MAAM,KAAK,UAQjB,CAAC"}
|