globalfy-design-system 1.2.0 → 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/atoms/Button/Button.d.ts +15 -2
- package/dist/components/atoms/Button/Button.stories.d.ts +9 -14
- package/dist/components/atoms/Button/index.d.ts +0 -1
- package/dist/globalfy-design-system.js +4589 -4588
- package/dist/globalfy-design-system.umd.cjs +19 -19
- package/package.json +2 -1
- package/dist/components/atoms/Button/Button.types.d.ts +0 -12
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type ButtonVariant = "primaryDark" | "primaryLight" | "primary" | "negative" | "secondaryNegative" | "secondary" | "tertiary" | "tertiaryDark" | "tertiaryLight" | "direction" | "directionCircle" | "icon";
|
|
3
|
+
export type ButtonProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
iconLeft?: React.ReactNode;
|
|
6
|
+
iconRight?: React.ReactNode;
|
|
7
|
+
full?: boolean;
|
|
8
|
+
size?: "small" | "medium" | "large";
|
|
9
|
+
variant?: ButtonVariant;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated use {@link ButtonProps.isLoading} instead
|
|
13
|
+
*/
|
|
14
|
+
isLoadingComplete?: boolean;
|
|
15
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onFocus" | "onBlur" | "color">;
|
|
3
16
|
export declare const Button: ({ children, size, variant, disabled, full, iconLeft, iconRight, className, isLoadingComplete, isLoading, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Button } from './Button';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
3
|
|
|
3
|
-
declare const meta:
|
|
4
|
-
title: string;
|
|
5
|
-
component: ({ children, size, variant, disabled, full, iconLeft, iconRight, className, isLoadingComplete, isLoading, ...props }: import('./Button.types').ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
tags: string[];
|
|
7
|
-
argTypes: {
|
|
8
|
-
iconLeft: {
|
|
9
|
-
type: "string";
|
|
10
|
-
};
|
|
11
|
-
iconRight: {
|
|
12
|
-
type: "string";
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
4
|
+
declare const meta: Meta<typeof Button>;
|
|
16
5
|
export default meta;
|
|
17
6
|
type Story = StoryObj<typeof meta>;
|
|
18
7
|
export declare const Default: Story;
|
|
8
|
+
export declare const Variants: Story;
|
|
9
|
+
export declare const Sizes: Story;
|
|
10
|
+
export declare const Loading: Story;
|
|
11
|
+
export declare const Disabled: Story;
|
|
12
|
+
export declare const LoadingDisabled: Story;
|
|
13
|
+
export declare const SimulateLoading: Story;
|