globalfy-design-system 0.16.0 → 0.18.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 { SegmentedControlProps } from "./SegmentedControl.types";
2
- export declare const SegmentedControl: ({ tabs, size, className, ...props }: SegmentedControlProps) => import("react/jsx-runtime").JSX.Element;
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, className, ...props }: import("./SegmentedControl.types").SegmentedControlProps) => import("react/jsx-runtime").JSX.Element;
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;
@@ -1,4 +1,2 @@
1
- import * as React from "react";
2
- import * as SwitchPrimitives from "@radix-ui/react-switch";
3
1
  import { SwitchProps } from "./Switch.types";
4
- export declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & SwitchProps & React.RefAttributes<HTMLButtonElement>>;
2
+ export declare const Switch: ({ icons, className }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { StoryObj } from "@storybook/react";
3
2
  declare const meta: {
4
3
  title: string;
5
- component: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-switch").SwitchProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("./Switch.types").SwitchProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ component: ({ icons, className }: import("./Switch.types").SwitchProps) => import("react/jsx-runtime").JSX.Element;
6
5
  tags: string[];
7
6
  };
8
7
  export default meta;
@@ -1,3 +1,8 @@
1
1
  export type SwitchProps = {
2
- variant?: "regular" | "large";
2
+ "data-testid"?: string;
3
+ icons?: {
4
+ selectedIcon: string;
5
+ unselectedIcon: string;
6
+ };
7
+ className?: string;
3
8
  };
@@ -0,0 +1,2 @@
1
+ import { TabsProps } from "./Tabs.types";
2
+ export declare const Tabs: ({ tabs, defaultValue, variant, className, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export * from "./Tabs";
2
+ export * from "./Tabs.types";
@@ -0,0 +1,2 @@
1
+ import { TagProps } from "./Tag.types";
2
+ export declare const Tag: ({ children, className, variant, color }: TagProps) => 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, 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,8 @@
1
+ import { ReactNode } from "react";
2
+ export type TagProps = {
3
+ children: ReactNode;
4
+ className?: string;
5
+ variant?: "light" | "dark" | "ghost";
6
+ color?: "red" | "orange" | "lightGreen" | "violet" | "blue" | "darkGreen" | "yellow";
7
+ "data-testid"?: string;
8
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./Tag";
2
+ export * from "./Tag.types";
@@ -11,3 +11,5 @@ export * from "./Button";
11
11
  export * from "./Chip";
12
12
  export * from "./SegmentedControl";
13
13
  export * from "./Snackbar";
14
+ export * from "./Tooltip";
15
+ export * from "./Tabs";