@popsure/dirty-swan 0.33.4 → 0.34.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 (139) hide show
  1. package/dist/cjs/index.js +25 -18
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/lib/components/cards/cardButton/index.d.ts +8 -8
  4. package/dist/cjs/lib/components/cards/cardButton/index.stories.d.ts +39 -0
  5. package/dist/cjs/lib/components/cards/cardWithLeftIcon/index.d.ts +6 -12
  6. package/dist/cjs/lib/components/cards/cardWithLeftIcon/index.stories.d.ts +55 -0
  7. package/dist/cjs/lib/components/cards/cardWithTopIcon/index.d.ts +5 -11
  8. package/dist/cjs/lib/components/cards/cardWithTopIcon/index.stories.d.ts +59 -0
  9. package/dist/cjs/lib/components/cards/cardWithTopLeftIcon/index.d.ts +6 -12
  10. package/dist/cjs/lib/components/cards/cardWithTopLeftIcon/index.stories.d.ts +49 -0
  11. package/dist/cjs/lib/components/cards/index.d.ts +5 -5
  12. package/dist/cjs/lib/components/cards/infoCard/index.d.ts +4 -10
  13. package/dist/cjs/lib/components/cards/infoCard/index.stories.d.ts +47 -0
  14. package/dist/cjs/lib/components/dateSelector/index.d.ts +11 -11
  15. package/dist/cjs/lib/components/dateSelector/index.stories.d.ts +65 -0
  16. package/dist/cjs/lib/components/input/index.d.ts +4 -5
  17. package/dist/cjs/lib/components/input/input.stories.d.ts +90 -0
  18. package/dist/cjs/lib/components/input/stories/config.d.ts +71 -0
  19. package/dist/cjs/lib/components/multiDropzone/index.d.ts +4 -4
  20. package/dist/cjs/lib/components/multiDropzone/index.stories.d.ts +72 -0
  21. package/dist/cjs/lib/index.d.ts +3 -3
  22. package/dist/cjs/lib/util/images/index.d.ts +7 -0
  23. package/dist/esm/components/autocompleteAddress/index.js +1 -1
  24. package/dist/esm/components/autocompleteAddress/index.js.map +1 -1
  25. package/dist/esm/components/cards/cardButton/index.js +1 -1
  26. package/dist/esm/components/cards/cardButton/index.stories.js +49 -0
  27. package/dist/esm/components/cards/cardButton/index.stories.js.map +1 -0
  28. package/dist/esm/components/cards/cardWithLeftIcon/index.js +1 -1
  29. package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js +64 -0
  30. package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js.map +1 -0
  31. package/dist/esm/components/cards/cardWithTopIcon/index.js +1 -1
  32. package/dist/esm/components/cards/cardWithTopIcon/index.stories.js +68 -0
  33. package/dist/esm/components/cards/cardWithTopIcon/index.stories.js.map +1 -0
  34. package/dist/esm/components/cards/cardWithTopLeftIcon/index.js +1 -1
  35. package/dist/esm/components/cards/cardWithTopLeftIcon/index.stories.js +57 -0
  36. package/dist/esm/components/cards/cardWithTopLeftIcon/index.stories.js.map +1 -0
  37. package/dist/esm/components/cards/index.js +9 -9
  38. package/dist/esm/components/cards/index.js.map +1 -1
  39. package/dist/esm/components/cards/infoCard/index.js +1 -1
  40. package/dist/esm/components/cards/infoCard/index.stories.js +58 -0
  41. package/dist/esm/components/cards/infoCard/index.stories.js.map +1 -0
  42. package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js +1 -1
  43. package/dist/esm/components/comparisonTable/components/TableArrows/index.js +1 -1
  44. package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js +1 -1
  45. package/dist/esm/components/dateSelector/index.js +6 -2179
  46. package/dist/esm/components/dateSelector/index.js.map +1 -1
  47. package/dist/esm/components/dateSelector/index.stories.js +92 -0
  48. package/dist/esm/components/dateSelector/index.stories.js.map +1 -0
  49. package/dist/esm/components/dateSelector/index.test.js +1 -1
  50. package/dist/esm/components/dateSelector/index.test.js.map +1 -1
  51. package/dist/esm/components/input/autoSuggestInput/index.js +1 -1
  52. package/dist/esm/components/input/autoSuggestInput/index.js.map +1 -1
  53. package/dist/esm/components/input/checkbox/index.stories.js +1 -1
  54. package/dist/esm/components/input/currency/index.js +1 -1
  55. package/dist/esm/components/input/currency/index.js.map +1 -1
  56. package/dist/esm/components/input/iban/index.js +1 -1
  57. package/dist/esm/components/input/iban/index.js.map +1 -1
  58. package/dist/esm/components/input/index.js +1 -1
  59. package/dist/esm/components/input/index.js.map +1 -1
  60. package/dist/esm/components/input/input.stories.js +85 -0
  61. package/dist/esm/components/input/input.stories.js.map +1 -0
  62. package/dist/esm/components/multiDropzone/index.js +3 -3
  63. package/dist/esm/components/multiDropzone/index.js.map +1 -1
  64. package/dist/esm/components/multiDropzone/index.stories.js +147 -0
  65. package/dist/esm/components/multiDropzone/index.stories.js.map +1 -0
  66. package/dist/esm/components/multiDropzone/index.test.js +2 -2
  67. package/dist/esm/components/multiDropzone/index.test.js.map +1 -1
  68. package/dist/esm/{index-e81a1766.js → index-31224f74.js} +8 -1
  69. package/dist/esm/index-31224f74.js.map +1 -0
  70. package/dist/esm/index-47663d39.js.map +1 -1
  71. package/dist/esm/index-639cf8b3.js +2179 -0
  72. package/dist/esm/index-639cf8b3.js.map +1 -0
  73. package/dist/esm/index.js +4 -4
  74. package/dist/esm/lib/components/cards/cardButton/index.d.ts +8 -8
  75. package/dist/esm/lib/components/cards/cardButton/index.stories.d.ts +39 -0
  76. package/dist/esm/lib/components/cards/cardWithLeftIcon/index.d.ts +6 -12
  77. package/dist/esm/lib/components/cards/cardWithLeftIcon/index.stories.d.ts +55 -0
  78. package/dist/esm/lib/components/cards/cardWithTopIcon/index.d.ts +5 -11
  79. package/dist/esm/lib/components/cards/cardWithTopIcon/index.stories.d.ts +59 -0
  80. package/dist/esm/lib/components/cards/cardWithTopLeftIcon/index.d.ts +6 -12
  81. package/dist/esm/lib/components/cards/cardWithTopLeftIcon/index.stories.d.ts +49 -0
  82. package/dist/esm/lib/components/cards/index.d.ts +5 -5
  83. package/dist/esm/lib/components/cards/infoCard/index.d.ts +4 -10
  84. package/dist/esm/lib/components/cards/infoCard/index.stories.d.ts +47 -0
  85. package/dist/esm/lib/components/dateSelector/index.d.ts +11 -11
  86. package/dist/esm/lib/components/dateSelector/index.stories.d.ts +65 -0
  87. package/dist/esm/lib/components/input/index.d.ts +4 -5
  88. package/dist/esm/lib/components/input/input.stories.d.ts +90 -0
  89. package/dist/esm/lib/components/input/stories/config.d.ts +71 -0
  90. package/dist/esm/lib/components/multiDropzone/index.d.ts +4 -4
  91. package/dist/esm/lib/components/multiDropzone/index.stories.d.ts +72 -0
  92. package/dist/esm/lib/index.d.ts +3 -3
  93. package/dist/esm/lib/util/images/index.d.ts +7 -0
  94. package/dist/esm/scss/public/demo.js +1 -1
  95. package/dist/esm/scss/public/demo.js.map +1 -1
  96. package/dist/esm/util/images/index.stories.js +1 -1
  97. package/dist/index.css +10 -10
  98. package/dist/lib/scss/public/colors/default.scss +2 -2
  99. package/dist/lib/scss/public/demo.tsx +1 -1
  100. package/package.json +1 -1
  101. package/src/App.tsx +1 -1
  102. package/src/lib/components/autocompleteAddress/index.tsx +1 -1
  103. package/src/lib/components/cards/cardButton/index.stories.tsx +61 -0
  104. package/src/lib/components/cards/cardButton/index.tsx +9 -10
  105. package/src/lib/components/cards/cardWithLeftIcon/index.stories.tsx +79 -0
  106. package/src/lib/components/cards/cardWithLeftIcon/index.tsx +8 -6
  107. package/src/lib/components/cards/cardWithTopIcon/index.stories.tsx +85 -0
  108. package/src/lib/components/cards/cardWithTopIcon/index.tsx +9 -7
  109. package/src/lib/components/cards/cardWithTopLeftIcon/index.stories.tsx +73 -0
  110. package/src/lib/components/cards/cardWithTopLeftIcon/index.tsx +8 -6
  111. package/src/lib/components/cards/index.tsx +5 -5
  112. package/src/lib/components/cards/infoCard/index.stories.tsx +71 -0
  113. package/src/lib/components/cards/infoCard/index.tsx +7 -5
  114. package/src/lib/components/dateSelector/index.stories.tsx +104 -0
  115. package/src/lib/components/dateSelector/index.test.tsx +2 -2
  116. package/src/lib/components/dateSelector/index.tsx +14 -14
  117. package/src/lib/components/input/a.stories.mdx +2 -2
  118. package/src/lib/components/input/autoSuggestInput/index.tsx +1 -1
  119. package/src/lib/components/input/currency/index.tsx +1 -1
  120. package/src/lib/components/input/iban/index.tsx +1 -1
  121. package/src/lib/components/input/index.tsx +4 -4
  122. package/src/lib/components/input/input.stories.tsx +48 -0
  123. package/src/lib/components/input/stories/config.ts +56 -0
  124. package/src/lib/components/multiDropzone/index.stories.tsx +228 -0
  125. package/src/lib/components/multiDropzone/index.test.tsx +1 -1
  126. package/src/lib/components/multiDropzone/index.tsx +6 -6
  127. package/src/lib/index.tsx +4 -3
  128. package/src/lib/scss/public/colors/default.scss +2 -2
  129. package/src/lib/scss/public/demo.tsx +1 -1
  130. package/src/lib/util/images/index.ts +7 -0
  131. package/dist/esm/index-e81a1766.js.map +0 -1
  132. package/src/lib/components/cards/cardButton/index.stories.mdx +0 -47
  133. package/src/lib/components/cards/cardWithLeftIcon/index.stories.mdx +0 -103
  134. package/src/lib/components/cards/cardWithTopIcon/index.stories.mdx +0 -105
  135. package/src/lib/components/cards/cardWithTopLeftIcon/index.stories.mdx +0 -101
  136. package/src/lib/components/cards/infoCard/index.stories.mdx +0 -61
  137. package/src/lib/components/dateSelector/index.stories.mdx +0 -106
  138. package/src/lib/components/input/index.stories.mdx +0 -108
  139. package/src/lib/components/multiDropzone/index.stories.mdx +0 -187
@@ -0,0 +1,55 @@
1
+ import { CardWithLeftIconProps } from '.';
2
+ declare const story: {
3
+ title: string;
4
+ component: ({ className, title, cardSize, children, leftIcon, rightIcon, state, dropshadow, ...props }: CardWithLeftIconProps) => JSX.Element;
5
+ argTypes: {
6
+ title: {
7
+ defaultValue: string;
8
+ description: string;
9
+ };
10
+ children: {
11
+ type: string;
12
+ defaultValue: string;
13
+ description: string;
14
+ };
15
+ state: {
16
+ defaultValue: string;
17
+ description: string;
18
+ };
19
+ leftIcon: {
20
+ defaultValue: {
21
+ src: "https://assets.cdn.feather-insurance.com/assets/images/mortgage.svg";
22
+ alt: string;
23
+ };
24
+ description: string;
25
+ };
26
+ rightIcon: {
27
+ defaultValue: {
28
+ src: "https://assets.cdn.feather-insurance.com/assets/images/washingMachine.svg";
29
+ alt: string;
30
+ };
31
+ description: string;
32
+ };
33
+ cardSize: {
34
+ control: {
35
+ type: string;
36
+ };
37
+ defaultValue: string;
38
+ description: string;
39
+ };
40
+ dropshadow: {
41
+ defaultValue: boolean;
42
+ description: string;
43
+ };
44
+ className: {
45
+ defaultValue: string;
46
+ type: string;
47
+ description: string;
48
+ };
49
+ };
50
+ };
51
+ export declare const CardWithLeftIconStory: {
52
+ ({ title, dropshadow, children, className, cardSize, leftIcon, rightIcon, state, }: CardWithLeftIconProps): JSX.Element;
53
+ storyName: string;
54
+ };
55
+ export default story;
@@ -1,15 +1,9 @@
1
- /// <reference types="react" />
2
1
  import { CardProps } from '..';
3
2
  import { Icon, IconSize } from '../icons';
4
- declare const _default: ({ className, title, cardSize, children, topIcon, topIconSize, rightIcon, state, dropshadow, ...props }: {
5
- title: string;
6
- children: import("react").ReactNode;
7
- state?: ("actionable" | "static" | "muted") | undefined;
8
- dropshadow?: boolean | undefined;
9
- } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
3
+ export declare type CardWithTopIconProps = CardProps & {
10
4
  topIcon: Icon;
11
5
  topIconSize: IconSize;
12
- cardSize?: "big" | "small" | "medium" | undefined;
13
- rightIcon?: Icon | "arrow" | undefined;
14
- }) => JSX.Element;
15
- export default _default;
6
+ cardSize?: 'small' | 'medium' | 'big';
7
+ rightIcon?: 'arrow' | Icon;
8
+ };
9
+ export declare const CardWithTopIcon: ({ className, title, cardSize, children, topIcon, topIconSize, rightIcon, state, dropshadow, ...props }: CardWithTopIconProps) => JSX.Element;
@@ -0,0 +1,59 @@
1
+ import { CardWithTopIconProps } from '.';
2
+ declare const story: {
3
+ title: string;
4
+ component: ({ className, title, cardSize, children, topIcon, topIconSize, rightIcon, state, dropshadow, ...props }: CardWithTopIconProps) => JSX.Element;
5
+ argTypes: {
6
+ title: {
7
+ defaultValue: string;
8
+ description: string;
9
+ };
10
+ children: {
11
+ type: string;
12
+ defaultValue: string;
13
+ description: string;
14
+ };
15
+ state: {
16
+ defaultValue: string;
17
+ description: string;
18
+ };
19
+ topIcon: {
20
+ defaultValue: {
21
+ src: "https://assets.cdn.feather-insurance.com/assets/images/mortgage.svg";
22
+ alt: string;
23
+ };
24
+ description: string;
25
+ };
26
+ topIconSize: {
27
+ defaultValue: {
28
+ width: number;
29
+ height: number;
30
+ };
31
+ description: string;
32
+ };
33
+ rightIcon: {
34
+ defaultValue: string;
35
+ description: string;
36
+ };
37
+ cardSize: {
38
+ control: {
39
+ type: string;
40
+ };
41
+ defaultValue: string;
42
+ description: string;
43
+ };
44
+ dropshadow: {
45
+ defaultValue: boolean;
46
+ description: string;
47
+ };
48
+ className: {
49
+ defaultValue: string;
50
+ type: string;
51
+ description: string;
52
+ };
53
+ };
54
+ };
55
+ export declare const CardWithTopIconStory: {
56
+ ({ title, dropshadow, cardSize, children, className, topIcon, topIconSize, rightIcon, state, }: CardWithTopIconProps): JSX.Element;
57
+ storyName: string;
58
+ };
59
+ export default story;
@@ -1,14 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { CardProps } from '..';
3
2
  import { Icon } from '../icons';
4
- declare const _default: ({ className, title, cardSize, children, leftIcon, rightIcon, state, dropshadow, ...props }: {
5
- title: string;
6
- children: import("react").ReactNode;
7
- state?: ("actionable" | "static" | "muted") | undefined;
8
- dropshadow?: boolean | undefined;
9
- } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
10
- cardSize?: "big" | "small" | "xsmall" | "medium" | undefined;
11
- leftIcon?: Icon | "logo" | undefined;
12
- rightIcon?: Icon | "arrow" | undefined;
13
- }) => JSX.Element;
14
- export default _default;
3
+ export declare type CardWithTopLeftIconProps = CardProps & {
4
+ cardSize?: 'xsmall' | 'small' | 'medium' | 'big';
5
+ leftIcon?: 'logo' | Icon;
6
+ rightIcon?: 'arrow' | Icon;
7
+ };
8
+ export declare const CardWithTopLeftIcon: ({ className, title, cardSize, children, leftIcon, rightIcon, state, dropshadow, ...props }: CardWithTopLeftIconProps) => JSX.Element;
@@ -0,0 +1,49 @@
1
+ import { CardWithTopLeftIconProps } from '.';
2
+ declare const story: {
3
+ title: string;
4
+ component: ({ className, title, cardSize, children, leftIcon, rightIcon, state, dropshadow, ...props }: CardWithTopLeftIconProps) => JSX.Element;
5
+ argTypes: {
6
+ title: {
7
+ defaultValue: string;
8
+ description: string;
9
+ };
10
+ children: {
11
+ type: string;
12
+ defaultValue: string;
13
+ description: string;
14
+ };
15
+ state: {
16
+ defaultValue: string;
17
+ description: string;
18
+ };
19
+ leftIcon: {
20
+ defaultValue: string;
21
+ description: string;
22
+ };
23
+ rightIcon: {
24
+ defaultValue: string;
25
+ description: string;
26
+ };
27
+ cardSize: {
28
+ control: {
29
+ type: string;
30
+ };
31
+ defaultValue: string;
32
+ description: string;
33
+ };
34
+ dropshadow: {
35
+ defaultValue: boolean;
36
+ description: string;
37
+ };
38
+ className: {
39
+ defaultValue: string;
40
+ type: string;
41
+ description: string;
42
+ };
43
+ };
44
+ };
45
+ export declare const CardWithTopLeftIconStory: {
46
+ ({ title, dropshadow, children, className, cardSize, leftIcon, rightIcon, state, }: CardWithTopLeftIconProps): JSX.Element;
47
+ storyName: string;
48
+ };
49
+ export default story;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import CardWithTopLeftIcon from './cardWithTopLeftIcon';
3
- import CardWithLeftIcon from './cardWithLeftIcon';
4
- import CardWithTopIcon from './cardWithTopIcon';
5
- import InfoCard from './infoCard';
6
- import CardButton from './cardButton';
2
+ import { CardWithTopLeftIcon } from './cardWithTopLeftIcon';
3
+ import { CardWithLeftIcon } from './cardWithLeftIcon';
4
+ import { CardWithTopIcon } from './cardWithTopIcon';
5
+ import { InfoCard } from './infoCard';
6
+ import { CardButton } from './cardButton';
7
7
  declare type CardState = 'actionable' | 'static' | 'muted';
8
8
  export declare type CardProps = {
9
9
  title: string;
@@ -1,13 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { CardProps } from '..';
3
2
  import { Icon } from '../icons';
4
- declare const _default: ({ className, title, children, topIcon, rightIcon, state, dropshadow, ...props }: {
5
- title: string;
6
- children: import("react").ReactNode;
7
- state?: ("actionable" | "static" | "muted") | undefined;
8
- dropshadow?: boolean | undefined;
9
- } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
3
+ export declare type InfoCardProps = CardProps & {
10
4
  topIcon: Icon;
11
- rightIcon?: Icon | "info" | undefined;
12
- }) => JSX.Element;
13
- export default _default;
5
+ rightIcon?: 'info' | Icon;
6
+ };
7
+ export declare const InfoCard: ({ className, title, children, topIcon, rightIcon, state, dropshadow, ...props }: InfoCardProps) => JSX.Element;
@@ -0,0 +1,47 @@
1
+ import { InfoCardProps } from '.';
2
+ declare const story: {
3
+ title: string;
4
+ component: ({ className, title, children, topIcon, rightIcon, state, dropshadow, ...props }: InfoCardProps) => JSX.Element;
5
+ argTypes: {
6
+ title: {
7
+ defaultValue: string;
8
+ description: string;
9
+ };
10
+ children: {
11
+ type: string;
12
+ defaultValue: string;
13
+ description: string;
14
+ };
15
+ state: {
16
+ defaultValue: string;
17
+ description: string;
18
+ };
19
+ topIcon: {
20
+ defaultValue: {
21
+ src: "https://assets.cdn.feather-insurance.com/assets/images/mortgage.svg";
22
+ alt: string;
23
+ };
24
+ description: string;
25
+ };
26
+ rightIcon: {
27
+ defaultValue: {
28
+ src: "https://assets.cdn.feather-insurance.com/assets/images/washingMachine.svg";
29
+ alt: string;
30
+ };
31
+ description: string;
32
+ };
33
+ dropshadow: {
34
+ defaultValue: boolean;
35
+ description: string;
36
+ };
37
+ className: {
38
+ defaultValue: string;
39
+ description: string;
40
+ };
41
+ };
42
+ };
43
+ export declare const InfoCardStory: {
44
+ ({ title, dropshadow, children, className, rightIcon, state, topIcon }: InfoCardProps): JSX.Element;
45
+ storyName: string;
46
+ };
47
+ export default story;
@@ -4,20 +4,20 @@ export declare const daysInMonthOfYear: ({ month, year, }: {
4
4
  month: number;
5
5
  year: number;
6
6
  }) => number;
7
- declare const DateSelector: ({ value, onChange, yearBoundaries, displayCalendar, placeholders, dayjsLocale, firstDayOfWeek, }: {
8
- value?: string | undefined;
7
+ export interface DateSelectorProps {
8
+ value?: string;
9
9
  onChange: (date: string) => void;
10
10
  yearBoundaries: {
11
11
  min: number;
12
12
  max: number;
13
13
  };
14
- displayCalendar?: boolean | undefined;
14
+ displayCalendar?: boolean;
15
+ dayjsLocale?: ILocale;
15
16
  placeholders?: {
16
- day?: string | undefined;
17
- month?: string | undefined;
18
- year?: string | undefined;
19
- } | undefined;
20
- dayjsLocale?: ILocale | undefined;
21
- firstDayOfWeek?: number | undefined;
22
- }) => JSX.Element;
23
- export default DateSelector;
17
+ day?: string;
18
+ month?: string;
19
+ year?: string;
20
+ };
21
+ firstDayOfWeek?: number;
22
+ }
23
+ export declare const DateSelector: ({ value, onChange, yearBoundaries, displayCalendar, placeholders, dayjsLocale, firstDayOfWeek, }: DateSelectorProps) => JSX.Element;
@@ -0,0 +1,65 @@
1
+ import { DateSelectorProps } from '.';
2
+ declare const story: {
3
+ title: string;
4
+ component: ({ value, onChange, yearBoundaries, displayCalendar, placeholders, dayjsLocale, firstDayOfWeek, }: DateSelectorProps) => JSX.Element;
5
+ decorators: ((Story: any) => JSX.Element)[];
6
+ argTypes: {
7
+ yearBoundaries: {
8
+ description: string;
9
+ defaultValue: {
10
+ min: number;
11
+ max: number;
12
+ };
13
+ };
14
+ displayCalendar: {
15
+ description: string;
16
+ defaultValue: boolean;
17
+ };
18
+ onChange: {
19
+ description: string;
20
+ action: boolean;
21
+ table: {
22
+ category: string;
23
+ type: {
24
+ summary: string;
25
+ };
26
+ };
27
+ };
28
+ value: {
29
+ defaultValue: string;
30
+ description: string;
31
+ table: {
32
+ type: {
33
+ summary: string;
34
+ };
35
+ };
36
+ };
37
+ dayjsLocale: {
38
+ description: string;
39
+ };
40
+ placeholders: {
41
+ description: string;
42
+ };
43
+ firstDayOfWeek: {
44
+ description: string;
45
+ };
46
+ };
47
+ parameters: {
48
+ componentSubtitle: string;
49
+ design: {
50
+ url: string;
51
+ type: string;
52
+ };
53
+ docs: {
54
+ source: {
55
+ excludeDecorators: boolean;
56
+ };
57
+ };
58
+ };
59
+ };
60
+ export declare const DateSelectorStory: {
61
+ ({ displayCalendar, onChange, yearBoundaries, value }: DateSelectorProps): JSX.Element;
62
+ storyName: string;
63
+ };
64
+ export declare const DateSelectorLocalisation: ({ onChange, value, yearBoundaries }: DateSelectorProps) => JSX.Element;
65
+ export default story;
@@ -1,16 +1,15 @@
1
1
  import React from 'react';
2
- export declare type InputProps = {
2
+ export declare type InputProps = Omit<JSX.IntrinsicElements['input'], 'enterKeyHint'> & Partial<Pick<JSX.IntrinsicElements['input'], 'enterKeyHint'>> & {
3
3
  error?: string;
4
4
  prefix?: string;
5
5
  label?: string;
6
6
  id?: string;
7
7
  hideLabel?: boolean;
8
- } & Omit<JSX.IntrinsicElements['input'], 'enterKeyHint'> & Partial<Pick<JSX.IntrinsicElements['input'], 'enterKeyHint'>>;
9
- declare const _default: React.ForwardRefExoticComponent<Pick<{
8
+ };
9
+ export declare const Input: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "enterKeyHint"> & Partial<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "enterKeyHint">> & {
10
10
  error?: string | undefined;
11
11
  prefix?: string | undefined;
12
12
  label?: string | undefined;
13
13
  id?: string | undefined;
14
14
  hideLabel?: boolean | undefined;
15
- } & Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "enterKeyHint"> & Partial<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "enterKeyHint">>, "className" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "children" | "onClick" | "error" | "hidden" | "type" | "list" | "value" | "onChange" | "dir" | "onBlur" | "onFocus" | "onKeyDown" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "disabled" | "enterKeyHint" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "readOnly" | "required" | "size" | "src" | "width" | "hideLabel"> & React.RefAttributes<HTMLInputElement>>;
16
- export default _default;
15
+ }, "className" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "children" | "onClick" | "error" | "hidden" | "type" | "list" | "value" | "onChange" | "dir" | "onBlur" | "onFocus" | "onKeyDown" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "disabled" | "enterKeyHint" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "readOnly" | "required" | "size" | "src" | "width" | "hideLabel"> & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,90 @@
1
+ /// <reference types="react" />
2
+ import { InputProps } from '.';
3
+ declare const story: {
4
+ title: string;
5
+ component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "enterKeyHint"> & Partial<Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "enterKeyHint">> & {
6
+ error?: string | undefined;
7
+ prefix?: string | undefined;
8
+ label?: string | undefined;
9
+ id?: string | undefined;
10
+ hideLabel?: boolean | undefined;
11
+ }, "className" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "children" | "onClick" | "error" | "hidden" | "type" | "list" | "value" | "onChange" | "dir" | "onBlur" | "onFocus" | "onKeyDown" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "disabled" | "enterKeyHint" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "readOnly" | "required" | "size" | "src" | "width" | "hideLabel"> & import("react").RefAttributes<HTMLInputElement>>;
12
+ argTypes: {
13
+ value: {
14
+ defaultValue: string;
15
+ description: string;
16
+ control: {
17
+ type: string;
18
+ };
19
+ };
20
+ className: {
21
+ description: string;
22
+ defaultValue: string;
23
+ control: {
24
+ type: string;
25
+ };
26
+ };
27
+ placeholder: {
28
+ description: string;
29
+ defaultValue: string;
30
+ control: {
31
+ type: string;
32
+ };
33
+ };
34
+ label: {
35
+ description: string;
36
+ defaultValue: string;
37
+ control: {
38
+ type: string;
39
+ };
40
+ };
41
+ hideLabel: {
42
+ description: string;
43
+ defaultValue: boolean;
44
+ control: {
45
+ type: string;
46
+ };
47
+ };
48
+ prefix: {
49
+ description: string;
50
+ defaultValue: string;
51
+ control: {
52
+ type: string;
53
+ };
54
+ };
55
+ id: {
56
+ description: string;
57
+ defaultValue: string;
58
+ control: {
59
+ type: string;
60
+ };
61
+ };
62
+ error: {
63
+ description: string;
64
+ defaultValue: string;
65
+ control: {
66
+ type: string;
67
+ };
68
+ table: {
69
+ type: {
70
+ summary: string;
71
+ };
72
+ };
73
+ };
74
+ onChange: {
75
+ description: string;
76
+ action: boolean;
77
+ table: {
78
+ category: string;
79
+ };
80
+ };
81
+ };
82
+ parameters: {
83
+ componentSubtitle: string;
84
+ };
85
+ };
86
+ export declare const InputStory: {
87
+ ({ onChange, className, placeholder, value, label, hideLabel, prefix, error }: InputProps): JSX.Element;
88
+ storyName: string;
89
+ };
90
+ export default story;
@@ -0,0 +1,71 @@
1
+ declare const sharedConfig: {
2
+ value: {
3
+ defaultValue: string;
4
+ description: string;
5
+ control: {
6
+ type: string;
7
+ };
8
+ };
9
+ className: {
10
+ description: string;
11
+ defaultValue: string;
12
+ control: {
13
+ type: string;
14
+ };
15
+ };
16
+ placeholder: {
17
+ description: string;
18
+ defaultValue: string;
19
+ control: {
20
+ type: string;
21
+ };
22
+ };
23
+ label: {
24
+ description: string;
25
+ defaultValue: string;
26
+ control: {
27
+ type: string;
28
+ };
29
+ };
30
+ hideLabel: {
31
+ description: string;
32
+ defaultValue: boolean;
33
+ control: {
34
+ type: string;
35
+ };
36
+ };
37
+ prefix: {
38
+ description: string;
39
+ defaultValue: string;
40
+ control: {
41
+ type: string;
42
+ };
43
+ };
44
+ id: {
45
+ description: string;
46
+ defaultValue: string;
47
+ control: {
48
+ type: string;
49
+ };
50
+ };
51
+ error: {
52
+ description: string;
53
+ defaultValue: string;
54
+ control: {
55
+ type: string;
56
+ };
57
+ table: {
58
+ type: {
59
+ summary: string;
60
+ };
61
+ };
62
+ };
63
+ onChange: {
64
+ description: string;
65
+ action: boolean;
66
+ table: {
67
+ category: string;
68
+ };
69
+ };
70
+ };
71
+ export default sharedConfig;
@@ -1,15 +1,15 @@
1
1
  import { AcceptType, FileType, TextOverrides, UploadedFile, UploadStatus } from './types';
2
2
  interface MultiDropzoneProps {
3
- accept?: AcceptType;
4
- onFileSelect: (files: File[]) => void;
5
3
  uploadedFiles: UploadedFile[];
6
4
  uploading: boolean;
5
+ onFileSelect: (files: File[]) => void;
7
6
  onRemoveFile: (id: string) => void;
7
+ accept?: AcceptType;
8
8
  isCondensed?: boolean;
9
9
  maxFiles?: number;
10
10
  maxSize?: number;
11
11
  textOverrides?: TextOverrides;
12
12
  }
13
- declare const MultiDropZone: ({ accept, uploadedFiles, onFileSelect, uploading, onRemoveFile, isCondensed, maxFiles, maxSize, textOverrides, }: MultiDropzoneProps) => JSX.Element;
13
+ declare const MultiDropzone: ({ uploadedFiles, onFileSelect, onRemoveFile, uploading, isCondensed, accept, maxFiles, maxSize, textOverrides, }: MultiDropzoneProps) => JSX.Element;
14
14
  export type { FileType, MultiDropzoneProps, UploadedFile, UploadStatus };
15
- export default MultiDropZone;
15
+ export { MultiDropzone };