@autoguru/overdrive 4.39.2 → 4.40.0-next.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/AutoSuggest/AutoSuggest.css.d.ts.map +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.css.js +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.d.ts.map +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.js +6 -6
- package/dist/components/AutoSuggest/AutoSuggest.stories.d.ts +5 -174
- package/dist/components/AutoSuggest/AutoSuggest.stories.d.ts.map +1 -1
- package/dist/components/Button/Button-cursor.css.js +205 -0
- package/dist/components/Button/Button-windsuft.css.js +566 -0
- package/dist/components/Button/Button.css.d.ts +81 -39
- package/dist/components/Button/Button.css.d.ts.map +1 -1
- package/dist/components/Button/Button.css.js +223 -241
- package/dist/components/Button/Button.d.ts +11 -5
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +22 -25
- package/dist/components/Button/Button.stories.d.ts +7 -43
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/CheckBox/CheckBox.css.d.ts +1 -1
- package/dist/components/CheckBox/CheckBox.css.d.ts.map +1 -1
- package/dist/components/CheckBox/CheckBox.css.js +37 -17
- package/dist/components/CheckBox/CheckBox.d.ts +2 -2
- package/dist/components/CheckBox/CheckBox.d.ts.map +1 -1
- package/dist/components/CheckBox/CheckBox.js +32 -28
- package/dist/components/CheckBox/CheckBox.stories.d.ts +13 -18
- package/dist/components/CheckBox/CheckBox.stories.d.ts.map +1 -1
- package/dist/components/ColourInput/ColourInput.stories.d.ts +4 -44
- package/dist/components/ColourInput/ColourInput.stories.d.ts.map +1 -1
- package/dist/components/DateInput/DateInput.stories.d.ts +6 -65
- package/dist/components/DateInput/DateInput.stories.d.ts.map +1 -1
- package/dist/components/DropDown/DropDown.stories.d.ts +4 -4
- package/dist/components/DropDown/DropDown.stories.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.js +2 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.d.ts.map +1 -1
- package/dist/components/HorizontalAutoScroller/useHorizontalAutoScroller.d.ts.map +1 -1
- package/dist/components/HorizontalAutoScroller/useHorizontalAutoScroller.js +3 -3
- package/dist/components/Image/SimpleImage.d.ts.map +1 -1
- package/dist/components/MinimalModal/MinimalModal.css.d.ts.map +1 -1
- package/dist/components/MinimalModal/MinimalModal.css.js +1 -3
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +1 -2
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/NumberInput/NumberInput.stories.d.ts +4 -8
- package/dist/components/NumberInput/NumberInput.stories.d.ts.map +1 -1
- package/dist/components/NumberInput/useNumberInputBehaviours.d.ts +1 -1
- package/dist/components/NumberInput/useNumberInputBehaviours.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.css.d.ts +1 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.css.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.css.js +3 -0
- package/dist/components/Radio/Radio.css.d.ts +4 -1
- package/dist/components/Radio/Radio.css.d.ts.map +1 -1
- package/dist/components/Radio/Radio.css.js +46 -22
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Radio/Radio.js +6 -17
- package/dist/components/Radio/Radio.stories.d.ts +11 -31
- package/dist/components/Radio/Radio.stories.d.ts.map +1 -1
- package/dist/components/Radio/RadioGroup.d.ts.map +1 -1
- package/dist/components/Radio/RadioGroup.js +1 -0
- package/dist/components/SearchBar/SearchBar.stories.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.stories.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInput.stories.d.ts +5 -64
- package/dist/components/SelectInput/SelectInput.stories.d.ts.map +1 -1
- package/dist/components/StandardModal/StandardModal.css.d.ts.map +1 -1
- package/dist/components/StandardModal/StandardModal.css.js +1 -3
- package/dist/components/Switch/Switch.css.d.ts +5 -6
- package/dist/components/Switch/Switch.css.d.ts.map +1 -1
- package/dist/components/Switch/Switch.css.js +44 -66
- package/dist/components/Switch/Switch.d.ts +11 -6
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +21 -36
- package/dist/components/Switch/Switch.stories.d.ts +5 -15
- package/dist/components/Switch/Switch.stories.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.css.d.ts +43 -5
- package/dist/components/Tabs/Tab.css.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.css.js +104 -22
- package/dist/components/Tabs/Tab.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.js +13 -13
- package/dist/components/Tabs/TabList.css.d.ts +15 -1
- package/dist/components/Tabs/TabList.css.d.ts.map +1 -1
- package/dist/components/Tabs/TabList.css.js +19 -11
- package/dist/components/Tabs/TabList.d.ts +1 -3
- package/dist/components/Tabs/TabList.d.ts.map +1 -1
- package/dist/components/Tabs/TabList.js +20 -7
- package/dist/components/Tabs/TabPane.css.d.ts.map +1 -1
- package/dist/components/Tabs/TabPane.css.js +3 -1
- package/dist/components/Tabs/Tabs.d.ts +3 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +3 -1
- package/dist/components/Tabs/Tabs.stories.d.ts +3 -19
- package/dist/components/Tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/components/TextAreaInput/TextAreaInput.stories.d.ts +5 -23
- package/dist/components/TextAreaInput/TextAreaInput.stories.d.ts.map +1 -1
- package/dist/components/TextInput/TextInput.js +1 -1
- package/dist/components/TextInput/TextInput.stories.d.ts +8 -14
- package/dist/components/TextInput/TextInput.stories.d.ts.map +1 -1
- package/dist/components/private/CheckableBase/CheckableBase.css.d.ts +3 -2
- package/dist/components/private/CheckableBase/CheckableBase.css.d.ts.map +1 -1
- package/dist/components/private/CheckableBase/CheckableBase.css.js +21 -20
- package/dist/components/private/CheckableBase/CheckableBase.d.ts +1 -2
- package/dist/components/private/CheckableBase/CheckableBase.d.ts.map +1 -1
- package/dist/components/private/CheckableBase/CheckableBase.js +10 -10
- package/dist/components/private/CheckableBase/useCheckableStyles.d.ts.map +1 -1
- package/dist/components/private/InputBase/HintText.d.ts +1 -1
- package/dist/components/private/InputBase/HintText.d.ts.map +1 -1
- package/dist/components/private/InputBase/HintText.js +2 -3
- package/dist/components/private/InputBase/InputState.css.js +5 -5
- package/dist/components/private/InputBase/NotchedBase.css.d.ts +1 -1
- package/dist/components/private/InputBase/NotchedBase.css.d.ts.map +1 -1
- package/dist/components/private/InputBase/NotchedBase.css.js +18 -13
- package/dist/components/private/InputBase/NotchedBase.d.ts +1 -1
- package/dist/components/private/InputBase/NotchedBase.d.ts.map +1 -1
- package/dist/components/private/InputBase/NotchedBase.js +5 -5
- package/dist/components/private/InputBase/withEnhancedInput.css.js +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.d.ts +2 -2
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.js +3 -2
- package/dist/hooks/useMedia/useMedia.d.ts.map +1 -1
- package/dist/report.html +39 -0
- package/dist/stats.json +368 -0
- package/dist/stories/helpers/styles.css.d.ts +4 -0
- package/dist/stories/helpers/styles.css.d.ts.map +1 -1
- package/dist/stories/theme.stories.d.ts.map +1 -1
- package/dist/styles/focusOutline.css.d.ts +4 -0
- package/dist/styles/focusOutline.css.d.ts.map +1 -1
- package/dist/styles/focusOutline.css.js +6 -5
- package/dist/styles/stack.css.d.ts +6 -0
- package/dist/styles/stack.css.d.ts.map +1 -1
- package/dist/styles/stack.css.js +6 -0
- package/dist/themes/base/tokens.js +2 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/readme.md +22 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoSuggest.css.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,QAuBzB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;
|
|
1
|
+
{"version":3,"file":"AutoSuggest.css.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,QAuBzB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;CAuB1B,CAAC;AAEF,eAAO,MAAM,cAAc,QAGzB,CAAC;AACH,eAAO,MAAM,KAAK,QAKhB,CAAC;AACH,eAAO,MAAM,eAAe,QAE1B,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAK7B,CAAC;AAEH,eAAO,MAAM,MAAM,QAEjB,CAAC;AAEH,eAAO,MAAM,UAAU,QAQrB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAO7B,CAAC;AAEH,eAAO,MAAM,mBAAmB,QAG9B,CAAC"}
|
|
@@ -33,12 +33,12 @@ export const suggestionList = {
|
|
|
33
33
|
overflowY: 'auto',
|
|
34
34
|
maxHeight: '384px',
|
|
35
35
|
overscrollBehavior: 'contain',
|
|
36
|
-
'-webkit-overflow-scrolling': 'touch',
|
|
37
36
|
gridAutoFlow: 'row',
|
|
38
37
|
gridGap: 0,
|
|
39
38
|
zIndex: 2
|
|
40
39
|
}, "suggestionList_defaults"),
|
|
41
40
|
blockOptions: style({
|
|
41
|
+
borderRadius: vars.border.radius[3],
|
|
42
42
|
overflowY: 'auto',
|
|
43
43
|
maxHeight: '384px'
|
|
44
44
|
}, "suggestionList_blockOptions"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoSuggest.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AutoSuggest.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.tsx"],"names":[],"mappings":"AACA,OAAO,EAA8B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAIvE,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;IACtD,OAAO,CAAC,CAAC,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;CACrD;AAyGD,eAAO,MAAM,WAAW,EAwFlB,CAAC,WAAW,SAAS,OAAO,EACjC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAA;CAAE,KACnD,YAAY,CAAC;AAyhBlB,eAAe,WAAW,CAAC"}
|
|
@@ -362,7 +362,7 @@ const AutoSuggestInput = forwardRef(function AutoSuggestInput(_ref3, ref) {
|
|
|
362
362
|
triggerRef: triggerRef,
|
|
363
363
|
alignment: EAlignment.BOTTOM_LEFT,
|
|
364
364
|
isOpen: shouldOpenFlyout,
|
|
365
|
-
triggerOffset:
|
|
365
|
+
triggerOffset: 1,
|
|
366
366
|
children: _jsx(SuggestionsList, {
|
|
367
367
|
className: styles.suggestionList.blockOptions,
|
|
368
368
|
suggestionListRef: suggestionListRef,
|
|
@@ -393,7 +393,7 @@ const SuggestionsList = _ref4 => {
|
|
|
393
393
|
} = _ref4;
|
|
394
394
|
return _jsxs(Box, {
|
|
395
395
|
ref: suggestionListRef,
|
|
396
|
-
|
|
396
|
+
as: "ul",
|
|
397
397
|
backgroundColour: "white",
|
|
398
398
|
className: [styles.suggestionList.defaults, className],
|
|
399
399
|
id: suggestionListId,
|
|
@@ -405,7 +405,7 @@ const SuggestionsList = _ref4 => {
|
|
|
405
405
|
const highlight = highlightIndex === idx;
|
|
406
406
|
return _jsx(Box, {
|
|
407
407
|
ref: highlight ? highlightRef : undefined,
|
|
408
|
-
|
|
408
|
+
as: "li",
|
|
409
409
|
id: getSuggestionId(suggestionListId, idx),
|
|
410
410
|
role: "option",
|
|
411
411
|
"aria-selected": highlight,
|
|
@@ -505,7 +505,7 @@ const AutoSuggestInputPrimitive = withEnhancedInput(_ref5 => {
|
|
|
505
505
|
justifyContent: "center",
|
|
506
506
|
className: className,
|
|
507
507
|
children: [_jsx(Box, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
508
|
-
|
|
508
|
+
as: "input",
|
|
509
509
|
flexGrow: 1
|
|
510
510
|
}, inputEventHandlers), field), {}, {
|
|
511
511
|
ref: handleRef,
|
|
@@ -543,9 +543,9 @@ const SuggestionListFlyout = _ref6 => {
|
|
|
543
543
|
children: _jsx(Box, {
|
|
544
544
|
borderWidth: "1",
|
|
545
545
|
borderColour: "gray",
|
|
546
|
-
borderRadius: "
|
|
546
|
+
borderRadius: "3",
|
|
547
547
|
backgroundColour: "white",
|
|
548
|
-
boxShadow: "
|
|
548
|
+
boxShadow: "4",
|
|
549
549
|
style: {
|
|
550
550
|
width: triggerRef.current && !autoWidth ? triggerRef.current.clientWidth : undefined
|
|
551
551
|
},
|
|
@@ -1,178 +1,9 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
title: string;
|
|
5
|
-
component: <PayloadType extends unknown>(p: import("./AutoSuggest").Props<PayloadType> & {
|
|
6
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
7
|
-
}) => React.ReactElement;
|
|
8
|
-
decorators: ((Story: import("@storybook/core/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
9
|
-
autoFocus?: boolean | undefined;
|
|
10
|
-
autoWidth?: boolean | undefined;
|
|
11
|
-
inlineOptions?: boolean | undefined;
|
|
12
|
-
fieldIcon?: import("@autoguru/icons").IconType | undefined;
|
|
13
|
-
value: import("./AutoSuggest").AutoSuggestValue<unknown> | null;
|
|
14
|
-
suggestions: import("./AutoSuggest").AutoSuggestValue<unknown>[];
|
|
15
|
-
itemRenderer?: import("./AutoSuggest").AutoSuggestItemRenderer<unknown> | undefined;
|
|
16
|
-
onChange?: ((value: import("./AutoSuggest").AutoSuggestValue<unknown>) => void) | undefined;
|
|
17
|
-
onEnter?: ((value: import("./AutoSuggest").AutoSuggestValue<unknown>) => void) | undefined;
|
|
18
|
-
id?: string | undefined;
|
|
19
|
-
backgroundColour?: keyof typeof import("../Box/useBoxStyles.css").backgroundColours | undefined;
|
|
20
|
-
size?: keyof typeof import("../private/InputBase/withEnhancedInput.css").inputItselfSize | undefined;
|
|
21
|
-
name: string;
|
|
22
|
-
disabled?: boolean | undefined;
|
|
23
|
-
key?: React.Key | null | undefined;
|
|
24
|
-
className?: string | undefined;
|
|
25
|
-
maxLength?: number | undefined;
|
|
26
|
-
placeholder: string;
|
|
27
|
-
"aria-activedescendant"?: string | undefined | undefined;
|
|
28
|
-
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
29
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
30
|
-
"aria-braillelabel"?: string | undefined | undefined;
|
|
31
|
-
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
32
|
-
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
33
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
34
|
-
"aria-colcount"?: number | undefined | undefined;
|
|
35
|
-
"aria-colindex"?: number | undefined | undefined;
|
|
36
|
-
"aria-colindextext"?: string | undefined | undefined;
|
|
37
|
-
"aria-colspan"?: number | undefined | undefined;
|
|
38
|
-
"aria-controls"?: string | undefined | undefined;
|
|
39
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
40
|
-
"aria-describedby"?: string | undefined | undefined;
|
|
41
|
-
"aria-description"?: string | undefined | undefined;
|
|
42
|
-
"aria-details"?: string | undefined | undefined;
|
|
43
|
-
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
44
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
45
|
-
"aria-errormessage"?: string | undefined | undefined;
|
|
46
|
-
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
47
|
-
"aria-flowto"?: string | undefined | undefined;
|
|
48
|
-
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
49
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
50
|
-
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
51
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
52
|
-
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
53
|
-
"aria-label"?: string | undefined | undefined;
|
|
54
|
-
"aria-labelledby"?: string | undefined | undefined;
|
|
55
|
-
"aria-level"?: number | undefined | undefined;
|
|
56
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
57
|
-
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
58
|
-
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
59
|
-
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
60
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
61
|
-
"aria-owns"?: string | undefined | undefined;
|
|
62
|
-
"aria-placeholder"?: string | undefined | undefined;
|
|
63
|
-
"aria-posinset"?: number | undefined | undefined;
|
|
64
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
65
|
-
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
66
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
67
|
-
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
68
|
-
"aria-roledescription"?: string | undefined | undefined;
|
|
69
|
-
"aria-rowcount"?: number | undefined | undefined;
|
|
70
|
-
"aria-rowindex"?: number | undefined | undefined;
|
|
71
|
-
"aria-rowindextext"?: string | undefined | undefined;
|
|
72
|
-
"aria-rowspan"?: number | undefined | undefined;
|
|
73
|
-
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
74
|
-
"aria-setsize"?: number | undefined | undefined;
|
|
75
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
76
|
-
"aria-valuemax"?: number | undefined | undefined;
|
|
77
|
-
"aria-valuemin"?: number | undefined | undefined;
|
|
78
|
-
"aria-valuenow"?: number | undefined | undefined;
|
|
79
|
-
"aria-valuetext"?: string | undefined | undefined;
|
|
80
|
-
onFocus?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
81
|
-
onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
82
|
-
onReset?: (() => void) | undefined;
|
|
83
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
84
|
-
onClick?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
85
|
-
onMouseEnter?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
86
|
-
onMouseLeave?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
87
|
-
isLoading?: boolean | undefined;
|
|
88
|
-
reserveHintSpace?: boolean | undefined;
|
|
89
|
-
hintText?: React.ReactNode;
|
|
90
|
-
notch?: boolean | undefined;
|
|
91
|
-
attach?: keyof typeof import("../private/InputBase/NotchedBase.css").bordersAttach["complete"] | undefined;
|
|
92
|
-
borderMerged?: keyof typeof import("../private/InputBase/NotchedBase.css").bordersMerged["complete"] | undefined;
|
|
93
|
-
isFocused?: boolean | undefined;
|
|
94
|
-
prefixIcon?: import("@autoguru/icons").IconType | undefined;
|
|
95
|
-
wrapperRef?: React.Ref<HTMLDivElement> | undefined;
|
|
96
|
-
isTouched?: boolean | undefined;
|
|
97
|
-
isValid?: boolean | undefined;
|
|
98
|
-
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
99
|
-
}>) => React.JSX.Element)[];
|
|
100
|
-
argTypes: {
|
|
101
|
-
value: {
|
|
102
|
-
options: {
|
|
103
|
-
unselected: null;
|
|
104
|
-
};
|
|
105
|
-
defaultValue: null;
|
|
106
|
-
control: {
|
|
107
|
-
type: "select";
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
attach: {
|
|
111
|
-
defaultValue: string;
|
|
112
|
-
description: string;
|
|
113
|
-
options: ("NONE" | "LEFT" | "TOP" | "RIGHT" | "BOTTOM" | "ALL" | undefined)[];
|
|
114
|
-
control: {
|
|
115
|
-
type: "select";
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
fieldIcon: {
|
|
119
|
-
options: string[];
|
|
120
|
-
mapping: {
|
|
121
|
-
None: null;
|
|
122
|
-
Magnify: React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
123
|
-
Car: React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
124
|
-
'Car Multiple': React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
125
|
-
Calendar: React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
126
|
-
'Account Edit': React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
127
|
-
'Alert Circle': React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
128
|
-
'Currency USD': React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
129
|
-
Plus: React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
130
|
-
Star: React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
131
|
-
Check: React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
132
|
-
};
|
|
133
|
-
defaultValue: null;
|
|
134
|
-
description: string;
|
|
135
|
-
};
|
|
136
|
-
prefixIcon: {
|
|
137
|
-
options: string[];
|
|
138
|
-
mapping: {
|
|
139
|
-
None: null;
|
|
140
|
-
Magnify: React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
141
|
-
Car: React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
142
|
-
'Car Multiple': React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
143
|
-
Calendar: React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
144
|
-
'Account Edit': React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
145
|
-
'Alert Circle': React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
146
|
-
'Currency USD': React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
147
|
-
Plus: React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
148
|
-
Star: React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
149
|
-
Check: React.ReactElement<React.SVGAttributes<SVGElement>, "svg">;
|
|
150
|
-
};
|
|
151
|
-
defaultValue: null;
|
|
152
|
-
description: string;
|
|
153
|
-
};
|
|
154
|
-
wrapperRef: {
|
|
155
|
-
control: {
|
|
156
|
-
disable: true;
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
ref: {
|
|
160
|
-
control: {
|
|
161
|
-
disable: true;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
render: (args: import("./AutoSuggest").Props<unknown> & {
|
|
166
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
167
|
-
}) => React.JSX.Element;
|
|
168
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { AutoSuggest } from '.';
|
|
3
|
+
declare const meta: Meta<typeof AutoSuggest>;
|
|
169
4
|
export default meta;
|
|
170
5
|
type Story = StoryObj<typeof meta>;
|
|
171
6
|
export declare const Standard: Story;
|
|
172
|
-
export declare const
|
|
173
|
-
export declare const
|
|
174
|
-
export declare const Disabled: Story;
|
|
175
|
-
export declare const Valid: Story;
|
|
176
|
-
export declare const Invalid: Story;
|
|
177
|
-
export declare const Small: Story;
|
|
7
|
+
export declare const SmallSize: Story;
|
|
8
|
+
export declare const Loading: Story;
|
|
178
9
|
//# sourceMappingURL=AutoSuggest.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoSuggest.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"AutoSuggest.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AA+BhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAyElC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,eAAO,MAAM,QAAQ,EAAE,KAAU,CAAC;AAElC,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
4
|
+
__vanilla_filescope__.setFileScope("lib/components/Button/Button-cursor.css.ts", "@autoguru/overdrive");
|
|
5
|
+
import { style } from '@vanilla-extract/css';
|
|
6
|
+
import { recipe } from '@vanilla-extract/recipes';
|
|
7
|
+
import { themeContractVars as vars } from "../../themes/theme.css.js";
|
|
8
|
+
const smallHeight = '36px';
|
|
9
|
+
const baseStyles = style({
|
|
10
|
+
transitionDelay: '0s',
|
|
11
|
+
transitionTimingFunction: vars.animation.easing.standard,
|
|
12
|
+
transitionDuration: '0.1s',
|
|
13
|
+
transitionProperty: 'color, background-color, border-color, box-shadow, transform',
|
|
14
|
+
transform: 'translate(0, 0) scale(1)',
|
|
15
|
+
willChange: 'transform'
|
|
16
|
+
}, "baseStyles");
|
|
17
|
+
export const body = style({
|
|
18
|
+
display: 'grid',
|
|
19
|
+
gridAutoFlow: 'column dense',
|
|
20
|
+
gridGap: vars.space['1']
|
|
21
|
+
}, "body");
|
|
22
|
+
export const hiddenContent = style({
|
|
23
|
+
visibility: 'hidden'
|
|
24
|
+
}, "hiddenContent");
|
|
25
|
+
export const spinner = style({
|
|
26
|
+
margin: '0 auto'
|
|
27
|
+
}, "spinner");
|
|
28
|
+
export const button = recipe({
|
|
29
|
+
base: baseStyles,
|
|
30
|
+
variants: {
|
|
31
|
+
size: {
|
|
32
|
+
small: {
|
|
33
|
+
minWidth: vars.space['8'],
|
|
34
|
+
height: smallHeight,
|
|
35
|
+
gridGap: vars.space['1']
|
|
36
|
+
},
|
|
37
|
+
medium: {
|
|
38
|
+
minWidth: vars.space['9'],
|
|
39
|
+
height: vars.space['8'],
|
|
40
|
+
gridGap: vars.space['2']
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
shape: {
|
|
44
|
+
default: {},
|
|
45
|
+
rounded: {
|
|
46
|
+
selectors: {
|
|
47
|
+
'&[data-size="small"]': {
|
|
48
|
+
minWidth: smallHeight
|
|
49
|
+
},
|
|
50
|
+
'&[data-size="medium"]': {
|
|
51
|
+
minWidth: vars.space['8']
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
iconOnly: {
|
|
56
|
+
selectors: {
|
|
57
|
+
'&[data-size="small"]': {
|
|
58
|
+
width: smallHeight
|
|
59
|
+
},
|
|
60
|
+
'&[data-size="medium"]': {
|
|
61
|
+
width: vars.space['8']
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
variant: {
|
|
67
|
+
primary: {
|
|
68
|
+
color: vars.colours.intent.primary.foreground,
|
|
69
|
+
backgroundColor: vars.colours.intent.primary.background.standard,
|
|
70
|
+
':hover': {
|
|
71
|
+
color: vars.colours.intent.primary.foreground,
|
|
72
|
+
backgroundColor: vars.colours.gamut.green700
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
brand: {
|
|
76
|
+
color: vars.colours.intent.brand.foreground,
|
|
77
|
+
backgroundColor: vars.colours.intent.brand.background.standard,
|
|
78
|
+
':hover': {
|
|
79
|
+
backgroundColor: vars.colours.intent.brand.background.strong
|
|
80
|
+
},
|
|
81
|
+
':active': {
|
|
82
|
+
backgroundColor: vars.colours.intent.brand.background.strong
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
secondary: {
|
|
86
|
+
color: vars.colours.intent.secondary.foreground,
|
|
87
|
+
backgroundColor: vars.colours.intent.secondary.background.standard,
|
|
88
|
+
border: `1px solid ${vars.colours.intent.secondary.border}`,
|
|
89
|
+
selectors: {
|
|
90
|
+
'&:hover, &:focus, &:active': {
|
|
91
|
+
backgroundColor: vars.colours.intent.secondary.background.strong,
|
|
92
|
+
borderColor: vars.colours.intent.secondary.background.strong
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
danger: {
|
|
97
|
+
backgroundColor: vars.colours.intent.danger.background.standard,
|
|
98
|
+
color: vars.colours.intent.danger.foreground,
|
|
99
|
+
':hover': {
|
|
100
|
+
backgroundColor: vars.colours.intent.danger.background.strong
|
|
101
|
+
},
|
|
102
|
+
':active': {
|
|
103
|
+
backgroundColor: vars.colours.intent.danger.background.strong
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
information: {
|
|
107
|
+
backgroundColor: vars.colours.intent.information.background.standard,
|
|
108
|
+
color: vars.colours.intent.information.foreground,
|
|
109
|
+
':hover': {
|
|
110
|
+
backgroundColor: vars.colours.intent.information.background.strong
|
|
111
|
+
},
|
|
112
|
+
':active': {
|
|
113
|
+
backgroundColor: vars.colours.intent.information.background.strong
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
warning: {
|
|
117
|
+
backgroundColor: vars.colours.intent.warning.background.standard,
|
|
118
|
+
color: vars.colours.intent.warning.foreground,
|
|
119
|
+
':hover': {
|
|
120
|
+
backgroundColor: vars.colours.intent.warning.background.strong
|
|
121
|
+
},
|
|
122
|
+
':active': {
|
|
123
|
+
backgroundColor: vars.colours.intent.warning.background.strong
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
success: {
|
|
127
|
+
backgroundColor: vars.colours.intent.success.background.standard,
|
|
128
|
+
color: vars.colours.intent.success.foreground,
|
|
129
|
+
':hover': {
|
|
130
|
+
backgroundColor: vars.colours.intent.success.background.strong
|
|
131
|
+
},
|
|
132
|
+
':active': {
|
|
133
|
+
backgroundColor: vars.colours.intent.success.background.strong
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
appearance: {
|
|
138
|
+
default: {},
|
|
139
|
+
minimal: {
|
|
140
|
+
color: vars.typography.colour.neutral,
|
|
141
|
+
backgroundColor: 'transparent',
|
|
142
|
+
selectors: {
|
|
143
|
+
'&[data-variant="primary"]:hover, &[data-variant="primary"]:active': {
|
|
144
|
+
color: vars.colours.intent.primary.background.strong,
|
|
145
|
+
backgroundColor: vars.colours.intent.primary.background.mild,
|
|
146
|
+
boxShadow: 'none'
|
|
147
|
+
},
|
|
148
|
+
'&[data-variant="brand"]:hover, &[data-variant="brand"]:active': {
|
|
149
|
+
color: vars.colours.intent.brand.background.strong,
|
|
150
|
+
backgroundColor: vars.colours.intent.brand.background.mild,
|
|
151
|
+
boxShadow: 'none'
|
|
152
|
+
},
|
|
153
|
+
'&[data-variant="secondary"]:hover, &[data-variant="secondary"]:active': {
|
|
154
|
+
color: vars.typography.colour.secondary,
|
|
155
|
+
backgroundColor: vars.colours.intent.secondary.background.strong,
|
|
156
|
+
boxShadow: 'none'
|
|
157
|
+
},
|
|
158
|
+
'&[data-variant="danger"]:hover, &[data-variant="danger"]:active': {
|
|
159
|
+
color: vars.colours.intent.danger.background.strong,
|
|
160
|
+
backgroundColor: vars.colours.intent.danger.background.mild,
|
|
161
|
+
boxShadow: 'none'
|
|
162
|
+
},
|
|
163
|
+
'&[data-variant="information"]:hover, &[data-variant="information"]:active': {
|
|
164
|
+
color: vars.colours.intent.information.background.strong,
|
|
165
|
+
backgroundColor: vars.colours.intent.information.background.mild,
|
|
166
|
+
boxShadow: 'none'
|
|
167
|
+
},
|
|
168
|
+
'&[data-variant="warning"]:hover, &[data-variant="warning"]:active': {
|
|
169
|
+
color: vars.colours.intent.warning.background.strong,
|
|
170
|
+
backgroundColor: vars.colours.intent.warning.background.mild,
|
|
171
|
+
boxShadow: 'none'
|
|
172
|
+
},
|
|
173
|
+
'&[data-variant="success"]:hover, &[data-variant="success"]:active': {
|
|
174
|
+
color: vars.colours.intent.success.background.strong,
|
|
175
|
+
backgroundColor: vars.colours.intent.success.background.mild,
|
|
176
|
+
boxShadow: 'none'
|
|
177
|
+
},
|
|
178
|
+
'&[data-shape="default"]': {
|
|
179
|
+
minWidth: '50px'
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
state: {
|
|
185
|
+
enabled: {
|
|
186
|
+
cursor: 'pointer'
|
|
187
|
+
},
|
|
188
|
+
disabled: {
|
|
189
|
+
cursor: 'not-allowed',
|
|
190
|
+
opacity: '0.3'
|
|
191
|
+
},
|
|
192
|
+
loading: {
|
|
193
|
+
cursor: 'not-allowed'
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
defaultVariants: {
|
|
198
|
+
size: 'medium',
|
|
199
|
+
shape: 'default',
|
|
200
|
+
variant: 'primary',
|
|
201
|
+
appearance: 'default',
|
|
202
|
+
state: 'enabled'
|
|
203
|
+
}
|
|
204
|
+
}, "button");
|
|
205
|
+
__vanilla_filescope__.endFileScope();
|