@nextui-org/theme 2.2.6 → 2.2.7
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-AEDZYTPD.mjs → chunk-ARFD2V3F.mjs} +3 -7
- package/dist/{chunk-VFGZ2KFC.mjs → chunk-MVG7GLBD.mjs} +7 -7
- package/dist/{chunk-BBWRBJQB.mjs → chunk-YC3FDJN4.mjs} +46 -2
- package/dist/components/accordion.d.ts +45 -10
- package/dist/components/accordion.js +7 -7
- package/dist/components/accordion.mjs +1 -1
- package/dist/components/index.js +56 -16
- package/dist/components/index.mjs +3 -3
- package/dist/components/input.js +3 -7
- package/dist/components/input.mjs +1 -1
- package/dist/components/table.js +55 -13
- package/dist/components/table.mjs +1 -1
- package/dist/index.js +56 -16
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
|
@@ -27,7 +27,9 @@ var input = tv({
|
|
|
27
27
|
input: [
|
|
28
28
|
"w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none",
|
|
29
29
|
"data-[has-start-content=true]:ps-1.5",
|
|
30
|
-
"data-[has-end-content=true]:pe-1.5"
|
|
30
|
+
"data-[has-end-content=true]:pe-1.5",
|
|
31
|
+
"file:cursor-pointer file:bg-transparent file:border-0",
|
|
32
|
+
"autofill:bg-transparent bg-clip-text"
|
|
31
33
|
],
|
|
32
34
|
clearButton: [
|
|
33
35
|
"p-2",
|
|
@@ -563,12 +565,6 @@ var input = tv({
|
|
|
563
565
|
label: ["group-data-[filled-within=true]:pointer-events-auto"]
|
|
564
566
|
}
|
|
565
567
|
},
|
|
566
|
-
{
|
|
567
|
-
labelPlacement: ["outside", "outside-left"],
|
|
568
|
-
class: {
|
|
569
|
-
input: "h-full"
|
|
570
|
-
}
|
|
571
|
-
},
|
|
572
568
|
{
|
|
573
569
|
labelPlacement: "outside",
|
|
574
570
|
isMultiline: false,
|
|
@@ -13,7 +13,7 @@ var accordion = tv({
|
|
|
13
13
|
light: "",
|
|
14
14
|
shadow: "px-4 shadow-medium rounded-medium bg-content1",
|
|
15
15
|
bordered: "px-4 border-medium border-divider rounded-medium",
|
|
16
|
-
splitted: "
|
|
16
|
+
splitted: "flex flex-col gap-2"
|
|
17
17
|
},
|
|
18
18
|
fullWidth: {
|
|
19
19
|
true: "w-full"
|
|
@@ -26,12 +26,7 @@ var accordion = tv({
|
|
|
26
26
|
});
|
|
27
27
|
var accordionItem = tv({
|
|
28
28
|
slots: {
|
|
29
|
-
base:
|
|
30
|
-
"group-[.is-splitted]:px-4",
|
|
31
|
-
"group-[.is-splitted]:bg-content1",
|
|
32
|
-
"group-[.is-splitted]:shadow-medium",
|
|
33
|
-
"group-[.is-splitted]:rounded-medium"
|
|
34
|
-
],
|
|
29
|
+
base: "",
|
|
35
30
|
heading: "",
|
|
36
31
|
trigger: [
|
|
37
32
|
"flex py-4 w-full h-full gap-3 outline-none items-center tap-highlight-transparent",
|
|
@@ -45,6 +40,11 @@ var accordionItem = tv({
|
|
|
45
40
|
content: "py-2"
|
|
46
41
|
},
|
|
47
42
|
variants: {
|
|
43
|
+
variant: {
|
|
44
|
+
splitted: {
|
|
45
|
+
base: "px-4 bg-content1 shadow-medium rounded-medium"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
48
|
isCompact: {
|
|
49
49
|
true: {
|
|
50
50
|
trigger: "py-2",
|
|
@@ -86,7 +86,7 @@ var table = tv({
|
|
|
86
86
|
variants: {
|
|
87
87
|
color: {
|
|
88
88
|
default: {
|
|
89
|
-
td: "before:bg-default/
|
|
89
|
+
td: "before:bg-default/60 data-[selected=true]:text-default-foreground"
|
|
90
90
|
},
|
|
91
91
|
primary: {
|
|
92
92
|
td: "before:bg-primary/20 data-[selected=true]:text-primary"
|
|
@@ -235,7 +235,51 @@ var table = tv({
|
|
|
235
235
|
isStriped: false,
|
|
236
236
|
fullWidth: true,
|
|
237
237
|
align: "start"
|
|
238
|
-
}
|
|
238
|
+
},
|
|
239
|
+
compoundVariants: [
|
|
240
|
+
{
|
|
241
|
+
isStriped: true,
|
|
242
|
+
color: "default",
|
|
243
|
+
class: {
|
|
244
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-default/60"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
isStriped: true,
|
|
249
|
+
color: "primary",
|
|
250
|
+
class: {
|
|
251
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-primary/20"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
isStriped: true,
|
|
256
|
+
color: "secondary",
|
|
257
|
+
class: {
|
|
258
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-secondary/20"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
isStriped: true,
|
|
263
|
+
color: "success",
|
|
264
|
+
class: {
|
|
265
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-success/20"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
isStriped: true,
|
|
270
|
+
color: "warning",
|
|
271
|
+
class: {
|
|
272
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-warning/20"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
isStriped: true,
|
|
277
|
+
color: "danger",
|
|
278
|
+
class: {
|
|
279
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-danger/20"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
]
|
|
239
283
|
});
|
|
240
284
|
|
|
241
285
|
export {
|
|
@@ -17,7 +17,7 @@ declare const accordion: tailwind_variants.TVReturnType<{
|
|
|
17
17
|
light: "";
|
|
18
18
|
shadow: "px-4 shadow-medium rounded-medium bg-content1";
|
|
19
19
|
bordered: "px-4 border-medium border-divider rounded-medium";
|
|
20
|
-
splitted: "
|
|
20
|
+
splitted: "flex flex-col gap-2";
|
|
21
21
|
};
|
|
22
22
|
fullWidth: {
|
|
23
23
|
true: "w-full";
|
|
@@ -27,7 +27,7 @@ declare const accordion: tailwind_variants.TVReturnType<{
|
|
|
27
27
|
light: "";
|
|
28
28
|
shadow: "px-4 shadow-medium rounded-medium bg-content1";
|
|
29
29
|
bordered: "px-4 border-medium border-divider rounded-medium";
|
|
30
|
-
splitted: "
|
|
30
|
+
splitted: "flex flex-col gap-2";
|
|
31
31
|
};
|
|
32
32
|
fullWidth: {
|
|
33
33
|
true: "w-full";
|
|
@@ -37,7 +37,7 @@ declare const accordion: tailwind_variants.TVReturnType<{
|
|
|
37
37
|
light: "";
|
|
38
38
|
shadow: "px-4 shadow-medium rounded-medium bg-content1";
|
|
39
39
|
bordered: "px-4 border-medium border-divider rounded-medium";
|
|
40
|
-
splitted: "
|
|
40
|
+
splitted: "flex flex-col gap-2";
|
|
41
41
|
};
|
|
42
42
|
fullWidth: {
|
|
43
43
|
true: "w-full";
|
|
@@ -47,7 +47,7 @@ declare const accordion: tailwind_variants.TVReturnType<{
|
|
|
47
47
|
light: "";
|
|
48
48
|
shadow: "px-4 shadow-medium rounded-medium bg-content1";
|
|
49
49
|
bordered: "px-4 border-medium border-divider rounded-medium";
|
|
50
|
-
splitted: "
|
|
50
|
+
splitted: "flex flex-col gap-2";
|
|
51
51
|
};
|
|
52
52
|
fullWidth: {
|
|
53
53
|
true: "w-full";
|
|
@@ -57,7 +57,7 @@ declare const accordion: tailwind_variants.TVReturnType<{
|
|
|
57
57
|
light: "";
|
|
58
58
|
shadow: "px-4 shadow-medium rounded-medium bg-content1";
|
|
59
59
|
bordered: "px-4 border-medium border-divider rounded-medium";
|
|
60
|
-
splitted: "
|
|
60
|
+
splitted: "flex flex-col gap-2";
|
|
61
61
|
};
|
|
62
62
|
fullWidth: {
|
|
63
63
|
true: "w-full";
|
|
@@ -67,7 +67,7 @@ declare const accordion: tailwind_variants.TVReturnType<{
|
|
|
67
67
|
light: "";
|
|
68
68
|
shadow: "px-4 shadow-medium rounded-medium bg-content1";
|
|
69
69
|
bordered: "px-4 border-medium border-divider rounded-medium";
|
|
70
|
-
splitted: "
|
|
70
|
+
splitted: "flex flex-col gap-2";
|
|
71
71
|
};
|
|
72
72
|
fullWidth: {
|
|
73
73
|
true: "w-full";
|
|
@@ -77,7 +77,7 @@ declare const accordion: tailwind_variants.TVReturnType<{
|
|
|
77
77
|
light: "";
|
|
78
78
|
shadow: "px-4 shadow-medium rounded-medium bg-content1";
|
|
79
79
|
bordered: "px-4 border-medium border-divider rounded-medium";
|
|
80
|
-
splitted: "
|
|
80
|
+
splitted: "flex flex-col gap-2";
|
|
81
81
|
};
|
|
82
82
|
fullWidth: {
|
|
83
83
|
true: "w-full";
|
|
@@ -106,6 +106,11 @@ declare const accordion: tailwind_variants.TVReturnType<{
|
|
|
106
106
|
* </div>
|
|
107
107
|
*/
|
|
108
108
|
declare const accordionItem: tailwind_variants.TVReturnType<{
|
|
109
|
+
variant: {
|
|
110
|
+
splitted: {
|
|
111
|
+
base: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
109
114
|
isCompact: {
|
|
110
115
|
true: {
|
|
111
116
|
trigger: string;
|
|
@@ -143,7 +148,7 @@ declare const accordionItem: tailwind_variants.TVReturnType<{
|
|
|
143
148
|
};
|
|
144
149
|
};
|
|
145
150
|
}, {
|
|
146
|
-
base: string
|
|
151
|
+
base: string;
|
|
147
152
|
heading: string;
|
|
148
153
|
trigger: string[];
|
|
149
154
|
startContent: string;
|
|
@@ -153,6 +158,11 @@ declare const accordionItem: tailwind_variants.TVReturnType<{
|
|
|
153
158
|
subtitle: string;
|
|
154
159
|
content: string;
|
|
155
160
|
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
161
|
+
variant: {
|
|
162
|
+
splitted: {
|
|
163
|
+
base: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
156
166
|
isCompact: {
|
|
157
167
|
true: {
|
|
158
168
|
trigger: string;
|
|
@@ -190,6 +200,11 @@ declare const accordionItem: tailwind_variants.TVReturnType<{
|
|
|
190
200
|
};
|
|
191
201
|
};
|
|
192
202
|
}, {
|
|
203
|
+
variant: {
|
|
204
|
+
splitted: {
|
|
205
|
+
base: string;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
193
208
|
isCompact: {
|
|
194
209
|
true: {
|
|
195
210
|
trigger: string;
|
|
@@ -227,6 +242,11 @@ declare const accordionItem: tailwind_variants.TVReturnType<{
|
|
|
227
242
|
};
|
|
228
243
|
};
|
|
229
244
|
}>, {
|
|
245
|
+
variant: {
|
|
246
|
+
splitted: {
|
|
247
|
+
base: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
230
250
|
isCompact: {
|
|
231
251
|
true: {
|
|
232
252
|
trigger: string;
|
|
@@ -264,7 +284,7 @@ declare const accordionItem: tailwind_variants.TVReturnType<{
|
|
|
264
284
|
};
|
|
265
285
|
};
|
|
266
286
|
}, {
|
|
267
|
-
base: string
|
|
287
|
+
base: string;
|
|
268
288
|
heading: string;
|
|
269
289
|
trigger: string[];
|
|
270
290
|
startContent: string;
|
|
@@ -274,6 +294,11 @@ declare const accordionItem: tailwind_variants.TVReturnType<{
|
|
|
274
294
|
subtitle: string;
|
|
275
295
|
content: string;
|
|
276
296
|
}, tailwind_variants.TVReturnType<{
|
|
297
|
+
variant: {
|
|
298
|
+
splitted: {
|
|
299
|
+
base: string;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
277
302
|
isCompact: {
|
|
278
303
|
true: {
|
|
279
304
|
trigger: string;
|
|
@@ -311,7 +336,7 @@ declare const accordionItem: tailwind_variants.TVReturnType<{
|
|
|
311
336
|
};
|
|
312
337
|
};
|
|
313
338
|
}, {
|
|
314
|
-
base: string
|
|
339
|
+
base: string;
|
|
315
340
|
heading: string;
|
|
316
341
|
trigger: string[];
|
|
317
342
|
startContent: string;
|
|
@@ -321,6 +346,11 @@ declare const accordionItem: tailwind_variants.TVReturnType<{
|
|
|
321
346
|
subtitle: string;
|
|
322
347
|
content: string;
|
|
323
348
|
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
349
|
+
variant: {
|
|
350
|
+
splitted: {
|
|
351
|
+
base: string;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
324
354
|
isCompact: {
|
|
325
355
|
true: {
|
|
326
356
|
trigger: string;
|
|
@@ -358,6 +388,11 @@ declare const accordionItem: tailwind_variants.TVReturnType<{
|
|
|
358
388
|
};
|
|
359
389
|
};
|
|
360
390
|
}, {
|
|
391
|
+
variant: {
|
|
392
|
+
splitted: {
|
|
393
|
+
base: string;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
361
396
|
isCompact: {
|
|
362
397
|
true: {
|
|
363
398
|
trigger: string;
|
|
@@ -81,7 +81,7 @@ var accordion = tv({
|
|
|
81
81
|
light: "",
|
|
82
82
|
shadow: "px-4 shadow-medium rounded-medium bg-content1",
|
|
83
83
|
bordered: "px-4 border-medium border-divider rounded-medium",
|
|
84
|
-
splitted: "
|
|
84
|
+
splitted: "flex flex-col gap-2"
|
|
85
85
|
},
|
|
86
86
|
fullWidth: {
|
|
87
87
|
true: "w-full"
|
|
@@ -94,12 +94,7 @@ var accordion = tv({
|
|
|
94
94
|
});
|
|
95
95
|
var accordionItem = tv({
|
|
96
96
|
slots: {
|
|
97
|
-
base:
|
|
98
|
-
"group-[.is-splitted]:px-4",
|
|
99
|
-
"group-[.is-splitted]:bg-content1",
|
|
100
|
-
"group-[.is-splitted]:shadow-medium",
|
|
101
|
-
"group-[.is-splitted]:rounded-medium"
|
|
102
|
-
],
|
|
97
|
+
base: "",
|
|
103
98
|
heading: "",
|
|
104
99
|
trigger: [
|
|
105
100
|
"flex py-4 w-full h-full gap-3 outline-none items-center tap-highlight-transparent",
|
|
@@ -113,6 +108,11 @@ var accordionItem = tv({
|
|
|
113
108
|
content: "py-2"
|
|
114
109
|
},
|
|
115
110
|
variants: {
|
|
111
|
+
variant: {
|
|
112
|
+
splitted: {
|
|
113
|
+
base: "px-4 bg-content1 shadow-medium rounded-medium"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
116
|
isCompact: {
|
|
117
117
|
true: {
|
|
118
118
|
trigger: "py-2",
|
package/dist/components/index.js
CHANGED
|
@@ -3435,7 +3435,7 @@ var accordion = tv({
|
|
|
3435
3435
|
light: "",
|
|
3436
3436
|
shadow: "px-4 shadow-medium rounded-medium bg-content1",
|
|
3437
3437
|
bordered: "px-4 border-medium border-divider rounded-medium",
|
|
3438
|
-
splitted: "
|
|
3438
|
+
splitted: "flex flex-col gap-2"
|
|
3439
3439
|
},
|
|
3440
3440
|
fullWidth: {
|
|
3441
3441
|
true: "w-full"
|
|
@@ -3448,12 +3448,7 @@ var accordion = tv({
|
|
|
3448
3448
|
});
|
|
3449
3449
|
var accordionItem = tv({
|
|
3450
3450
|
slots: {
|
|
3451
|
-
base:
|
|
3452
|
-
"group-[.is-splitted]:px-4",
|
|
3453
|
-
"group-[.is-splitted]:bg-content1",
|
|
3454
|
-
"group-[.is-splitted]:shadow-medium",
|
|
3455
|
-
"group-[.is-splitted]:rounded-medium"
|
|
3456
|
-
],
|
|
3451
|
+
base: "",
|
|
3457
3452
|
heading: "",
|
|
3458
3453
|
trigger: [
|
|
3459
3454
|
"flex py-4 w-full h-full gap-3 outline-none items-center tap-highlight-transparent",
|
|
@@ -3467,6 +3462,11 @@ var accordionItem = tv({
|
|
|
3467
3462
|
content: "py-2"
|
|
3468
3463
|
},
|
|
3469
3464
|
variants: {
|
|
3465
|
+
variant: {
|
|
3466
|
+
splitted: {
|
|
3467
|
+
base: "px-4 bg-content1 shadow-medium rounded-medium"
|
|
3468
|
+
}
|
|
3469
|
+
},
|
|
3470
3470
|
isCompact: {
|
|
3471
3471
|
true: {
|
|
3472
3472
|
trigger: "py-2",
|
|
@@ -3732,7 +3732,9 @@ var input = tv({
|
|
|
3732
3732
|
input: [
|
|
3733
3733
|
"w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none",
|
|
3734
3734
|
"data-[has-start-content=true]:ps-1.5",
|
|
3735
|
-
"data-[has-end-content=true]:pe-1.5"
|
|
3735
|
+
"data-[has-end-content=true]:pe-1.5",
|
|
3736
|
+
"file:cursor-pointer file:bg-transparent file:border-0",
|
|
3737
|
+
"autofill:bg-transparent bg-clip-text"
|
|
3736
3738
|
],
|
|
3737
3739
|
clearButton: [
|
|
3738
3740
|
"p-2",
|
|
@@ -4268,12 +4270,6 @@ var input = tv({
|
|
|
4268
4270
|
label: ["group-data-[filled-within=true]:pointer-events-auto"]
|
|
4269
4271
|
}
|
|
4270
4272
|
},
|
|
4271
|
-
{
|
|
4272
|
-
labelPlacement: ["outside", "outside-left"],
|
|
4273
|
-
class: {
|
|
4274
|
-
input: "h-full"
|
|
4275
|
-
}
|
|
4276
|
-
},
|
|
4277
4273
|
{
|
|
4278
4274
|
labelPlacement: "outside",
|
|
4279
4275
|
isMultiline: false,
|
|
@@ -5466,7 +5462,7 @@ var table = tv({
|
|
|
5466
5462
|
variants: {
|
|
5467
5463
|
color: {
|
|
5468
5464
|
default: {
|
|
5469
|
-
td: "before:bg-default/
|
|
5465
|
+
td: "before:bg-default/60 data-[selected=true]:text-default-foreground"
|
|
5470
5466
|
},
|
|
5471
5467
|
primary: {
|
|
5472
5468
|
td: "before:bg-primary/20 data-[selected=true]:text-primary"
|
|
@@ -5615,7 +5611,51 @@ var table = tv({
|
|
|
5615
5611
|
isStriped: false,
|
|
5616
5612
|
fullWidth: true,
|
|
5617
5613
|
align: "start"
|
|
5618
|
-
}
|
|
5614
|
+
},
|
|
5615
|
+
compoundVariants: [
|
|
5616
|
+
{
|
|
5617
|
+
isStriped: true,
|
|
5618
|
+
color: "default",
|
|
5619
|
+
class: {
|
|
5620
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-default/60"
|
|
5621
|
+
}
|
|
5622
|
+
},
|
|
5623
|
+
{
|
|
5624
|
+
isStriped: true,
|
|
5625
|
+
color: "primary",
|
|
5626
|
+
class: {
|
|
5627
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-primary/20"
|
|
5628
|
+
}
|
|
5629
|
+
},
|
|
5630
|
+
{
|
|
5631
|
+
isStriped: true,
|
|
5632
|
+
color: "secondary",
|
|
5633
|
+
class: {
|
|
5634
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-secondary/20"
|
|
5635
|
+
}
|
|
5636
|
+
},
|
|
5637
|
+
{
|
|
5638
|
+
isStriped: true,
|
|
5639
|
+
color: "success",
|
|
5640
|
+
class: {
|
|
5641
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-success/20"
|
|
5642
|
+
}
|
|
5643
|
+
},
|
|
5644
|
+
{
|
|
5645
|
+
isStriped: true,
|
|
5646
|
+
color: "warning",
|
|
5647
|
+
class: {
|
|
5648
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-warning/20"
|
|
5649
|
+
}
|
|
5650
|
+
},
|
|
5651
|
+
{
|
|
5652
|
+
isStriped: true,
|
|
5653
|
+
color: "danger",
|
|
5654
|
+
class: {
|
|
5655
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-danger/20"
|
|
5656
|
+
}
|
|
5657
|
+
}
|
|
5658
|
+
]
|
|
5619
5659
|
});
|
|
5620
5660
|
|
|
5621
5661
|
// src/components/spacer.ts
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "../chunk-AXXUQWWC.mjs";
|
|
32
32
|
import {
|
|
33
33
|
table
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-YC3FDJN4.mjs";
|
|
35
35
|
import "../chunk-YJLQTC7L.mjs";
|
|
36
36
|
import {
|
|
37
37
|
menu,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
} from "../chunk-U6G6SZ26.mjs";
|
|
75
75
|
import {
|
|
76
76
|
input
|
|
77
|
-
} from "../chunk-
|
|
77
|
+
} from "../chunk-ARFD2V3F.mjs";
|
|
78
78
|
import {
|
|
79
79
|
kbd
|
|
80
80
|
} from "../chunk-F4AOWB64.mjs";
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
import {
|
|
112
112
|
accordion,
|
|
113
113
|
accordionItem
|
|
114
|
-
} from "../chunk-
|
|
114
|
+
} from "../chunk-MVG7GLBD.mjs";
|
|
115
115
|
import {
|
|
116
116
|
autocomplete
|
|
117
117
|
} from "../chunk-KKN74BUG.mjs";
|
package/dist/components/input.js
CHANGED
|
@@ -101,7 +101,9 @@ var input = tv({
|
|
|
101
101
|
input: [
|
|
102
102
|
"w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none",
|
|
103
103
|
"data-[has-start-content=true]:ps-1.5",
|
|
104
|
-
"data-[has-end-content=true]:pe-1.5"
|
|
104
|
+
"data-[has-end-content=true]:pe-1.5",
|
|
105
|
+
"file:cursor-pointer file:bg-transparent file:border-0",
|
|
106
|
+
"autofill:bg-transparent bg-clip-text"
|
|
105
107
|
],
|
|
106
108
|
clearButton: [
|
|
107
109
|
"p-2",
|
|
@@ -637,12 +639,6 @@ var input = tv({
|
|
|
637
639
|
label: ["group-data-[filled-within=true]:pointer-events-auto"]
|
|
638
640
|
}
|
|
639
641
|
},
|
|
640
|
-
{
|
|
641
|
-
labelPlacement: ["outside", "outside-left"],
|
|
642
|
-
class: {
|
|
643
|
-
input: "h-full"
|
|
644
|
-
}
|
|
645
|
-
},
|
|
646
642
|
{
|
|
647
643
|
labelPlacement: "outside",
|
|
648
644
|
isMultiline: false,
|
package/dist/components/table.js
CHANGED
|
@@ -24,8 +24,14 @@ __export(table_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(table_exports);
|
|
26
26
|
|
|
27
|
-
// src/utils/
|
|
28
|
-
var
|
|
27
|
+
// src/utils/classes.ts
|
|
28
|
+
var dataFocusVisibleClasses = [
|
|
29
|
+
"outline-none",
|
|
30
|
+
"data-[focus-visible=true]:z-10",
|
|
31
|
+
"data-[focus-visible=true]:outline-2",
|
|
32
|
+
"data-[focus-visible=true]:outline-focus",
|
|
33
|
+
"data-[focus-visible=true]:outline-offset-2"
|
|
34
|
+
];
|
|
29
35
|
|
|
30
36
|
// src/utils/tw-merge-config.ts
|
|
31
37
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
@@ -44,6 +50,7 @@ var twMergeConfig = {
|
|
|
44
50
|
};
|
|
45
51
|
|
|
46
52
|
// src/utils/tv.ts
|
|
53
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
47
54
|
var tv = (options, config) => {
|
|
48
55
|
var _a, _b, _c;
|
|
49
56
|
return (0, import_tailwind_variants.tv)(options, {
|
|
@@ -63,15 +70,6 @@ var tv = (options, config) => {
|
|
|
63
70
|
});
|
|
64
71
|
};
|
|
65
72
|
|
|
66
|
-
// src/utils/classes.ts
|
|
67
|
-
var dataFocusVisibleClasses = [
|
|
68
|
-
"outline-none",
|
|
69
|
-
"data-[focus-visible=true]:z-10",
|
|
70
|
-
"data-[focus-visible=true]:outline-2",
|
|
71
|
-
"data-[focus-visible=true]:outline-focus",
|
|
72
|
-
"data-[focus-visible=true]:outline-offset-2"
|
|
73
|
-
];
|
|
74
|
-
|
|
75
73
|
// src/components/table.ts
|
|
76
74
|
var table = tv({
|
|
77
75
|
slots: {
|
|
@@ -153,7 +151,7 @@ var table = tv({
|
|
|
153
151
|
variants: {
|
|
154
152
|
color: {
|
|
155
153
|
default: {
|
|
156
|
-
td: "before:bg-default/
|
|
154
|
+
td: "before:bg-default/60 data-[selected=true]:text-default-foreground"
|
|
157
155
|
},
|
|
158
156
|
primary: {
|
|
159
157
|
td: "before:bg-primary/20 data-[selected=true]:text-primary"
|
|
@@ -302,7 +300,51 @@ var table = tv({
|
|
|
302
300
|
isStriped: false,
|
|
303
301
|
fullWidth: true,
|
|
304
302
|
align: "start"
|
|
305
|
-
}
|
|
303
|
+
},
|
|
304
|
+
compoundVariants: [
|
|
305
|
+
{
|
|
306
|
+
isStriped: true,
|
|
307
|
+
color: "default",
|
|
308
|
+
class: {
|
|
309
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-default/60"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
isStriped: true,
|
|
314
|
+
color: "primary",
|
|
315
|
+
class: {
|
|
316
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-primary/20"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
isStriped: true,
|
|
321
|
+
color: "secondary",
|
|
322
|
+
class: {
|
|
323
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-secondary/20"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
isStriped: true,
|
|
328
|
+
color: "success",
|
|
329
|
+
class: {
|
|
330
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-success/20"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
isStriped: true,
|
|
335
|
+
color: "warning",
|
|
336
|
+
class: {
|
|
337
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-warning/20"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
isStriped: true,
|
|
342
|
+
color: "danger",
|
|
343
|
+
class: {
|
|
344
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-danger/20"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
]
|
|
306
348
|
});
|
|
307
349
|
// Annotate the CommonJS export names for ESM import in node:
|
|
308
350
|
0 && (module.exports = {
|
package/dist/index.js
CHANGED
|
@@ -3477,7 +3477,7 @@ var accordion = tv({
|
|
|
3477
3477
|
light: "",
|
|
3478
3478
|
shadow: "px-4 shadow-medium rounded-medium bg-content1",
|
|
3479
3479
|
bordered: "px-4 border-medium border-divider rounded-medium",
|
|
3480
|
-
splitted: "
|
|
3480
|
+
splitted: "flex flex-col gap-2"
|
|
3481
3481
|
},
|
|
3482
3482
|
fullWidth: {
|
|
3483
3483
|
true: "w-full"
|
|
@@ -3490,12 +3490,7 @@ var accordion = tv({
|
|
|
3490
3490
|
});
|
|
3491
3491
|
var accordionItem = tv({
|
|
3492
3492
|
slots: {
|
|
3493
|
-
base:
|
|
3494
|
-
"group-[.is-splitted]:px-4",
|
|
3495
|
-
"group-[.is-splitted]:bg-content1",
|
|
3496
|
-
"group-[.is-splitted]:shadow-medium",
|
|
3497
|
-
"group-[.is-splitted]:rounded-medium"
|
|
3498
|
-
],
|
|
3493
|
+
base: "",
|
|
3499
3494
|
heading: "",
|
|
3500
3495
|
trigger: [
|
|
3501
3496
|
"flex py-4 w-full h-full gap-3 outline-none items-center tap-highlight-transparent",
|
|
@@ -3509,6 +3504,11 @@ var accordionItem = tv({
|
|
|
3509
3504
|
content: "py-2"
|
|
3510
3505
|
},
|
|
3511
3506
|
variants: {
|
|
3507
|
+
variant: {
|
|
3508
|
+
splitted: {
|
|
3509
|
+
base: "px-4 bg-content1 shadow-medium rounded-medium"
|
|
3510
|
+
}
|
|
3511
|
+
},
|
|
3512
3512
|
isCompact: {
|
|
3513
3513
|
true: {
|
|
3514
3514
|
trigger: "py-2",
|
|
@@ -3774,7 +3774,9 @@ var input = tv({
|
|
|
3774
3774
|
input: [
|
|
3775
3775
|
"w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none",
|
|
3776
3776
|
"data-[has-start-content=true]:ps-1.5",
|
|
3777
|
-
"data-[has-end-content=true]:pe-1.5"
|
|
3777
|
+
"data-[has-end-content=true]:pe-1.5",
|
|
3778
|
+
"file:cursor-pointer file:bg-transparent file:border-0",
|
|
3779
|
+
"autofill:bg-transparent bg-clip-text"
|
|
3778
3780
|
],
|
|
3779
3781
|
clearButton: [
|
|
3780
3782
|
"p-2",
|
|
@@ -4310,12 +4312,6 @@ var input = tv({
|
|
|
4310
4312
|
label: ["group-data-[filled-within=true]:pointer-events-auto"]
|
|
4311
4313
|
}
|
|
4312
4314
|
},
|
|
4313
|
-
{
|
|
4314
|
-
labelPlacement: ["outside", "outside-left"],
|
|
4315
|
-
class: {
|
|
4316
|
-
input: "h-full"
|
|
4317
|
-
}
|
|
4318
|
-
},
|
|
4319
4315
|
{
|
|
4320
4316
|
labelPlacement: "outside",
|
|
4321
4317
|
isMultiline: false,
|
|
@@ -5508,7 +5504,7 @@ var table = tv({
|
|
|
5508
5504
|
variants: {
|
|
5509
5505
|
color: {
|
|
5510
5506
|
default: {
|
|
5511
|
-
td: "before:bg-default/
|
|
5507
|
+
td: "before:bg-default/60 data-[selected=true]:text-default-foreground"
|
|
5512
5508
|
},
|
|
5513
5509
|
primary: {
|
|
5514
5510
|
td: "before:bg-primary/20 data-[selected=true]:text-primary"
|
|
@@ -5657,7 +5653,51 @@ var table = tv({
|
|
|
5657
5653
|
isStriped: false,
|
|
5658
5654
|
fullWidth: true,
|
|
5659
5655
|
align: "start"
|
|
5660
|
-
}
|
|
5656
|
+
},
|
|
5657
|
+
compoundVariants: [
|
|
5658
|
+
{
|
|
5659
|
+
isStriped: true,
|
|
5660
|
+
color: "default",
|
|
5661
|
+
class: {
|
|
5662
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-default/60"
|
|
5663
|
+
}
|
|
5664
|
+
},
|
|
5665
|
+
{
|
|
5666
|
+
isStriped: true,
|
|
5667
|
+
color: "primary",
|
|
5668
|
+
class: {
|
|
5669
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-primary/20"
|
|
5670
|
+
}
|
|
5671
|
+
},
|
|
5672
|
+
{
|
|
5673
|
+
isStriped: true,
|
|
5674
|
+
color: "secondary",
|
|
5675
|
+
class: {
|
|
5676
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-secondary/20"
|
|
5677
|
+
}
|
|
5678
|
+
},
|
|
5679
|
+
{
|
|
5680
|
+
isStriped: true,
|
|
5681
|
+
color: "success",
|
|
5682
|
+
class: {
|
|
5683
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-success/20"
|
|
5684
|
+
}
|
|
5685
|
+
},
|
|
5686
|
+
{
|
|
5687
|
+
isStriped: true,
|
|
5688
|
+
color: "warning",
|
|
5689
|
+
class: {
|
|
5690
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-warning/20"
|
|
5691
|
+
}
|
|
5692
|
+
},
|
|
5693
|
+
{
|
|
5694
|
+
isStriped: true,
|
|
5695
|
+
color: "danger",
|
|
5696
|
+
class: {
|
|
5697
|
+
td: "group-data-[odd=true]:data-[selected=true]:before:bg-danger/20"
|
|
5698
|
+
}
|
|
5699
|
+
}
|
|
5700
|
+
]
|
|
5661
5701
|
});
|
|
5662
5702
|
|
|
5663
5703
|
// src/components/spacer.ts
|
package/dist/index.mjs
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-AXXUQWWC.mjs";
|
|
32
32
|
import {
|
|
33
33
|
table
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YC3FDJN4.mjs";
|
|
35
35
|
import "./chunk-YJLQTC7L.mjs";
|
|
36
36
|
import {
|
|
37
37
|
menu,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
} from "./chunk-U6G6SZ26.mjs";
|
|
75
75
|
import {
|
|
76
76
|
input
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-ARFD2V3F.mjs";
|
|
78
78
|
import {
|
|
79
79
|
kbd
|
|
80
80
|
} from "./chunk-F4AOWB64.mjs";
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
import {
|
|
112
112
|
accordion,
|
|
113
113
|
accordionItem
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-MVG7GLBD.mjs";
|
|
115
115
|
import {
|
|
116
116
|
autocomplete
|
|
117
117
|
} from "./chunk-KKN74BUG.mjs";
|