globalfy-design-system 0.17.0 → 0.19.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.d.ts +2 -0
- package/dist/components/atoms/Alert/Alert.stories.d.ts +4 -0
- package/dist/components/atoms/Alert/Alert.types.d.ts +22 -0
- package/dist/components/atoms/Alert/index.d.ts +3 -0
- package/dist/components/atoms/Alert/useAlert.d.ts +4 -0
- package/dist/components/atoms/Button/Button.types.d.ts +2 -1
- package/dist/components/atoms/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/components/atoms/SegmentedControl/SegmentedControl.stories.d.ts +1 -1
- package/dist/components/atoms/Snackbar/index.d.ts +0 -1
- package/dist/components/atoms/Tabs/Tabs.d.ts +2 -0
- package/dist/components/atoms/Tabs/Tabs.stories.d.ts +14 -0
- package/dist/components/atoms/Tabs/Tabs.types.d.ts +13 -0
- package/dist/components/atoms/Tabs/index.d.ts +2 -0
- package/dist/components/atoms/Tag/Tag.d.ts +2 -0
- package/dist/components/atoms/Tag/Tag.stories.d.ts +9 -0
- package/dist/components/atoms/Tag/Tag.types.d.ts +8 -0
- package/dist/components/atoms/Tag/index.d.ts +2 -0
- package/dist/components/atoms/ToastContainer/ToastContainer.d.ts +1 -0
- package/dist/components/atoms/ToastContainer/index.d.ts +1 -0
- package/dist/components/atoms/index.d.ts +2 -0
- package/dist/globalfy-design-system.js +21024 -18882
- package/dist/globalfy-design-system.umd.cjs +72 -72
- package/dist/hooks/useEventListener.d.ts +1 -0
- package/dist/style.css +1 -7
- package/package.json +2 -1
- package/dist/components/atoms/Snackbar/SnackbarContainer.d.ts +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum ActionType {
|
|
2
|
+
Button = "button",
|
|
3
|
+
Link = "link"
|
|
4
|
+
}
|
|
5
|
+
export declare enum ToastType {
|
|
6
|
+
Alert = "alert",
|
|
7
|
+
Banner = "banner"
|
|
8
|
+
}
|
|
9
|
+
export type AlertAction = {
|
|
10
|
+
label: string;
|
|
11
|
+
onClick: () => void;
|
|
12
|
+
};
|
|
13
|
+
export type AlertProps = {
|
|
14
|
+
message: string;
|
|
15
|
+
inlineActions?: boolean;
|
|
16
|
+
toastType?: ToastType;
|
|
17
|
+
icon?: string;
|
|
18
|
+
hasCloseButton?: boolean;
|
|
19
|
+
iconVariant?: "neutral" | "success" | "error" | "warning" | "banner";
|
|
20
|
+
actions?: AlertAction[];
|
|
21
|
+
actionType?: ActionType;
|
|
22
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export type ButtonVariant = "primaryDark" | "primaryLight" | "primary" | "negative" | "secondaryNegative" | "secondary" | "tertiary" | "tertiaryDark" | "tertiaryLight" | "direction" | "directionCircle";
|
|
2
3
|
export type ButtonProps = {
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
iconLeft?: string;
|
|
5
6
|
iconRight?: string;
|
|
6
7
|
full?: boolean;
|
|
7
8
|
size?: "small" | "medium" | "large";
|
|
8
|
-
variant?:
|
|
9
|
+
variant?: ButtonVariant;
|
|
9
10
|
hasLoading?: boolean;
|
|
10
11
|
isLoadingComplete?: boolean;
|
|
11
12
|
onLoadingAnimationComplete?: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SegmentedControlProps } from "./SegmentedControl.types";
|
|
2
|
-
export declare const SegmentedControl: ({ tabs, size,
|
|
2
|
+
export declare const SegmentedControl: ({ tabs, size, selectedKey, onSelectionChange, ...props }: SegmentedControlProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from "@storybook/react";
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ tabs, size,
|
|
4
|
+
component: ({ tabs, size, selectedKey, onSelectionChange, ...props }: import("./SegmentedControl.types").SegmentedControlProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
};
|
|
7
7
|
export default meta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ tabs, defaultValue, variant, className, ...props }: import("./Tabs.types").TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Playground: Story;
|
|
13
|
+
export declare const Variants: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const WithIcon: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export type TabsProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
"data-testid"?: string;
|
|
5
|
+
tabs: {
|
|
6
|
+
icon?: string;
|
|
7
|
+
key: string;
|
|
8
|
+
title: string;
|
|
9
|
+
content?: ReactNode;
|
|
10
|
+
}[];
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
variant?: "underline" | "button";
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ children, className, variant, color }: import("./Tag.types").TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ToastContainer: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ToastContainer";
|