@popsure/dirty-swan 0.34.0 → 0.36.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.d.ts +1 -1
- package/dist/cjs/index.js +159 -114
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/badge/index.d.ts +10 -0
- package/dist/cjs/lib/components/badge/index.stories.d.ts +34 -0
- package/dist/cjs/lib/components/badge/index.test.d.ts +1 -0
- package/dist/cjs/lib/components/cards/cardWithLeftIcon/index.d.ts +6 -3
- package/dist/cjs/lib/components/cards/cardWithLeftIcon/index.stories.d.ts +13 -2
- package/dist/cjs/lib/components/chip/index.d.ts +2 -1
- package/dist/cjs/lib/components/informationBox/index.d.ts +12 -0
- package/dist/cjs/lib/components/informationBox/index.stories.d.ts +35 -0
- package/dist/cjs/lib/components/informationBox/index.test.d.ts +1 -0
- package/dist/cjs/lib/components/input/autoSuggestInput/index.d.ts +7 -7
- package/dist/cjs/lib/components/input/autoSuggestInput/index.stories.d.ts +84 -0
- package/dist/cjs/lib/components/input/autoSuggestMultiSelect/index.d.ts +7 -7
- package/dist/cjs/lib/components/input/autoSuggestMultiSelect/index.stories.d.ts +77 -0
- package/dist/cjs/lib/components/link/index.d.ts +2 -0
- package/dist/cjs/lib/components/link/index.stories.d.ts +26 -0
- package/dist/cjs/lib/index.d.ts +6 -3
- package/dist/esm/components/autocompleteAddress/index.test.js +1 -1
- package/dist/esm/components/badge/index.js +27 -0
- package/dist/esm/components/badge/index.js.map +1 -0
- package/dist/esm/components/badge/index.stories.js +39 -0
- package/dist/esm/components/badge/index.stories.js.map +1 -0
- package/dist/esm/components/badge/index.test.js +21 -0
- package/dist/esm/components/badge/index.test.js.map +1 -0
- package/dist/esm/components/cards/cardButton/index.js +2 -1
- package/dist/esm/components/cards/cardButton/index.js.map +1 -1
- package/dist/esm/components/cards/cardButton/index.stories.js +2 -1
- package/dist/esm/components/cards/cardButton/index.stories.js.map +1 -1
- package/dist/esm/components/cards/cardWithLeftIcon/index.js +2 -1
- package/dist/esm/components/cards/cardWithLeftIcon/index.js.map +1 -1
- package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js +15 -3
- package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js.map +1 -1
- package/dist/esm/components/cards/cardWithTopIcon/index.js +2 -1
- package/dist/esm/components/cards/cardWithTopIcon/index.js.map +1 -1
- package/dist/esm/components/cards/cardWithTopIcon/index.stories.js +2 -1
- package/dist/esm/components/cards/cardWithTopIcon/index.stories.js.map +1 -1
- package/dist/esm/components/cards/cardWithTopLeftIcon/index.js +2 -1
- package/dist/esm/components/cards/cardWithTopLeftIcon/index.js.map +1 -1
- package/dist/esm/components/cards/cardWithTopLeftIcon/index.stories.js +2 -1
- package/dist/esm/components/cards/cardWithTopLeftIcon/index.stories.js.map +1 -1
- package/dist/esm/components/cards/index.js +7 -5
- package/dist/esm/components/cards/index.js.map +1 -1
- package/dist/esm/components/cards/infoCard/index.js +2 -1
- package/dist/esm/components/cards/infoCard/index.js.map +1 -1
- package/dist/esm/components/cards/infoCard/index.stories.js +2 -1
- package/dist/esm/components/cards/infoCard/index.stories.js.map +1 -1
- package/dist/esm/components/chip/index.js +2 -2
- package/dist/esm/components/chip/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableButton/index.test.js +2 -2
- package/dist/esm/components/comparisonTable/components/TableRowHeader/index.test.js +2 -2
- package/dist/esm/components/dateSelector/index.test.js +1 -1
- package/dist/esm/components/informationBox/index.js +19 -0
- package/dist/esm/components/informationBox/index.js.map +1 -0
- package/dist/esm/components/informationBox/index.stories.js +42 -0
- package/dist/esm/components/informationBox/index.stories.js.map +1 -0
- package/dist/esm/components/informationBox/index.test.js +49 -0
- package/dist/esm/components/informationBox/index.test.js.map +1 -0
- package/dist/esm/components/input/autoSuggestInput/index.js +3 -3
- package/dist/esm/components/input/autoSuggestInput/index.js.map +1 -1
- package/dist/esm/components/input/autoSuggestInput/index.stories.js +131 -0
- package/dist/esm/components/input/autoSuggestInput/index.stories.js.map +1 -0
- package/dist/esm/components/input/autoSuggestMultiSelect/index.js +17 -13
- package/dist/esm/components/input/autoSuggestMultiSelect/index.js.map +1 -1
- package/dist/esm/components/input/autoSuggestMultiSelect/index.stories.js +107 -0
- package/dist/esm/components/input/autoSuggestMultiSelect/index.stories.js.map +1 -0
- package/dist/esm/components/input/checkbox/index.test.js +1 -1
- package/dist/esm/components/input/currency/index.test.js +1 -1
- package/dist/esm/components/link/index.js +11 -0
- package/dist/esm/components/link/index.js.map +1 -0
- package/dist/esm/components/link/index.stories.js +33 -0
- package/dist/esm/components/link/index.stories.js.map +1 -0
- package/dist/esm/components/multiDropzone/index.test.js +2 -2
- package/dist/esm/components/segmentedControl/index.test.js +1 -1
- package/dist/esm/{customRender-4157fcff.js → customRender-20b5f7ec.js} +3 -3
- package/dist/esm/{customRender-4157fcff.js.map → customRender-20b5f7ec.js.map} +1 -1
- package/dist/esm/{extend-expect-46bdce4a.js → extend-expect-25e5049d.js} +2 -2
- package/dist/esm/{extend-expect-46bdce4a.js.map → extend-expect-25e5049d.js.map} +1 -1
- package/dist/esm/feather-logo-a3f07990.js +4 -0
- package/dist/esm/feather-logo-a3f07990.js.map +1 -0
- package/dist/esm/{index-47663d39.js → index-29ac387a.js} +3 -4
- package/dist/esm/index-29ac387a.js.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +7 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/components/badge/index.d.ts +10 -0
- package/dist/esm/lib/components/badge/index.stories.d.ts +34 -0
- package/dist/esm/lib/components/badge/index.test.d.ts +1 -0
- package/dist/esm/lib/components/cards/cardWithLeftIcon/index.d.ts +6 -3
- package/dist/esm/lib/components/cards/cardWithLeftIcon/index.stories.d.ts +13 -2
- package/dist/esm/lib/components/chip/index.d.ts +2 -1
- package/dist/esm/lib/components/informationBox/index.d.ts +12 -0
- package/dist/esm/lib/components/informationBox/index.stories.d.ts +35 -0
- package/dist/esm/lib/components/informationBox/index.test.d.ts +1 -0
- package/dist/esm/lib/components/input/autoSuggestInput/index.d.ts +7 -7
- package/dist/esm/lib/components/input/autoSuggestInput/index.stories.d.ts +84 -0
- package/dist/esm/lib/components/input/autoSuggestMultiSelect/index.d.ts +7 -7
- package/dist/esm/lib/components/input/autoSuggestMultiSelect/index.stories.d.ts +77 -0
- package/dist/esm/lib/components/link/index.d.ts +2 -0
- package/dist/esm/lib/components/link/index.stories.d.ts +26 -0
- package/dist/esm/lib/index.d.ts +6 -3
- package/dist/esm/util/testUtils/customRender.js +1 -1
- package/package.json +1 -1
- package/src/index.tsx +3 -0
- package/src/lib/components/badge/index.stories.tsx +45 -0
- package/src/lib/components/badge/index.test.tsx +11 -0
- package/src/lib/components/badge/index.tsx +54 -0
- package/src/lib/components/badge/style.module.scss +13 -0
- package/src/lib/components/cards/cardWithLeftIcon/index.stories.tsx +15 -0
- package/src/lib/components/cards/cardWithLeftIcon/index.tsx +19 -5
- package/src/lib/components/chip/index.tsx +3 -1
- package/src/lib/components/informationBox/index.stories.tsx +51 -0
- package/src/lib/components/informationBox/index.test.tsx +55 -0
- package/src/lib/components/informationBox/index.tsx +65 -0
- package/src/lib/components/informationBox/info.svg +11 -0
- package/src/lib/components/informationBox/style.module.scss +62 -0
- package/src/lib/components/input/autoSuggestInput/index.stories.tsx +162 -0
- package/src/lib/components/input/autoSuggestInput/index.tsx +15 -13
- package/src/lib/components/input/autoSuggestMultiSelect/index.stories.tsx +125 -0
- package/src/lib/components/input/autoSuggestMultiSelect/index.tsx +42 -29
- package/src/lib/components/input/autoSuggestMultiSelect/style.module.scss +6 -0
- package/src/lib/components/link/index.stories.tsx +29 -0
- package/src/lib/components/link/index.tsx +9 -0
- package/src/lib/index.tsx +8 -2
- package/dist/esm/index-47663d39.js.map +0 -1
- package/src/lib/components/input/autoSuggestInput/index.stories.mdx +0 -138
- package/src/lib/components/input/autoSuggestMultiSelect/index.stories.mdx +0 -115
- package/src/lib/scss/private/components/badge.stories.mdx +0 -43
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare type Variant = 'warning' | 'error' | 'success' | 'information' | 'neutral' | 'neutral200' | 'neutral300' | 'primary' | 'primary900';
|
|
3
|
+
export interface BadgeProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
variant?: Variant;
|
|
6
|
+
size?: 'small' | 'medium' | 'large';
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare const Badge: ({ className, size, variant, children, }: BadgeProps) => JSX.Element;
|
|
10
|
+
export { Badge };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BadgeProps } from '.';
|
|
2
|
+
declare const story: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ className, size, variant, children, }: BadgeProps) => JSX.Element;
|
|
5
|
+
argTypes: {
|
|
6
|
+
children: {
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
defaultValue: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
className: {
|
|
14
|
+
defaultValue: string;
|
|
15
|
+
description: string;
|
|
16
|
+
control: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
defaultValue: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
variant: {
|
|
25
|
+
defaultValue: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const BadgeStory: {
|
|
31
|
+
({ children, className, size, variant, }: BadgeProps): JSX.Element;
|
|
32
|
+
storyName: string;
|
|
33
|
+
};
|
|
34
|
+
export default story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { CardProps } from '..';
|
|
2
|
-
import { Icon } from '../icons';
|
|
3
|
-
export declare type CardWithLeftIconProps = CardProps & {
|
|
2
|
+
import { Icon, IconSize } from '../icons';
|
|
3
|
+
export declare type CardWithLeftIconProps = Omit<CardProps, 'title'> & {
|
|
4
4
|
cardSize?: 'xsmall' | 'small' | 'medium' | 'big';
|
|
5
5
|
leftIcon?: Icon;
|
|
6
6
|
rightIcon?: 'arrow' | Icon;
|
|
7
|
+
leftIconSize?: IconSize;
|
|
8
|
+
title?: string;
|
|
9
|
+
subtitle?: string;
|
|
7
10
|
};
|
|
8
|
-
export declare const CardWithLeftIcon: ({ className, title, cardSize, children, leftIcon, rightIcon, state, dropshadow, ...props }: CardWithLeftIconProps) => JSX.Element;
|
|
11
|
+
export declare const CardWithLeftIcon: ({ className, title, subtitle, cardSize, children, leftIcon, rightIcon, state, dropshadow, leftIconSize, ...props }: CardWithLeftIconProps) => JSX.Element;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { CardWithLeftIconProps } from '.';
|
|
2
2
|
declare const story: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ className, title, cardSize, children, leftIcon, rightIcon, state, dropshadow, ...props }: CardWithLeftIconProps) => JSX.Element;
|
|
4
|
+
component: ({ className, title, subtitle, cardSize, children, leftIcon, rightIcon, state, dropshadow, leftIconSize, ...props }: CardWithLeftIconProps) => JSX.Element;
|
|
5
5
|
argTypes: {
|
|
6
6
|
title: {
|
|
7
7
|
defaultValue: string;
|
|
8
8
|
description: string;
|
|
9
9
|
};
|
|
10
|
+
subtitle: {
|
|
11
|
+
defaultValue: string;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
10
14
|
children: {
|
|
11
15
|
type: string;
|
|
12
16
|
defaultValue: string;
|
|
@@ -23,6 +27,13 @@ declare const story: {
|
|
|
23
27
|
};
|
|
24
28
|
description: string;
|
|
25
29
|
};
|
|
30
|
+
leftIconSize: {
|
|
31
|
+
defaultValue: {
|
|
32
|
+
width: number;
|
|
33
|
+
height: number;
|
|
34
|
+
};
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
26
37
|
rightIcon: {
|
|
27
38
|
defaultValue: {
|
|
28
39
|
src: "https://assets.cdn.feather-insurance.com/assets/images/washingMachine.svg";
|
|
@@ -49,7 +60,7 @@ declare const story: {
|
|
|
49
60
|
};
|
|
50
61
|
};
|
|
51
62
|
export declare const CardWithLeftIconStory: {
|
|
52
|
-
({ title, dropshadow, children, className, cardSize, leftIcon, rightIcon, state, }: CardWithLeftIconProps): JSX.Element;
|
|
63
|
+
({ title, subtitle, dropshadow, children, className, cardSize, leftIcon, leftIconSize, rightIcon, state, }: CardWithLeftIconProps): JSX.Element;
|
|
53
64
|
storyName: string;
|
|
54
65
|
};
|
|
55
66
|
export default story;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Option } from '../../models/autoSuggestInput';
|
|
2
|
-
declare const _default: ({ value, onRemove, }: {
|
|
2
|
+
declare const _default: ({ className, value, onRemove, }: {
|
|
3
3
|
value: Option;
|
|
4
4
|
onRemove: (value: Option) => void;
|
|
5
|
+
className?: string | undefined;
|
|
5
6
|
}) => JSX.Element;
|
|
6
7
|
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare type Variant = 'warning' | 'error' | 'success' | 'information' | 'neutral';
|
|
3
|
+
export interface InformationBoxProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
variant?: Variant;
|
|
6
|
+
title?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
showIcon?: boolean;
|
|
9
|
+
size?: 'default' | 'small';
|
|
10
|
+
}
|
|
11
|
+
declare const InformationBox: ({ className, variant, title, children, showIcon, size }: InformationBoxProps) => JSX.Element;
|
|
12
|
+
export { InformationBox };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { InformationBoxProps } from '.';
|
|
2
|
+
declare const story: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ className, variant, title, children, showIcon, size }: InformationBoxProps) => JSX.Element;
|
|
5
|
+
argTypes: {
|
|
6
|
+
children: {
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
defaultValue: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
title: {
|
|
14
|
+
defaultValue: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
showIcon: {
|
|
18
|
+
defaultValue: boolean;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
defaultValue: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
variant: {
|
|
26
|
+
defaultValue: string;
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const InformationBoxStory: {
|
|
32
|
+
({ children, showIcon, title, size, variant, }: InformationBoxProps): JSX.Element;
|
|
33
|
+
storyName: string;
|
|
34
|
+
};
|
|
35
|
+
export default story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RenderInputComponentProps } from 'react-autosuggest';
|
|
2
2
|
import { Option } from '../../../models/autoSuggestInput';
|
|
3
|
-
|
|
3
|
+
export interface AutoSuggestInputProps {
|
|
4
4
|
currentOption: string;
|
|
5
5
|
suggestions: Option[];
|
|
6
6
|
handleSuggestionSelected: (value: Option) => void;
|
|
@@ -8,8 +8,8 @@ declare const _default: ({ currentOption, suggestions, handleSuggestionSelected,
|
|
|
8
8
|
handleSuggestionFetchRequest: (value: Option) => void;
|
|
9
9
|
handleSuggestionClearRequest: () => void;
|
|
10
10
|
placeholder: string;
|
|
11
|
-
className?: string
|
|
12
|
-
wrapText?: boolean
|
|
13
|
-
inputProps?: Omit<
|
|
14
|
-
}
|
|
15
|
-
export
|
|
11
|
+
className?: string;
|
|
12
|
+
wrapText?: boolean;
|
|
13
|
+
inputProps?: Omit<RenderInputComponentProps, 'value' | 'onChange'>;
|
|
14
|
+
}
|
|
15
|
+
export declare const AutoSuggestInput: ({ currentOption, suggestions, handleSuggestionSelected, onChange, handleSuggestionFetchRequest, handleSuggestionClearRequest, placeholder, className, wrapText, inputProps }: AutoSuggestInputProps) => JSX.Element;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { AutoSuggestInputProps } from '.';
|
|
2
|
+
declare const story: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ currentOption, suggestions, handleSuggestionSelected, onChange, handleSuggestionFetchRequest, handleSuggestionClearRequest, placeholder, className, wrapText, inputProps }: AutoSuggestInputProps) => JSX.Element;
|
|
5
|
+
argTypes: {
|
|
6
|
+
suggestions: {
|
|
7
|
+
description: string;
|
|
8
|
+
defaultValue: {
|
|
9
|
+
value: string;
|
|
10
|
+
leftIcon: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
currentOption: {
|
|
14
|
+
defaultValue: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
placeholder: {
|
|
18
|
+
defaultValue: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
className: {
|
|
22
|
+
defaultValue: string;
|
|
23
|
+
description: string;
|
|
24
|
+
control: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
wrapText: {
|
|
29
|
+
defaultValue: boolean;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
inputProps: {
|
|
33
|
+
defaultValue: {};
|
|
34
|
+
description: string;
|
|
35
|
+
control: {
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
38
|
+
table: {
|
|
39
|
+
type: {
|
|
40
|
+
summary: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
handleSuggestionSelected: {
|
|
45
|
+
description: string;
|
|
46
|
+
action: boolean;
|
|
47
|
+
table: {
|
|
48
|
+
category: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
onChange: {
|
|
52
|
+
description: string;
|
|
53
|
+
action: boolean;
|
|
54
|
+
table: {
|
|
55
|
+
category: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
handleSuggestionFetchRequest: {
|
|
59
|
+
description: string;
|
|
60
|
+
action: boolean;
|
|
61
|
+
table: {
|
|
62
|
+
category: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
handleSuggestionClearRequest: {
|
|
66
|
+
description: string;
|
|
67
|
+
action: boolean;
|
|
68
|
+
table: {
|
|
69
|
+
category: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
parameters: {
|
|
74
|
+
componentSubtitle: string;
|
|
75
|
+
customTypes: {
|
|
76
|
+
Option: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const AutoSuggestInputStory: {
|
|
81
|
+
({ currentOption, suggestions, handleSuggestionSelected, onChange, handleSuggestionFetchRequest, handleSuggestionClearRequest, placeholder, className, wrapText, inputProps, }: AutoSuggestInputProps): JSX.Element;
|
|
82
|
+
storyName: string;
|
|
83
|
+
};
|
|
84
|
+
export default story;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Option } from '../../../models/autoSuggestInput';
|
|
2
|
-
|
|
2
|
+
export interface AutoSuggestMultiSelectProps {
|
|
3
3
|
options: Option[];
|
|
4
|
-
selectedValues?: Option[]
|
|
4
|
+
selectedValues?: Option[];
|
|
5
5
|
setValues: (values: Option[]) => void;
|
|
6
6
|
placeholder: string;
|
|
7
|
-
chipsListClassName?: string
|
|
8
|
-
multiSelectClassName?: string
|
|
9
|
-
wrapText?: boolean
|
|
10
|
-
}
|
|
11
|
-
export
|
|
7
|
+
chipsListClassName?: string;
|
|
8
|
+
multiSelectClassName?: string;
|
|
9
|
+
wrapText?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const AutoSuggestMultiSelect: ({ options, selectedValues, setValues, placeholder, chipsListClassName, multiSelectClassName, wrapText, }: AutoSuggestMultiSelectProps) => JSX.Element;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { AutoSuggestMultiSelectProps } from '.';
|
|
2
|
+
declare const story: {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle: string;
|
|
5
|
+
component: ({ options, selectedValues, setValues, placeholder, chipsListClassName, multiSelectClassName, wrapText, }: AutoSuggestMultiSelectProps) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
options: {
|
|
8
|
+
description: string;
|
|
9
|
+
defaultValue: {
|
|
10
|
+
value: string;
|
|
11
|
+
leftIcon: string;
|
|
12
|
+
}[];
|
|
13
|
+
table: {
|
|
14
|
+
type: {
|
|
15
|
+
summary: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
selectedValues: {
|
|
20
|
+
description: string;
|
|
21
|
+
defaultValue: {
|
|
22
|
+
value: string;
|
|
23
|
+
leftIcon: string;
|
|
24
|
+
}[];
|
|
25
|
+
table: {
|
|
26
|
+
type: {
|
|
27
|
+
summary: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
placeholder: {
|
|
32
|
+
defaultValue: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
chipsListClassName: {
|
|
36
|
+
defaultValue: string;
|
|
37
|
+
description: string;
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
multiSelectClassName: {
|
|
43
|
+
defaultValue: string;
|
|
44
|
+
description: string;
|
|
45
|
+
control: {
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
wrapText: {
|
|
50
|
+
defaultValue: boolean;
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
setValues: {
|
|
54
|
+
description: string;
|
|
55
|
+
action: boolean;
|
|
56
|
+
table: {
|
|
57
|
+
category: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
parameters: {
|
|
62
|
+
componentSubtitle: string;
|
|
63
|
+
docs: {
|
|
64
|
+
description: {
|
|
65
|
+
component: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
customTypes: {
|
|
69
|
+
Option: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export declare const AutoSuggestMultiSelectStory: {
|
|
74
|
+
({ options, selectedValues, setValues, placeholder, chipsListClassName, multiSelectClassName, wrapText, }: AutoSuggestMultiSelectProps): JSX.Element;
|
|
75
|
+
storyName: string;
|
|
76
|
+
};
|
|
77
|
+
export default story;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LinkProps } from '.';
|
|
3
|
+
declare const story: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ children, className, ...rest }: import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
children: {
|
|
8
|
+
control: string;
|
|
9
|
+
defaultValue: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
href: {
|
|
13
|
+
control: string;
|
|
14
|
+
defaultValue: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
parameters: {
|
|
19
|
+
componentSubtitle: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const LinkStory: {
|
|
23
|
+
({ children, href, ...rest }: LinkProps): JSX.Element;
|
|
24
|
+
storyName: string;
|
|
25
|
+
};
|
|
26
|
+
export default story;
|
package/dist/cjs/lib/index.d.ts
CHANGED
|
@@ -4,19 +4,22 @@ import { AutocompleteAddress } from './components/autocompleteAddress';
|
|
|
4
4
|
import { Input } from './components/input';
|
|
5
5
|
import { MultiDropzone, FileType, MultiDropzoneProps, UploadedFile, UploadStatus } from './components/multiDropzone';
|
|
6
6
|
import { DownloadButton } from './components/downloadButton';
|
|
7
|
+
import { InformationBox } from './components/informationBox';
|
|
7
8
|
import IbanInput from './components/input/iban';
|
|
8
9
|
import CurrencyInput from './components/input/currency';
|
|
10
|
+
import { Badge } from './components/badge';
|
|
9
11
|
import { Checkbox } from './components/input/checkbox';
|
|
10
12
|
import { BottomModal, RegularModal, BottomOrRegularModal } from './components/modal';
|
|
11
13
|
import { CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton } from './components/cards';
|
|
12
14
|
import Button from './components/button';
|
|
13
|
-
import AutoSuggestMultiSelect from './components/input/autoSuggestMultiSelect';
|
|
15
|
+
import { AutoSuggestMultiSelect } from './components/input/autoSuggestMultiSelect';
|
|
14
16
|
import Chip from './components/chip';
|
|
15
|
-
import AutoSuggestInput from './components/input/autoSuggestInput';
|
|
17
|
+
import { AutoSuggestInput } from './components/input/autoSuggestInput';
|
|
16
18
|
import { ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, TableHeader } from './components/comparisonTable';
|
|
17
19
|
import { SegmentedControl } from './components/segmentedControl';
|
|
18
20
|
import { Markdown } from './components/markdown';
|
|
21
|
+
import { Link } from './components/link';
|
|
19
22
|
import { images } from './util/images';
|
|
20
|
-
export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, DownloadButton, IbanInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, CurrencyInput, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, Markdown, Checkbox, images, };
|
|
23
|
+
export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, DownloadButton, IbanInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, CurrencyInput, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, Markdown, Checkbox, Link, InformationBox, Badge, images, };
|
|
21
24
|
export type { FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus };
|
|
22
25
|
export type { DownloadStatus } from './models/download';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as __awaiter, c as __generator } from '../../tslib.es6-5bc94358.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { c as customRender, f as fireEvent } from '../../customRender-
|
|
3
|
+
import { c as customRender, f as fireEvent } from '../../customRender-20b5f7ec.js';
|
|
4
4
|
import { AutocompleteAddress } from './index.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'react-dom';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { _ as __assign } from '../../tslib.es6-5bc94358.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { c as classnames } from '../../index-e9e37a34.js';
|
|
4
|
+
import { s as styleInject } from '../../style-inject.es-1f59c1d0.js';
|
|
5
|
+
|
|
6
|
+
var css_248z = ".style-module_badge--small__cHO6v, .style-module_badge--medium__3CekE {\n padding-bottom: 6px;\n padding-top: 6px;\n}\n.style-module_badge--large__3_tWC {\n padding-bottom: 8px;\n padding-top: 8px;\n}";
|
|
7
|
+
var styles = {"badge--small":"style-module_badge--small__cHO6v","badge--medium":"style-module_badge--medium__3CekE","badge--large":"style-module_badge--large__3_tWC"};
|
|
8
|
+
styleInject(css_248z);
|
|
9
|
+
|
|
10
|
+
var getVariantClassNames = function (variant) { return ({
|
|
11
|
+
information: 'bg-blue-100',
|
|
12
|
+
neutral: 'bg-white',
|
|
13
|
+
neutral200: 'bg-grey-200',
|
|
14
|
+
neutral300: 'bg-grey-300',
|
|
15
|
+
warning: 'bg-yellow-100',
|
|
16
|
+
error: 'bg-red-100',
|
|
17
|
+
success: 'bg-green-100',
|
|
18
|
+
primary: 'bg-purple-100',
|
|
19
|
+
primary900: 'bg-purple-900 tc-white',
|
|
20
|
+
}[variant]); };
|
|
21
|
+
var Badge = function (_a) {
|
|
22
|
+
var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.variant, variant = _d === void 0 ? 'information' : _d, children = _a.children;
|
|
23
|
+
return (jsx("div", __assign({ className: classnames(className, 'px16 br8 d-inline-block ai-center fw-bold p-p', { 'p-p--small': size === 'small' }, styles["badge--" + size], getVariantClassNames(variant)) }, { children: children }), void 0));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { Badge };
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/lib/components/badge/index.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport classNames from 'classnames';\nimport styles from './style.module.scss';\n\ntype Variant = \n | 'warning'\n | 'error'\n | 'success'\n | 'information'\n | 'neutral'\n | 'neutral200'\n | 'neutral300'\n | 'primary'\n | 'primary900';\n\nexport interface BadgeProps {\n className?: string;\n variant?: Variant;\n size?: 'small' | 'medium' | 'large';\n children: ReactNode;\n}\n\nconst getVariantClassNames = (variant: Variant) => ({\n information: 'bg-blue-100',\n neutral: 'bg-white',\n neutral200: 'bg-grey-200',\n neutral300: 'bg-grey-300',\n warning: 'bg-yellow-100',\n error: 'bg-red-100',\n success: 'bg-green-100',\n primary: 'bg-purple-100',\n primary900: 'bg-purple-900 tc-white',\n}[variant])\n\nconst Badge = ({\n className = '',\n size = 'medium',\n variant = 'information',\n children,\n}: BadgeProps) => (\n <div\n className={classNames(\n className, \n 'px16 br8 d-inline-block ai-center fw-bold p-p', \n { 'p-p--small': size === 'small' },\n styles[`badge--${size}`],\n getVariantClassNames(variant)\n )}\n >\n {children}\n </div>\n);\n\nexport { Badge };\n"],"names":["_jsx","classNames"],"mappings":";;;;;;;;;AAsBA,IAAM,oBAAoB,GAAG,UAAC,OAAgB,IAAK,QAAC;IAClD,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,aAAa;IACzB,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,eAAe;IACxB,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,eAAe;IACxB,UAAU,EAAE,wBAAwB;CACrC,CAAC,OAAO,CAAC,IAAC,CAAA;IAEL,KAAK,GAAG,UAAC,EAKF;QAJX,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,YAAe,EAAf,IAAI,mBAAG,QAAQ,KAAA,EACf,eAAuB,EAAvB,OAAO,mBAAG,aAAa,KAAA,EACvB,QAAQ,cAAA;IACQ,QAChBA,sBACE,SAAS,EAAEC,UAAU,CACnB,SAAS,EACT,+CAA+C,EAC/C,EAAE,YAAY,EAAE,IAAI,KAAK,OAAO,EAAE,EAClC,MAAM,CAAC,YAAU,IAAM,CAAC,EACxB,oBAAoB,CAAC,OAAO,CAAC,CAC9B,gBAEA,QAAQ,YACL;AAXU;;;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { _ as __assign } from '../../tslib.es6-5bc94358.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { Badge } from './index.js';
|
|
4
|
+
import '../../index-e9e37a34.js';
|
|
5
|
+
import '../../style-inject.es-1f59c1d0.js';
|
|
6
|
+
|
|
7
|
+
var story = {
|
|
8
|
+
title: 'JSX/Badge',
|
|
9
|
+
component: Badge,
|
|
10
|
+
argTypes: {
|
|
11
|
+
children: {
|
|
12
|
+
control: { type: 'text' },
|
|
13
|
+
defaultValue: 'Value',
|
|
14
|
+
description: 'Content that is displayed inside the badge',
|
|
15
|
+
},
|
|
16
|
+
className: {
|
|
17
|
+
defaultValue: '',
|
|
18
|
+
description: 'Class name for the most parent element',
|
|
19
|
+
control: { type: 'text' }
|
|
20
|
+
},
|
|
21
|
+
size: {
|
|
22
|
+
defaultValue: 'medium',
|
|
23
|
+
description: 'Define the size of the badge',
|
|
24
|
+
},
|
|
25
|
+
variant: {
|
|
26
|
+
defaultValue: 'information',
|
|
27
|
+
description: 'Variant that defines the style of the Badge',
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
var BadgeStory = function (_a) {
|
|
32
|
+
var children = _a.children, className = _a.className, size = _a.size, variant = _a.variant;
|
|
33
|
+
return (jsx(Badge, __assign({ className: className, size: size, variant: variant }, { children: children }), void 0));
|
|
34
|
+
};
|
|
35
|
+
BadgeStory.storyName = "Badge";
|
|
36
|
+
|
|
37
|
+
export default story;
|
|
38
|
+
export { BadgeStory };
|
|
39
|
+
//# sourceMappingURL=index.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/components/badge/index.stories.tsx"],"sourcesContent":["import { Badge, BadgeProps } from '.';\n\nconst story = {\n title: 'JSX/Badge',\n component: Badge,\n argTypes: {\n children: {\n control: { type: 'text' },\n defaultValue: 'Value',\n description: 'Content that is displayed inside the badge',\n },\n className: {\n defaultValue: '',\n description: 'Class name for the most parent element',\n control: { type: 'text' }\n },\n size: {\n defaultValue: 'medium',\n description: 'Define the size of the badge',\n },\n variant: {\n defaultValue: 'information',\n description: 'Variant that defines the style of the Badge',\n },\n }\n};\n \nexport const BadgeStory = ({\n children,\n className,\n size,\n variant,\n}: BadgeProps) => (\n <Badge\n className={className}\n size={size}\n variant={variant}\n >\n {children}\n </Badge>\n);\n\nBadgeStory.storyName = \"Badge\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;IAEM,KAAK,GAAG;IACZ,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,YAAY,EAAE,OAAO;YACrB,WAAW,EAAE,4CAA4C;SAC1D;QACD,SAAS,EAAE;YACT,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,wCAAwC;YACrD,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC1B;QACD,IAAI,EAAE;YACJ,YAAY,EAAE,QAAQ;YACtB,WAAW,EAAE,8BAA8B;SAC5C;QACD,OAAO,EAAE;YACP,YAAY,EAAE,aAAa;YAC3B,WAAW,EAAE,6CAA6C;SAC3D;KACF;EACD;IAEW,UAAU,GAAG,UAAC,EAKd;QAJX,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,IAAI,UAAA,EACJ,OAAO,aAAA;IACS,QAChBA,IAAC,KAAK,aACJ,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,gBAEf,QAAQ,YACH;AAPQ,EAQhB;AAEF,UAAU,CAAC,SAAS,GAAG,OAAO;;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { b as __awaiter, c as __generator } from '../../tslib.es6-5bc94358.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { c as customRender, s as screen } from '../../customRender-20b5f7ec.js';
|
|
4
|
+
import { Badge } from './index.js';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'react-dom';
|
|
7
|
+
import '../../_commonjsHelpers-e7f67fd8.js';
|
|
8
|
+
import 'react-dom/test-utils';
|
|
9
|
+
import '../../index-e9e37a34.js';
|
|
10
|
+
import '../../style-inject.es-1f59c1d0.js';
|
|
11
|
+
|
|
12
|
+
describe('Badge component', function () {
|
|
13
|
+
it('Should render content', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
14
|
+
return __generator(this, function (_a) {
|
|
15
|
+
customRender(jsx(Badge, { children: "Content" }, void 0));
|
|
16
|
+
expect(screen.getByText('Content')).toBeInTheDocument();
|
|
17
|
+
return [2 /*return*/];
|
|
18
|
+
});
|
|
19
|
+
}); });
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=index.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.js","sources":["../../../../../src/lib/components/badge/index.test.tsx"],"sourcesContent":["import { render, screen } from '../../util/testUtils';\n\nimport { Badge } from '.';\n\ndescribe('Badge component', () => {\n it('Should render content', async () => {\n render(<Badge>Content</Badge>);\n\n expect(screen.getByText('Content')).toBeInTheDocument();\n });\n});\n"],"names":["render","_jsx"],"mappings":";;;;;;;;;;;AAIA,QAAQ,CAAC,iBAAiB,EAAE;IAC1B,EAAE,CAAC,uBAAuB,EAAE;;YAC1BA,YAAM,CAACC,IAAC,KAAK,kCAAgB,CAAC,CAAC;YAE/B,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;;;SACzD,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import '../../../tslib.es6-5bc94358.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
|
-
export { C as CardButton } from '../../../index-
|
|
4
|
+
export { C as CardButton } from '../../../index-29ac387a.js';
|
|
5
5
|
import '../../../style-inject.es-1f59c1d0.js';
|
|
6
|
+
import '../../../feather-logo-a3f07990.js';
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { C as CardButton } from '../../../index-
|
|
2
|
+
import { C as CardButton } from '../../../index-29ac387a.js';
|
|
3
3
|
import '../../../tslib.es6-5bc94358.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../../../style-inject.es-1f59c1d0.js';
|
|
6
|
+
import '../../../feather-logo-a3f07990.js';
|
|
6
7
|
|
|
7
8
|
var story = {
|
|
8
9
|
title: 'JSX/Cards/CardButton',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/cards/cardButton/index.stories.tsx"],"sourcesContent":["import { FormEvent } from 'react';\nimport { CardButton, CardButtonProps } from '.';\n\nconst story = {\n title: 'JSX/Cards/CardButton',\n component: CardButton,\n argTypes: {\n title: {\n defaultValue: 'Risky Sports',\n description: 'Title text that needs to be displayed',\n },\n description: {\n defaultValue: 'Mountain or rock climbing, Bouldering, Martial arts, Extreme sports, Scuba diving, Sky diving, Bungee jumping, Mountain or rock climbing, Bouldering, Martial arts,',\n description: 'Description text that is displayed under title',\n },\n disabled: {\n defaultValue: false,\n description: 'Disabled state of the button',\n },\n className: {\n defaultValue: '',\n description: 'Class name for most top parent element',\n },\n onClick: {\n description: 'Function that runs on click of the button',\n action: true,\n table: {\n category: 'Callbacks',\n },\n },\n href: {\n defaultValue: '',\n description: 'Redirect URL on click of the button',\n },\n },\n};\n\nexport const CardButtonStory = ({\n title,\n description,\n disabled,\n className,\n href,\n onClick,\n}: CardButtonProps) => {\n const handleOnClick = (e: FormEvent) => onClick?.(e);\n return (\n <CardButton\n title={title}\n description={description}\n disabled={disabled}\n className={className}\n href={href}\n onClick={handleOnClick}\n />\n );\n}\n\nCardButtonStory.storyName = \"CardButton\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/cards/cardButton/index.stories.tsx"],"sourcesContent":["import { FormEvent } from 'react';\nimport { CardButton, CardButtonProps } from '.';\n\nconst story = {\n title: 'JSX/Cards/CardButton',\n component: CardButton,\n argTypes: {\n title: {\n defaultValue: 'Risky Sports',\n description: 'Title text that needs to be displayed',\n },\n description: {\n defaultValue: 'Mountain or rock climbing, Bouldering, Martial arts, Extreme sports, Scuba diving, Sky diving, Bungee jumping, Mountain or rock climbing, Bouldering, Martial arts,',\n description: 'Description text that is displayed under title',\n },\n disabled: {\n defaultValue: false,\n description: 'Disabled state of the button',\n },\n className: {\n defaultValue: '',\n description: 'Class name for most top parent element',\n },\n onClick: {\n description: 'Function that runs on click of the button',\n action: true,\n table: {\n category: 'Callbacks',\n },\n },\n href: {\n defaultValue: '',\n description: 'Redirect URL on click of the button',\n },\n },\n};\n\nexport const CardButtonStory = ({\n title,\n description,\n disabled,\n className,\n href,\n onClick,\n}: CardButtonProps) => {\n const handleOnClick = (e: FormEvent) => onClick?.(e);\n return (\n <CardButton\n title={title}\n description={description}\n disabled={disabled}\n className={className}\n href={href}\n onClick={handleOnClick}\n />\n );\n}\n\nCardButtonStory.storyName = \"CardButton\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;;IAGM,KAAK,GAAG;IACZ,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,UAAU;IACrB,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,YAAY,EAAE,cAAc;YAC5B,WAAW,EAAE,uCAAuC;SACrD;QACD,WAAW,EAAE;YACX,YAAY,EAAE,qKAAqK;YACnL,WAAW,EAAE,gDAAgD;SAC9D;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,8BAA8B;SAC5C;QACD,SAAS,EAAE;YACT,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,wCAAwC;SACtD;QACD,OAAO,EAAE;YACP,WAAW,EAAE,2CAA2C;YACxD,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE;gBACL,QAAQ,EAAE,WAAW;aACtB;SACF;QACD,IAAI,EAAE;YACJ,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,qCAAqC;SACnD;KACF;EACD;IAEW,eAAe,GAAG,UAAC,EAOd;QANhB,KAAK,WAAA,EACL,WAAW,iBAAA,EACX,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,IAAI,UAAA,EACJ,OAAO,aAAA;IAEP,IAAM,aAAa,GAAG,UAAC,CAAY,IAAK,OAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,CAAC,CAAC,GAAA,CAAC;IACrD,QACEA,IAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,aAAa,WACtB,EACF;AACJ,EAAC;AAED,eAAe,CAAC,SAAS,GAAG,YAAY;;;;;"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import '../../../tslib.es6-5bc94358.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
export { CardWithLeftIcon } from '../index.js';
|
|
4
|
-
import '../../../index-
|
|
4
|
+
import '../../../index-29ac387a.js';
|
|
5
5
|
import '../../../style-inject.es-1f59c1d0.js';
|
|
6
6
|
import 'react';
|
|
7
|
+
import '../../../feather-logo-a3f07990.js';
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|