globalfy-design-system 0.8.0 → 0.10.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.
@@ -1,2 +1,2 @@
1
1
  import { AvatarProps } from "./Avatar.types";
2
- export declare const Avatar: ({ image, size, onLoadingStatusChange }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Avatar: ({ image, size, border, onLoadingStatusChange }: AvatarProps) => 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: ({ image, size, onLoadingStatusChange }: import("./Avatar.types").AvatarProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ image, size, border, onLoadingStatusChange }: import("./Avatar.types").AvatarProps) => import("react/jsx-runtime").JSX.Element;
5
5
  tags: string[];
6
6
  };
7
7
  export default meta;
@@ -1,6 +1,7 @@
1
1
  import { HTMLAttributes } from "react";
2
2
  export type AvatarProps = {
3
3
  image: string;
4
- size?: "small" | "large";
4
+ size?: "lg" | "md" | "sm" | "xs";
5
+ border?: boolean;
5
6
  onLoadingStatusChange?: (status: string) => void;
6
7
  } & HTMLAttributes<HTMLImageElement>;
@@ -0,0 +1,2 @@
1
+ import { ButtonProps } from ".";
2
+ export declare const Button: ({ children, size, variant, disabled, full, iconLeft, iconRight, className, hasLoading, isLoadingComplete, onClick, onLoadingAnimationComplete, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { StoryObj } from "@storybook/react";
2
+ declare const meta: {
3
+ title: string;
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
+ tags: string[];
6
+ };
7
+ export default meta;
8
+ type Story = StoryObj<typeof meta>;
9
+ export declare const Default: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export type ButtonProps = {
3
+ children: React.ReactNode;
4
+ iconLeft?: string;
5
+ iconRight?: string;
6
+ full?: boolean;
7
+ size?: "small" | "medium" | "large";
8
+ variant?: "primaryDark" | "primaryLight" | "primary" | "negative" | "secondaryNegative" | "secondary" | "tertiary" | "tertiaryDark" | "tertiaryLight" | "direction" | "directionCircle";
9
+ hasLoading?: boolean;
10
+ isLoadingComplete?: boolean;
11
+ onLoadingAnimationComplete?: () => void;
12
+ } & React.ButtonHTMLAttributes<HTMLButtonElement>;
@@ -0,0 +1,2 @@
1
+ export * from "./Button";
2
+ export * from "./Button.types";
@@ -0,0 +1,2 @@
1
+ import { ChipsProps } from "./Chips.types";
2
+ export declare const Chips: ({ children, className, disabled, iconLeft, iconRight, size, ...props }: ChipsProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { StoryObj } from "@storybook/react";
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ children, className, disabled, iconLeft, iconRight, size, ...props }: import("./Chips.types").ChipsProps) => 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;
10
+ export declare const Icons: () => import("react/jsx-runtime").JSX.Element;
11
+ export declare const Sizes: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes, ReactNode } from "react";
2
+ export type ChipsProps = {
3
+ children: ReactNode;
4
+ size?: "md" | "lg";
5
+ disabled?: boolean;
6
+ iconLeft?: string;
7
+ iconRight?: string;
8
+ } & HTMLAttributes<HTMLDivElement>;
@@ -0,0 +1,2 @@
1
+ export * from "./Chips";
2
+ export * from "./Chips.types";
@@ -7,3 +7,4 @@ export * from "./Switch";
7
7
  export * from "./Checkbox";
8
8
  export * from "./Avatar";
9
9
  export * from "./RadioGroup";
10
+ export * from "./Button";