@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.
- package/dist/cjs/index.js +25 -18
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/cards/cardButton/index.d.ts +8 -8
- package/dist/cjs/lib/components/cards/cardButton/index.stories.d.ts +39 -0
- package/dist/cjs/lib/components/cards/cardWithLeftIcon/index.d.ts +6 -12
- package/dist/cjs/lib/components/cards/cardWithLeftIcon/index.stories.d.ts +55 -0
- package/dist/cjs/lib/components/cards/cardWithTopIcon/index.d.ts +5 -11
- package/dist/cjs/lib/components/cards/cardWithTopIcon/index.stories.d.ts +59 -0
- package/dist/cjs/lib/components/cards/cardWithTopLeftIcon/index.d.ts +6 -12
- package/dist/cjs/lib/components/cards/cardWithTopLeftIcon/index.stories.d.ts +49 -0
- package/dist/cjs/lib/components/cards/index.d.ts +5 -5
- package/dist/cjs/lib/components/cards/infoCard/index.d.ts +4 -10
- package/dist/cjs/lib/components/cards/infoCard/index.stories.d.ts +47 -0
- package/dist/cjs/lib/components/dateSelector/index.d.ts +11 -11
- package/dist/cjs/lib/components/dateSelector/index.stories.d.ts +65 -0
- package/dist/cjs/lib/components/input/index.d.ts +4 -5
- package/dist/cjs/lib/components/input/input.stories.d.ts +90 -0
- package/dist/cjs/lib/components/input/stories/config.d.ts +71 -0
- package/dist/cjs/lib/components/multiDropzone/index.d.ts +4 -4
- package/dist/cjs/lib/components/multiDropzone/index.stories.d.ts +72 -0
- package/dist/cjs/lib/index.d.ts +3 -3
- package/dist/cjs/lib/util/images/index.d.ts +7 -0
- package/dist/esm/components/autocompleteAddress/index.js +1 -1
- package/dist/esm/components/autocompleteAddress/index.js.map +1 -1
- package/dist/esm/components/cards/cardButton/index.js +1 -1
- package/dist/esm/components/cards/cardButton/index.stories.js +49 -0
- package/dist/esm/components/cards/cardButton/index.stories.js.map +1 -0
- package/dist/esm/components/cards/cardWithLeftIcon/index.js +1 -1
- package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js +64 -0
- package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js.map +1 -0
- package/dist/esm/components/cards/cardWithTopIcon/index.js +1 -1
- package/dist/esm/components/cards/cardWithTopIcon/index.stories.js +68 -0
- package/dist/esm/components/cards/cardWithTopIcon/index.stories.js.map +1 -0
- package/dist/esm/components/cards/cardWithTopLeftIcon/index.js +1 -1
- package/dist/esm/components/cards/cardWithTopLeftIcon/index.stories.js +57 -0
- package/dist/esm/components/cards/cardWithTopLeftIcon/index.stories.js.map +1 -0
- package/dist/esm/components/cards/index.js +9 -9
- package/dist/esm/components/cards/index.js.map +1 -1
- package/dist/esm/components/cards/infoCard/index.js +1 -1
- package/dist/esm/components/cards/infoCard/index.stories.js +58 -0
- package/dist/esm/components/cards/infoCard/index.stories.js.map +1 -0
- package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableArrows/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js +1 -1
- package/dist/esm/components/dateSelector/index.js +6 -2179
- package/dist/esm/components/dateSelector/index.js.map +1 -1
- package/dist/esm/components/dateSelector/index.stories.js +92 -0
- package/dist/esm/components/dateSelector/index.stories.js.map +1 -0
- package/dist/esm/components/dateSelector/index.test.js +1 -1
- package/dist/esm/components/dateSelector/index.test.js.map +1 -1
- package/dist/esm/components/input/autoSuggestInput/index.js +1 -1
- package/dist/esm/components/input/autoSuggestInput/index.js.map +1 -1
- package/dist/esm/components/input/checkbox/index.stories.js +1 -1
- package/dist/esm/components/input/currency/index.js +1 -1
- package/dist/esm/components/input/currency/index.js.map +1 -1
- package/dist/esm/components/input/iban/index.js +1 -1
- package/dist/esm/components/input/iban/index.js.map +1 -1
- package/dist/esm/components/input/index.js +1 -1
- package/dist/esm/components/input/index.js.map +1 -1
- package/dist/esm/components/input/input.stories.js +85 -0
- package/dist/esm/components/input/input.stories.js.map +1 -0
- package/dist/esm/components/multiDropzone/index.js +3 -3
- package/dist/esm/components/multiDropzone/index.js.map +1 -1
- package/dist/esm/components/multiDropzone/index.stories.js +147 -0
- package/dist/esm/components/multiDropzone/index.stories.js.map +1 -0
- package/dist/esm/components/multiDropzone/index.test.js +2 -2
- package/dist/esm/components/multiDropzone/index.test.js.map +1 -1
- package/dist/esm/{index-e81a1766.js → index-31224f74.js} +8 -1
- package/dist/esm/index-31224f74.js.map +1 -0
- package/dist/esm/index-47663d39.js.map +1 -1
- package/dist/esm/index-639cf8b3.js +2179 -0
- package/dist/esm/index-639cf8b3.js.map +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/lib/components/cards/cardButton/index.d.ts +8 -8
- package/dist/esm/lib/components/cards/cardButton/index.stories.d.ts +39 -0
- package/dist/esm/lib/components/cards/cardWithLeftIcon/index.d.ts +6 -12
- package/dist/esm/lib/components/cards/cardWithLeftIcon/index.stories.d.ts +55 -0
- package/dist/esm/lib/components/cards/cardWithTopIcon/index.d.ts +5 -11
- package/dist/esm/lib/components/cards/cardWithTopIcon/index.stories.d.ts +59 -0
- package/dist/esm/lib/components/cards/cardWithTopLeftIcon/index.d.ts +6 -12
- package/dist/esm/lib/components/cards/cardWithTopLeftIcon/index.stories.d.ts +49 -0
- package/dist/esm/lib/components/cards/index.d.ts +5 -5
- package/dist/esm/lib/components/cards/infoCard/index.d.ts +4 -10
- package/dist/esm/lib/components/cards/infoCard/index.stories.d.ts +47 -0
- package/dist/esm/lib/components/dateSelector/index.d.ts +11 -11
- package/dist/esm/lib/components/dateSelector/index.stories.d.ts +65 -0
- package/dist/esm/lib/components/input/index.d.ts +4 -5
- package/dist/esm/lib/components/input/input.stories.d.ts +90 -0
- package/dist/esm/lib/components/input/stories/config.d.ts +71 -0
- package/dist/esm/lib/components/multiDropzone/index.d.ts +4 -4
- package/dist/esm/lib/components/multiDropzone/index.stories.d.ts +72 -0
- package/dist/esm/lib/index.d.ts +3 -3
- package/dist/esm/lib/util/images/index.d.ts +7 -0
- package/dist/esm/scss/public/demo.js +1 -1
- package/dist/esm/scss/public/demo.js.map +1 -1
- package/dist/esm/util/images/index.stories.js +1 -1
- package/dist/index.css +10 -10
- package/dist/lib/scss/public/colors/default.scss +2 -2
- package/dist/lib/scss/public/demo.tsx +1 -1
- package/package.json +1 -1
- package/src/App.tsx +1 -1
- package/src/lib/components/autocompleteAddress/index.tsx +1 -1
- package/src/lib/components/cards/cardButton/index.stories.tsx +61 -0
- package/src/lib/components/cards/cardButton/index.tsx +9 -10
- package/src/lib/components/cards/cardWithLeftIcon/index.stories.tsx +79 -0
- package/src/lib/components/cards/cardWithLeftIcon/index.tsx +8 -6
- package/src/lib/components/cards/cardWithTopIcon/index.stories.tsx +85 -0
- package/src/lib/components/cards/cardWithTopIcon/index.tsx +9 -7
- package/src/lib/components/cards/cardWithTopLeftIcon/index.stories.tsx +73 -0
- package/src/lib/components/cards/cardWithTopLeftIcon/index.tsx +8 -6
- package/src/lib/components/cards/index.tsx +5 -5
- package/src/lib/components/cards/infoCard/index.stories.tsx +71 -0
- package/src/lib/components/cards/infoCard/index.tsx +7 -5
- package/src/lib/components/dateSelector/index.stories.tsx +104 -0
- package/src/lib/components/dateSelector/index.test.tsx +2 -2
- package/src/lib/components/dateSelector/index.tsx +14 -14
- package/src/lib/components/input/a.stories.mdx +2 -2
- package/src/lib/components/input/autoSuggestInput/index.tsx +1 -1
- package/src/lib/components/input/currency/index.tsx +1 -1
- package/src/lib/components/input/iban/index.tsx +1 -1
- package/src/lib/components/input/index.tsx +4 -4
- package/src/lib/components/input/input.stories.tsx +48 -0
- package/src/lib/components/input/stories/config.ts +56 -0
- package/src/lib/components/multiDropzone/index.stories.tsx +228 -0
- package/src/lib/components/multiDropzone/index.test.tsx +1 -1
- package/src/lib/components/multiDropzone/index.tsx +6 -6
- package/src/lib/index.tsx +4 -3
- package/src/lib/scss/public/colors/default.scss +2 -2
- package/src/lib/scss/public/demo.tsx +1 -1
- package/src/lib/util/images/index.ts +7 -0
- package/dist/esm/index-e81a1766.js.map +0 -1
- package/src/lib/components/cards/cardButton/index.stories.mdx +0 -47
- package/src/lib/components/cards/cardWithLeftIcon/index.stories.mdx +0 -103
- package/src/lib/components/cards/cardWithTopIcon/index.stories.mdx +0 -105
- package/src/lib/components/cards/cardWithTopLeftIcon/index.stories.mdx +0 -101
- package/src/lib/components/cards/infoCard/index.stories.mdx +0 -61
- package/src/lib/components/dateSelector/index.stories.mdx +0 -106
- package/src/lib/components/input/index.stories.mdx +0 -108
- 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
|
|
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?:
|
|
13
|
-
rightIcon?:
|
|
14
|
-
}
|
|
15
|
-
export
|
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
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?:
|
|
12
|
-
}
|
|
13
|
-
export
|
|
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
|
-
|
|
8
|
-
value?: string
|
|
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
|
|
14
|
+
displayCalendar?: boolean;
|
|
15
|
+
dayjsLocale?: ILocale;
|
|
15
16
|
placeholders?: {
|
|
16
|
-
day?: string
|
|
17
|
-
month?: string
|
|
18
|
-
year?: string
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
}
|
|
9
|
-
declare const
|
|
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
|
-
}
|
|
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
|
|
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
|
|
15
|
+
export { MultiDropzone };
|