@autoguru/overdrive 4.34.0 → 4.35.1
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/Alert/Alert.js +1 -2
- package/dist/components/Anchor/Anchor.js +3 -4
- package/dist/components/AutoSuggest/AutoSuggest.css.js +3 -3
- package/dist/components/AutoSuggest/AutoSuggest.d.ts.map +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.js +8 -9
- package/dist/components/Box/Box.js +2 -2
- package/dist/components/Box/argTypes.d.ts.map +1 -1
- package/dist/components/Box/argTypes.js +2 -2
- package/dist/components/Box/useBoxStyles.css.d.ts +1 -1
- package/dist/components/Box/useBoxStyles.css.d.ts.map +1 -1
- package/dist/components/Box/useBoxStyles.css.js +5 -11
- package/dist/components/BulletList/Bullet.css.js +3 -3
- package/dist/components/BulletList/Bullet.d.ts.map +1 -1
- package/dist/components/BulletList/Bullet.js +12 -4
- package/dist/components/BulletText/BulletText.js +1 -2
- package/dist/components/Button/Button.css.js +21 -21
- package/dist/components/Button/Button.js +3 -5
- package/dist/components/CheckBox/CheckBox.css.js +3 -3
- package/dist/components/CheckBox/CheckBox.js +1 -2
- package/dist/components/ColourInput/ColourInput.css.js +2 -2
- package/dist/components/ColourInput/ColourInput.js +3 -4
- package/dist/components/Columns/Column.css.js +1 -1
- package/dist/components/Columns/Column.js +2 -2
- package/dist/components/Columns/Columns.js +2 -2
- package/dist/components/DateInput/DateInput.js +2 -2
- package/dist/components/DatePicker/DatePicker.js +3 -4
- package/dist/components/DividerLine/DividerLine.d.ts +1 -1
- package/dist/components/DividerLine/DividerLine.d.ts.map +1 -1
- package/dist/components/DividerLine/DividerLine.js +1 -1
- package/dist/components/DropDown/DropDown.js +3 -5
- package/dist/components/DropDown/DropDownOption.css.js +2 -2
- package/dist/components/DropDown/DropDownOption.js +3 -4
- package/dist/components/EditableText/EditableText.css.js +1 -1
- package/dist/components/EditableText/EditableText.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.js +5 -6
- package/dist/components/FillHeightBox/FillHeightBox.js +2 -2
- package/dist/components/Flyout/Flyout.js +2 -2
- package/dist/components/Heading/Heading.d.ts +2 -0
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/Heading/Heading.js +3 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.css.js +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.d.ts +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.d.ts.map +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.js +5 -7
- package/dist/components/HorizontalAutoScroller/useHorizontalAutoScroller.d.ts.map +1 -1
- package/dist/components/HorizontalAutoScroller/useHorizontalAutoScroller.js +5 -9
- package/dist/components/Image/Image.js +2 -2
- package/dist/components/Image/ImageServerProvider.js +9 -8
- package/dist/components/Image/ResponsiveImage.js +2 -2
- package/dist/components/Image/SimpleImage.js +2 -2
- package/dist/components/Inline/Inline.js +1 -3
- package/dist/components/LoadingBox/LoadingBox.js +3 -3
- package/dist/components/Meta/Meta.js +2 -3
- package/dist/components/MinimalModal/MinimalModal.js +2 -2
- package/dist/components/Modal/Modal.css.js +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +16 -9
- package/dist/components/NumberBubble/NumberBubble.js +2 -2
- package/dist/components/NumberInput/NumberInput.js +3 -3
- package/dist/components/OrderedList/OrderedList.css.js +1 -1
- package/dist/components/OutsideClick/OutsideClick.js +1 -1
- package/dist/components/Pagination/Pagination.css.js +6 -6
- package/dist/components/Pagination/Pagination.js +1 -2
- package/dist/components/Positioner/Positioner.d.ts.map +1 -1
- package/dist/components/Positioner/Positioner.js +17 -7
- package/dist/components/Positioner/alignment.js +3 -3
- package/dist/components/ProgressBar/ProgressBar.css.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/components/ProgressBarGroup/ProgressBarGroup.css.js +1 -1
- package/dist/components/ProgressBarGroup/ProgressBarGroup.js +2 -3
- package/dist/components/Radio/Radio.css.js +4 -4
- package/dist/components/Radio/Radio.js +1 -2
- package/dist/components/ScrollPane/ScrollPane.css.js +3 -3
- package/dist/components/ScrollPane/ScrollPane.js +2 -2
- package/dist/components/SelectInput/SelectInput.css.js +3 -3
- package/dist/components/SelectInput/SelectInput.d.ts +1 -1
- package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInput.js +5 -5
- package/dist/components/SimplePagination/SimplePagination.js +4 -5
- package/dist/components/SliderProgress/ProgressStep.js +1 -2
- package/dist/components/SliderProgress/SliderProgress.css.js +1 -1
- package/dist/components/SliderProgress/SliderProgress.js +1 -1
- package/dist/components/Stack/Divider.css.js +1 -1
- package/dist/components/Stack/Stack.js +1 -3
- package/dist/components/StandardModal/StandardModal.css.js +8 -8
- package/dist/components/StandardModal/StandardModal.js +4 -5
- package/dist/components/StarRating/StarRating.js +7 -8
- package/dist/components/Stepper/Stepper.css.js +4 -4
- package/dist/components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.js +19 -10
- package/dist/components/StickyBox/StickyBox.css.js +4 -4
- package/dist/components/StickyBox/StickyBox.js +3 -3
- package/dist/components/Switch/Switch.css.js +18 -18
- package/dist/components/Switch/Switch.js +4 -5
- package/dist/components/Table/TableCell.css.js +1 -1
- package/dist/components/Table/TableHeadCell.css.js +5 -5
- package/dist/components/Table/TableHeadCell.js +1 -2
- package/dist/components/Tabs/Tab.css.js +4 -4
- package/dist/components/Tabs/Tab.js +2 -3
- package/dist/components/Tabs/TabList.css.js +1 -1
- package/dist/components/Tabs/TabList.js +1 -2
- package/dist/components/Tabs/TabPane.js +1 -1
- package/dist/components/Text/Text.d.ts +2 -0
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +4 -0
- 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 +2 -2
- package/dist/components/TextAreaInput/TextAreaInput.js +2 -2
- package/dist/components/TextBubble/TextBubble.d.ts.map +1 -1
- package/dist/components/TextBubble/TextBubble.js +14 -6
- package/dist/components/TextContainer/TextContainer.js +1 -2
- package/dist/components/TextInput/TextInput.js +2 -2
- package/dist/components/TextLink/TextLink.css.js +4 -4
- package/dist/components/TextLink/TextLink.js +3 -4
- package/dist/components/ThemeOverrideProvider/ThemeOverrideDebugger.js +1 -2
- package/dist/components/ThemeOverrideProvider/ThemeOverrideProvider.js +2 -2
- package/dist/components/ThemeOverrideProvider/useBuildThemeOverrides.d.ts.map +1 -1
- package/dist/components/ThemeOverrideProvider/useBuildThemeOverrides.js +5 -3
- package/dist/components/Toaster/Toast.css.js +1 -1
- package/dist/components/Toaster/Toast.d.ts.map +1 -1
- package/dist/components/Toaster/Toast.js +24 -20
- package/dist/components/Tooltip/Tooltip.css.js +2 -2
- package/dist/components/Tooltip/Tooltip.js +1 -3
- package/dist/components/private/CheckableBase/CheckableBase.css.js +8 -8
- package/dist/components/private/CheckableBase/CheckableBase.js +1 -2
- package/dist/components/private/InputBase/HintText.css.js +1 -1
- package/dist/components/private/InputBase/NotchedBase.css.js +20 -20
- package/dist/components/private/InputBase/NotchedBase.js +1 -2
- package/dist/components/private/InputBase/withEnhancedInput.css.js +16 -16
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.js +3 -4
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.d.ts +1 -1
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.d.ts.map +1 -1
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.js +5 -5
- package/dist/hooks/useMedia/useMedia.js +4 -4
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.css.js +2 -2
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.css.js +1 -1
- package/dist/hooks/useNullCheck/useNullCheck.js +1 -1
- package/dist/hooks/useWindowHeightFill/useWindowHeightFill.d.ts.map +1 -1
- package/dist/hooks/useWindowHeightFill/useWindowHeightFill.js +4 -3
- package/dist/reset/globalFonts.css.js +3 -3
- package/dist/reset/reset.css.js +2 -2
- package/dist/stories/helpers/index.d.ts +14 -0
- package/dist/stories/helpers/index.d.ts.map +1 -0
- package/dist/stories/helpers/styles.css.d.ts +28 -0
- package/dist/stories/helpers/styles.css.d.ts.map +1 -0
- package/dist/styles/sprinkles.css.d.ts +42 -0
- package/dist/styles/sprinkles.css.d.ts.map +1 -0
- package/dist/styles/sprinkles.css.js +81 -0
- package/dist/styles/stack.css.d.ts +19 -0
- package/dist/styles/stack.css.d.ts.map +1 -0
- package/dist/styles/stack.css.js +38 -0
- package/dist/themes/base/tokens.d.ts +2 -1
- package/dist/themes/base/tokens.d.ts.map +1 -1
- package/dist/themes/base/tokens.js +4 -4
- package/dist/themes/flat_red/tokens.js +2 -2
- package/dist/themes/helpers.d.ts.map +1 -1
- package/dist/themes/helpers.js +2 -2
- package/dist/themes/makeTheme.js +3 -3
- package/dist/themes/neutral/tokens.js +3 -3
- package/dist/themes/theme.css.js +2 -2
- package/dist/themes/tokens.d.ts +6 -6
- package/dist/themes/tokens.d.ts.map +1 -1
- package/dist/utils/css.js +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +6 -5
- package/dist/utils/mapTokenToProperty.js +2 -2
- package/dist/utils/number.js +1 -1
- package/dist/utils/responsiveProps.css.d.ts.map +1 -1
- package/dist/utils/responsiveProps.css.js +2 -2
- package/dist/utils/responsiveStyle.js +3 -3
- package/package.json +121 -27
- package/dist/components/Actions/stories.js +0 -53
- package/dist/components/Alert/stories.js +0 -106
- package/dist/components/Anchor/stories.js +0 -65
- package/dist/components/AutoSuggest/stories.js +0 -213
- package/dist/components/Badge/stories.js +0 -64
- package/dist/components/Box/stories.js +0 -43
- package/dist/components/BulletList/stories.js +0 -72
- package/dist/components/BulletText/stories.js +0 -88
- package/dist/components/Button/stories.js +0 -291
- package/dist/components/CheckBox/stories.js +0 -206
- package/dist/components/ColourInput/stories.js +0 -173
- package/dist/components/Columns/stories.js +0 -209
- package/dist/components/DateInput/stories.js +0 -181
- package/dist/components/DatePicker/stories.js +0 -89
- package/dist/components/DividerLine/stories.js +0 -117
- package/dist/components/DropDown/stories.js +0 -117
- package/dist/components/EditableText/stories.js +0 -84
- package/dist/components/FillHeightBox/stories.js +0 -47
- package/dist/components/Flyout/stories.js +0 -88
- package/dist/components/Heading/stories.js +0 -127
- package/dist/components/HorizontalAutoScroller/stories.js +0 -88
- package/dist/components/Icon/stories.js +0 -62
- package/dist/components/Image/stories.js +0 -183
- package/dist/components/Inline/stories.js +0 -122
- package/dist/components/IntentStripe/stories.js +0 -76
- package/dist/components/LinearProgressIndicator/stories.js +0 -26
- package/dist/components/LoadingBox/stories.js +0 -41
- package/dist/components/Meta/stories.js +0 -45
- package/dist/components/MinimalModal/stories.js +0 -83
- package/dist/components/Modal/stories.js +0 -52
- package/dist/components/NumberBubble/stories.js +0 -23
- package/dist/components/NumberInput/stories.js +0 -218
- package/dist/components/OrderedList/stories.js +0 -58
- package/dist/components/OutsideClick/stories.js +0 -39
- package/dist/components/Pagination/stories.js +0 -112
- package/dist/components/Portal/stories.js +0 -72
- package/dist/components/Positioner/stories.js +0 -124
- package/dist/components/ProgressBar/stories.js +0 -44
- package/dist/components/ProgressBarGroup/stories.js +0 -21
- package/dist/components/ProgressSpinner/stories.js +0 -36
- package/dist/components/Radio/stories.js +0 -215
- package/dist/components/ScrollPane/stories.js +0 -55
- package/dist/components/Section/stories.js +0 -43
- package/dist/components/SelectInput/stories.js +0 -188
- package/dist/components/SimplePagination/stories.js +0 -42
- package/dist/components/SliderProgress/stories.js +0 -44
- package/dist/components/Stack/stories.js +0 -75
- package/dist/components/StandardModal/stories.js +0 -62
- package/dist/components/StarRating/stories.js +0 -50
- package/dist/components/Stepper/stories.js +0 -61
- package/dist/components/StickyBox/stories.js +0 -70
- package/dist/components/Switch/stories.js +0 -42
- package/dist/components/Table/stories.js +0 -302
- package/dist/components/Tabs/stories.js +0 -253
- package/dist/components/Text/stories.js +0 -154
- package/dist/components/TextAreaInput/stories.js +0 -129
- package/dist/components/TextBubble/stories.js +0 -30
- package/dist/components/TextContainer/stories.js +0 -128
- package/dist/components/TextInput/stories.js +0 -260
- package/dist/components/TextLink/stories.js +0 -111
- package/dist/components/Toaster/stories.js +0 -59
- package/dist/components/Tooltip/stories.js +0 -90
- package/dist/components/VisuallyHidden/stories.js +0 -36
- package/dist/hooks/useAttachedBoxes/stories.js +0 -94
- package/dist/hooks/useMedia/stories.js +0 -46
- package/dist/hooks/useResponsiveValue/stories.js +0 -38
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
const _excluded = ["value", "textColour", "rawNumbers"];
|
|
6
|
-
function ownKeys(
|
|
7
|
-
function _objectSpread(
|
|
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
8
|
import clsx from 'clsx';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { useMemo } from 'react';
|
|
@@ -4,8 +4,8 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
const _excluded = ["ref"],
|
|
6
6
|
_excluded2 = ["field", "eventHandlers", "validation", "isLoading", "suffixed", "prefixed", "preventMouseWheel", "size", "onChange", "onFocus", "onBlur", "max"];
|
|
7
|
-
function ownKeys(
|
|
8
|
-
function _objectSpread(
|
|
7
|
+
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; }
|
|
8
|
+
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; }
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { Box } from "../Box/index.js";
|
|
11
11
|
import { withEnhancedInput } from "../private/InputBase/index.js";
|
|
@@ -13,7 +13,7 @@ import { useNumberInputBehaviours } from "./useNumberInputBehaviours.js";
|
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
const isEdge = typeof navigator !== 'undefined' && /edge/i.test(navigator.userAgent);
|
|
15
15
|
const type = isEdge ? 'text' : 'number';
|
|
16
|
-
const MAX_NUMBER_INPUT_VALUE =
|
|
16
|
+
const MAX_NUMBER_INPUT_VALUE = 2_147_483_647;
|
|
17
17
|
export const NumberInput = withEnhancedInput(_ref => {
|
|
18
18
|
let {
|
|
19
19
|
field: {
|
|
@@ -9,7 +9,7 @@ export const root = styleVariants({
|
|
|
9
9
|
listStyle: 'outside lower-roman'
|
|
10
10
|
},
|
|
11
11
|
firstOccurrence: {
|
|
12
|
-
paddingLeft:
|
|
12
|
+
paddingLeft: `calc(${vars.space['6']} * 2)`
|
|
13
13
|
}
|
|
14
14
|
}, "root");
|
|
15
15
|
__vanilla_filescope__.endFileScope();
|
|
@@ -9,7 +9,7 @@ export const useOutsideClick = (refs, onClickAway) => {
|
|
|
9
9
|
callbackRef.current = onClickAway;
|
|
10
10
|
}, [onClickAway]);
|
|
11
11
|
useEffect(() => {
|
|
12
|
-
if (typeof document === 'undefined' || typeof onClickAway !== 'function') return
|
|
12
|
+
if (typeof document === 'undefined' || typeof onClickAway !== 'function') return;
|
|
13
13
|
return bindEvent(document, 'mouseup', event => {
|
|
14
14
|
const shouldClose = refs.map(item => item.current).every(element => !(element !== null && element !== void 0 && element.contains(event.target)));
|
|
15
15
|
if (shouldClose) {
|
|
@@ -12,19 +12,19 @@ export const selectedItem = style({
|
|
|
12
12
|
transition: 'none'
|
|
13
13
|
}, "selectedItem");
|
|
14
14
|
export const activeItem = style({
|
|
15
|
-
lineHeight:
|
|
15
|
+
lineHeight: `calc(${paginationBubbleSize} - 3px)`,
|
|
16
16
|
width: paginationBubbleSize,
|
|
17
17
|
height: paginationBubbleSize,
|
|
18
18
|
cursor: 'pointer',
|
|
19
|
-
transition:
|
|
19
|
+
transition: `background-color 0.2s ${vars.animation.easing.decelerate} 0s, box-shadow 0.2s ${vars.animation.easing.decelerate} 0s`,
|
|
20
20
|
selectors: {
|
|
21
|
-
[
|
|
21
|
+
[`&:not(${selectedItem}):hover`]: {
|
|
22
22
|
backgroundColor: vars.colours.background.body,
|
|
23
|
-
boxShadow:
|
|
23
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.primary.background.strong}, ${vars.elevation['1']}`
|
|
24
24
|
},
|
|
25
|
-
[
|
|
25
|
+
[`&:not(${selectedItem}):active`]: {
|
|
26
26
|
backgroundColor: vars.colours.background.body,
|
|
27
|
-
boxShadow:
|
|
27
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.primary.background.strong}, ${vars.elevation['1']}`
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}, "activeItem");
|
|
@@ -11,8 +11,7 @@ import { Inline } from "../Inline/index.js";
|
|
|
11
11
|
import { useTextStyles } from "../Text/index.js";
|
|
12
12
|
import { Bubble } from "./Bubble.js";
|
|
13
13
|
import * as styles from "./Pagination.css.js";
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
const NavButton = _ref => {
|
|
17
16
|
let {
|
|
18
17
|
icon,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Positioner.d.ts","sourceRoot":"","sources":["../../../lib/components/Positioner/Positioner.tsx"],"names":[],"mappings":"AAIA,OAAO,EACN,wBAAwB,EACxB,iBAAiB,EACjB,SAAS,EACT,SAAS,EAIT,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAI7B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAqBzC,MAAM,WAAW,KAChB,SAAQ,OAAO,CACd,wBAAwB,CAAC,OAAO,GAAG,CAAC,EACpC,aAAa,GAAG,WAAW,CAC3B;IACD,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,KAAK,CA8F/C,CAAC;
|
|
1
|
+
{"version":3,"file":"Positioner.d.ts","sourceRoot":"","sources":["../../../lib/components/Positioner/Positioner.tsx"],"names":[],"mappings":"AAIA,OAAO,EACN,wBAAwB,EACxB,iBAAiB,EACjB,SAAS,EACT,SAAS,EAIT,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAI7B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAqBzC,MAAM,WAAW,KAChB,SAAQ,OAAO,CACd,wBAAwB,CAAC,OAAO,GAAG,CAAC,EACpC,aAAa,GAAG,WAAW,CAC3B;IACD,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,KAAK,CA8F/C,CAAC;AAsBF,eAAe,UAAU,CAAC"}
|
|
@@ -4,8 +4,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
5
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
6
6
|
const _excluded = ["alignment", "isOpen", "triggerRef", "triggerOffset", "children"];
|
|
7
|
-
function ownKeys(
|
|
8
|
-
function _objectSpread(
|
|
7
|
+
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; }
|
|
8
|
+
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; }
|
|
9
9
|
import { flip, offset, popperGenerator, preventOverflow } from '@popperjs/core';
|
|
10
10
|
import { defaultModifiers } from '@popperjs/core/lib/popper';
|
|
11
11
|
import * as React from 'react';
|
|
@@ -92,15 +92,25 @@ export const Positioner = _ref => {
|
|
|
92
92
|
const convertPlacement = alignment => {
|
|
93
93
|
switch (alignment) {
|
|
94
94
|
case EAlignment.BOTTOM_LEFT:
|
|
95
|
-
|
|
95
|
+
{
|
|
96
|
+
return 'bottom-start';
|
|
97
|
+
}
|
|
96
98
|
case EAlignment.BOTTOM_RIGHT:
|
|
97
|
-
|
|
99
|
+
{
|
|
100
|
+
return 'bottom-end';
|
|
101
|
+
}
|
|
98
102
|
case EAlignment.TOP_LEFT:
|
|
99
|
-
|
|
103
|
+
{
|
|
104
|
+
return 'top-start';
|
|
105
|
+
}
|
|
100
106
|
case EAlignment.TOP_RIGHT:
|
|
101
|
-
|
|
107
|
+
{
|
|
108
|
+
return 'top-end';
|
|
109
|
+
}
|
|
102
110
|
default:
|
|
103
|
-
|
|
111
|
+
{
|
|
112
|
+
return alignment;
|
|
113
|
+
}
|
|
104
114
|
}
|
|
105
115
|
};
|
|
106
116
|
export default Positioner;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
export let EAlignment
|
|
4
|
-
(function (EAlignment) {
|
|
3
|
+
export let EAlignment = function (EAlignment) {
|
|
5
4
|
EAlignment["TOP"] = "top";
|
|
6
5
|
EAlignment["TOP_LEFT"] = "top_left";
|
|
7
6
|
EAlignment["TOP_RIGHT"] = "top_right";
|
|
@@ -10,4 +9,5 @@ export let EAlignment;
|
|
|
10
9
|
EAlignment["BOTTOM_RIGHT"] = "bottom_right";
|
|
11
10
|
EAlignment["LEFT"] = "left";
|
|
12
11
|
EAlignment["RIGHT"] = "right";
|
|
13
|
-
|
|
12
|
+
return EAlignment;
|
|
13
|
+
}({});
|
|
@@ -8,7 +8,7 @@ export const container = style({
|
|
|
8
8
|
height: vars.space['2']
|
|
9
9
|
}, "container");
|
|
10
10
|
export const bar = style({
|
|
11
|
-
transition:
|
|
11
|
+
transition: `width 0.2s ${vars.animation.easing.standard} 0s`,
|
|
12
12
|
willChange: 'width'
|
|
13
13
|
}, "bar");
|
|
14
14
|
__vanilla_filescope__.endFileScope();
|
|
@@ -6,6 +6,6 @@ import { style } from '@vanilla-extract/css';
|
|
|
6
6
|
import { themeContractVars as vars } from "../../themes/theme.css.js";
|
|
7
7
|
export const root = style({
|
|
8
8
|
display: 'grid',
|
|
9
|
-
gridGap:
|
|
9
|
+
gridGap: `${vars.space['1']} ${vars.space['5']}`
|
|
10
10
|
}, "root");
|
|
11
11
|
__vanilla_filescope__.endFileScope();
|
|
@@ -6,8 +6,7 @@ import { Box } from "../Box/index.js";
|
|
|
6
6
|
import { ProgressBar } from "../ProgressBar/index.js";
|
|
7
7
|
import { Text } from "../Text/index.js";
|
|
8
8
|
import * as styles from "./ProgressBarGroup.css.js";
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
export const ProgressBarGroup = _ref => {
|
|
12
11
|
let {
|
|
13
12
|
prefixLabels,
|
|
@@ -22,7 +21,7 @@ export const ProgressBarGroup = _ref => {
|
|
|
22
21
|
className: styles.root,
|
|
23
22
|
alignItems: "center",
|
|
24
23
|
style: {
|
|
25
|
-
gridTemplateColumns:
|
|
24
|
+
gridTemplateColumns: `${hasPrefixLabels ? 'auto ' : ''}1fr${hasSuffixLabels ? ' auto' : ''}`
|
|
26
25
|
},
|
|
27
26
|
children: values.map((value, idx) => _jsxs(Fragment, {
|
|
28
27
|
children: [_jsx(Text, {
|
|
@@ -6,7 +6,7 @@ import { styleVariants } from '@vanilla-extract/css';
|
|
|
6
6
|
import { themeContractVars as vars } from "../../themes/theme.css.js";
|
|
7
7
|
export const circle = styleVariants({
|
|
8
8
|
default: {
|
|
9
|
-
transition:
|
|
9
|
+
transition: `border-color 0.2s ${vars.animation.easing.decelerate} 0s`
|
|
10
10
|
},
|
|
11
11
|
outer: {
|
|
12
12
|
top: vars.space['3'],
|
|
@@ -15,13 +15,13 @@ export const circle = styleVariants({
|
|
|
15
15
|
height: vars.space['4']
|
|
16
16
|
},
|
|
17
17
|
inner: {
|
|
18
|
-
top:
|
|
19
|
-
left:
|
|
18
|
+
top: `calc(${vars.space['3']} + (${vars.space['4']} - ${vars.space['2']}) * 0.5)`,
|
|
19
|
+
left: `calc(${vars.space['3']} + (${vars.space['4']} - ${vars.space['2']}) * 0.5)`,
|
|
20
20
|
width: vars.space['2'],
|
|
21
21
|
height: vars.space['2']
|
|
22
22
|
},
|
|
23
23
|
selectedInner: {
|
|
24
|
-
borderWidth:
|
|
24
|
+
borderWidth: `calc(${vars.space['2']} / 2)`
|
|
25
25
|
},
|
|
26
26
|
selected: {
|
|
27
27
|
borderColor: vars.typography.colour.primary
|
|
@@ -8,8 +8,7 @@ import { CheckableBase } from "../private/CheckableBase/index.js";
|
|
|
8
8
|
import { useCheckableStyles } from "../private/CheckableBase/useCheckableStyles.js";
|
|
9
9
|
import * as styles from "./Radio.css.js";
|
|
10
10
|
import { useRadioContext } from "./RadioGroup.js";
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
12
|
export const Radio = forwardRef((_ref, ref) => {
|
|
14
13
|
let {
|
|
15
14
|
value,
|
|
@@ -19,7 +19,7 @@ export const root = style({
|
|
|
19
19
|
'::-webkit-scrollbar-track': {
|
|
20
20
|
position: 'absolute',
|
|
21
21
|
backgroundColor: vars.colours.gamut.gray100,
|
|
22
|
-
border:
|
|
22
|
+
border: `1px solid ${vars.colours.gamut.gray200}`
|
|
23
23
|
},
|
|
24
24
|
'::-webkit-scrollbar-button': {
|
|
25
25
|
display: 'none'
|
|
@@ -30,7 +30,7 @@ export const root = style({
|
|
|
30
30
|
},
|
|
31
31
|
['&::-webkit-scrollbar-thumb:hover']: {
|
|
32
32
|
backgroundColor: vars.colours.gamut.gray400,
|
|
33
|
-
border:
|
|
33
|
+
border: `1px solid ${vars.colours.gamut.gray400}`
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}, "root");
|
|
@@ -39,7 +39,7 @@ export const rounded = style({
|
|
|
39
39
|
borderRadius: vars.border.radius['1']
|
|
40
40
|
},
|
|
41
41
|
'::-webkit-scrollbar-track': {
|
|
42
|
-
borderRadius:
|
|
42
|
+
borderRadius: `0 ${vars.border.radius['1']} ${vars.border.radius['1']} 0`
|
|
43
43
|
}
|
|
44
44
|
}, "rounded");
|
|
45
45
|
__vanilla_filescope__.endFileScope();
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
const _excluded = ["className", "rounded"];
|
|
6
|
-
function ownKeys(
|
|
7
|
-
function _objectSpread(
|
|
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
8
|
import clsx from 'clsx';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { forwardRef } from 'react';
|
|
@@ -5,12 +5,12 @@ __vanilla_filescope__.setFileScope("lib/components/SelectInput/SelectInput.css.t
|
|
|
5
5
|
import { style } from '@vanilla-extract/css';
|
|
6
6
|
import { themeContractVars as vars } from "../../themes/theme.css.js";
|
|
7
7
|
export const input = style({
|
|
8
|
-
marginTop:
|
|
9
|
-
marginBottom:
|
|
8
|
+
marginTop: `calc(-1 * ${vars.border.width['1']})`,
|
|
9
|
+
marginBottom: `calc(-1 * ${vars.border.width['1']})`
|
|
10
10
|
}, "input");
|
|
11
11
|
export const paddedInput = style({
|
|
12
12
|
selectors: {
|
|
13
|
-
[
|
|
13
|
+
[`${input}&`]: {
|
|
14
14
|
paddingRight: vars.space['8']
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export declare const SelectInput: React.ForwardRefExoticComponent<{
|
|
3
|
-
children?: React.ReactNode
|
|
3
|
+
children?: React.ReactNode;
|
|
4
4
|
} & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLSelectElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<HTMLSelectElement>>;
|
|
5
5
|
export default SelectInput;
|
|
6
6
|
//# sourceMappingURL=SelectInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../lib/components/SelectInput/SelectInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../lib/components/SelectInput/SelectInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,eAAO,MAAM,WAAW;eAEX,MAAM,SAAS;gRAoD3B,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -2,17 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
const _excluded = ["field", "eventHandlers", "suffixed", "prefixed", "validation", "isLoading", "size", "fieldIcon"];
|
|
6
|
-
function ownKeys(
|
|
7
|
-
function _objectSpread(
|
|
5
|
+
const _excluded = ["field", "eventHandlers", "suffixed", "prefixed", "validation", "isFocused", "isLoading", "size", "fieldIcon"];
|
|
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
8
|
import { ChevronDownIcon } from '@autoguru/icons';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { Box } from "../Box/index.js";
|
|
11
11
|
import { Icon } from "../Icon/index.js";
|
|
12
12
|
import { withEnhancedInput } from "../private/InputBase/index.js";
|
|
13
13
|
import * as styles from "./SelectInput.css.js";
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
export const SelectInput = withEnhancedInput(_ref => {
|
|
17
16
|
let {
|
|
18
17
|
field,
|
|
@@ -20,6 +19,7 @@ export const SelectInput = withEnhancedInput(_ref => {
|
|
|
20
19
|
suffixed,
|
|
21
20
|
prefixed,
|
|
22
21
|
validation,
|
|
22
|
+
isFocused,
|
|
23
23
|
isLoading,
|
|
24
24
|
size,
|
|
25
25
|
fieldIcon = ChevronDownIcon
|
|
@@ -6,13 +6,12 @@ import { noop } from "../../utils/index.js";
|
|
|
6
6
|
import { Button } from "../Button/index.js";
|
|
7
7
|
import { Icon } from "../Icon/index.js";
|
|
8
8
|
import { Inline } from "../Inline/index.js";
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
|
|
11
|
-
export let EChangeDirection;
|
|
12
|
-
(function (EChangeDirection) {
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export let EChangeDirection = function (EChangeDirection) {
|
|
13
11
|
EChangeDirection["Previous"] = "previous";
|
|
14
12
|
EChangeDirection["Next"] = "next";
|
|
15
|
-
|
|
13
|
+
return EChangeDirection;
|
|
14
|
+
}({});
|
|
16
15
|
export const SimplePagination = _ref => {
|
|
17
16
|
let {
|
|
18
17
|
hasNext = false,
|
|
@@ -5,8 +5,7 @@ import { memo, useCallback } from 'react';
|
|
|
5
5
|
import { useAnimationEvents } from "../../hooks/useAnimationEvents/index.js";
|
|
6
6
|
import { Box } from "../Box/index.js";
|
|
7
7
|
import * as styles from "./ProgressStep.css.js";
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
9
|
export const ProgressStep = memo(_ref => {
|
|
11
10
|
let {
|
|
12
11
|
className = '',
|
|
@@ -7,7 +7,7 @@ import { themeContractVars as vars } from "../../themes/theme.css.js";
|
|
|
7
7
|
export const root = style({
|
|
8
8
|
display: 'grid',
|
|
9
9
|
gridGap: vars.space['1'],
|
|
10
|
-
padding:
|
|
10
|
+
padding: `${vars.space['3']} ${vars.space['4']}`,
|
|
11
11
|
alignContent: 'center',
|
|
12
12
|
justifyContent: 'center',
|
|
13
13
|
alignItems: 'center'
|
|
@@ -19,7 +19,7 @@ export const SliderProgress = memo(_ref => {
|
|
|
19
19
|
return _jsx("div", {
|
|
20
20
|
className: clsx(className, styles.root),
|
|
21
21
|
style: {
|
|
22
|
-
gridTemplateColumns:
|
|
22
|
+
gridTemplateColumns: `repeat(${totalCount}, 1fr)`
|
|
23
23
|
},
|
|
24
24
|
children: Array.from({
|
|
25
25
|
length: totalCount
|
|
@@ -6,6 +6,6 @@ import { style } from '@vanilla-extract/css';
|
|
|
6
6
|
import { themeContractVars as vars } from "../../themes/theme.css.js";
|
|
7
7
|
export const line = style({
|
|
8
8
|
height: '1px',
|
|
9
|
-
boxShadow:
|
|
9
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.background.neutral}`
|
|
10
10
|
}, "line");
|
|
11
11
|
__vanilla_filescope__.endFileScope();
|
|
@@ -6,9 +6,7 @@ import flattenChildren from 'react-keyed-flatten-children';
|
|
|
6
6
|
import { Box } from "../Box/index.js";
|
|
7
7
|
import { Divider } from "./Divider.js";
|
|
8
8
|
import * as styles from "./Stack.css.js";
|
|
9
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
10
|
const supportedListTypes = ['ul', 'ol'];
|
|
13
11
|
export const Stack = _ref => {
|
|
14
12
|
let {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
5
5
|
__vanilla_filescope__.setFileScope("lib/components/StandardModal/StandardModal.css.ts", "@autoguru/overdrive");
|
|
6
|
-
function ownKeys(
|
|
7
|
-
function _objectSpread(
|
|
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
8
|
import { style } from '@vanilla-extract/css';
|
|
9
9
|
import { themeContractVars as vars } from "../../themes/theme.css.js";
|
|
10
10
|
import { responsiveStyle } from "../../utils/responsiveStyle.js";
|
|
@@ -15,18 +15,18 @@ export const modal = style(_objectSpread({
|
|
|
15
15
|
width: '100vw',
|
|
16
16
|
height: 'auto',
|
|
17
17
|
alignSelf: 'flex-end',
|
|
18
|
-
minHeight:
|
|
19
|
-
maxHeight:
|
|
20
|
-
borderRadius:
|
|
18
|
+
minHeight: `calc(3 * ${vars.space['8']})`,
|
|
19
|
+
maxHeight: `calc(100vh - ${vars.space['8']})`,
|
|
20
|
+
borderRadius: `${vars.space['2']} ${vars.space['2']} 0 0`
|
|
21
21
|
}, responsiveStyle({
|
|
22
22
|
tablet: {
|
|
23
23
|
alignSelf: 'center',
|
|
24
|
-
borderRadius:
|
|
24
|
+
borderRadius: `${vars.space['1']}`
|
|
25
25
|
},
|
|
26
26
|
desktop: {
|
|
27
|
-
maxWidth:
|
|
27
|
+
maxWidth: `calc(100% - ${vars.space['9']} * 2)`,
|
|
28
28
|
height: 'auto',
|
|
29
|
-
maxHeight:
|
|
29
|
+
maxHeight: `calc(100vh - ${vars.space['9']} * 2)`,
|
|
30
30
|
boxShadow: '0 0 32px 0 rgba(0,0,0, 0.012), 0 24px 96px 0 rgba(0,0,0, 0.08)',
|
|
31
31
|
marginTop: 0
|
|
32
32
|
}
|
|
@@ -12,14 +12,13 @@ import { Icon } from "../Icon/index.js";
|
|
|
12
12
|
import { Modal } from "../Modal/index.js";
|
|
13
13
|
import { useTextStyles } from "../Text/index.js";
|
|
14
14
|
import * as styles from "./StandardModal.css.js";
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
|
|
17
|
-
export let ESize;
|
|
18
|
-
(function (ESize) {
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
export let ESize = function (ESize) {
|
|
19
17
|
ESize["Skinny"] = "skinny";
|
|
20
18
|
ESize["Narrow"] = "narrow";
|
|
21
19
|
ESize["Standard"] = "standard";
|
|
22
|
-
|
|
20
|
+
return ESize;
|
|
21
|
+
}({});
|
|
23
22
|
export const StandardModal = _ref => {
|
|
24
23
|
let {
|
|
25
24
|
isOpen,
|
|
@@ -9,20 +9,19 @@ import { Icon } from "../Icon/index.js";
|
|
|
9
9
|
import { Inline } from "../Inline/index.js";
|
|
10
10
|
import { Text } from "../Text/index.js";
|
|
11
11
|
import * as styles from "./StarRating.css.js";
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
const totalStars = 5;
|
|
15
|
-
export let EStarRatingSize
|
|
16
|
-
(function (EStarRatingSize) {
|
|
14
|
+
export let EStarRatingSize = function (EStarRatingSize) {
|
|
17
15
|
EStarRatingSize["Medium"] = "medium";
|
|
18
16
|
EStarRatingSize["Small"] = "small";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
return EStarRatingSize;
|
|
18
|
+
}({});
|
|
19
|
+
var EStarType = function (EStarType) {
|
|
22
20
|
EStarType[EStarType["Full"] = 0] = "Full";
|
|
23
21
|
EStarType[EStarType["Half"] = 1] = "Half";
|
|
24
22
|
EStarType[EStarType["Empty"] = 2] = "Empty";
|
|
25
|
-
|
|
23
|
+
return EStarType;
|
|
24
|
+
}(EStarType || {});
|
|
26
25
|
const starSizeMap = new Map([[EStarRatingSize.Medium, 'medium'], [EStarRatingSize.Small, 'small']]);
|
|
27
26
|
const labelSizeMap = new Map([[EStarRatingSize.Small, '3'], [EStarRatingSize.Medium, '4']]);
|
|
28
27
|
export const StarRating = memo(_ref => {
|
|
@@ -10,7 +10,7 @@ export const disabled = style({
|
|
|
10
10
|
export const root = style({
|
|
11
11
|
width: 'max-content',
|
|
12
12
|
selectors: {
|
|
13
|
-
[
|
|
13
|
+
[`&:not(${disabled}):focus`]: {
|
|
14
14
|
borderColor: vars.colours.intent.information.background.standard
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -27,12 +27,12 @@ export const handle = styleVariants({
|
|
|
27
27
|
default: {
|
|
28
28
|
width: vars.space[6],
|
|
29
29
|
height: vars.space[6],
|
|
30
|
-
transition:
|
|
30
|
+
transition: `background-color 0.1s ${vars.animation.easing.standard}`,
|
|
31
31
|
selectors: {
|
|
32
|
-
[
|
|
32
|
+
[`${root}:not(${disabled}) &:hover`]: {
|
|
33
33
|
backgroundColor: vars.colours.intent.primary.background.strong
|
|
34
34
|
},
|
|
35
|
-
[
|
|
35
|
+
[`${root}:not(${disabled}) &:active`]: {
|
|
36
36
|
backgroundColor: vars.colours.intent.primary.background.strong
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../lib/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAIA,OAAO,EACN,iBAAiB,EAIjB,MAAM,OAAO,CAAC;AAUf,MAAM,WAAW,KAAK;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,MAAM,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAE/B,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAkDD,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../lib/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAIA,OAAO,EACN,iBAAiB,EAIjB,MAAM,OAAO,CAAC;AAUf,MAAM,WAAW,KAAK;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,MAAM,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAE/B,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAkDD,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAkI5C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -11,8 +11,7 @@ import { Column, Columns } from "../Columns/index.js";
|
|
|
11
11
|
import { Icon } from "../Icon/index.js";
|
|
12
12
|
import { Text, useTextStyles } from "../Text/index.js";
|
|
13
13
|
import * as styles from "./Stepper.css.js";
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
const takeStep = _ref => {
|
|
17
16
|
let {
|
|
18
17
|
min,
|
|
@@ -85,18 +84,28 @@ export const Stepper = _ref3 => {
|
|
|
85
84
|
const keyDownHandler = useCallback(event => {
|
|
86
85
|
switch (event.key) {
|
|
87
86
|
case 'ArrowLeft':
|
|
88
|
-
|
|
87
|
+
{
|
|
88
|
+
return onDecrement();
|
|
89
|
+
}
|
|
89
90
|
case 'ArrowRight':
|
|
90
|
-
|
|
91
|
+
{
|
|
92
|
+
return onIncrement();
|
|
93
|
+
}
|
|
91
94
|
case 'Home':
|
|
92
|
-
|
|
93
|
-
|
|
95
|
+
{
|
|
96
|
+
event.preventDefault();
|
|
97
|
+
return onChange(min);
|
|
98
|
+
}
|
|
94
99
|
case 'End':
|
|
95
|
-
|
|
96
|
-
|
|
100
|
+
{
|
|
101
|
+
event.preventDefault();
|
|
102
|
+
return onChange(max);
|
|
103
|
+
}
|
|
97
104
|
case 'Escape':
|
|
98
|
-
|
|
99
|
-
|
|
105
|
+
{
|
|
106
|
+
event.currentTarget.blur();
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
100
109
|
}
|
|
101
110
|
}, [min, max, onDecrement, onIncrement, onChange]);
|
|
102
111
|
return _jsx(Box, {
|