@nextui-org/theme 2.1.9 → 2.1.11
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/{chunk-77O7KLUI.mjs → chunk-362LGETO.mjs} +1 -1
- package/dist/{chunk-23KK2ZAZ.mjs → chunk-5GLH2ERS.mjs} +2 -2
- package/dist/{chunk-F76574GG.mjs → chunk-6RI6HHSE.mjs} +126 -46
- package/dist/{chunk-RYOZQSNI.mjs → chunk-6XG3Y4GM.mjs} +12 -7
- package/dist/chunk-76A2UI6G.mjs +243 -0
- package/dist/chunk-AQDGQGUV.mjs +391 -0
- package/dist/{chunk-NAY2XKLY.mjs → chunk-B6QMTIF2.mjs} +1 -1
- package/dist/{chunk-LGRQRHJJ.mjs → chunk-BR6V72YY.mjs} +6 -3
- package/dist/{chunk-5VJPQADB.mjs → chunk-CLW3JMFF.mjs} +2 -2
- package/dist/{chunk-NW5W5ANO.mjs → chunk-DGMET46Q.mjs} +4 -3
- package/dist/{chunk-WBNF66V7.mjs → chunk-F36W5Y6O.mjs} +1 -1
- package/dist/{chunk-GNLIYZAQ.mjs → chunk-FUMNSN2H.mjs} +1 -1
- package/dist/{chunk-KPK2JQIF.mjs → chunk-G3PB7L4N.mjs} +10 -0
- package/dist/{chunk-4DKVPW5Z.mjs → chunk-HBLCAYSX.mjs} +2 -2
- package/dist/{chunk-XPLXQDB3.mjs → chunk-HYA3WURA.mjs} +1 -1
- package/dist/{chunk-UHF2F2WJ.mjs → chunk-I5E37FAL.mjs} +4 -4
- package/dist/{chunk-RPMLQF4Y.mjs → chunk-J6EGGODL.mjs} +5 -5
- package/dist/{chunk-XY766PDD.mjs → chunk-J7FVLFSZ.mjs} +1 -1
- package/dist/{chunk-GKYVNUGL.mjs → chunk-JMOQB2OS.mjs} +3 -3
- package/dist/{chunk-EUS2SEYI.mjs → chunk-JX6O4KJS.mjs} +2 -2
- package/dist/{chunk-PJV3MWBL.mjs → chunk-KNUJMWVH.mjs} +185 -52
- package/dist/{chunk-YSXRNNDV.mjs → chunk-N7N2LONM.mjs} +1 -1
- package/dist/{chunk-RHIZZ5XX.mjs → chunk-ODGTGSNM.mjs} +2 -2
- package/dist/{chunk-EC4F6RJF.mjs → chunk-PFGLTKGJ.mjs} +1 -1
- package/dist/{chunk-FZZINZOQ.mjs → chunk-QF56VSRK.mjs} +23 -6
- package/dist/{chunk-YKWIBFFV.mjs → chunk-QWYWYOG6.mjs} +18 -4
- package/dist/{chunk-Y32IWEMZ.mjs → chunk-S7W5DQP2.mjs} +3 -3
- package/dist/{chunk-TIMHSW45.mjs → chunk-TUUOVVH3.mjs} +2 -2
- package/dist/{chunk-B55QBA5E.mjs → chunk-VD4MGTVP.mjs} +1 -1
- package/dist/{chunk-4JBYJQSP.mjs → chunk-VGHVBXXT.mjs} +1 -1
- package/dist/{chunk-WM43BKYH.mjs → chunk-VOTIIGIW.mjs} +3 -3
- package/dist/{chunk-O24TFHPZ.mjs → chunk-VPYXYIZ5.mjs} +2 -2
- package/dist/{chunk-ADNJ6GPZ.mjs → chunk-VU5TSYMO.mjs} +2 -2
- package/dist/{chunk-7MCHEQXT.mjs → chunk-VZI6SR6H.mjs} +4 -1
- package/dist/chunk-WBUVHAJX.mjs +37 -0
- package/dist/chunk-WHT6K6RC.mjs +58 -0
- package/dist/chunk-WNVF6X3M.mjs +171 -0
- package/dist/{chunk-EQIZ7W7V.mjs → chunk-WYVG7NY6.mjs} +3 -3
- package/dist/{chunk-LQGOKGQV.mjs → chunk-XHQNEGB6.mjs} +1 -1
- package/dist/{chunk-T7JNS25F.mjs → chunk-XHQUSKIE.mjs} +10 -1
- package/dist/{chunk-MOHT4OBR.mjs → chunk-XNF3KCH7.mjs} +2 -2
- package/dist/{chunk-XJU7LDVX.mjs → chunk-Y5WLFHBC.mjs} +74 -9
- package/dist/{chunk-XCWQAA5D.mjs → chunk-YRDQW7V4.mjs} +5 -5
- package/dist/components/accordion.js +27 -34
- package/dist/components/accordion.mjs +3 -3
- package/dist/components/autocomplete.d.ts +180 -0
- package/dist/components/autocomplete.js +165 -0
- package/dist/components/autocomplete.mjs +8 -0
- package/dist/components/avatar.js +28 -35
- package/dist/components/avatar.mjs +3 -3
- package/dist/components/badge.d.ts +7 -7
- package/dist/components/badge.js +29 -36
- package/dist/components/badge.mjs +3 -3
- package/dist/components/breadcrumbs.d.ts +816 -0
- package/dist/components/breadcrumbs.js +357 -0
- package/dist/components/breadcrumbs.mjs +14 -0
- package/dist/components/button.d.ts +7 -7
- package/dist/components/button.js +104 -39
- package/dist/components/button.mjs +3 -3
- package/dist/components/card.js +26 -33
- package/dist/components/card.mjs +3 -3
- package/dist/components/checkbox.js +25 -32
- package/dist/components/checkbox.mjs +3 -3
- package/dist/components/chip.js +26 -33
- package/dist/components/chip.mjs +3 -3
- package/dist/components/circular-progress.js +25 -32
- package/dist/components/circular-progress.mjs +2 -2
- package/dist/components/code.js +25 -32
- package/dist/components/code.mjs +3 -3
- package/dist/components/divider.js +25 -32
- package/dist/components/divider.mjs +2 -2
- package/dist/components/drip.d.ts +29 -3
- package/dist/components/drip.js +25 -32
- package/dist/components/drip.mjs +2 -2
- package/dist/components/dropdown.d.ts +103 -35
- package/dist/components/dropdown.js +25 -32
- package/dist/components/dropdown.mjs +3 -3
- package/dist/components/image.js +25 -32
- package/dist/components/image.mjs +2 -2
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +1213 -218
- package/dist/components/index.mjs +62 -48
- package/dist/components/input.d.ts +37 -44
- package/dist/components/input.js +208 -82
- package/dist/components/input.mjs +3 -3
- package/dist/components/kbd.js +25 -32
- package/dist/components/kbd.mjs +2 -2
- package/dist/components/link.js +25 -32
- package/dist/components/link.mjs +3 -3
- package/dist/components/listbox.d.ts +1 -1
- package/dist/components/listbox.js +41 -34
- package/dist/components/listbox.mjs +3 -3
- package/dist/components/menu.d.ts +119 -40
- package/dist/components/menu.js +41 -34
- package/dist/components/menu.mjs +3 -3
- package/dist/components/modal.js +25 -32
- package/dist/components/modal.mjs +3 -3
- package/dist/components/navbar.js +29 -33
- package/dist/components/navbar.mjs +3 -3
- package/dist/components/pagination.js +46 -36
- package/dist/components/pagination.mjs +3 -3
- package/dist/components/popover.d.ts +136 -132
- package/dist/components/popover.js +98 -94
- package/dist/components/popover.mjs +3 -3
- package/dist/components/progress.js +25 -32
- package/dist/components/progress.mjs +2 -2
- package/dist/components/radio.js +26 -33
- package/dist/components/radio.mjs +3 -3
- package/dist/components/scroll-shadow.js +25 -32
- package/dist/components/scroll-shadow.mjs +2 -2
- package/dist/components/select.d.ts +40 -54
- package/dist/components/select.js +149 -76
- package/dist/components/select.mjs +3 -3
- package/dist/components/skeleton.js +26 -33
- package/dist/components/skeleton.mjs +2 -2
- package/dist/components/slider.d.ts +1024 -0
- package/dist/components/slider.js +504 -0
- package/dist/components/slider.mjs +12 -0
- package/dist/components/snippet.js +25 -32
- package/dist/components/snippet.mjs +3 -3
- package/dist/components/spacer.js +25 -32
- package/dist/components/spacer.mjs +2 -2
- package/dist/components/spinner.js +25 -32
- package/dist/components/spinner.mjs +2 -2
- package/dist/components/table.js +25 -32
- package/dist/components/table.mjs +3 -3
- package/dist/components/tabs.js +25 -32
- package/dist/components/tabs.mjs +3 -3
- package/dist/components/toggle.js +25 -32
- package/dist/components/toggle.mjs +3 -3
- package/dist/components/user.d.ts +45 -29
- package/dist/components/user.js +25 -32
- package/dist/components/user.mjs +3 -3
- package/dist/default-layout.js +4 -1
- package/dist/default-layout.mjs +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1403 -387
- package/dist/index.mjs +69 -53
- package/dist/plugin.js +24 -5
- package/dist/plugin.mjs +6 -6
- package/dist/types.d.ts +8 -0
- package/dist/utilities/index.d.ts +10 -0
- package/dist/utilities/index.js +10 -0
- package/dist/utilities/index.mjs +2 -2
- package/dist/utilities/transition.d.ts +10 -0
- package/dist/utilities/transition.js +10 -0
- package/dist/utilities/transition.mjs +1 -1
- package/dist/utils/classes.d.ts +13 -1
- package/dist/utils/classes.js +10 -0
- package/dist/utils/classes.mjs +3 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +10 -0
- package/dist/utils/index.mjs +3 -1
- package/dist/utils/theme.js +4 -3
- package/dist/utils/theme.mjs +1 -1
- package/dist/utils/tv.d.ts +2 -2
- package/dist/utils/tv.js +25 -32
- package/dist/utils/tv.mjs +1 -1
- package/package.json +9 -9
- package/dist/chunk-6AEINX52.mjs +0 -44
- package/dist/chunk-SN5GEHHN.mjs +0 -160
- /package/dist/{chunk-RH7YHIQY.mjs → chunk-T6HAGWX5.mjs} +0 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
|
|
5
|
+
declare const autocomplete: tailwind_variants.TVReturnType<{
|
|
6
|
+
disableClearable: {
|
|
7
|
+
true: {
|
|
8
|
+
clearButton: string;
|
|
9
|
+
};
|
|
10
|
+
false: {};
|
|
11
|
+
};
|
|
12
|
+
disableAnimation: {
|
|
13
|
+
true: {
|
|
14
|
+
selectorButton: string;
|
|
15
|
+
};
|
|
16
|
+
false: {
|
|
17
|
+
selectorButton: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
disableSelectorIconRotation: {
|
|
21
|
+
true: {};
|
|
22
|
+
false: {
|
|
23
|
+
selectorButton: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
base: string;
|
|
28
|
+
listboxWrapper: string;
|
|
29
|
+
listbox: string;
|
|
30
|
+
popoverContent: string;
|
|
31
|
+
endContentWrapper: string;
|
|
32
|
+
clearButton: string[];
|
|
33
|
+
selectorButton: string;
|
|
34
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
35
|
+
disableClearable: {
|
|
36
|
+
true: {
|
|
37
|
+
clearButton: string;
|
|
38
|
+
};
|
|
39
|
+
false: {};
|
|
40
|
+
};
|
|
41
|
+
disableAnimation: {
|
|
42
|
+
true: {
|
|
43
|
+
selectorButton: string;
|
|
44
|
+
};
|
|
45
|
+
false: {
|
|
46
|
+
selectorButton: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
disableSelectorIconRotation: {
|
|
50
|
+
true: {};
|
|
51
|
+
false: {
|
|
52
|
+
selectorButton: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}, {
|
|
56
|
+
disableClearable: {
|
|
57
|
+
true: {
|
|
58
|
+
clearButton: string;
|
|
59
|
+
};
|
|
60
|
+
false: {};
|
|
61
|
+
};
|
|
62
|
+
disableAnimation: {
|
|
63
|
+
true: {
|
|
64
|
+
selectorButton: string;
|
|
65
|
+
};
|
|
66
|
+
false: {
|
|
67
|
+
selectorButton: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
disableSelectorIconRotation: {
|
|
71
|
+
true: {};
|
|
72
|
+
false: {
|
|
73
|
+
selectorButton: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}>, {
|
|
77
|
+
disableClearable: {
|
|
78
|
+
true: {
|
|
79
|
+
clearButton: string;
|
|
80
|
+
};
|
|
81
|
+
false: {};
|
|
82
|
+
};
|
|
83
|
+
disableAnimation: {
|
|
84
|
+
true: {
|
|
85
|
+
selectorButton: string;
|
|
86
|
+
};
|
|
87
|
+
false: {
|
|
88
|
+
selectorButton: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
disableSelectorIconRotation: {
|
|
92
|
+
true: {};
|
|
93
|
+
false: {
|
|
94
|
+
selectorButton: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}, {
|
|
98
|
+
base: string;
|
|
99
|
+
listboxWrapper: string;
|
|
100
|
+
listbox: string;
|
|
101
|
+
popoverContent: string;
|
|
102
|
+
endContentWrapper: string;
|
|
103
|
+
clearButton: string[];
|
|
104
|
+
selectorButton: string;
|
|
105
|
+
}, tailwind_variants.TVReturnType<{
|
|
106
|
+
disableClearable: {
|
|
107
|
+
true: {
|
|
108
|
+
clearButton: string;
|
|
109
|
+
};
|
|
110
|
+
false: {};
|
|
111
|
+
};
|
|
112
|
+
disableAnimation: {
|
|
113
|
+
true: {
|
|
114
|
+
selectorButton: string;
|
|
115
|
+
};
|
|
116
|
+
false: {
|
|
117
|
+
selectorButton: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
disableSelectorIconRotation: {
|
|
121
|
+
true: {};
|
|
122
|
+
false: {
|
|
123
|
+
selectorButton: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
}, {
|
|
127
|
+
base: string;
|
|
128
|
+
listboxWrapper: string;
|
|
129
|
+
listbox: string;
|
|
130
|
+
popoverContent: string;
|
|
131
|
+
endContentWrapper: string;
|
|
132
|
+
clearButton: string[];
|
|
133
|
+
selectorButton: string;
|
|
134
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
135
|
+
disableClearable: {
|
|
136
|
+
true: {
|
|
137
|
+
clearButton: string;
|
|
138
|
+
};
|
|
139
|
+
false: {};
|
|
140
|
+
};
|
|
141
|
+
disableAnimation: {
|
|
142
|
+
true: {
|
|
143
|
+
selectorButton: string;
|
|
144
|
+
};
|
|
145
|
+
false: {
|
|
146
|
+
selectorButton: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
disableSelectorIconRotation: {
|
|
150
|
+
true: {};
|
|
151
|
+
false: {
|
|
152
|
+
selectorButton: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
}, {
|
|
156
|
+
disableClearable: {
|
|
157
|
+
true: {
|
|
158
|
+
clearButton: string;
|
|
159
|
+
};
|
|
160
|
+
false: {};
|
|
161
|
+
};
|
|
162
|
+
disableAnimation: {
|
|
163
|
+
true: {
|
|
164
|
+
selectorButton: string;
|
|
165
|
+
};
|
|
166
|
+
false: {
|
|
167
|
+
selectorButton: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
disableSelectorIconRotation: {
|
|
171
|
+
true: {};
|
|
172
|
+
false: {
|
|
173
|
+
selectorButton: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
}>, unknown, unknown, undefined>>;
|
|
177
|
+
type AutocompleteVariantProps = VariantProps<typeof autocomplete>;
|
|
178
|
+
type AutocompleteSlots = keyof ReturnType<typeof autocomplete>;
|
|
179
|
+
|
|
180
|
+
export { AutocompleteSlots, AutocompleteVariantProps, autocomplete };
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/autocomplete.ts
|
|
21
|
+
var autocomplete_exports = {};
|
|
22
|
+
__export(autocomplete_exports, {
|
|
23
|
+
autocomplete: () => autocomplete
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(autocomplete_exports);
|
|
26
|
+
|
|
27
|
+
// src/utils/tv.ts
|
|
28
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
29
|
+
|
|
30
|
+
// src/types.ts
|
|
31
|
+
var spacingScaleKeys = [
|
|
32
|
+
"0",
|
|
33
|
+
"xs",
|
|
34
|
+
"sm",
|
|
35
|
+
"md",
|
|
36
|
+
"lg",
|
|
37
|
+
"xl",
|
|
38
|
+
"2xl",
|
|
39
|
+
"3xl",
|
|
40
|
+
"4xl",
|
|
41
|
+
"5xl",
|
|
42
|
+
"6xl",
|
|
43
|
+
"7xl",
|
|
44
|
+
"8xl",
|
|
45
|
+
"9xl",
|
|
46
|
+
"1",
|
|
47
|
+
"2",
|
|
48
|
+
"3",
|
|
49
|
+
"3.5",
|
|
50
|
+
"4",
|
|
51
|
+
"5",
|
|
52
|
+
"6",
|
|
53
|
+
"7",
|
|
54
|
+
"8",
|
|
55
|
+
"9",
|
|
56
|
+
"10",
|
|
57
|
+
"11",
|
|
58
|
+
"12",
|
|
59
|
+
"13",
|
|
60
|
+
"14",
|
|
61
|
+
"15",
|
|
62
|
+
"16",
|
|
63
|
+
"17",
|
|
64
|
+
"18",
|
|
65
|
+
"20",
|
|
66
|
+
"24",
|
|
67
|
+
"28",
|
|
68
|
+
"32",
|
|
69
|
+
"36",
|
|
70
|
+
"40",
|
|
71
|
+
"44",
|
|
72
|
+
"48",
|
|
73
|
+
"52",
|
|
74
|
+
"56",
|
|
75
|
+
"60",
|
|
76
|
+
"64",
|
|
77
|
+
"72",
|
|
78
|
+
"80",
|
|
79
|
+
"96"
|
|
80
|
+
];
|
|
81
|
+
var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
82
|
+
|
|
83
|
+
// src/utils/tv.ts
|
|
84
|
+
var COMMON_UNITS = ["small", "medium", "large"];
|
|
85
|
+
var tv = (0, import_tailwind_variants.createTV)({
|
|
86
|
+
twMerge: true,
|
|
87
|
+
twMergeConfig: {
|
|
88
|
+
theme: {
|
|
89
|
+
opacity: ["disabled"],
|
|
90
|
+
spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
|
|
91
|
+
borderWidth: COMMON_UNITS,
|
|
92
|
+
borderRadius: COMMON_UNITS
|
|
93
|
+
},
|
|
94
|
+
classGroups: {
|
|
95
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
96
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
97
|
+
"bg-image": ["bg-stripe-gradient"],
|
|
98
|
+
"min-w": [
|
|
99
|
+
{
|
|
100
|
+
"min-w": ["unit", ...mappedSpacingScaleKeys]
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"min-h": [
|
|
104
|
+
{
|
|
105
|
+
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
// src/components/autocomplete.ts
|
|
113
|
+
var autocomplete = tv({
|
|
114
|
+
slots: {
|
|
115
|
+
base: "group inline-flex flex-column w-full",
|
|
116
|
+
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
117
|
+
listbox: "",
|
|
118
|
+
popoverContent: "w-full p-1 overflow-hidden",
|
|
119
|
+
endContentWrapper: "relative flex h-full items-center -mr-2",
|
|
120
|
+
clearButton: [
|
|
121
|
+
"text-medium",
|
|
122
|
+
"translate-x-1",
|
|
123
|
+
"cursor-text",
|
|
124
|
+
"opacity-0",
|
|
125
|
+
"text-default-500",
|
|
126
|
+
"group-data-[invalid=true]:text-danger",
|
|
127
|
+
"data-[visible=true]:opacity-100",
|
|
128
|
+
"data-[visible=true]:cursor-pointer",
|
|
129
|
+
"sm:data-[visible=true]:opacity-0",
|
|
130
|
+
"sm:group-data-[hover=true]:data-[visible=true]:opacity-100"
|
|
131
|
+
],
|
|
132
|
+
selectorButton: "text-medium"
|
|
133
|
+
},
|
|
134
|
+
variants: {
|
|
135
|
+
disableClearable: {
|
|
136
|
+
true: {
|
|
137
|
+
clearButton: "hidden"
|
|
138
|
+
},
|
|
139
|
+
false: {}
|
|
140
|
+
},
|
|
141
|
+
disableAnimation: {
|
|
142
|
+
true: {
|
|
143
|
+
selectorButton: "transition-none"
|
|
144
|
+
},
|
|
145
|
+
false: {
|
|
146
|
+
selectorButton: "transition-transform duration-150 ease motion-reduce:transition-none"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
disableSelectorIconRotation: {
|
|
150
|
+
true: {},
|
|
151
|
+
false: {
|
|
152
|
+
selectorButton: "data-[open=true]:rotate-180"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
defaultVariants: {
|
|
157
|
+
disableAnimation: false,
|
|
158
|
+
disableClearable: false,
|
|
159
|
+
disableSelectorIconRotation: false
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
163
|
+
0 && (module.exports = {
|
|
164
|
+
autocomplete
|
|
165
|
+
});
|
|
@@ -83,39 +83,32 @@ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
|
83
83
|
|
|
84
84
|
// src/utils/tv.ts
|
|
85
85
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
86
|
-
var tv = (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
],
|
|
110
|
-
"min-h": [
|
|
111
|
-
{
|
|
112
|
-
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
113
|
-
}
|
|
114
|
-
]
|
|
115
|
-
}
|
|
86
|
+
var tv = (0, import_tailwind_variants.createTV)({
|
|
87
|
+
twMerge: true,
|
|
88
|
+
twMergeConfig: {
|
|
89
|
+
theme: {
|
|
90
|
+
opacity: ["disabled"],
|
|
91
|
+
spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
|
|
92
|
+
borderWidth: COMMON_UNITS,
|
|
93
|
+
borderRadius: COMMON_UNITS
|
|
94
|
+
},
|
|
95
|
+
classGroups: {
|
|
96
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
97
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
98
|
+
"bg-image": ["bg-stripe-gradient"],
|
|
99
|
+
"min-w": [
|
|
100
|
+
{
|
|
101
|
+
"min-w": ["unit", ...mappedSpacingScaleKeys]
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"min-h": [
|
|
105
|
+
{
|
|
106
|
+
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
107
|
+
}
|
|
108
|
+
]
|
|
116
109
|
}
|
|
117
|
-
}
|
|
118
|
-
};
|
|
110
|
+
}
|
|
111
|
+
});
|
|
119
112
|
|
|
120
113
|
// src/utils/classes.ts
|
|
121
114
|
var dataFocusVisibleClasses = [
|
|
@@ -219,7 +212,7 @@ var avatar = tv({
|
|
|
219
212
|
"overflow-hidden",
|
|
220
213
|
"align-middle",
|
|
221
214
|
"text-white",
|
|
222
|
-
"z-
|
|
215
|
+
"z-0",
|
|
223
216
|
...dataFocusVisibleClasses
|
|
224
217
|
],
|
|
225
218
|
img: [
|
|
@@ -306,7 +299,7 @@ var avatar = tv({
|
|
|
306
299
|
isInGroup: {
|
|
307
300
|
true: {
|
|
308
301
|
base: [
|
|
309
|
-
"-
|
|
302
|
+
"-ms-2 data-[hover=true]:-translate-x-3 transition-transform",
|
|
310
303
|
"data-[focus-visible=true]:-translate-x-3"
|
|
311
304
|
]
|
|
312
305
|
}
|
|
@@ -334,7 +327,7 @@ var avatar = tv({
|
|
|
334
327
|
color: "primary",
|
|
335
328
|
isBordered: true,
|
|
336
329
|
class: {
|
|
337
|
-
base: "ring-
|
|
330
|
+
base: "ring-primary"
|
|
338
331
|
}
|
|
339
332
|
},
|
|
340
333
|
{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
avatar,
|
|
3
3
|
avatarGroup
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-J6EGGODL.mjs";
|
|
5
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-WBUVHAJX.mjs";
|
|
9
|
+
import "../chunk-XHQUSKIE.mjs";
|
|
10
10
|
import "../chunk-WA5F6AED.mjs";
|
|
11
11
|
export {
|
|
12
12
|
avatar,
|
|
@@ -70,7 +70,7 @@ declare const badge: tailwind_variants.TVReturnType<{
|
|
|
70
70
|
badge: string;
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
showOutline: {
|
|
74
74
|
true: {
|
|
75
75
|
badge: string;
|
|
76
76
|
};
|
|
@@ -138,7 +138,7 @@ declare const badge: tailwind_variants.TVReturnType<{
|
|
|
138
138
|
badge: string;
|
|
139
139
|
};
|
|
140
140
|
};
|
|
141
|
-
|
|
141
|
+
showOutline: {
|
|
142
142
|
true: {
|
|
143
143
|
badge: string;
|
|
144
144
|
};
|
|
@@ -203,7 +203,7 @@ declare const badge: tailwind_variants.TVReturnType<{
|
|
|
203
203
|
badge: string;
|
|
204
204
|
};
|
|
205
205
|
};
|
|
206
|
-
|
|
206
|
+
showOutline: {
|
|
207
207
|
true: {
|
|
208
208
|
badge: string;
|
|
209
209
|
};
|
|
@@ -268,7 +268,7 @@ declare const badge: tailwind_variants.TVReturnType<{
|
|
|
268
268
|
badge: string;
|
|
269
269
|
};
|
|
270
270
|
};
|
|
271
|
-
|
|
271
|
+
showOutline: {
|
|
272
272
|
true: {
|
|
273
273
|
badge: string;
|
|
274
274
|
};
|
|
@@ -336,7 +336,7 @@ declare const badge: tailwind_variants.TVReturnType<{
|
|
|
336
336
|
badge: string;
|
|
337
337
|
};
|
|
338
338
|
};
|
|
339
|
-
|
|
339
|
+
showOutline: {
|
|
340
340
|
true: {
|
|
341
341
|
badge: string;
|
|
342
342
|
};
|
|
@@ -404,7 +404,7 @@ declare const badge: tailwind_variants.TVReturnType<{
|
|
|
404
404
|
badge: string;
|
|
405
405
|
};
|
|
406
406
|
};
|
|
407
|
-
|
|
407
|
+
showOutline: {
|
|
408
408
|
true: {
|
|
409
409
|
badge: string;
|
|
410
410
|
};
|
|
@@ -469,7 +469,7 @@ declare const badge: tailwind_variants.TVReturnType<{
|
|
|
469
469
|
badge: string;
|
|
470
470
|
};
|
|
471
471
|
};
|
|
472
|
-
|
|
472
|
+
showOutline: {
|
|
473
473
|
true: {
|
|
474
474
|
badge: string;
|
|
475
475
|
};
|
package/dist/components/badge.js
CHANGED
|
@@ -82,39 +82,32 @@ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
|
82
82
|
|
|
83
83
|
// src/utils/tv.ts
|
|
84
84
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
85
|
-
var tv = (
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
],
|
|
109
|
-
"min-h": [
|
|
110
|
-
{
|
|
111
|
-
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
112
|
-
}
|
|
113
|
-
]
|
|
114
|
-
}
|
|
85
|
+
var tv = (0, import_tailwind_variants.createTV)({
|
|
86
|
+
twMerge: true,
|
|
87
|
+
twMergeConfig: {
|
|
88
|
+
theme: {
|
|
89
|
+
opacity: ["disabled"],
|
|
90
|
+
spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
|
|
91
|
+
borderWidth: COMMON_UNITS,
|
|
92
|
+
borderRadius: COMMON_UNITS
|
|
93
|
+
},
|
|
94
|
+
classGroups: {
|
|
95
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
96
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
97
|
+
"bg-image": ["bg-stripe-gradient"],
|
|
98
|
+
"min-w": [
|
|
99
|
+
{
|
|
100
|
+
"min-w": ["unit", ...mappedSpacingScaleKeys]
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"min-h": [
|
|
104
|
+
{
|
|
105
|
+
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
106
|
+
}
|
|
107
|
+
]
|
|
115
108
|
}
|
|
116
|
-
}
|
|
117
|
-
};
|
|
109
|
+
}
|
|
110
|
+
});
|
|
118
111
|
|
|
119
112
|
// src/utils/variants.ts
|
|
120
113
|
var solid = {
|
|
@@ -272,12 +265,12 @@ var badge = tv({
|
|
|
272
265
|
badge: "transition-transform-opacity !ease-soft-spring !duration-300"
|
|
273
266
|
}
|
|
274
267
|
},
|
|
275
|
-
|
|
268
|
+
showOutline: {
|
|
276
269
|
true: {
|
|
277
|
-
badge: "border-
|
|
270
|
+
badge: "border-2 border-background"
|
|
278
271
|
},
|
|
279
272
|
false: {
|
|
280
|
-
badge: "border-
|
|
273
|
+
badge: "border-transparent border-0"
|
|
281
274
|
}
|
|
282
275
|
}
|
|
283
276
|
},
|
|
@@ -287,7 +280,7 @@ var badge = tv({
|
|
|
287
280
|
size: "md",
|
|
288
281
|
shape: "rectangle",
|
|
289
282
|
placement: "top-right",
|
|
290
|
-
|
|
283
|
+
showOutline: true,
|
|
291
284
|
disableAnimation: false,
|
|
292
285
|
isInvisible: false
|
|
293
286
|
},
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
badge
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YRDQW7V4.mjs";
|
|
4
4
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
5
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
6
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-WBUVHAJX.mjs";
|
|
8
|
+
import "../chunk-XHQUSKIE.mjs";
|
|
9
9
|
import "../chunk-WA5F6AED.mjs";
|
|
10
10
|
export {
|
|
11
11
|
badge
|