globalfy-design-system 1.20.2 → 1.21.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/molecules/index.d.ts +2 -0
- package/dist/components/molecules/popover-content/index.d.ts +1 -0
- package/dist/components/molecules/popover-content/popover-content.d.ts +10 -0
- package/dist/components/molecules/popover-content/popover-content.stories.d.ts +12 -0
- package/dist/components/molecules/popover-content/popover-content.test.d.ts +1 -0
- package/dist/components/molecules/popover-menu/index.d.ts +1 -0
- package/dist/components/molecules/popover-menu/popover-menu.d.ts +11 -0
- package/dist/components/molecules/popover-menu/popover-menu.stories.d.ts +11 -0
- package/dist/components/molecules/popover-menu/popover-menu.test.d.ts +1 -0
- package/dist/components/molecules/popover-menu/variants.d.ts +114 -0
- package/dist/globalfy-design-system.js +28413 -24665
- package/dist/globalfy-design-system.umd.cjs +77 -51
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './popover-content';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type MenuButtonProps = {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
};
|
|
6
|
+
export type PopoverContentProps = {
|
|
7
|
+
title?: string;
|
|
8
|
+
menu: MenuButtonProps[];
|
|
9
|
+
};
|
|
10
|
+
export declare const PopoverContent: ({ title, menu }: PopoverContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { PopoverContentProps } from './popover-content';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: ({ title, menu }: PopoverContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
tags: string[];
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
export declare const Playground: Story;
|
|
12
|
+
export declare const WithPopoverContentExample: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './popover-menu';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PopoverContentProps } from '../../';
|
|
2
|
+
|
|
3
|
+
export type PopoverMenuProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
align?: 'left' | 'center' | 'right';
|
|
6
|
+
className?: string;
|
|
7
|
+
elementsProps: {
|
|
8
|
+
popoverContent: PopoverContentProps;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare function PopoverMenu({ className, align, title, elementsProps }: PopoverMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { PopoverMenu } from './popover-menu';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof PopoverMenu;
|
|
7
|
+
tags: string[];
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export declare const containerVariants: import('tailwind-variants').TVReturnType<{
|
|
2
|
+
align: {
|
|
3
|
+
left: string;
|
|
4
|
+
right: string;
|
|
5
|
+
center: string;
|
|
6
|
+
};
|
|
7
|
+
allowSort: {
|
|
8
|
+
true: string;
|
|
9
|
+
false: string;
|
|
10
|
+
};
|
|
11
|
+
}, undefined, "flex items-center gap-2 border-none", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
12
|
+
align: {
|
|
13
|
+
left: string;
|
|
14
|
+
right: string;
|
|
15
|
+
center: string;
|
|
16
|
+
};
|
|
17
|
+
allowSort: {
|
|
18
|
+
true: string;
|
|
19
|
+
false: string;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
align: {
|
|
23
|
+
left: string;
|
|
24
|
+
right: string;
|
|
25
|
+
center: string;
|
|
26
|
+
};
|
|
27
|
+
allowSort: {
|
|
28
|
+
true: string;
|
|
29
|
+
false: string;
|
|
30
|
+
};
|
|
31
|
+
}>, {
|
|
32
|
+
align: {
|
|
33
|
+
left: string;
|
|
34
|
+
right: string;
|
|
35
|
+
center: string;
|
|
36
|
+
};
|
|
37
|
+
allowSort: {
|
|
38
|
+
true: string;
|
|
39
|
+
false: string;
|
|
40
|
+
};
|
|
41
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
42
|
+
align: {
|
|
43
|
+
left: string;
|
|
44
|
+
right: string;
|
|
45
|
+
center: string;
|
|
46
|
+
};
|
|
47
|
+
allowSort: {
|
|
48
|
+
true: string;
|
|
49
|
+
false: string;
|
|
50
|
+
};
|
|
51
|
+
}, undefined, "flex items-center gap-2 border-none", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
52
|
+
align: {
|
|
53
|
+
left: string;
|
|
54
|
+
right: string;
|
|
55
|
+
center: string;
|
|
56
|
+
};
|
|
57
|
+
allowSort: {
|
|
58
|
+
true: string;
|
|
59
|
+
false: string;
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
align: {
|
|
63
|
+
left: string;
|
|
64
|
+
right: string;
|
|
65
|
+
center: string;
|
|
66
|
+
};
|
|
67
|
+
allowSort: {
|
|
68
|
+
true: string;
|
|
69
|
+
false: string;
|
|
70
|
+
};
|
|
71
|
+
}>, unknown, unknown, undefined>>;
|
|
72
|
+
export declare const headVariants: import('tailwind-variants').TVReturnType<{
|
|
73
|
+
align: {
|
|
74
|
+
left: string;
|
|
75
|
+
right: string;
|
|
76
|
+
center: string;
|
|
77
|
+
};
|
|
78
|
+
}, undefined, "text-xs uppercase text-primary-grey-900", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
79
|
+
align: {
|
|
80
|
+
left: string;
|
|
81
|
+
right: string;
|
|
82
|
+
center: string;
|
|
83
|
+
};
|
|
84
|
+
}, {
|
|
85
|
+
align: {
|
|
86
|
+
left: string;
|
|
87
|
+
right: string;
|
|
88
|
+
center: string;
|
|
89
|
+
};
|
|
90
|
+
}>, {
|
|
91
|
+
align: {
|
|
92
|
+
left: string;
|
|
93
|
+
right: string;
|
|
94
|
+
center: string;
|
|
95
|
+
};
|
|
96
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
97
|
+
align: {
|
|
98
|
+
left: string;
|
|
99
|
+
right: string;
|
|
100
|
+
center: string;
|
|
101
|
+
};
|
|
102
|
+
}, undefined, "text-xs uppercase text-primary-grey-900", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
103
|
+
align: {
|
|
104
|
+
left: string;
|
|
105
|
+
right: string;
|
|
106
|
+
center: string;
|
|
107
|
+
};
|
|
108
|
+
}, {
|
|
109
|
+
align: {
|
|
110
|
+
left: string;
|
|
111
|
+
right: string;
|
|
112
|
+
center: string;
|
|
113
|
+
};
|
|
114
|
+
}>, unknown, unknown, undefined>>;
|