globalfy-design-system 0.42.0 → 0.44.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/atoms/Alert/Alert.types.d.ts +2 -1
- package/dist/components/atoms/Button/Button.stories.d.ts +8 -0
- package/dist/components/atoms/Button/Button.types.d.ts +2 -2
- package/dist/components/atoms/Chip/Chip.types.d.ts +2 -2
- package/dist/components/atoms/Input/Input.d.ts +1 -1
- package/dist/components/atoms/Input/Input.stories.d.ts +1 -1
- package/dist/components/atoms/Input/Input.types.d.ts +1 -1
- package/dist/components/atoms/Tabs/Tabs.types.d.ts +1 -1
- package/dist/globalfy-design-system.js +3538 -3532
- package/dist/globalfy-design-system.umd.cjs +2 -2
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare enum ActionType {
|
|
2
3
|
Button = "button",
|
|
3
4
|
Link = "link"
|
|
@@ -14,7 +15,7 @@ export type AlertProps = {
|
|
|
14
15
|
message: string;
|
|
15
16
|
inlineActions?: boolean;
|
|
16
17
|
toastType?: ToastType;
|
|
17
|
-
icon?:
|
|
18
|
+
icon?: React.ReactNode;
|
|
18
19
|
hasCloseButton?: boolean;
|
|
19
20
|
iconVariant?: "neutral" | "success" | "error" | "warning" | "banner";
|
|
20
21
|
actions?: AlertAction[];
|
|
@@ -3,6 +3,14 @@ declare const meta: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
component: ({ children, size, variant, disabled, full, iconLeft, iconRight, className, hasLoading, isLoadingComplete, onClick, onLoadingAnimationComplete, ...props }: import("./Button.types").ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
|
+
argTypes: {
|
|
7
|
+
iconLeft: {
|
|
8
|
+
type: "string";
|
|
9
|
+
};
|
|
10
|
+
iconRight: {
|
|
11
|
+
type: "string";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
6
14
|
};
|
|
7
15
|
export default meta;
|
|
8
16
|
type Story = StoryObj<typeof meta>;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
export type ButtonVariant = "primaryDark" | "primaryLight" | "primary" | "negative" | "secondaryNegative" | "secondary" | "tertiary" | "tertiaryDark" | "tertiaryLight" | "direction" | "directionCircle";
|
|
3
3
|
export type ButtonProps = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
iconLeft?:
|
|
6
|
-
iconRight?:
|
|
5
|
+
iconLeft?: React.ReactNode;
|
|
6
|
+
iconRight?: React.ReactNode;
|
|
7
7
|
full?: boolean;
|
|
8
8
|
size?: "small" | "medium" | "large";
|
|
9
9
|
variant?: ButtonVariant;
|
|
@@ -3,7 +3,7 @@ export declare const Input: React.ForwardRefExoticComponent<{
|
|
|
3
3
|
label: string;
|
|
4
4
|
placeholder?: string | undefined;
|
|
5
5
|
message?: string | undefined;
|
|
6
|
-
icon?:
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
7
|
isInvalid?: boolean | undefined;
|
|
8
8
|
isValid?: boolean | undefined;
|
|
9
9
|
disabled?: boolean | undefined;
|
|
@@ -6,7 +6,7 @@ declare const meta: {
|
|
|
6
6
|
label: string;
|
|
7
7
|
placeholder?: string | undefined;
|
|
8
8
|
message?: string | undefined;
|
|
9
|
-
icon?:
|
|
9
|
+
icon?: import("react").ReactNode;
|
|
10
10
|
isInvalid?: boolean | undefined;
|
|
11
11
|
isValid?: boolean | undefined;
|
|
12
12
|
disabled?: boolean | undefined;
|