@kaio-xyz/design-system 1.1.4 → 1.1.5

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.
@@ -11,3 +11,4 @@ export { default as ChevronGrabberIcon } from "./chevron-grabber.svg";
11
11
  export { default as MinusIcon } from "./minus.svg";
12
12
  export { default as ClipBoardIcon } from "./clipboard.svg";
13
13
  export { default as LoadingCircleIcon } from "./loading-circle.svg";
14
+ export { default as UserIcon } from "./user.svg";
@@ -1 +1 @@
1
- export { Button, type ButtonProps } from "./button";
1
+ export { Button, type ButtonProps, type CommonButtonProps } from "./button";
@@ -0,0 +1,7 @@
1
+ import { PropsWithChildren } from "react";
2
+ type DropdownMenuItemProps = PropsWithChildren & {
3
+ disabled?: boolean;
4
+ onClick: () => void;
5
+ };
6
+ export declare const DropdownMenuItem: ({ children, disabled, ...rest }: DropdownMenuItemProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export { DropdownMenuItem } from "./dropdown-menu-item";
@@ -0,0 +1,11 @@
1
+ import React, { PropsWithChildren } from "react";
2
+ import { CommonButtonProps } from "@/components/atoms/button";
3
+ type DropdownMenuProps = PropsWithChildren & {
4
+ text?: string;
5
+ icon?: SvgIcon;
6
+ disabled?: boolean;
7
+ body?: React.ReactNode;
8
+ variant?: CommonButtonProps["variant"];
9
+ };
10
+ export declare const DropdownMenu: ({ text, children, icon: Icon, disabled, body, variant, ...rest }: DropdownMenuProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,19 @@
1
+ import type { StoryObj } from "@storybook/react";
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ text, children, icon: Icon, disabled, body, variant, ...rest }: {
5
+ children?: import("react").ReactNode | undefined;
6
+ } & {
7
+ text?: string;
8
+ icon?: SvgIcon;
9
+ disabled?: boolean;
10
+ body?: React.ReactNode;
11
+ variant?: import("../button").CommonButtonProps["variant"];
12
+ }) => import("react/jsx-runtime").JSX.Element;
13
+ tags: string[];
14
+ };
15
+ export default meta;
16
+ type Story = StoryObj<typeof meta>;
17
+ export declare const Default: Story;
18
+ export declare const WithIcon: Story;
19
+ export declare const Custom: Story;
@@ -0,0 +1,17 @@
1
+ export declare const DropdownMenu: {
2
+ Root: ({ text, children, icon: Icon, disabled, body, variant, ...rest }: {
3
+ children?: import("react").ReactNode | undefined;
4
+ } & {
5
+ text?: string;
6
+ icon?: SvgIcon;
7
+ disabled?: boolean;
8
+ body?: React.ReactNode;
9
+ variant?: import("../button").CommonButtonProps["variant"];
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ Item: ({ children, disabled, ...rest }: {
12
+ children?: import("react").ReactNode | undefined;
13
+ } & {
14
+ disabled?: boolean;
15
+ onClick: () => void;
16
+ }) => import("react/jsx-runtime").JSX.Element;
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaio-xyz/design-system",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -68,6 +68,7 @@
68
68
  ],
69
69
  "dependencies": {
70
70
  "@radix-ui/react-accordion": "1.2.12",
71
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
71
72
  "modern-normalize": "3.0.1",
72
73
  "react-data-table-component": "7.7.0",
73
74
  "react-hook-form": "7.68.0",