@charcoal-ui/react 3.0.0-beta.2 → 3.0.0-beta.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/_lib/compat.d.ts +19 -1
- package/dist/_lib/compat.d.ts.map +1 -1
- package/dist/_lib/index.d.ts +7 -0
- package/dist/_lib/index.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +1 -2
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.story.d.ts +1 -2
- package/dist/components/Button/index.story.d.ts.map +1 -1
- package/dist/components/Button/index.test.d.ts +4 -0
- package/dist/components/Button/index.test.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +2 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.story.d.ts +2 -2
- package/dist/components/Checkbox/index.story.d.ts.map +1 -1
- package/dist/components/Clickable/index.d.ts +1 -1
- package/dist/components/Clickable/index.d.ts.map +1 -1
- package/dist/components/Clickable/index.story.d.ts +1 -2
- package/dist/components/Clickable/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/Divider.d.ts +3 -0
- package/dist/components/DropdownSelector/Divider.d.ts.map +1 -1
- package/dist/components/DropdownSelector/DropdownMenuItem.d.ts +7 -0
- package/dist/components/DropdownSelector/DropdownMenuItem.d.ts.map +1 -0
- package/dist/components/DropdownSelector/DropdownPopover.d.ts +8 -8
- package/dist/components/DropdownSelector/DropdownPopover.d.ts.map +1 -1
- package/dist/components/DropdownSelector/ListItem/index.d.ts +18 -0
- package/dist/components/DropdownSelector/ListItem/index.d.ts.map +1 -0
- package/dist/components/DropdownSelector/ListItem/index.story.d.ts +9 -0
- package/dist/components/DropdownSelector/ListItem/index.story.d.ts.map +1 -0
- package/dist/components/DropdownSelector/MenuItem/index.d.ts +11 -0
- package/dist/components/DropdownSelector/MenuItem/index.d.ts.map +1 -0
- package/dist/components/DropdownSelector/MenuItem/internals/handleFocusByKeyBoard.d.ts +9 -0
- package/dist/components/DropdownSelector/MenuItem/internals/handleFocusByKeyBoard.d.ts.map +1 -0
- package/dist/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.d.ts +10 -0
- package/dist/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.d.ts.map +1 -0
- package/dist/components/DropdownSelector/MenuItemGroup/index.d.ts +14 -0
- package/dist/components/DropdownSelector/MenuItemGroup/index.d.ts.map +1 -0
- package/dist/components/DropdownSelector/MenuList/MenuListContext.d.ts +10 -0
- package/dist/components/DropdownSelector/MenuList/MenuListContext.d.ts.map +1 -0
- package/dist/components/DropdownSelector/MenuList/index.d.ts +18 -0
- package/dist/components/DropdownSelector/MenuList/index.d.ts.map +1 -0
- package/dist/components/DropdownSelector/MenuList/index.story.d.ts +11 -0
- package/dist/components/DropdownSelector/MenuList/index.story.d.ts.map +1 -0
- package/dist/components/DropdownSelector/MenuList/internals/getValuesRecursive.d.ts +11 -0
- package/dist/components/DropdownSelector/MenuList/internals/getValuesRecursive.d.ts.map +1 -0
- package/dist/components/DropdownSelector/Popover/index.d.ts +17 -0
- package/dist/components/DropdownSelector/Popover/index.d.ts.map +1 -0
- package/dist/components/DropdownSelector/Popover/index.story.d.ts +9 -0
- package/dist/components/DropdownSelector/Popover/index.story.d.ts.map +1 -0
- package/dist/components/DropdownSelector/index.d.ts +3 -10
- package/dist/components/DropdownSelector/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/index.story.d.ts +4 -4
- package/dist/components/DropdownSelector/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/utils/findPreviewRecursive.d.ts +12 -0
- package/dist/components/DropdownSelector/utils/findPreviewRecursive.d.ts.map +1 -0
- package/dist/components/FieldLabel/index.d.ts +1 -1
- package/dist/components/FieldLabel/index.d.ts.map +1 -1
- package/dist/components/Icon/index.d.ts +1 -1
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.story.d.ts +2 -3
- package/dist/components/Icon/index.story.d.ts.map +1 -1
- package/dist/components/IconButton/index.d.ts +1 -2
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/IconButton/index.story.d.ts +1 -2
- package/dist/components/IconButton/index.story.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/index.d.ts +9 -8
- package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/index.story.d.ts +1 -2
- package/dist/components/LoadingSpinner/index.story.d.ts.map +1 -1
- package/dist/components/Modal/ModalPlumbing.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +18 -27
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.story.d.ts +12 -2
- package/dist/components/Modal/index.story.d.ts.map +1 -1
- package/dist/components/MultiSelect/context.d.ts +1 -1
- package/dist/components/MultiSelect/context.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.d.ts +18 -6
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.story.d.ts +21 -16
- package/dist/components/MultiSelect/index.story.d.ts.map +1 -1
- package/dist/components/Radio/index.d.ts +13 -6
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/Radio/index.story.d.ts +11 -8
- 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.d.ts +2 -1
- package/dist/components/SegmentedControl/index.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.story.d.ts +1 -2
- package/dist/components/SegmentedControl/index.story.d.ts.map +1 -1
- package/dist/components/Switch/index.d.ts +3 -2
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.story.d.ts +1 -2
- package/dist/components/Switch/index.story.d.ts.map +1 -1
- package/dist/components/TagItem/index.d.ts +3 -3
- package/dist/components/TagItem/index.d.ts.map +1 -1
- package/dist/components/TagItem/index.story.d.ts +2 -3
- package/dist/components/TagItem/index.story.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.story.d.ts +28 -0
- package/dist/components/TextArea/TextArea.story.d.ts.map +1 -0
- package/dist/components/TextArea/index.d.ts +21 -0
- package/dist/components/TextArea/index.d.ts.map +1 -0
- package/dist/components/TextField/TextField.story.d.ts +28 -0
- package/dist/components/TextField/TextField.story.d.ts.map +1 -0
- package/dist/components/TextField/index.d.ts +8 -30
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/core/CharcoalProvider.d.ts +1 -1
- package/dist/core/CharcoalProvider.d.ts.map +1 -1
- package/dist/core/ComponentAbstraction.d.ts +1 -1
- package/dist/core/ComponentAbstraction.d.ts.map +1 -1
- package/dist/index.cjs.js +1064 -771
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1028 -750
- package/dist/index.esm.js.map +1 -1
- package/dist/styled.d.ts +13 -13
- package/package.json +7 -7
- package/src/_lib/compat.ts +20 -1
- package/src/_lib/index.ts +23 -0
- package/src/components/Button/__snapshots__/index.test.tsx.snap +385 -0
- package/src/components/Button/index.story.tsx +1 -1
- package/src/components/Button/index.test.tsx +24 -0
- package/src/components/Button/index.tsx +2 -2
- package/src/components/Checkbox/index.story.tsx +1 -1
- package/src/components/Checkbox/index.tsx +4 -2
- package/src/components/Clickable/index.story.tsx +0 -1
- package/src/components/Clickable/index.tsx +1 -1
- package/src/components/DropdownSelector/Divider.tsx +3 -0
- package/src/components/DropdownSelector/DropdownMenuItem.tsx +40 -0
- package/src/components/DropdownSelector/DropdownPopover.tsx +21 -42
- package/src/components/DropdownSelector/ListItem/index.story.tsx +51 -0
- package/src/components/DropdownSelector/ListItem/index.tsx +58 -0
- package/src/components/DropdownSelector/MenuItem/index.tsx +31 -0
- package/src/components/DropdownSelector/MenuItem/internals/handleFocusByKeyBoard.tsx +43 -0
- package/src/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.tsx +55 -0
- package/src/components/DropdownSelector/MenuItemGroup/index.tsx +42 -0
- package/src/components/DropdownSelector/MenuList/MenuListContext.ts +17 -0
- package/src/components/DropdownSelector/MenuList/index.story.tsx +51 -0
- package/src/components/DropdownSelector/MenuList/index.tsx +51 -0
- package/src/components/DropdownSelector/MenuList/internals/getValuesRecursive.tsx +35 -0
- package/src/components/DropdownSelector/Popover/index.story.tsx +65 -0
- package/src/components/DropdownSelector/Popover/index.tsx +69 -0
- package/src/components/DropdownSelector/index.story.tsx +56 -21
- package/src/components/DropdownSelector/index.tsx +19 -60
- package/src/components/DropdownSelector/utils/findPreviewRecursive.tsx +39 -0
- package/src/components/FieldLabel/index.tsx +1 -1
- package/src/components/Icon/index.story.tsx +0 -1
- package/src/components/Icon/index.tsx +1 -1
- package/src/components/IconButton/index.story.tsx +0 -1
- package/src/components/IconButton/index.tsx +2 -2
- package/src/components/LoadingSpinner/index.story.tsx +8 -2
- package/src/components/LoadingSpinner/index.tsx +44 -29
- package/src/components/Modal/ModalPlumbing.tsx +0 -1
- package/src/components/Modal/index.story.tsx +0 -1
- package/src/components/Modal/index.tsx +19 -12
- package/src/components/MultiSelect/context.ts +2 -2
- package/src/components/MultiSelect/index.story.tsx +26 -27
- package/src/components/MultiSelect/index.test.tsx +5 -23
- package/src/components/MultiSelect/index.tsx +83 -78
- package/src/components/Radio/index.story.tsx +7 -9
- package/src/components/Radio/index.test.tsx +3 -4
- package/src/components/Radio/index.tsx +24 -23
- package/src/components/SegmentedControl/RadioGroupContext.tsx +2 -1
- package/src/components/SegmentedControl/index.story.tsx +0 -1
- package/src/components/SegmentedControl/index.tsx +16 -5
- package/src/components/Switch/index.story.tsx +1 -1
- package/src/components/Switch/index.tsx +38 -32
- package/src/components/TagItem/index.story.tsx +0 -1
- package/src/components/TagItem/index.tsx +1 -6
- package/src/components/TextArea/TextArea.story.tsx +61 -0
- package/src/components/TextArea/index.tsx +246 -0
- package/src/components/TextField/{index.story.tsx → TextField.story.tsx} +6 -29
- package/src/components/TextField/index.tsx +148 -378
- package/src/components/a11y.test.tsx +0 -1
- package/src/core/CharcoalProvider.tsx +1 -1
- package/src/core/ComponentAbstraction.tsx +2 -1
- package/src/index.ts +8 -6
- package/dist/components/DropdownSelector/OptionItem.d.ts +0 -7
- package/dist/components/DropdownSelector/OptionItem.d.ts.map +0 -1
- package/dist/components/DropdownSelector/utils/focusIfHTMLLIElement.d.ts +0 -6
- package/dist/components/DropdownSelector/utils/focusIfHTMLLIElement.d.ts.map +0 -1
- package/dist/components/DropdownSelector/utils/handleFocusByKeyBoard.d.ts +0 -6
- package/dist/components/DropdownSelector/utils/handleFocusByKeyBoard.d.ts.map +0 -1
- package/src/components/DropdownSelector/OptionItem.tsx +0 -85
- package/src/components/DropdownSelector/utils/focusIfHTMLLIElement.tsx +0 -12
- package/src/components/DropdownSelector/utils/handleFocusByKeyBoard.tsx +0 -20
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { Story } from '../../_lib/compat';
|
|
3
2
|
import '@charcoal-ui/icons';
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<import(".").IconButtonProps & import("react").RefAttributes<import("../Clickable").ClickableElement>>;
|
|
7
6
|
argTypes: {
|
|
8
7
|
variant: {
|
|
9
8
|
control: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,oBAAoB,CAAA;;;;;;;;;;;;;;;;;;;AAI3B,wBAiBC;AAED,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,IAAI,CAAA;CACxB,CAAA;AAYD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAqB,CAAA;AAMvD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAqB,CAAA"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
export type LoadingSpinnerProps = {
|
|
2
|
+
readonly size?: number;
|
|
3
|
+
readonly padding?: number;
|
|
4
|
+
readonly transparent?: boolean;
|
|
5
|
+
readonly className?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<LoadingSpinnerProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
8
|
+
export default _default;
|
|
7
9
|
interface Props {
|
|
8
10
|
once?: boolean;
|
|
9
11
|
}
|
|
10
12
|
export interface LoadingSpinnerIconHandler {
|
|
11
13
|
restart(): void;
|
|
12
14
|
}
|
|
13
|
-
export declare const LoadingSpinnerIcon:
|
|
14
|
-
export {};
|
|
15
|
+
export declare const LoadingSpinnerIcon: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<LoadingSpinnerIconHandler>>;
|
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingSpinner/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingSpinner/index.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;;AAqBD,wBAAmC;AA+CnC,UAAU,KAAK;IACb,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,IAAI,IAAI,CAAA;CAChB;AAED,eAAO,MAAM,kBAAkB,6GAkB9B,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import LoadingSpinner from '.';
|
|
2
1
|
declare const _default: {
|
|
3
2
|
title: string;
|
|
4
|
-
component:
|
|
3
|
+
component: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import(".").LoadingSpinnerProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
5
4
|
decorators: ((...args: any) => any)[];
|
|
6
5
|
};
|
|
7
6
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingSpinner/index.story.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingSpinner/index.story.tsx"],"names":[],"mappings":";;;;;AAaA,wBAIC;AAED,wBAAgB,KAAK,gBAcpB;AAED,wBAAgB,IAAI,gBAEnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalPlumbing.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalPlumbing.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModalPlumbing.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalPlumbing.tsx"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,gBAM1B;AAaD,eAAO,MAAM,UAAU,yGAEtB,CAAA;AAED,eAAO,MAAM,SAAS,yGAErB,CAAA;AAED,eAAO,MAAM,YAAY,yGAMxB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { AriaModalOverlayProps } from '@react-aria/overlays';
|
|
3
3
|
import { AriaDialogProps } from '@react-types/dialog';
|
|
4
4
|
import { ButtonProps } from '../Button';
|
|
@@ -12,38 +12,29 @@ export type ModalProps = AriaModalOverlayProps & AriaDialogProps & {
|
|
|
12
12
|
bottomSheet?: BottomSheet;
|
|
13
13
|
isOpen: boolean;
|
|
14
14
|
onClose: () => void;
|
|
15
|
+
className?: string;
|
|
15
16
|
/**
|
|
16
17
|
* https://github.com/adobe/react-spectrum/issues/3787
|
|
17
18
|
* Next.jsで使用する際に発生するエラーの一時的な回避策でdocument.bodyを指定する必要がある
|
|
18
19
|
*/
|
|
19
20
|
portalContainer?: HTMLElement;
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
* <ModalHeader />
|
|
38
|
-
* <ModalBody>...</ModalBody>
|
|
39
|
-
* <ModalButtons>...</ModalButtons>
|
|
40
|
-
* </Modal>
|
|
41
|
-
* </App>
|
|
42
|
-
* </OverlayProvider>
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
export default function Modal({ children, zIndex, portalContainer, ...props }: ModalProps): JSX.Element;
|
|
22
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<AriaModalOverlayProps & AriaDialogProps & {
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
zIndex?: number | undefined;
|
|
25
|
+
title: string;
|
|
26
|
+
size?: Size | undefined;
|
|
27
|
+
bottomSheet?: BottomSheet | undefined;
|
|
28
|
+
isOpen: boolean;
|
|
29
|
+
onClose: () => void;
|
|
30
|
+
className?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* https://github.com/adobe/react-spectrum/issues/3787
|
|
33
|
+
* Next.jsで使用する際に発生するエラーの一時的な回避策でdocument.bodyを指定する必要がある
|
|
34
|
+
*/
|
|
35
|
+
portalContainer?: HTMLElement | undefined;
|
|
36
|
+
} & React.RefAttributes<HTMLDivElement>>>;
|
|
37
|
+
export default _default;
|
|
46
38
|
export declare function ModalTitle(props: React.HTMLAttributes<HTMLHeadingElement>): JSX.Element;
|
|
47
39
|
export declare function ModalDismissButton({ children, ...props }: ButtonProps): JSX.Element | null;
|
|
48
|
-
export {};
|
|
49
40
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EACL,qBAAqB,EAItB,MAAM,sBAAsB,CAAA;AAK7B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAMrD,OAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAI/C,KAAK,WAAW,GAAG,OAAO,GAAG,MAAM,CAAA;AACnC,KAAK,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;AAE3B,MAAM,MAAM,UAAU,GAAG,qBAAqB,GAC5C,eAAe,GAAG;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,eAAe,CAAC,EAAE,WAAW,CAAA;CAC9B,CAAA;;;;;;;;;;IALC;;;OAGG;;;AAuIP,wBAA0B;AA6F1B,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,eAOzE;AAQD,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,sBAYrE"}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { Story } from '../../_lib/compat';
|
|
2
|
-
import
|
|
2
|
+
import { ModalProps } from '.';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component:
|
|
5
|
+
component: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("@react-aria/overlays").AriaModalOverlayProps & import("@react-types/dialog").AriaDialogProps & {
|
|
6
|
+
children: import("react").ReactNode;
|
|
7
|
+
zIndex?: number | undefined;
|
|
8
|
+
title: string;
|
|
9
|
+
size?: ("S" | "M" | "L") | undefined;
|
|
10
|
+
bottomSheet?: (boolean | "full") | undefined;
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
className?: string | undefined;
|
|
14
|
+
portalContainer?: HTMLElement | undefined;
|
|
15
|
+
} & import("react").RefAttributes<HTMLDivElement>>>;
|
|
6
16
|
args: {
|
|
7
17
|
title: string;
|
|
8
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.story.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAc,EAAsB,UAAU,EAAE,MAAM,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAczD,wBAqBC;AA+DD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,UAAU,CAAyB,CAAA;AAuD/D,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,UAAU,CAAiC,CAAA;AAuC/E,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,UAAU,CAA6B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/context.ts"],"names":[],"mappings":"AAEA,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/context.ts"],"names":[],"mappings":"AAEA,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAA;CAC9E,CAAA;AAED,eAAO,MAAM,uBAAuB,kDAWlC,CAAA"}
|
|
@@ -1,24 +1,36 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export type MultiSelectProps = React.PropsWithChildren<{
|
|
3
3
|
value: string;
|
|
4
|
-
forceChecked?: boolean;
|
|
5
4
|
disabled?: boolean;
|
|
6
5
|
variant?: 'default' | 'overlay';
|
|
6
|
+
className?: string;
|
|
7
7
|
onChange?: (payload: {
|
|
8
8
|
value: string;
|
|
9
9
|
selected: boolean;
|
|
10
10
|
}) => void;
|
|
11
11
|
}>;
|
|
12
|
-
|
|
12
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
|
13
|
+
value: string;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
15
|
+
variant?: "default" | "overlay" | undefined;
|
|
16
|
+
className?: string | undefined;
|
|
17
|
+
onChange?: ((payload: {
|
|
18
|
+
value: string;
|
|
19
|
+
selected: boolean;
|
|
20
|
+
}) => void) | undefined;
|
|
21
|
+
} & {
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
} & React.RefAttributes<HTMLInputElement>>>;
|
|
24
|
+
export default _default;
|
|
13
25
|
export type MultiSelectGroupProps = React.PropsWithChildren<{
|
|
14
26
|
className?: string;
|
|
15
27
|
name: string;
|
|
16
|
-
|
|
28
|
+
label: string;
|
|
17
29
|
selected: string[];
|
|
18
30
|
onChange: (selected: string[]) => void;
|
|
19
31
|
disabled?: boolean;
|
|
20
32
|
readonly?: boolean;
|
|
21
|
-
|
|
33
|
+
invalid?: boolean;
|
|
22
34
|
}>;
|
|
23
|
-
export declare function MultiSelectGroup({ className, name,
|
|
35
|
+
export declare function MultiSelectGroup({ className, name, label, selected, onChange, disabled, readonly, invalid, children, }: MultiSelectGroupProps): JSX.Element;
|
|
24
36
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACrD,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAA;CACnE,CAAC,CAAA;;;;;;;;;;;;;AAuEF,wBAAgC;AA4EhC,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC,CAAA;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAgB,EAChB,QAAgB,EAChB,OAAe,EACf,QAAQ,GACT,EAAE,qBAAqB,eAkCvB"}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Story } from '../../_lib/compat';
|
|
3
|
-
import { default as MultiSelect } from '.';
|
|
4
2
|
declare const _default: {
|
|
5
3
|
title: string;
|
|
6
|
-
component:
|
|
4
|
+
component: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
5
|
+
value: string;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
variant?: "default" | "overlay" | undefined;
|
|
8
|
+
className?: string | undefined;
|
|
9
|
+
onChange?: ((payload: {
|
|
10
|
+
value: string;
|
|
11
|
+
selected: boolean;
|
|
12
|
+
}) => void) | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
children?: import("react").ReactNode;
|
|
15
|
+
} & import("react").RefAttributes<HTMLInputElement>>>;
|
|
7
16
|
argTypes: {
|
|
8
17
|
name: {
|
|
9
18
|
control: {
|
|
10
19
|
type: string;
|
|
11
20
|
};
|
|
12
21
|
};
|
|
13
|
-
|
|
22
|
+
label: {
|
|
14
23
|
control: {
|
|
15
24
|
type: string;
|
|
16
25
|
};
|
|
@@ -20,11 +29,6 @@ declare const _default: {
|
|
|
20
29
|
type: string;
|
|
21
30
|
};
|
|
22
31
|
};
|
|
23
|
-
firstOptionForceChecked: {
|
|
24
|
-
control: {
|
|
25
|
-
type: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
32
|
disabled: {
|
|
29
33
|
control: {
|
|
30
34
|
type: string;
|
|
@@ -35,7 +39,7 @@ declare const _default: {
|
|
|
35
39
|
type: string;
|
|
36
40
|
};
|
|
37
41
|
};
|
|
38
|
-
|
|
42
|
+
invalid: {
|
|
39
43
|
control: {
|
|
40
44
|
type: string;
|
|
41
45
|
};
|
|
@@ -51,24 +55,25 @@ declare const _default: {
|
|
|
51
55
|
export default _default;
|
|
52
56
|
type Props = {
|
|
53
57
|
name: string;
|
|
54
|
-
|
|
58
|
+
label: string;
|
|
55
59
|
selected: boolean;
|
|
56
|
-
firstOptionForceChecked: boolean;
|
|
57
60
|
onChange: (selected: string[]) => void;
|
|
58
61
|
disabled?: boolean;
|
|
59
62
|
readonly?: boolean;
|
|
60
|
-
|
|
63
|
+
invalid?: boolean;
|
|
61
64
|
variant?: 'default' | 'overlay';
|
|
65
|
+
className?: string;
|
|
62
66
|
};
|
|
63
|
-
export declare const Default:
|
|
67
|
+
export declare const Default: import("react").FunctionComponent<Props> & {
|
|
64
68
|
args?: Props | undefined;
|
|
65
69
|
};
|
|
66
70
|
type PlaygroundProps = {
|
|
67
71
|
name: string;
|
|
68
|
-
|
|
72
|
+
label: string;
|
|
69
73
|
disabled?: boolean;
|
|
70
74
|
readonly?: boolean;
|
|
71
|
-
|
|
75
|
+
invalid?: boolean;
|
|
76
|
+
className?: string;
|
|
72
77
|
variant?: 'default' | 'overlay';
|
|
73
78
|
};
|
|
74
79
|
export declare const Playground: Story<PlaygroundProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/index.story.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/index.story.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIzC,wBAyCC;AAED,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAwCD,eAAO,MAAM,OAAO;;CAAoB,CAAA;AAaxC,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,eAAe,CAqB7C,CAAA"}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export type RadioProps = React.PropsWithChildren<{
|
|
3
3
|
value: string;
|
|
4
|
-
forceChecked?: boolean;
|
|
5
4
|
disabled?: boolean;
|
|
5
|
+
className?: string;
|
|
6
6
|
}>;
|
|
7
|
-
|
|
7
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
|
8
|
+
value: string;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
|
+
className?: string | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
} & React.RefAttributes<HTMLInputElement>>>;
|
|
14
|
+
export default _default;
|
|
8
15
|
export declare const RadioInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
|
|
9
16
|
type: "radio";
|
|
10
17
|
} & {
|
|
11
|
-
|
|
18
|
+
invalid?: boolean | undefined;
|
|
12
19
|
}, "type">;
|
|
13
20
|
export type RadioGroupProps = React.PropsWithChildren<{
|
|
14
21
|
className?: string;
|
|
@@ -18,7 +25,7 @@ export type RadioGroupProps = React.PropsWithChildren<{
|
|
|
18
25
|
onChange(next: string): void;
|
|
19
26
|
disabled?: boolean;
|
|
20
27
|
readonly?: boolean;
|
|
21
|
-
|
|
28
|
+
invalid?: boolean;
|
|
22
29
|
}>;
|
|
23
|
-
export declare function RadioGroup({ className, value, label, name, onChange, disabled, readonly,
|
|
30
|
+
export declare function RadioGroup({ className, value, label, name, onChange, disabled, readonly, invalid, children, }: RadioGroupProps): JSX.Element;
|
|
24
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC,CAAA;;;;;;;;AAgDF,wBAA0B;AAY1B,eAAO,MAAM,UAAU;;;;UAgDtB,CAAA;AAMD,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC,CAAA;AA+BF,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,KAAK,EACL,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,GACT,EAAE,eAAe,eA8BjB"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Radio from '.';
|
|
3
1
|
declare const _default: {
|
|
4
2
|
title: string;
|
|
5
|
-
component:
|
|
3
|
+
component: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
4
|
+
value: string;
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
className?: string | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
children?: import("react").ReactNode;
|
|
9
|
+
} & import("react").RefAttributes<HTMLInputElement>>>;
|
|
6
10
|
argTypes: {
|
|
7
11
|
value: {
|
|
8
12
|
control: {
|
|
@@ -12,23 +16,22 @@ declare const _default: {
|
|
|
12
16
|
};
|
|
13
17
|
};
|
|
14
18
|
args: {
|
|
15
|
-
|
|
19
|
+
invalid: boolean;
|
|
16
20
|
parentDisabled: boolean;
|
|
17
21
|
childDisabled: boolean;
|
|
18
|
-
forceChecked: boolean;
|
|
19
22
|
readonly: boolean;
|
|
20
23
|
};
|
|
21
24
|
};
|
|
22
25
|
export default _default;
|
|
23
26
|
interface Props {
|
|
24
27
|
value?: string;
|
|
25
|
-
|
|
28
|
+
invalid: boolean;
|
|
26
29
|
parentDisabled: boolean;
|
|
27
30
|
childDisabled: boolean;
|
|
28
|
-
forceChecked: boolean;
|
|
29
31
|
readonly: boolean;
|
|
32
|
+
className?: string;
|
|
30
33
|
}
|
|
31
|
-
export declare const Default:
|
|
34
|
+
export declare const Default: import("react").FunctionComponent<Partial<Props>> & {
|
|
32
35
|
args?: Partial<Props> | undefined;
|
|
33
36
|
};
|
|
34
37
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAeC;AAED,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;IAChB,cAAc,EAAE,OAAO,CAAA;IACvB,aAAa,EAAE,OAAO,CAAA;IACtB,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AA2CD,eAAO,MAAM,OAAO;;CAAoB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroupContext.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/RadioGroupContext.tsx"],"names":[],"mappings":"
|
|
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,eAAe,CAAA;AAI/C,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,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
type SegmentedControlItem = {
|
|
3
3
|
label: React.ReactNode;
|
|
4
4
|
value: string;
|
|
@@ -10,6 +10,7 @@ export type SegmentedControlProps = {
|
|
|
10
10
|
readonly disabled?: boolean;
|
|
11
11
|
readonly readonly?: boolean;
|
|
12
12
|
readonly required?: boolean;
|
|
13
|
+
readonly className?: string;
|
|
13
14
|
readonly value?: string;
|
|
14
15
|
readonly defaultValue?: string;
|
|
15
16
|
readonly data: string[] | SegmentedControlItem[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAc9B,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAE3B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAE9B,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,oBAAoB,EAAE,CAAA;IAEhD,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5C,CAAA;;AA4CD,wBAAqC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { SegmentedControlProps } from '.';
|
|
3
2
|
import { Story } from '../../_lib/compat';
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<SegmentedControlProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
7
6
|
};
|
|
8
7
|
export default _default;
|
|
9
8
|
export declare const StringSegments: Story<SegmentedControlProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/index.story.tsx"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/index.story.tsx"],"names":[],"mappings":"AACA,OAAyB,EAAE,qBAAqB,EAAE,MAAM,GAAG,CAAA;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;;;;;AAEzC,wBAGC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,qBAAqB,CAEvD,CAAA;AAUD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,qBAAqB,CAEvD,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export type SwitchProps = {
|
|
3
3
|
name: string;
|
|
4
4
|
className?: string;
|
|
@@ -12,5 +12,6 @@ export type SwitchProps = {
|
|
|
12
12
|
} | {
|
|
13
13
|
label: string;
|
|
14
14
|
});
|
|
15
|
-
|
|
15
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>>;
|
|
16
|
+
export default _default;
|
|
16
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,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,8 +1,7 @@
|
|
|
1
1
|
import { Story } from '../../_lib/compat';
|
|
2
|
-
import Switch from '.';
|
|
3
2
|
declare const _default: {
|
|
4
3
|
title: string;
|
|
5
|
-
component:
|
|
4
|
+
component: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import(".").SwitchProps & import("react").RefAttributes<HTMLInputElement>>>;
|
|
6
5
|
};
|
|
7
6
|
export default _default;
|
|
8
7
|
interface Props {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.story.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.story.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;;;;;AAGzC,wBAGC;AAED,UAAU,KAAK;IACb,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,KAAK,CAiBnC,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,KAAK,CAMjC,CAAA;AAOD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,KAAK,CASnC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
declare const sizeMap: {
|
|
3
3
|
S: number;
|
|
4
4
|
M: number;
|
|
@@ -13,7 +13,7 @@ export type TagItemProps = {
|
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
className?: string;
|
|
15
15
|
} & Pick<ComponentPropsWithoutRef<'a'>, 'href' | 'target' | 'rel' | 'onClick'>;
|
|
16
|
-
declare const _default:
|
|
16
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
17
17
|
label: string;
|
|
18
18
|
translatedLabel?: string | undefined;
|
|
19
19
|
bgColor?: string | undefined;
|
|
@@ -22,6 +22,6 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
|
|
|
22
22
|
size?: "S" | "M" | undefined;
|
|
23
23
|
disabled?: boolean | undefined;
|
|
24
24
|
className?: string | undefined;
|
|
25
|
-
} & Pick<Pick<
|
|
25
|
+
} & Pick<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | "css" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>>, "onClick" | "href" | "rel" | "target"> & import("react").RefAttributes<HTMLAnchorElement>>>;
|
|
26
26
|
export default _default;
|
|
27
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TagItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { TagItemProps } from '.';
|
|
3
2
|
import { Story } from '../../_lib/compat';
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
5
|
+
component: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
7
6
|
label: string;
|
|
8
7
|
translatedLabel?: string | undefined;
|
|
9
8
|
bgColor?: string | undefined;
|
|
@@ -12,7 +11,7 @@ declare const _default: {
|
|
|
12
11
|
size?: "S" | "M" | undefined;
|
|
13
12
|
disabled?: boolean | undefined;
|
|
14
13
|
className?: string | undefined;
|
|
15
|
-
} & Pick<Pick<
|
|
14
|
+
} & Pick<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | "css" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>>, "onClick" | "href" | "rel" | "target"> & import("react").RefAttributes<HTMLAnchorElement>>>;
|
|
16
15
|
argTypes: {
|
|
17
16
|
bgColor: {
|
|
18
17
|
control: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/TagItem/index.story.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/TagItem/index.story.tsx"],"names":[],"mappings":"AAEA,OAAgB,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;;;;;;;;;;AAEzC,wBAUC;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,YAAY,CAEvC,CAAA;AAUD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,YAAY,CA4I1C,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Story } from '../../_lib/compat';
|
|
3
|
+
import { TextAreaProps } from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
7
|
+
argTypes: {};
|
|
8
|
+
args: {
|
|
9
|
+
showLabel: boolean;
|
|
10
|
+
label: string;
|
|
11
|
+
assistiveText: string;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
required: boolean;
|
|
14
|
+
invalid: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
export declare const Default: React.FunctionComponent<Partial<TextAreaProps>> & {
|
|
19
|
+
args?: Partial<TextAreaProps> | undefined;
|
|
20
|
+
};
|
|
21
|
+
export declare const HasLabel: React.FunctionComponent<Partial<TextAreaProps>> & {
|
|
22
|
+
args?: Partial<TextAreaProps> | undefined;
|
|
23
|
+
};
|
|
24
|
+
export declare const HasCount: React.FunctionComponent<Partial<TextAreaProps>> & {
|
|
25
|
+
args?: Partial<TextAreaProps> | undefined;
|
|
26
|
+
};
|
|
27
|
+
export declare const AutoHeight: Story<Partial<TextAreaProps>>;
|
|
28
|
+
//# sourceMappingURL=TextArea.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.story.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.story.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEzC,OAAiB,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;;;;;;;;;;;AAG3C,wBAYC;AAqBD,eAAO,MAAM,OAAO;;CAAoB,CAAA;AAExC,eAAO,MAAM,QAAQ;;CAAoB,CAAA;AAOzC,eAAO,MAAM,QAAQ;;CAAoB,CAAA;AAMzC,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAEpD,CAAA"}
|