@autoguru/overdrive 4.11.2 → 4.11.3

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.
Files changed (204) hide show
  1. package/dist/components/Actions/stories.js +0 -5
  2. package/dist/components/Alert/Alert.css.d.ts +1 -2
  3. package/dist/components/Alert/Alert.css.d.ts.map +1 -1
  4. package/dist/components/Alert/Alert.css.js +8 -21
  5. package/dist/components/Alert/Alert.d.ts +2 -2
  6. package/dist/components/Alert/Alert.d.ts.map +1 -1
  7. package/dist/components/Alert/Alert.js +10 -4
  8. package/dist/components/Alert/stories.js +0 -10
  9. package/dist/components/Anchor/Anchor.css.js +0 -3
  10. package/dist/components/Anchor/Anchor.js +0 -2
  11. package/dist/components/Anchor/stories.js +0 -9
  12. package/dist/components/AutoSuggest/AutoSuggest.css.js +0 -3
  13. package/dist/components/AutoSuggest/AutoSuggest.js +56 -102
  14. package/dist/components/AutoSuggest/stories.js +0 -28
  15. package/dist/components/AutoSuggest/useLayoutSuggestionVisible.js +0 -2
  16. package/dist/components/Badge/Badge.css.js +0 -3
  17. package/dist/components/Badge/stories.js +0 -12
  18. package/dist/components/Box/Box.js +53 -57
  19. package/dist/components/Box/argTypes.d.ts.map +1 -1
  20. package/dist/components/Box/argTypes.js +0 -3
  21. package/dist/components/Box/stories.js +0 -5
  22. package/dist/components/Box/useBoxStyles.css.d.ts.map +1 -1
  23. package/dist/components/Box/useBoxStyles.css.js +0 -8
  24. package/dist/components/Box/useBoxStyles.d.ts.map +1 -1
  25. package/dist/components/BulletList/Bullet.css.js +0 -3
  26. package/dist/components/BulletList/Bullet.js +0 -6
  27. package/dist/components/BulletList/BulletList.css.js +0 -3
  28. package/dist/components/BulletList/stories.js +0 -6
  29. package/dist/components/BulletText/BulletText.css.js +0 -3
  30. package/dist/components/BulletText/stories.js +0 -5
  31. package/dist/components/Button/Button.css.js +0 -3
  32. package/dist/components/Button/Button.js +0 -11
  33. package/dist/components/Button/stories.js +0 -6
  34. package/dist/components/CheckBox/CheckBox.css.js +0 -3
  35. package/dist/components/CheckBox/stories.js +3 -11
  36. package/dist/components/ColourInput/ColourInput.css.js +0 -3
  37. package/dist/components/ColourInput/ColourInput.js +9 -13
  38. package/dist/components/ColourInput/stories.js +0 -23
  39. package/dist/components/Columns/Column.css.js +0 -5
  40. package/dist/components/Columns/Column.js +10 -14
  41. package/dist/components/Columns/Columns.css.js +0 -3
  42. package/dist/components/Columns/Columns.js +11 -15
  43. package/dist/components/Columns/stories.js +0 -6
  44. package/dist/components/DateInput/DateInput.js +9 -13
  45. package/dist/components/DateInput/stories.js +0 -25
  46. package/dist/components/DatePicker/DatePicker.css.js +0 -3
  47. package/dist/components/DatePicker/DatePicker.js +8 -13
  48. package/dist/components/DatePicker/stories.js +0 -5
  49. package/dist/components/DividerLine/DividerLine.css.d.ts +0 -5
  50. package/dist/components/DividerLine/DividerLine.css.d.ts.map +1 -1
  51. package/dist/components/DividerLine/DividerLine.css.js +1 -31
  52. package/dist/components/DividerLine/DividerLine.d.ts +2 -1
  53. package/dist/components/DividerLine/DividerLine.d.ts.map +1 -1
  54. package/dist/components/DividerLine/DividerLine.js +2 -1
  55. package/dist/components/DividerLine/stories.js +0 -9
  56. package/dist/components/Flyout/Flyout.js +7 -11
  57. package/dist/components/Flyout/stories.js +0 -6
  58. package/dist/components/Heading/stories.js +0 -7
  59. package/dist/components/Icon/Icon.css.js +0 -3
  60. package/dist/components/Icon/stories.js +0 -11
  61. package/dist/components/Image/Image.js +3 -7
  62. package/dist/components/Image/ResponsiveImage.js +6 -10
  63. package/dist/components/Image/SimpleImage.js +7 -11
  64. package/dist/components/Image/stories.js +0 -13
  65. package/dist/components/Inline/Inline.js +0 -6
  66. package/dist/components/Inline/stories.js +0 -6
  67. package/dist/components/LinearProgressIndicator/LinearProgressIndicator.css.js +0 -3
  68. package/dist/components/LinearProgressIndicator/stories.js +0 -5
  69. package/dist/components/LoadingBox/LoadingBox.css.js +0 -3
  70. package/dist/components/LoadingBox/LoadingBox.js +8 -14
  71. package/dist/components/LoadingBox/stories.js +0 -5
  72. package/dist/components/Meta/Meta.css.js +0 -3
  73. package/dist/components/Meta/stories.js +0 -5
  74. package/dist/components/MinimalModal/MinimalModal.css.js +0 -3
  75. package/dist/components/MinimalModal/MinimalModal.js +0 -2
  76. package/dist/components/MinimalModal/stories.js +0 -11
  77. package/dist/components/Modal/Modal.css.d.ts.map +1 -1
  78. package/dist/components/Modal/Modal.css.js +0 -5
  79. package/dist/components/Modal/Modal.d.ts.map +1 -1
  80. package/dist/components/Modal/Modal.js +5 -18
  81. package/dist/components/Modal/stories.js +0 -5
  82. package/dist/components/NumberBubble/NumberBubble.css.js +0 -3
  83. package/dist/components/NumberBubble/NumberBubble.js +5 -9
  84. package/dist/components/NumberBubble/stories.js +0 -5
  85. package/dist/components/NumberInput/NumberInput.js +14 -20
  86. package/dist/components/NumberInput/stories.js +0 -25
  87. package/dist/components/OrderedList/OrderedList.css.js +0 -3
  88. package/dist/components/OrderedList/OrderedList.js +0 -4
  89. package/dist/components/OrderedList/stories.js +0 -5
  90. package/dist/components/OutsideClick/OutsideClick.js +0 -3
  91. package/dist/components/OutsideClick/stories.js +0 -6
  92. package/dist/components/OverdriveProvider/OverdriveProvider.js +0 -1
  93. package/dist/components/Pagination/Pagination.css.js +0 -3
  94. package/dist/components/Pagination/Pagination.js +0 -20
  95. package/dist/components/Pagination/stories.js +0 -25
  96. package/dist/components/Portal/Portal.js +0 -7
  97. package/dist/components/Portal/stories.js +0 -9
  98. package/dist/components/Positioner/Positioner.css.js +0 -3
  99. package/dist/components/Positioner/Positioner.js +7 -19
  100. package/dist/components/Positioner/alignment.js +0 -1
  101. package/dist/components/Positioner/stories.js +0 -10
  102. package/dist/components/ProgressBar/ProgressBar.css.js +0 -3
  103. package/dist/components/ProgressBar/stories.js +0 -6
  104. package/dist/components/ProgressBarGroup/ProgressBarGroup.css.js +0 -3
  105. package/dist/components/ProgressBarGroup/stories.js +0 -5
  106. package/dist/components/ProgressSpinner/ProgressSpinner.css.js +0 -3
  107. package/dist/components/ProgressSpinner/stories.js +0 -5
  108. package/dist/components/Radio/Radio.css.js +0 -3
  109. package/dist/components/Radio/Radio.js +0 -3
  110. package/dist/components/Radio/stories.js +8 -17
  111. package/dist/components/Section/Section.css.js +0 -3
  112. package/dist/components/Section/stories.js +0 -5
  113. package/dist/components/SelectInput/SelectInput.css.js +0 -3
  114. package/dist/components/SelectInput/SelectInput.js +10 -14
  115. package/dist/components/SelectInput/stories.js +0 -23
  116. package/dist/components/SimplePagination/SimplePagination.js +0 -4
  117. package/dist/components/SimplePagination/stories.js +0 -9
  118. package/dist/components/Stack/Divider.css.js +0 -3
  119. package/dist/components/Stack/Stack.css.js +0 -3
  120. package/dist/components/Stack/Stack.js +0 -2
  121. package/dist/components/Stack/stories.js +0 -11
  122. package/dist/components/StandardModal/StandardModal.css.js +0 -5
  123. package/dist/components/StandardModal/StandardModal.js +0 -4
  124. package/dist/components/StandardModal/stories.js +0 -5
  125. package/dist/components/StarRating/StarRating.css.js +0 -3
  126. package/dist/components/StarRating/StarRating.js +0 -12
  127. package/dist/components/StarRating/stories.js +0 -5
  128. package/dist/components/Stepper/Stepper.css.d.ts.map +1 -1
  129. package/dist/components/Stepper/Stepper.css.js +1 -5
  130. package/dist/components/Stepper/Stepper.d.ts.map +1 -1
  131. package/dist/components/Stepper/Stepper.js +4 -8
  132. package/dist/components/Stepper/stories.js +4 -12
  133. package/dist/components/Switch/Switch.css.js +0 -3
  134. package/dist/components/Switch/Switch.js +0 -1
  135. package/dist/components/Switch/stories.js +4 -16
  136. package/dist/components/Table/Table.css.js +0 -3
  137. package/dist/components/Table/TableCell.css.js +0 -3
  138. package/dist/components/Table/TableCell.js +0 -1
  139. package/dist/components/Table/TableHeadCell.css.js +0 -5
  140. package/dist/components/Table/TableHeadCell.js +0 -6
  141. package/dist/components/Table/stories.js +0 -7
  142. package/dist/components/Tabs/Tab.css.js +0 -3
  143. package/dist/components/Tabs/Tab.js +0 -3
  144. package/dist/components/Tabs/TabList.css.js +0 -3
  145. package/dist/components/Tabs/TabList.js +0 -7
  146. package/dist/components/Tabs/TabPane.css.js +0 -3
  147. package/dist/components/Tabs/TabPanes.css.js +0 -3
  148. package/dist/components/Tabs/stories.js +0 -7
  149. package/dist/components/Text/stories.js +0 -10
  150. package/dist/components/Text/useTextStyles.css.js +0 -5
  151. package/dist/components/TextAreaInput/TextAreaInput.js +9 -13
  152. package/dist/components/TextAreaInput/stories.js +0 -20
  153. package/dist/components/TextBubble/TextBubble.css.js +0 -3
  154. package/dist/components/TextBubble/TextBubble.js +5 -13
  155. package/dist/components/TextBubble/stories.js +0 -5
  156. package/dist/components/TextContainer/TextContainer.js +0 -2
  157. package/dist/components/TextContainer/stories.js +0 -5
  158. package/dist/components/TextInput/TextInput.js +9 -14
  159. package/dist/components/TextInput/stories.js +0 -35
  160. package/dist/components/TextLink/TextLink.css.js +0 -3
  161. package/dist/components/TextLink/TextLink.js +9 -18
  162. package/dist/components/TextLink/stories.js +0 -6
  163. package/dist/components/ThemeOverrideProvider/ThemeOverrideProvider.js +0 -3
  164. package/dist/components/ThemeOverrideProvider/useBuildThemeOverrides.js +7 -15
  165. package/dist/components/Toaster/Toast.css.js +0 -3
  166. package/dist/components/Toaster/Toast.js +0 -27
  167. package/dist/components/Tooltip/Tooltip.css.js +0 -5
  168. package/dist/components/Tooltip/Tooltip.js +0 -1
  169. package/dist/components/Tooltip/stories.js +0 -5
  170. package/dist/components/VisuallyHidden/VisuallyHidden.css.js +0 -3
  171. package/dist/components/VisuallyHidden/stories.js +0 -5
  172. package/dist/components/private/CheckableBase/CheckableBase.css.js +0 -3
  173. package/dist/components/private/CheckableBase/CheckableBase.js +0 -2
  174. package/dist/components/private/InputBase/HintText.css.js +0 -3
  175. package/dist/components/private/InputBase/InputState.css.js +0 -3
  176. package/dist/components/private/InputBase/NotchedBase.css.js +0 -6
  177. package/dist/components/private/InputBase/NotchedBase.js +0 -1
  178. package/dist/components/private/InputBase/withEnhancedInput.css.js +0 -3
  179. package/dist/components/private/InputBase/withEnhancedInput.js +28 -39
  180. package/dist/hooks/useAttachedBoxes/useAttachedBoxes.css.js +0 -3
  181. package/dist/hooks/useAttachedBoxes/useAttachedBoxes.js +4 -12
  182. package/dist/hooks/useMedia/stories.js +0 -1
  183. package/dist/hooks/useMedia/useMedia.js +0 -4
  184. package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.css.js +0 -3
  185. package/dist/hooks/useNegativeMargin/useNegativeMarginTop.css.js +0 -3
  186. package/dist/hooks/useResponsiveValue/stories.js +0 -1
  187. package/dist/reset/globalFonts.css.js +0 -3
  188. package/dist/reset/globalReset.css.js +0 -3
  189. package/dist/reset/reset.css.js +0 -5
  190. package/dist/themes/base/tokens.js +0 -3
  191. package/dist/themes/base/vars.css.js +0 -3
  192. package/dist/themes/flat_red/tokens.js +0 -3
  193. package/dist/themes/flat_red/vars.css.js +0 -3
  194. package/dist/themes/helpers.js +0 -2
  195. package/dist/themes/makeTheme.js +0 -3
  196. package/dist/themes/neutral/tokens.js +0 -3
  197. package/dist/themes/neutral/vars.css.js +0 -3
  198. package/dist/themes/theme.css.js +0 -5
  199. package/dist/utils/index.js +0 -13
  200. package/dist/utils/mapTokenToProperty.js +0 -3
  201. package/dist/utils/resolveResponsiveProps.js +0 -6
  202. package/dist/utils/responsiveProps.css.js +0 -5
  203. package/dist/utils/responsiveStyle.js +0 -6
  204. package/package.json +1 -1
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
-
5
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
-
7
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
-
9
6
  import clsx from 'clsx';
10
7
  import * as React from 'react';
11
8
  import { cloneElement, createElement, forwardRef, isValidElement, useCallback, useEffect, useMemo, useState } from 'react';
@@ -18,16 +15,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
18
15
  import { Fragment as _Fragment } from "react/jsx-runtime";
19
16
  import { jsxs as _jsxs } from "react/jsx-runtime";
20
17
  const DOUBLE_CLICK_DETECTION_PERIOD = 700;
21
-
22
18
  const getSpinnerColour = (variant, minimal) => minimal || variant === 'secondary' ? 'secondary' : 'light';
23
-
24
19
  const getBorderRadius = rounded => rounded ? 'pill' : '1';
25
-
26
20
  const getPadding = (size, loading) => {
27
21
  if (loading) return 'none';
28
22
  return size === 'small' ? '3' : '4';
29
23
  };
30
-
31
24
  export const Button = forwardRef((_ref, ref) => {
32
25
  let {
33
26
  children,
@@ -95,7 +88,6 @@ export const Button = forwardRef((_ref, ref) => {
95
88
  };
96
89
  const buttonContents = useMemo(() => {
97
90
  var _maybeIconProps$size;
98
-
99
91
  return _jsx(_Fragment, {
100
92
  children: isSingleIconChild && maybeIconProps ? _jsx(Icon, _objectSpread({
101
93
  size: ((_maybeIconProps$size = maybeIconProps.size) !== null && _maybeIconProps$size !== void 0 ? _maybeIconProps$size : size === 'small') ? 'small' : 'medium'
@@ -144,7 +136,6 @@ export const Button = forwardRef((_ref, ref) => {
144
136
  ref
145
137
  }, props), child);
146
138
  });
147
-
148
139
  const getButtonStates = (buttonStyles, variant, disabled, minimal, rounded) => {
149
140
  if (disabled) return minimal ? clsx(buttonStyles.minimal.defaults, {
150
141
  [buttonStyles.minimal.noneRounded]: !rounded
@@ -154,7 +145,6 @@ const getButtonStates = (buttonStyles, variant, disabled, minimal, rounded) => {
154
145
  });
155
146
  return styles.defaultStates[variant];
156
147
  };
157
-
158
148
  const getButtonSize = (buttonStyles, size, rounded, iconOnly) => {
159
149
  const currentSize = buttonStyles.size[size];
160
150
  return clsx(currentSize.default, {
@@ -162,5 +152,4 @@ const getButtonSize = (buttonStyles, size, rounded, iconOnly) => {
162
152
  [currentSize.iconOnly]: iconOnly
163
153
  });
164
154
  };
165
-
166
155
  export default Button;
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
-
5
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
-
7
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
-
9
6
  import { AccountBoxIcon } from '@autoguru/icons';
10
7
  import { action } from '@storybook/addon-actions';
11
8
  import * as React from 'react';
@@ -33,14 +30,12 @@ export default {
33
30
  }
34
31
  }
35
32
  };
36
-
37
33
  const Template = args => _jsx("div", {
38
34
  style: {
39
35
  width: 200
40
36
  },
41
37
  children: _jsx(Button, _objectSpread({}, args))
42
38
  });
43
-
44
39
  const TemplateMulti = args => _jsxs(_Fragment, {
45
40
  children: [_jsxs(Columns, {
46
41
  space: "3",
@@ -201,7 +196,6 @@ const TemplateMulti = args => _jsxs(_Fragment, {
201
196
  children: "Full Width"
202
197
  }))]
203
198
  });
204
-
205
199
  const standardProps = {
206
200
  isFullWidth: void 0,
207
201
  size: void 0,
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
4
-
5
4
  __vanilla_filescope__.setFileScope("lib/components/CheckBox/CheckBox.css.ts", "@autoguru/overdrive");
6
-
7
5
  import { style, styleVariants } from '@vanilla-extract/css';
8
6
  import { themeContractVars as vars } from "../../themes/theme.css.js";
9
7
  export const icon = style({
@@ -28,5 +26,4 @@ export const base = styleVariants({
28
26
  backgroundColor: vars.colours.intent.primary.background.standard
29
27
  }
30
28
  }, "base");
31
-
32
29
  __vanilla_filescope__.endFileScope();
@@ -3,11 +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 = ["disabled"];
6
-
7
6
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
-
9
7
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
-
11
8
  import * as React from 'react';
12
9
  import { Badge } from "../Badge/index.js";
13
10
  import { Heading } from "../Heading/index.js";
@@ -46,10 +43,9 @@ const listData = [{
46
43
  }];
47
44
  export const list = _ref => {
48
45
  let {
49
- disabled
50
- } = _ref,
51
- args = _objectWithoutProperties(_ref, _excluded);
52
-
46
+ disabled
47
+ } = _ref,
48
+ args = _objectWithoutProperties(_ref, _excluded);
53
49
  return _jsx(_Fragment, {
54
50
  children: listData.map(item => {
55
51
  return _jsx(CheckBox, {
@@ -70,9 +66,7 @@ list.args = {
70
66
  coconut: true,
71
67
  strawberries: false
72
68
  };
73
-
74
69
  const Template = args => _jsx(CheckBox, _objectSpread({}, args));
75
-
76
70
  const uncheckedProps = {
77
71
  checked: false,
78
72
  disabled: false,
@@ -115,7 +109,6 @@ const multipleLinesProps = {
115
109
  children: 'There is a very good reason why this thing is a multi-line, sometimes we need to show people a lot of things. And thus this exists.',
116
110
  value: '1'
117
111
  };
118
-
119
112
  const Item = _ref2 => {
120
113
  let {
121
114
  label,
@@ -134,7 +127,6 @@ const Item = _ref2 => {
134
127
  })]
135
128
  });
136
129
  };
137
-
138
130
  const withComponentProps = {
139
131
  checked: false,
140
132
  disabled: false,
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
4
-
5
4
  __vanilla_filescope__.setFileScope("lib/components/ColourInput/ColourInput.css.ts", "@autoguru/overdrive");
6
-
7
5
  import { style, styleVariants } from '@vanilla-extract/css';
8
6
  import { themeContractVars as vars } from "../../themes/theme.css.js";
9
7
  export const input = style({
@@ -33,5 +31,4 @@ export const valueTextSize = styleVariants({
33
31
  left: vars.space['8']
34
32
  }
35
33
  }, "valueTextSize");
36
-
37
34
  __vanilla_filescope__.endFileScope();
@@ -3,11 +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
-
7
6
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
-
9
7
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
-
11
8
  import { warning } from '@autoguru/utilities';
12
9
  import clsx from 'clsx';
13
10
  import * as React from 'react';
@@ -19,16 +16,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
19
16
  import { jsxs as _jsxs } from "react/jsx-runtime";
20
17
  export const ColourInput = withEnhancedInput(_ref => {
21
18
  let {
22
- field,
23
- eventHandlers,
24
- validation,
25
- isLoading,
26
- suffixed,
27
- prefixed,
28
- size
29
- } = _ref,
30
- rest = _objectWithoutProperties(_ref, _excluded);
31
-
19
+ field,
20
+ eventHandlers,
21
+ validation,
22
+ isLoading,
23
+ suffixed,
24
+ prefixed,
25
+ size
26
+ } = _ref,
27
+ rest = _objectWithoutProperties(_ref, _excluded);
32
28
  process.env.NODE_ENV !== "production" ? warning(field.value !== '', 'Colour Input does not support empty values.') : void 0;
33
29
  return _jsxs(Box, {
34
30
  display: "flex",
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
-
5
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
-
7
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
-
9
6
  import { AccountEditIcon, AlertCircleIcon, CalendarIcon, CarIcon, CarMultipleIcon, CurrencyUsdIcon, FourByFourIcon, PlusIcon, StarIcon } from '@autoguru/icons';
10
7
  import { action } from '@storybook/addon-actions';
11
8
  import * as React from 'react';
@@ -61,9 +58,7 @@ const argTypes = {
61
58
  }
62
59
  }
63
60
  };
64
-
65
61
  const Template = args => _jsx(ColourInput, _objectSpread({}, args));
66
-
67
62
  const sharedProps = {
68
63
  disabled: false,
69
64
  name: 'date',
@@ -81,34 +76,28 @@ const sharedProps = {
81
76
  onBlur: action('onBlur')
82
77
  };
83
78
  const standardProps = sharedProps;
84
-
85
79
  const withAValueProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
86
80
  value: defaultColour,
87
81
  placeholder: 'What is your favourite car colour?'
88
82
  });
89
-
90
83
  const withHintTextProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
91
84
  hintText: 'Hint Text',
92
85
  placeholder: 'What is your favourite car colour?'
93
86
  });
94
-
95
87
  const withIconProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
96
88
  suffixIcon: FourByFourIcon
97
89
  });
98
-
99
90
  const disabledProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
100
91
  value: defaultColour,
101
92
  placeholder: 'What is your favourite car colour?',
102
93
  disabled: true
103
94
  });
104
-
105
95
  const validProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
106
96
  value: defaultColour,
107
97
  placeholder: 'What is your favourite car colour?',
108
98
  isTouched: true,
109
99
  isValid: true
110
100
  });
111
-
112
101
  const invalidProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
113
102
  value: '#ffd402',
114
103
  placeholder: 'What is your favourite car colour?',
@@ -116,22 +105,18 @@ const invalidProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
116
105
  isValid: false,
117
106
  hintText: 'Invalid colour'
118
107
  });
119
-
120
108
  const noNotchProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
121
109
  placeholder: 'What is your favourite car colour?',
122
110
  notch: false
123
111
  });
124
-
125
112
  const noNotchWithValueProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
126
113
  value: defaultColour,
127
114
  placeholder: 'What is your favourite car colour?',
128
115
  notch: false
129
116
  });
130
-
131
117
  const loadingProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
132
118
  isLoading: true
133
119
  });
134
-
135
120
  export const standard = Template.bind(standardProps);
136
121
  standard.args = standardProps;
137
122
  standard.argTypes = argTypes;
@@ -162,37 +147,29 @@ invalid.argTypes = argTypes;
162
147
  export const loading = Template.bind(loadingProps);
163
148
  loading.args = loadingProps;
164
149
  loading.argTypes = argTypes;
165
-
166
150
  const smallProps = _objectSpread(_objectSpread({}, standardProps), {}, {
167
151
  size: 'small'
168
152
  });
169
-
170
153
  export const small = Template.bind(smallProps);
171
154
  small.args = smallProps;
172
155
  small.argTypes = argTypes;
173
-
174
156
  const withValueSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
175
157
  size: 'small'
176
158
  });
177
-
178
159
  export const withValueSmall = Template.bind(withValueSmallProps);
179
160
  withValueSmall.args = withValueSmallProps;
180
161
  withValueSmall.argTypes = argTypes;
181
-
182
162
  const withIconSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
183
163
  suffixIcon: CarIcon,
184
164
  size: 'small'
185
165
  });
186
-
187
166
  export const withIconSmall = Template.bind(withIconSmallProps);
188
167
  withIconSmall.args = withIconSmallProps;
189
168
  withIconSmall.argTypes = argTypes;
190
-
191
169
  const loadingSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
192
170
  isLoading: true,
193
171
  size: 'small'
194
172
  });
195
-
196
173
  export const loadingSmall = Template.bind(loadingSmallProps);
197
174
  loadingSmall.args = loadingSmallProps;
198
175
  loadingSmall.argTypes = argTypes;
@@ -1,14 +1,10 @@
1
1
  "use strict";
2
2
 
3
3
  import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
4
-
5
4
  __vanilla_filescope__.setFileScope("lib/components/Columns/Column.css.ts", "@autoguru/overdrive");
6
-
7
5
  import { styleVariants } from '@vanilla-extract/css';
8
6
  import { makeResponsiveStyle } from "../../utils/responsiveProps.css.js";
9
-
10
7
  const getSizeStyle = scale => "".concat(scale * 100, "%");
11
-
12
8
  export const width = makeResponsiveStyle({
13
9
  '1/2': getSizeStyle(1 / 2),
14
10
  '1/3': getSizeStyle(1 / 3),
@@ -36,5 +32,4 @@ export const align = styleVariants({
36
32
  alignSelf: 'flex-end'
37
33
  }
38
34
  }, "align");
39
-
40
35
  __vanilla_filescope__.endFileScope();
@@ -3,11 +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
-
7
6
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
-
9
7
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
-
11
8
  import { invariant } from '@autoguru/utilities';
12
9
  import * as React from 'react';
13
10
  import { forwardRef, useContext } from 'react';
@@ -18,17 +15,16 @@ import { ColumnContext } from "./Columns.js";
18
15
  import { jsx as _jsx } from "react/jsx-runtime";
19
16
  export const Column = forwardRef((_ref, ref) => {
20
17
  let {
21
- className = '',
22
- children,
23
- width,
24
- alignSelf,
25
- is,
26
- noShrink = false,
27
- grow = false,
28
- order
29
- } = _ref,
30
- boxProps = _objectWithoutProperties(_ref, _excluded);
31
-
18
+ className = '',
19
+ children,
20
+ width,
21
+ alignSelf,
22
+ is,
23
+ noShrink = false,
24
+ grow = false,
25
+ order
26
+ } = _ref,
27
+ boxProps = _objectWithoutProperties(_ref, _excluded);
32
28
  const columnsContext = useContext(ColumnContext);
33
29
  !(columnsContext !== null) ? process.env.NODE_ENV !== "production" ? invariant(false, 'Column must be wrapped inside a Columns element') : invariant(false) : void 0;
34
30
  const {
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
4
-
5
4
  __vanilla_filescope__.setFileScope("lib/components/Columns/Columns.css.ts", "@autoguru/overdrive");
6
-
7
5
  import { styleVariants } from '@vanilla-extract/css';
8
6
  import { themeContractVars as vars } from "../../themes/theme.css.js";
9
7
  import { makeResponsiveStyle } from "../../utils/responsiveProps.css.js";
@@ -40,5 +38,4 @@ export const align = styleVariants({
40
38
  alignItems: 'flex-end'
41
39
  }
42
40
  }, "align");
43
-
44
41
  __vanilla_filescope__.endFileScope();
@@ -3,11 +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
-
7
6
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
-
9
7
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
-
11
8
  import clsx from 'clsx';
12
9
  import * as React from 'react';
13
10
  import { createContext, forwardRef, useMemo } from 'react';
@@ -19,18 +16,17 @@ import { jsx as _jsx } from "react/jsx-runtime";
19
16
  export const ColumnContext = createContext(null);
20
17
  export const Columns = forwardRef((_ref, ref) => {
21
18
  let {
22
- className = '',
23
- children,
24
- space,
25
- spaceX,
26
- spaceY,
27
- noWrap,
28
- wrappingDirection = 'default',
29
- align = 'stretch',
30
- is
31
- } = _ref,
32
- boxProps = _objectWithoutProperties(_ref, _excluded);
33
-
19
+ className = '',
20
+ children,
21
+ space,
22
+ spaceX,
23
+ spaceY,
24
+ noWrap,
25
+ wrappingDirection = 'default',
26
+ align = 'stretch',
27
+ is
28
+ } = _ref,
29
+ boxProps = _objectWithoutProperties(_ref, _excluded);
34
30
  const resolvedSpaceX = spaceX || space || ['none'];
35
31
  const resolvedSpaceY = spaceY || space || ['none'];
36
32
  const marginLeftFix = useNegativeMarginLeft(resolvedSpaceX);
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
-
5
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
-
7
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
-
9
6
  import * as React from 'react';
10
7
  import { Box } from "../Box/index.js";
11
8
  import { boxArgTypes, scaleOptions } from "../Box/argTypes.js";
@@ -48,7 +45,6 @@ export default {
48
45
  }
49
46
  }, boxArgTypes)
50
47
  };
51
-
52
48
  const Template = args => _jsxs(Columns, _objectSpread(_objectSpread({}, args), {}, {
53
49
  children: [_jsx(Column, {
54
50
  width: ['full', '1/3', '1/5'],
@@ -114,7 +110,6 @@ const Template = args => _jsxs(Columns, _objectSpread(_objectSpread({}, args), {
114
110
  })
115
111
  })]
116
112
  }));
117
-
118
113
  const TemplateColumn = args => _jsxs(Columns, _objectSpread(_objectSpread({}, standardProps), {}, {
119
114
  children: [_jsx(Column, _objectSpread(_objectSpread({}, args), {}, {
120
115
  children: _jsx(Box, {
@@ -184,7 +179,6 @@ const TemplateColumn = args => _jsxs(Columns, _objectSpread(_objectSpread({}, st
184
179
  })
185
180
  }))]
186
181
  }));
187
-
188
182
  const standardProps = {
189
183
  spaceX: ['1', '3', '8'],
190
184
  spaceY: ['1', '5'],
@@ -3,11 +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
-
7
6
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
-
9
7
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
-
11
8
  import { warning } from '@autoguru/utilities';
12
9
  import * as React from 'react';
13
10
  import { Box } from "../Box/index.js";
@@ -15,16 +12,15 @@ import { withEnhancedInput } from "../private/InputBase/index.js";
15
12
  import { jsx as _jsx } from "react/jsx-runtime";
16
13
  export const DateInput = withEnhancedInput(_ref => {
17
14
  let {
18
- field,
19
- eventHandlers,
20
- validation,
21
- isLoading,
22
- suffixed,
23
- prefixed,
24
- size
25
- } = _ref,
26
- rest = _objectWithoutProperties(_ref, _excluded);
27
-
15
+ field,
16
+ eventHandlers,
17
+ validation,
18
+ isLoading,
19
+ suffixed,
20
+ prefixed,
21
+ size
22
+ } = _ref,
23
+ rest = _objectWithoutProperties(_ref, _excluded);
28
24
  process.env.NODE_ENV !== "production" ? warning(field.value !== '', 'Date Input does not support empty values.') : void 0;
29
25
  return _jsx(Box, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
30
26
  is: "input"
@@ -1,18 +1,14 @@
1
1
  "use strict";
2
2
 
3
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
-
5
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
-
7
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
-
9
6
  import { AccountEditIcon, AlertCircleIcon, CalendarIcon, CarIcon, CarMultipleIcon, CurrencyUsdIcon, PlusIcon, StarIcon } from '@autoguru/icons';
10
7
  import { action } from '@storybook/addon-actions';
11
8
  import isChromatic from 'chromatic/isChromatic';
12
9
  import * as React from 'react';
13
10
  import { DateInput } from "./index.js";
14
11
  import { jsx as _jsx } from "react/jsx-runtime";
15
-
16
12
  const formatDate = function () {
17
13
  let date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
18
14
  const year = date.getFullYear();
@@ -20,7 +16,6 @@ const formatDate = function () {
20
16
  const day = date.getDate().toString().padStart(2, '0');
21
17
  return "".concat(year, "-").concat(month, "-").concat(day);
22
18
  };
23
-
24
19
  const todayStr = formatDate(isChromatic() ? new Date(2019, 5, 1) : new Date());
25
20
  export default {
26
21
  title: 'Components/Inputs/Date',
@@ -71,9 +66,7 @@ const argTypes = {
71
66
  }
72
67
  }
73
68
  };
74
-
75
69
  const Template = args => _jsx(DateInput, _objectSpread({}, args));
76
-
77
70
  const sharedProps = {
78
71
  disabled: false,
79
72
  name: 'date',
@@ -91,34 +84,28 @@ const sharedProps = {
91
84
  onBlur: action('onBlur')
92
85
  };
93
86
  const standardProps = sharedProps;
94
-
95
87
  const withAValueProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
96
88
  value: todayStr,
97
89
  placeholder: 'What is your DOB?'
98
90
  });
99
-
100
91
  const withHintTextProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
101
92
  hintText: 'Hint Text',
102
93
  placeholder: 'What is your DOB?'
103
94
  });
104
-
105
95
  const withIconProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
106
96
  prefixIcon: CalendarIcon
107
97
  });
108
-
109
98
  const disabledProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
110
99
  value: todayStr,
111
100
  placeholder: 'What is your DOB?',
112
101
  disabled: true
113
102
  });
114
-
115
103
  const validProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
116
104
  value: todayStr,
117
105
  placeholder: 'What is your DOB?',
118
106
  isTouched: true,
119
107
  isValid: true
120
108
  });
121
-
122
109
  const invalidProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
123
110
  value: '2050-10-13',
124
111
  placeholder: 'What is your DOB?',
@@ -126,22 +113,18 @@ const invalidProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
126
113
  isValid: false,
127
114
  hintText: 'Invalid date of birth'
128
115
  });
129
-
130
116
  const noNotchProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
131
117
  placeholder: 'What is your DOB?',
132
118
  notch: false
133
119
  });
134
-
135
120
  const noNotchWithValueProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
136
121
  value: todayStr,
137
122
  placeholder: 'What is your DOB?',
138
123
  notch: false
139
124
  });
140
-
141
125
  const loadingProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
142
126
  isLoading: true
143
127
  });
144
-
145
128
  export const standard = Template.bind(standardProps);
146
129
  standard.args = standardProps;
147
130
  standard.argTypes = argTypes;
@@ -172,37 +155,29 @@ invalid.argTypes = argTypes;
172
155
  export const loading = Template.bind(loadingProps);
173
156
  loading.args = loadingProps;
174
157
  loading.argTypes = argTypes;
175
-
176
158
  const smallProps = _objectSpread(_objectSpread({}, standardProps), {}, {
177
159
  size: 'small'
178
160
  });
179
-
180
161
  export const small = Template.bind(smallProps);
181
162
  small.args = smallProps;
182
163
  small.argTypes = argTypes;
183
-
184
164
  const withValueSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
185
165
  size: 'small'
186
166
  });
187
-
188
167
  export const withValueSmall = Template.bind(withValueSmallProps);
189
168
  withValueSmall.args = withValueSmallProps;
190
169
  withValueSmall.argTypes = argTypes;
191
-
192
170
  const withIconSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
193
171
  prefixIcon: CarIcon,
194
172
  size: 'small'
195
173
  });
196
-
197
174
  export const withIconSmall = Template.bind(withIconSmallProps);
198
175
  withIconSmall.args = withIconSmallProps;
199
176
  withIconSmall.argTypes = argTypes;
200
-
201
177
  const loadingSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
202
178
  isLoading: true,
203
179
  size: 'small'
204
180
  });
205
-
206
181
  export const loadingSmall = Template.bind(loadingSmallProps);
207
182
  loadingSmall.args = loadingSmallProps;
208
183
  loadingSmall.argTypes = argTypes;