@charcoal-ui/react 2.0.1 → 2.2.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.
Files changed (72) hide show
  1. package/dist/_lib/compat.d.ts +13 -13
  2. package/dist/_lib/index.d.ts +25 -25
  3. package/dist/components/Button/index.d.ts +21 -21
  4. package/dist/components/Button/index.story.d.ts +35 -35
  5. package/dist/components/Checkbox/index.d.ts +20 -20
  6. package/dist/components/Checkbox/index.story.d.ts +15 -15
  7. package/dist/components/Clickable/index.d.ts +18 -18
  8. package/dist/components/Clickable/index.story.d.ts +8 -8
  9. package/dist/components/DropdownSelector/Listbox.d.ts +9 -9
  10. package/dist/components/DropdownSelector/Popover.d.ts +9 -9
  11. package/dist/components/DropdownSelector/index.d.ts +31 -31
  12. package/dist/components/DropdownSelector/index.story.d.ts +21 -21
  13. package/dist/components/FieldLabel/index.d.ts +10 -10
  14. package/dist/components/Icon/index.d.ts +11 -11
  15. package/dist/components/Icon/index.story.d.ts +23 -23
  16. package/dist/components/IconButton/index.d.ts +13 -13
  17. package/dist/components/IconButton/index.story.d.ts +28 -28
  18. package/dist/components/LoadingSpinner/index.d.ts +14 -14
  19. package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
  20. package/dist/components/LoadingSpinner/index.story.d.ts +9 -9
  21. package/dist/components/Modal/ModalPlumbing.d.ts +4 -4
  22. package/dist/components/Modal/index.d.ts +41 -17
  23. package/dist/components/Modal/index.d.ts.map +1 -1
  24. package/dist/components/Modal/index.story.d.ts +32 -32
  25. package/dist/components/MultiSelect/context.d.ts +13 -13
  26. package/dist/components/MultiSelect/index.d.ts +23 -23
  27. package/dist/components/MultiSelect/index.story.d.ts +74 -74
  28. package/dist/components/MultiSelect/index.test.d.ts +1 -1
  29. package/dist/components/Radio/index.d.ts +23 -23
  30. package/dist/components/Radio/index.d.ts.map +1 -1
  31. package/dist/components/Radio/index.story.d.ts +33 -33
  32. package/dist/components/Radio/index.test.d.ts +1 -1
  33. package/dist/components/SegmentedControl/RadioGroupContext.d.ts +8 -8
  34. package/dist/components/SegmentedControl/index.d.ts +19 -19
  35. package/dist/components/SegmentedControl/index.story.d.ts +10 -10
  36. package/dist/components/Switch/index.d.ts +15 -15
  37. package/dist/components/Switch/index.story.d.ts +13 -13
  38. package/dist/components/TagItem/index.d.ts +25 -0
  39. package/dist/components/TagItem/index.d.ts.map +1 -0
  40. package/dist/components/TagItem/index.story.d.ts +26 -0
  41. package/dist/components/TagItem/index.story.d.ts.map +1 -0
  42. package/dist/components/TextField/index.d.ts +43 -43
  43. package/dist/components/TextField/index.story.d.ts +29 -29
  44. package/dist/components/a11y.test.d.ts +1 -1
  45. package/dist/core/ComponentAbstraction.d.ts +23 -23
  46. package/dist/core/OverlayProvider.d.ts +2 -0
  47. package/dist/core/OverlayProvider.d.ts.map +1 -0
  48. package/dist/core/SSRProvider.d.ts +1 -1
  49. package/dist/index.cjs +3341 -3297
  50. package/dist/index.cjs.map +1 -1
  51. package/dist/index.d.ts +18 -16
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +4409 -0
  54. package/dist/index.js.map +1 -0
  55. package/dist/styled.d.ts +92 -92
  56. package/package.json +16 -14
  57. package/src/components/Checkbox/index.tsx +1 -1
  58. package/src/components/DropdownSelector/Listbox.tsx +2 -1
  59. package/src/components/DropdownSelector/index.tsx +6 -2
  60. package/src/components/LoadingSpinner/index.tsx +7 -6
  61. package/src/components/Modal/index.tsx +24 -0
  62. package/src/components/MultiSelect/index.tsx +1 -1
  63. package/src/components/Radio/index.tsx +4 -3
  64. package/src/components/Switch/index.tsx +2 -1
  65. package/src/components/TagItem/index.story.tsx +188 -0
  66. package/src/components/TagItem/index.tsx +176 -0
  67. package/src/core/OverlayProvider.tsx +1 -0
  68. package/src/index.ts +2 -0
  69. package/dist/index.modern.js +0 -4685
  70. package/dist/index.modern.js.map +0 -1
  71. package/dist/index.module.js +0 -4371
  72. package/dist/index.module.js.map +0 -1
@@ -1,14 +1,14 @@
1
- import React from 'react';
2
- /**
3
- * import { Story } from '@storybook/react/types-6-0'
4
- *
5
- * をするとstyled-componentsが壊れるので代替品を作った
6
- *
7
- * エラー:
8
- * node_modules/@types/styled-components/ts3.7/index.d.ts
9
- * `Type alias 'Interpolation' circularly references itself. ts(2456)`
10
- */
11
- export declare type Story<P> = React.ComponentType<P> & {
12
- args?: P;
13
- };
1
+ import React from 'react';
2
+ /**
3
+ * import { Story } from '@storybook/react/types-6-0'
4
+ *
5
+ * をするとstyled-componentsが壊れるので代替品を作った
6
+ *
7
+ * エラー:
8
+ * node_modules/@types/styled-components/ts3.7/index.d.ts
9
+ * `Type alias 'Interpolation' circularly references itself. ts(2456)`
10
+ */
11
+ export declare type Story<P> = React.ComponentType<P> & {
12
+ args?: P;
13
+ };
14
14
  //# sourceMappingURL=compat.d.ts.map
@@ -1,26 +1,26 @@
1
- /**
2
- * 今後ポートされる予定の汎用的な関数群
3
- */
4
- /**
5
- * Function used to assert a given code path is unreachable
6
- */
7
- export declare function unreachable(): never;
8
- /**
9
- * Function used to assert a given code path is unreachable.
10
- * Very useful for ensuring switches are exhaustive:
11
- *
12
- * ```ts
13
- * switch (a.type) {
14
- * case Types.A:
15
- * case Types.B:
16
- * break
17
- * default:
18
- * unreachable(a) // will cause a build error if there was
19
- * // a Types.C that was not checked
20
- * }
21
- * ```
22
- *
23
- * @param value Value to be asserted as unreachable
24
- */
25
- export declare function unreachable(value: never): never;
1
+ /**
2
+ * 今後ポートされる予定の汎用的な関数群
3
+ */
4
+ /**
5
+ * Function used to assert a given code path is unreachable
6
+ */
7
+ export declare function unreachable(): never;
8
+ /**
9
+ * Function used to assert a given code path is unreachable.
10
+ * Very useful for ensuring switches are exhaustive:
11
+ *
12
+ * ```ts
13
+ * switch (a.type) {
14
+ * case Types.A:
15
+ * case Types.B:
16
+ * break
17
+ * default:
18
+ * unreachable(a) // will cause a build error if there was
19
+ * // a Types.C that was not checked
20
+ * }
21
+ * ```
22
+ *
23
+ * @param value Value to be asserted as unreachable
24
+ */
25
+ export declare function unreachable(value: never): never;
26
26
  //# sourceMappingURL=index.d.ts.map
@@ -1,22 +1,22 @@
1
- import React from 'react';
2
- import { ClickableElement, ClickableProps } from '../Clickable';
3
- declare type Variant = 'Primary' | 'Default' | 'Overlay' | 'Danger' | 'Navigation';
4
- declare type Size = 'S' | 'M';
5
- interface StyledProps {
6
- /**
7
- * ボタンのスタイル
8
- */
9
- variant: Variant;
10
- /**
11
- * ボタンのサイズ
12
- */
13
- size: Size;
14
- /**
15
- * 幅を最大まで広げて描画
16
- */
17
- fixed: boolean;
18
- }
19
- export declare type ButtonProps = Partial<StyledProps> & ClickableProps;
20
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<ClickableElement>>;
21
- export default Button;
1
+ import React from 'react';
2
+ import { ClickableElement, ClickableProps } from '../Clickable';
3
+ declare type Variant = 'Primary' | 'Default' | 'Overlay' | 'Danger' | 'Navigation';
4
+ declare type Size = 'S' | 'M';
5
+ interface StyledProps {
6
+ /**
7
+ * ボタンのスタイル
8
+ */
9
+ variant: Variant;
10
+ /**
11
+ * ボタンのサイズ
12
+ */
13
+ size: Size;
14
+ /**
15
+ * 幅を最大まで広げて描画
16
+ */
17
+ fixed: boolean;
18
+ }
19
+ export declare type ButtonProps = Partial<StyledProps> & ClickableProps;
20
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<ClickableElement>>;
21
+ export default Button;
22
22
  //# sourceMappingURL=index.d.ts.map
@@ -1,36 +1,36 @@
1
- import React from 'react';
2
- import { Story } from '../../_lib/compat';
3
- import { ClickableElement } from '../Clickable';
4
- import { ButtonProps } from '.';
5
- declare const _default: {
6
- title: string;
7
- component: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<ClickableElement>>;
8
- argTypes: {
9
- variant: {
10
- control: {
11
- type: string;
12
- options: string[];
13
- };
14
- };
15
- size: {
16
- control: {
17
- type: string;
18
- options: string[];
19
- };
20
- };
21
- };
22
- };
23
- export default _default;
24
- export declare const Default: Story<ButtonProps>;
25
- export declare const Primary: Story<ButtonProps>;
26
- export declare const Navigation: Story<ButtonProps>;
27
- export declare const Overlay: Story<ButtonProps>;
28
- export declare const Danger: Story<ButtonProps>;
29
- export declare const Small: Story<ButtonProps>;
30
- export declare const Fixed: Story<ButtonProps>;
31
- export declare const Disabled: Story<ButtonProps>;
32
- export declare const Link: Story<ButtonProps>;
33
- export declare const Nihongo: Story<ButtonProps>;
34
- export declare const Focus: Story<ButtonProps>;
35
- export declare const LayoutExample: (args: ButtonProps) => JSX.Element;
1
+ import React from 'react';
2
+ import { Story } from '../../_lib/compat';
3
+ import { ClickableElement } from '../Clickable';
4
+ import { ButtonProps } from '.';
5
+ declare const _default: {
6
+ title: string;
7
+ component: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<ClickableElement>>;
8
+ argTypes: {
9
+ variant: {
10
+ control: {
11
+ type: string;
12
+ options: string[];
13
+ };
14
+ };
15
+ size: {
16
+ control: {
17
+ type: string;
18
+ options: string[];
19
+ };
20
+ };
21
+ };
22
+ };
23
+ export default _default;
24
+ export declare const Default: Story<ButtonProps>;
25
+ export declare const Primary: Story<ButtonProps>;
26
+ export declare const Navigation: Story<ButtonProps>;
27
+ export declare const Overlay: Story<ButtonProps>;
28
+ export declare const Danger: Story<ButtonProps>;
29
+ export declare const Small: Story<ButtonProps>;
30
+ export declare const Fixed: Story<ButtonProps>;
31
+ export declare const Disabled: Story<ButtonProps>;
32
+ export declare const Link: Story<ButtonProps>;
33
+ export declare const Nihongo: Story<ButtonProps>;
34
+ export declare const Focus: Story<ButtonProps>;
35
+ export declare const LayoutExample: (args: ButtonProps) => JSX.Element;
36
36
  //# sourceMappingURL=index.story.d.ts.map
@@ -1,21 +1,21 @@
1
- import React from 'react';
2
- declare type CheckboxLabelProps = {
3
- children: React.ReactNode;
4
- } | {
5
- label: string;
6
- };
7
- export declare type CheckboxProps = CheckboxLabelProps & {
8
- readonly id?: string;
9
- readonly name?: string;
10
- readonly checked?: boolean;
11
- readonly defaultChecked?: boolean;
12
- readonly disabled?: boolean;
13
- readonly readonly?: boolean;
14
- readonly onClick?: () => void;
15
- readonly onChange?: (isSelected: boolean) => void;
16
- readonly onBlur?: () => void;
17
- readonly onFocus?: () => void;
18
- };
19
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>>;
20
- export default _default;
1
+ import React from 'react';
2
+ declare type CheckboxLabelProps = {
3
+ children: React.ReactNode;
4
+ } | {
5
+ label: string;
6
+ };
7
+ export declare type CheckboxProps = CheckboxLabelProps & {
8
+ readonly id?: string;
9
+ readonly name?: string;
10
+ readonly checked?: boolean;
11
+ readonly defaultChecked?: boolean;
12
+ readonly disabled?: boolean;
13
+ readonly readonly?: boolean;
14
+ readonly onClick?: () => void;
15
+ readonly onChange?: (isSelected: boolean) => void;
16
+ readonly onBlur?: () => void;
17
+ readonly onFocus?: () => void;
18
+ };
19
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>>;
20
+ export default _default;
21
21
  //# sourceMappingURL=index.d.ts.map
@@ -1,16 +1,16 @@
1
- import React from 'react';
2
- import { Story } from '../../_lib/compat';
3
- declare const _default: {
4
- title: string;
5
- component: React.MemoExoticComponent<React.ForwardRefExoticComponent<import(".").CheckboxProps & React.RefAttributes<HTMLInputElement>>>;
6
- };
7
- export default _default;
8
- declare type Props = {
9
- checked: boolean;
10
- defaultChecked: boolean;
11
- disabled: boolean;
12
- readonly: boolean;
13
- };
14
- export declare const Labelled: Story<Props>;
15
- export declare const Unlabelled: Story<Props>;
1
+ import React from 'react';
2
+ import { Story } from '../../_lib/compat';
3
+ declare const _default: {
4
+ title: string;
5
+ component: React.MemoExoticComponent<React.ForwardRefExoticComponent<import(".").CheckboxProps & React.RefAttributes<HTMLInputElement>>>;
6
+ };
7
+ export default _default;
8
+ declare type Props = {
9
+ checked: boolean;
10
+ defaultChecked: boolean;
11
+ disabled: boolean;
12
+ readonly: boolean;
13
+ };
14
+ export declare const Labelled: Story<Props>;
15
+ export declare const Unlabelled: Story<Props>;
16
16
  //# sourceMappingURL=index.story.d.ts.map
@@ -1,19 +1,19 @@
1
- import React from 'react';
2
- import { LinkProps } from '../../core/ComponentAbstraction';
3
- interface BaseProps {
4
- /**
5
- * クリックの無効化
6
- */
7
- disabled?: boolean;
8
- }
9
- interface LinkBaseProps {
10
- /**
11
- * リンクのURL。指定するとbuttonタグではなくaタグとして描画される
12
- */
13
- to: string;
14
- }
15
- export declare type ClickableProps = (BaseProps & Omit<React.ComponentPropsWithoutRef<'button'>, 'disabled'>) | (BaseProps & LinkBaseProps & Omit<LinkProps, 'to'>);
16
- export declare type ClickableElement = HTMLButtonElement & HTMLAnchorElement;
17
- declare const Clickable: React.ForwardRefExoticComponent<ClickableProps & React.RefAttributes<ClickableElement>>;
18
- export default Clickable;
1
+ import React from 'react';
2
+ import { LinkProps } from '../../core/ComponentAbstraction';
3
+ interface BaseProps {
4
+ /**
5
+ * クリックの無効化
6
+ */
7
+ disabled?: boolean;
8
+ }
9
+ interface LinkBaseProps {
10
+ /**
11
+ * リンクのURL。指定するとbuttonタグではなくaタグとして描画される
12
+ */
13
+ to: string;
14
+ }
15
+ export declare type ClickableProps = (BaseProps & Omit<React.ComponentPropsWithoutRef<'button'>, 'disabled'>) | (BaseProps & LinkBaseProps & Omit<LinkProps, 'to'>);
16
+ export declare type ClickableElement = HTMLButtonElement & HTMLAnchorElement;
17
+ declare const Clickable: React.ForwardRefExoticComponent<ClickableProps & React.RefAttributes<ClickableElement>>;
18
+ export default Clickable;
19
19
  //# sourceMappingURL=index.d.ts.map
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.ForwardRefExoticComponent<import(".").ClickableProps & React.RefAttributes<import(".").ClickableElement>>;
5
- };
6
- export default _default;
7
- export declare const Button: () => JSX.Element;
8
- export declare const Link: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.ForwardRefExoticComponent<import(".").ClickableProps & React.RefAttributes<import(".").ClickableElement>>;
5
+ };
6
+ export default _default;
7
+ export declare const Button: () => JSX.Element;
8
+ export declare const Link: () => JSX.Element;
9
9
  //# sourceMappingURL=index.story.d.ts.map
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
- import { ListProps, ListState } from 'react-stately';
3
- declare type ListMode = 'default' | 'separator';
4
- export declare type ListboxProps<T> = Omit<ListProps<T>, 'children'> & {
5
- state: ListState<T>;
6
- mode?: ListMode;
7
- };
8
- declare const _default: React.MemoExoticComponent<(<T>({ state, mode, ...props }: ListboxProps<T>) => JSX.Element)>;
9
- export default _default;
1
+ import React from 'react';
2
+ import { ListProps, ListState } from 'react-stately';
3
+ declare type ListMode = 'default' | 'separator';
4
+ export declare type ListboxProps<T> = Omit<ListProps<T>, 'children'> & {
5
+ state: ListState<T>;
6
+ mode?: ListMode;
7
+ };
8
+ declare const _default: React.MemoExoticComponent<(<T>({ state, mode, ...props }: ListboxProps<T>) => JSX.Element)>;
9
+ export default _default;
10
10
  //# sourceMappingURL=Listbox.d.ts.map
@@ -1,10 +1,10 @@
1
- import React, { PropsWithChildren, CSSProperties } from 'react';
2
- declare type Props = PropsWithChildren<{
3
- open?: boolean;
4
- onClose?: () => void;
5
- style?: CSSProperties;
6
- className?: string;
7
- }>;
8
- declare const _default: React.NamedExoticComponent<Props>;
9
- export default _default;
1
+ import React, { PropsWithChildren, CSSProperties } from 'react';
2
+ declare type Props = PropsWithChildren<{
3
+ open?: boolean;
4
+ onClose?: () => void;
5
+ style?: CSSProperties;
6
+ className?: string;
7
+ }>;
8
+ declare const _default: React.NamedExoticComponent<Props>;
9
+ export default _default;
10
10
  //# sourceMappingURL=Popover.d.ts.map
@@ -1,32 +1,32 @@
1
- import { Key } from 'react';
2
- import { ListboxProps } from './Listbox';
3
- import type { CollectionBase } from '@react-types/shared';
4
- import type { ReactNode } from 'react';
5
- declare type LabelProps = {
6
- readonly showLabel?: boolean;
7
- readonly label: string;
8
- readonly subLabel?: ReactNode;
9
- readonly requiredText?: string;
10
- };
11
- declare type Empty = Record<string, unknown>;
12
- export declare type DropdownSelectorProps<T extends Empty = Empty> = LabelProps & Readonly<CollectionBase<T>> & {
13
- readonly id?: string;
14
- readonly name?: string;
15
- readonly autoComplete?: string;
16
- readonly placeholder?: string;
17
- readonly className?: string;
18
- readonly disabled?: boolean;
19
- readonly required?: boolean;
20
- readonly invalid?: boolean;
21
- readonly assertiveText?: string;
22
- readonly value?: Key;
23
- readonly defaultValue?: Key;
24
- readonly open?: boolean;
25
- readonly onOpenChange?: (isOpen?: boolean) => void;
26
- readonly onChange?: (key: Key) => void;
27
- readonly mode?: ListboxProps<T>['mode'];
28
- };
29
- declare const DropdownSelector: <T extends Record<string, unknown>>({ open, className, label, requiredText, subLabel, assertiveText, autoComplete, invalid, disabled, required, showLabel, mode, ...props }: DropdownSelectorProps<T>) => JSX.Element;
30
- export default DropdownSelector;
31
- export declare const DropdownSelectorItem: <T>(props: import("react-stately").ItemProps<T>) => JSX.Element;
1
+ import { Key } from 'react';
2
+ import { ListboxProps } from './Listbox';
3
+ import type { CollectionBase } from '@react-types/shared';
4
+ import type { ReactNode } from 'react';
5
+ declare type LabelProps = {
6
+ readonly showLabel?: boolean;
7
+ readonly label: string;
8
+ readonly subLabel?: ReactNode;
9
+ readonly requiredText?: string;
10
+ };
11
+ declare type Empty = Record<string, unknown>;
12
+ export declare type DropdownSelectorProps<T extends Empty = Empty> = LabelProps & Readonly<CollectionBase<T>> & {
13
+ readonly id?: string;
14
+ readonly name?: string;
15
+ readonly autoComplete?: string;
16
+ readonly placeholder?: string;
17
+ readonly className?: string;
18
+ readonly disabled?: boolean;
19
+ readonly required?: boolean;
20
+ readonly invalid?: boolean;
21
+ readonly assertiveText?: string;
22
+ readonly value?: Key;
23
+ readonly defaultValue?: Key;
24
+ readonly open?: boolean;
25
+ readonly onOpenChange?: (isOpen?: boolean) => void;
26
+ readonly onChange?: (key: Key) => void;
27
+ readonly mode?: ListboxProps<T>['mode'];
28
+ };
29
+ declare const DropdownSelector: <T extends Record<string, unknown>>({ open, className, label, requiredText, subLabel, assertiveText, autoComplete, invalid, disabled, required, showLabel, mode, ...props }: DropdownSelectorProps<T>) => JSX.Element;
30
+ export default DropdownSelector;
31
+ export declare const DropdownSelectorItem: <T>(props: import("react-stately").ItemProps<T>) => JSX.Element;
32
32
  //# sourceMappingURL=index.d.ts.map
@@ -1,22 +1,22 @@
1
- import { DropdownSelectorProps } from '.';
2
- import { Story } from '../../_lib/compat';
3
- declare const _default: {
4
- title: string;
5
- component: <T extends Record<string, unknown>>({ open, className, label, requiredText, subLabel, assertiveText, autoComplete, invalid, disabled, required, showLabel, mode, ...props }: DropdownSelectorProps<T>) => JSX.Element;
6
- };
7
- export default _default;
8
- declare type Props = Omit<DropdownSelectorProps, 'subLabel' | 'children' | 'onOpenChange'>;
9
- export declare const Default: Story<Props>;
10
- declare type HasLabelProps = {
11
- disabled?: boolean;
12
- };
13
- export declare const HasLabel: Story<HasLabelProps>;
14
- declare type WithSeparatorProps = {
15
- mode: 'default' | 'separator';
16
- };
17
- export declare const WithSeparator: Story<WithSeparatorProps>;
18
- declare type InvalidProps = {
19
- disabled?: boolean;
20
- };
21
- export declare const Invalid: Story<InvalidProps>;
1
+ import { DropdownSelectorProps } from '.';
2
+ import { Story } from '../../_lib/compat';
3
+ declare const _default: {
4
+ title: string;
5
+ component: <T extends Record<string, unknown>>({ open, className, label, requiredText, subLabel, assertiveText, autoComplete, invalid, disabled, required, showLabel, mode, ...props }: DropdownSelectorProps<T>) => JSX.Element;
6
+ };
7
+ export default _default;
8
+ declare type Props = Omit<DropdownSelectorProps, 'subLabel' | 'children' | 'onOpenChange'>;
9
+ export declare const Default: Story<Props>;
10
+ declare type HasLabelProps = {
11
+ disabled?: boolean;
12
+ };
13
+ export declare const HasLabel: Story<HasLabelProps>;
14
+ declare type WithSeparatorProps = {
15
+ mode: 'default' | 'separator';
16
+ };
17
+ export declare const WithSeparator: Story<WithSeparatorProps>;
18
+ declare type InvalidProps = {
19
+ disabled?: boolean;
20
+ };
21
+ export declare const Invalid: Story<InvalidProps>;
22
22
  //# sourceMappingURL=index.story.d.ts.map
@@ -1,11 +1,11 @@
1
- import React from 'react';
2
- export interface FieldLabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
3
- readonly className?: string;
4
- readonly label: string;
5
- readonly subLabel?: React.ReactNode;
6
- readonly required?: boolean;
7
- readonly requiredText?: string;
8
- }
9
- declare const FieldLabel: React.ForwardRefExoticComponent<FieldLabelProps & React.RefAttributes<HTMLLabelElement>>;
10
- export default FieldLabel;
1
+ import React from 'react';
2
+ export interface FieldLabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
3
+ readonly className?: string;
4
+ readonly label: string;
5
+ readonly subLabel?: React.ReactNode;
6
+ readonly required?: boolean;
7
+ readonly requiredText?: string;
8
+ }
9
+ declare const FieldLabel: React.ForwardRefExoticComponent<FieldLabelProps & React.RefAttributes<HTMLLabelElement>>;
10
+ export default FieldLabel;
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1,12 +1,12 @@
1
- import React from 'react';
2
- import '@charcoal-ui/icons';
3
- import type { PixivIcon, Props } from '@charcoal-ui/icons';
4
- export interface OwnProps {
5
- unsafeNonGuidelineScale?: number;
6
- className?: string;
7
- }
8
- export interface IconProps extends OwnProps, React.PropsWithoutRef<Omit<Props, 'class' | 'unsafe-non-guideline-scale' | 'css'>> {
9
- }
10
- declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<PixivIcon>>;
11
- export default Icon;
1
+ import React from 'react';
2
+ import '@charcoal-ui/icons';
3
+ import type { PixivIcon, Props } from '@charcoal-ui/icons';
4
+ export interface OwnProps {
5
+ unsafeNonGuidelineScale?: number;
6
+ className?: string;
7
+ }
8
+ export interface IconProps extends OwnProps, React.PropsWithoutRef<Omit<Props, 'class' | 'unsafe-non-guideline-scale' | 'css'>> {
9
+ }
10
+ declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<PixivIcon>>;
11
+ export default Icon;
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1,24 +1,24 @@
1
- import React from 'react';
2
- import { IconProps } from '.';
3
- import { Story } from '../../_lib/compat';
4
- declare const _default: {
5
- title: string;
6
- component: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<import("@charcoal-ui/icons").PixivIcon>>;
7
- argTypes: {
8
- name: {
9
- control: {
10
- type: string;
11
- options: ("16/Add" | "16/ArrowDown" | "16/Artwork" | "16/Back" | "16/Book" | "16/BookmarkOff" | "16/BookmarkOn" | "16/Check" | "16/Comment" | "16/Dot" | "16/Error" | "16/Filter" | "16/ImageResponse" | "16/Info" | "16/Like" | "16/Menu" | "16/More" | "16/Pencil" | "16/Question" | "16/Ranking" | "16/Remove" | "16/Search" | "16/Smile" | "16/Speaker" | "16/View" | "24/Add" | "24/AddImage" | "24/AddModel" | "24/AddPeople" | "24/AddRubi" | "24/AddText" | "24/Alart" | "24/Announcement" | "24/Ar" | "24/Archive" | "24/ArrowDown" | "24/ArrowUp" | "24/Binet" | "24/Body" | "24/BodyEdit" | "24/Book" | "24/BringBackward" | "24/BringForward" | "24/Calendar" | "24/Camera" | "24/CameraVideo" | "24/ChangeCharactor" | "24/ChatBot" | "24/Check" | "24/ChromaticAberration" | "24/Close" | "24/Codes" | "24/Collapse" | "24/CommentFill" | "24/CommentOutline" | "24/Contest" | "24/Contrast" | "24/Description" | "24/DeviceRotation" | "24/Discovery" | "24/Dot" | "24/DotAlt" | "24/Down" | "24/DownloadAlt" | "24/Duplicate" | "24/Dust" | "24/Emoji" | "24/Error" | "24/ErrorOctagon" | "24/Events" | "24/Expand" | "24/FaceEdit" | "24/Fashion" | "24/Feed" | "24/File" | "24/Filter" | "24/Flare" | "24/FormatAlignCenter" | "24/FormatAlignLeft" | "24/FormatAlignRight" | "24/FormatColorFill" | "24/FormatColorFillNoColor" | "24/FormatFontFamily" | "24/FormatFontSize" | "24/FormatLetterSpacing" | "24/FormatLineSpacing" | "24/Fov" | "24/FrameEffect" | "24/FrameSize" | "24/Gift" | "24/Glow" | "24/Groups" | "24/HairEdit" | "24/Hashtag" | "24/Hide" | "24/Home" | "24/Hue" | "24/Idea" | "24/Image" | "24/ImageAlt" | "24/ImageHidden" | "24/ImageReplace" | "24/Images" | "24/ImgContain" | "24/ImgCover" | "24/Index" | "24/Info" | "24/Invalid" | "24/Invoice" | "24/ItemRemove" | "24/LatestWorks" | "24/LikeOff" | "24/LikeOn" | "24/Link" | "24/LockLock" | "24/LockUnlock" | "24/Logout" | "24/Manga" | "24/Menu" | "24/Message" | "24/Microphone" | "24/MobilePhone" | "24/Move1" | "24/Next" | "24/NoImage" | "24/Notification" | "24/NotificationOff" | "24/Novels" | "24/OpenInNew" | "24/Options" | "24/OptionsAlt" | "24/Overlay" | "24/Palette" | "24/Pause" | "24/PauseAlt" | "24/Pencil" | "24/PencilDraw" | "24/PencilLive" | "24/PencilText" | "24/Person" | "24/Play" | "24/Pose" | "24/Prev" | "24/Projects" | "24/PullDown" | "24/PullUp" | "24/Question" | "24/QuestionOutline" | "24/Ranking" | "24/ReadHorizontalLeft" | "24/ReadHorizontalRight" | "24/ReadVertical" | "24/Reload" | "24/ReloadLoop" | "24/Reorder" | "24/Roll" | "24/Rotate90DegreesC" | "24/Rotate90DegreesCc" | "24/RotateRight" | "24/Saturation" | "24/Save" | "24/Search" | "24/Send" | "24/Services" | "24/Set" | "24/Settings" | "24/ShareAndroid" | "24/ShareIos" | "24/Shopping" | "24/Show" | "24/ShowOutline" | "24/Shutter" | "24/Star" | "24/Subtract" | "24/Sun" | "24/Temperature" | "24/Text" | "24/Trash" | "24/TrashAlt" | "24/Up" | "24/Upload" | "24/UploadAlt" | "24/Usagi" | "24/UsagiAlt" | "24/Users" | "24/Video" | "24/ViewGrid2Columns" | "24/ViewGrid3Columns" | "24/ViewList" | "24/Warning" | "32/BookmarkOff" | "32/BookmarkOn" | "32/Camera" | "32/Close" | "32/Collapse" | "32/CommentOff" | "32/CommentOn" | "32/Delete" | "32/Dot" | "32/Edit" | "32/Expand" | "32/Gift" | "32/Home" | "32/HorizontalWriting" | "32/Index" | "32/LikeOff" | "32/LikeOn" | "32/LikeOnPrivate" | "32/Message" | "32/Next" | "32/Notification" | "32/NotificationOff" | "32/NovelViewerSettings" | "32/Pan" | "32/Prev" | "32/PullDown" | "32/PullUp" | "32/RollHorizontal" | "32/RollVertical" | "32/SansSerif" | "32/Serif" | "32/ShareAndroid" | "32/ShareIos" | "32/Shopping" | "32/Upload" | "32/User" | "32/VerticalWriting" | "32/ZoomIn" | "Inline/Add" | "Inline/BookmarkOff" | "Inline/BookmarkOn" | "Inline/Breadcrumbs" | "Inline/Check" | "Inline/Comment" | "Inline/ContextMenu" | "Inline/External" | "Inline/Filter" | "Inline/Folder" | "Inline/ImageResponse" | "Inline/Images" | "Inline/Like" | "Inline/LikeOff" | "Inline/List" | "Inline/Location" | "Inline/Lock" | "Inline/More" | "Inline/Nextworks" | "Inline/OpenInNew" | "Inline/Pencil" | "Inline/Remove" | "Inline/Smile" | "Inline/SmileOn" | "Inline/Users" | "Inline/View" | "Inline/ViewOutline")[];
12
- };
13
- };
14
- scale: {
15
- control: {
16
- type: string;
17
- options: number[];
18
- };
19
- };
20
- };
21
- };
22
- export default _default;
23
- export declare const Default: Story<IconProps>;
1
+ import React from 'react';
2
+ import { IconProps } from '.';
3
+ import { Story } from '../../_lib/compat';
4
+ declare const _default: {
5
+ title: string;
6
+ component: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<import("@charcoal-ui/icons").PixivIcon>>;
7
+ argTypes: {
8
+ name: {
9
+ control: {
10
+ type: string;
11
+ options: ("16/Add" | "16/ArrowDown" | "16/Artwork" | "16/Back" | "16/Book" | "16/BookmarkOff" | "16/BookmarkOn" | "16/Check" | "16/Comment" | "16/Dot" | "16/Error" | "16/Filter" | "16/ImageResponse" | "16/Info" | "16/Like" | "16/Menu" | "16/More" | "16/Pencil" | "16/Question" | "16/Ranking" | "16/Remove" | "16/Search" | "16/Smile" | "16/Speaker" | "16/View" | "24/Add" | "24/AddImage" | "24/AddModel" | "24/AddPeople" | "24/AddRubi" | "24/AddText" | "24/Alart" | "24/Announcement" | "24/Ar" | "24/Archive" | "24/ArrowDown" | "24/ArrowUp" | "24/Binet" | "24/Body" | "24/BodyEdit" | "24/Book" | "24/BringBackward" | "24/BringForward" | "24/Calendar" | "24/Camera" | "24/CameraVideo" | "24/ChangeCharactor" | "24/ChatBot" | "24/Check" | "24/ChromaticAberration" | "24/Close" | "24/Codes" | "24/Collapse" | "24/CommentFill" | "24/CommentOutline" | "24/Contest" | "24/Contrast" | "24/Description" | "24/DeviceRotation" | "24/Discovery" | "24/Dot" | "24/DotAlt" | "24/Down" | "24/DownloadAlt" | "24/Duplicate" | "24/Dust" | "24/Emoji" | "24/Error" | "24/ErrorOctagon" | "24/Events" | "24/Expand" | "24/FaceEdit" | "24/Fashion" | "24/Feed" | "24/File" | "24/Filter" | "24/Flare" | "24/FormatAlignCenter" | "24/FormatAlignLeft" | "24/FormatAlignRight" | "24/FormatColorFill" | "24/FormatColorFillNoColor" | "24/FormatFontFamily" | "24/FormatFontSize" | "24/FormatLetterSpacing" | "24/FormatLineSpacing" | "24/Fov" | "24/FrameEffect" | "24/FrameSize" | "24/Gift" | "24/Glow" | "24/Groups" | "24/HairEdit" | "24/Hashtag" | "24/Hide" | "24/Home" | "24/Hue" | "24/Idea" | "24/Image" | "24/ImageAlt" | "24/ImageHidden" | "24/ImageReplace" | "24/Images" | "24/ImgContain" | "24/ImgCover" | "24/Index" | "24/Info" | "24/Invalid" | "24/Invoice" | "24/ItemRemove" | "24/LatestWorks" | "24/LikeOff" | "24/LikeOn" | "24/Link" | "24/LockLock" | "24/LockUnlock" | "24/Logout" | "24/Manga" | "24/Menu" | "24/Message" | "24/Microphone" | "24/MobilePhone" | "24/Move1" | "24/Next" | "24/NoImage" | "24/Notification" | "24/NotificationOff" | "24/Novels" | "24/OpenInNew" | "24/Options" | "24/OptionsAlt" | "24/Overlay" | "24/Palette" | "24/Pause" | "24/PauseAlt" | "24/Pencil" | "24/PencilDraw" | "24/PencilLive" | "24/PencilText" | "24/Person" | "24/Play" | "24/Pose" | "24/Prev" | "24/Projects" | "24/PullDown" | "24/PullUp" | "24/Question" | "24/QuestionOutline" | "24/Ranking" | "24/ReadHorizontalLeft" | "24/ReadHorizontalRight" | "24/ReadVertical" | "24/Reload" | "24/ReloadLoop" | "24/Reorder" | "24/Roll" | "24/Rotate90DegreesC" | "24/Rotate90DegreesCc" | "24/RotateRight" | "24/Saturation" | "24/Save" | "24/Search" | "24/Send" | "24/Services" | "24/Set" | "24/Settings" | "24/ShareAndroid" | "24/ShareIos" | "24/Shopping" | "24/Show" | "24/ShowOutline" | "24/Shutter" | "24/Star" | "24/Subtract" | "24/Sun" | "24/Temperature" | "24/Text" | "24/Trash" | "24/TrashAlt" | "24/Up" | "24/Upload" | "24/UploadAlt" | "24/Usagi" | "24/UsagiAlt" | "24/Users" | "24/Video" | "24/ViewGrid2Columns" | "24/ViewGrid3Columns" | "24/ViewList" | "24/Warning" | "32/BookmarkOff" | "32/BookmarkOn" | "32/Camera" | "32/Close" | "32/Collapse" | "32/CommentOff" | "32/CommentOn" | "32/Delete" | "32/Dot" | "32/Edit" | "32/Expand" | "32/Gift" | "32/Home" | "32/HorizontalWriting" | "32/Index" | "32/LikeOff" | "32/LikeOn" | "32/LikeOnPrivate" | "32/Message" | "32/Next" | "32/Notification" | "32/NotificationOff" | "32/NovelViewerSettings" | "32/Pan" | "32/Prev" | "32/PullDown" | "32/PullUp" | "32/RollHorizontal" | "32/RollVertical" | "32/SansSerif" | "32/Serif" | "32/ShareAndroid" | "32/ShareIos" | "32/Shopping" | "32/Upload" | "32/User" | "32/VerticalWriting" | "32/ZoomIn" | "Inline/Add" | "Inline/BookmarkOff" | "Inline/BookmarkOn" | "Inline/Breadcrumbs" | "Inline/Check" | "Inline/Comment" | "Inline/ContextMenu" | "Inline/External" | "Inline/Filter" | "Inline/Folder" | "Inline/ImageResponse" | "Inline/Images" | "Inline/Like" | "Inline/LikeOff" | "Inline/List" | "Inline/Location" | "Inline/Lock" | "Inline/More" | "Inline/Nextworks" | "Inline/OpenInNew" | "Inline/Pencil" | "Inline/Remove" | "Inline/Smile" | "Inline/SmileOn" | "Inline/Users" | "Inline/View" | "Inline/ViewOutline")[];
12
+ };
13
+ };
14
+ scale: {
15
+ control: {
16
+ type: string;
17
+ options: number[];
18
+ };
19
+ };
20
+ };
21
+ };
22
+ export default _default;
23
+ export declare const Default: Story<IconProps>;
24
24
  //# sourceMappingURL=index.story.d.ts.map
@@ -1,14 +1,14 @@
1
- import React from 'react';
2
- import { ClickableElement, ClickableProps } from '../Clickable';
3
- import type { KnownIconType } from '@charcoal-ui/icons';
4
- declare type Variant = 'Default' | 'Overlay';
5
- declare type Size = 'XS' | 'S' | 'M';
6
- interface StyledProps {
7
- readonly variant?: Variant;
8
- readonly size?: Size;
9
- readonly icon: keyof KnownIconType;
10
- }
11
- export declare type IconButtonProps = StyledProps & ClickableProps;
12
- declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<ClickableElement>>;
13
- export default IconButton;
1
+ import React from 'react';
2
+ import { ClickableElement, ClickableProps } from '../Clickable';
3
+ import type { KnownIconType } from '@charcoal-ui/icons';
4
+ declare type Variant = 'Default' | 'Overlay';
5
+ declare type Size = 'XS' | 'S' | 'M';
6
+ interface StyledProps {
7
+ readonly variant?: Variant;
8
+ readonly size?: Size;
9
+ readonly icon: keyof KnownIconType;
10
+ }
11
+ export declare type IconButtonProps = StyledProps & ClickableProps;
12
+ declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<ClickableElement>>;
13
+ export default IconButton;
14
14
  //# sourceMappingURL=index.d.ts.map