@autoguru/overdrive 4.40.0-next.2 → 4.40.0-next.4
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/AutoSuggest/AutoSuggest.css.d.ts.map +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.css.js +1 -0
- package/dist/components/AutoSuggest/AutoSuggest.d.ts +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.d.ts.map +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.js +3 -4
- package/dist/components/AutoSuggest/AutoSuggest.stories.d.ts +1 -0
- package/dist/components/AutoSuggest/AutoSuggest.stories.d.ts.map +1 -1
- package/dist/components/Button/Button.css.d.ts +14 -1
- package/dist/components/Button/Button.css.d.ts.map +1 -1
- package/dist/components/Button/Button.css.js +3 -0
- package/dist/components/Button/Button.d.ts +1 -5
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +12 -2
- package/dist/components/Button/Button.stories.d.ts +1 -0
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- 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/DateInput/DateInput.stories.d.ts +1 -0
- package/dist/components/DateInput/DateInput.stories.d.ts.map +1 -1
- package/dist/components/DropDown/DropDown.stories.d.ts +3 -3
- package/dist/components/NumberInput/NumberInput.d.ts +4 -7
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.js +1 -1
- package/dist/components/NumberInput/NumberInput.stories.d.ts +2 -1
- package/dist/components/NumberInput/NumberInput.stories.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInput.css.d.ts +1 -0
- package/dist/components/SelectInput/SelectInput.css.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInput.css.js +3 -0
- package/dist/components/SelectInput/SelectInput.d.ts +2 -2
- package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInput.js +5 -4
- package/dist/components/SelectInput/SelectInput.stories.d.ts +2 -1
- package/dist/components/SelectInput/SelectInput.stories.d.ts.map +1 -1
- package/dist/components/Table/TableCell.css.d.ts.map +1 -1
- package/dist/components/Table/TableCell.css.js +2 -1
- package/dist/components/Table/TableCell.d.ts.map +1 -1
- package/dist/components/Table/TableCell.js +0 -1
- package/dist/components/Table/TableHeadCell.css.d.ts.map +1 -1
- package/dist/components/Table/TableHeadCell.css.js +0 -1
- package/dist/components/Table/TableHeadCell.d.ts.map +1 -1
- package/dist/components/Table/TableHeadCell.js +4 -5
- package/dist/components/TextAreaInput/TextAreaInput.d.ts +1 -1
- package/dist/components/TextAreaInput/TextAreaInput.d.ts.map +1 -1
- package/dist/components/TextAreaInput/TextAreaInput.js +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/HintText.d.ts +2 -0
- package/dist/components/private/InputBase/HintText.d.ts.map +1 -1
- package/dist/components/private/InputBase/HintText.js +2 -1
- package/dist/components/private/InputBase/NotchedBase.css.d.ts +8 -4
- package/dist/components/private/InputBase/NotchedBase.css.d.ts.map +1 -1
- package/dist/components/private/InputBase/NotchedBase.css.js +63 -13
- package/dist/components/private/InputBase/NotchedBase.d.ts +5 -4
- package/dist/components/private/InputBase/NotchedBase.d.ts.map +1 -1
- package/dist/components/private/InputBase/NotchedBase.js +7 -10
- package/dist/components/private/InputBase/withEnhancedInput.css.d.ts +10 -1
- package/dist/components/private/InputBase/withEnhancedInput.css.d.ts.map +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.css.js +36 -0
- package/dist/components/private/InputBase/withEnhancedInput.d.ts +20 -19
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.js +7 -5
- package/dist/themes/tokens.d.ts +2 -1
- package/dist/themes/tokens.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoSuggest.css.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"AutoSuggest.css.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,QAwBzB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;CAuB1B,CAAC;AAEF,eAAO,MAAM,cAAc,QAGzB,CAAC;AACH,eAAO,MAAM,KAAK,QAKhB,CAAC;AACH,eAAO,MAAM,eAAe,QAE1B,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAK7B,CAAC;AAEH,eAAO,MAAM,MAAM,QAEjB,CAAC;AAEH,eAAO,MAAM,UAAU,QAQrB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAO7B,CAAC;AAEH,eAAO,MAAM,mBAAmB,QAG9B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconType } from '@autoguru/icons';
|
|
2
|
-
import { ComponentPropsWithoutRef, ReactElement, Ref } from 'react';
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ReactElement, type Ref } from 'react';
|
|
3
3
|
import { TextInput } from '../TextInput';
|
|
4
4
|
export interface AutoSuggestValue<PayloadType> {
|
|
5
5
|
text: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoSuggest.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.tsx"],"names":[],"mappings":"AACA,OAAO,EAA8B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"AutoSuggest.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoS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AC,GAAG,IAAI,CAAC;IACtD,OAAO,CAAC,CAAC,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;CACrD;AAyGD,eAAO,MAAM,WAAW,EAwFlB,CAAC,WAAW,SAAS,OAAO,EACjC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAA;CAAE,KACnD,YAAY,CAAC;AA6hBlB,eAAe,WAAW,CAAC"}
|
|
@@ -13,8 +13,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
13
13
|
import { ChevronDownIcon, CloseIcon } from '@autoguru/icons';
|
|
14
14
|
import { wrapEvent } from '@autoguru/utilities';
|
|
15
15
|
import clsx from 'clsx';
|
|
16
|
-
import
|
|
17
|
-
import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useReducer, useRef, useState } from 'react';
|
|
16
|
+
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useReducer, useRef, useState } from 'react';
|
|
18
17
|
import { useMedia } from "../../hooks/useMedia/index.js";
|
|
19
18
|
import { useWindowScrollLock } from "../../hooks/useWindowScrollLock/index.js";
|
|
20
19
|
import { setRef, useId } from "../../utils/index.js";
|
|
@@ -484,7 +483,7 @@ const AutoSuggestInputPrimitive = withEnhancedInput(_ref5 => {
|
|
|
484
483
|
flexShrink: 0,
|
|
485
484
|
onMouseDown: onRequestReset,
|
|
486
485
|
children: _jsx(Icon, {
|
|
487
|
-
size:
|
|
486
|
+
size: size === 'large' ? size : 'medium',
|
|
488
487
|
icon: CloseIcon
|
|
489
488
|
})
|
|
490
489
|
}) : fieldIcon ? _jsx(Box, {
|
|
@@ -493,7 +492,7 @@ const AutoSuggestInputPrimitive = withEnhancedInput(_ref5 => {
|
|
|
493
492
|
paddingRight: size === 'medium' ? '3' : '2',
|
|
494
493
|
onClick: focusHandler,
|
|
495
494
|
children: _jsx(Icon, {
|
|
496
|
-
size:
|
|
495
|
+
size: size === 'large' ? size : 'medium',
|
|
497
496
|
icon: fieldIcon
|
|
498
497
|
})
|
|
499
498
|
}) : null, [field.value, isLoading, fieldIcon, isFocused, onRequestReset]);
|
|
@@ -4,6 +4,7 @@ declare const meta: Meta<typeof AutoSuggest>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Standard: Story;
|
|
7
|
+
export declare const LargeSize: Story;
|
|
7
8
|
export declare const SmallSize: Story;
|
|
8
9
|
export declare const Loading: Story;
|
|
9
10
|
//# sourceMappingURL=AutoSuggest.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoSuggest.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AA+BhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAyElC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,eAAO,MAAM,QAAQ,EAAE,KAAU,CAAC;AAElC,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
|
|
1
|
+
{"version":3,"file":"AutoSuggest.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AA+BhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAyElC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,eAAO,MAAM,QAAQ,EAAE,KAAU,CAAC;AAElC,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
|
|
@@ -10,6 +10,9 @@ export declare const button: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
10
10
|
medium: {
|
|
11
11
|
height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
12
12
|
};
|
|
13
|
+
xsmall: {
|
|
14
|
+
padding: `2px var(--${string})` | `2px var(--${string}, ${string})` | `2px var(--${string}, ${number})`;
|
|
15
|
+
};
|
|
13
16
|
};
|
|
14
17
|
shape: {
|
|
15
18
|
default: {};
|
|
@@ -81,5 +84,15 @@ export declare const button: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
81
84
|
false: never[];
|
|
82
85
|
};
|
|
83
86
|
}>;
|
|
84
|
-
|
|
87
|
+
type ButtonRecipeProps = NonNullable<Required<RecipeVariants<typeof button>>>;
|
|
88
|
+
export type ButtonSize = ButtonRecipeProps['size'];
|
|
89
|
+
export type ButtonShape = ButtonRecipeProps['shape'];
|
|
90
|
+
export type ButtonIntent = ButtonRecipeProps['intent'];
|
|
91
|
+
export type ButtonMinimal = ButtonRecipeProps['minimal'];
|
|
92
|
+
export interface StyledButtonProps {
|
|
93
|
+
size?: ButtonSize;
|
|
94
|
+
variant?: ButtonIntent;
|
|
95
|
+
minimal?: ButtonMinimal;
|
|
96
|
+
}
|
|
97
|
+
export {};
|
|
85
98
|
//# sourceMappingURL=Button.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Button/Button.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Button/Button.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAWlE,eAAO,MAAM,IAAI,QAIf,CAAC;AAEH,eAAO,MAAM,aAAa,QAExB,CAAC;AAEH,eAAO,MAAM,OAAO,QAElB,CAAC;AAGH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+OjB,CAAC;AAEH,KAAK,iBAAiB,GAAG,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;AAE9E,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACrD,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AACvD,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;AAEzD,MAAM,WAAW,iBAAiB;IAIjC,IAAI,CAAC,EAAE,UAAU,CAAC;IAIlB,OAAO,CAAC,EAAE,YAAY,CAAC;IAIvB,OAAO,CAAC,EAAE,aAAa,CAAC;CACxB"}
|
|
@@ -4,21 +4,17 @@ import { type AriaAttributes, type ComponentPropsWithRef, type ElementType, type
|
|
|
4
4
|
import type { StyledButtonProps } from './Button.css';
|
|
5
5
|
type ButtonPrimitive = ComponentPropsWithRef<'button'>;
|
|
6
6
|
type AllowedChildren = string | IconType;
|
|
7
|
-
type ButtonSize = 'small' | 'medium';
|
|
8
7
|
declare const defaultEnglish: {
|
|
9
8
|
readonly loading: "loading";
|
|
10
9
|
};
|
|
11
10
|
type TextContent = keyof typeof defaultEnglish;
|
|
12
|
-
export interface ButtonProps extends Pick<ButtonPrimitive, 'id' | 'onClick' | 'type' | 'className'>, Pick<AriaAttributes, 'aria-label'
|
|
11
|
+
export interface ButtonProps extends Pick<ButtonPrimitive, 'id' | 'onClick' | 'type' | 'className'>, Pick<AriaAttributes, 'aria-label'>, StyledButtonProps {
|
|
13
12
|
children: AllowedChildren | AllowedChildren[];
|
|
14
13
|
disabled?: boolean;
|
|
15
14
|
is?: ElementType | ReactElement;
|
|
16
15
|
isLoading?: boolean;
|
|
17
16
|
isFullWidth?: boolean;
|
|
18
|
-
minimal?: boolean;
|
|
19
17
|
rounded?: boolean;
|
|
20
|
-
size?: ButtonSize;
|
|
21
|
-
variant?: Required<StyledButtonProps['intent']>;
|
|
22
18
|
withDoubleClicks?: boolean;
|
|
23
19
|
lang?: Partial<Record<TextContent, string>>;
|
|
24
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../lib/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EASN,KAAK,cAAc,EAEnB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAEhB,KAAK,YAAY,EACjB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../lib/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EASN,KAAK,cAAc,EAEnB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAEhB,KAAK,YAAY,EACjB,MAAM,OAAO,CAAC;AAWf,OAAO,KAAK,EAAc,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAElE,KAAK,eAAe,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;AACvD,KAAK,eAAe,GAAG,MAAM,GAAG,QAAQ,CAAC;AAIzC,QAAA,MAAM,cAAc;;CAEV,CAAC;AAEX,KAAK,WAAW,GAAG,MAAM,OAAO,cAAc,CAAC;AAE/C,MAAM,WAAW,WAChB,SAAQ,IAAI,CAAC,eAAe,EAAE,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC,EACrE,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,EAClC,iBAAiB;IAClB,QAAQ,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;IAI9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IAItB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAI3B,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;CAC5C;AAiCD,eAAO,MAAM,MAAM,sHA6KlB,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
|
@@ -23,6 +23,16 @@ const getPadding = (size, loading) => {
|
|
|
23
23
|
if (loading) return 'none';
|
|
24
24
|
return size === 'small' ? '3' : '4';
|
|
25
25
|
};
|
|
26
|
+
const fontSize = {
|
|
27
|
+
xsmall: '2',
|
|
28
|
+
small: '3',
|
|
29
|
+
medium: '4'
|
|
30
|
+
};
|
|
31
|
+
const fontWeight = {
|
|
32
|
+
xsmall: 'normal',
|
|
33
|
+
small: 'semiBold',
|
|
34
|
+
medium: 'semiBold'
|
|
35
|
+
};
|
|
26
36
|
export const Button = forwardRef((_ref, ref) => {
|
|
27
37
|
let {
|
|
28
38
|
children,
|
|
@@ -87,8 +97,8 @@ export const Button = forwardRef((_ref, ref) => {
|
|
|
87
97
|
pointerEvents: functionallyDisabled ? 'none' : void 0
|
|
88
98
|
}), useTextStyles({
|
|
89
99
|
colour: 'white',
|
|
90
|
-
fontWeight:
|
|
91
|
-
size: size
|
|
100
|
+
fontWeight: fontWeight[size],
|
|
101
|
+
size: fontSize[size]
|
|
92
102
|
}), styles.button({
|
|
93
103
|
size,
|
|
94
104
|
shape,
|
|
@@ -4,6 +4,7 @@ declare const meta: Meta<typeof Button>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Button>;
|
|
6
6
|
export declare const Standard: Story;
|
|
7
|
+
export declare const ExtraSmall: Story;
|
|
7
8
|
export declare const PrimarySet: Story;
|
|
8
9
|
export declare const SecondarySet: Story;
|
|
9
10
|
export declare const InformationSet: Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/Button/Button.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAUvD,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/Button/Button.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAUvD,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAsB7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAKF,eAAO,MAAM,UAAU,EAAE,KAWxB,CAAC;AAuHF,eAAO,MAAM,UAAU,EAAE,KAkBxB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAM5B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAC"}
|
|
@@ -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<HTMLInputElement>>;
|
|
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<HTMLTextAreaElement | HTMLInputElement | HTMLSelectElement>>;
|
|
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,sVAyEvB,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<HTMLInputElement>>;
|
|
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<HTMLTextAreaElement | HTMLInputElement | HTMLSelectElement>>;
|
|
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,uYAgCrB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -6,6 +6,7 @@ type Story = StoryObj<typeof meta>;
|
|
|
6
6
|
export declare const Standard: Story;
|
|
7
7
|
export declare const Invalid: Story;
|
|
8
8
|
export declare const Disabled: Story;
|
|
9
|
+
export declare const LargeSize: Story;
|
|
9
10
|
export declare const SmallSize: Story;
|
|
10
11
|
export declare const WithIcons: Story;
|
|
11
12
|
//# sourceMappingURL=DateInput.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/DateInput/DateInput.stories.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AAc9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CA2DhC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,eAAO,MAAM,QAAQ,EAAE,KAAU,CAAC;AAElC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAKF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC"}
|
|
1
|
+
{"version":3,"file":"DateInput.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/DateInput/DateInput.stories.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AAc9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CA2DhC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,eAAO,MAAM,QAAQ,EAAE,KAAU,CAAC;AAElC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAKF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC"}
|
|
@@ -11,7 +11,7 @@ declare const meta: {
|
|
|
11
11
|
isOpen?: boolean | undefined;
|
|
12
12
|
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
13
13
|
id?: string | undefined | undefined;
|
|
14
|
-
size?: ("
|
|
14
|
+
size?: import("../Button/Button.css").ButtonSize | undefined;
|
|
15
15
|
disabled?: boolean | undefined;
|
|
16
16
|
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
17
17
|
key?: React.Key | null | undefined;
|
|
@@ -21,11 +21,11 @@ declare const meta: {
|
|
|
21
21
|
"aria-label"?: string | undefined | undefined;
|
|
22
22
|
testId?: string | undefined;
|
|
23
23
|
rounded?: boolean | undefined;
|
|
24
|
-
minimal?:
|
|
24
|
+
minimal?: import("../Button/Button.css").ButtonMinimal | undefined;
|
|
25
25
|
isLoading?: boolean | undefined;
|
|
26
26
|
isFullWidth?: boolean | undefined;
|
|
27
|
-
variant?: Required<"primary" | "brand" | "secondary" | "danger" | "warning" | "success" | "information" | undefined>;
|
|
28
27
|
withDoubleClicks?: boolean | undefined;
|
|
28
|
+
variant?: import("../Button/Button.css").ButtonIntent | undefined;
|
|
29
29
|
alignment?: import("..").EPositionerAlignment | undefined;
|
|
30
30
|
}>) => React.JSX.Element)[];
|
|
31
31
|
args: {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type InputAttributes = Pick<React.InputHTMLAttributes<HTMLInputElement>, 'min' | 'max' | 'onChange' | 'onFocus' | 'onBlur' | 'step' | 'value'>;
|
|
3
|
+
interface Props extends InputAttributes {
|
|
3
4
|
preventMouseWheel?: boolean;
|
|
4
|
-
onChange?: FormEventHandler<HTMLInputElement>;
|
|
5
|
-
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
6
|
-
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
7
|
-
max?: string;
|
|
8
5
|
}
|
|
9
|
-
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<HTMLInputElement>>;
|
|
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<HTMLTextAreaElement | HTMLInputElement | HTMLSelectElement>>;
|
|
10
7
|
export default NumberInput;
|
|
11
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,
|
|
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,8VA8CvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { NumberInput } from '.';
|
|
3
3
|
declare const meta: Meta<typeof NumberInput>;
|
|
4
4
|
export default meta;
|
|
@@ -6,6 +6,7 @@ type Story = StoryObj<typeof NumberInput>;
|
|
|
6
6
|
export declare const Standard: Story;
|
|
7
7
|
export declare const Valid: Story;
|
|
8
8
|
export declare const Invalid: Story;
|
|
9
|
+
export declare const LargeSize: Story;
|
|
9
10
|
export declare const SmallSize: Story;
|
|
10
11
|
export declare const WithIcons: Story;
|
|
11
12
|
export declare const Loading: Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/NumberInput/NumberInput.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberInput.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/NumberInput/NumberInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAiChC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAoDlC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAM1C,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAKF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectInput.css.d.ts","sourceRoot":"","sources":["../../../lib/components/SelectInput/SelectInput.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK,QAGhB,CAAC;AACH,eAAO,MAAM,WAAW,QAMtB,CAAC;AAEH,eAAO,MAAM,KAAK,QAGhB,CAAC"}
|
|
1
|
+
{"version":3,"file":"SelectInput.css.d.ts","sourceRoot":"","sources":["../../../lib/components/SelectInput/SelectInput.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK,QAGhB,CAAC;AACH,eAAO,MAAM,WAAW,QAMtB,CAAC;AAEH,eAAO,MAAM,KAAK,QAGhB,CAAC;AAEH,eAAO,MAAM,aAAa,QAExB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
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<HTMLSelectElement>>;
|
|
4
|
+
} & import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLSelectElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<HTMLTextAreaElement | HTMLInputElement | 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":"
|
|
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;yTA0D3B,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -6,7 +6,8 @@ const _excluded = ["field", "eventHandlers", "suffixed", "prefixed", "validation
|
|
|
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 { ChevronDownIcon } from '@autoguru/icons';
|
|
9
|
-
import
|
|
9
|
+
import clsx from 'clsx';
|
|
10
|
+
import React from 'react';
|
|
10
11
|
import { Box } from "../Box/index.js";
|
|
11
12
|
import { Icon } from "../Icon/index.js";
|
|
12
13
|
import { withEnhancedInput } from "../private/InputBase/index.js";
|
|
@@ -32,13 +33,13 @@ export const SelectInput = withEnhancedInput(_ref => {
|
|
|
32
33
|
justifyContent: "center",
|
|
33
34
|
position: "relative",
|
|
34
35
|
children: [_jsx(Box, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
35
|
-
|
|
36
|
+
as: "select",
|
|
36
37
|
flexGrow: 1
|
|
37
38
|
}, eventHandlers), field), rest), {}, {
|
|
38
39
|
className: [styles.input, styles.paddedInput, field.className],
|
|
39
40
|
autoComplete: "off"
|
|
40
41
|
})), isLoading ? null : _jsx(Box, {
|
|
41
|
-
className: styles.arrow,
|
|
42
|
+
className: clsx(styles.arrow, field.disabled && styles.arrowDisabled),
|
|
42
43
|
display: "flex",
|
|
43
44
|
alignItems: "center",
|
|
44
45
|
height: "full",
|
|
@@ -47,7 +48,7 @@ export const SelectInput = withEnhancedInput(_ref => {
|
|
|
47
48
|
pointerEvents: "none",
|
|
48
49
|
position: "absolute",
|
|
49
50
|
children: _jsx(Icon, {
|
|
50
|
-
size:
|
|
51
|
+
size: size === 'large' ? size : 'medium',
|
|
51
52
|
icon: fieldIcon
|
|
52
53
|
})
|
|
53
54
|
})]
|
|
@@ -7,5 +7,6 @@ export declare const Standard: Story;
|
|
|
7
7
|
export declare const Valid: Story;
|
|
8
8
|
export declare const Invalid: Story;
|
|
9
9
|
export declare const Disabled: Story;
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const LargeSize: Story;
|
|
11
|
+
export declare const SmallSize: Story;
|
|
11
12
|
//# sourceMappingURL=SelectInput.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectInput.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/SelectInput/SelectInput.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAwBhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CA+ClC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC"}
|
|
1
|
+
{"version":3,"file":"SelectInput.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/SelectInput/SelectInput.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAwBhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CA+ClC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Table/TableCell.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"TableCell.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Table/TableCell.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,QA4Bf,CAAC"}
|
|
@@ -6,6 +6,7 @@ import { style } from '@vanilla-extract/css';
|
|
|
6
6
|
import { themeContractVars as vars } from "../../themes/theme.css.js";
|
|
7
7
|
export const root = style({
|
|
8
8
|
position: 'relative',
|
|
9
|
+
borderBottomColor: vars.colours.gamut.black100,
|
|
9
10
|
':before': {
|
|
10
11
|
display: 'block',
|
|
11
12
|
content: '""',
|
|
@@ -20,7 +21,7 @@ export const root = style({
|
|
|
20
21
|
selectors: {
|
|
21
22
|
'&:hover:before': {
|
|
22
23
|
transitionTimingFunction: vars.animation.easing.decelerate,
|
|
23
|
-
backgroundColor: vars.
|
|
24
|
+
backgroundColor: vars.colours.gamut.gray100
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
}, "root");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../lib/components/Table/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C,MAAM,WAAW,KAAM,SAAQ,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IACzE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC;IAEhC,QAAQ,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../lib/components/Table/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C,MAAM,WAAW,KAAM,SAAQ,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IACzE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC;IAEhC,QAAQ,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,SAAS,8EA4CrB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -26,7 +26,6 @@ export const TableCell = forwardRef((_ref, ref) => {
|
|
|
26
26
|
alignItems: "center",
|
|
27
27
|
justifyContent: alignmentToFlexAlignment(align),
|
|
28
28
|
padding: padding,
|
|
29
|
-
borderColourBottom: "light",
|
|
30
29
|
borderWidthBottom: "1",
|
|
31
30
|
"aria-label": ariaLabel,
|
|
32
31
|
className: styles.root,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeadCell.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Table/TableHeadCell.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,QAAgC,CAAC;AAE1D,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"TableHeadCell.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Table/TableHeadCell.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,QAAgC,CAAC;AAE1D,eAAO,MAAM,IAAI,QAMf,CAAC;AASH,eAAO,MAAM,MAAM;;;;;CAiClB,CAAC;AAEF,eAAO,MAAM,MAAM,QAIjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeadCell.d.ts","sourceRoot":"","sources":["../../../lib/components/Table/TableHeadCell.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,SAAS,EAA4B,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAS7B,KAAK,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpC,MAAM,WAAW,KAChB,SAAQ,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC,EAClD,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,SAAS,CAAC;IAC5C,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAErC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAUD,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"TableHeadCell.d.ts","sourceRoot":"","sources":["../../../lib/components/Table/TableHeadCell.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,SAAS,EAA4B,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAS7B,KAAK,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpC,MAAM,WAAW,KAChB,SAAQ,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC,EAClD,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,SAAS,CAAC;IAC5C,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAErC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAUD,eAAO,MAAM,aAAa,8EA6FzB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -47,11 +47,11 @@ export const TableHeadCell = forwardRef((_ref, ref) => {
|
|
|
47
47
|
space: "1",
|
|
48
48
|
children: [align === 'right' && shouldSort ? sorter : null, _jsxs(Text, {
|
|
49
49
|
strong: true,
|
|
50
|
-
size: "
|
|
50
|
+
size: "3",
|
|
51
51
|
is: "span",
|
|
52
52
|
className: styles.text,
|
|
53
53
|
children: [children, shouldSort ? _jsxs(VisuallyHidden, {
|
|
54
|
-
|
|
54
|
+
as: "span",
|
|
55
55
|
children: [' ', "sorted ", sortToAria(sort)]
|
|
56
56
|
}) : null]
|
|
57
57
|
}), (align === 'left' || align === 'center') && shouldSort ? sorter : null]
|
|
@@ -64,15 +64,14 @@ export const TableHeadCell = forwardRef((_ref, ref) => {
|
|
|
64
64
|
alignItems: "center",
|
|
65
65
|
justifyContent: alignmentToFlexAlignment(align),
|
|
66
66
|
padding: sort ? undefined : padding,
|
|
67
|
-
|
|
68
|
-
borderColourBottom: "light",
|
|
67
|
+
borderColourBottom: "dark",
|
|
69
68
|
borderWidthBottom: "1",
|
|
70
69
|
"aria-sort": shouldSort ? sortToAria(sort) : undefined,
|
|
71
70
|
"aria-label": ariaLabel,
|
|
72
71
|
className: tableContext.stickyHead && styles.sticky,
|
|
73
72
|
onClick: sort ? sortClickHandler : undefined,
|
|
74
73
|
children: sort ? _jsx(Box, {
|
|
75
|
-
|
|
74
|
+
as: "button",
|
|
76
75
|
display: "block",
|
|
77
76
|
width: "full",
|
|
78
77
|
padding: padding,
|
|
@@ -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<HTMLInputElement>>;
|
|
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<HTMLTextAreaElement | HTMLInputElement | HTMLSelectElement>>;
|
|
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,iZA2BzB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -22,7 +22,7 @@ export const TextAreaInput = withEnhancedInput(_ref => {
|
|
|
22
22
|
} = _ref,
|
|
23
23
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
24
24
|
return _jsx(Box, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
25
|
-
|
|
25
|
+
as: "textarea"
|
|
26
26
|
}, eventHandlers), field), rest), {}, {
|
|
27
27
|
autoComplete: "off",
|
|
28
28
|
maxLength: rest.maxLength || MAX_TEXT_AREA_INPUT_LENGTH
|
|
@@ -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<HTMLInputElement>>;
|
|
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<HTMLTextAreaElement | HTMLInputElement | HTMLSelectElement>>;
|
|
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,8YA0BrB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { type FunctionComponent, type ReactNode } from 'react';
|
|
2
|
+
import type { InputSize } from './withEnhancedInput.css';
|
|
2
3
|
export interface Props {
|
|
3
4
|
hintText: ReactNode;
|
|
4
5
|
reserveHintSpace?: boolean;
|
|
5
6
|
disabled?: boolean;
|
|
7
|
+
size?: InputSize;
|
|
6
8
|
className?: string;
|
|
7
9
|
}
|
|
8
10
|
export declare const HintText: FunctionComponent<Props>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HintText.d.ts","sourceRoot":"","sources":["../../../../lib/components/private/InputBase/HintText.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"HintText.d.ts","sourceRoot":"","sources":["../../../../lib/components/private/InputBase/HintText.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,WAAW,KAAK;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,EAAE,iBAAiB,CAAC,KAAK,CA0B7C,CAAC"}
|
|
@@ -11,6 +11,7 @@ export const HintText = _ref => {
|
|
|
11
11
|
reserveHintSpace,
|
|
12
12
|
disabled,
|
|
13
13
|
hintText,
|
|
14
|
+
size = 'medium',
|
|
14
15
|
className = ''
|
|
15
16
|
} = _ref;
|
|
16
17
|
const boxStyles = useBoxStyles({
|
|
@@ -21,7 +22,7 @@ export const HintText = _ref => {
|
|
|
21
22
|
const showHintText = !disabled && hintText;
|
|
22
23
|
return _jsx(Text, {
|
|
23
24
|
is: "p",
|
|
24
|
-
size:
|
|
25
|
+
size: size === 'large' ? '4' : '2',
|
|
25
26
|
colour: "unset",
|
|
26
27
|
className: clsx(boxStyles, styles.hintText, className),
|
|
27
28
|
children: showHintText ? hintText : '\u00A0'
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { InputSize } from './withEnhancedInput.css';
|
|
1
2
|
export declare const root: string;
|
|
2
|
-
export declare const
|
|
3
|
+
export declare const labelStyle: Record<"small" | "medium" | "large" | "base", string>;
|
|
4
|
+
export declare const notchGapPlaceholder: Record<"small" | "medium" | "large" | "base", string>;
|
|
3
5
|
export declare const borders: {
|
|
4
6
|
root: {
|
|
5
7
|
default: string[];
|
|
@@ -14,12 +16,14 @@ export declare const bordersAttach: {
|
|
|
14
16
|
complete: Record<"NONE" | "LEFT" | "TOP" | "RIGHT" | "BOTTOM" | "ALL", string>;
|
|
15
17
|
flatCorners: Record<"TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_RIGHT" | "BOTTOM_LEFT", string>;
|
|
16
18
|
};
|
|
19
|
+
export type BordersAttach = keyof typeof bordersAttach.complete;
|
|
17
20
|
export declare const bordersMerged: {
|
|
18
21
|
complete: Record<"NONE" | "LEFT" | "TOP" | "RIGHT" | "BOTTOM" | "ALL", string>;
|
|
19
22
|
flatCorners: Record<"TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_RIGHT" | "BOTTOM_LEFT", string>;
|
|
20
23
|
};
|
|
21
|
-
type
|
|
24
|
+
export type BordersMerged = keyof typeof bordersMerged.complete;
|
|
22
25
|
export declare const placeholder: Record<"default" | "disabled" | "mutedLabelStyles", string>;
|
|
23
|
-
export declare const placeholderPlacement: Record<
|
|
24
|
-
export
|
|
26
|
+
export declare const placeholderPlacement: Record<InputSize, Record<string, string>>;
|
|
27
|
+
export declare const largeBorder: string;
|
|
28
|
+
export declare const largeBorderY: string;
|
|
25
29
|
//# sourceMappingURL=NotchedBase.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotchedBase.css.d.ts","sourceRoot":"","sources":["../../../../lib/components/private/InputBase/NotchedBase.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NotchedBase.css.d.ts","sourceRoot":"","sources":["../../../../lib/components/private/InputBase/NotchedBase.css.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGzD,eAAO,MAAM,IAAI,QAEf,CAAC;AAEH,eAAO,MAAM,UAAU,uDAarB,CAAC;AAgBH,eAAO,MAAM,mBAAmB,uDAa9B,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;CAuCnB,CAAC;AAEF,eAAO,MAAM,aAAa;;;CAmCzB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC,QAAQ,CAAC;AAEhE,eAAO,MAAM,aAAa;;;CAmCzB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC,QAAQ,CAAC;AAEhE,eAAO,MAAM,WAAW,6DActB,CAAC;AAoCH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAyE1E,CAAC;AAEF,eAAO,MAAM,WAAW,QAEtB,CAAC;AAEH,eAAO,MAAM,YAAY,QAGvB,CAAC"}
|
|
@@ -8,7 +8,22 @@ const active_scaling_factor = 0.7777;
|
|
|
8
8
|
export const root = style({
|
|
9
9
|
transition: `fill 0.2s ${vars.animation.easing.decelerate} 0s`
|
|
10
10
|
}, "root");
|
|
11
|
-
const
|
|
11
|
+
export const labelStyle = styleVariants({
|
|
12
|
+
base: {
|
|
13
|
+
textWrap: 'nowrap'
|
|
14
|
+
},
|
|
15
|
+
small: {
|
|
16
|
+
fontSize: vars.typography.size['4'].fontSize
|
|
17
|
+
},
|
|
18
|
+
medium: {
|
|
19
|
+
fontSize: vars.typography.size['4'].fontSize
|
|
20
|
+
},
|
|
21
|
+
large: {
|
|
22
|
+
fontSize: vars.typography.size['7'].fontSize
|
|
23
|
+
}
|
|
24
|
+
}, "labelStyle");
|
|
25
|
+
const defaultBorderWidth = vars.border.width['1'];
|
|
26
|
+
const largeBorderWidth = vars.border.width['2'];
|
|
12
27
|
const borderRegionDefaults = style({
|
|
13
28
|
borderWidth: defaultBorderWidth,
|
|
14
29
|
borderStyle: 'solid',
|
|
@@ -18,9 +33,19 @@ const borderRegionDefaults = style({
|
|
|
18
33
|
const borderVisualDefaults = style({
|
|
19
34
|
borderRadius: vars.border.radius['2']
|
|
20
35
|
}, "borderVisualDefaults");
|
|
21
|
-
export const notchGapPlaceholder =
|
|
22
|
-
|
|
23
|
-
|
|
36
|
+
export const notchGapPlaceholder = styleVariants({
|
|
37
|
+
base: {
|
|
38
|
+
visibility: 'hidden'
|
|
39
|
+
},
|
|
40
|
+
small: {
|
|
41
|
+
fontSize: `calc(${vars.typography.size['4'].fontSize} * ${active_scaling_factor})`
|
|
42
|
+
},
|
|
43
|
+
medium: {
|
|
44
|
+
fontSize: `calc(${vars.typography.size['4'].fontSize} * ${active_scaling_factor})`
|
|
45
|
+
},
|
|
46
|
+
large: {
|
|
47
|
+
fontSize: `calc(${vars.typography.size['7'].fontSize} * ${active_scaling_factor})`
|
|
48
|
+
}
|
|
24
49
|
}, "notchGapPlaceholder");
|
|
25
50
|
export const borders = {
|
|
26
51
|
root: {
|
|
@@ -40,9 +65,9 @@ export const borders = {
|
|
|
40
65
|
}, "borders_leading")],
|
|
41
66
|
middle: [borderRegionDefaults, style({
|
|
42
67
|
transition: `width 0.15s ${vars.animation.easing.decelerate}, border-color 0.2s ${vars.animation.easing.decelerate} 0s`,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
68
|
+
borderTopStyle: 'none',
|
|
69
|
+
borderRightStyle: 'none',
|
|
70
|
+
borderLeftStyle: 'none'
|
|
46
71
|
}, "borders_middle")],
|
|
47
72
|
trailing: [borderRegionDefaults, style({
|
|
48
73
|
flexGrow: 1,
|
|
@@ -138,15 +163,21 @@ export const placeholder = styleVariants({
|
|
|
138
163
|
}
|
|
139
164
|
}, "placeholder");
|
|
140
165
|
const calcPlaceholderTranslate = (notched, prefixed, size) => {
|
|
166
|
+
const typography = vars.typography.size[size === 'large' ? '7' : '4'];
|
|
167
|
+
const vertPadding = vars.space['2'];
|
|
141
168
|
if (notched) {
|
|
142
|
-
return `calc(${
|
|
169
|
+
return `calc(${vertPadding} + ${vertPadding}), calc(-0.5 * ${active_scaling_factor} * ${typography.fontSize})`;
|
|
143
170
|
}
|
|
144
171
|
if (size === 'medium') {
|
|
145
|
-
const
|
|
146
|
-
return `${
|
|
172
|
+
const offsetX = prefixed ? `calc(${vars.space['7']} + ${vars.space['3']})` : typography.fontSize;
|
|
173
|
+
return `${offsetX}, calc((${vars.space['8']} - ${typography.fontSize}) / 2)`;
|
|
147
174
|
}
|
|
148
|
-
|
|
149
|
-
|
|
175
|
+
if (size === 'large') {
|
|
176
|
+
const offsetX = prefixed ? '64px' : typography.fontSize;
|
|
177
|
+
return `${offsetX}, 25px`;
|
|
178
|
+
}
|
|
179
|
+
const offsetX = prefixed ? `calc(${vars.space['2']} + ${vars.space['5']} + ${vars.space['2']})` : vars.space['2'];
|
|
180
|
+
return `${offsetX}, calc(${vars.space['2']} + 2px)`;
|
|
150
181
|
};
|
|
151
182
|
export const placeholderPlacement = {
|
|
152
183
|
small: styleVariants({
|
|
@@ -172,6 +203,25 @@ export const placeholderPlacement = {
|
|
|
172
203
|
zIndex: 2,
|
|
173
204
|
transform: `translate(${calcPlaceholderTranslate(true, false, 'medium')}) scale(${active_scaling_factor})`
|
|
174
205
|
}
|
|
175
|
-
}, "placeholderPlacement_medium")
|
|
206
|
+
}, "placeholderPlacement_medium"),
|
|
207
|
+
large: styleVariants({
|
|
208
|
+
default: {
|
|
209
|
+
transform: `translate(${calcPlaceholderTranslate(false, false, 'large')}) scale(1)`
|
|
210
|
+
},
|
|
211
|
+
defaultPrefixed: {
|
|
212
|
+
transform: `translate(${calcPlaceholderTranslate(false, true, 'large')}) scale(1)`
|
|
213
|
+
},
|
|
214
|
+
shifted: {
|
|
215
|
+
zIndex: 2,
|
|
216
|
+
transform: `translate(${calcPlaceholderTranslate(true, false, 'large')}) scale(${active_scaling_factor})`
|
|
217
|
+
}
|
|
218
|
+
}, "placeholderPlacement_large")
|
|
176
219
|
};
|
|
220
|
+
export const largeBorder = style({
|
|
221
|
+
borderWidth: largeBorderWidth
|
|
222
|
+
}, "largeBorder");
|
|
223
|
+
export const largeBorderY = style({
|
|
224
|
+
borderTopWidth: largeBorderWidth,
|
|
225
|
+
borderBottomWidth: largeBorderWidth
|
|
226
|
+
}, "largeBorderY");
|
|
177
227
|
__vanilla_filescope__.endFileScope();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type FunctionComponent, type ReactNode } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import type { BordersAttach, BordersMerged } from './NotchedBase.css';
|
|
3
|
+
import type { InputSize } from './withEnhancedInput.css';
|
|
3
4
|
export interface Props {
|
|
4
5
|
id: string;
|
|
5
6
|
placeholder: string;
|
|
@@ -9,11 +10,11 @@ export interface Props {
|
|
|
9
10
|
borderColourClassName: string;
|
|
10
11
|
placeholderColourClassName: string;
|
|
11
12
|
notch?: boolean;
|
|
12
|
-
size:
|
|
13
|
+
size: InputSize;
|
|
13
14
|
className?: string;
|
|
14
15
|
children?: ReactNode;
|
|
15
|
-
attach?:
|
|
16
|
-
borderMerged?:
|
|
16
|
+
attach?: BordersAttach;
|
|
17
|
+
borderMerged?: BordersMerged;
|
|
17
18
|
isFocused?: boolean;
|
|
18
19
|
isHovered?: boolean;
|
|
19
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotchedBase.d.ts","sourceRoot":"","sources":["../../../../lib/components/private/InputBase/NotchedBase.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAK9E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"NotchedBase.d.ts","sourceRoot":"","sources":["../../../../lib/components/private/InputBase/NotchedBase.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAK9E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,WAAW,KAAK;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,0BAA0B,EAAE,MAAM,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,iBAAiB,CAAC,KAAK,CA2LhD,CAAC"}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import React, { useRef } from 'react';
|
|
5
5
|
import { Box } from "../../Box/index.js";
|
|
6
|
-
import { useTextStyles } from "../../Text/index.js";
|
|
7
6
|
import * as styles from "./NotchedBase.css.js";
|
|
8
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
8
|
export const NotchedBase = _ref => {
|
|
@@ -24,10 +23,6 @@ export const NotchedBase = _ref => {
|
|
|
24
23
|
isFocused = false,
|
|
25
24
|
isHovered = false
|
|
26
25
|
} = _ref;
|
|
27
|
-
const labelStyles = useTextStyles({
|
|
28
|
-
noWrap: true,
|
|
29
|
-
size: '4'
|
|
30
|
-
});
|
|
31
26
|
const labelRef = useRef(null);
|
|
32
27
|
const shouldMerge = !isFocused && !isHovered;
|
|
33
28
|
return _jsxs(Box, {
|
|
@@ -65,14 +60,15 @@ export const NotchedBase = _ref => {
|
|
|
65
60
|
[styles.bordersMerged.complete.BOTTOM]: shouldMerge && borderMerged === 'BOTTOM',
|
|
66
61
|
[styles.bordersMerged.complete.ALL]: shouldMerge && borderMerged === 'ALL',
|
|
67
62
|
[styles.bordersAttach.flatCorners.TOP_LEFT]: attach === 'LEFT' || attach === 'TOP' || attach === 'ALL',
|
|
68
|
-
[styles.bordersAttach.flatCorners.BOTTOM_LEFT]: attach === 'LEFT' || attach === 'BOTTOM' || attach === 'ALL'
|
|
63
|
+
[styles.bordersAttach.flatCorners.BOTTOM_LEFT]: attach === 'LEFT' || attach === 'BOTTOM' || attach === 'ALL',
|
|
64
|
+
[styles.largeBorder]: size === 'large'
|
|
69
65
|
})
|
|
70
66
|
}), _jsxs("div", {
|
|
71
|
-
className: clsx(styles.borders.middle, borderColourClassName),
|
|
67
|
+
className: clsx(styles.borders.middle, borderColourClassName, size === 'large' && styles.largeBorderY),
|
|
72
68
|
children: [_jsx(Box, {
|
|
73
69
|
display: isEmpty || placeholder.length === 0 ? 'none' : 'block',
|
|
74
70
|
paddingX: "2",
|
|
75
|
-
className: [
|
|
71
|
+
className: [styles.labelStyle.base, styles.labelStyle[size], styles.notchGapPlaceholder.base, styles.notchGapPlaceholder[size]],
|
|
76
72
|
children: placeholder
|
|
77
73
|
}), _jsx(Box, {
|
|
78
74
|
ref: labelRef,
|
|
@@ -83,7 +79,7 @@ export const NotchedBase = _ref => {
|
|
|
83
79
|
display: "inline",
|
|
84
80
|
margin: "none",
|
|
85
81
|
padding: "none",
|
|
86
|
-
className: clsx(styles.placeholder.default, placeholderColourClassName,
|
|
82
|
+
className: clsx(styles.placeholder.default, placeholderColourClassName, styles.labelStyle.base, styles.labelStyle[size], {
|
|
87
83
|
[styles.bordersMerged.complete.TOP]: shouldMerge && borderMerged === 'TOP',
|
|
88
84
|
[styles.bordersMerged.complete.BOTTOM]: shouldMerge && borderMerged === 'BOTTOM',
|
|
89
85
|
[styles.bordersMerged.complete.ALL]: shouldMerge && borderMerged === 'ALL',
|
|
@@ -102,7 +98,8 @@ export const NotchedBase = _ref => {
|
|
|
102
98
|
[styles.bordersMerged.complete.BOTTOM]: shouldMerge && borderMerged === 'BOTTOM',
|
|
103
99
|
[styles.bordersMerged.complete.ALL]: shouldMerge && borderMerged === 'ALL',
|
|
104
100
|
[styles.bordersAttach.flatCorners.TOP_RIGHT]: attach === 'RIGHT' || attach === 'TOP' || attach === 'ALL',
|
|
105
|
-
[styles.bordersAttach.flatCorners.BOTTOM_RIGHT]: attach === 'RIGHT' || attach === 'BOTTOM' || attach === 'ALL'
|
|
101
|
+
[styles.bordersAttach.flatCorners.BOTTOM_RIGHT]: attach === 'RIGHT' || attach === 'BOTTOM' || attach === 'ALL',
|
|
102
|
+
[styles.largeBorder]: size === 'large'
|
|
106
103
|
})
|
|
107
104
|
})]
|
|
108
105
|
})]
|
|
@@ -9,6 +9,9 @@ export declare const inputWrapperSize: {
|
|
|
9
9
|
medium: {
|
|
10
10
|
root: Record<"textarea", string>;
|
|
11
11
|
};
|
|
12
|
+
large: {
|
|
13
|
+
root: Record<"textarea", string>;
|
|
14
|
+
};
|
|
12
15
|
};
|
|
13
16
|
export declare const inputItselfSize: {
|
|
14
17
|
small: {
|
|
@@ -21,9 +24,15 @@ export declare const inputItselfSize: {
|
|
|
21
24
|
prefixed: Record<"any", string>;
|
|
22
25
|
suffixed: Record<"any", string>;
|
|
23
26
|
};
|
|
27
|
+
large: {
|
|
28
|
+
root: Record<"textarea" | "any", string>;
|
|
29
|
+
prefixed: Record<"any", string>;
|
|
30
|
+
suffixed: Record<"any", string>;
|
|
31
|
+
};
|
|
24
32
|
};
|
|
33
|
+
export type InputSize = keyof typeof inputItselfSize;
|
|
25
34
|
export declare const iconRoot: string;
|
|
26
35
|
export declare const prefixIcon: string;
|
|
27
36
|
export declare const suffixIcon: string;
|
|
28
|
-
export declare const iconSize: Record<"small" | "medium", string>;
|
|
37
|
+
export declare const iconSize: Record<"small" | "medium" | "large", string>;
|
|
29
38
|
//# sourceMappingURL=withEnhancedInput.css.d.ts.map
|
|
@@ -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;;CAoBjB,CAAC;AAIF,eAAO,MAAM,KAAK,4BAOhB,CAAC;AAEH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"withEnhancedInput.css.d.ts","sourceRoot":"","sources":["../../../../lib/components/private/InputBase/withEnhancedInput.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK;;CAoBjB,CAAC;AAIF,eAAO,MAAM,KAAK,4BAOhB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;CAsB5B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;CAgF3B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,eAAe,CAAC;AAErD,eAAO,MAAM,QAAQ,QAKnB,CAAC;AAEH,eAAO,MAAM,UAAU,QAErB,CAAC;AACH,eAAO,MAAM,UAAU,QAErB,CAAC;AACH,eAAO,MAAM,QAAQ,8CAUnB,CAAC"}
|
|
@@ -48,6 +48,13 @@ export const inputWrapperSize = {
|
|
|
48
48
|
paddingTop: `${vars.space['2']}`
|
|
49
49
|
}
|
|
50
50
|
}, "inputWrapperSize_medium_root")
|
|
51
|
+
},
|
|
52
|
+
large: {
|
|
53
|
+
root: styleVariants({
|
|
54
|
+
textarea: {
|
|
55
|
+
paddingTop: `${vars.space['2']}`
|
|
56
|
+
}
|
|
57
|
+
}, "inputWrapperSize_large_root")
|
|
51
58
|
}
|
|
52
59
|
};
|
|
53
60
|
export const inputItselfSize = {
|
|
@@ -102,6 +109,32 @@ export const inputItselfSize = {
|
|
|
102
109
|
paddingRight: `calc((${vars.space['3']} - 1px) + (${vars.space['4']} - 1px) + ${vars.space[4]})`
|
|
103
110
|
}
|
|
104
111
|
}, "inputItselfSize_medium_suffixed")
|
|
112
|
+
},
|
|
113
|
+
large: {
|
|
114
|
+
root: styleVariants({
|
|
115
|
+
any: {
|
|
116
|
+
fontSize: vars.typography.size['7'].fontSize,
|
|
117
|
+
lineHeight: vars.typography.size['7'].lineHeight,
|
|
118
|
+
height: '72px',
|
|
119
|
+
padding: '12px 25px',
|
|
120
|
+
'::placeholder': {
|
|
121
|
+
fontSize: vars.typography.size['7'].fontSize
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
textarea: {
|
|
125
|
+
padding: `${vars.space['2']} calc(${vars.space['5']} - 1px) calc(((${vars.space['10']} - ${vars.typography.size['5'].fontSize}) / 2) - 3px)`
|
|
126
|
+
}
|
|
127
|
+
}, "inputItselfSize_large_root"),
|
|
128
|
+
prefixed: styleVariants({
|
|
129
|
+
any: {
|
|
130
|
+
paddingLeft: '64px'
|
|
131
|
+
}
|
|
132
|
+
}, "inputItselfSize_large_prefixed"),
|
|
133
|
+
suffixed: styleVariants({
|
|
134
|
+
any: {
|
|
135
|
+
paddingRight: '64px'
|
|
136
|
+
}
|
|
137
|
+
}, "inputItselfSize_large_suffixed")
|
|
105
138
|
}
|
|
106
139
|
};
|
|
107
140
|
export const iconRoot = style({
|
|
@@ -122,6 +155,9 @@ export const iconSize = styleVariants({
|
|
|
122
155
|
},
|
|
123
156
|
medium: {
|
|
124
157
|
margin: `0 calc(${vars.space['3']} - 1px)`
|
|
158
|
+
},
|
|
159
|
+
large: {
|
|
160
|
+
margin: `0 calc(${vars.space['5']} - 1px)`
|
|
125
161
|
}
|
|
126
162
|
}, "iconSize");
|
|
127
163
|
__vanilla_filescope__.endFileScope();
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { IconType } from '@autoguru/icons';
|
|
2
|
-
import
|
|
3
|
-
import { type AriaAttributes, type ChangeEventHandler, type ComponentProps, type ComponentType, type FocusEventHandler, type KeyboardEventHandler, type MouseEventHandler, type ReactNode, type Ref, type RefObject } from 'react';
|
|
2
|
+
import React, { type ChangeEventHandler, type ComponentProps, type ComponentType, type FocusEventHandler, type ForwardedRef, type InputHTMLAttributes, type KeyboardEventHandler, type MouseEventHandler, type ReactNode, type Ref, type RefObject } from 'react';
|
|
4
3
|
import { Box } from '../../Box';
|
|
5
4
|
import { NotchedBase } from './NotchedBase';
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
import type { InputSize } from './withEnhancedInput.css';
|
|
6
|
+
type ElementTypes = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;
|
|
7
|
+
type NativeAttributes = Omit<InputHTMLAttributes<HTMLInputElement>, 'height' | 'is' | 'placeholder' | 'size' | 'width'>;
|
|
8
|
+
export interface EventHandlers<E extends ElementTypes> {
|
|
9
|
+
onChange?: ChangeEventHandler<E>;
|
|
10
|
+
onBlur?: FocusEventHandler<E>;
|
|
11
|
+
onFocus?: FocusEventHandler<E>;
|
|
12
|
+
onKeyDown?: KeyboardEventHandler<E>;
|
|
13
|
+
onClick?: MouseEventHandler<E>;
|
|
14
|
+
onMouseEnter?: MouseEventHandler<E>;
|
|
15
|
+
onMouseLeave?: MouseEventHandler<E>;
|
|
15
16
|
onReset?(): void;
|
|
16
17
|
}
|
|
17
|
-
export interface EnhanceInputPrimitiveProps extends
|
|
18
|
+
export interface EnhanceInputPrimitiveProps extends NativeAttributes, Pick<ComponentProps<typeof NotchedBase>, 'notch' | 'placeholder' | 'attach' | 'borderMerged' | 'isFocused'>, Pick<ComponentProps<typeof Box>, 'backgroundColour'> {
|
|
18
19
|
name: string;
|
|
19
20
|
id?: string;
|
|
20
21
|
className?: string;
|
|
@@ -23,7 +24,7 @@ export interface EnhanceInputPrimitiveProps extends AriaAttributes, Pick<Compone
|
|
|
23
24
|
autoFocus?: boolean;
|
|
24
25
|
disabled?: boolean;
|
|
25
26
|
reserveHintSpace?: boolean;
|
|
26
|
-
size?:
|
|
27
|
+
size?: InputSize;
|
|
27
28
|
fieldIcon?: IconType;
|
|
28
29
|
prefixIcon?: IconType;
|
|
29
30
|
suffixIcon?: IconType;
|
|
@@ -34,13 +35,13 @@ export interface ValidationProps {
|
|
|
34
35
|
isTouched?: boolean;
|
|
35
36
|
isValid?: boolean;
|
|
36
37
|
}
|
|
37
|
-
export type EnhanceInputProps<IncomingProps,
|
|
38
|
-
export type WrappedComponentProps<IncomingProps,
|
|
39
|
-
size:
|
|
38
|
+
export type EnhanceInputProps<IncomingProps, E extends ElementTypes> = IncomingProps & EnhanceInputPrimitiveProps & EventHandlers<E> & ValidationProps;
|
|
39
|
+
export type WrappedComponentProps<IncomingProps, E extends ElementTypes> = {
|
|
40
|
+
size: InputSize;
|
|
40
41
|
validation: ValidationProps;
|
|
41
|
-
eventHandlers: EventHandlers<
|
|
42
|
+
eventHandlers: EventHandlers<E>;
|
|
42
43
|
field: Omit<EnhanceInputPrimitiveProps, 'placeholder' | 'hintText' | 'fieldIcon' | 'size'> & {
|
|
43
|
-
ref: RefObject<
|
|
44
|
+
ref: ForwardedRef<ElementTypes> | RefObject<ElementTypes>;
|
|
44
45
|
};
|
|
45
46
|
fieldIcon?: EnhanceInputPrimitiveProps['fieldIcon'];
|
|
46
47
|
className?: boolean;
|
|
@@ -54,6 +55,6 @@ interface EnhancedInputConfigs<ValueType = string> {
|
|
|
54
55
|
withSuffixIcon?: boolean;
|
|
55
56
|
primitiveType: 'textarea' | 'text' | 'number' | 'date' | 'select' | 'color';
|
|
56
57
|
}
|
|
57
|
-
export declare const withEnhancedInput: <IncomingProps extends
|
|
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<ElementTypes>>;
|
|
58
59
|
export {};
|
|
59
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,
|
|
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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C1D,CAAC;IACF,SAAS,CAAC,EAAE,0BAA0B,CAAC,WAAW,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,OAAO,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,oIAiPxE,CAAC"}
|
|
@@ -7,8 +7,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
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 { invariant, wrapEvent } from '@autoguru/utilities';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
import
|
|
11
|
-
import { forwardRef, useCallback, useState } from 'react';
|
|
10
|
+
import React, { forwardRef, useCallback, useState } from 'react';
|
|
12
11
|
import { useInputControlledState } from "../../../utils/index.js";
|
|
13
12
|
import { Box, useBoxStyles } from "../../Box/index.js";
|
|
14
13
|
import { Icon } from "../../Icon/index.js";
|
|
@@ -72,6 +71,7 @@ export const withEnhancedInput = function (WrappingComponent) {
|
|
|
72
71
|
isTouched,
|
|
73
72
|
disabled
|
|
74
73
|
}, inputStateStyles);
|
|
74
|
+
const iconSize = size === 'small' ? 'medium' : size;
|
|
75
75
|
const inputItselfClassName = clsx(useBoxStyles({
|
|
76
76
|
is: primitiveType === 'textarea' ? 'textarea' : 'input',
|
|
77
77
|
backgroundColour,
|
|
@@ -159,14 +159,15 @@ export const withEnhancedInput = function (WrappingComponent) {
|
|
|
159
159
|
height: "full",
|
|
160
160
|
children: [prefixIcon ? _jsx(Icon, {
|
|
161
161
|
icon: prefixIcon,
|
|
162
|
-
size:
|
|
162
|
+
size: iconSize,
|
|
163
163
|
className: clsx(iconStyles, styles.iconRoot, styles.prefixIcon, styles.iconSize[size], derivedColours.colour)
|
|
164
164
|
}) : null, isLoading ? _jsx(ProgressSpinner, {
|
|
165
165
|
colour: "default",
|
|
166
|
+
size: size === 'large' ? size : undefined,
|
|
166
167
|
className: clsx(iconStyles, styles.iconRoot, styles.suffixIcon, styles.iconSize[size])
|
|
167
168
|
}) : null, suffixIcon && !isLoading ? _jsx(Icon, {
|
|
168
169
|
icon: suffixIcon,
|
|
169
|
-
size:
|
|
170
|
+
size: iconSize,
|
|
170
171
|
className: clsx(iconStyles, styles.iconRoot, styles.suffixIcon, styles.iconSize[size], derivedColours.colour)
|
|
171
172
|
}) : null, _jsx(WrappingComponent, _objectSpread({}, wrappingComponent))]
|
|
172
173
|
})
|
|
@@ -174,7 +175,8 @@ export const withEnhancedInput = function (WrappingComponent) {
|
|
|
174
175
|
className: derivedColours.colour,
|
|
175
176
|
hintText: hintText,
|
|
176
177
|
disabled: disabled,
|
|
177
|
-
reserveHintSpace: reserveHintSpace
|
|
178
|
+
reserveHintSpace: reserveHintSpace,
|
|
179
|
+
size: size
|
|
178
180
|
}) : null]
|
|
179
181
|
});
|
|
180
182
|
})
|
package/dist/themes/tokens.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ type VanillaTokens = {
|
|
|
3
3
|
};
|
|
4
4
|
export type SpaceScale = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'none';
|
|
5
5
|
export type TextSizeScale = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';
|
|
6
|
+
export type TextFontWeight = 'normal' | 'semiBold' | 'bold';
|
|
6
7
|
export type BorderWidthScale = '1' | '2' | '3' | 'none';
|
|
7
8
|
export type IconSizeScale = 'small' | 'medium' | 'large';
|
|
8
9
|
export type DeviceSize = 'mobile' | 'tablet' | 'desktop' | 'largeDesktop';
|
|
@@ -84,7 +85,7 @@ export interface Tokens extends VanillaTokens {
|
|
|
84
85
|
lineHeight: string;
|
|
85
86
|
}>;
|
|
86
87
|
colour: Record<'link' | Exclude<Intent, 'neutral'> | 'dark' | 'light' | 'neutral' | 'muted' | BaseColours, string>;
|
|
87
|
-
fontWeight: Record<
|
|
88
|
+
fontWeight: Record<TextFontWeight, string>;
|
|
88
89
|
};
|
|
89
90
|
animation: {
|
|
90
91
|
easing: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../lib/themes/tokens.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,aAAa,CAAC;CACtC,CAAC;AACF,MAAM,MAAM,UAAU,GACnB,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,MAAM,CAAC;AACV,MAAM,MAAM,aAAa,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,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