@autoguru/overdrive 4.3.6 → 4.4.2

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 (33) hide show
  1. package/dist/components/AutoSuggest/AutoSuggest.js +4 -4
  2. package/dist/components/AutoSuggest/stories.js +31 -1
  3. package/dist/components/Badge/Badge.d.ts.map +1 -1
  4. package/dist/components/Badge/Badge.js +1 -2
  5. package/dist/components/DateInput/DateInput.d.ts.map +1 -1
  6. package/dist/components/DateInput/DateInput.js +1 -1
  7. package/dist/components/DateInput/stories.js +36 -2
  8. package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
  9. package/dist/components/NumberInput/NumberInput.js +1 -1
  10. package/dist/components/NumberInput/stories.js +36 -2
  11. package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
  12. package/dist/components/SelectInput/SelectInput.js +2 -2
  13. package/dist/components/SelectInput/stories.js +35 -1
  14. package/dist/components/TextAreaInput/TextAreaInput.d.ts.map +1 -1
  15. package/dist/components/TextAreaInput/TextAreaInput.js +1 -1
  16. package/dist/components/TextAreaInput/stories.js +27 -2
  17. package/dist/components/TextInput/TextInput.d.ts.map +1 -1
  18. package/dist/components/TextInput/TextInput.js +1 -1
  19. package/dist/components/TextInput/stories.js +36 -2
  20. package/dist/components/private/InputBase/NotchedBase.css.d.ts +1 -1
  21. package/dist/components/private/InputBase/NotchedBase.css.d.ts.map +1 -1
  22. package/dist/components/private/InputBase/NotchedBase.css.js +34 -16
  23. package/dist/components/private/InputBase/NotchedBase.d.ts +2 -0
  24. package/dist/components/private/InputBase/NotchedBase.d.ts.map +1 -1
  25. package/dist/components/private/InputBase/NotchedBase.js +4 -4
  26. package/dist/components/private/InputBase/withEnhancedInput.css.d.ts +25 -5
  27. package/dist/components/private/InputBase/withEnhancedInput.css.d.ts.map +1 -1
  28. package/dist/components/private/InputBase/withEnhancedInput.css.js +89 -20
  29. package/dist/components/private/InputBase/withEnhancedInput.d.ts +4 -1
  30. package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
  31. package/dist/components/private/InputBase/withEnhancedInput.js +12 -9
  32. package/package.json +9 -9
  33. package/CHANGELOG.md +0 -1421
@@ -1,15 +1,5 @@
1
1
  import { style, styleVariants } from '@vanilla-extract/css';
2
2
  import { vars } from '../../../themes/base/vars.css';
3
- const iconRoot = style({
4
- top: '50%',
5
- transform: 'translate3d(0, -50%, 0)',
6
- transition: `color 0.2s ${vars.animation.easing.decelerate} 0s`,
7
- margin: `0 calc(${vars.space['3']} - 1px)`,
8
- });
9
- export const icon = {
10
- prefix: [iconRoot, style({ left: 0 })],
11
- suffix: [iconRoot, style({ right: 0 })],
12
- };
13
3
  export const input = {
14
4
  itself: styleVariants({
15
5
  root: {
@@ -17,10 +7,6 @@ export const input = {
17
7
  alignSelf: 'flex-end',
18
8
  background: 'transparent',
19
9
  outline: 'none',
20
- fontSize: vars.typography.size['4'].fontSize,
21
- lineHeight: vars.typography.size['4'].lineHeight,
22
- height: vars.space['8'],
23
- padding: `calc(((${vars.space['8']} - ${vars.typography.size['4'].fontSize}) / 2) - 3px) calc(${vars.space['4']} - 1px)`,
24
10
  selectors: {
25
11
  '&[disabled]': {
26
12
  color: vars.typography.colour.muted,
@@ -34,12 +20,6 @@ export const input = {
34
20
  },
35
21
  },
36
22
  },
37
- prefixed: {
38
- paddingLeft: `calc((${vars.space['3']} - 1px) + (${vars.space['4']} - 1px) + ${vars.space[4]})`,
39
- },
40
- suffixed: {
41
- paddingRight: `calc((${vars.space['3']} - 1px) + (${vars.space['4']} - 1px) + ${vars.space[4]})`,
42
- },
43
23
  }),
44
24
  };
45
25
  const textAreaHeight = '107px';
@@ -51,3 +31,92 @@ export const types = styleVariants({
51
31
  resize: 'vertical',
52
32
  },
53
33
  });
34
+ export const inputWrapperSize = {
35
+ small: {
36
+ root: styleVariants({
37
+ textarea: {
38
+ paddingTop: `${vars.space['2']}`,
39
+ },
40
+ }),
41
+ },
42
+ medium: {
43
+ root: styleVariants({
44
+ textarea: {
45
+ paddingTop: `${vars.space['2']}`,
46
+ },
47
+ }),
48
+ },
49
+ };
50
+ export const inputItselfSize = {
51
+ small: {
52
+ root: styleVariants({
53
+ any: {
54
+ fontSize: vars.typography.size['3'].fontSize,
55
+ lineHeight: vars.typography.size['3'].lineHeight,
56
+ padding: `${vars.space['2']}`,
57
+ },
58
+ textarea: {
59
+ padding: `0 ${vars.space['2']} ${vars.space['2']}`,
60
+ },
61
+ }),
62
+ prefixed: styleVariants({
63
+ any: {
64
+ paddingLeft: `calc(${vars.space['2']} + ${vars.space['5']} + ${vars.space['2']})`,
65
+ },
66
+ textarea: {
67
+ paddingLeft: `calc(${vars.space['2']} + ${vars.space['5']} + ${vars.space['2']})`,
68
+ },
69
+ }),
70
+ suffixed: styleVariants({
71
+ any: {
72
+ paddingRight: `calc(${vars.space['2']} + ${vars.space['5']} + ${vars.space['2']})`,
73
+ },
74
+ textarea: {
75
+ paddingRight: `calc(${vars.space['2']} + ${vars.space['5']} + ${vars.space['2']})`,
76
+ },
77
+ }),
78
+ },
79
+ medium: {
80
+ root: styleVariants({
81
+ any: {
82
+ fontSize: vars.typography.size['4'].fontSize,
83
+ lineHeight: vars.typography.size['4'].lineHeight,
84
+ height: vars.space['8'],
85
+ padding: `calc(((${vars.space['8']} - ${vars.typography.size['4'].fontSize}) / 2) - 3px) calc(${vars.space['4']} - 1px)`,
86
+ },
87
+ textarea: {
88
+ padding: `${vars.space['1']} calc(${vars.space['4']} - 1px) calc(((${vars.space['8']} - ${vars.typography.size['4'].fontSize}) / 2) - 3px)`,
89
+ },
90
+ }),
91
+ prefixed: styleVariants({
92
+ any: {
93
+ paddingLeft: `calc((${vars.space['3']} - 1px) + (${vars.space['4']} - 1px) + ${vars.space[4]})`,
94
+ },
95
+ }),
96
+ suffixed: styleVariants({
97
+ any: {
98
+ paddingRight: `calc((${vars.space['3']} - 1px) + (${vars.space['4']} - 1px) + ${vars.space[4]})`,
99
+ },
100
+ }),
101
+ },
102
+ };
103
+ export const iconRoot = style({
104
+ zIndex: 1,
105
+ top: '50%',
106
+ transform: 'translate3d(0, -50%, 0)',
107
+ transition: `color 0.2s ${vars.animation.easing.decelerate} 0s`,
108
+ });
109
+ export const prefixIcon = style({
110
+ left: 0,
111
+ });
112
+ export const suffixIcon = style({
113
+ right: 0,
114
+ });
115
+ export const iconSize = styleVariants({
116
+ small: {
117
+ margin: `0 ${vars.space['2']}`,
118
+ },
119
+ medium: {
120
+ margin: `0 calc(${vars.space['3']} - 1px)`,
121
+ },
122
+ });
@@ -1,6 +1,7 @@
1
1
  import { IconType } from '@autoguru/icons';
2
2
  import * as React from 'react';
3
3
  import { AriaAttributes, ChangeEventHandler, ComponentType, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, MutableRefObject, ReactNode, Ref } from 'react';
4
+ import * as styles from './withEnhancedInput.css';
4
5
  export interface EventHandlers<PrimitiveElementType> {
5
6
  onChange?: ChangeEventHandler<PrimitiveElementType>;
6
7
  onBlur?: FocusEventHandler<PrimitiveElementType>;
@@ -22,6 +23,7 @@ export interface EnhanceInputPrimitiveProps extends AriaAttributes {
22
23
  disabled?: boolean;
23
24
  notch?: boolean;
24
25
  reserveHintSpace?: boolean;
26
+ size?: keyof typeof styles.inputItselfSize;
25
27
  fieldIcon?: IconType;
26
28
  prefixIcon?: IconType;
27
29
  suffixIcon?: IconType;
@@ -35,9 +37,10 @@ export interface ValidationProps {
35
37
  }
36
38
  export declare type EnhanceInputProps<IncomingProps, PrimitiveElementType> = IncomingProps & EnhanceInputPrimitiveProps & EventHandlers<PrimitiveElementType> & ValidationProps;
37
39
  export declare type WrappedComponentProps<IncomingProps, PrimitiveElementType> = {
40
+ size: keyof typeof styles.inputItselfSize;
38
41
  validation: ValidationProps;
39
42
  eventHandlers: EventHandlers<PrimitiveElementType>;
40
- field: Omit<EnhanceInputPrimitiveProps, 'placeholder' | 'hintText' | 'fieldIcon'> & {
43
+ field: Omit<EnhanceInputPrimitiveProps, 'placeholder' | 'hintText' | 'fieldIcon' | 'size'> & {
41
44
  ref: MutableRefObject<PrimitiveElementType>;
42
45
  };
43
46
  fieldIcon?: EnhanceInputPrimitiveProps['fieldIcon'];
@@ -1 +1 @@
1
- {"version":3,"file":"withEnhancedInput.d.ts","sourceRoot":"","sources":["../../../../lib/components/private/InputBase/withEnhancedInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACN,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EAEjB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,EACT,GAAG,EAGH,MAAM,OAAO,CAAC;AAaf,MAAM,WAAW,aAAa,CAAC,oBAAoB;IAClD,QAAQ,CAAC,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;IACpD,MAAM,CAAC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IACjD,OAAO,CAAC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IAClD,SAAS,CAAC,EAAE,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;IACvD,OAAO,CAAC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IACvD,YAAY,CAAC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IAEvD,OAAO,CAAC,IAAI,IAAI,CAAC;CACjB;AAGD,MAAM,WAAW,0BAA2B,SAAQ,cAAc;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,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AAC;IACzB,aAAa,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;CAClE;AAED,eAAO,MAAM,iBAAiB,wPAW1B,oBAAoB,+JAyNtB,CAAC"}
1
+ {"version":3,"file":"withEnhancedInput.d.ts","sourceRoot":"","sources":["../../../../lib/components/private/InputBase/withEnhancedInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACN,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EAEjB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,EACT,GAAG,EAGH,MAAM,OAAO,CAAC;AAUf,OAAO,KAAK,MAAM,MAAM,yBAAyB,CAAC;AAGlD,MAAM,WAAW,aAAa,CAAC,oBAAoB;IAClD,QAAQ,CAAC,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;IACpD,MAAM,CAAC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IACjD,OAAO,CAAC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IAClD,SAAS,CAAC,EAAE,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;IACvD,OAAO,CAAC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IACvD,YAAY,CAAC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IAEvD,OAAO,CAAC,IAAI,IAAI,CAAC;CACjB;AAGD,MAAM,WAAW,0BAA2B,SAAQ,cAAc;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EA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EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;CACnB,GAAG,aAAa,CAAC;AAElB,UAAU,oBAAoB;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;CAClE;AAED,eAAO,MAAM,iBAAiB,wPAW1B,oBAAoB,+JAoPtB,CAAC"}
@@ -10,7 +10,7 @@ import { HintText } from './HintText';
10
10
  import * as inputStateStyles from './InputState.css';
11
11
  import { NotchedBase } from './NotchedBase';
12
12
  import * as styles from './withEnhancedInput.css';
13
- export const withEnhancedInput = (WrappingComponent, { primitiveType = 'text', withPrefixIcon = true, withSuffixIcon = true, } = { primitiveType: 'text' }) => forwardRef(({ placeholder, name, id = name, hintText, disabled = false, className, isTouched, isValid, isLoading = false, notch = true, reserveHintSpace = false, value: incomingValue = '', onChange: incomingOnChange, onReset, onMouseLeave, onMouseEnter, onBlur, onFocus, onKeyDown, prefixIcon, suffixIcon, wrapperRef, autoFocus, ...rest }, ref) => {
13
+ export const withEnhancedInput = (WrappingComponent, { primitiveType = 'text', withPrefixIcon = true, withSuffixIcon = true, } = { primitiveType: 'text' }) => forwardRef(({ placeholder, name, id = name, hintText, disabled = false, className, isTouched, isValid, isLoading = false, notch = true, reserveHintSpace = false, size = 'medium', value: incomingValue = '', onChange: incomingOnChange, onReset, onMouseLeave, onMouseEnter, onBlur, onFocus, onKeyDown, prefixIcon, suffixIcon, wrapperRef, autoFocus, ...rest }, ref) => {
14
14
  invariant(!(prefixIcon && !withPrefixIcon), 'prefix icon is not supported for this component');
15
15
  invariant(!(suffixIcon && !withSuffixIcon), 'suffix icon is not supported for this component');
16
16
  const [value, onChange] = useInputControlledState(incomingValue, incomingOnChange);
@@ -29,15 +29,18 @@ export const withEnhancedInput = (WrappingComponent, { primitiveType = 'text', w
29
29
  width: 'full',
30
30
  position: 'relative',
31
31
  display: 'flex',
32
- }), styles.types[primitiveType], styles.input.itself.root, {
33
- [styles.input.itself.prefixed]: Boolean(prefixIcon),
34
- [styles.input.itself.suffixed]: Boolean(suffixIcon || isLoading),
32
+ }), styles.input.itself.root, styles.types[primitiveType], styles.inputItselfSize[size].root.any, styles.inputItselfSize[size].root[primitiveType], {
33
+ [styles.inputItselfSize[size].prefixed.any]: Boolean(prefixIcon),
34
+ [styles.inputItselfSize[size].prefixed[primitiveType]]: Boolean(prefixIcon),
35
+ [styles.inputItselfSize[size].suffixed.any]: Boolean(suffixIcon || isLoading),
36
+ [styles.inputItselfSize[size].suffixed[primitiveType]]: Boolean(suffixIcon || isLoading),
35
37
  });
36
38
  const wrappingComponent = {
37
39
  validation: {
38
40
  isTouched,
39
41
  isValid,
40
42
  },
43
+ size,
41
44
  eventHandlers: {
42
45
  onChange: wrapEvent((event) => {
43
46
  if (disabled) {
@@ -80,13 +83,13 @@ export const withEnhancedInput = (WrappingComponent, { primitiveType = 'text', w
80
83
  position: 'absolute',
81
84
  });
82
85
  return (React.createElement(Box, { width: "full", className: className, onMouseEnter: onMouseOver, onMouseLeave: onMouseOut },
83
- React.createElement(NotchedBase, { id: id, prefixed: Boolean(prefixIcon), isEmpty: isEmpty, disabled: disabled, notch: notch, placeholder: placeholder, placeholderColourClassName: clsx({
86
+ React.createElement(NotchedBase, { id: id, prefixed: Boolean(prefixIcon), isEmpty: isEmpty, size: size, disabled: disabled, notch: notch, placeholder: placeholder, placeholderColourClassName: clsx({
84
87
  [derivedColours.colour]: !isEmpty,
85
88
  }), borderColourClassName: derivedColours.borderColour },
86
- React.createElement(Box, { ref: wrapperRef, width: "full", height: "full" },
87
- prefixIcon ? (React.createElement(Icon, { icon: prefixIcon, size: "medium", className: clsx(iconStyles, styles.icon.prefix, derivedColours.colour) })) : null,
88
- isLoading ? (React.createElement(ProgressSpinner, { className: clsx(iconStyles, styles.icon.suffix, derivedColours.colour) })) : null,
89
- suffixIcon && !isLoading ? (React.createElement(Icon, { icon: suffixIcon, size: "medium", className: clsx(iconStyles, styles.icon.suffix, derivedColours.colour) })) : null,
89
+ React.createElement(Box, { ref: wrapperRef, className: styles.inputWrapperSize[size].root[primitiveType], width: "full", height: "full" },
90
+ prefixIcon ? (React.createElement(Icon, { icon: prefixIcon, size: "medium", className: clsx(iconStyles, styles.iconRoot, styles.prefixIcon, styles.iconSize[size], derivedColours.colour) })) : null,
91
+ isLoading ? (React.createElement(ProgressSpinner, { className: clsx(iconStyles, styles.iconRoot, styles.suffixIcon, styles.iconSize[size], derivedColours.colour) })) : null,
92
+ suffixIcon && !isLoading ? (React.createElement(Icon, { icon: suffixIcon, size: "medium", className: clsx(iconStyles, styles.iconRoot, styles.suffixIcon, styles.iconSize[size], derivedColours.colour) })) : null,
90
93
  React.createElement(WrappingComponent, { ...wrappingComponent }))),
91
94
  hintText || reserveHintSpace ? (React.createElement(HintText, { className: derivedColours.colour, hintText: hintText, disabled: disabled, reserveHintSpace: reserveHintSpace })) : null));
92
95
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autoguru/overdrive",
3
- "version": "4.3.6",
3
+ "version": "4.4.2",
4
4
  "description": "Overdrive is a product component library, and design system for AutoGuru.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -40,18 +40,18 @@
40
40
  "@autoguru/icons": "1.7.17",
41
41
  "@autoguru/tsconfig": "1.0.79",
42
42
  "@autoguru/utilities": "1.1.0",
43
- "@popperjs/core": "^2.10.2",
43
+ "@popperjs/core": "2.11.2",
44
44
  "@types/react": "^18.0.9",
45
45
  "@types/react-dom": "^18.0.4",
46
- "clsx": "^1.1.1",
47
- "colord": "^2.0.1",
48
- "csstype": "^3.0.7",
49
- "eslint-plugin-jest": "^24.4.0",
46
+ "clsx": "1.1.1",
47
+ "colord": "2.9.2",
48
+ "csstype": "3.0.10",
49
+ "eslint-plugin-jest": "26.2.2",
50
50
  "react": "^18.1.0",
51
51
  "react-dom": "^18.1.0",
52
- "react-focus-lock": "^2.5.0",
53
- "react-keyed-flatten-children": "^1.3.0",
54
- "webpack": "^5.58.1"
52
+ "react-focus-lock": "2.8.1",
53
+ "react-keyed-flatten-children": "1.3.0",
54
+ "webpack": "5.69.0"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@autoguru/icons": "^1.7.4",