@youngonesworks/ui 0.1.54 → 0.1.55
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.
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
interface IProfileMenu {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
metaTitle?: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
classNames?: {
|
|
8
|
+
root?: string;
|
|
9
|
+
button?: string;
|
|
10
|
+
menu?: string;
|
|
11
|
+
};
|
|
12
|
+
content: {
|
|
13
|
+
key: number;
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
title: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}[];
|
|
18
|
+
}
|
|
19
|
+
declare const ProfileMenu: ({ title, metaTitle, icon, content, disabled, classNames }: IProfileMenu) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default ProfileMenu;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import ProfileMenu from './ProfileMenu';
|
|
3
|
+
declare const meta: Meta<typeof ProfileMenu>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ProfileMenu>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithDisabledItems: Story;
|
|
8
|
+
export declare const CustomClasses: Story;
|
|
9
|
+
export declare const DisabledMenu: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|