@charcoal-ui/react 3.6.0 → 3.8.0
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/_lib/compat.d.ts +1 -0
- package/dist/_lib/compat.d.ts.map +1 -1
- package/dist/components/Button/StyledButton.d.ts +13 -0
- package/dist/components/Button/StyledButton.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +3 -2
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.story.d.ts +16 -32
- package/dist/components/Button/index.story.d.ts.map +1 -1
- package/dist/components/Button/lib/variantToBackground.d.ts +3 -0
- package/dist/components/Button/lib/variantToBackground.d.ts.map +1 -0
- package/dist/components/Button/lib/variantToFont.d.ts +3 -0
- package/dist/components/Button/lib/variantToFont.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.story.d.ts +6 -16
- package/dist/components/Checkbox/index.story.d.ts.map +1 -1
- package/dist/components/Clickable/index.story.d.ts +4 -6
- package/dist/components/Clickable/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/ListItem/index.story.d.ts +7 -7
- package/dist/components/DropdownSelector/ListItem/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/MenuList/index.story.d.ts +6 -9
- package/dist/components/DropdownSelector/MenuList/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/Popover/index.story.d.ts +3 -7
- package/dist/components/DropdownSelector/Popover/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/index.story.d.ts +9 -11
- package/dist/components/DropdownSelector/index.story.d.ts.map +1 -1
- package/dist/components/Icon/index.story.d.ts +4 -26
- package/dist/components/Icon/index.story.d.ts.map +1 -1
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/IconButton/index.story.d.ts +6 -25
- package/dist/components/IconButton/index.story.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts +8 -0
- package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts.map +1 -0
- package/dist/components/LoadingSpinner/index.d.ts +2 -2
- package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/index.story.d.ts +4 -7
- package/dist/components/LoadingSpinner/index.story.d.ts.map +1 -1
- package/dist/components/Modal/index.story.d.ts +16 -41
- package/dist/components/Modal/index.story.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/Radio/index.d.ts +0 -2
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/Radio/index.story.d.ts +12 -23
- package/dist/components/Radio/index.story.d.ts.map +1 -1
- package/dist/components/SegmentedControl/RadioGroupContext.d.ts +1 -1
- package/dist/components/SegmentedControl/RadioGroupContext.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.story.d.ts +5 -8
- package/dist/components/SegmentedControl/index.story.d.ts.map +1 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.story.d.ts +7 -12
- package/dist/components/Switch/index.story.d.ts.map +1 -1
- package/dist/components/TagItem/index.d.ts.map +1 -1
- package/dist/components/TagItem/index.story.d.ts +14 -24
- package/dist/components/TagItem/index.story.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.story.d.ts +7 -25
- package/dist/components/TextArea/TextArea.story.d.ts.map +1 -1
- package/dist/components/TextField/TextField.story.d.ts +13 -20
- package/dist/components/TextField/TextField.story.d.ts.map +1 -1
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/index.cjs.js +418 -206
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +387 -175
- package/dist/index.esm.js.map +1 -1
- package/dist/styled.d.ts +4 -4
- package/package.json +17 -20
- package/src/_lib/compat.ts +8 -0
- package/src/components/Button/StyledButton.tsx +71 -0
- package/src/components/Button/__snapshots__/index.story.storyshot +314 -118
- package/src/components/Button/index.story.tsx +141 -138
- package/src/components/Button/index.tsx +15 -104
- package/src/components/Button/lib/variantToBackground.tsx +19 -0
- package/src/components/Button/lib/variantToFont.tsx +19 -0
- package/src/components/Checkbox/__snapshots__/index.story.storyshot +12 -27
- package/src/components/Checkbox/index.story.tsx +82 -88
- package/src/components/Checkbox/index.tsx +2 -12
- package/src/components/Clickable/__snapshots__/index.story.storyshot +2 -2
- package/src/components/Clickable/index.story.tsx +12 -9
- package/src/components/DropdownSelector/DropdownMenuItem.tsx +1 -14
- package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +42 -37
- package/src/components/DropdownSelector/ListItem/index.story.tsx +8 -4
- package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +38 -38
- package/src/components/DropdownSelector/MenuList/index.story.tsx +33 -27
- package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +11 -5
- package/src/components/DropdownSelector/Popover/index.story.tsx +6 -6
- package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +313 -151
- package/src/components/DropdownSelector/index.story.tsx +207 -171
- package/src/components/DropdownSelector/index.tsx +22 -22
- package/src/components/Icon/__snapshots__/index.story.storyshot +1 -1
- package/src/components/Icon/index.story.tsx +8 -12
- package/src/components/IconButton/__snapshots__/index.story.storyshot +130 -13
- package/src/components/IconButton/index.story.tsx +30 -23
- package/src/components/IconButton/index.tsx +32 -20
- package/src/components/LoadingSpinner/LoadingSpinnerIcon.story.tsx +12 -0
- package/src/components/LoadingSpinner/__snapshots__/LoadingSpinnerIcon.story.storyshot +28 -0
- package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +1 -35
- package/src/components/LoadingSpinner/index.story.tsx +11 -54
- package/src/components/LoadingSpinner/index.tsx +1 -1
- package/src/components/Modal/__snapshots__/index.story.storyshot +231 -194
- package/src/components/Modal/index.story.tsx +139 -133
- package/src/components/MultiSelect/__snapshots__/index.story.storyshot +56 -4
- package/src/components/MultiSelect/index.tsx +3 -0
- package/src/components/Radio/__snapshots__/index.story.storyshot +981 -121
- package/src/components/Radio/index.story.tsx +128 -63
- package/src/components/Radio/index.tsx +10 -16
- package/src/components/SegmentedControl/RadioGroupContext.tsx +1 -1
- package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +11 -11
- package/src/components/SegmentedControl/index.story.tsx +24 -29
- package/src/components/SegmentedControl/index.tsx +1 -1
- package/src/components/Switch/__snapshots__/index.story.storyshot +184 -26
- package/src/components/Switch/index.story.tsx +72 -48
- package/src/components/Switch/index.tsx +2 -7
- package/src/components/TagItem/__snapshots__/index.story.storyshot +72 -33
- package/src/components/TagItem/index.story.tsx +154 -159
- package/src/components/TagItem/index.tsx +2 -6
- package/src/components/TextArea/TextArea.story.tsx +29 -32
- package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +139 -83
- package/src/components/TextField/TextField.story.tsx +67 -66
- package/src/components/TextField/__snapshots__/TextField.story.storyshot +198 -162
- package/src/components/TextField/index.tsx +0 -7
- package/dist/components/Checkbox/performance.test.d.ts +0 -4
- package/dist/components/Checkbox/performance.test.d.ts.map +0 -1
- package/dist/components/Checkbox/snapshot.test.d.ts +0 -2
- package/dist/components/Checkbox/snapshot.test.d.ts.map +0 -1
- package/src/components/Checkbox/__snapshots__/snapshot.test.tsx.snap +0 -1093
- package/src/components/Checkbox/performance.test.tsx +0 -30
- package/src/components/Checkbox/snapshot.test.tsx +0 -66
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import Radio from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
1
3
|
declare const _default: {
|
|
2
4
|
title: string;
|
|
3
5
|
component: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
@@ -7,31 +9,18 @@ declare const _default: {
|
|
|
7
9
|
} & {
|
|
8
10
|
children?: import("react").ReactNode;
|
|
9
11
|
} & import("react").RefAttributes<HTMLInputElement>>>;
|
|
10
|
-
argTypes: {
|
|
11
|
-
value: {
|
|
12
|
-
control: {
|
|
13
|
-
type: string;
|
|
14
|
-
};
|
|
15
|
-
options: string[];
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
12
|
args: {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
name: string;
|
|
14
|
+
label: string;
|
|
15
|
+
};
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: string;
|
|
23
18
|
};
|
|
24
19
|
};
|
|
25
20
|
export default _default;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
readonly: boolean;
|
|
32
|
-
className?: string;
|
|
33
|
-
}
|
|
34
|
-
export declare const Default: import("react").FunctionComponent<Partial<Props>> & {
|
|
35
|
-
args?: Partial<Props> | undefined;
|
|
36
|
-
};
|
|
21
|
+
export declare const Basic: StoryObj<typeof Radio>;
|
|
22
|
+
export declare const Disabled: StoryObj<typeof Radio>;
|
|
23
|
+
export declare const PartialDisabled: StoryObj<typeof Radio>;
|
|
24
|
+
export declare const Readonly: StoryObj<typeof Radio>;
|
|
25
|
+
export declare const Invalid: StoryObj<typeof Radio>;
|
|
37
26
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/index.story.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/index.story.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,GAAG,CAAA;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;AAG3C,wBAUC;AAQD,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,OAAO,KAAK,CAqBxC,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,OAAO,KAAK,CAsB3C,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,OAAO,KAAK,CAqBlD,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,OAAO,KAAK,CAsB3C,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,KAAK,CAsB1C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroupContext.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/RadioGroupContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"RadioGroupContext.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/RadioGroupContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAI3D,KAAK,kBAAkB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAChD,KAAK,EAAE,eAAe,CAAA;CACvB,CAAC,CAAA;AACF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAKtD,CAAA;AACD,eAAO,MAAM,eAAe,uBAO3B,CAAA"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const _default:
|
|
4
|
-
title: string;
|
|
5
|
-
component: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<SegmentedControlProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
6
|
-
};
|
|
1
|
+
import SegmentedControl from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import(".").SegmentedControlProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
4
|
export default _default;
|
|
8
|
-
export declare const StringSegments:
|
|
9
|
-
export declare const ObjectSegments:
|
|
5
|
+
export declare const StringSegments: StoryObj<typeof SegmentedControl>;
|
|
6
|
+
export declare const ObjectSegments: StoryObj<typeof SegmentedControl>;
|
|
10
7
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/index.story.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,GAAG,CAAA;AAChC,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;;AAEjD,wBAGkC;AAElC,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,OAAO,gBAAgB,CAQ5D,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,OAAO,gBAAgB,CAa5D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;CACjC,GAAG,CACA,0BAA0B;AAC5B;IACI,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,GACD;IACE,KAAK,EAAE,MAAM,CAAA;CACd,CACJ,CAAA;;AAoCD,wBAAmC"}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
component: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import(".").SwitchProps & import("react").RefAttributes<HTMLInputElement>>>;
|
|
5
|
-
};
|
|
1
|
+
import Switch from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import(".").SwitchProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
4
|
export default _default;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare const Playground: Story<Props>;
|
|
12
|
-
export declare const Labelled: Story<Props>;
|
|
13
|
-
export declare const Unlabelled: Story<Props>;
|
|
5
|
+
export declare const Basic: StoryObj<typeof Switch>;
|
|
6
|
+
export declare const Checked: StoryObj<typeof Switch>;
|
|
7
|
+
export declare const Labelled: StoryObj<typeof Switch>;
|
|
8
|
+
export declare const Disabled: StoryObj<typeof Switch>;
|
|
14
9
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.story.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.story.tsx"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,GAAG,CAAA;AACtB,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;;AAEjD,wBAUwB;AAExB,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,OAAO,MAAM,CAgBzC,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,MAAM,CAgB3C,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,OAAO,MAAM,CAe5C,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,OAAO,MAAM,CAgB5C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TagItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,wBAAwB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TagItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAQ3E,QAAA,MAAM,OAAO;;;CAGZ,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAA;IAC1C,IAAI,CAAC,EAAE,MAAM,OAAO,OAAO,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC,CAAA;;;;;;;;;;;AAyD9E,wBAA4B"}
|
|
@@ -1,26 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const _default: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
className?: string | undefined;
|
|
14
|
-
} & Pick<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | "css" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>>, "href" | "rel" | "target" | "onClick"> & import("react").RefAttributes<HTMLAnchorElement>>>;
|
|
15
|
-
argTypes: {
|
|
16
|
-
bgColor: {
|
|
17
|
-
control: {
|
|
18
|
-
type: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
1
|
+
import TagItem from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
4
|
+
label: string;
|
|
5
|
+
translatedLabel?: string | undefined;
|
|
6
|
+
bgColor?: string | undefined;
|
|
7
|
+
bgImage?: string | undefined;
|
|
8
|
+
status?: "default" | "active" | "inactive" | undefined;
|
|
9
|
+
size?: "S" | "M" | undefined;
|
|
10
|
+
disabled?: boolean | undefined;
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
} & Pick<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | "css" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>>, "href" | "rel" | "target" | "onClick"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
23
13
|
export default _default;
|
|
24
|
-
export declare const Default:
|
|
25
|
-
export declare const Playground:
|
|
14
|
+
export declare const Default: StoryObj<typeof TagItem>;
|
|
15
|
+
export declare const Playground: StoryObj<typeof TagItem>;
|
|
26
16
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/TagItem/index.story.tsx"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/TagItem/index.story.tsx"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,GAAG,CAAA;AACvB,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;AAEjD,wBAayB;AAEzB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,OAAO,CAK5C,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,OAAO,OAAO,CA+I/C,CAAA"}
|
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const _default:
|
|
4
|
-
title: string;
|
|
5
|
-
component: import("react").ForwardRefExoticComponent<TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
6
|
-
argTypes: {};
|
|
7
|
-
args: {
|
|
8
|
-
showLabel: boolean;
|
|
9
|
-
label: string;
|
|
10
|
-
assistiveText: string;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
required: boolean;
|
|
13
|
-
invalid: boolean;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
1
|
+
import TextArea from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import(".").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
16
4
|
export default _default;
|
|
17
|
-
export declare const Default:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare const
|
|
21
|
-
args?: Partial<TextAreaProps> | undefined;
|
|
22
|
-
};
|
|
23
|
-
export declare const HasCount: import("react").FunctionComponent<Partial<TextAreaProps>> & {
|
|
24
|
-
args?: Partial<TextAreaProps> | undefined;
|
|
25
|
-
};
|
|
26
|
-
export declare const AutoHeight: Story<Partial<TextAreaProps>>;
|
|
5
|
+
export declare const Default: StoryObj<typeof TextArea>;
|
|
6
|
+
export declare const HasLabel: StoryObj<typeof TextArea>;
|
|
7
|
+
export declare const HasCount: StoryObj<typeof TextArea>;
|
|
8
|
+
export declare const AutoHeight: StoryObj<typeof TextArea>;
|
|
27
9
|
//# sourceMappingURL=TextArea.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.story.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.story.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextArea.story.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.story.tsx"],"names":[],"mappings":"AAGA,OAAO,QAAQ,MAAM,GAAG,CAAA;AAExB,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;;AAEjD,wBAsB0B;AAO1B,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,QAAQ,CAAM,CAAA;AAEpD,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,OAAO,QAAQ,CAM9C,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,OAAO,QAAQ,CAK9C,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,OAAO,QAAQ,CAIhD,CAAA"}
|
|
@@ -1,28 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const _default:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import TextField from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import(".").TextFieldProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: {};
|
|
6
|
+
export declare const HasLabel: {
|
|
7
7
|
args: {
|
|
8
8
|
showLabel: boolean;
|
|
9
|
-
label: string;
|
|
10
9
|
assistiveText: string;
|
|
11
|
-
disabled: boolean;
|
|
12
10
|
required: boolean;
|
|
13
|
-
invalid: boolean;
|
|
14
11
|
};
|
|
15
12
|
};
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
args?: Partial<TextFieldProps> | undefined;
|
|
22
|
-
};
|
|
23
|
-
export declare const HasCount: import("react").FunctionComponent<Partial<TextFieldProps>> & {
|
|
24
|
-
args?: Partial<TextFieldProps> | undefined;
|
|
13
|
+
export declare const HasCount: {
|
|
14
|
+
args: {
|
|
15
|
+
showCount: boolean;
|
|
16
|
+
maxLength: number;
|
|
17
|
+
};
|
|
25
18
|
};
|
|
26
|
-
export declare const HasAffix:
|
|
27
|
-
export declare const PrefixIcon:
|
|
19
|
+
export declare const HasAffix: StoryObj<typeof TextField>;
|
|
20
|
+
export declare const PrefixIcon: StoryObj<typeof TextField>;
|
|
28
21
|
//# sourceMappingURL=TextField.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.story.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.story.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextField.story.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.story.tsx"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,GAAG,CAAA;AAIzB,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;;AAEjD,wBAsB2B;AAO3B,eAAO,MAAM,OAAO,IAAK,CAAA;AAEzB,eAAO,MAAM,QAAQ;;;;;;CAMpB,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,OAAO,SAAS,CAO/C,CAAA;AAQD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,OAAO,SAAS,CAgCjD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAA;AAC3E,OAAO,KAAK,KAAK,MAAM,OAAO,CAA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