@autoguru/overdrive 4.4.0 → 4.4.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.
@@ -281,7 +281,7 @@ const AutoSuggestInputPrimitive = withEnhancedInput(({ field, eventHandlers, val
281
281
  onReset();
282
282
  focusTimeout = setTimeout(() => ref.current?.focus(), 100);
283
283
  }, [onReset, focusTimeout]);
284
- const suffix = useMemo(() => isLoading ? null : field.value && isFocused ? (React.createElement(Box, { is: "button", paddingY: "3", paddingRight: "4", flexShrink: 0, onMouseDown: onRequestReset },
284
+ const suffix = useMemo(() => isLoading ? null : field.value && isFocused ? (React.createElement(Box, { is: "button", paddingY: size === 'small' ? '1' : '3', paddingRight: size === 'small' ? '2' : '3', flexShrink: 0, onMouseDown: onRequestReset },
285
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), []);
@@ -1 +1 @@
1
- {"version":3,"file":"withEnhancedInput.css.d.ts","sourceRoot":"","sources":["../../../../lib/components/private/InputBase/withEnhancedInput.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK;;CAsBjB,CAAC;AAIF,eAAO,MAAM,KAAK,4BAOhB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;CAe5B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;CAiD3B,CAAC;AAEF,eAAO,MAAM,QAAQ,QAKnB,CAAC;AAEH,eAAO,MAAM,UAAU,QAErB,CAAC;AACH,eAAO,MAAM,UAAU,QAErB,CAAC;AACH,eAAO,MAAM,QAAQ,oCAOnB,CAAC"}
1
+ {"version":3,"file":"withEnhancedInput.css.d.ts","sourceRoot":"","sources":["../../../../lib/components/private/InputBase/withEnhancedInput.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK;;CAqBjB,CAAC;AAIF,eAAO,MAAM,KAAK,4BAOhB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;CAe5B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;CAoD3B,CAAC;AAEF,eAAO,MAAM,QAAQ,QAKnB,CAAC;AAEH,eAAO,MAAM,UAAU,QAErB,CAAC;AACH,eAAO,MAAM,UAAU,QAErB,CAAC;AACH,eAAO,MAAM,QAAQ,oCAOnB,CAAC"}
@@ -7,7 +7,6 @@ export const input = {
7
7
  alignSelf: 'flex-end',
8
8
  background: 'transparent',
9
9
  outline: 'none',
10
- fontSize: vars.typography.size['4'].fontSize,
11
10
  selectors: {
12
11
  '&[disabled]': {
13
12
  color: vars.typography.colour.muted,
@@ -52,6 +51,8 @@ export const inputItselfSize = {
52
51
  small: {
53
52
  root: styleVariants({
54
53
  any: {
54
+ fontSize: vars.typography.size['3'].fontSize,
55
+ lineHeight: vars.typography.size['3'].lineHeight,
55
56
  padding: `${vars.space['2']}`,
56
57
  },
57
58
  textarea: {
@@ -78,6 +79,7 @@ export const inputItselfSize = {
78
79
  medium: {
79
80
  root: styleVariants({
80
81
  any: {
82
+ fontSize: vars.typography.size['4'].fontSize,
81
83
  lineHeight: vars.typography.size['4'].lineHeight,
82
84
  height: vars.space['8'],
83
85
  padding: `calc(((${vars.space['8']} - ${vars.typography.size['4'].fontSize}) / 2) - 3px) calc(${vars.space['4']} - 1px)`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autoguru/overdrive",
3
- "version": "4.4.0",
3
+ "version": "4.4.3",
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",