@charcoal-ui/react 2.0.0 → 2.1.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 +13 -13
- package/dist/_lib/index.d.ts +25 -25
- package/dist/components/Button/index.d.ts +21 -21
- package/dist/components/Button/index.story.d.ts +35 -35
- package/dist/components/Checkbox/index.d.ts +20 -20
- package/dist/components/Checkbox/index.story.d.ts +15 -15
- package/dist/components/Clickable/index.d.ts +18 -18
- package/dist/components/Clickable/index.story.d.ts +8 -8
- package/dist/components/DropdownSelector/Listbox.d.ts +9 -9
- package/dist/components/DropdownSelector/Popover.d.ts +9 -9
- package/dist/components/DropdownSelector/index.d.ts +31 -31
- package/dist/components/DropdownSelector/index.story.d.ts +21 -21
- package/dist/components/FieldLabel/index.d.ts +10 -10
- package/dist/components/Icon/index.d.ts +11 -11
- package/dist/components/Icon/index.story.d.ts +23 -23
- package/dist/components/IconButton/index.d.ts +13 -13
- package/dist/components/IconButton/index.story.d.ts +28 -28
- package/dist/components/LoadingSpinner/index.d.ts +14 -14
- package/dist/components/LoadingSpinner/index.story.d.ts +9 -9
- package/dist/components/Modal/ModalPlumbing.d.ts +4 -4
- package/dist/components/Modal/index.d.ts +41 -15
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.story.d.ts +32 -32
- package/dist/components/MultiSelect/context.d.ts +13 -13
- package/dist/components/MultiSelect/index.d.ts +23 -23
- package/dist/components/MultiSelect/index.story.d.ts +74 -74
- package/dist/components/MultiSelect/index.test.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +23 -23
- package/dist/components/Radio/index.story.d.ts +33 -33
- package/dist/components/Radio/index.test.d.ts +1 -1
- package/dist/components/SegmentedControl/RadioGroupContext.d.ts +8 -8
- package/dist/components/SegmentedControl/index.d.ts +19 -19
- package/dist/components/SegmentedControl/index.story.d.ts +10 -10
- package/dist/components/Switch/index.d.ts +15 -15
- package/dist/components/Switch/index.story.d.ts +13 -13
- package/dist/components/TagItem/index.d.ts +25 -0
- package/dist/components/TagItem/index.d.ts.map +1 -0
- package/dist/components/TagItem/index.story.d.ts +26 -0
- package/dist/components/TagItem/index.story.d.ts.map +1 -0
- package/dist/components/TextField/index.d.ts +43 -43
- package/dist/components/TextField/index.story.d.ts +29 -29
- package/dist/components/a11y.test.d.ts +1 -1
- package/dist/core/ComponentAbstraction.d.ts +23 -23
- package/dist/core/OverlayProvider.d.ts +2 -0
- package/dist/core/OverlayProvider.d.ts.map +1 -0
- package/dist/core/SSRProvider.d.ts +1 -1
- package/dist/index.cjs +3334 -3290
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +18 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4401 -0
- package/dist/index.js.map +1 -0
- package/dist/styled.d.ts +92 -92
- package/package.json +17 -15
- package/src/components/Modal/index.story.tsx +5 -5
- package/src/components/Modal/index.tsx +51 -7
- package/src/components/TagItem/index.story.tsx +188 -0
- package/src/components/TagItem/index.tsx +176 -0
- package/src/core/OverlayProvider.tsx +1 -0
- package/src/index.ts +2 -0
- package/dist/index.modern.js +0 -4677
- package/dist/index.modern.js.map +0 -1
- package/dist/index.module.js +0 -4363
- package/dist/index.module.js.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type SegmentedControlItem = {
|
|
3
|
-
label: React.ReactNode;
|
|
4
|
-
value: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare type SegmentedControlProps = {
|
|
8
|
-
readonly id?: string;
|
|
9
|
-
readonly name?: string;
|
|
10
|
-
readonly disabled?: boolean;
|
|
11
|
-
readonly readonly?: boolean;
|
|
12
|
-
readonly required?: boolean;
|
|
13
|
-
readonly value?: string;
|
|
14
|
-
readonly defaultValue?: string;
|
|
15
|
-
readonly data: string[] | SegmentedControlItem[];
|
|
16
|
-
readonly onChange?: (value: string) => void;
|
|
17
|
-
};
|
|
18
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<SegmentedControlProps & React.RefAttributes<HTMLDivElement>>>;
|
|
19
|
-
export default _default;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type SegmentedControlItem = {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
value: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare type SegmentedControlProps = {
|
|
8
|
+
readonly id?: string;
|
|
9
|
+
readonly name?: string;
|
|
10
|
+
readonly disabled?: boolean;
|
|
11
|
+
readonly readonly?: boolean;
|
|
12
|
+
readonly required?: boolean;
|
|
13
|
+
readonly value?: string;
|
|
14
|
+
readonly defaultValue?: string;
|
|
15
|
+
readonly data: string[] | SegmentedControlItem[];
|
|
16
|
+
readonly onChange?: (value: string) => void;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<SegmentedControlProps & React.RefAttributes<HTMLDivElement>>>;
|
|
19
|
+
export default _default;
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SegmentedControlProps } from '.';
|
|
3
|
-
import { Story } from '../../_lib/compat';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.MemoExoticComponent<React.ForwardRefExoticComponent<SegmentedControlProps & React.RefAttributes<HTMLDivElement>>>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const StringSegments: Story<SegmentedControlProps>;
|
|
10
|
-
export declare const ObjectSegments: Story<SegmentedControlProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SegmentedControlProps } from '.';
|
|
3
|
+
import { Story } from '../../_lib/compat';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.MemoExoticComponent<React.ForwardRefExoticComponent<SegmentedControlProps & React.RefAttributes<HTMLDivElement>>>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const StringSegments: Story<SegmentedControlProps>;
|
|
10
|
+
export declare const ObjectSegments: Story<SegmentedControlProps>;
|
|
11
11
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare type SwitchProps = {
|
|
3
|
-
name: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
checked?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
onChange(checked: boolean): void;
|
|
9
|
-
} & (// children か label は片方が必須
|
|
10
|
-
{
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
} | {
|
|
13
|
-
label: string;
|
|
14
|
-
});
|
|
15
|
-
export default function SwitchCheckbox(props: SwitchProps): JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type SwitchProps = {
|
|
3
|
+
name: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onChange(checked: boolean): void;
|
|
9
|
+
} & (// children か label は片方が必須
|
|
10
|
+
{
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
} | {
|
|
13
|
+
label: string;
|
|
14
|
+
});
|
|
15
|
+
export default function SwitchCheckbox(props: SwitchProps): JSX.Element;
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Story } from '../../_lib/compat';
|
|
2
|
-
import Switch from '.';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof Switch;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
interface Props {
|
|
9
|
-
checked: boolean;
|
|
10
|
-
disabled: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare const Labelled: Story<Props>;
|
|
13
|
-
export declare const Unlabelled: Story<Props>;
|
|
1
|
+
import { Story } from '../../_lib/compat';
|
|
2
|
+
import Switch from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Switch;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
interface Props {
|
|
9
|
+
checked: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Labelled: Story<Props>;
|
|
13
|
+
export declare const Unlabelled: Story<Props>;
|
|
14
14
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
declare const sizeMap: {
|
|
3
|
+
S: number;
|
|
4
|
+
M: number;
|
|
5
|
+
};
|
|
6
|
+
export declare type TagItemProps = {
|
|
7
|
+
label: string;
|
|
8
|
+
translatedLabel?: string;
|
|
9
|
+
bgColor?: string;
|
|
10
|
+
bgImage?: string;
|
|
11
|
+
status?: 'default' | 'active' | 'inactive';
|
|
12
|
+
size?: keyof typeof sizeMap;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
} & Pick<ComponentPropsWithoutRef<'a'>, 'href' | 'target' | 'rel' | 'onClick'>;
|
|
15
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
|
16
|
+
label: string;
|
|
17
|
+
translatedLabel?: string | undefined;
|
|
18
|
+
bgColor?: string | undefined;
|
|
19
|
+
bgImage?: string | undefined;
|
|
20
|
+
status?: "default" | "active" | "inactive" | undefined;
|
|
21
|
+
size?: "S" | "M" | undefined;
|
|
22
|
+
disabled?: boolean | undefined;
|
|
23
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | "css" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement>>, "href" | "rel" | "target" | "onClick"> & React.RefAttributes<HTMLAnchorElement>>>;
|
|
24
|
+
export default _default;
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TagItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAIZ,wBAAwB,EACzB,MAAM,OAAO,CAAA;AAQd,QAAA,MAAM,OAAO;;;CAGZ,CAAA;AAED,oBAAY,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;CACnB,GAAG,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC,CAAA;;;;;;;;;;AAuD9E,wBAA4B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TagItemProps } from '.';
|
|
3
|
+
import { Story } from '../../_lib/compat';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
|
7
|
+
label: string;
|
|
8
|
+
translatedLabel?: string | undefined;
|
|
9
|
+
bgColor?: string | undefined;
|
|
10
|
+
bgImage?: string | undefined;
|
|
11
|
+
status?: "default" | "active" | "inactive" | undefined;
|
|
12
|
+
size?: "S" | "M" | undefined;
|
|
13
|
+
disabled?: boolean | undefined;
|
|
14
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | "css" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement>>, "href" | "rel" | "target" | "onClick"> & React.RefAttributes<HTMLAnchorElement>>>;
|
|
15
|
+
argTypes: {
|
|
16
|
+
bgColor: {
|
|
17
|
+
control: {
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
export declare const Default: Story<TagItemProps>;
|
|
25
|
+
export declare const Playground: Story<TagItemProps>;
|
|
26
|
+
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/TagItem/index.story.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,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;AASD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,YAAY,CA4I1C,CAAA"}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { FieldLabelProps } from '../FieldLabel';
|
|
3
|
-
interface TextFieldBaseProps extends Pick<FieldLabelProps, 'label' | 'requiredText' | 'subLabel'> {
|
|
4
|
-
readonly className?: string;
|
|
5
|
-
readonly defaultValue?: string;
|
|
6
|
-
readonly value?: string;
|
|
7
|
-
readonly onChange?: (value: string) => void;
|
|
8
|
-
readonly onKeyDown?: (event: React.KeyboardEvent<Element>) => void;
|
|
9
|
-
readonly onFocus?: (event: React.FocusEvent<Element>) => void;
|
|
10
|
-
readonly onBlur?: (event: React.FocusEvent<Element>) => void;
|
|
11
|
-
readonly showCount?: boolean;
|
|
12
|
-
readonly showLabel?: boolean;
|
|
13
|
-
readonly placeholder?: string;
|
|
14
|
-
readonly assistiveText?: string;
|
|
15
|
-
readonly disabled?: boolean;
|
|
16
|
-
readonly required?: boolean;
|
|
17
|
-
readonly invalid?: boolean;
|
|
18
|
-
readonly maxLength?: number;
|
|
19
|
-
/**
|
|
20
|
-
* tab-indexがー1かどうか
|
|
21
|
-
*/
|
|
22
|
-
readonly excludeFromTabOrder?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface SingleLineTextFieldProps extends TextFieldBaseProps {
|
|
25
|
-
readonly autoHeight?: never;
|
|
26
|
-
readonly multiline?: false;
|
|
27
|
-
readonly rows?: never;
|
|
28
|
-
readonly type?: string;
|
|
29
|
-
readonly prefix?: ReactNode;
|
|
30
|
-
readonly suffix?: ReactNode;
|
|
31
|
-
}
|
|
32
|
-
export interface MultiLineTextFieldProps extends TextFieldBaseProps {
|
|
33
|
-
readonly autoHeight?: boolean;
|
|
34
|
-
readonly multiline: true;
|
|
35
|
-
readonly rows?: number;
|
|
36
|
-
readonly type?: never;
|
|
37
|
-
readonly prefix?: never;
|
|
38
|
-
readonly suffix?: never;
|
|
39
|
-
}
|
|
40
|
-
export declare type TextFieldProps = SingleLineTextFieldProps | MultiLineTextFieldProps;
|
|
41
|
-
declare type TextFieldElement = HTMLInputElement & HTMLTextAreaElement;
|
|
42
|
-
declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<TextFieldElement>>;
|
|
43
|
-
export default TextField;
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { FieldLabelProps } from '../FieldLabel';
|
|
3
|
+
interface TextFieldBaseProps extends Pick<FieldLabelProps, 'label' | 'requiredText' | 'subLabel'> {
|
|
4
|
+
readonly className?: string;
|
|
5
|
+
readonly defaultValue?: string;
|
|
6
|
+
readonly value?: string;
|
|
7
|
+
readonly onChange?: (value: string) => void;
|
|
8
|
+
readonly onKeyDown?: (event: React.KeyboardEvent<Element>) => void;
|
|
9
|
+
readonly onFocus?: (event: React.FocusEvent<Element>) => void;
|
|
10
|
+
readonly onBlur?: (event: React.FocusEvent<Element>) => void;
|
|
11
|
+
readonly showCount?: boolean;
|
|
12
|
+
readonly showLabel?: boolean;
|
|
13
|
+
readonly placeholder?: string;
|
|
14
|
+
readonly assistiveText?: string;
|
|
15
|
+
readonly disabled?: boolean;
|
|
16
|
+
readonly required?: boolean;
|
|
17
|
+
readonly invalid?: boolean;
|
|
18
|
+
readonly maxLength?: number;
|
|
19
|
+
/**
|
|
20
|
+
* tab-indexがー1かどうか
|
|
21
|
+
*/
|
|
22
|
+
readonly excludeFromTabOrder?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface SingleLineTextFieldProps extends TextFieldBaseProps {
|
|
25
|
+
readonly autoHeight?: never;
|
|
26
|
+
readonly multiline?: false;
|
|
27
|
+
readonly rows?: never;
|
|
28
|
+
readonly type?: string;
|
|
29
|
+
readonly prefix?: ReactNode;
|
|
30
|
+
readonly suffix?: ReactNode;
|
|
31
|
+
}
|
|
32
|
+
export interface MultiLineTextFieldProps extends TextFieldBaseProps {
|
|
33
|
+
readonly autoHeight?: boolean;
|
|
34
|
+
readonly multiline: true;
|
|
35
|
+
readonly rows?: number;
|
|
36
|
+
readonly type?: never;
|
|
37
|
+
readonly prefix?: never;
|
|
38
|
+
readonly suffix?: never;
|
|
39
|
+
}
|
|
40
|
+
export declare type TextFieldProps = SingleLineTextFieldProps | MultiLineTextFieldProps;
|
|
41
|
+
declare type TextFieldElement = HTMLInputElement & HTMLTextAreaElement;
|
|
42
|
+
declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<TextFieldElement>>;
|
|
43
|
+
export default TextField;
|
|
44
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Story } from '../../_lib/compat';
|
|
3
|
-
import { MultiLineTextFieldProps, SingleLineTextFieldProps, TextFieldProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement & 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<TextFieldProps>> & {
|
|
19
|
-
args?: Partial<TextFieldProps> | undefined;
|
|
20
|
-
};
|
|
21
|
-
export declare const HasLabel: React.FunctionComponent<Partial<TextFieldProps>> & {
|
|
22
|
-
args?: Partial<TextFieldProps> | undefined;
|
|
23
|
-
};
|
|
24
|
-
export declare const HasCount: React.FunctionComponent<Partial<TextFieldProps>> & {
|
|
25
|
-
args?: Partial<TextFieldProps> | undefined;
|
|
26
|
-
};
|
|
27
|
-
export declare const HasAffix: Story<Partial<SingleLineTextFieldProps>>;
|
|
28
|
-
export declare const AutoHeight: Story<Partial<MultiLineTextFieldProps>>;
|
|
29
|
-
export declare const PrefixIcon: Story<Partial<SingleLineTextFieldProps>>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Story } from '../../_lib/compat';
|
|
3
|
+
import { MultiLineTextFieldProps, SingleLineTextFieldProps, TextFieldProps } from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement & 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<TextFieldProps>> & {
|
|
19
|
+
args?: Partial<TextFieldProps> | undefined;
|
|
20
|
+
};
|
|
21
|
+
export declare const HasLabel: React.FunctionComponent<Partial<TextFieldProps>> & {
|
|
22
|
+
args?: Partial<TextFieldProps> | undefined;
|
|
23
|
+
};
|
|
24
|
+
export declare const HasCount: React.FunctionComponent<Partial<TextFieldProps>> & {
|
|
25
|
+
args?: Partial<TextFieldProps> | undefined;
|
|
26
|
+
};
|
|
27
|
+
export declare const HasAffix: Story<Partial<SingleLineTextFieldProps>>;
|
|
28
|
+
export declare const AutoHeight: Story<Partial<MultiLineTextFieldProps>>;
|
|
29
|
+
export declare const PrefixIcon: Story<Partial<SingleLineTextFieldProps>>;
|
|
30
30
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=a11y.test.d.ts.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare type LinkProps = {
|
|
3
|
-
/**
|
|
4
|
-
* リンクのURL
|
|
5
|
-
*/
|
|
6
|
-
to: string;
|
|
7
|
-
} & Omit<React.ComponentPropsWithoutRef<'a'>, 'href'>;
|
|
8
|
-
export declare const DefaultLink: React.ForwardRefExoticComponent<{
|
|
9
|
-
/**
|
|
10
|
-
* リンクのURL
|
|
11
|
-
*/
|
|
12
|
-
to: string;
|
|
13
|
-
} & Omit<Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | "css" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement>>, "href"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
14
|
-
interface Components {
|
|
15
|
-
Link: React.ComponentType<React.ComponentPropsWithRef<typeof DefaultLink>>;
|
|
16
|
-
}
|
|
17
|
-
interface Props {
|
|
18
|
-
children: React.ReactNode;
|
|
19
|
-
components: Partial<Components>;
|
|
20
|
-
}
|
|
21
|
-
export default function ComponentAbstraction({ children, components }: Props): JSX.Element;
|
|
22
|
-
export declare function useComponentAbstraction(): Components;
|
|
23
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type LinkProps = {
|
|
3
|
+
/**
|
|
4
|
+
* リンクのURL
|
|
5
|
+
*/
|
|
6
|
+
to: string;
|
|
7
|
+
} & Omit<React.ComponentPropsWithoutRef<'a'>, 'href'>;
|
|
8
|
+
export declare const DefaultLink: React.ForwardRefExoticComponent<{
|
|
9
|
+
/**
|
|
10
|
+
* リンクのURL
|
|
11
|
+
*/
|
|
12
|
+
to: string;
|
|
13
|
+
} & Omit<Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | "css" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement>>, "href"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
14
|
+
interface Components {
|
|
15
|
+
Link: React.ComponentType<React.ComponentPropsWithRef<typeof DefaultLink>>;
|
|
16
|
+
}
|
|
17
|
+
interface Props {
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
components: Partial<Components>;
|
|
20
|
+
}
|
|
21
|
+
export default function ComponentAbstraction({ children, components }: Props): JSX.Element;
|
|
22
|
+
export declare function useComponentAbstraction(): Components;
|
|
23
|
+
export {};
|
|
24
24
|
//# sourceMappingURL=ComponentAbstraction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverlayProvider.d.ts","sourceRoot":"","sources":["../../src/core/OverlayProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SSRProvider } from '@react-aria/ssr';
|
|
1
|
+
export { SSRProvider } from '@react-aria/ssr';
|
|
2
2
|
//# sourceMappingURL=SSRProvider.d.ts.map
|