@charcoal-ui/react-sandbox 1.0.0-alpha.1 → 1.0.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 (85) hide show
  1. package/README.md +0 -1
  2. package/dist/_lib/compat.d.ts +15 -0
  3. package/dist/_lib/compat.d.ts.map +1 -0
  4. package/dist/components/Carousel/index.d.ts +39 -0
  5. package/dist/components/Carousel/index.d.ts.map +1 -0
  6. package/dist/components/Carousel/index.story.d.ts +7 -0
  7. package/dist/components/Carousel/index.story.d.ts.map +1 -0
  8. package/dist/components/CarouselButton/index.d.ts +21 -0
  9. package/dist/components/CarouselButton/index.d.ts.map +1 -0
  10. package/dist/components/CarouselButton/index.story.d.ts +10 -0
  11. package/dist/components/CarouselButton/index.story.d.ts.map +1 -0
  12. package/dist/components/Filter/index.d.ts +20 -0
  13. package/dist/components/Filter/index.d.ts.map +1 -0
  14. package/dist/components/Filter/index.story.d.ts +9 -0
  15. package/dist/components/Filter/index.story.d.ts.map +1 -0
  16. package/dist/components/HintText/index.d.ts +10 -0
  17. package/dist/components/HintText/index.d.ts.map +1 -0
  18. package/dist/components/HintText/index.story.d.ts +12 -0
  19. package/dist/components/HintText/index.story.d.ts.map +1 -0
  20. package/dist/components/Layout/index.d.ts +68 -0
  21. package/dist/components/Layout/index.d.ts.map +1 -0
  22. package/dist/components/Layout/index.story.d.ts +14 -0
  23. package/dist/components/Layout/index.story.d.ts.map +1 -0
  24. package/dist/components/LeftMenu/index.d.ts +12 -0
  25. package/dist/components/LeftMenu/index.d.ts.map +1 -0
  26. package/dist/components/MenuListItem/index.d.ts +35 -0
  27. package/dist/components/MenuListItem/index.d.ts.map +1 -0
  28. package/dist/components/MenuListItem/index.story.d.ts +18 -0
  29. package/dist/components/MenuListItem/index.story.d.ts.map +1 -0
  30. package/dist/components/Pager/index.d.ts +15 -0
  31. package/dist/components/Pager/index.d.ts.map +1 -0
  32. package/dist/components/Pager/index.story.d.ts +32 -0
  33. package/dist/components/Pager/index.story.d.ts.map +1 -0
  34. package/dist/components/Spinner/index.d.ts +15 -0
  35. package/dist/components/Spinner/index.d.ts.map +1 -0
  36. package/dist/components/Spinner/index.story.d.ts +10 -0
  37. package/dist/components/Spinner/index.story.d.ts.map +1 -0
  38. package/dist/components/SwitchCheckbox/index.d.ts +9 -0
  39. package/dist/components/SwitchCheckbox/index.d.ts.map +1 -0
  40. package/dist/components/SwitchCheckbox/index.story.d.ts +11 -0
  41. package/dist/components/SwitchCheckbox/index.story.d.ts.map +1 -0
  42. package/dist/components/TextEllipsis/helper.d.ts +4 -0
  43. package/dist/components/TextEllipsis/helper.d.ts.map +1 -0
  44. package/dist/components/TextEllipsis/index.d.ts +11 -0
  45. package/dist/components/TextEllipsis/index.d.ts.map +1 -0
  46. package/dist/components/TextEllipsis/index.story.d.ts +9 -0
  47. package/dist/components/TextEllipsis/index.story.d.ts.map +1 -0
  48. package/dist/components/WithIcon/index.d.ts +28 -0
  49. package/dist/components/WithIcon/index.d.ts.map +1 -0
  50. package/dist/components/WithIcon/index.story.d.ts +15 -0
  51. package/dist/components/WithIcon/index.story.d.ts.map +1 -0
  52. package/dist/components/icons/Base.d.ts +16 -0
  53. package/dist/components/icons/Base.d.ts.map +1 -0
  54. package/dist/components/icons/DotsIcon.d.ts +12 -0
  55. package/dist/components/icons/DotsIcon.d.ts.map +1 -0
  56. package/dist/components/icons/InfoIcon.d.ts +2 -0
  57. package/dist/components/icons/InfoIcon.d.ts.map +1 -0
  58. package/dist/components/icons/NextIcon.d.ts +12 -0
  59. package/dist/components/icons/NextIcon.d.ts.map +1 -0
  60. package/dist/components/icons/WedgeIcon.d.ts +20 -0
  61. package/dist/components/icons/WedgeIcon.d.ts.map +1 -0
  62. package/dist/foundation/contants.d.ts +4 -0
  63. package/dist/foundation/contants.d.ts.map +1 -0
  64. package/dist/foundation/hooks.d.ts +29 -0
  65. package/dist/foundation/hooks.d.ts.map +1 -0
  66. package/dist/foundation/support.d.ts +3 -0
  67. package/dist/foundation/support.d.ts.map +1 -0
  68. package/dist/foundation/utils.d.ts +23 -0
  69. package/dist/foundation/utils.d.ts.map +1 -0
  70. package/dist/index.cjs +2 -0
  71. package/dist/index.cjs.map +1 -0
  72. package/dist/index.d.ts +15 -0
  73. package/dist/index.d.ts.map +1 -0
  74. package/dist/index.modern.js +686 -0
  75. package/dist/index.modern.js.map +1 -0
  76. package/dist/index.module.js +2 -0
  77. package/dist/index.module.js.map +1 -0
  78. package/dist/misc/storybook-helper.d.ts +3 -0
  79. package/dist/misc/storybook-helper.d.ts.map +1 -0
  80. package/dist/styled.d.ts +83 -0
  81. package/dist/styled.d.ts.map +1 -0
  82. package/package.json +8 -8
  83. package/src/components/Layout/index.tsx +5 -2
  84. package/src/foundation/contants.ts +8 -3
  85. package/src/type.d.ts +3 -2
package/README.md CHANGED
@@ -15,4 +15,3 @@ yarn
15
15
  ```
16
16
  yarn add @charcoal-ui/react-sandbox
17
17
  ```
18
-
@@ -0,0 +1,15 @@
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 interface Story<P> {
12
+ (args: P): React.ReactNode;
13
+ args?: P;
14
+ }
15
+ //# 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,MAAM,WAAW,KAAK,CAAC,CAAC;IACtB,CAAC,IAAI,EAAE,CAAC,GAAG,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,CAAC,EAAE,CAAC,CAAA;CACT"}
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ export declare const GRADIENT_WIDTH = 72;
3
+ /**
4
+ * カルーセル系のスクロール量の定数
5
+ *
6
+ * @example
7
+ * const scrollAmount = containerElm.clientWidth * SCROLL_AMOUNT_COEF
8
+ */
9
+ export declare const SCROLL_AMOUNT_COEF = 0.75;
10
+ interface ScrollProps {
11
+ align?: 'center' | 'left' | 'right';
12
+ offset?: number;
13
+ }
14
+ export interface CarouselBaseAppearanceProps {
15
+ buttonOffset?: number;
16
+ buttonPadding?: number;
17
+ bottomOffset?: number;
18
+ defaultScroll?: ScrollProps;
19
+ }
20
+ export declare type CarouselGradientProps = {
21
+ hasGradient?: false;
22
+ } | {
23
+ hasGradient: true;
24
+ fadeInGradient?: boolean;
25
+ };
26
+ declare type CarouselAppearanceProps = CarouselBaseAppearanceProps & CarouselGradientProps;
27
+ declare type Props = CarouselAppearanceProps & {
28
+ onScroll?: (left: number) => void;
29
+ onResize?: (width: number) => void;
30
+ children: React.ReactNode;
31
+ centerItems?: boolean;
32
+ onScrollStateChange?: (canScroll: boolean) => void;
33
+ };
34
+ export interface CarouselHandlerRef {
35
+ resetScroll(): void;
36
+ }
37
+ export default function Carousel({ buttonOffset, buttonPadding, bottomOffset, defaultScroll: { align, offset: scrollOffset }, onScroll, onResize, children, centerItems, onScrollStateChange, ...options }: Props): JSX.Element;
38
+ export {};
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAA;AAOd,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,OAAO,CAAA;AAEtC,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;IACnC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,2BAA2B;IAC1C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,WAAW,CAAA;CAC5B;AAED,oBAAY,qBAAqB,GAC7B;IAAE,WAAW,CAAC,EAAE,KAAK,CAAA;CAAE,GACvB;IACE,WAAW,EAAE,IAAI,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAEL,aAAK,uBAAuB,GAAG,2BAA2B,GACxD,qBAAqB,CAAA;AAEvB,aAAK,KAAK,GAAG,uBAAuB,GAAG;IACrC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;CACnD,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,IAAI,IAAI,CAAA;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,YAAgB,EAChB,aAAkB,EAClB,YAAgB,EAChB,aAAa,EAAE,EAAE,KAAc,EAAE,MAAM,EAAE,YAAgB,EAAO,EAChE,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,mBAAmB,EACnB,GAAG,OAAO,EACX,EAAE,KAAK,eAoOP"}
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ title: string;
3
+ decorators: ((...args: any) => any)[];
4
+ };
5
+ export default _default;
6
+ export declare const carousel: () => JSX.Element;
7
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/index.story.tsx"],"names":[],"mappings":";;;;AAoBA,wBAGC;AAED,eAAO,MAAM,QAAQ,mBAyCpB,CAAA"}
@@ -0,0 +1,21 @@
1
+ export declare enum Direction {
2
+ Right = "right",
3
+ Left = "left"
4
+ }
5
+ interface Props {
6
+ direction: Direction;
7
+ show: boolean;
8
+ offset?: number;
9
+ padding?: number;
10
+ bottomOffset?: number;
11
+ gradient?: boolean;
12
+ onClick(): void;
13
+ }
14
+ export default function CarouselButton({ direction, show, offset, padding, bottomOffset: bottom, gradient, onClick, }: Props): JSX.Element;
15
+ export declare const CAROUSEL_BUTTON_SIZE = 40;
16
+ export declare function ScrollHintButton({ direction, onClick, }: {
17
+ direction: Direction;
18
+ onClick(): void;
19
+ }): JSX.Element;
20
+ export {};
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CarouselButton/index.tsx"],"names":[],"mappings":"AAMA,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,UAAU,KAAK;IACb,SAAS,EAAE,SAAS,CAAA;IACpB,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,IAAI,IAAI,CAAA;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,SAAS,EACT,IAAI,EACJ,MAAU,EACV,OAAW,EACX,YAAY,EAAE,MAAU,EACxB,QAAgB,EAChB,OAAO,GACR,EAAE,KAAK,eAmCP;AAED,eAAO,MAAM,oBAAoB,KAAK,CAAA;AAoDtC,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,OAAO,GACR,EAAE;IACD,SAAS,EAAE,SAAS,CAAA;IACpB,OAAO,IAAI,IAAI,CAAA;CAChB,eAeA"}
@@ -0,0 +1,10 @@
1
+ import CarouselButton from '.';
2
+ declare const _default: {
3
+ title: string;
4
+ decorators: ((...args: any) => any)[];
5
+ component: typeof CarouselButton;
6
+ };
7
+ export default _default;
8
+ export declare const _CarouselButton: () => JSX.Element;
9
+ export declare const _ScrollHintButton: () => JSX.Element;
10
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/CarouselButton/index.story.tsx"],"names":[],"mappings":"AAGA,OAAO,cAA+C,MAAM,GAAG,CAAA;;;;;;AAE/D,wBAIC;AAED,eAAO,MAAM,eAAe,mBAmB3B,CAAA;AAMD,eAAO,MAAM,iBAAiB,mBAO7B,CAAA"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ interface Props<T extends HTMLElement> {
3
+ active?: boolean;
4
+ hover?: boolean;
5
+ reactive?: boolean;
6
+ children: React.ReactNode;
7
+ onClick?: React.MouseEventHandler<T>;
8
+ }
9
+ interface FilterIconButtonProps extends Props<HTMLButtonElement> {
10
+ width?: number;
11
+ height?: number;
12
+ }
13
+ export declare const FilterButton: React.ForwardRefExoticComponent<Props<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
14
+ export declare const FilterIconButton: React.ForwardRefExoticComponent<FilterIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
15
+ export declare const FilterLink: React.ForwardRefExoticComponent<Props<HTMLAnchorElement> & {
16
+ to: string;
17
+ } & Omit<Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | "css" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement>>, "href"> & React.RefAttributes<HTMLAnchorElement>>;
18
+ declare const Filter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
19
+ export default Filter;
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Filter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,UAAU,KAAK,CAAC,CAAC,SAAS,WAAW;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAA;CACrC;AAED,UAAU,qBAAsB,SAAQ,KAAK,CAAC,iBAAiB,CAAC;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,YAAY,oGAqBvB,CAAA;AAEF,eAAO,MAAM,gBAAgB,iGAyB3B,CAAA;AAEF,eAAO,MAAM,UAAU;;gOAgCrB,CAAA;AA6EF,QAAA,MAAM,MAAM,yGAEX,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ };
5
+ export default _default;
6
+ export declare function Default(): JSX.Element;
7
+ export declare function Button(): JSX.Element;
8
+ export declare function 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/Filter/index.story.tsx"],"names":[],"mappings":";;;;AAaA,wBAGC;AAID,wBAAgB,OAAO,gBAatB;AA4BD,wBAAgB,MAAM,gBAQrB;AAED,wBAAgB,IAAI,gBAQnB"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ declare type Context = 'page' | 'section';
3
+ interface Props {
4
+ children: React.ReactNode;
5
+ context: Context;
6
+ className?: string;
7
+ }
8
+ export default function HintText({ children, context, className }: Props): JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/HintText/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,aAAK,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;AACjC,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,KAAK,eASvE"}
@@ -0,0 +1,12 @@
1
+ import { Story } from '../../_lib/compat';
2
+ import HintText from '.';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof HintText;
6
+ };
7
+ export default _default;
8
+ export declare const Default: Story<{
9
+ hintText: string;
10
+ context: 'page' | 'section';
11
+ }>;
12
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/HintText/index.story.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,QAAQ,MAAM,GAAG,CAAA;;;;;AAExB,wBAGC;AAMD,eAAO,MAAM,OAAO;cAJc,MAAM;aAAW,MAAM,GAAG,SAAS;EAI7B,CAAA"}
@@ -0,0 +1,68 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ menu?: React.ReactNode;
4
+ isHeaderTopMenu?: boolean;
5
+ children: React.ReactNode;
6
+ header?: React.ReactNode;
7
+ wide?: boolean;
8
+ center?: boolean;
9
+ }
10
+ export default function Layout({ menu, children, header, center, wide, isHeaderTopMenu, }: Props): JSX.Element;
11
+ interface LayoutItemProps {
12
+ span: number;
13
+ children?: React.ReactNode;
14
+ }
15
+ export declare const LayoutItem: React.ForwardRefExoticComponent<LayoutItemProps & React.RefAttributes<HTMLDivElement>>;
16
+ export declare function LayoutItemHeader({ children }: {
17
+ children: React.ReactNode;
18
+ }): JSX.Element;
19
+ export declare const LAYOUT_ITEM_BODY_PADDING: {
20
+ wide: {
21
+ x: number;
22
+ y: number;
23
+ };
24
+ default: {
25
+ x: number;
26
+ y: number;
27
+ };
28
+ column1: {
29
+ x: number;
30
+ y: number;
31
+ };
32
+ narrow: {
33
+ x: number;
34
+ yTop: number;
35
+ yBottom: number;
36
+ };
37
+ narrowColumn1: {
38
+ x: number;
39
+ yTop: number;
40
+ yBottom: number;
41
+ };
42
+ };
43
+ export declare function LayoutItemBody({ children, horizontal, narrow, }: {
44
+ children: React.ReactNode;
45
+ horizontal?: boolean;
46
+ narrow?: boolean;
47
+ }): JSX.Element;
48
+ interface StyledLayoutItemBodyProps {
49
+ wide: boolean;
50
+ horizontal: boolean;
51
+ narrow: boolean;
52
+ }
53
+ export declare const StyledLayoutItemBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledLayoutItemBodyProps, never>;
54
+ export declare function useLayoutItemBodyPadding(): {
55
+ x: number;
56
+ y: number;
57
+ };
58
+ export declare function CancelLayoutItemBodyPadding({ children, cancelTop, }: {
59
+ children: React.ReactNode;
60
+ cancelTop?: boolean;
61
+ }): JSX.Element;
62
+ interface StyledCancelLayoutItemBodyPaddingProps {
63
+ wide: boolean;
64
+ cancelTop?: boolean;
65
+ }
66
+ export declare const StyledCancelLayoutItemBodyPadding: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledCancelLayoutItemBodyPaddingProps, never>;
67
+ export {};
68
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAWzC,UAAU,KAAK;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAQD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,MAAc,EACd,IAAI,EACJ,eAAuB,GACxB,EAAE,KAAK,eAqBP;AA8FD,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,UAAU,wFAUtB,CAAA;AAqCD,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,eAQ3E;AAuCD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;CAuBpC,CAAA;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,UAAkB,EAClB,MAAc,GACf,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,eAQA;AAED,UAAU,yBAAyB;IACjC,IAAI,EAAE,OAAO,CAAA;IACb,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,eAAO,MAAM,oBAAoB,gIA2BhC,CAAA;AAED,wBAAgB,wBAAwB;;;EAOvC;AAED,wBAAgB,2BAA2B,CAAC,EAC1C,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,eAQA;AAED,UAAU,sCAAsC;IAC9C,IAAI,EAAE,OAAO,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAGD,eAAO,MAAM,iCAAiC,6IAQ7C,CAAA"}
@@ -0,0 +1,14 @@
1
+ import Layout from '.';
2
+ declare const _default: {
3
+ title: string;
4
+ component: typeof Layout;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ };
9
+ export default _default;
10
+ export declare function Basic(): JSX.Element;
11
+ export declare function NoMenu(): JSX.Element;
12
+ export declare function Wide(): JSX.Element;
13
+ export declare function Center(): JSX.Element;
14
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/index.story.tsx"],"names":[],"mappings":"AAKA,OAAO,MAAwD,MAAM,GAAG,CAAA;;;;;;;;AAExE,wBAMC;AAED,wBAAgB,KAAK,gBAapB;AAED,wBAAgB,MAAM,gBAYrB;AAED,wBAAgB,IAAI,gBAanB;AAED,wBAAgB,MAAM,gBAYrB"}
@@ -0,0 +1,12 @@
1
+ interface Props<ID extends string> {
2
+ links: readonly {
3
+ text: string;
4
+ to: string;
5
+ id: ID;
6
+ }[];
7
+ active: ID;
8
+ }
9
+ export default function LeftMenu<ID extends string>({ links, active, }: Props<ID>): JSX.Element;
10
+ export declare function LeftMenuContent<ID extends string>({ links }: Props<ID>): JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LeftMenu/index.tsx"],"names":[],"mappings":"AAKA,UAAU,KAAK,CAAC,EAAE,SAAS,MAAM;IAC/B,KAAK,EAAE,SAAS;QACd,IAAI,EAAE,MAAM,CAAA;QACZ,EAAE,EAAE,MAAM,CAAA;QACV,EAAE,EAAE,EAAE,CAAA;KACP,EAAE,CAAA;IACH,MAAM,EAAE,EAAE,CAAA;CACX;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,EAClD,KAAK,EACL,MAAM,GACP,EAAE,KAAK,CAAC,EAAE,CAAC,eAaX;AAED,wBAAgB,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,eAQtE"}
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { LinkProps } from '@charcoal-ui/react';
3
+ interface MenuListItemContextProps {
4
+ padding: 16 | 24;
5
+ }
6
+ export declare const MenuListItemContext: React.Context<MenuListItemContextProps>;
7
+ export interface MenuListItemBaseData {
8
+ primary: string | React.ReactNode;
9
+ secondary?: string;
10
+ onClick?: (e: React.MouseEvent) => void;
11
+ disabled?: boolean;
12
+ gtmClass?: string;
13
+ noHover?: boolean;
14
+ }
15
+ interface MenuListItemProps extends MenuListItemBaseData {
16
+ children?: React.ReactNode;
17
+ }
18
+ export default function MenuListItem({ primary, secondary, onClick, disabled, noHover, gtmClass, children, }: MenuListItemProps): JSX.Element;
19
+ interface MenuListLinkItemProps extends MenuListItemBaseData, Omit<LinkProps, 'to' | 'onClick' | 'children'> {
20
+ link: string;
21
+ children?: React.ReactNode;
22
+ }
23
+ export declare function MenuListLinkItem({ link, onClick, disabled, primary, secondary, gtmClass, noHover, children, ...linkProps }: MenuListLinkItemProps): JSX.Element;
24
+ interface MenuListLinkItemWithIconProps extends MenuListLinkItemProps {
25
+ icon: React.ReactNode;
26
+ }
27
+ interface MenuListItemWithIconProps extends MenuListItemProps {
28
+ icon: React.ReactNode;
29
+ }
30
+ export declare function MenuListLinkItemWithIcon({ icon, primary: text, ...props }: MenuListLinkItemWithIconProps): JSX.Element;
31
+ export declare function MenuListItemWithIcon({ icon, primary: text, ...props }: MenuListItemWithIconProps): JSX.Element;
32
+ export declare const MenuListSpacer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
33
+ export declare const MenuListLabel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
34
+ export {};
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MenuListItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,OAAO,EAAE,SAAS,EAA2B,MAAM,oBAAoB,CAAA;AAGvE,UAAU,wBAAwB;IAChC,OAAO,EAAE,EAAE,GAAG,EAAE,CAAA;CACjB;AAED,eAAO,MAAM,mBAAmB,yCACgC,CAAA;AAEhE,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,UAAU,iBAAkB,SAAQ,oBAAoB;IACtD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,OAAO,EACP,SAAS,EACT,OAAO,EACP,QAAgB,EAChB,OAAe,EACf,QAAQ,EACR,QAAQ,GACT,EAAE,iBAAiB,eA+BnB;AAyDD,UAAU,qBACR,SAAQ,oBAAoB,EAC1B,IAAI,CAAC,SAAS,EAAE,IAAI,GAAG,SAAS,GAAG,UAAU,CAAC;IAChD,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,OAAO,EACP,QAAgB,EAChB,OAAO,EACP,SAAS,EACT,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,GAAG,SAAS,EACb,EAAE,qBAAqB,eAoBvB;AAMD,UAAU,6BAA8B,SAAQ,qBAAqB;IACnE,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;CACtB;AAED,UAAU,yBAA0B,SAAQ,iBAAiB;IAC3D,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;CACtB;AAED,wBAAgB,wBAAwB,CAAC,EACvC,IAAI,EACJ,OAAO,EAAE,IAAI,EACb,GAAG,KAAK,EACT,EAAE,6BAA6B,eAQ/B;AAED,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,OAAO,EAAE,IAAI,EACb,GAAG,KAAK,EACT,EAAE,yBAAyB,eAQ3B;AAcD,eAAO,MAAM,cAAc,yGAE1B,CAAA;AAED,eAAO,MAAM,aAAa,yGAOzB,CAAA"}
@@ -0,0 +1,18 @@
1
+ import MenuListItem from '.';
2
+ declare const _default: {
3
+ title: string;
4
+ component: typeof MenuListItem;
5
+ };
6
+ export default _default;
7
+ export declare const Default: () => JSX.Element;
8
+ export declare const Simple: () => JSX.Element;
9
+ export declare const Disabled: () => JSX.Element;
10
+ export declare const Link: () => JSX.Element;
11
+ export declare const HardLink: () => JSX.Element;
12
+ export declare const InlineIcon: () => JSX.Element;
13
+ export declare const Icon: () => JSX.Element;
14
+ export declare const NoHoverEffect: () => JSX.Element;
15
+ export declare const Spacer: () => JSX.Element;
16
+ export declare const Label: () => JSX.Element;
17
+ export declare const TextEllipsis: () => JSX.Element;
18
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/MenuListItem/index.story.tsx"],"names":[],"mappings":"AAMA,OAAO,YAMN,MAAM,GAAG,CAAA;;;;;AAEV,wBAGC;AAED,eAAO,MAAM,OAAO,mBAiBnB,CAAA;AAED,eAAO,MAAM,MAAM,mBAMlB,CAAA;AAED,eAAO,MAAM,QAAQ,mBAMpB,CAAA;AAED,eAAO,MAAM,IAAI,mBAMhB,CAAA;AAED,eAAO,MAAM,QAAQ,mBAQpB,CAAA;AAED,eAAO,MAAM,UAAU,mBAOtB,CAAA;AAED,eAAO,MAAM,IAAI,mBAMhB,CAAA;AAED,eAAO,MAAM,aAAa,mBAQzB,CAAA;AAED,eAAO,MAAM,MAAM,mBAMlB,CAAA;AAED,eAAO,MAAM,KAAK,mBAKjB,CAAA;AAED,eAAO,MAAM,YAAY,mBAQxB,CAAA"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ interface CommonProps {
3
+ page: number;
4
+ pageCount: number;
5
+ }
6
+ export interface PagerProps extends CommonProps {
7
+ onChange(newPage: number): void;
8
+ }
9
+ declare const _default: React.NamedExoticComponent<PagerProps>;
10
+ export default _default;
11
+ export interface LinkPagerProps extends CommonProps {
12
+ makeUrl(page: number): string;
13
+ }
14
+ export declare function LinkPager({ page, pageCount, makeUrl }: LinkPagerProps): JSX.Element;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pager/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAA;AAqElE,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,UAAW,SAAQ,WAAW;IAC7C,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC;;AAGD,wBAuDE;AAEF,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAC9B;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,cAAc,eAqCrE"}
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { Story } from '../../_lib/compat';
3
+ declare const _default: {
4
+ title: string;
5
+ component: React.NamedExoticComponent<import(".").PagerProps>;
6
+ argTypes: {
7
+ page: {
8
+ control: {
9
+ type: string;
10
+ disable: boolean;
11
+ };
12
+ };
13
+ pageCount: {
14
+ control: {
15
+ type: string;
16
+ min: number;
17
+ };
18
+ };
19
+ };
20
+ };
21
+ export default _default;
22
+ interface Props {
23
+ page: number;
24
+ pageCount: number;
25
+ }
26
+ export declare const Default: Story<Props>;
27
+ export declare const Link: Story<Props>;
28
+ export declare const NotCollapsed: Story<Props>;
29
+ export declare const CollapsedWithDots: Story<Props>;
30
+ export declare const LastPage: Story<Props>;
31
+ export declare const One: Story<Props>;
32
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Pager/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAOvC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;;;;;;;;AAIzC,wBAiBC;AAED,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;CAClB;AAOD,eAAO,MAAM,OAAO,cAAwB,CAAA;AAiC5C,eAAO,MAAM,IAAI,cAAqB,CAAA;AAMtC,eAAO,MAAM,YAAY,cAAqB,CAAA;AAM9C,eAAO,MAAM,iBAAiB,cAAqB,CAAA;AAMnD,eAAO,MAAM,QAAQ,cAAqB,CAAA;AAM1C,eAAO,MAAM,GAAG,cAAqB,CAAA"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export default function Spinner({ size, padding, transparent, }: {
3
+ size?: number | undefined;
4
+ padding?: number | undefined;
5
+ transparent?: boolean | undefined;
6
+ }): JSX.Element;
7
+ interface Props {
8
+ once?: boolean;
9
+ }
10
+ export interface SpinnerIconHandler {
11
+ restart(): void;
12
+ }
13
+ export declare const SpinnerIcon: React.ForwardRefExoticComponent<Props & React.RefAttributes<SpinnerIconHandler>>;
14
+ export {};
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAG1D,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,IAAS,EACT,OAAY,EACZ,WAAmB,GACpB;;;;CAAA,eAMA;AA6CD,UAAU,KAAK;IACb,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,IAAI,IAAI,CAAA;CAChB;AAED,eAAO,MAAM,WAAW,kFAkBvB,CAAA"}
@@ -0,0 +1,10 @@
1
+ import Spinner from '.';
2
+ declare const _default: {
3
+ title: string;
4
+ component: typeof Spinner;
5
+ decorators: ((...args: any) => any)[];
6
+ };
7
+ export default _default;
8
+ export declare function Basic(): JSX.Element;
9
+ export declare function Icon(): JSX.Element;
10
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/index.story.tsx"],"names":[],"mappings":"AAQA,OAAO,OAA4C,MAAM,GAAG,CAAA;;;;;;AAE5D,wBAIC;AAED,wBAAgB,KAAK,gBAMpB;AAED,wBAAgB,IAAI,gBAEnB"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface Props extends React.ComponentPropsWithoutRef<'input'> {
3
+ gtmClass?: string;
4
+ flex?: boolean;
5
+ rowReverse?: boolean;
6
+ }
7
+ declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
8
+ export default _default;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchCheckbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,MAAM,WAAW,KAAM,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;;AAED,wBA6BE"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.ForwardRefExoticComponent<import(".").Props & React.RefAttributes<HTMLInputElement>>;
5
+ };
6
+ export default _default;
7
+ export declare const Default: () => JSX.Element;
8
+ export declare const On: () => JSX.Element;
9
+ export declare const Off: () => JSX.Element;
10
+ export declare const Disabled: () => JSX.Element;
11
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchCheckbox/index.story.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;;;;;AAGzB,wBAGC;AAED,eAAO,MAAM,OAAO,mBAiBnB,CAAA;AAED,eAAO,MAAM,EAAE,mBAAmC,CAAA;AAClD,eAAO,MAAM,GAAG,mBAA2C,CAAA;AAC3D,eAAO,MAAM,QAAQ,mBAA4C,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { ReactNode, ReactText } from 'react';
2
+ export declare const childToString: (child?: boolean | {} | ReactText | null | undefined) => string;
3
+ export declare const onlyText: (children: ReactNode) => string;
4
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/components/TextEllipsis/helper.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EACT,SAAS,EACV,MAAM,OAAO,CAAA;AAQd,eAAO,MAAM,aAAa,2DAGvB,MAcF,CAAA;AAED,eAAO,MAAM,QAAQ,aAAc,SAAS,KAAG,MAqB9C,CAAA"}
@@ -0,0 +1,11 @@
1
+ export interface Props {
2
+ lineHeight: number;
3
+ lineLimit?: number;
4
+ }
5
+ /**
6
+ * 複数行のテキストに表示行数制限を設けて`...`で省略する
7
+ */
8
+ export declare const TextEllipsis: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
9
+ title: string | undefined;
10
+ } & Props, "title">;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextEllipsis/index.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;;mBAuBxB,CAAA"}
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
4
+ title: string | undefined;
5
+ } & import(".").Props, "title">;
6
+ };
7
+ export default _default;
8
+ export declare const Default: () => JSX.Element;
9
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/TextEllipsis/index.story.tsx"],"names":[],"mappings":";;;;;;AAKA,wBAGC;AAED,eAAO,MAAM,OAAO,mBA0BnB,CAAA"}
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ export interface Props {
3
+ children?: React.ReactNode;
4
+ icon: React.ReactNode;
5
+ /**
6
+ * アイコンを表示。デフォルトがtrueなので、非表示にするときに使います。 (アイコン自体の幅を維持します)
7
+ */
8
+ show?: boolean | 'collapse';
9
+ /**
10
+ * アイコンを前にする
11
+ */
12
+ prefix?: boolean;
13
+ /**
14
+ * アイコンの高さが文字の高さよりも大きいケースで有効。アイコンの高さをゼロにしてインラインの高さに関与させないようにします。
15
+ */
16
+ fit?: boolean;
17
+ /**
18
+ * `fit`と併用した時にのみ有効な最適化オプション。アイコンの幅の自動計算を行わず指定した数値を利用します。
19
+ */
20
+ width?: number;
21
+ /**
22
+ * 親要素のサイズに合わせるのではなく、コンテンツのサイズを優先する
23
+ */
24
+ fixed?: boolean;
25
+ }
26
+ declare const _default: React.NamedExoticComponent<Props>;
27
+ export default _default;
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/WithIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAIrC,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;;AAED,wBAgCE"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.NamedExoticComponent<import(".").Props>;
5
+ };
6
+ export default _default;
7
+ export declare const Default: () => JSX.Element;
8
+ export declare const Performance: () => JSX.Element;
9
+ export declare const Naive: () => JSX.Element;
10
+ export declare const Prefix: () => JSX.Element;
11
+ export declare const Hide: () => JSX.Element;
12
+ export declare const Collapse: () => JSX.Element;
13
+ export declare const LongText: () => JSX.Element;
14
+ export declare const LongTextOverflow: () => JSX.Element;
15
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/components/WithIcon/index.story.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;;;;;AAMzB,wBAGC;AAED,eAAO,MAAM,OAAO,mBAoBnB,CAAA;AAED,eAAO,MAAM,WAAW,mBAYvB,CAAA;AAED,eAAO,MAAM,KAAK,mBAOjB,CAAA;AAED,eAAO,MAAM,MAAM,mBAMlB,CAAA;AAqBD,eAAO,MAAM,IAAI,mBAMhB,CAAA;AAED,eAAO,MAAM,QAAQ,mBAMpB,CAAA;AAED,eAAO,MAAM,QAAQ,mBAUpB,CAAA;AAED,eAAO,MAAM,gBAAgB,mBAU5B,CAAA"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ export declare type IconSizes = 16 | 24 | 32;
3
+ interface Props {
4
+ path: string | React.ReactNode;
5
+ viewBoxSize: number;
6
+ size?: IconSizes | 40 | 48 | 64 | 72;
7
+ transform?: string;
8
+ currentColor?: boolean;
9
+ fillRule?: 'nonzero' | 'evenodd';
10
+ clipRule?: 'nonzero' | 'evenodd' | 'inherit';
11
+ }
12
+ export default function IconBase({ size, viewBoxSize, currentColor, path, transform, fillRule, clipRule, }: Props): JSX.Element;
13
+ declare type IconBasePathProps = Pick<Props, 'path' | 'transform' | 'fillRule' | 'clipRule'>;
14
+ export declare const IconBasePath: ({ path, transform, fillRule, clipRule, }: IconBasePathProps) => JSX.Element;
15
+ export {};
16
+ //# sourceMappingURL=Base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../src/components/icons/Base.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,oBAAY,SAAS,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA;AAEpC,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IAC9B,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;CAC7C;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,IAAS,EACT,WAAW,EACX,YAAY,EACZ,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,EAAE,KAAK,eAeP;AAaD,aAAK,iBAAiB,GAAG,IAAI,CAC3B,KAAK,EACL,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAC/C,CAAA;AACD,eAAO,MAAM,YAAY,6CAKtB,iBAAiB,gBAcnB,CAAA"}