@autoguru/overdrive 4.3.5 → 4.4.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.
Files changed (66) hide show
  1. package/dist/components/Alert/Alert.d.ts +1 -1
  2. package/dist/components/Alert/Alert.d.ts.map +1 -1
  3. package/dist/components/Anchor/Anchor.d.ts +1 -1
  4. package/dist/components/Anchor/Anchor.d.ts.map +1 -1
  5. package/dist/components/AutoSuggest/AutoSuggest.js +4 -4
  6. package/dist/components/AutoSuggest/stories.js +31 -1
  7. package/dist/components/Badge/Badge.d.ts.map +1 -1
  8. package/dist/components/Badge/Badge.js +1 -2
  9. package/dist/components/BulletList/Bullet.d.ts +1 -1
  10. package/dist/components/BulletList/Bullet.d.ts.map +1 -1
  11. package/dist/components/BulletList/BulletList.d.ts +1 -1
  12. package/dist/components/BulletList/BulletList.d.ts.map +1 -1
  13. package/dist/components/BulletText/BulletText.d.ts +1 -1
  14. package/dist/components/BulletText/BulletText.d.ts.map +1 -1
  15. package/dist/components/Columns/Columns.d.ts +1 -1
  16. package/dist/components/Columns/Columns.d.ts.map +1 -1
  17. package/dist/components/DateInput/DateInput.d.ts.map +1 -1
  18. package/dist/components/DateInput/DateInput.js +1 -1
  19. package/dist/components/DateInput/stories.js +36 -2
  20. package/dist/components/Heading/Heading.d.ts +1 -1
  21. package/dist/components/Heading/Heading.d.ts.map +1 -1
  22. package/dist/components/Inline/Inline.d.ts +1 -1
  23. package/dist/components/Inline/Inline.d.ts.map +1 -1
  24. package/dist/components/Inline/Inline.js +2 -2
  25. package/dist/components/Inline/stories.js +12 -1
  26. package/dist/components/MinimalModal/MinimalModal.d.ts +1 -1
  27. package/dist/components/MinimalModal/MinimalModal.d.ts.map +1 -1
  28. package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
  29. package/dist/components/NumberInput/NumberInput.js +1 -1
  30. package/dist/components/NumberInput/stories.js +36 -2
  31. package/dist/components/Pagination/Bubble.d.ts +1 -1
  32. package/dist/components/Pagination/Bubble.d.ts.map +1 -1
  33. package/dist/components/Radio/RadioGroup.d.ts +1 -1
  34. package/dist/components/Radio/RadioGroup.d.ts.map +1 -1
  35. package/dist/components/SelectInput/SelectInput.d.ts +1 -1
  36. package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
  37. package/dist/components/SelectInput/SelectInput.js +2 -2
  38. package/dist/components/SelectInput/stories.js +35 -1
  39. package/dist/components/Tabs/Tab.d.ts +1 -1
  40. package/dist/components/Tabs/Tab.d.ts.map +1 -1
  41. package/dist/components/Text/Text.d.ts +1 -1
  42. package/dist/components/Text/Text.d.ts.map +1 -1
  43. package/dist/components/TextAreaInput/TextAreaInput.d.ts.map +1 -1
  44. package/dist/components/TextAreaInput/TextAreaInput.js +1 -1
  45. package/dist/components/TextAreaInput/stories.js +27 -2
  46. package/dist/components/TextInput/TextInput.d.ts.map +1 -1
  47. package/dist/components/TextInput/TextInput.js +1 -1
  48. package/dist/components/TextInput/stories.js +36 -2
  49. package/dist/components/TextLink/TextLink.d.ts +1 -1
  50. package/dist/components/TextLink/TextLink.d.ts.map +1 -1
  51. package/dist/components/private/CheckableBase/CheckableBase.d.ts +1 -1
  52. package/dist/components/private/CheckableBase/CheckableBase.d.ts.map +1 -1
  53. package/dist/components/private/InputBase/NotchedBase.css.d.ts +1 -1
  54. package/dist/components/private/InputBase/NotchedBase.css.d.ts.map +1 -1
  55. package/dist/components/private/InputBase/NotchedBase.css.js +34 -16
  56. package/dist/components/private/InputBase/NotchedBase.d.ts +2 -0
  57. package/dist/components/private/InputBase/NotchedBase.d.ts.map +1 -1
  58. package/dist/components/private/InputBase/NotchedBase.js +4 -4
  59. package/dist/components/private/InputBase/withEnhancedInput.css.d.ts +25 -5
  60. package/dist/components/private/InputBase/withEnhancedInput.css.d.ts.map +1 -1
  61. package/dist/components/private/InputBase/withEnhancedInput.css.js +87 -19
  62. package/dist/components/private/InputBase/withEnhancedInput.d.ts +4 -1
  63. package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
  64. package/dist/components/private/InputBase/withEnhancedInput.js +12 -9
  65. package/package.json +9 -9
  66. package/CHANGELOG.md +0 -1415
@@ -3,7 +3,7 @@ import { Button } from '../Button';
3
3
  import * as styles from './Alert.css';
4
4
  declare type Intent = keyof Omit<typeof styles.intent, 'neutral' | 'shine' | 'primary' | 'secondary'>;
5
5
  export interface Props {
6
- children: ReactNode;
6
+ children?: ReactNode;
7
7
  className?: string;
8
8
  intent?: Intent;
9
9
  inline?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../lib/components/Alert/Alert.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAKnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,aAAK,MAAM,GAAG,MAAM,IAAI,CACvB,OAAO,MAAM,CAAC,MAAM,EACpB,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,CAC7C,CAAC;AAEF,MAAM,WAAW,KAAK;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,cAAc,CAAC,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;CAC1D;AASD,eAAO,MAAM,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAmE1C,CAAC"}
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../lib/components/Alert/Alert.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAKnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,aAAK,MAAM,GAAG,MAAM,IAAI,CACvB,OAAO,MAAM,CAAC,MAAM,EACpB,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,CAC7C,CAAC;AAEF,MAAM,WAAW,KAAK;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,cAAc,CAAC,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;CAC1D;AASD,eAAO,MAAM,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAmE1C,CAAC"}
@@ -8,7 +8,7 @@ export interface Props {
8
8
  className?: string;
9
9
  is?: ElementType | ReactElement;
10
10
  disabled?: boolean;
11
- children: ReactNode;
11
+ children?: ReactNode;
12
12
  icon?: IconType;
13
13
  }
14
14
  export declare const Anchor: FunctionComponent<Props>;
@@ -1 +1 @@
1
- {"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../lib/components/Anchor/Anchor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EAGN,WAAW,EACX,iBAAiB,EAEjB,YAAY,EACZ,SAAS,EACT,MAAM,OAAO,CAAC;AASf,MAAM,WAAW,KAAK;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IAEpB,IAAI,CAAC,EAAE,QAAQ,CAAC;CAChB;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAgD3C,CAAC"}
1
+ {"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../lib/components/Anchor/Anchor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EAGN,WAAW,EACX,iBAAiB,EAEjB,YAAY,EACZ,SAAS,EACT,MAAM,OAAO,CAAC;AASf,MAAM,WAAW,KAAK;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,IAAI,CAAC,EAAE,QAAQ,CAAC;CAChB;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAgD3C,CAAC"}
@@ -165,7 +165,7 @@ const AutoSuggestFullscreenInput = forwardRef(function AutoSuggestFullscreenInpu
165
165
  React.createElement(Button, { minimal: true, rounded: true, className: styles.fullScreenCloseBtn, size: "medium", onClick: closeModal },
166
166
  React.createElement(Icon, { icon: CloseIcon }))))) : null;
167
167
  });
168
- const AutoSuggestInput = forwardRef(function AutoSuggestInput({ inlineOptions = false, noScroll = false, isFocused = false, fieldIcon, isLoading, autoFocus, autoWidth, suggestions, value, onChange, itemRenderer = defaultItemRenderer, onBlur, onFocus, onKeyDown, onClick, className, ...textInputProps }, ref) {
168
+ const AutoSuggestInput = forwardRef(function AutoSuggestInput({ inlineOptions = false, noScroll = false, isFocused = false, size, fieldIcon, isLoading, autoFocus, autoWidth, suggestions, value, onChange, itemRenderer = defaultItemRenderer, onBlur, onFocus, onKeyDown, onClick, className, ...textInputProps }, ref) {
169
169
  const triggerRef = useRef(null);
170
170
  const highlightRef = useRef(null);
171
171
  const suggestionListRef = useRef(null);
@@ -180,7 +180,7 @@ const AutoSuggestInput = forwardRef(function AutoSuggestInput({ inlineOptions =
180
180
  useLayoutSuggestionVisible(state.highlightIndex, highlightRef, suggestionListRef);
181
181
  return (React.createElement(Box, { role: "combobox", "aria-label": textInputProps.placeholder, "aria-expanded": shouldOpenFlyout, "aria-owns": suggestionListId, "aria-haspopup": "listbox", width: "full" },
182
182
  React.createElement(Box, { backgroundColour: "white", borderRadius: "1", className: styles.input },
183
- React.createElement(AutoSuggestInputPrimitive, { className: className, isFocused: isFocused, isLoading: isLoading, autoFocus: autoFocus, fieldIcon: fieldIcon, wrapperRef: triggerRef, ...textInputProps, ref: ref, "aria-autocomplete": "list", "aria-controls": suggestionListId, "aria-activedescendant": state.highlightIndex > -1
183
+ React.createElement(AutoSuggestInputPrimitive, { className: className, size: size, isFocused: isFocused, isLoading: isLoading, autoFocus: autoFocus, fieldIcon: fieldIcon, wrapperRef: triggerRef, ...textInputProps, ref: ref, "aria-autocomplete": "list", "aria-controls": suggestionListId, "aria-activedescendant": state.highlightIndex > -1
184
184
  ? getSuggestionId(suggestionListId, state.highlightIndex)
185
185
  : undefined, value: state.previewText ?? value?.text, onReset: () => {
186
186
  dispatch({ type: ActionTypes.INPUT_CHANGE });
@@ -264,7 +264,7 @@ const SuggestionsList = ({ className = '', suggestionListId, placeholder, highli
264
264
  })));
265
265
  }),
266
266
  React.createElement("div", { className: styles.spacer })));
267
- const AutoSuggestInputPrimitive = withEnhancedInput(({ field, eventHandlers, validation, suffixed, prefixed, isLoading, fieldIcon = ChevronDownIcon, isFocused, className, ...rest }) => {
267
+ const AutoSuggestInputPrimitive = withEnhancedInput(({ field, eventHandlers, validation, suffixed, prefixed, isLoading, fieldIcon = ChevronDownIcon, isFocused, className, size, ...rest }) => {
268
268
  let focusTimeout;
269
269
  const ref = useRef(null);
270
270
  const focusHandler = useCallback(() => {
@@ -282,7 +282,7 @@ const AutoSuggestInputPrimitive = withEnhancedInput(({ field, eventHandlers, val
282
282
  focusTimeout = setTimeout(() => ref.current?.focus(), 100);
283
283
  }, [onReset, focusTimeout]);
284
284
  const suffix = useMemo(() => isLoading ? null : field.value && isFocused ? (React.createElement(Box, { is: "button", paddingY: "3", paddingRight: "4", flexShrink: 0, onMouseDown: onRequestReset },
285
- React.createElement(Icon, { size: "medium", icon: CloseIcon }))) : fieldIcon ? (React.createElement(Box, { flexShrink: 0, paddingY: "3", paddingRight: "4", onClick: focusHandler },
285
+ React.createElement(Icon, { size: "medium", icon: CloseIcon }))) : fieldIcon ? (React.createElement(Box, { flexShrink: 0, paddingY: size === 'medium' ? '3' : '2', paddingRight: size === 'medium' ? '3' : '2', onClick: focusHandler },
286
286
  React.createElement(Icon, { size: "medium", icon: fieldIcon }))) : null, [field.value, isLoading, fieldIcon, isFocused, onRequestReset]);
287
287
  useEffect(() => () => (focusTimeout ? clearTimeout(focusTimeout) : void 0), []);
288
288
  return (React.createElement(Box, { display: "flex", flexWrap: "nowrap", alignItems: "center", justifyContent: "center", className: className },
@@ -166,4 +166,34 @@ const invalidProps = _objectSpread(_objectSpread({}, withHintTextProps), {}, {
166
166
  });
167
167
 
168
168
  export const invalid = Template.bind(invalidProps);
169
- invalid.args = invalidProps;
169
+ invalid.args = invalidProps;
170
+
171
+ const withIconSmallProps = _objectSpread(_objectSpread({}, withValueProps), {}, {
172
+ prefixIcon: CarIcon,
173
+ size: 'small'
174
+ });
175
+
176
+ const smallProps = _objectSpread(_objectSpread({}, standardProps), {}, {
177
+ size: 'small'
178
+ });
179
+
180
+ export const small = Template.bind(smallProps);
181
+ small.args = smallProps;
182
+
183
+ const withValueSmallProps = _objectSpread(_objectSpread({}, standardProps), {}, {
184
+ value: mockSuggestions[3],
185
+ size: 'small'
186
+ });
187
+
188
+ export const withValueSmall = Template.bind(withValueSmallProps);
189
+ withValueSmall.args = withValueSmallProps;
190
+ export const withIconSmall = Template.bind(withIconSmallProps);
191
+ withIconSmall.args = withIconSmallProps;
192
+
193
+ const loadingSmallProps = _objectSpread(_objectSpread({}, withValueSmallProps), {}, {
194
+ isLoading: true,
195
+ size: 'small'
196
+ });
197
+
198
+ export const loadingSmall = Template.bind(loadingSmallProps);
199
+ loadingSmall.args = loadingSmallProps;
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../lib/components/Badge/Badge.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,WAAW,KAAK;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,SAAS,CAAC;CACrC;AAED,eAAO,MAAM,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAmD1C,CAAC"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../lib/components/Badge/Badge.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,WAAW,KAAK;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,SAAS,CAAC;CACrC;AAED,eAAO,MAAM,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAkD1C,CAAC"}
@@ -12,9 +12,8 @@ export const Badge = ({ label, colour = 'neutral', look = 'standard', size = 'st
12
12
  });
13
13
  const inverted = look === 'inverted';
14
14
  invariant(['string', 'number'].includes(typeof label), "Badge `label` can only contain string's or number's");
15
- return (React.createElement(Box, { display: "flex" },
15
+ return (React.createElement(Box, { className: className, display: "flex" },
16
16
  React.createElement(Box, { className: [
17
- className,
18
17
  styles.labelSize[size],
19
18
  inverted
20
19
  ? styles.colours.inverted[colour].background
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponent, ReactNode } from 'react';
2
2
  export interface Props {
3
- children: ReactNode;
3
+ children?: ReactNode;
4
4
  className?: string;
5
5
  }
6
6
  export declare const Bullet: FunctionComponent<Props>;
@@ -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,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAeD,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAe3C,CAAC"}
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;AAeD,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAe3C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { FunctionComponent, ReactNode } from 'react';
2
2
  export interface Props {
3
3
  className?: string;
4
- children: ReactNode;
4
+ children?: ReactNode;
5
5
  }
6
6
  export declare const BulletList: FunctionComponent<Props>;
7
7
  //# sourceMappingURL=BulletList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BulletList.d.ts","sourceRoot":"","sources":["../../../lib/components/BulletList/BulletList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAOjE,MAAM,WAAW,KAAK;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,KAAK,CAiB/C,CAAC"}
1
+ {"version":3,"file":"BulletList.d.ts","sourceRoot":"","sources":["../../../lib/components/BulletList/BulletList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAOjE,MAAM,WAAW,KAAK;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,KAAK,CAiB/C,CAAC"}
@@ -3,7 +3,7 @@ import { BoxStyleProps } from '../Box';
3
3
  export interface Props extends Partial<Pick<BoxStyleProps, 'is'>> {
4
4
  bullet?: ReactNode;
5
5
  variant?: 'primary' | 'secondary';
6
- children: ReactNode;
6
+ children?: ReactNode;
7
7
  }
8
8
  export declare const BulletText: FunctionComponent<Props>;
9
9
  //# sourceMappingURL=BulletText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BulletText.d.ts","sourceRoot":"","sources":["../../../lib/components/BulletText/BulletText.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAkB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAO,aAAa,EAAE,MAAM,QAAQ,CAAC;AAM5C,MAAM,WAAW,KAAM,SAAQ,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IAChE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAClC,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,KAAK,CAwC/C,CAAC"}
1
+ {"version":3,"file":"BulletText.d.ts","sourceRoot":"","sources":["../../../lib/components/BulletText/BulletText.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAkB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAO,aAAa,EAAE,MAAM,QAAQ,CAAC;AAM5C,MAAM,WAAW,KAAM,SAAQ,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IAChE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAClC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,KAAK,CAwC/C,CAAC"}
@@ -13,7 +13,7 @@ export interface Props extends Omit<ComponentProps<typeof Box>, 'css'> {
13
13
  noWrap?: boolean;
14
14
  wrappingDirection?: keyof typeof styles.wrapping;
15
15
  align?: keyof typeof styles.align;
16
- children: ReactNode;
16
+ children?: ReactNode;
17
17
  }
18
18
  interface ColumnContextValue {
19
19
  spaceXCls: any;
@@ -1 +1 @@
1
- {"version":3,"file":"Columns.d.ts","sourceRoot":"","sources":["../../../lib/components/Columns/Columns.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACN,cAAc,EAGd,SAAS,EAET,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,KAAK,CAAC;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,cAAc,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,QAAQ,CAAC;IACjD,KAAK,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,UAAU,kBAAkB;IAC3B,SAAS,MAAC;IACV,SAAS,MAAC;IACV,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,aAAa,mCAAiD,CAAC;AAE5E,eAAO,MAAM,OAAO,glNAiEnB,CAAC"}
1
+ {"version":3,"file":"Columns.d.ts","sourceRoot":"","sources":["../../../lib/components/Columns/Columns.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACN,cAAc,EAGd,SAAS,EAET,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,KAAK,CAAC;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,cAAc,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,QAAQ,CAAC;IACjD,KAAK,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC;IAClC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,UAAU,kBAAkB;IAC3B,SAAS,MAAC;IACV,SAAS,MAAC;IACV,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,aAAa,mCAAiD,CAAC;AAE5E,eAAO,MAAM,OAAO,glNAiEnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../lib/components/DateInput/DateInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,SAAS,6VA+BrB,CAAC"}
1
+ {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../lib/components/DateInput/DateInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,SAAS,6VAgCrB,CAAC"}
@@ -2,7 +2,7 @@ import { warning } from '@autoguru/utilities';
2
2
  import * as React from 'react';
3
3
  import { Box } from '../Box';
4
4
  import { withEnhancedInput } from '../private/InputBase';
5
- export const DateInput = withEnhancedInput(({ field, eventHandlers, validation, isLoading, suffixed, prefixed, ...rest }) => {
5
+ export const DateInput = withEnhancedInput(({ field, eventHandlers, validation, isLoading, suffixed, prefixed, size, ...rest }) => {
6
6
  warning(field.value !== '', 'Date Input does not support empty values.');
7
7
  return (React.createElement(Box, { is: "input", ...eventHandlers, ...field, ...rest, autoComplete: "off", type: "date" }));
8
8
  }, {
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
6
6
 
7
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; }
8
8
 
9
- import { AccountEditIcon, AlertCircleIcon, CalendarIcon, CarMultipleIcon, CurrencyUsdIcon, PlusIcon, StarIcon } from '@autoguru/icons';
9
+ import { AccountEditIcon, AlertCircleIcon, CalendarIcon, CarIcon, CarMultipleIcon, CurrencyUsdIcon, PlusIcon, StarIcon } from '@autoguru/icons';
10
10
  import { action } from '@storybook/addon-actions';
11
11
  import isChromatic from 'chromatic/isChromatic';
12
12
  import * as React from 'react';
@@ -155,4 +155,38 @@ invalid.args = invalidProps;
155
155
  invalid.argTypes = argTypes;
156
156
  export const loading = Template.bind(loadingProps);
157
157
  loading.args = loadingProps;
158
- loading.argTypes = argTypes;
158
+ loading.argTypes = argTypes;
159
+
160
+ const smallProps = _objectSpread(_objectSpread({}, standardProps), {}, {
161
+ size: 'small'
162
+ });
163
+
164
+ export const small = Template.bind(smallProps);
165
+ small.args = smallProps;
166
+ small.argTypes = argTypes;
167
+
168
+ const withValueSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
169
+ size: 'small'
170
+ });
171
+
172
+ export const withValueSmall = Template.bind(withValueSmallProps);
173
+ withValueSmall.args = withValueSmallProps;
174
+ withValueSmall.argTypes = argTypes;
175
+
176
+ const withIconSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
177
+ prefixIcon: CarIcon,
178
+ size: 'small'
179
+ });
180
+
181
+ export const withIconSmall = Template.bind(withIconSmallProps);
182
+ withIconSmall.args = withIconSmallProps;
183
+ withIconSmall.argTypes = argTypes;
184
+
185
+ const loadingSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
186
+ isLoading: true,
187
+ size: 'small'
188
+ });
189
+
190
+ export const loadingSmall = Template.bind(loadingSmallProps);
191
+ loadingSmall.args = loadingSmallProps;
192
+ loadingSmall.argTypes = argTypes;
@@ -4,7 +4,7 @@ import { Box } from '../Box';
4
4
  import type { TextStyleProps } from '../Text';
5
5
  export interface Props extends Omit<TextStyleProps, 'is'>, Pick<ComponentProps<typeof Box>, 'id'> {
6
6
  className?: string;
7
- children: ReactNode;
7
+ children?: ReactNode;
8
8
  is?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
9
9
  colour?: Exclude<keyof Tokens['typography']['colour'], 'muted'>;
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../lib/components/Heading/Heading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,MAAM,WAAW,KAChB,SAAQ,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,EACjC,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;CAChE;AAWD,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC,KAAK,CA8B5C,CAAC"}
1
+ {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../lib/components/Heading/Heading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,MAAM,WAAW,KAChB,SAAQ,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,EACjC,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;CAChE;AAWD,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC,KAAK,CA8B5C,CAAC"}
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import { Tokens } from '../../themes/tokens';
4
4
  import { ResponsiveProp } from '../../utils/responsiveProps.css';
5
5
  import type { BoxStyleProps } from '../Box';
6
- export interface Props extends Pick<BoxStyleProps, 'is'> {
6
+ export interface Props extends Pick<BoxStyleProps, 'is' | 'width'> {
7
7
  space?: ResponsiveProp<keyof Tokens['space']>;
8
8
  alignY?: BoxStyleProps['alignItems'];
9
9
  alignX?: BoxStyleProps['justifyContent'];
@@ -1 +1 @@
1
- {"version":3,"file":"Inline.d.ts","sourceRoot":"","sources":["../../../lib/components/Inline/Inline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAgB,MAAM,OAAO,CAAC;AAE7D,OAAO,EAA4B,SAAS,EAAE,MAAM,OAAO,CAAC;AAO5D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAI5C,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC;IACvD,KAAK,CAAC,EAAE,cAAc,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B;AAOD,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAsD3C,CAAC"}
1
+ {"version":3,"file":"Inline.d.ts","sourceRoot":"","sources":["../../../lib/components/Inline/Inline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAgB,MAAM,OAAO,CAAC;AAE7D,OAAO,EAA4B,SAAS,EAAE,MAAM,OAAO,CAAC;AAO5D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAI5C,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,OAAO,CAAC;IACjE,KAAK,CAAC,EAAE,cAAc,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B;AAOD,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAwD3C,CAAC"}
@@ -8,7 +8,7 @@ const supportedListTypes = [
8
8
  'ul',
9
9
  'ol',
10
10
  ];
11
- export const Inline = ({ is = 'div', children, space = '2', alignY = 'center', alignX, noWrap, dividers, }) => {
11
+ export const Inline = ({ is = 'div', children, space = '2', alignY = 'center', alignX, noWrap, dividers, width, }) => {
12
12
  const negativeMarginLeft = useNegativeMarginLeft(space);
13
13
  const negativeMarginTop = useNegativeMarginTop(space);
14
14
  const items = flattenChildren(children);
@@ -19,7 +19,7 @@ export const Inline = ({ is = 'div', children, space = '2', alignY = 'center', a
19
19
  let listItem = 'div';
20
20
  if (typeof is === 'string')
21
21
  listItem = supportedListTypes.includes(is) ? 'li' : 'div';
22
- return (React.createElement(Box, { is: is, position: "relative", display: "flex", alignItems: alignY, justifyContent: alignX, flexDirection: "row", flexWrap: noWrap ? 'nowrap' : 'wrap', className: [negativeMarginTop, !dividers && negativeMarginLeft] }, Children.map(items, (child, idx) => child !== null && child !== undefined ? (React.createElement(Box, { is: listItem, display: "flex", flexDirection: "row", flexWrap: "nowrap", alignItems: alignY, paddingTop: space, paddingLeft: dividers ? undefined : space },
22
+ return (React.createElement(Box, { is: is, width: width, position: "relative", display: "flex", alignItems: alignY, justifyContent: alignX, flexDirection: "row", flexWrap: noWrap ? 'nowrap' : 'wrap', className: [negativeMarginTop, !dividers && negativeMarginLeft] }, Children.map(items, (child, idx) => child !== null && child !== undefined ? (React.createElement(Box, { is: listItem, display: "flex", flexDirection: "row", flexWrap: "nowrap", alignItems: alignY, paddingTop: space, paddingLeft: dividers ? undefined : space },
23
23
  child,
24
24
  dividers && idx !== items.length - 1 ? (React.createElement(Box, { paddingX: space }, divider)) : null)) : null)));
25
25
  };
@@ -35,6 +35,11 @@ export default {
35
35
  control: {
36
36
  type: 'select'
37
37
  }
38
+ },
39
+ dividers: {
40
+ control: {
41
+ type: 'boolean'
42
+ }
38
43
  }
39
44
  }
40
45
  };
@@ -114,4 +119,10 @@ const differentSizeItemsProps = {
114
119
  dividers: true
115
120
  };
116
121
  export const differentSizeItems = DiffSizeTemplate.bind(differentSizeItemsProps);
117
- differentSizeItems.args = differentSizeItemsProps;
122
+ differentSizeItems.args = differentSizeItemsProps;
123
+ const withFullWidthProps = {
124
+ width: 'full',
125
+ alignX: 'spaceBetween'
126
+ };
127
+ export const withFullWidth = DiffSizeTemplate.bind(withFullWidthProps);
128
+ withFullWidth.args = withFullWidthProps;
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import { Modal } from '../Modal';
4
4
  export interface Props extends ComponentProps<typeof Modal> {
5
5
  className?: string;
6
- children: ReactNode;
6
+ children?: ReactNode;
7
7
  }
8
8
  export declare const MinimalModal: FunctionComponent<Props>;
9
9
  //# sourceMappingURL=MinimalModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MinimalModal.d.ts","sourceRoot":"","sources":["../../../lib/components/MinimalModal/MinimalModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,cAAc,EACd,iBAAiB,EAEjB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAA2B,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,MAAM,WAAW,KAAM,SAAQ,cAAc,CAAC,OAAO,KAAK,CAAC;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,KAAK,CA+DjD,CAAC"}
1
+ {"version":3,"file":"MinimalModal.d.ts","sourceRoot":"","sources":["../../../lib/components/MinimalModal/MinimalModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,cAAc,EACd,iBAAiB,EAEjB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAA2B,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,MAAM,WAAW,KAAM,SAAQ,cAAc,CAAC,OAAO,KAAK,CAAC;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,KAAK,CA+DjD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../lib/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,UAAU,KACT,SAAQ,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC,CAAC;IAC/D,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,WAAW,oTA6EvB,CAAC"}
1
+ {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../lib/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,UAAU,KACT,SAAQ,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC,CAAC;IAC/D,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,WAAW,oTA8EvB,CAAC"}
@@ -4,7 +4,7 @@ import { Box } from '../Box';
4
4
  import { withEnhancedInput } from '../private/InputBase';
5
5
  const isEdge = typeof navigator !== 'undefined' && /edge/i.test(navigator.userAgent);
6
6
  const type = isEdge ? 'text' : 'number';
7
- export const NumberInput = withEnhancedInput(({ field: { ref, ...incomingFieldProps }, eventHandlers, validation, isLoading, suffixed, prefixed, preventMouseWheel = false, ...rest }) => {
7
+ export const NumberInput = withEnhancedInput(({ field: { ref, ...incomingFieldProps }, eventHandlers, validation, isLoading, suffixed, prefixed, preventMouseWheel = false, size, ...rest }) => {
8
8
  const inputRef = useRef(ref?.current);
9
9
  const preventWheel = useCallback((e) => {
10
10
  e.preventDefault();
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
6
6
 
7
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; }
8
8
 
9
- import { AccountEditIcon, AlertCircleIcon, CalendarIcon, CarMultipleIcon, CheckIcon, CurrencyUsdIcon, PlusIcon, StarIcon } from '@autoguru/icons';
9
+ import { AccountEditIcon, AlertCircleIcon, CalendarIcon, CarIcon, CarMultipleIcon, CheckIcon, CurrencyUsdIcon, PlusIcon, StarIcon } from '@autoguru/icons';
10
10
  import { action } from '@storybook/addon-actions';
11
11
  import isChromatic from 'chromatic/isChromatic';
12
12
  import * as React from 'react';
@@ -167,4 +167,38 @@ invalid.args = invalidProps;
167
167
  invalid.argTypes = argTypes;
168
168
  export const loading = Template.bind(loadingProps);
169
169
  loading.args = loadingProps;
170
- loading.argTypes = argTypes;
170
+ loading.argTypes = argTypes;
171
+
172
+ const smallProps = _objectSpread(_objectSpread({}, standardProps), {}, {
173
+ size: 'small'
174
+ });
175
+
176
+ export const small = Template.bind(smallProps);
177
+ small.args = smallProps;
178
+ small.argTypes = argTypes;
179
+
180
+ const withValueSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
181
+ size: 'small'
182
+ });
183
+
184
+ export const withValueSmall = Template.bind(withValueSmallProps);
185
+ withValueSmall.args = withValueSmallProps;
186
+ withValueSmall.argTypes = argTypes;
187
+
188
+ const withIconSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
189
+ prefixIcon: CarIcon,
190
+ size: 'small'
191
+ });
192
+
193
+ export const withIconSmall = Template.bind(withIconSmallProps);
194
+ withIconSmall.args = withIconSmallProps;
195
+ withIconSmall.argTypes = argTypes;
196
+
197
+ const loadingSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
198
+ isLoading: true,
199
+ size: 'small'
200
+ });
201
+
202
+ export const loadingSmall = Template.bind(loadingSmallProps);
203
+ loadingSmall.args = loadingSmallProps;
204
+ loadingSmall.argTypes = argTypes;
@@ -6,7 +6,7 @@ export interface Props {
6
6
  gap?: boolean;
7
7
  onClick?: MouseEventHandler<HTMLButtonElement>;
8
8
  className?: string;
9
- children: ReactNode;
9
+ children?: ReactNode;
10
10
  }
11
11
  export declare const Bubble: FunctionComponent<Props>;
12
12
  //# sourceMappingURL=Bubble.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../lib/components/Pagination/Bubble.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEX,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOlC,MAAM,WAAW,KAAK;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAyC3C,CAAC"}
1
+ {"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../lib/components/Pagination/Bubble.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEX,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOlC,MAAM,WAAW,KAAK;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAyC3C,CAAC"}
@@ -4,7 +4,7 @@ export interface Props {
4
4
  name: string;
5
5
  className?: string;
6
6
  value: string;
7
- children: ReactNode;
7
+ children?: ReactNode;
8
8
  onChange?(value: string): void;
9
9
  }
10
10
  interface RadioGroupContext {
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../lib/components/Radio/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGN,SAAS,EAGT,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,KAAK;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IAEpB,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,UAAU,iBAAiB;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IAEd,aAAa,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,YAAY,kCAAgD,CAAC;AAE1E,eAAO,MAAM,eAAe,QAAO,iBACT,CAAC;AAE3B,eAAO,MAAM,UAAU,8EAsBtB,CAAC"}
1
+ {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../lib/components/Radio/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGN,SAAS,EAGT,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,KAAK;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,UAAU,iBAAiB;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IAEd,aAAa,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,YAAY,kCAAgD,CAAC;AAE1E,eAAO,MAAM,eAAe,QAAO,iBACT,CAAC;AAE3B,eAAO,MAAM,UAAU,8EAsBtB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  export declare const SelectInput: React.ForwardRefExoticComponent<{
4
- children: ReactNode[];
4
+ children?: ReactNode[];
5
5
  } & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLSelectElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<HTMLSelectElement>>;
6
6
  //# sourceMappingURL=SelectInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../lib/components/SelectInput/SelectInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQlC,eAAO,MAAM,WAAW;cAEZ,SAAS,EAAE;gRAgDtB,CAAC"}
1
+ {"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../lib/components/SelectInput/SelectInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQlC,eAAO,MAAM,WAAW;eAEX,SAAS,EAAE;gRAiDvB,CAAC"}
@@ -4,9 +4,9 @@ import { Box } from '../Box';
4
4
  import { Icon } from '../Icon';
5
5
  import { withEnhancedInput } from '../private/InputBase';
6
6
  import * as styles from './SelectInput.css';
7
- export const SelectInput = withEnhancedInput(({ field, eventHandlers, suffixed, prefixed, validation, isLoading, fieldIcon = ChevronDownIcon, ...rest }) => (React.createElement(Box, { display: "flex", flexWrap: "nowrap", alignItems: "center", justifyContent: "center", position: "relative" },
7
+ export const SelectInput = withEnhancedInput(({ field, eventHandlers, suffixed, prefixed, validation, isLoading, size, fieldIcon = ChevronDownIcon, ...rest }) => (React.createElement(Box, { display: "flex", flexWrap: "nowrap", alignItems: "center", justifyContent: "center", position: "relative" },
8
8
  React.createElement(Box, { is: "select", flexGrow: 1, ...eventHandlers, ...field, ...rest, className: [styles.input, styles.paddedInput, field.className], autoComplete: "off" }),
9
- isLoading ? null : (React.createElement(Box, { className: styles.arrow, display: "flex", alignItems: "center", height: "full", marginRight: "4", flexShrink: 0, pointerEvents: "none", position: "absolute" },
9
+ isLoading ? null : (React.createElement(Box, { className: styles.arrow, display: "flex", alignItems: "center", height: "full", marginRight: size === 'medium' ? '4' : '2', flexShrink: 0, pointerEvents: "none", position: "absolute" },
10
10
  React.createElement(Icon, { size: "medium", icon: fieldIcon }))))), {
11
11
  primitiveType: 'select',
12
12
  withSuffixIcon: false,
@@ -160,4 +160,38 @@ invalid.args = invalidProps;
160
160
  invalid.argTypes = argTypes;
161
161
  export const loading = Template.bind(loadingProps);
162
162
  loading.args = loadingProps;
163
- loading.argTypes = argTypes;
163
+ loading.argTypes = argTypes;
164
+
165
+ const smallProps = _objectSpread(_objectSpread({}, standardProps), {}, {
166
+ size: 'small'
167
+ });
168
+
169
+ export const small = Template.bind(smallProps);
170
+ small.args = smallProps;
171
+ small.argTypes = argTypes;
172
+
173
+ const withValueSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
174
+ size: 'small'
175
+ });
176
+
177
+ export const withValueSmall = Template.bind(withValueSmallProps);
178
+ withValueSmall.args = withValueSmallProps;
179
+ withValueSmall.argTypes = argTypes;
180
+
181
+ const withIconSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
182
+ prefixIcon: CarIcon,
183
+ size: 'small'
184
+ });
185
+
186
+ export const withIconSmall = Template.bind(withIconSmallProps);
187
+ withIconSmall.args = withIconSmallProps;
188
+ withIconSmall.argTypes = argTypes;
189
+
190
+ const loadingSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
191
+ isLoading: true,
192
+ size: 'small'
193
+ });
194
+
195
+ export const loadingSmall = Template.bind(loadingSmallProps);
196
+ loadingSmall.args = loadingSmallProps;
197
+ loadingSmall.argTypes = argTypes;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ElementType, ReactElement, ReactNode } from 'react';
3
3
  export interface Props {
4
- children: ReactNode;
4
+ children?: ReactNode;
5
5
  id?: string;
6
6
  is?: ElementType | ReactElement;
7
7
  indication?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../lib/components/Tabs/Tab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGN,WAAW,EAGX,YAAY,EACZ,SAAS,EAET,MAAM,OAAO,CAAC;AAUf,MAAM,WAAW,KAAK;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,GAAG,8EA0Ff,CAAC"}
1
+ {"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../lib/components/Tabs/Tab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGN,WAAW,EAGX,YAAY,EACZ,SAAS,EAET,MAAM,OAAO,CAAC;AAUf,MAAM,WAAW,KAAK;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,GAAG,8EA0Ff,CAAC"}
@@ -5,7 +5,7 @@ export interface Props extends TextStyleProps {
5
5
  className?: string;
6
6
  is?: 'p' | 'span';
7
7
  strong?: boolean;
8
- children: ReactNode;
8
+ children?: ReactNode;
9
9
  display?: Extract<BoxStyleProps['display'], 'inline' | 'inlineBlock' | 'block'>;
10
10
  }
11
11
  export declare const Text: FunctionComponent<Props>;
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../lib/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAiB,MAAM,iBAAiB,CAAC;AAEhE,MAAM,WAAW,KAAM,SAAQ,cAAc;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAChB,aAAa,CAAC,SAAS,CAAC,EACxB,QAAQ,GAAG,aAAa,GAAG,OAAO,CAClC,CAAC;CACF;AAED,eAAO,MAAM,IAAI,EAAE,iBAAiB,CAAC,KAAK,CAgCzC,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../lib/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAiB,MAAM,iBAAiB,CAAC;AAEhE,MAAM,WAAW,KAAM,SAAQ,cAAc;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAChB,aAAa,CAAC,SAAS,CAAC,EACxB,QAAQ,GAAG,aAAa,GAAG,OAAO,CAClC,CAAC;CACF;AAED,eAAO,MAAM,IAAI,EAAE,iBAAiB,CAAC,KAAK,CAgCzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextAreaInput.d.ts","sourceRoot":"","sources":["../../../lib/components/TextAreaInput/TextAreaInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,aAAa,kTAuBzB,CAAC"}
1
+ {"version":3,"file":"TextAreaInput.d.ts","sourceRoot":"","sources":["../../../lib/components/TextAreaInput/TextAreaInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,aAAa,kTAwBzB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { Box } from '../Box';
3
3
  import { withEnhancedInput } from '../private/InputBase';
4
- export const TextAreaInput = withEnhancedInput(({ field, eventHandlers, validation, isLoading, suffixed, prefixed, ...rest }) => (React.createElement(Box, { is: "textarea", ...eventHandlers, ...field, ...rest, autoComplete: "off" })), {
4
+ export const TextAreaInput = withEnhancedInput(({ field, eventHandlers, validation, isLoading, suffixed, prefixed, size, ...rest }) => (React.createElement(Box, { is: "textarea", ...eventHandlers, ...field, ...rest, autoComplete: "off" })), {
5
5
  primitiveType: 'textarea',
6
6
  withSuffixIcon: false,
7
7
  withPrefixIcon: false,