@charcoal-ui/react 1.0.0-alpha.1 → 2.0.0-alpha.1

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 (70) hide show
  1. package/README.md +0 -1
  2. package/dist/_lib/compat.d.ts +14 -0
  3. package/dist/_lib/compat.d.ts.map +1 -0
  4. package/dist/_lib/index.d.ts +26 -0
  5. package/dist/_lib/index.d.ts.map +1 -0
  6. package/dist/components/Button/index.d.ts +22 -0
  7. package/dist/components/Button/index.d.ts.map +1 -0
  8. package/dist/components/Button/index.story.d.ts +36 -0
  9. package/dist/components/Button/index.story.d.ts.map +1 -0
  10. package/dist/components/Clickable/index.d.ts +19 -0
  11. package/dist/components/Clickable/index.d.ts.map +1 -0
  12. package/dist/components/Clickable/index.story.d.ts +9 -0
  13. package/dist/components/Clickable/index.story.d.ts.map +1 -0
  14. package/dist/components/FieldLabel/index.d.ts +11 -0
  15. package/dist/components/FieldLabel/index.d.ts.map +1 -0
  16. package/dist/components/IconButton/index.d.ts +14 -0
  17. package/dist/components/IconButton/index.d.ts.map +1 -0
  18. package/dist/components/IconButton/index.story.d.ts +29 -0
  19. package/dist/components/IconButton/index.story.d.ts.map +1 -0
  20. package/dist/components/Radio/index.d.ts +24 -0
  21. package/dist/components/Radio/index.d.ts.map +1 -0
  22. package/dist/components/Radio/index.story.d.ts +34 -0
  23. package/dist/components/Radio/index.story.d.ts.map +1 -0
  24. package/dist/components/Radio/index.test.d.ts +2 -0
  25. package/dist/components/Radio/index.test.d.ts.map +1 -0
  26. package/dist/components/Select/context.d.ts +14 -0
  27. package/dist/components/Select/context.d.ts.map +1 -0
  28. package/dist/components/Select/index.d.ts +24 -0
  29. package/dist/components/Select/index.d.ts.map +1 -0
  30. package/dist/components/Select/index.story.d.ts +75 -0
  31. package/dist/components/Select/index.story.d.ts.map +1 -0
  32. package/dist/components/Select/index.test.d.ts +2 -0
  33. package/dist/components/Select/index.test.d.ts.map +1 -0
  34. package/dist/components/Switch/index.d.ts +16 -0
  35. package/dist/components/Switch/index.d.ts.map +1 -0
  36. package/dist/components/Switch/index.story.d.ts +14 -0
  37. package/dist/components/Switch/index.story.d.ts.map +1 -0
  38. package/dist/components/TextField/index.d.ts +41 -0
  39. package/dist/components/TextField/index.d.ts.map +1 -0
  40. package/dist/components/TextField/index.story.d.ts +29 -0
  41. package/dist/components/TextField/index.story.d.ts.map +1 -0
  42. package/dist/components/a11y.test.d.ts +2 -0
  43. package/dist/components/a11y.test.d.ts.map +1 -0
  44. package/dist/core/ComponentAbstraction.d.ts +24 -0
  45. package/dist/core/ComponentAbstraction.d.ts.map +1 -0
  46. package/dist/index.cjs +2 -0
  47. package/dist/index.cjs.map +1 -0
  48. package/dist/index.d.ts +9 -0
  49. package/dist/index.d.ts.map +1 -0
  50. package/dist/index.modern.js +347 -0
  51. package/dist/index.modern.js.map +1 -0
  52. package/dist/index.module.js +2 -0
  53. package/dist/index.module.js.map +1 -0
  54. package/dist/styled.d.ts +85 -0
  55. package/dist/styled.d.ts.map +1 -0
  56. package/package.json +12 -7
  57. package/src/_lib/compat.ts +1 -4
  58. package/src/components/IconButton/index.tsx +1 -0
  59. package/src/components/Radio/index.story.tsx +16 -17
  60. package/src/components/Radio/index.test.tsx +16 -18
  61. package/src/components/Radio/index.tsx +4 -7
  62. package/src/components/Select/context.ts +23 -0
  63. package/src/components/Select/index.story.tsx +153 -0
  64. package/src/components/Select/index.test.tsx +281 -0
  65. package/src/components/Select/index.tsx +210 -0
  66. package/src/components/TextField/index.story.tsx +10 -0
  67. package/src/components/TextField/index.tsx +105 -23
  68. package/src/components/a11y.test.tsx +33 -26
  69. package/src/index.ts +12 -1
  70. package/src/type.d.ts +1 -5
package/README.md CHANGED
@@ -15,4 +15,3 @@ yarn
15
15
  ```
16
16
  yarn add @charcoal-ui/react
17
17
  ```
18
-
@@ -0,0 +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
+ };
14
+ //# sourceMappingURL=compat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../src/_lib/compat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB;;;;;;;;GAQG;AACH,oBAAY,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,CAAC,CAAA;CAAE,CAAA"}
@@ -0,0 +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;
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/_lib/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,wBAAgB,WAAW,IAAI,KAAK,CAAA;AACpC;;;;;;;;;;;;;;;;GAgBG;AAGH,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAA"}
@@ -0,0 +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;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAkB,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE1E,aAAK,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAA;AAC1E,aAAK,IAAI,GAAG,GAAG,GAAG,GAAG,CAAA;AAErB,UAAU,WAAW;IACnB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,IAAI,EAAE,IAAI,CAAA;IACV;;OAEG;IACH,KAAK,EAAE,OAAO,CAAA;CACf;AAED,oBAAY,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,cAAc,CAAA;AAE/D,QAAA,MAAM,MAAM,sFAuBV,CAAA;AACF,eAAe,MAAM,CAAA"}
@@ -0,0 +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;
36
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.story.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiB,MAAM,OAAO,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAe,EAAE,WAAW,EAAE,MAAM,GAAG,CAAA;;;;;;;;;;;;;;;;;;;AAEvC,wBAiBC;AAQD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,WAAW,CAAyB,CAAA;AAEhE,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,WAAW,CAAyB,CAAA;AAKhE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,WAAW,CAAyB,CAAA;AAKnE,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,WAAW,CAAyB,CAAA;AAKhE,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,WAAW,CAAyB,CAAA;AAK/D,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,WAAW,CAAyB,CAAA;AAK9D,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,WAAW,CAAyB,CAAA;AAK9D,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAyB,CAAA;AAKjE,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,WAAW,CAAyB,CAAA;AAW7D,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,WAAW,CAAyB,CAAA;AAahE,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,WAAW,CAAuB,CAAA;AA8F5D,eAAO,MAAM,aAAa,SA5FQ,WAAW,gBA4FW,CAAA"}
@@ -0,0 +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;
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Clickable/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EACL,SAAS,EAEV,MAAM,iCAAiC,CAAA;AAGxC,UAAU,SAAS;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,UAAU,aAAa;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX;AAED,oBAAY,cAAc,GACtB,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,GACxE,CAAC,SAAS,GAAG,aAAa,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAA;AACvD,oBAAY,gBAAgB,GAAG,iBAAiB,GAAG,iBAAiB,CAAA;AAEpE,QAAA,MAAM,SAAS,yFAkBd,CAAA;AACD,eAAe,SAAS,CAAA"}
@@ -0,0 +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;
9
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Clickable/index.story.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;;;;;AAGzB,wBAGC;AAED,eAAO,MAAM,MAAM,mBAElB,CAAA;AAED,eAAO,MAAM,IAAI,mBAIhB,CAAA"}
@@ -0,0 +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;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FieldLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,eACf,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IACnD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAE3B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC/B;AAED,QAAA,MAAM,UAAU,0FAyBf,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -0,0 +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;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAkB,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAEvD,aAAK,OAAO,GAAG,SAAS,GAAG,SAAS,CAAA;AACpC,aAAK,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,CAAA;AAE5B,UAAU,WAAW;IACnB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAA;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,aAAa,CAAA;CACnC;AAED,oBAAY,eAAe,GAAG,WAAW,GAAG,cAAc,CAAA;AAE1D,QAAA,MAAM,UAAU,0FAYf,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import type { Story } from '../../_lib/compat';
3
+ import '@charcoal-ui/icons';
4
+ declare const _default: {
5
+ title: string;
6
+ component: React.ForwardRefExoticComponent<import(".").IconButtonProps & React.RefAttributes<import("../Clickable").ClickableElement>>;
7
+ argTypes: {
8
+ variant: {
9
+ control: {
10
+ type: string;
11
+ options: string[];
12
+ };
13
+ };
14
+ size: {
15
+ control: {
16
+ type: string;
17
+ options: string[];
18
+ };
19
+ };
20
+ };
21
+ };
22
+ export default _default;
23
+ declare type Props = {
24
+ variant?: 'Default' | 'Overlay';
25
+ size?: 'M' | 'S' | 'XS';
26
+ };
27
+ export declare const DefaultM: Story<Props>;
28
+ export declare const OverlayM: Story<Props>;
29
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,oBAAoB,CAAA;;;;;;;;;;;;;;;;;;;AAI3B,wBAiBC;AAED,aAAK,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"}
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ export declare type RadioProps = React.PropsWithChildren<{
3
+ value: string;
4
+ forceChecked?: boolean;
5
+ disabled?: boolean;
6
+ }>;
7
+ export default function Radio({ value, forceChecked, disabled, children, }: RadioProps): JSX.Element;
8
+ export declare const RadioInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
9
+ type: "radio";
10
+ } & {
11
+ hasError?: boolean | undefined;
12
+ }, "type">;
13
+ export declare type RadioGroupProps = React.PropsWithChildren<{
14
+ className?: string;
15
+ value?: string;
16
+ label: string;
17
+ name: string;
18
+ onChange(next: string): void;
19
+ disabled?: boolean;
20
+ readonly?: boolean;
21
+ hasError?: boolean;
22
+ }>;
23
+ export declare function RadioGroup({ className, value, label, name, onChange, disabled, readonly, hasError, children, }: RadioGroupProps): JSX.Element;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAA;AAMtD,oBAAY,UAAU,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC,CAAA;AAEF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,KAAK,EACL,YAAoB,EACpB,QAAgB,EAChB,QAAQ,GACT,EAAE,UAAU,eAwCZ;AAYD,eAAO,MAAM,UAAU;;;;UA2CtB,CAAA;AAMD,oBAAY,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,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC,CAAA;AA+BF,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,KAAK,EACL,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,EAAE,eAAe,eA8BjB"}
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import Radio from '.';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Radio;
6
+ argTypes: {
7
+ value: {
8
+ control: {
9
+ type: string;
10
+ };
11
+ options: string[];
12
+ };
13
+ };
14
+ args: {
15
+ hasError: boolean;
16
+ parentDisabled: boolean;
17
+ childDisabled: boolean;
18
+ forceChecked: boolean;
19
+ readonly: boolean;
20
+ };
21
+ };
22
+ export default _default;
23
+ interface Props {
24
+ value?: string;
25
+ hasError: boolean;
26
+ parentDisabled: boolean;
27
+ childDisabled: boolean;
28
+ forceChecked: boolean;
29
+ readonly: boolean;
30
+ }
31
+ export declare const Default: React.FunctionComponent<Partial<Props>> & {
32
+ args?: Partial<Props> | undefined;
33
+ };
34
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/index.story.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAqB,MAAM,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;AAKrC,wBAgBC;AAED,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,OAAO,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;CAClB;AA2CD,eAAO,MAAM,OAAO;;CAAoB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/index.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ declare type SelectGroupContext = {
2
+ name: string;
3
+ selected: string[];
4
+ disabled: boolean;
5
+ readonly: boolean;
6
+ hasError: boolean;
7
+ onChange: ({ value, selected }: {
8
+ value: string;
9
+ selected: boolean;
10
+ }) => void;
11
+ };
12
+ export declare const SelectGroupContext: import("react").Context<SelectGroupContext>;
13
+ export {};
14
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/Select/context.ts"],"names":[],"mappings":"AAEA,aAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,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,kBAAkB,6CAW7B,CAAA"}
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ export declare type SelectProps = React.PropsWithChildren<{
3
+ value: string;
4
+ forceChecked?: boolean;
5
+ disabled?: boolean;
6
+ variant?: 'default' | 'overlay';
7
+ onChange?: (payload: {
8
+ value: string;
9
+ selected: boolean;
10
+ }) => void;
11
+ }>;
12
+ export default function Select({ value, forceChecked, disabled, onChange, variant, children, }: SelectProps): JSX.Element;
13
+ export declare type SelectGroupProps = React.PropsWithChildren<{
14
+ className?: string;
15
+ name: string;
16
+ ariaLabel: string;
17
+ selected: string[];
18
+ onChange: (selected: string[]) => void;
19
+ disabled?: boolean;
20
+ readonly?: boolean;
21
+ hasError?: boolean;
22
+ }>;
23
+ export declare function SelectGroup({ className, name, ariaLabel, selected, onChange, disabled, readonly, hasError, children, }: SelectGroupProps): JSX.Element;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAA;AAQnE,oBAAY,WAAW,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAChD,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC/B,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAA;CACnE,CAAC,CAAA;AAEF,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,KAAK,EACL,YAAoB,EACpB,QAAgB,EAChB,QAAQ,EACR,OAAmB,EACnB,QAAQ,GACT,EAAE,WAAW,eAsDb;AAyED,oBAAY,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,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,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC,CAAA;AAEF,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAgB,EAChB,QAAgB,EAChB,QAAgB,EAChB,QAAQ,GACT,EAAE,gBAAgB,eAsClB"}
@@ -0,0 +1,75 @@
1
+ import React from 'react';
2
+ import { Story } from '../../_lib/compat';
3
+ import { default as Select } from '.';
4
+ declare const _default: {
5
+ title: string;
6
+ component: typeof Select;
7
+ argTypes: {
8
+ name: {
9
+ control: {
10
+ type: string;
11
+ };
12
+ };
13
+ ariaLabel: {
14
+ control: {
15
+ type: string;
16
+ };
17
+ };
18
+ selected: {
19
+ control: {
20
+ type: string;
21
+ };
22
+ };
23
+ firstOptionForceChecked: {
24
+ control: {
25
+ type: string;
26
+ };
27
+ };
28
+ disabled: {
29
+ control: {
30
+ type: string;
31
+ };
32
+ };
33
+ readonly: {
34
+ control: {
35
+ type: string;
36
+ };
37
+ };
38
+ hasError: {
39
+ control: {
40
+ type: string;
41
+ };
42
+ };
43
+ variant: {
44
+ control: {
45
+ type: string;
46
+ options: string[];
47
+ };
48
+ };
49
+ };
50
+ };
51
+ export default _default;
52
+ declare type Props = {
53
+ name: string;
54
+ ariaLabel: string;
55
+ selected: boolean;
56
+ firstOptionForceChecked: boolean;
57
+ onChange: (selected: string[]) => void;
58
+ disabled?: boolean;
59
+ readonly?: boolean;
60
+ hasError?: boolean;
61
+ variant?: 'default' | 'overlay';
62
+ };
63
+ export declare const Default: React.FunctionComponent<Props> & {
64
+ args?: Props | undefined;
65
+ };
66
+ declare type PlaygroundProps = {
67
+ name: string;
68
+ ariaLabel: string;
69
+ disabled?: boolean;
70
+ readonly?: boolean;
71
+ hasError?: boolean;
72
+ variant?: 'default' | 'overlay';
73
+ };
74
+ export declare const Playground: Story<PlaygroundProps>;
75
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEzC,OAAO,EAAe,OAAO,IAAI,MAAM,EAAE,MAAM,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElD,wBA8CC;AAED,aAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,uBAAuB,EAAE,OAAO,CAAA;IAChC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;CAChC,CAAA;AA8CD,eAAO,MAAM,OAAO;;CAAoB,CAAA;AAcxC,aAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,eAAe,CAY7C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +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;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA0B,MAAM,OAAO,CAAA;AAM9C,oBAAY,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;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,WAAW,eA8BxD"}
@@ -0,0 +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>;
14
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +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;AACzC,OAAO,MAAM,MAAM,GAAG,CAAA;;;;;AAEtB,wBAGC;AAED,UAAU,KAAK;IACb,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,KAAK,CAMjC,CAAA;AAOD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,KAAK,CASnC,CAAA"}
@@ -0,0 +1,41 @@
1
+ import React 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 showCount?: boolean;
9
+ readonly showLabel?: boolean;
10
+ readonly placeholder?: string;
11
+ readonly assistiveText?: string;
12
+ readonly disabled?: boolean;
13
+ readonly required?: boolean;
14
+ readonly invalid?: boolean;
15
+ readonly maxLength?: number;
16
+ /**
17
+ * tab-indexがー1かどうか
18
+ */
19
+ readonly excludeFromTabOrder?: boolean;
20
+ }
21
+ export interface SingleLineTextFieldProps extends TextFieldBaseProps {
22
+ readonly autoHeight?: never;
23
+ readonly multiline?: false;
24
+ readonly rows?: never;
25
+ readonly type?: string;
26
+ readonly prefix?: string;
27
+ readonly suffix?: string;
28
+ }
29
+ export interface MultiLineTextFieldProps extends TextFieldBaseProps {
30
+ readonly autoHeight?: boolean;
31
+ readonly multiline: true;
32
+ readonly rows?: number;
33
+ readonly type?: never;
34
+ readonly prefix?: never;
35
+ readonly suffix?: never;
36
+ }
37
+ export declare type TextFieldProps = SingleLineTextFieldProps | MultiLineTextFieldProps;
38
+ declare type TextFieldElement = HTMLInputElement & HTMLTextAreaElement;
39
+ declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<TextFieldElement>>;
40
+ export default TextField;
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAEvE,OAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAK3D,UAAU,kBACR,SAAQ,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC;IACpE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;IAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B;;OAEG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAA;CACvC;AAED,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB;IAClE,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAA;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,CAAA;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB;IACjE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAA;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAA;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAA;CACxB;AAED,oBAAY,cAAc,GAAG,wBAAwB,GAAG,uBAAuB,CAAA;AAC/E,aAAK,gBAAgB,GAAG,gBAAgB,GAAG,mBAAmB,CAAA;AAoB9D,QAAA,MAAM,SAAS,yFAQd,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,29 @@
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
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/index.story.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEzC,OAAkB,EAChB,uBAAuB,EACvB,wBAAwB,EACxB,cAAc,EACf,MAAM,GAAG,CAAA;;;;;;;;;;;;;;AAGV,wBAYC;AAsCD,eAAO,MAAM,OAAO;;CAAoB,CAAA;AAExC,eAAO,MAAM,QAAQ;;CAAoB,CAAA;AAOzC,eAAO,MAAM,QAAQ;;CAAoB,CAAA;AAMzC,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAE7D,CAAA;AAQD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAE9D,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=a11y.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"a11y.test.d.ts","sourceRoot":"","sources":["../../src/components/a11y.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +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 {};
24
+ //# sourceMappingURL=ComponentAbstraction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComponentAbstraction.d.ts","sourceRoot":"","sources":["../../src/core/ComponentAbstraction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,oBAAY,SAAS,GAAG;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX,GAAG,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAA;AAErD,eAAO,MAAM,WAAW;IANtB;;OAEG;QACC,MAAM;gOAWX,CAAA;AAED,UAAU,UAAU;IAClB,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,qBAAqB,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAC3E;AAQD,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,CAAA;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,KAAK,eAQ3E;AAED,wBAAgB,uBAAuB,eAEtC"}