@autoguru/overdrive 4.40.0-next.6 → 4.40.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ColourInput/ColourInput.d.ts +1 -1
- package/dist/components/ColourInput/ColourInput.d.ts.map +1 -1
- package/dist/components/DateInput/DateInput.d.ts +1 -1
- package/dist/components/DateInput/DateInput.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/NumberInput/useNumberInputBehaviours.d.ts +2 -2
- package/dist/components/NumberInput/useNumberInputBehaviours.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInput.d.ts +1 -1
- package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
- package/dist/components/Switch/Switch.css.d.ts +1 -0
- package/dist/components/Switch/Switch.css.d.ts.map +1 -1
- package/dist/components/Switch/Switch.css.js +4 -0
- package/dist/components/Switch/Switch.d.ts +2 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +10 -6
- package/dist/components/Switch/Switch.stories.d.ts.map +1 -1
- package/dist/components/TextAreaInput/TextAreaInput.d.ts +1 -1
- package/dist/components/TextAreaInput/TextAreaInput.d.ts.map +1 -1
- package/dist/components/TextInput/TextInput.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts.map +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.d.ts +6 -6
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
- package/package.json +18 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const ColourInput: React.ForwardRefExoticComponent<import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<
|
|
2
|
+
export declare const ColourInput: React.ForwardRefExoticComponent<import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<HTMLInputElement>>;
|
|
3
3
|
export default ColourInput;
|
|
4
4
|
//# sourceMappingURL=ColourInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColourInput.d.ts","sourceRoot":"","sources":["../../../lib/components/ColourInput/ColourInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"ColourInput.d.ts","sourceRoot":"","sources":["../../../lib/components/ColourInput/ColourInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,eAAO,MAAM,WAAW,8TAyEvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const DateInput: React.ForwardRefExoticComponent<Partial<Pick<HTMLInputElement, "min" | "max">> & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<
|
|
2
|
+
export declare const DateInput: React.ForwardRefExoticComponent<Partial<Pick<HTMLInputElement, "min" | "max">> & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<HTMLInputElement>>;
|
|
3
3
|
export default DateInput;
|
|
4
4
|
//# sourceMappingURL=DateInput.d.ts.map
|
|
@@ -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,
|
|
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,+WAgCrB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -3,6 +3,6 @@ type InputAttributes = Pick<React.InputHTMLAttributes<HTMLInputElement>, 'min' |
|
|
|
3
3
|
interface Props extends InputAttributes {
|
|
4
4
|
preventMouseWheel?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const NumberInput: React.ForwardRefExoticComponent<Props & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<
|
|
6
|
+
export declare const NumberInput: React.ForwardRefExoticComponent<Props & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<HTMLInputElement>>;
|
|
7
7
|
export default NumberInput;
|
|
8
8
|
//# sourceMappingURL=NumberInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../lib/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAc9C,KAAK,eAAe,GAAG,IAAI,CAC1B,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAC3C,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CACpE,CAAC;AAEF,UAAU,KAAM,SAAQ,eAAe;IACtC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../lib/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAc9C,KAAK,eAAe,GAAG,IAAI,CAC1B,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAC3C,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CACpE,CAAC;AAEF,UAAU,KAAM,SAAQ,eAAe;IACtC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,WAAW,sUA8CvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FocusEventHandler, type FormEventHandler, type RefObject } from 'react';
|
|
2
2
|
import { EnhanceInputPrimitiveProps } from '../private/InputBase/withEnhancedInput';
|
|
3
3
|
interface Props {
|
|
4
|
-
value: EnhanceInputPrimitiveProps['value'];
|
|
4
|
+
value: EnhanceInputPrimitiveProps<HTMLInputElement>['value'];
|
|
5
5
|
ref: RefObject<HTMLInputElement>;
|
|
6
6
|
preventMouseWheel: boolean;
|
|
7
7
|
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
@@ -9,7 +9,7 @@ interface Props {
|
|
|
9
9
|
onChange?: FormEventHandler<HTMLInputElement>;
|
|
10
10
|
}
|
|
11
11
|
interface Returns {
|
|
12
|
-
value: EnhanceInputPrimitiveProps['value'];
|
|
12
|
+
value: EnhanceInputPrimitiveProps<HTMLInputElement>['value'];
|
|
13
13
|
inputRef: RefObject<HTMLInputElement>;
|
|
14
14
|
onFocus: FocusEventHandler<HTMLInputElement>;
|
|
15
15
|
onBlur: FocusEventHandler<HTMLInputElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNumberInputBehaviours.d.ts","sourceRoot":"","sources":["../../../lib/components/NumberInput/useNumberInputBehaviours.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EAKd,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAEpF,UAAU,KAAK;IACd,KAAK,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"useNumberInputBehaviours.d.ts","sourceRoot":"","sources":["../../../lib/components/NumberInput/useNumberInputBehaviours.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EAKd,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAEpF,UAAU,KAAK;IACd,KAAK,EAAE,0BAA0B,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC;IAC7D,GAAG,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACjC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAC7C,QAAQ,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;CAC9C;AAED,UAAU,OAAO;IAChB,KAAK,EAAE,0BAA0B,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC;IAC7D,QAAQ,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACtC,OAAO,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAC7C,MAAM,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAC5C,QAAQ,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;CAC7C;AAED,eAAO,MAAM,wBAAwB,GAAI,kHAOtC,KAAK,KAAG,OAqFV,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const SelectInput: React.ForwardRefExoticComponent<{
|
|
3
3
|
children?: React.ReactNode;
|
|
4
|
-
} & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLSelectElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<
|
|
4
|
+
} & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps<HTMLSelectElement> & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLSelectElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<HTMLSelectElement>>;
|
|
5
5
|
export default SelectInput;
|
|
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":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,eAAO,MAAM,WAAW;eAEX,KAAK,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../lib/components/SelectInput/SelectInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,eAAO,MAAM,WAAW;eAEX,KAAK,CAAC,SAAS;mSA0D3B,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Switch/Switch.css.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,IAAI,QAEf,CAAC;AAEH,eAAO,MAAM,MAAM,QAgBjB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAEnB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAGnB,CAAC;AAKH,eAAO,MAAM,MAAM,sCAwBjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"Switch.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Switch/Switch.css.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,IAAI,QAEf,CAAC;AAEH,eAAO,MAAM,MAAM,QAgBjB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAEnB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAGnB,CAAC;AAKH,eAAO,MAAM,MAAM,sCAwBjB,CAAC;AAEH,eAAO,MAAM,UAAU,QAGrB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type AriaSwitchProps } from 'react-aria';
|
|
3
|
+
import type { WithTestId } from '../../types';
|
|
3
4
|
export interface SwitchProps extends AriaSwitchProps {
|
|
4
5
|
'aria-labelledby'?: AriaSwitchProps['aria-labelledby'];
|
|
5
6
|
name?: AriaSwitchProps['name'];
|
|
@@ -11,6 +12,6 @@ export interface SwitchProps extends AriaSwitchProps {
|
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
toggled?: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare const Switch: ({ className, disabled, toggled, isSelected, isDisabled, ...incomingProps }: SwitchProps) => React.JSX.Element;
|
|
15
|
+
export declare const Switch: ({ className, disabled, toggled, isSelected, isDisabled, testId, ...incomingProps }: WithTestId<SwitchProps>) => React.JSX.Element;
|
|
15
16
|
export default Switch;
|
|
16
17
|
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../lib/components/Switch/Switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AACtC,OAAO,EAA2B,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../lib/components/Switch/Switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AACtC,OAAO,EAA2B,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAE3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAQ9C,MAAM,WAAW,WAAY,SAAQ,eAAe;IACnD,iBAAiB,CAAC,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;IACvD,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IAC3C,UAAU,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAInB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAOD,eAAO,MAAM,MAAM,GAAI,oFAQpB,UAAU,CAAC,WAAW,CAAC,sBAuCzB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
const _excluded = ["className", "disabled", "toggled", "isSelected", "isDisabled"];
|
|
5
|
+
const _excluded = ["className", "disabled", "toggled", "isSelected", "isDisabled", "testId"];
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
8
|
import { useToggleState } from '@react-stately/toggle';
|
|
@@ -21,7 +21,8 @@ export const Switch = _ref => {
|
|
|
21
21
|
disabled,
|
|
22
22
|
toggled,
|
|
23
23
|
isSelected = toggled,
|
|
24
|
-
isDisabled = disabled
|
|
24
|
+
isDisabled = disabled,
|
|
25
|
+
testId
|
|
25
26
|
} = _ref,
|
|
26
27
|
incomingProps = _objectWithoutProperties(_ref, _excluded);
|
|
27
28
|
const props = _objectSpread(_objectSpread({}, incomingProps), {}, {
|
|
@@ -37,8 +38,11 @@ export const Switch = _ref => {
|
|
|
37
38
|
isFocusVisible,
|
|
38
39
|
focusProps
|
|
39
40
|
} = useFocusRing();
|
|
40
|
-
return _jsxs("label", {
|
|
41
|
-
className: styles.base,
|
|
41
|
+
return _jsxs("label", _objectSpread(_objectSpread({
|
|
42
|
+
className: clsx(styles.base, className)
|
|
43
|
+
}, dataAttrs({
|
|
44
|
+
'test-id': testId
|
|
45
|
+
})), {}, {
|
|
42
46
|
children: [_jsx(VisuallyHidden, {
|
|
43
47
|
children: _jsx("input", _objectSpread(_objectSpread(_objectSpread({}, inputProps), focusProps), {}, {
|
|
44
48
|
ref: ref
|
|
@@ -49,7 +53,7 @@ export const Switch = _ref => {
|
|
|
49
53
|
}), {
|
|
50
54
|
[styles.disabled]: inputProps.disabled,
|
|
51
55
|
[styles.toggleOn]: state.isSelected
|
|
52
|
-
}
|
|
56
|
+
})
|
|
53
57
|
}, dataAttrs({
|
|
54
58
|
disabled: inputProps.disabled,
|
|
55
59
|
active: state.isSelected,
|
|
@@ -61,6 +65,6 @@ export const Switch = _ref => {
|
|
|
61
65
|
})
|
|
62
66
|
})
|
|
63
67
|
})), props.children]
|
|
64
|
-
});
|
|
68
|
+
}));
|
|
65
69
|
};
|
|
66
70
|
export default Switch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/Switch/Switch.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Switch.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/Switch/Switch.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AASvD,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAsB7B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAGrC,eAAO,MAAM,YAAY,EAAE,KAK1B,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,KAYvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const TextAreaInput: React.ForwardRefExoticComponent<Partial<Pick<HTMLTextAreaElement, "maxLength" | "type">> & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<
|
|
2
|
+
export declare const TextAreaInput: React.ForwardRefExoticComponent<Partial<Pick<HTMLTextAreaElement, "maxLength" | "type">> & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<HTMLInputElement>>;
|
|
3
3
|
export default TextAreaInput;
|
|
4
4
|
//# sourceMappingURL=TextAreaInput.d.ts.map
|
|
@@ -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;AAO/B,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"TextAreaInput.d.ts","sourceRoot":"","sources":["../../../lib/components/TextAreaInput/TextAreaInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,eAAO,MAAM,aAAa,yXA2BzB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const TextInput: React.ForwardRefExoticComponent<Partial<Pick<HTMLInputElement, "maxLength" | "type">> & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<
|
|
2
|
+
export declare const TextInput: React.ForwardRefExoticComponent<Partial<Pick<HTMLInputElement, "maxLength" | "type">> & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<HTMLInputElement>>;
|
|
3
3
|
export default TextInput;
|
|
4
4
|
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../lib/components/TextInput/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../lib/components/TextInput/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,eAAO,MAAM,SAAS,sXA0BrB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { Box } from '../../Box';
|
|
|
4
4
|
import { NotchedBase } from './NotchedBase';
|
|
5
5
|
import type { InputSize } from './withEnhancedInput.css';
|
|
6
6
|
type ElementTypes = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;
|
|
7
|
-
type NativeAttributes = Omit<InputHTMLAttributes<
|
|
7
|
+
type NativeAttributes<E extends ElementTypes> = Omit<InputHTMLAttributes<E>, 'height' | 'is' | 'placeholder' | 'size' | 'width'>;
|
|
8
8
|
export interface EventHandlers<E extends ElementTypes> {
|
|
9
9
|
onChange?: ChangeEventHandler<E>;
|
|
10
10
|
onBlur?: FocusEventHandler<E>;
|
|
@@ -15,7 +15,7 @@ export interface EventHandlers<E extends ElementTypes> {
|
|
|
15
15
|
onMouseLeave?: MouseEventHandler<E>;
|
|
16
16
|
onReset?(): void;
|
|
17
17
|
}
|
|
18
|
-
export interface EnhanceInputPrimitiveProps extends NativeAttributes
|
|
18
|
+
export interface EnhanceInputPrimitiveProps<E extends ElementTypes> extends NativeAttributes<E>, Pick<ComponentProps<typeof NotchedBase>, 'notch' | 'placeholder' | 'attach' | 'borderMerged' | 'isFocused'>, Pick<ComponentProps<typeof Box>, 'backgroundColour'> {
|
|
19
19
|
name: string;
|
|
20
20
|
id?: string;
|
|
21
21
|
className?: string;
|
|
@@ -35,15 +35,15 @@ export interface ValidationProps {
|
|
|
35
35
|
isTouched?: boolean;
|
|
36
36
|
isValid?: boolean;
|
|
37
37
|
}
|
|
38
|
-
export type EnhanceInputProps<IncomingProps, E extends ElementTypes> = IncomingProps & EnhanceInputPrimitiveProps & EventHandlers<E> & ValidationProps;
|
|
38
|
+
export type EnhanceInputProps<IncomingProps, E extends ElementTypes> = IncomingProps & EnhanceInputPrimitiveProps<E> & EventHandlers<E> & ValidationProps;
|
|
39
39
|
export type WrappedComponentProps<IncomingProps, E extends ElementTypes> = {
|
|
40
40
|
size: InputSize;
|
|
41
41
|
validation: ValidationProps;
|
|
42
42
|
eventHandlers: EventHandlers<E>;
|
|
43
|
-
field: Omit<EnhanceInputPrimitiveProps
|
|
43
|
+
field: Omit<EnhanceInputPrimitiveProps<E>, 'placeholder' | 'hintText' | 'fieldIcon' | 'size'> & {
|
|
44
44
|
ref: ForwardedRef<ElementTypes> | RefObject<ElementTypes>;
|
|
45
45
|
};
|
|
46
|
-
fieldIcon?: EnhanceInputPrimitiveProps['fieldIcon'];
|
|
46
|
+
fieldIcon?: EnhanceInputPrimitiveProps<E>['fieldIcon'];
|
|
47
47
|
className?: boolean;
|
|
48
48
|
prefixed: boolean;
|
|
49
49
|
suffixed: boolean;
|
|
@@ -55,6 +55,6 @@ interface EnhancedInputConfigs<ValueType = string> {
|
|
|
55
55
|
withSuffixIcon?: boolean;
|
|
56
56
|
primitiveType: 'textarea' | 'text' | 'number' | 'date' | 'select' | 'color';
|
|
57
57
|
}
|
|
58
|
-
export declare const withEnhancedInput: <IncomingProps extends object = {}, E extends ElementTypes = HTMLInputElement>(WrappingComponent: ComponentType<WrappedComponentProps<IncomingProps, E>>, { primitiveType, withPrefixIcon, withSuffixIcon, defaultValue, }?: EnhancedInputConfigs) => React.ForwardRefExoticComponent<React.PropsWithoutRef<EnhanceInputProps<IncomingProps, E>> & React.RefAttributes<
|
|
58
|
+
export declare const withEnhancedInput: <IncomingProps extends object = {}, E extends ElementTypes = HTMLInputElement>(WrappingComponent: ComponentType<WrappedComponentProps<IncomingProps, E>>, { primitiveType, withPrefixIcon, withSuffixIcon, defaultValue, }?: EnhancedInputConfigs) => React.ForwardRefExoticComponent<React.PropsWithoutRef<EnhanceInputProps<IncomingProps, E>> & React.RefAttributes<E>>;
|
|
59
59
|
export {};
|
|
60
60
|
//# sourceMappingURL=withEnhancedInput.d.ts.map
|
|
@@ -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,EAAE,EACb,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAEjB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,SAAS,EAGd,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,GAAG,EAAgB,MAAM,WAAW,CAAC;AAM9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,KAAK,YAAY,GAAG,gBAAgB,GAAG,mBAAmB,GAAG,iBAAiB,CAAC;AAC/E,KAAK,gBAAgB,
|
|
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,EAAE,EACb,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAEjB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KA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AO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;CACnB,GAAG,aAAa,GAChB,IAAI,CACH,cAAc,CAAC,OAAO,WAAW,CAAC,EAClC,QAAQ,GAAG,cAAc,GAAG,WAAW,CACvC,CAAC;AAEH,UAAU,oBAAoB,CAAC,SAAS,GAAG,MAAM;IAChD,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CAC5E;AAED,eAAO,MAAM,iBAAiB,GAC7B,aAAa,SAAS,MAAM,GAAG,EAAE,EACjC,CAAC,SAAS,YAAY,GAAG,gBAAgB,EAEzC,mBAAmB,aAAa,CAAC,qBAAqB,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,EACzE,mEAMG,oBAAsE,yHA6PxE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autoguru/overdrive",
|
|
3
|
-
"version": "4.40.0-next.
|
|
3
|
+
"version": "4.40.0-next.8",
|
|
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",
|
|
@@ -91,23 +91,23 @@
|
|
|
91
91
|
"@octokit/rest": "^21.1.1",
|
|
92
92
|
"@popperjs/core": "^2.11.8",
|
|
93
93
|
"@react-stately/toggle": "^3.8.2",
|
|
94
|
-
"@storybook/addon-a11y": "
|
|
95
|
-
"@storybook/addon-actions": "
|
|
96
|
-
"@storybook/addon-essentials": "
|
|
97
|
-
"@storybook/addon-interactions": "
|
|
98
|
-
"@storybook/addon-links": "
|
|
99
|
-
"@storybook/addon-onboarding": "
|
|
100
|
-
"@storybook/blocks": "
|
|
101
|
-
"@storybook/manager-api": "
|
|
102
|
-
"@storybook/react": "
|
|
103
|
-
"@storybook/react-vite": "
|
|
104
|
-
"@storybook/test": "
|
|
105
|
-
"@storybook/theming": "
|
|
94
|
+
"@storybook/addon-a11y": "8.6.9",
|
|
95
|
+
"@storybook/addon-actions": "8.6.9",
|
|
96
|
+
"@storybook/addon-essentials": "8.6.9",
|
|
97
|
+
"@storybook/addon-interactions": "8.6.9",
|
|
98
|
+
"@storybook/addon-links": "8.6.9",
|
|
99
|
+
"@storybook/addon-onboarding": "8.6.9",
|
|
100
|
+
"@storybook/blocks": "8.6.9",
|
|
101
|
+
"@storybook/manager-api": "8.6.9",
|
|
102
|
+
"@storybook/react": "8.6.9",
|
|
103
|
+
"@storybook/react-vite": "8.6.9",
|
|
104
|
+
"@storybook/test": "8.6.9",
|
|
105
|
+
"@storybook/theming": "8.6.9",
|
|
106
106
|
"@testing-library/jest-dom": "^6.6.3",
|
|
107
107
|
"@testing-library/react": "^16.2.0",
|
|
108
108
|
"@testing-library/react-hooks": "^8.0.1",
|
|
109
109
|
"@testing-library/user-event": "^14.6.1",
|
|
110
|
-
"@types/node": "
|
|
110
|
+
"@types/node": "22.13.13",
|
|
111
111
|
"@types/react": "^19.0.12",
|
|
112
112
|
"@types/react-dom": "^19.0.4",
|
|
113
113
|
"@types/webpack-env": "^1.18.8",
|
|
@@ -131,8 +131,8 @@
|
|
|
131
131
|
"core-js": "^3.41.0",
|
|
132
132
|
"csstype": "^3.1.3",
|
|
133
133
|
"deepmerge": "^4.3.1",
|
|
134
|
-
"eslint": "
|
|
135
|
-
"eslint-plugin-storybook": "
|
|
134
|
+
"eslint": "9.23.0",
|
|
135
|
+
"eslint-plugin-storybook": "0.12.0",
|
|
136
136
|
"husky": "^9.1.7",
|
|
137
137
|
"intersection-observer": "^0.12.2",
|
|
138
138
|
"jsdom": "^26.0.0",
|
|
@@ -155,11 +155,11 @@
|
|
|
155
155
|
"react-stately": "^3.36.1",
|
|
156
156
|
"react-swipeable": "^7.0.2",
|
|
157
157
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
158
|
-
"storybook": "
|
|
158
|
+
"storybook": "8.6.9",
|
|
159
159
|
"storybook-addon-tag-badges": "^1.4.0",
|
|
160
160
|
"typescript": "^5.8.2",
|
|
161
161
|
"url-loader": "^4.1.1",
|
|
162
|
-
"vite": "
|
|
162
|
+
"vite": "6.2.3",
|
|
163
163
|
"vitest": "^3.0.9",
|
|
164
164
|
"webpack": "^5.98.0"
|
|
165
165
|
},
|