@autoguru/overdrive 4.34.0 → 4.35.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/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/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/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/themes/base/tokens.js +3 -3
- 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/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 +118 -26
- 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
|
@@ -10,8 +10,7 @@ import { Icon } from "../Icon/index.js";
|
|
|
10
10
|
import { IntentStripe } from "../IntentStripe/index.js";
|
|
11
11
|
import { Text, useTextStyles } from "../Text/index.js";
|
|
12
12
|
import * as styles from "./Alert.css.js";
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
14
|
const iconMapForIntent = {
|
|
16
15
|
danger: AlertCircleIcon,
|
|
17
16
|
information: InformationIcon,
|
|
@@ -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", "is", "disabled", "children", "icon"];
|
|
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 { cloneElement, createElement, isValidElement } from 'react';
|
|
@@ -13,8 +13,7 @@ import { Icon } from "../Icon/index.js";
|
|
|
13
13
|
import { Inline } from "../Inline/index.js";
|
|
14
14
|
import { Text, useTextStyles } from "../Text/index.js";
|
|
15
15
|
import * as styles from "./Anchor.css.js";
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
17
|
export const Anchor = _ref => {
|
|
19
18
|
let {
|
|
20
19
|
className = '',
|
|
@@ -52,8 +52,8 @@ export const suggestionList = {
|
|
|
52
52
|
}, "suggestionList_inlineOptionsNoScroll")
|
|
53
53
|
};
|
|
54
54
|
export const inputPrimitive = style({
|
|
55
|
-
marginTop:
|
|
56
|
-
marginBottom:
|
|
55
|
+
marginTop: `calc(-1 * ${vars.border.width['1']})`,
|
|
56
|
+
marginBottom: `calc(-1 * ${vars.border.width['1']})`
|
|
57
57
|
}, "inputPrimitive");
|
|
58
58
|
export const input = style({
|
|
59
59
|
position: 'sticky',
|
|
@@ -75,7 +75,7 @@ export const spacer = style({
|
|
|
75
75
|
}, "spacer");
|
|
76
76
|
export const suggestion = style({
|
|
77
77
|
display: 'block',
|
|
78
|
-
padding:
|
|
78
|
+
padding: `${vars.space['3']} calc(${vars.space['3']} + 1px)`,
|
|
79
79
|
width: '100%',
|
|
80
80
|
cursor: 'pointer',
|
|
81
81
|
textAlign: 'left',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoSuggest.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACN,wBAAwB,EAKxB,YAAY,EAEZ,GAAG,EAQH,MAAM,OAAO,CAAC;AAYf,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,MAAM,WAAW,gBAAgB,CAAC,WAAW;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AAED,MAAM,MAAM,uBAAuB,CAAC,WAAW,IAAI,CAAC,KAAK,EAAE;IAC1D,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;CAClD,KAAK,YAAY,CAAC;AAiCnB,KAAK,WAAW,CAAC,WAAW,IAAI,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;AAErE,MAAM,WAAW,KAAK,CAAC,WAAW,CACjC,SAAQ,IAAI,CACX,wBAAwB,CAAC,OAAO,SAAS,CAAC,EAC1C,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CAC5C;IACD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAC5C,WAAW,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IAEtC,YAAY,CAAC,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;IAEpD,QAAQ,CAAC,CAAC,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAEtD,OAAO,CAAC,CAAC,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;CACrD;AAwGD,eAAO,MAAM,WAAW;;
|
|
1
|
+
{"version":3,"file":"AutoSuggest.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACN,wBAAwB,EAKxB,YAAY,EAEZ,GAAG,EAQH,MAAM,OAAO,CAAC;AAYf,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,MAAM,WAAW,gBAAgB,CAAC,WAAW;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AAED,MAAM,MAAM,uBAAuB,CAAC,WAAW,IAAI,CAAC,KAAK,EAAE;IAC1D,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;CAClD,KAAK,YAAY,CAAC;AAiCnB,KAAK,WAAW,CAAC,WAAW,IAAI,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;AAErE,MAAM,WAAW,KAAK,CAAC,WAAW,CACjC,SAAQ,IAAI,CACX,wBAAwB,CAAC,OAAO,SAAS,CAAC,EAC1C,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CAC5C;IACD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAC5C,WAAW,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IAEtC,YAAY,CAAC,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;IAEpD,QAAQ,CAAC,CAAC,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAEtD,OAAO,CAAC,CAAC,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;CACrD;AAwGD,eAAO,MAAM,WAAW;;MA2FnB,YAAY,CAAC;AAwhBlB,eAAe,WAAW,CAAC"}
|
|
@@ -8,8 +8,8 @@ const _excluded = ["autoFocus", "autoWidth", "inlineOptions", "fieldIcon", "sugg
|
|
|
8
8
|
_excluded4 = ["className"],
|
|
9
9
|
_excluded5 = ["field", "eventHandlers", "validation", "suffixed", "prefixed", "isLoading", "fieldIcon", "isFocused", "className", "size"],
|
|
10
10
|
_excluded6 = ["onReset"];
|
|
11
|
-
function ownKeys(
|
|
12
|
-
function _objectSpread(
|
|
11
|
+
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; }
|
|
12
|
+
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; }
|
|
13
13
|
import { ChevronDownIcon, CloseIcon } from '@autoguru/icons';
|
|
14
14
|
import { wrapEvent } from '@autoguru/utilities';
|
|
15
15
|
import clsx from 'clsx';
|
|
@@ -28,10 +28,8 @@ import { Text } from "../Text/index.js";
|
|
|
28
28
|
import { withEnhancedInput } from "../private/InputBase/index.js";
|
|
29
29
|
import * as styles from "./AutoSuggest.css.js";
|
|
30
30
|
import { useLayoutSuggestionVisible } from "./useLayoutSuggestionVisible.js";
|
|
31
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
32
|
-
|
|
33
|
-
var ActionTypes;
|
|
34
|
-
(function (ActionTypes) {
|
|
31
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
32
|
+
var ActionTypes = function (ActionTypes) {
|
|
35
33
|
ActionTypes[ActionTypes["INPUT_CHANGE"] = 0] = "INPUT_CHANGE";
|
|
36
34
|
ActionTypes[ActionTypes["INPUT_ESCAPE"] = 1] = "INPUT_ESCAPE";
|
|
37
35
|
ActionTypes[ActionTypes["INPUT_ENTER"] = 2] = "INPUT_ENTER";
|
|
@@ -42,7 +40,8 @@ var ActionTypes;
|
|
|
42
40
|
ActionTypes[ActionTypes["FLYOUT_CLOSE"] = 7] = "FLYOUT_CLOSE";
|
|
43
41
|
ActionTypes[ActionTypes["SUGGESTION_MOUSE_ENTER"] = 8] = "SUGGESTION_MOUSE_ENTER";
|
|
44
42
|
ActionTypes[ActionTypes["SUGGESTION_MOUSE_CLICK"] = 9] = "SUGGESTION_MOUSE_CLICK";
|
|
45
|
-
|
|
43
|
+
return ActionTypes;
|
|
44
|
+
}(ActionTypes || {});
|
|
46
45
|
const inputReducerFactory = suggestions => (prevState, action) => {
|
|
47
46
|
switch (action.type) {
|
|
48
47
|
default:
|
|
@@ -151,7 +150,7 @@ export const AutoSuggest = forwardRef(function AutoSuggest(_ref, ref) {
|
|
|
151
150
|
suggestions,
|
|
152
151
|
value: valueRef.current,
|
|
153
152
|
onChange: value => {
|
|
154
|
-
if (
|
|
153
|
+
if (value.payload !== undefined && value.payload !== null) {
|
|
155
154
|
setShowModal(false);
|
|
156
155
|
if (!isDesktop) setIsFocused(false);
|
|
157
156
|
}
|
|
@@ -523,7 +522,7 @@ const AutoSuggestInputPrimitive = withEnhancedInput(_ref5 => {
|
|
|
523
522
|
withPrefixIcon: true,
|
|
524
523
|
withSuffixIcon: false
|
|
525
524
|
});
|
|
526
|
-
const getSuggestionId = (id, index) =>
|
|
525
|
+
const getSuggestionId = (id, index) => `${id}-option-${index}`;
|
|
527
526
|
const SuggestionListFlyout = _ref6 => {
|
|
528
527
|
let {
|
|
529
528
|
id,
|
|
@@ -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 = ["is", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "margin", "marginX", "marginY", "marginTop", "marginBottom", "marginLeft", "marginRight", "display", "width", "height", "position", "overflow", "userSelect", "textAlign", "pointerEvents", "borderColour", "borderColourX", "borderColourY", "borderColourTop", "borderColourRight", "borderColourBottom", "borderColourLeft", "borderWidth", "borderWidthX", "borderWidthY", "borderWidthTop", "borderWidthRight", "borderWidthBottom", "borderWidthLeft", "boxShadow", "borderRadius", "backgroundColour", "colour", "opacity", "className", "alignItems", "order", "flexDirection", "flexGrow", "flexShrink", "flexWrap", "justifyContent", "children"];
|
|
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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"argTypes.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/argTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,CAWrD,CAAC;AAoCF,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"argTypes.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/argTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,CAWrD,CAAC;AAoCF,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC,CA0ErE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
6
|
import { defaultGamut } from "../../themes/base/tokens.js";
|
|
7
7
|
export const scaleOptions = ['none', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
|
8
8
|
const scaledProps = ['padding', 'paddingX', 'paddingY', 'paddingTop', 'paddingRight', 'paddingLeft', 'margin', 'marginX', 'marginY', 'marginTop', 'marginRight', 'marginLeft'];
|
|
@@ -34,7 +34,7 @@ export declare const height: Record<"full", string>;
|
|
|
34
34
|
export declare const position: Record<"fixed" | "absolute" | "relative", string>;
|
|
35
35
|
export declare const textAlign: Record<"left" | "right" | "center", string>;
|
|
36
36
|
export declare const overflow: Record<"auto" | "hidden" | "visible" | "scroll", string>;
|
|
37
|
-
export declare const display: Record<"none" | "flex" | "grid" | "
|
|
37
|
+
export declare const display: Record<"none" | "flex" | "grid" | "block" | "contents" | "inline" | "inlineFlex" | "inlineBlock", string>;
|
|
38
38
|
export declare const opacity: Record<0 | 1, string>;
|
|
39
39
|
export declare const userSelect: Record<"none", string>;
|
|
40
40
|
export declare const order: Record<string | number, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBoxStyles.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/useBoxStyles.css.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;CAKlB,CAAC;AAEF,eAAO,MAAM,SAAS,8BAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"useBoxStyles.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/useBoxStyles.css.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;CAKlB,CAAC;AAEF,eAAO,MAAM,SAAS,8BAAmD,CAAC;AAwC1E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CAsBlB,CAAC;AAEF,eAAO,MAAM,YAAY,8BAGxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,oMAE7B,CAAC;AAEF,eAAO,MAAM,OAAO,4HAEnB,CAAC;AAEF,eAAO,MAAM,KAAK,iCAOhB,CAAC;AAEH,eAAO,MAAM,MAAM,wBAIjB,CAAC;AAEH,eAAO,MAAM,QAAQ,mDASpB,CAAC;AAEF,eAAO,MAAM,SAAS,6CASrB,CAAC;AAEF,eAAO,MAAM,QAAQ,0DAUpB,CAAC;AAEF,eAAO,MAAM,OAAO,2GAcnB,CAAC;AAEF,eAAO,MAAM,OAAO,uBAGlB,CAAC;AAEH,eAAO,MAAM,UAAU,wBAErB,CAAC;AAIH,eAAO,MAAM,KAAK,8BAOjB,CAAC;AAEF,eAAO,MAAM,UAAU,8BAOtB,CAAC;AAEF,eAAO,MAAM,aAAa,8BAQzB,CAAC;AAEF,eAAO,MAAM,QAAQ,uBAQpB,CAAC;AAEF,eAAO,MAAM,UAAU,mBAOtB,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAQpB,CAAC;AAEF,eAAO,MAAM,cAAc,8BAS1B,CAAC;AAEF,eAAO,MAAM,aAAa,wBAExB,CAAC"}
|
|
@@ -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/Box/useBoxStyles.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, styleVariants } from '@vanilla-extract/css';
|
|
9
9
|
import { themeContractVars as vars } from "../../themes/theme.css.js";
|
|
10
10
|
import { mapTokenToProperty } from "../../utils/mapTokenToProperty.js";
|
|
@@ -22,17 +22,11 @@ export const margin = {
|
|
|
22
22
|
left: makeResponsiveStyle(vars.space, 'marginLeft')
|
|
23
23
|
};
|
|
24
24
|
export const boxShadow = makeResponsiveStyle(vars.elevation, 'boxShadow');
|
|
25
|
-
const borderColours = _objectSpread(_objectSpread({}, vars.border.colours), Object.entries(vars.colours.intent).
|
|
26
|
-
|
|
27
|
-
}), {}));
|
|
28
|
-
const backgroundColourTokens = _objectSpread(_objectSpread(_objectSpread({}, vars.colours.gamut), Object.entries(vars.colours.intent).reduce((map, entry) => _objectSpread(_objectSpread({}, map), {}, {
|
|
29
|
-
[entry[0]]: entry[1].background.standard
|
|
30
|
-
}), {})), {}, {
|
|
25
|
+
const borderColours = _objectSpread(_objectSpread({}, vars.border.colours), Object.fromEntries(Object.entries(vars.colours.intent).map(entry => [entry[0], entry[1].border])));
|
|
26
|
+
const backgroundColourTokens = _objectSpread(_objectSpread(_objectSpread({}, vars.colours.gamut), Object.fromEntries(Object.entries(vars.colours.intent).map(entry => [entry[0], entry[1].background.standard]))), {}, {
|
|
31
27
|
transparent: 'transparent'
|
|
32
28
|
});
|
|
33
|
-
const foregroundColourTokens = Object.entries(vars.colours.intent).
|
|
34
|
-
[entry[0]]: entry[1].foreground
|
|
35
|
-
}), {});
|
|
29
|
+
const foregroundColourTokens = Object.fromEntries(Object.entries(vars.colours.intent).map(entry => [entry[0], entry[1].foreground]));
|
|
36
30
|
export const border = {
|
|
37
31
|
style: style({
|
|
38
32
|
borderStyle: 'solid'
|
|
@@ -18,7 +18,7 @@ export const root = styleVariants({
|
|
|
18
18
|
alignSelf: 'flex-start',
|
|
19
19
|
width: vars.space['2'],
|
|
20
20
|
height: vars.space['2'],
|
|
21
|
-
marginTop:
|
|
21
|
+
marginTop: `calc((1.6em - ${vars.space['2']}) / 2)`,
|
|
22
22
|
content: "' '",
|
|
23
23
|
backgroundColor: vars.typography.colour.dark
|
|
24
24
|
}
|
|
@@ -30,14 +30,14 @@ export const root = styleVariants({
|
|
|
30
30
|
},
|
|
31
31
|
disc: {
|
|
32
32
|
':before': {
|
|
33
|
-
border:
|
|
33
|
+
border: `2px solid ${vars.typography.colour.dark}`,
|
|
34
34
|
borderRadius: '50%',
|
|
35
35
|
backgroundColor: 'transparent'
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
square: {
|
|
39
39
|
':before': {
|
|
40
|
-
border:
|
|
40
|
+
border: `2px solid ${vars.typography.colour.dark}`,
|
|
41
41
|
backgroundColor: 'transparent'
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bullet.d.ts","sourceRoot":"","sources":["../../../lib/components/BulletList/Bullet.tsx"],"names":[],"mappings":"AACA,OAAO,EACN,iBAAiB,EAEjB,SAAS,EAET,MAAM,OAAO,CAAC;AAQf,MAAM,WAAW,KAAK;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"Bullet.d.ts","sourceRoot":"","sources":["../../../lib/components/BulletList/Bullet.tsx"],"names":[],"mappings":"AACA,OAAO,EACN,iBAAiB,EAEjB,SAAS,EAET,MAAM,OAAO,CAAC;AAQf,MAAM,WAAW,KAAK;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAmBD,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAgB3C,CAAC"}
|
|
@@ -10,13 +10,21 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
10
10
|
const getBulletCls = (styles, type) => {
|
|
11
11
|
switch (type) {
|
|
12
12
|
case 'circle':
|
|
13
|
-
|
|
13
|
+
{
|
|
14
|
+
return styles.root.circle;
|
|
15
|
+
}
|
|
14
16
|
case 'square':
|
|
15
|
-
|
|
17
|
+
{
|
|
18
|
+
return styles.root.square;
|
|
19
|
+
}
|
|
16
20
|
case 'disc':
|
|
17
|
-
|
|
21
|
+
{
|
|
22
|
+
return styles.root.disc;
|
|
23
|
+
}
|
|
18
24
|
default:
|
|
19
|
-
|
|
25
|
+
{
|
|
26
|
+
return '';
|
|
27
|
+
}
|
|
20
28
|
}
|
|
21
29
|
};
|
|
22
30
|
export const Bullet = _ref => {
|
|
@@ -7,8 +7,7 @@ import { Box } from "../Box/index.js";
|
|
|
7
7
|
import { Inline } from "../Inline/index.js";
|
|
8
8
|
import { Text } from "../Text/index.js";
|
|
9
9
|
import * as styles from "./BulletText.css.js";
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
11
|
export const BulletText = _ref => {
|
|
13
12
|
let {
|
|
14
13
|
variant = 'primary',
|
|
@@ -66,37 +66,37 @@ export const variant = {
|
|
|
66
66
|
primary: style({
|
|
67
67
|
color: vars.colours.intent.primary.foreground,
|
|
68
68
|
backgroundColor: vars.colours.intent.primary.background.standard,
|
|
69
|
-
boxShadow:
|
|
69
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.primary.border}, ${vars.elevation['2']}`
|
|
70
70
|
}, "variant_primary"),
|
|
71
71
|
brand: style({
|
|
72
72
|
color: vars.colours.intent.brand.foreground,
|
|
73
73
|
backgroundColor: vars.colours.intent.brand.background.standard,
|
|
74
|
-
boxShadow:
|
|
74
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.brand.border}, ${vars.elevation['2']}`
|
|
75
75
|
}, "variant_brand"),
|
|
76
76
|
secondary: style({
|
|
77
77
|
color: vars.colours.intent.secondary.foreground,
|
|
78
78
|
backgroundColor: vars.colours.intent.secondary.background.standard,
|
|
79
|
-
boxShadow:
|
|
79
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.secondary.border}, ${vars.elevation['2']}`
|
|
80
80
|
}, "variant_secondary"),
|
|
81
81
|
danger: style({
|
|
82
82
|
backgroundColor: vars.colours.intent.danger.background.standard,
|
|
83
83
|
color: vars.colours.intent.danger.foreground,
|
|
84
|
-
boxShadow:
|
|
84
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.danger.border}, ${vars.elevation['2']}`
|
|
85
85
|
}, "variant_danger"),
|
|
86
86
|
information: style({
|
|
87
87
|
backgroundColor: vars.colours.intent.information.background.standard,
|
|
88
88
|
color: vars.colours.intent.information.foreground,
|
|
89
|
-
boxShadow:
|
|
89
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.information.border}, ${vars.elevation['2']}`
|
|
90
90
|
}, "variant_information"),
|
|
91
91
|
warning: style({
|
|
92
92
|
backgroundColor: vars.colours.intent.warning.background.standard,
|
|
93
93
|
color: vars.colours.intent.warning.foreground,
|
|
94
|
-
boxShadow:
|
|
94
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.warning.border}, ${vars.elevation['2']}`
|
|
95
95
|
}, "variant_warning"),
|
|
96
96
|
success: style({
|
|
97
97
|
backgroundColor: vars.colours.intent.success.background.standard,
|
|
98
98
|
color: vars.colours.intent.success.foreground,
|
|
99
|
-
boxShadow:
|
|
99
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.success.border}, ${vars.elevation['2']}`
|
|
100
100
|
}, "variant_success")
|
|
101
101
|
};
|
|
102
102
|
export const defaultStates = {
|
|
@@ -104,11 +104,11 @@ export const defaultStates = {
|
|
|
104
104
|
':hover': {
|
|
105
105
|
color: vars.colours.intent.primary.foreground,
|
|
106
106
|
backgroundColor: vars.colours.intent.primary.background.strong,
|
|
107
|
-
boxShadow:
|
|
107
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.primary.border}, ${vars.elevation['3']}`
|
|
108
108
|
},
|
|
109
109
|
':active': {
|
|
110
110
|
transform: 'scale(0.97)',
|
|
111
|
-
boxShadow:
|
|
111
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.primary.border}, ${vars.elevation['1']}`,
|
|
112
112
|
color: vars.colours.intent.primary.foreground,
|
|
113
113
|
backgroundColor: vars.colours.intent.primary.background.strong
|
|
114
114
|
}
|
|
@@ -117,11 +117,11 @@ export const defaultStates = {
|
|
|
117
117
|
':hover': {
|
|
118
118
|
color: vars.colours.intent.brand.foreground,
|
|
119
119
|
backgroundColor: vars.colours.intent.brand.background.strong,
|
|
120
|
-
boxShadow:
|
|
120
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.brand.border}, ${vars.elevation['3']}`
|
|
121
121
|
},
|
|
122
122
|
':active': {
|
|
123
123
|
transform: 'scale(0.97)',
|
|
124
|
-
boxShadow:
|
|
124
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.brand.border}, ${vars.elevation['1']}`,
|
|
125
125
|
color: vars.colours.intent.brand.foreground,
|
|
126
126
|
backgroundColor: vars.colours.intent.brand.background.strong
|
|
127
127
|
}
|
|
@@ -130,65 +130,65 @@ export const defaultStates = {
|
|
|
130
130
|
':hover': {
|
|
131
131
|
color: vars.colours.intent.secondary.foreground,
|
|
132
132
|
backgroundColor: vars.colours.intent.secondary.background.strong,
|
|
133
|
-
boxShadow:
|
|
133
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.secondary.border}, ${vars.elevation['3']}`
|
|
134
134
|
},
|
|
135
135
|
':active': {
|
|
136
136
|
transform: 'scale(0.97)',
|
|
137
137
|
color: vars.colours.intent.secondary.foreground,
|
|
138
138
|
backgroundColor: vars.colours.intent.secondary.background.strong,
|
|
139
|
-
boxShadow:
|
|
139
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.secondary.border}, ${vars.elevation['1']}`
|
|
140
140
|
}
|
|
141
141
|
}, "defaultStates_secondary"),
|
|
142
142
|
danger: style({
|
|
143
143
|
':hover': {
|
|
144
144
|
color: vars.colours.intent.danger.foreground,
|
|
145
145
|
backgroundColor: vars.colours.intent.danger.background.strong,
|
|
146
|
-
boxShadow:
|
|
146
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.danger.border}, ${vars.elevation['3']}`
|
|
147
147
|
},
|
|
148
148
|
':active': {
|
|
149
149
|
transform: 'scale(0.97)',
|
|
150
150
|
color: vars.colours.intent.danger.foreground,
|
|
151
151
|
backgroundColor: vars.colours.intent.danger.background.strong,
|
|
152
|
-
boxShadow:
|
|
152
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.danger.border}, ${vars.elevation['1']}`
|
|
153
153
|
}
|
|
154
154
|
}, "defaultStates_danger"),
|
|
155
155
|
information: style({
|
|
156
156
|
':hover': {
|
|
157
157
|
color: vars.colours.intent.information.foreground,
|
|
158
158
|
backgroundColor: vars.colours.intent.information.background.strong,
|
|
159
|
-
boxShadow:
|
|
159
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.information.border}, ${vars.elevation['3']}`
|
|
160
160
|
},
|
|
161
161
|
':active': {
|
|
162
162
|
transform: 'scale(0.97)',
|
|
163
163
|
color: vars.colours.intent.information.foreground,
|
|
164
164
|
backgroundColor: vars.colours.intent.information.background.strong,
|
|
165
|
-
boxShadow:
|
|
165
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.information.border}, ${vars.elevation['1']}`
|
|
166
166
|
}
|
|
167
167
|
}, "defaultStates_information"),
|
|
168
168
|
warning: style({
|
|
169
169
|
':hover': {
|
|
170
170
|
color: vars.colours.intent.warning.foreground,
|
|
171
171
|
backgroundColor: vars.colours.intent.warning.background.strong,
|
|
172
|
-
boxShadow:
|
|
172
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.warning.border}, ${vars.elevation['3']}`
|
|
173
173
|
},
|
|
174
174
|
':active': {
|
|
175
175
|
transform: 'scale(0.97)',
|
|
176
176
|
color: vars.colours.intent.warning.foreground,
|
|
177
177
|
backgroundColor: vars.colours.intent.warning.background.strong,
|
|
178
|
-
boxShadow:
|
|
178
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.warning.border}, ${vars.elevation['1']}`
|
|
179
179
|
}
|
|
180
180
|
}, "defaultStates_warning"),
|
|
181
181
|
success: style({
|
|
182
182
|
':hover': {
|
|
183
183
|
color: vars.colours.intent.success.foreground,
|
|
184
184
|
backgroundColor: vars.colours.intent.success.background.strong,
|
|
185
|
-
boxShadow:
|
|
185
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.success.border}, ${vars.elevation['3']}`
|
|
186
186
|
},
|
|
187
187
|
':active': {
|
|
188
188
|
transform: 'scale(0.97)',
|
|
189
189
|
color: vars.colours.intent.success.foreground,
|
|
190
190
|
backgroundColor: vars.colours.intent.success.background.strong,
|
|
191
|
-
boxShadow:
|
|
191
|
+
boxShadow: `inset 0 0 0 1px ${vars.colours.intent.success.border}, ${vars.elevation['1']}`
|
|
192
192
|
}
|
|
193
193
|
}, "defaultStates_success")
|
|
194
194
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { cloneElement, createElement, forwardRef, isValidElement, useCallback, useEffect, useMemo, useState } from 'react';
|
|
@@ -11,9 +11,7 @@ import { Icon } from "../Icon/index.js";
|
|
|
11
11
|
import { ProgressSpinner } from "../ProgressSpinner/index.js";
|
|
12
12
|
import { useTextStyles } from "../Text/index.js";
|
|
13
13
|
import * as styles from "./Button.css.js";
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
15
|
const DOUBLE_CLICK_DETECTION_PERIOD = 700;
|
|
18
16
|
const getSpinnerColour = (variant, minimal) => minimal || variant === 'secondary' ? 'secondary' : 'light';
|
|
19
17
|
const getBorderRadius = rounded => rounded ? 'pill' : '1';
|
|
@@ -6,8 +6,8 @@ import { style, styleVariants } from '@vanilla-extract/css';
|
|
|
6
6
|
import { themeContractVars as vars } from "../../themes/theme.css.js";
|
|
7
7
|
export const icon = style({
|
|
8
8
|
zIndex: 1,
|
|
9
|
-
top:
|
|
10
|
-
left:
|
|
9
|
+
top: `calc(50% - 0.5*(${vars.space['4']}))`,
|
|
10
|
+
left: `calc(50% - 0.5*(${vars.space['4']}))`,
|
|
11
11
|
width: vars.space['4'],
|
|
12
12
|
height: vars.space['4']
|
|
13
13
|
}, "icon");
|
|
@@ -19,7 +19,7 @@ export const base = styleVariants({
|
|
|
19
19
|
left: vars.space['3'],
|
|
20
20
|
width: vars.space['4'],
|
|
21
21
|
height: vars.space['4'],
|
|
22
|
-
transition:
|
|
22
|
+
transition: `border-color 0.2s ${vars.animation.easing.decelerate} 0s, background-color 0.2s ${vars.animation.easing.decelerate} 0s`
|
|
23
23
|
},
|
|
24
24
|
selected: {
|
|
25
25
|
borderColor: vars.colours.intent.primary.background.standard,
|
|
@@ -11,8 +11,7 @@ import { useTextStyles } from "../Text/index.js";
|
|
|
11
11
|
import { CheckableBase } from "../private/CheckableBase/index.js";
|
|
12
12
|
import { useCheckableStyles } from "../private/CheckableBase/useCheckableStyles.js";
|
|
13
13
|
import * as styles from "./CheckBox.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 CheckBox = forwardRef((_ref, ref) => {
|
|
17
16
|
let {
|
|
18
17
|
value,
|
|
@@ -13,7 +13,7 @@ export const colouredBoxHolder = style({
|
|
|
13
13
|
}, "colouredBoxHolder");
|
|
14
14
|
export const colouredBoxHolderSize = styleVariants({
|
|
15
15
|
small: {
|
|
16
|
-
width:
|
|
16
|
+
width: `calc(${vars.typography.size['3'].lineHeight} + (2* ${vars.space['2']}))`
|
|
17
17
|
},
|
|
18
18
|
medium: {
|
|
19
19
|
width: vars.space['8']
|
|
@@ -25,7 +25,7 @@ export const valueText = style({
|
|
|
25
25
|
}, "valueText");
|
|
26
26
|
export const valueTextSize = styleVariants({
|
|
27
27
|
small: {
|
|
28
|
-
left:
|
|
28
|
+
left: `calc(${vars.typography.size['3'].lineHeight} + (2* ${vars.space['2']}))`
|
|
29
29
|
},
|
|
30
30
|
medium: {
|
|
31
31
|
left: vars.space['8']
|
|
@@ -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 = ["field", "eventHandlers", "validation", "isLoading", "suffixed", "prefixed", "size"];
|
|
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 { warning } from '@autoguru/utilities';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import * as React from 'react';
|
|
@@ -12,8 +12,7 @@ import { Box, useBoxStyles } from "../Box/index.js";
|
|
|
12
12
|
import { Text } from "../Text/index.js";
|
|
13
13
|
import { withEnhancedInput } from "../private/InputBase/index.js";
|
|
14
14
|
import * as styles from "./ColourInput.css.js";
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
16
|
export const ColourInput = withEnhancedInput(_ref => {
|
|
18
17
|
let {
|
|
19
18
|
field,
|
|
@@ -4,7 +4,7 @@ import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
|
4
4
|
__vanilla_filescope__.setFileScope("lib/components/Columns/Column.css.ts", "@autoguru/overdrive");
|
|
5
5
|
import { styleVariants } from '@vanilla-extract/css';
|
|
6
6
|
import { makeResponsiveStyle } from "../../utils/responsiveProps.css.js";
|
|
7
|
-
const getSizeStyle = scale =>
|
|
7
|
+
const getSizeStyle = scale => `${scale * 100}%`;
|
|
8
8
|
export const width = makeResponsiveStyle({
|
|
9
9
|
'1/2': getSizeStyle(1 / 2),
|
|
10
10
|
'1/3': getSizeStyle(1 / 3),
|
|
@@ -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", "children", "width", "alignSelf", "is", "noShrink", "grow", "order"];
|
|
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 { invariant } from '@autoguru/utilities';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { forwardRef, useContext } from 'react';
|
|
@@ -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", "children", "space", "spaceX", "spaceY", "noWrap", "wrappingDirection", "align", "is"];
|
|
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 { createContext, forwardRef, useMemo } from 'react';
|
|
@@ -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 = ["field", "eventHandlers", "validation", "isLoading", "suffixed", "prefixed", "size"];
|
|
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 { warning } from '@autoguru/utilities';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { Box } from "../Box/index.js";
|