globalfy-design-system 1.49.1 → 1.50.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/atoms/Button/Button.d.ts +73 -73
- package/dist/components/atoms/Button/SpinnerIcon.d.ts +91 -91
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/atoms/Checkbox/Checkbox.stories.d.ts +3 -6
- package/dist/components/atoms/DropdownList/CssVariants.d.ts +98 -98
- package/dist/components/atoms/Icon/unicons/UniconsIcons.d.ts +0 -1
- package/dist/components/atoms/Icon/unicons/uniconsIconsList.d.ts +0 -1
- package/dist/components/atoms/Input/Input.d.ts +2 -0
- package/dist/components/atoms/Input/Input.stories.d.ts +1 -0
- package/dist/components/molecules/popover-menu/variants.d.ts +56 -56
- package/dist/globalfy-design-system.js +1560 -63761
- package/dist/globalfy-design-system.umd.cjs +119 -75
- package/dist/index-3ac2ba72.js +7 -0
- package/dist/main-ab5d96a3.js +70030 -0
- package/package.json +40 -40
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ButtonProps as NextUIButtonProps } from '@
|
|
2
|
+
import { ButtonProps as NextUIButtonProps } from '@heroui/react';
|
|
3
3
|
|
|
4
4
|
export type ButtonVariant = 'primaryDark' | 'primaryLight' | 'primary' | 'negative' | 'secondaryNegative' | 'secondary' | 'tertiary' | 'tertiaryDark' | 'tertiaryDarkGreen' | 'tertiaryLight' | 'direction' | 'directionCircle' | 'icon';
|
|
5
5
|
export type ButtonProps = Omit<NextUIButtonProps, 'variant' | 'size' | 'ref'> & {
|
|
6
|
-
children
|
|
6
|
+
children?: React.ReactNode;
|
|
7
7
|
iconLeft?: React.ReactNode;
|
|
8
8
|
iconRight?: React.ReactNode;
|
|
9
9
|
full?: boolean;
|
|
@@ -17,9 +17,9 @@ export type ButtonProps = Omit<NextUIButtonProps, 'variant' | 'size' | 'ref'> &
|
|
|
17
17
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onFocus' | 'onBlur' | 'color'>;
|
|
18
18
|
export declare const buttonVariants: import('tailwind-variants').TVReturnType<{
|
|
19
19
|
size: {
|
|
20
|
-
small:
|
|
21
|
-
medium:
|
|
22
|
-
large:
|
|
20
|
+
small: "h-9";
|
|
21
|
+
medium: "h-12";
|
|
22
|
+
large: "h-14";
|
|
23
23
|
};
|
|
24
24
|
variant: {
|
|
25
25
|
primaryDark: string;
|
|
@@ -37,25 +37,25 @@ export declare const buttonVariants: import('tailwind-variants').TVReturnType<{
|
|
|
37
37
|
icon: string;
|
|
38
38
|
};
|
|
39
39
|
full: {
|
|
40
|
-
true:
|
|
41
|
-
false:
|
|
40
|
+
true: "w-full";
|
|
41
|
+
false: "";
|
|
42
42
|
};
|
|
43
43
|
disabled: {
|
|
44
|
-
true:
|
|
45
|
-
false:
|
|
44
|
+
true: "";
|
|
45
|
+
false: "";
|
|
46
46
|
};
|
|
47
47
|
isLoading: {
|
|
48
|
-
true:
|
|
49
|
-
false:
|
|
48
|
+
true: "";
|
|
49
|
+
false: "";
|
|
50
50
|
};
|
|
51
51
|
hasIcon: {
|
|
52
|
-
true:
|
|
52
|
+
true: "!px-6";
|
|
53
53
|
};
|
|
54
54
|
}, undefined, string, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
55
55
|
size: {
|
|
56
|
-
small:
|
|
57
|
-
medium:
|
|
58
|
-
large:
|
|
56
|
+
small: "h-9";
|
|
57
|
+
medium: "h-12";
|
|
58
|
+
large: "h-14";
|
|
59
59
|
};
|
|
60
60
|
variant: {
|
|
61
61
|
primaryDark: string;
|
|
@@ -73,25 +73,25 @@ export declare const buttonVariants: import('tailwind-variants').TVReturnType<{
|
|
|
73
73
|
icon: string;
|
|
74
74
|
};
|
|
75
75
|
full: {
|
|
76
|
-
true:
|
|
77
|
-
false:
|
|
76
|
+
true: "w-full";
|
|
77
|
+
false: "";
|
|
78
78
|
};
|
|
79
79
|
disabled: {
|
|
80
|
-
true:
|
|
81
|
-
false:
|
|
80
|
+
true: "";
|
|
81
|
+
false: "";
|
|
82
82
|
};
|
|
83
83
|
isLoading: {
|
|
84
|
-
true:
|
|
85
|
-
false:
|
|
84
|
+
true: "";
|
|
85
|
+
false: "";
|
|
86
86
|
};
|
|
87
87
|
hasIcon: {
|
|
88
|
-
true:
|
|
88
|
+
true: "!px-6";
|
|
89
89
|
};
|
|
90
90
|
}, {
|
|
91
91
|
size: {
|
|
92
|
-
small:
|
|
93
|
-
medium:
|
|
94
|
-
large:
|
|
92
|
+
small: "h-9";
|
|
93
|
+
medium: "h-12";
|
|
94
|
+
large: "h-14";
|
|
95
95
|
};
|
|
96
96
|
variant: {
|
|
97
97
|
primaryDark: string;
|
|
@@ -109,25 +109,25 @@ export declare const buttonVariants: import('tailwind-variants').TVReturnType<{
|
|
|
109
109
|
icon: string;
|
|
110
110
|
};
|
|
111
111
|
full: {
|
|
112
|
-
true:
|
|
113
|
-
false:
|
|
112
|
+
true: "w-full";
|
|
113
|
+
false: "";
|
|
114
114
|
};
|
|
115
115
|
disabled: {
|
|
116
|
-
true:
|
|
117
|
-
false:
|
|
116
|
+
true: "";
|
|
117
|
+
false: "";
|
|
118
118
|
};
|
|
119
119
|
isLoading: {
|
|
120
|
-
true:
|
|
121
|
-
false:
|
|
120
|
+
true: "";
|
|
121
|
+
false: "";
|
|
122
122
|
};
|
|
123
123
|
hasIcon: {
|
|
124
|
-
true:
|
|
124
|
+
true: "!px-6";
|
|
125
125
|
};
|
|
126
126
|
}>, {
|
|
127
127
|
size: {
|
|
128
|
-
small:
|
|
129
|
-
medium:
|
|
130
|
-
large:
|
|
128
|
+
small: "h-9";
|
|
129
|
+
medium: "h-12";
|
|
130
|
+
large: "h-14";
|
|
131
131
|
};
|
|
132
132
|
variant: {
|
|
133
133
|
primaryDark: string;
|
|
@@ -145,25 +145,25 @@ export declare const buttonVariants: import('tailwind-variants').TVReturnType<{
|
|
|
145
145
|
icon: string;
|
|
146
146
|
};
|
|
147
147
|
full: {
|
|
148
|
-
true:
|
|
149
|
-
false:
|
|
148
|
+
true: "w-full";
|
|
149
|
+
false: "";
|
|
150
150
|
};
|
|
151
151
|
disabled: {
|
|
152
|
-
true:
|
|
153
|
-
false:
|
|
152
|
+
true: "";
|
|
153
|
+
false: "";
|
|
154
154
|
};
|
|
155
155
|
isLoading: {
|
|
156
|
-
true:
|
|
157
|
-
false:
|
|
156
|
+
true: "";
|
|
157
|
+
false: "";
|
|
158
158
|
};
|
|
159
159
|
hasIcon: {
|
|
160
|
-
true:
|
|
160
|
+
true: "!px-6";
|
|
161
161
|
};
|
|
162
162
|
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
163
163
|
size: {
|
|
164
|
-
small:
|
|
165
|
-
medium:
|
|
166
|
-
large:
|
|
164
|
+
small: "h-9";
|
|
165
|
+
medium: "h-12";
|
|
166
|
+
large: "h-14";
|
|
167
167
|
};
|
|
168
168
|
variant: {
|
|
169
169
|
primaryDark: string;
|
|
@@ -181,25 +181,25 @@ export declare const buttonVariants: import('tailwind-variants').TVReturnType<{
|
|
|
181
181
|
icon: string;
|
|
182
182
|
};
|
|
183
183
|
full: {
|
|
184
|
-
true:
|
|
185
|
-
false:
|
|
184
|
+
true: "w-full";
|
|
185
|
+
false: "";
|
|
186
186
|
};
|
|
187
187
|
disabled: {
|
|
188
|
-
true:
|
|
189
|
-
false:
|
|
188
|
+
true: "";
|
|
189
|
+
false: "";
|
|
190
190
|
};
|
|
191
191
|
isLoading: {
|
|
192
|
-
true:
|
|
193
|
-
false:
|
|
192
|
+
true: "";
|
|
193
|
+
false: "";
|
|
194
194
|
};
|
|
195
195
|
hasIcon: {
|
|
196
|
-
true:
|
|
196
|
+
true: "!px-6";
|
|
197
197
|
};
|
|
198
198
|
}, undefined, string, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
199
199
|
size: {
|
|
200
|
-
small:
|
|
201
|
-
medium:
|
|
202
|
-
large:
|
|
200
|
+
small: "h-9";
|
|
201
|
+
medium: "h-12";
|
|
202
|
+
large: "h-14";
|
|
203
203
|
};
|
|
204
204
|
variant: {
|
|
205
205
|
primaryDark: string;
|
|
@@ -217,25 +217,25 @@ export declare const buttonVariants: import('tailwind-variants').TVReturnType<{
|
|
|
217
217
|
icon: string;
|
|
218
218
|
};
|
|
219
219
|
full: {
|
|
220
|
-
true:
|
|
221
|
-
false:
|
|
220
|
+
true: "w-full";
|
|
221
|
+
false: "";
|
|
222
222
|
};
|
|
223
223
|
disabled: {
|
|
224
|
-
true:
|
|
225
|
-
false:
|
|
224
|
+
true: "";
|
|
225
|
+
false: "";
|
|
226
226
|
};
|
|
227
227
|
isLoading: {
|
|
228
|
-
true:
|
|
229
|
-
false:
|
|
228
|
+
true: "";
|
|
229
|
+
false: "";
|
|
230
230
|
};
|
|
231
231
|
hasIcon: {
|
|
232
|
-
true:
|
|
232
|
+
true: "!px-6";
|
|
233
233
|
};
|
|
234
234
|
}, {
|
|
235
235
|
size: {
|
|
236
|
-
small:
|
|
237
|
-
medium:
|
|
238
|
-
large:
|
|
236
|
+
small: "h-9";
|
|
237
|
+
medium: "h-12";
|
|
238
|
+
large: "h-14";
|
|
239
239
|
};
|
|
240
240
|
variant: {
|
|
241
241
|
primaryDark: string;
|
|
@@ -253,23 +253,23 @@ export declare const buttonVariants: import('tailwind-variants').TVReturnType<{
|
|
|
253
253
|
icon: string;
|
|
254
254
|
};
|
|
255
255
|
full: {
|
|
256
|
-
true:
|
|
257
|
-
false:
|
|
256
|
+
true: "w-full";
|
|
257
|
+
false: "";
|
|
258
258
|
};
|
|
259
259
|
disabled: {
|
|
260
|
-
true:
|
|
261
|
-
false:
|
|
260
|
+
true: "";
|
|
261
|
+
false: "";
|
|
262
262
|
};
|
|
263
263
|
isLoading: {
|
|
264
|
-
true:
|
|
265
|
-
false:
|
|
264
|
+
true: "";
|
|
265
|
+
false: "";
|
|
266
266
|
};
|
|
267
267
|
hasIcon: {
|
|
268
|
-
true:
|
|
268
|
+
true: "!px-6";
|
|
269
269
|
};
|
|
270
270
|
}>, unknown, unknown, undefined>>;
|
|
271
271
|
export declare const Button: React.ForwardRefExoticComponent<Omit<NextUIButtonProps, "ref" | "variant" | "size"> & {
|
|
272
|
-
children
|
|
272
|
+
children?: React.ReactNode;
|
|
273
273
|
iconLeft?: React.ReactNode;
|
|
274
274
|
iconRight?: React.ReactNode;
|
|
275
275
|
full?: boolean | undefined;
|
|
@@ -2,115 +2,115 @@ import { VariantProps } from 'tailwind-variants';
|
|
|
2
2
|
|
|
3
3
|
declare const iconLoadingVariants: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
variant: {
|
|
5
|
-
primaryDark:
|
|
6
|
-
primaryLight:
|
|
7
|
-
primary:
|
|
8
|
-
negative:
|
|
9
|
-
secondaryNegative:
|
|
10
|
-
secondary:
|
|
11
|
-
tertiary:
|
|
12
|
-
tertiaryDark:
|
|
13
|
-
tertiaryDarkGreen:
|
|
14
|
-
tertiaryLight:
|
|
15
|
-
direction:
|
|
16
|
-
directionCircle:
|
|
17
|
-
icon:
|
|
5
|
+
primaryDark: "text-primary-green-500";
|
|
6
|
+
primaryLight: "text-secondary-green-500";
|
|
7
|
+
primary: "text-white";
|
|
8
|
+
negative: "text-white";
|
|
9
|
+
secondaryNegative: "text-complementary-red-700";
|
|
10
|
+
secondary: "text-secondary-green-500";
|
|
11
|
+
tertiary: "text-primary-green-500";
|
|
12
|
+
tertiaryDark: "text-secondary-green-500";
|
|
13
|
+
tertiaryDarkGreen: "text-secondary-green-500";
|
|
14
|
+
tertiaryLight: "text-primary-green-500";
|
|
15
|
+
direction: "text-white";
|
|
16
|
+
directionCircle: "text-white";
|
|
17
|
+
icon: "text-primary-green-500";
|
|
18
18
|
};
|
|
19
19
|
}, undefined, "h-5 w-5 animate-spin", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
20
20
|
variant: {
|
|
21
|
-
primaryDark:
|
|
22
|
-
primaryLight:
|
|
23
|
-
primary:
|
|
24
|
-
negative:
|
|
25
|
-
secondaryNegative:
|
|
26
|
-
secondary:
|
|
27
|
-
tertiary:
|
|
28
|
-
tertiaryDark:
|
|
29
|
-
tertiaryDarkGreen:
|
|
30
|
-
tertiaryLight:
|
|
31
|
-
direction:
|
|
32
|
-
directionCircle:
|
|
33
|
-
icon:
|
|
21
|
+
primaryDark: "text-primary-green-500";
|
|
22
|
+
primaryLight: "text-secondary-green-500";
|
|
23
|
+
primary: "text-white";
|
|
24
|
+
negative: "text-white";
|
|
25
|
+
secondaryNegative: "text-complementary-red-700";
|
|
26
|
+
secondary: "text-secondary-green-500";
|
|
27
|
+
tertiary: "text-primary-green-500";
|
|
28
|
+
tertiaryDark: "text-secondary-green-500";
|
|
29
|
+
tertiaryDarkGreen: "text-secondary-green-500";
|
|
30
|
+
tertiaryLight: "text-primary-green-500";
|
|
31
|
+
direction: "text-white";
|
|
32
|
+
directionCircle: "text-white";
|
|
33
|
+
icon: "text-primary-green-500";
|
|
34
34
|
};
|
|
35
35
|
}, {
|
|
36
36
|
variant: {
|
|
37
|
-
primaryDark:
|
|
38
|
-
primaryLight:
|
|
39
|
-
primary:
|
|
40
|
-
negative:
|
|
41
|
-
secondaryNegative:
|
|
42
|
-
secondary:
|
|
43
|
-
tertiary:
|
|
44
|
-
tertiaryDark:
|
|
45
|
-
tertiaryDarkGreen:
|
|
46
|
-
tertiaryLight:
|
|
47
|
-
direction:
|
|
48
|
-
directionCircle:
|
|
49
|
-
icon:
|
|
37
|
+
primaryDark: "text-primary-green-500";
|
|
38
|
+
primaryLight: "text-secondary-green-500";
|
|
39
|
+
primary: "text-white";
|
|
40
|
+
negative: "text-white";
|
|
41
|
+
secondaryNegative: "text-complementary-red-700";
|
|
42
|
+
secondary: "text-secondary-green-500";
|
|
43
|
+
tertiary: "text-primary-green-500";
|
|
44
|
+
tertiaryDark: "text-secondary-green-500";
|
|
45
|
+
tertiaryDarkGreen: "text-secondary-green-500";
|
|
46
|
+
tertiaryLight: "text-primary-green-500";
|
|
47
|
+
direction: "text-white";
|
|
48
|
+
directionCircle: "text-white";
|
|
49
|
+
icon: "text-primary-green-500";
|
|
50
50
|
};
|
|
51
51
|
}>, {
|
|
52
52
|
variant: {
|
|
53
|
-
primaryDark:
|
|
54
|
-
primaryLight:
|
|
55
|
-
primary:
|
|
56
|
-
negative:
|
|
57
|
-
secondaryNegative:
|
|
58
|
-
secondary:
|
|
59
|
-
tertiary:
|
|
60
|
-
tertiaryDark:
|
|
61
|
-
tertiaryDarkGreen:
|
|
62
|
-
tertiaryLight:
|
|
63
|
-
direction:
|
|
64
|
-
directionCircle:
|
|
65
|
-
icon:
|
|
53
|
+
primaryDark: "text-primary-green-500";
|
|
54
|
+
primaryLight: "text-secondary-green-500";
|
|
55
|
+
primary: "text-white";
|
|
56
|
+
negative: "text-white";
|
|
57
|
+
secondaryNegative: "text-complementary-red-700";
|
|
58
|
+
secondary: "text-secondary-green-500";
|
|
59
|
+
tertiary: "text-primary-green-500";
|
|
60
|
+
tertiaryDark: "text-secondary-green-500";
|
|
61
|
+
tertiaryDarkGreen: "text-secondary-green-500";
|
|
62
|
+
tertiaryLight: "text-primary-green-500";
|
|
63
|
+
direction: "text-white";
|
|
64
|
+
directionCircle: "text-white";
|
|
65
|
+
icon: "text-primary-green-500";
|
|
66
66
|
};
|
|
67
67
|
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
68
68
|
variant: {
|
|
69
|
-
primaryDark:
|
|
70
|
-
primaryLight:
|
|
71
|
-
primary:
|
|
72
|
-
negative:
|
|
73
|
-
secondaryNegative:
|
|
74
|
-
secondary:
|
|
75
|
-
tertiary:
|
|
76
|
-
tertiaryDark:
|
|
77
|
-
tertiaryDarkGreen:
|
|
78
|
-
tertiaryLight:
|
|
79
|
-
direction:
|
|
80
|
-
directionCircle:
|
|
81
|
-
icon:
|
|
69
|
+
primaryDark: "text-primary-green-500";
|
|
70
|
+
primaryLight: "text-secondary-green-500";
|
|
71
|
+
primary: "text-white";
|
|
72
|
+
negative: "text-white";
|
|
73
|
+
secondaryNegative: "text-complementary-red-700";
|
|
74
|
+
secondary: "text-secondary-green-500";
|
|
75
|
+
tertiary: "text-primary-green-500";
|
|
76
|
+
tertiaryDark: "text-secondary-green-500";
|
|
77
|
+
tertiaryDarkGreen: "text-secondary-green-500";
|
|
78
|
+
tertiaryLight: "text-primary-green-500";
|
|
79
|
+
direction: "text-white";
|
|
80
|
+
directionCircle: "text-white";
|
|
81
|
+
icon: "text-primary-green-500";
|
|
82
82
|
};
|
|
83
83
|
}, undefined, "h-5 w-5 animate-spin", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
84
84
|
variant: {
|
|
85
|
-
primaryDark:
|
|
86
|
-
primaryLight:
|
|
87
|
-
primary:
|
|
88
|
-
negative:
|
|
89
|
-
secondaryNegative:
|
|
90
|
-
secondary:
|
|
91
|
-
tertiary:
|
|
92
|
-
tertiaryDark:
|
|
93
|
-
tertiaryDarkGreen:
|
|
94
|
-
tertiaryLight:
|
|
95
|
-
direction:
|
|
96
|
-
directionCircle:
|
|
97
|
-
icon:
|
|
85
|
+
primaryDark: "text-primary-green-500";
|
|
86
|
+
primaryLight: "text-secondary-green-500";
|
|
87
|
+
primary: "text-white";
|
|
88
|
+
negative: "text-white";
|
|
89
|
+
secondaryNegative: "text-complementary-red-700";
|
|
90
|
+
secondary: "text-secondary-green-500";
|
|
91
|
+
tertiary: "text-primary-green-500";
|
|
92
|
+
tertiaryDark: "text-secondary-green-500";
|
|
93
|
+
tertiaryDarkGreen: "text-secondary-green-500";
|
|
94
|
+
tertiaryLight: "text-primary-green-500";
|
|
95
|
+
direction: "text-white";
|
|
96
|
+
directionCircle: "text-white";
|
|
97
|
+
icon: "text-primary-green-500";
|
|
98
98
|
};
|
|
99
99
|
}, {
|
|
100
100
|
variant: {
|
|
101
|
-
primaryDark:
|
|
102
|
-
primaryLight:
|
|
103
|
-
primary:
|
|
104
|
-
negative:
|
|
105
|
-
secondaryNegative:
|
|
106
|
-
secondary:
|
|
107
|
-
tertiary:
|
|
108
|
-
tertiaryDark:
|
|
109
|
-
tertiaryDarkGreen:
|
|
110
|
-
tertiaryLight:
|
|
111
|
-
direction:
|
|
112
|
-
directionCircle:
|
|
113
|
-
icon:
|
|
101
|
+
primaryDark: "text-primary-green-500";
|
|
102
|
+
primaryLight: "text-secondary-green-500";
|
|
103
|
+
primary: "text-white";
|
|
104
|
+
negative: "text-white";
|
|
105
|
+
secondaryNegative: "text-complementary-red-700";
|
|
106
|
+
secondary: "text-secondary-green-500";
|
|
107
|
+
tertiary: "text-primary-green-500";
|
|
108
|
+
tertiaryDark: "text-secondary-green-500";
|
|
109
|
+
tertiaryDarkGreen: "text-secondary-green-500";
|
|
110
|
+
tertiaryLight: "text-primary-green-500";
|
|
111
|
+
direction: "text-white";
|
|
112
|
+
directionCircle: "text-white";
|
|
113
|
+
icon: "text-primary-green-500";
|
|
114
114
|
};
|
|
115
115
|
}>, unknown, unknown, undefined>>;
|
|
116
116
|
type SpinIconProps = React.SVGProps<SVGSVGElement> & VariantProps<typeof iconLoadingVariants>;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Checkbox } from './Checkbox';
|
|
2
3
|
|
|
3
|
-
declare const meta:
|
|
4
|
-
title: string;
|
|
5
|
-
component: (props: import('@nextui-org/checkbox').CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
tags: string[];
|
|
7
|
-
};
|
|
4
|
+
declare const meta: Meta<typeof Checkbox>;
|
|
8
5
|
export default meta;
|
|
9
6
|
type Story = StoryObj<typeof meta>;
|
|
10
7
|
export declare const Default: Story;
|