@vespiario-thailand/design-system 0.0.14 → 1.3.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/components/NewComp/NewComp.stories.d.ts +22 -0
- package/dist/components/cms/BlockSuggestion/BlockSuggestion.stories.d.ts +16 -0
- package/dist/components/cms/BlockSuggestion/CardSuggestion.stories.d.ts +11 -0
- package/dist/components/cms/BlockSuggestion/Navigation.stories.d.ts +32 -0
- package/dist/components/cms/Breadcrumb/Breadcrumb.stories.d.ts +22 -0
- package/dist/components/cms/GlobalNavigation/GlobalNavigation.stories.d.ts +25 -0
- package/dist/components/cms/TableButtonAddFilter/TableButtonAddFilter.stories.d.ts +8 -0
- package/dist/components/cms/TableButtonFilter/TableButtonFilter.stories.d.ts +39 -0
- package/dist/components/cms/TableFilter/TableFilter.stories.d.ts +7 -0
- package/dist/components/cms/TableFooter/TableFooter.stories.d.ts +7 -0
- package/dist/components/cms/TableHeader/TableHeader.stories.d.ts +13 -0
- package/dist/components/cms/TableLabelFiltered/TableLabelFiltered.stories.d.ts +44 -0
- package/dist/components/cms/TableRow/TableRow.stories.d.ts +61 -0
- package/dist/components/cms/TableSorting/TableSorting.stories.d.ts +43 -0
- package/dist/components/cms/TableTitle/TableTitle.stories.d.ts +19 -0
- package/dist/components/generals/AlertBar/AlertBar.stories.d.ts +37 -0
- package/dist/components/generals/Avatar/Avatar.stories.d.ts +47 -0
- package/dist/components/generals/Button/Button.stories.d.ts +140 -0
- package/dist/components/generals/Button/index.d.ts +12 -3
- package/dist/components/generals/ButtonCross/ButtonCross.stories.d.ts +43 -0
- package/dist/components/generals/Checkbox/Checkbox.stories.d.ts +198 -0
- package/dist/components/generals/Chip/Chip.stories.d.ts +38 -0
- package/dist/components/generals/ColorPicker/ColorPicker.stories.d.ts +32 -0
- package/dist/components/generals/ColorPicker/index.d.ts +0 -1
- package/dist/components/generals/DatePicker/DatePicker.stories.d.ts +90 -0
- package/dist/components/generals/DatePicker/DatePickerCaption.d.ts +11 -0
- package/dist/components/generals/DatePicker/DatePickerHeadRow.d.ts +3 -0
- package/dist/components/generals/DatePicker/DatePickerInputButton.d.ts +17 -0
- package/dist/components/generals/DatePicker/DatePickerMonthSelector.d.ts +15 -0
- package/dist/components/generals/DatePicker/DatePickerRange.d.ts +16 -0
- package/dist/components/generals/DatePicker/DatePickerSingle.d.ts +15 -0
- package/dist/components/generals/DatePicker/DatePickerYearDDL.d.ts +15 -0
- package/dist/components/generals/DatePicker/index.d.ts +22 -0
- package/dist/components/generals/Icon/Icon.stories.d.ts +86 -0
- package/dist/components/generals/ImageInput/ImageInput.stories.d.ts +75 -0
- package/dist/components/generals/ImagePlaceholder/ImagePlaceholder.stories.d.ts +43 -0
- package/dist/components/generals/ImagePreview/ImagePreview.stories.d.ts +57 -0
- package/dist/components/generals/Logo/Logo.stories.d.ts +29 -0
- package/dist/components/generals/MenuItem/MenuItem.stories.d.ts +85 -0
- package/dist/components/generals/NumberSwitch/NumberSwitch.stories.d.ts +73 -0
- package/dist/components/generals/Pagination/Pagination.stories.d.ts +73 -0
- package/dist/components/generals/PanelAccount/PanelAccount.stories.d.ts +41 -0
- package/dist/components/generals/PanelAccount/index.d.ts +2 -1
- package/dist/components/generals/PanelNotification/PanelNotification.stories.d.ts +100 -0
- package/dist/components/generals/PanelNotification/index.d.ts +12 -5
- package/dist/components/generals/PanelThumbnail/PanelThumbnail.stories.d.ts +83 -0
- package/dist/components/generals/PasswordField/PasswordField.stories.d.ts +45 -0
- package/dist/components/generals/PhoneTextField/PhoneTextField.stories.d.ts +64 -0
- package/dist/components/generals/PinInput/PinInput.stories.d.ts +36 -0
- package/dist/components/generals/PinInput/index.d.ts +1 -1
- package/dist/components/generals/Popover/Popover.stories.d.ts +118 -0
- package/dist/components/generals/Radio/Radio.stories.d.ts +183 -0
- package/dist/components/generals/SegmentTab/SegmentTab.stories.d.ts +79 -0
- package/dist/components/generals/Select/Select.stories.d.ts +139 -0
- package/dist/components/generals/SheetTitle/SheetTitle.stories.d.ts +20 -0
- package/dist/components/generals/Slider/Slider.stories.d.ts +122 -0
- package/dist/components/generals/Snackbar/Snackbar.stories.d.ts +15 -0
- package/dist/components/generals/SnackbarMenu/SnackbarMenu.stories.d.ts +90 -0
- package/dist/components/generals/SnackbarMenu/SnackbarMenuItem.stories.d.ts +98 -0
- package/dist/components/generals/StackTab/StackTab.stories.d.ts +12 -0
- package/dist/components/generals/Switch/Switch.stories.d.ts +116 -0
- package/dist/components/generals/Tag/Tag.stories.d.ts +25 -0
- package/dist/components/generals/Taxonomy/Taxonomy.stories.d.ts +43 -0
- package/dist/components/generals/TextArea/TextArea.stories.d.ts +37 -0
- package/dist/components/generals/TextField/TextField.stories.d.ts +73 -0
- package/dist/components/generals/TextFieldAmount/TextFieldAmount.stories.d.ts +45 -0
- package/dist/components/generals/TextFieldGroup/TextFieldGroup.stories.d.ts +16 -0
- package/dist/components/generals/TextFieldPercent/TextFieldPercent.stories.d.ts +45 -0
- package/dist/components/generals/TextFieldSlug/TextFieldSlug.stories.d.ts +81 -0
- package/dist/components/generals/Tooltip/Tooltip.stories.d.ts +98 -0
- package/dist/components/generals/TouchPoint/TouchPoint.stories.d.ts +17 -0
- package/dist/components/generals/VariantField/VariantField.stories.d.ts +125 -0
- package/dist/components/generals/VeggieMenu/VeggieMenu.stories.d.ts +24 -0
- package/dist/functions/index.d.ts +1 -1
- package/dist/style.css +1 -3
- package/dist/utils/index.d.ts +2 -0
- package/dist/vespa-design-system.cjs +74 -74
- package/dist/vespa-design-system.js +15643 -12821
- package/dist/vespa-design-system.umd.cjs +74 -74
- package/package.json +28 -19
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: {
|
|
7
|
+
render: (args: import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
args: {
|
|
9
|
+
children: string;
|
|
10
|
+
};
|
|
11
|
+
argTypes: {
|
|
12
|
+
children: {
|
|
13
|
+
control: string;
|
|
14
|
+
description: string;
|
|
15
|
+
table: {
|
|
16
|
+
defaultValue: {
|
|
17
|
+
summary: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
4
|
+
Button: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
Message: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
6
|
+
};
|
|
7
|
+
parameters: {
|
|
8
|
+
backgrounds: {
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
export declare const Default: {
|
|
15
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
4
|
+
Button: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
Message: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: {
|
|
10
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
direction: "right" | "left";
|
|
5
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
backgrounds: {
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
export declare const Default: {
|
|
14
|
+
render: (args: import("react").HTMLAttributes<HTMLDivElement> & {
|
|
15
|
+
direction: "right" | "left";
|
|
16
|
+
} & import("react").RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
args: {
|
|
18
|
+
direction: "left";
|
|
19
|
+
};
|
|
20
|
+
argTypes: {
|
|
21
|
+
direction: {
|
|
22
|
+
control: string;
|
|
23
|
+
options: string[];
|
|
24
|
+
description: string;
|
|
25
|
+
table: {
|
|
26
|
+
defaultValue: {
|
|
27
|
+
summary: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
4
|
+
Item: import("react").ForwardRefExoticComponent<import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement>>;
|
|
5
|
+
Link: import("react").ForwardRefExoticComponent<import("react").AnchorHTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: {
|
|
10
|
+
render: (args: import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
export declare const WithNextLink: {
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: {
|
|
15
|
+
source: {
|
|
16
|
+
code: string;
|
|
17
|
+
language: string;
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: ((props: import("@radix-ui/react-avatar").AvatarProps) => JSX.Element) & {
|
|
4
|
+
Fallback: (props: import("@radix-ui/react-avatar").AvatarFallbackProps) => JSX.Element;
|
|
5
|
+
Image: import("react").ForwardRefExoticComponent<import("@radix-ui/react-avatar").AvatarImageProps & import("react").RefAttributes<HTMLImageElement>>;
|
|
6
|
+
};
|
|
7
|
+
parameters: {
|
|
8
|
+
backgrounds: {
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
export declare const Default: {
|
|
15
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
parameters: {
|
|
17
|
+
docs: {
|
|
18
|
+
source: {
|
|
19
|
+
code: string;
|
|
20
|
+
language: string;
|
|
21
|
+
type: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: {
|
|
7
|
+
render: (args: import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import(".").ButtonFilterType & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: {
|
|
7
|
+
render: (args: import("react").ButtonHTMLAttributes<HTMLButtonElement> & import(".").ButtonFilterType & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
args: {
|
|
9
|
+
label: string;
|
|
10
|
+
number: number;
|
|
11
|
+
isActive: true;
|
|
12
|
+
};
|
|
13
|
+
argTypes: {
|
|
14
|
+
label: {
|
|
15
|
+
control: string;
|
|
16
|
+
table: {
|
|
17
|
+
defaultValue: {
|
|
18
|
+
summary: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
number: {
|
|
23
|
+
control: string;
|
|
24
|
+
table: {
|
|
25
|
+
defaultValue: {
|
|
26
|
+
summary: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
isActive: {
|
|
31
|
+
controls: string;
|
|
32
|
+
table: {
|
|
33
|
+
defaultValue: {
|
|
34
|
+
summary: boolean;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Template: {
|
|
6
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export declare const WithThumbnail: {
|
|
9
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export declare const Disabled: {
|
|
12
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
label?: string | undefined;
|
|
5
|
+
onRemove?: (() => void) | undefined;
|
|
6
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: {
|
|
10
|
+
render: (args: import("react").HTMLAttributes<HTMLDivElement> & {
|
|
11
|
+
label?: string | undefined;
|
|
12
|
+
onRemove?: (() => void) | undefined;
|
|
13
|
+
} & import("react").RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
args: {
|
|
15
|
+
children: string;
|
|
16
|
+
onRemove: undefined;
|
|
17
|
+
};
|
|
18
|
+
argTypes: {
|
|
19
|
+
children: {
|
|
20
|
+
controls: string;
|
|
21
|
+
description: string;
|
|
22
|
+
table: {
|
|
23
|
+
defaultValue: {
|
|
24
|
+
summary: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
onRemove: {
|
|
29
|
+
controls: string;
|
|
30
|
+
description: string;
|
|
31
|
+
table: {
|
|
32
|
+
defaultValue: {
|
|
33
|
+
summary: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const StackTableChip: {
|
|
40
|
+
render: (args: import("react").HTMLAttributes<HTMLDivElement> & {
|
|
41
|
+
label?: string | undefined;
|
|
42
|
+
onRemove?: (() => void) | undefined;
|
|
43
|
+
} & import("react").RefAttributes<HTMLDivElement>) => JSX.Element;
|
|
44
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
parameters: {
|
|
4
|
+
backgrounds: {
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export declare const Default: {
|
|
11
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
export declare const Disabled: {
|
|
14
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
export declare const WithThumbnailImage: {
|
|
17
|
+
render: (args: {
|
|
18
|
+
thumbnailSrc: string;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
args: {
|
|
21
|
+
thumbnailSrc: string;
|
|
22
|
+
};
|
|
23
|
+
argTypes: {
|
|
24
|
+
thumbnailSrc: {
|
|
25
|
+
control: string;
|
|
26
|
+
table: {
|
|
27
|
+
defaultValue: {
|
|
28
|
+
summary: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const WithThumbnailColor: {
|
|
35
|
+
render: (args: {
|
|
36
|
+
thumbnailColor: boolean;
|
|
37
|
+
thumbnailSrc: string;
|
|
38
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
args: {
|
|
40
|
+
thumbnailSrc: string;
|
|
41
|
+
thumbnailColor: boolean;
|
|
42
|
+
};
|
|
43
|
+
argTypes: {
|
|
44
|
+
thumbnailSrc: {
|
|
45
|
+
control: string;
|
|
46
|
+
table: {
|
|
47
|
+
defaultValue: {
|
|
48
|
+
summary: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
thumbnailColor: {
|
|
53
|
+
control: string;
|
|
54
|
+
table: {
|
|
55
|
+
defaultValue: {
|
|
56
|
+
summary: boolean;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
|
+
sorting?: ("desc" | "asc") | undefined;
|
|
5
|
+
onClickSorting?: ((e: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
6
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
parameters: {
|
|
8
|
+
backgrounds: {
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
export declare const Default: {
|
|
15
|
+
render: (args: import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
16
|
+
sorting?: ("desc" | "asc") | undefined;
|
|
17
|
+
onClickSorting?: ((e: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
18
|
+
} & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
args: {
|
|
20
|
+
sorting: "asc";
|
|
21
|
+
children: string;
|
|
22
|
+
};
|
|
23
|
+
argTypes: {
|
|
24
|
+
sorting: {
|
|
25
|
+
control: string;
|
|
26
|
+
options: string[];
|
|
27
|
+
table: {
|
|
28
|
+
defaultValue: {
|
|
29
|
+
summary: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
children: {
|
|
34
|
+
control: string;
|
|
35
|
+
description: string;
|
|
36
|
+
table: {
|
|
37
|
+
defaultValue: {
|
|
38
|
+
summary: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
bgColor?: "blue" | "yellow" | undefined;
|
|
5
|
+
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
6
|
+
Button: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export declare const Default: {
|
|
11
|
+
render: (args: import("react").HTMLAttributes<HTMLDivElement> & {
|
|
12
|
+
bgColor?: "blue" | "yellow" | undefined;
|
|
13
|
+
} & import("react").RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
export declare const HasSelectedItem: {
|
|
16
|
+
render: (args: import("react").HTMLAttributes<HTMLDivElement> & {
|
|
17
|
+
bgColor?: "blue" | "yellow" | undefined;
|
|
18
|
+
} & import("react").RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AlertBarProps } from '.';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
variant?: import(".").AlertBarVariants | undefined;
|
|
6
|
+
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
7
|
+
Action: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
Text: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
export declare const Default: {
|
|
14
|
+
render: (args: import("react").HTMLAttributes<HTMLDivElement> & {
|
|
15
|
+
variant?: import(".").AlertBarVariants | undefined;
|
|
16
|
+
} & import("react").RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
args: AlertBarProps;
|
|
18
|
+
argTypes: {
|
|
19
|
+
children: {
|
|
20
|
+
control: string;
|
|
21
|
+
description: string;
|
|
22
|
+
table: {
|
|
23
|
+
defaultValue: {
|
|
24
|
+
summary: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
variant: {
|
|
29
|
+
control: string;
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: {
|
|
32
|
+
summary: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: ((props: import("@radix-ui/react-avatar").AvatarProps) => JSX.Element) & {
|
|
4
|
+
Fallback: (props: import("@radix-ui/react-avatar").AvatarFallbackProps) => JSX.Element;
|
|
5
|
+
Image: import("react").ForwardRefExoticComponent<import("@radix-ui/react-avatar").AvatarImageProps & import("react").RefAttributes<HTMLImageElement>>;
|
|
6
|
+
};
|
|
7
|
+
parameters: {
|
|
8
|
+
backgrounds: {
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
export declare const Default: {
|
|
15
|
+
render: (args: import("@radix-ui/react-avatar").AvatarImageProps & import("react").RefAttributes<HTMLImageElement>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
args: {
|
|
17
|
+
children: string;
|
|
18
|
+
src: string;
|
|
19
|
+
alt: string;
|
|
20
|
+
};
|
|
21
|
+
argTypes: {
|
|
22
|
+
children: {
|
|
23
|
+
description: string;
|
|
24
|
+
table: {
|
|
25
|
+
defaultValue: {
|
|
26
|
+
summary: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
src: {
|
|
31
|
+
description: string;
|
|
32
|
+
table: {
|
|
33
|
+
defaultValue: {
|
|
34
|
+
summary: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
alt: {
|
|
39
|
+
description: string;
|
|
40
|
+
table: {
|
|
41
|
+
defaultValue: {
|
|
42
|
+
summary: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { type ButtonProps } from '.';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
parameters: {};
|
|
6
|
+
argTypes: {
|
|
7
|
+
children: {
|
|
8
|
+
control: string;
|
|
9
|
+
description: string;
|
|
10
|
+
table: {
|
|
11
|
+
defaultValue: {
|
|
12
|
+
summary: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
variant: {
|
|
17
|
+
control: {
|
|
18
|
+
type: string;
|
|
19
|
+
option: string[];
|
|
20
|
+
};
|
|
21
|
+
description: string;
|
|
22
|
+
table: {
|
|
23
|
+
defaultValue: {
|
|
24
|
+
summary: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
bgColor: {
|
|
29
|
+
control: string;
|
|
30
|
+
description: string;
|
|
31
|
+
options: string[];
|
|
32
|
+
};
|
|
33
|
+
bgShade: {
|
|
34
|
+
control: string;
|
|
35
|
+
options: number[];
|
|
36
|
+
};
|
|
37
|
+
sizes: {
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
option: string[];
|
|
41
|
+
};
|
|
42
|
+
description: string;
|
|
43
|
+
table: {
|
|
44
|
+
defaultValue: {
|
|
45
|
+
summary: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
disabled: {
|
|
50
|
+
control: string;
|
|
51
|
+
defaultValue: boolean;
|
|
52
|
+
table: {
|
|
53
|
+
defaultValue: {
|
|
54
|
+
summary: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
isLoading: {
|
|
59
|
+
control: string;
|
|
60
|
+
description: string;
|
|
61
|
+
defaultValue: boolean;
|
|
62
|
+
table: {
|
|
63
|
+
defaultValue: {
|
|
64
|
+
summary: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
onlyIcon: {
|
|
69
|
+
control: string;
|
|
70
|
+
defaultValue: boolean;
|
|
71
|
+
table: {
|
|
72
|
+
defaultValue: {
|
|
73
|
+
summary: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export default _default;
|
|
80
|
+
/** Simple button template */
|
|
81
|
+
export declare const Default: {
|
|
82
|
+
render: (args: ButtonProps & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
args: {
|
|
84
|
+
children: string;
|
|
85
|
+
sizes: "medium";
|
|
86
|
+
onlyIcon: false;
|
|
87
|
+
variant: "primary";
|
|
88
|
+
bgColor: undefined;
|
|
89
|
+
isLoading: false;
|
|
90
|
+
};
|
|
91
|
+
parameters: {
|
|
92
|
+
controls: {
|
|
93
|
+
exclude: string[];
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export declare const CustomBackgroundColor: {
|
|
98
|
+
render: (args: ButtonProps & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
args: {
|
|
100
|
+
variant: undefined;
|
|
101
|
+
bgColor: "blue";
|
|
102
|
+
bgShade: 500;
|
|
103
|
+
children: string;
|
|
104
|
+
sizes: "medium";
|
|
105
|
+
onlyIcon: false;
|
|
106
|
+
isLoading: false;
|
|
107
|
+
};
|
|
108
|
+
parameters: {
|
|
109
|
+
controls: {
|
|
110
|
+
exclude: string[];
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
/** Simple button with icon template */
|
|
115
|
+
export declare const WithIcon: {
|
|
116
|
+
render: (args: ButtonProps & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
args: {
|
|
118
|
+
iconLeft: "icon-null-1";
|
|
119
|
+
children: string;
|
|
120
|
+
sizes: "medium";
|
|
121
|
+
onlyIcon: false;
|
|
122
|
+
variant: "primary";
|
|
123
|
+
bgColor: undefined;
|
|
124
|
+
isLoading: false;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
/** Simple button only icon template */
|
|
128
|
+
export declare const OnlyIcon: {
|
|
129
|
+
render: (args: ButtonProps & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
130
|
+
args: {
|
|
131
|
+
children: string;
|
|
132
|
+
iconLeft: "icon-null-1";
|
|
133
|
+
iconRight: undefined;
|
|
134
|
+
onlyIcon: true;
|
|
135
|
+
sizes: "medium";
|
|
136
|
+
variant: "primary";
|
|
137
|
+
bgColor: undefined;
|
|
138
|
+
isLoading: false;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** libs */
|
|
2
2
|
import { ButtonHTMLAttributes } from 'react';
|
|
3
3
|
/** types */
|
|
4
|
-
import { SizeType, ButtonVariantType, IconListType, IconSizeType } from '../../../types';
|
|
4
|
+
import { SizeType, ButtonVariantType, IconListType, IconSizeType, ColorShadeType } from '../../../types';
|
|
5
|
+
type ButtonBackgroundColorType = 'blue' | 'green' | 'light-green' | 'yellow' | 'dark';
|
|
5
6
|
type CommonButtonType = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
7
|
sizes?: SizeType;
|
|
7
|
-
variant?: ButtonVariantType;
|
|
8
8
|
iconLeft?: IconListType;
|
|
9
9
|
iconLeftSize?: IconSizeType;
|
|
10
10
|
iconRightSize?: IconSizeType;
|
|
@@ -17,6 +17,15 @@ type ConditionButtonIconType = {
|
|
|
17
17
|
onlyIcon?: boolean;
|
|
18
18
|
iconRight?: never;
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
type ConditionButtonVariantType = {
|
|
21
|
+
bgColor?: ButtonBackgroundColorType;
|
|
22
|
+
bgShade?: ColorShadeType;
|
|
23
|
+
variant?: never;
|
|
24
|
+
} | {
|
|
25
|
+
variant?: ButtonVariantType;
|
|
26
|
+
bgColor?: never;
|
|
27
|
+
bgShade?: never;
|
|
28
|
+
};
|
|
29
|
+
export type ButtonProps = CommonButtonType & ConditionButtonVariantType & ConditionButtonIconType;
|
|
21
30
|
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
22
31
|
export {};
|