@sytechui/theme 2.6.2 → 2.6.3
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-27EH4573.mjs → chunk-47BB6GL3.mjs} +1 -1
- package/dist/{chunk-GYRKKQKN.mjs → chunk-4N2PLITL.mjs} +1 -1
- package/dist/{chunk-3PBT3W4C.mjs → chunk-5DJU5KUL.mjs} +1 -1
- package/dist/{chunk-P2SWF4YK.mjs → chunk-7ARJ2TQM.mjs} +1 -1
- package/dist/chunk-7FAFG773.mjs +69 -0
- package/dist/{chunk-JGY6VQQQ.mjs → chunk-7K2CWEHT.mjs} +8 -1
- package/dist/{chunk-HRULT2QB.mjs → chunk-AGSAOCCR.mjs} +1 -1
- package/dist/{chunk-OBSH26UE.mjs → chunk-AL5UNXQI.mjs} +1 -1
- package/dist/{chunk-QU72GCNK.mjs → chunk-ECD4ABCS.mjs} +1 -1
- package/dist/{chunk-CR7SUL27.mjs → chunk-EZ47UJPD.mjs} +1 -1
- package/dist/{chunk-GXDNTAQH.mjs → chunk-I5YZBAB3.mjs} +1 -1
- package/dist/{chunk-RAC3PSZO.mjs → chunk-KKEJLP4U.mjs} +1 -1
- package/dist/{chunk-4XFAHRMJ.mjs → chunk-MTBQ5EO5.mjs} +1 -1
- package/dist/{chunk-YISEC5JS.mjs → chunk-NJBUOBAS.mjs} +9 -5
- package/dist/{chunk-7CAOOET2.mjs → chunk-OSP4OLTO.mjs} +1 -1
- package/dist/{chunk-M5F7VFZT.mjs → chunk-P5HLCB43.mjs} +1 -1
- package/dist/{chunk-T754O54S.mjs → chunk-PY74IHS4.mjs} +1 -1
- package/dist/{chunk-UJC5GXOO.mjs → chunk-ROFEKAS6.mjs} +7 -7
- package/dist/{chunk-K6X3VPO4.mjs → chunk-USGOG5QI.mjs} +1 -1
- package/dist/{chunk-LD2JADOO.mjs → chunk-W37Q6YFS.mjs} +1 -1
- package/dist/{chunk-6Q4A5IGD.mjs → chunk-WH4ODSEM.mjs} +1 -1
- package/dist/{chunk-7MY46DKJ.mjs → chunk-XBJNS5SU.mjs} +1 -1
- package/dist/{chunk-63TVI5PY.mjs → chunk-XKMMJKKB.mjs} +1 -1
- package/dist/{chunk-22RNS2JQ.mjs → chunk-Z4ZQGUPY.mjs} +260 -68
- package/dist/{chunk-TYJNRAT2.mjs → chunk-ZWG2GMCI.mjs} +1 -1
- package/dist/components/accordion.js +21 -0
- package/dist/components/accordion.mjs +28 -28
- package/dist/components/alert.js +21 -0
- package/dist/components/alert.mjs +7 -7
- package/dist/components/autocomplete.js +21 -0
- package/dist/components/autocomplete.mjs +7 -7
- package/dist/components/avatar.js +21 -0
- package/dist/components/avatar.mjs +28 -28
- package/dist/components/badge.js +21 -0
- package/dist/components/badge.mjs +28 -28
- package/dist/components/bottom-bar.js +21 -0
- package/dist/components/bottom-bar.mjs +28 -28
- package/dist/components/breadcrumbs.js +21 -0
- package/dist/components/breadcrumbs.mjs +28 -28
- package/dist/components/button.js +21 -0
- package/dist/components/button.mjs +28 -28
- package/dist/components/calendar.js +21 -0
- package/dist/components/calendar.mjs +28 -28
- package/dist/components/card.js +21 -0
- package/dist/components/card.mjs +28 -28
- package/dist/components/checkbox.js +28 -4
- package/dist/components/checkbox.mjs +28 -28
- package/dist/components/chip.js +21 -0
- package/dist/components/chip.mjs +28 -28
- package/dist/components/code.js +21 -0
- package/dist/components/code.mjs +28 -28
- package/dist/components/date-input.js +21 -0
- package/dist/components/date-input.mjs +7 -7
- package/dist/components/date-picker.js +21 -0
- package/dist/components/date-picker.mjs +7 -7
- package/dist/components/divider.js +21 -0
- package/dist/components/divider.mjs +7 -7
- package/dist/components/drawer.js +21 -0
- package/dist/components/drawer.mjs +7 -7
- package/dist/components/drip.js +21 -0
- package/dist/components/drip.mjs +7 -7
- package/dist/components/drop-zone.js +21 -0
- package/dist/components/drop-zone.mjs +28 -28
- package/dist/components/dropdown.js +21 -0
- package/dist/components/dropdown.mjs +28 -28
- package/dist/components/form.js +21 -0
- package/dist/components/form.mjs +7 -7
- package/dist/components/image.js +21 -0
- package/dist/components/image.mjs +7 -7
- package/dist/components/index.js +276 -63
- package/dist/components/index.mjs +29 -29
- package/dist/components/input-otp.js +21 -0
- package/dist/components/input-otp.mjs +28 -28
- package/dist/components/input.js +21 -0
- package/dist/components/input.mjs +28 -28
- package/dist/components/kbd.js +21 -0
- package/dist/components/kbd.mjs +7 -7
- package/dist/components/link.js +21 -0
- package/dist/components/link.mjs +28 -28
- package/dist/components/listbox.js +21 -0
- package/dist/components/listbox.mjs +28 -28
- package/dist/components/menu.js +21 -0
- package/dist/components/menu.mjs +28 -28
- package/dist/components/modal.js +21 -0
- package/dist/components/modal.mjs +28 -28
- package/dist/components/navbar.js +21 -0
- package/dist/components/navbar.mjs +28 -28
- package/dist/components/number-input.js +21 -0
- package/dist/components/number-input.mjs +28 -28
- package/dist/components/pagination.js +21 -0
- package/dist/components/pagination.mjs +28 -28
- package/dist/components/popover.js +21 -0
- package/dist/components/popover.mjs +28 -28
- package/dist/components/progress.js +21 -0
- package/dist/components/progress.mjs +7 -7
- package/dist/components/radio.js +21 -0
- package/dist/components/radio.mjs +28 -28
- package/dist/components/scroll-area.js +21 -0
- package/dist/components/scroll-area.mjs +7 -7
- package/dist/components/scroll-shadow.js +21 -0
- package/dist/components/scroll-shadow.mjs +7 -7
- package/dist/components/select.js +21 -0
- package/dist/components/select.mjs +28 -28
- package/dist/components/shimmer-text.js +21 -0
- package/dist/components/shimmer-text.mjs +7 -7
- package/dist/components/skeleton.js +21 -0
- package/dist/components/skeleton.mjs +7 -7
- package/dist/components/slider.js +21 -0
- package/dist/components/slider.mjs +28 -28
- package/dist/components/snippet.js +21 -0
- package/dist/components/snippet.mjs +28 -28
- package/dist/components/spacer.js +21 -0
- package/dist/components/spacer.mjs +7 -7
- package/dist/components/spinner.js +21 -0
- package/dist/components/spinner.mjs +7 -7
- package/dist/components/stepper.js +21 -0
- package/dist/components/stepper.mjs +28 -28
- package/dist/components/table.d.mts +93 -12
- package/dist/components/table.d.ts +93 -12
- package/dist/components/table.js +195 -44
- package/dist/components/table.mjs +28 -28
- package/dist/components/tabs.d.mts +81 -15
- package/dist/components/tabs.d.ts +81 -15
- package/dist/components/tabs.js +95 -15
- package/dist/components/tabs.mjs +28 -28
- package/dist/components/toast.js +21 -0
- package/dist/components/toast.mjs +28 -28
- package/dist/components/toggle.js +21 -0
- package/dist/components/toggle.mjs +28 -28
- package/dist/components/user.js +21 -0
- package/dist/components/user.mjs +28 -28
- package/dist/index.js +303 -65
- package/dist/index.mjs +33 -33
- package/dist/plugin.js +48 -2
- package/dist/plugin.mjs +7 -7
- package/dist/utilities/index.d.mts +18 -0
- package/dist/utilities/index.d.ts +18 -0
- package/dist/utilities/index.js +21 -0
- package/dist/utilities/index.mjs +4 -4
- package/dist/utilities/scrollbar-hide.d.mts +39 -4
- package/dist/utilities/scrollbar-hide.d.ts +39 -4
- package/dist/utilities/scrollbar-hide.js +44 -1
- package/dist/utilities/scrollbar-hide.mjs +4 -2
- package/dist/utils/classes.d.mts +7 -0
- package/dist/utils/classes.d.ts +7 -0
- package/dist/utils/classes.js +8 -1
- package/dist/utils/classes.mjs +1 -1
- package/dist/utils/cn.js +21 -0
- package/dist/utils/cn.mjs +6 -6
- package/dist/utils/index.js +29 -1
- package/dist/utils/index.mjs +28 -28
- package/dist/utils/merge-classes.js +21 -0
- package/dist/utils/merge-classes.mjs +28 -28
- package/dist/utils/tv.js +21 -0
- package/dist/utils/tv.mjs +6 -6
- package/dist/utils/tw-merge-config.js +21 -0
- package/dist/utils/tw-merge-config.mjs +5 -5
- package/package.json +1 -1
- package/dist/chunk-WH6SPIFG.mjs +0 -30
package/dist/components/table.js
CHANGED
|
@@ -120,6 +120,19 @@ var custom_default = {
|
|
|
120
120
|
|
|
121
121
|
// src/utilities/scrollbar-hide.ts
|
|
122
122
|
var scrollbar_hide_default = {
|
|
123
|
+
/**
|
|
124
|
+
* Theme-aware scrollbar
|
|
125
|
+
*/
|
|
126
|
+
".scrollbar": {
|
|
127
|
+
"scrollbar-width": "var(--scrollbar-width)",
|
|
128
|
+
"scrollbar-color": "var(--scrollbar-color)",
|
|
129
|
+
"scrollbar-gutter": "var(--scrollbar-gutter)"
|
|
130
|
+
},
|
|
131
|
+
".scrollbar-thin": {
|
|
132
|
+
"scrollbar-width": "thin",
|
|
133
|
+
"scrollbar-color": "var(--scrollbar-thumb) var(--scrollbar-track)",
|
|
134
|
+
"scrollbar-gutter": "auto"
|
|
135
|
+
},
|
|
123
136
|
/**
|
|
124
137
|
* Scroll Hide
|
|
125
138
|
*/
|
|
@@ -138,10 +151,18 @@ var scrollbar_hide_default = {
|
|
|
138
151
|
"-ms-overflow-style": "auto",
|
|
139
152
|
/* Firefox */
|
|
140
153
|
"scrollbar-width": "auto",
|
|
154
|
+
"scrollbar-color": "auto",
|
|
155
|
+
"scrollbar-gutter": "auto",
|
|
141
156
|
/* Safari and Chrome */
|
|
142
157
|
"&::-webkit-scrollbar": {
|
|
143
158
|
display: "block"
|
|
144
159
|
}
|
|
160
|
+
},
|
|
161
|
+
".scrollbar-none": {
|
|
162
|
+
"-ms-overflow-style": "none",
|
|
163
|
+
"scrollbar-width": "none",
|
|
164
|
+
"scrollbar-color": "auto",
|
|
165
|
+
"scrollbar-gutter": "auto"
|
|
145
166
|
}
|
|
146
167
|
};
|
|
147
168
|
|
|
@@ -292,15 +313,36 @@ var table = tv({
|
|
|
292
313
|
"justify-between",
|
|
293
314
|
"gap-4",
|
|
294
315
|
"shadow-small",
|
|
295
|
-
"bg-content1"
|
|
296
|
-
"overflow-auto"
|
|
316
|
+
"bg-content1"
|
|
297
317
|
],
|
|
318
|
+
scrollContainer: ["scrollbar", "overflow-x-auto"],
|
|
319
|
+
resizableContainer: ["relative", "scrollbar", "overflow-auto"],
|
|
298
320
|
table: "min-w-full h-auto",
|
|
299
|
-
thead:
|
|
300
|
-
|
|
301
|
-
|
|
321
|
+
thead: [
|
|
322
|
+
// VirtualizerItem wraps each column, so round via the header row rather than the column.
|
|
323
|
+
"[&>[role=row]>[role=presentation]:first-child>[role=columnheader]]:rounded-s-lg",
|
|
324
|
+
"[&>[role=row]>[role=presentation]:last-child>[role=columnheader]]:rounded-e-lg",
|
|
325
|
+
"[&>[role=row]>[role=presentation]:last-child>[role=columnheader]]:before:hidden",
|
|
326
|
+
"[&>[role=row]>[role=presentation]:last-child>[role=columnheader]>[data-slot=table-column-resizer]]:hidden",
|
|
327
|
+
"[&>tr>th:last-child>[data-slot=table-column-resizer]]:hidden"
|
|
328
|
+
],
|
|
329
|
+
tbody: [
|
|
330
|
+
"[&:is(tbody)]:after:block",
|
|
331
|
+
// A virtualized body is a div. Clip it instead of relying on first/last table cells.
|
|
332
|
+
"[&:not(tbody)]:relative",
|
|
333
|
+
"[&:not(tbody)]:h-full",
|
|
334
|
+
"[&:not(tbody)]:overflow-hidden",
|
|
335
|
+
"[&:not(tbody)]:rounded-lg"
|
|
336
|
+
],
|
|
337
|
+
tr: [
|
|
338
|
+
"group/tr",
|
|
339
|
+
"outline-solid outline-transparent",
|
|
340
|
+
"[&:not(tr)]:h-full",
|
|
341
|
+
...dataFocusVisibleClasses
|
|
342
|
+
],
|
|
302
343
|
th: [
|
|
303
344
|
"group/th",
|
|
345
|
+
"relative",
|
|
304
346
|
"px-3",
|
|
305
347
|
"h-10",
|
|
306
348
|
"text-start",
|
|
@@ -310,21 +352,62 @@ var table = tv({
|
|
|
310
352
|
"text-foreground-500",
|
|
311
353
|
"text-tiny",
|
|
312
354
|
"font-semibold",
|
|
313
|
-
"
|
|
314
|
-
"
|
|
355
|
+
"[&:not(th)]:flex [&:not(th)]:items-center",
|
|
356
|
+
"[&:is(th):first-child]:rounded-s-lg",
|
|
357
|
+
"[&:is(th):last-child]:rounded-e-lg",
|
|
358
|
+
"[&:is(th):last-child]:before:hidden",
|
|
359
|
+
"before:pointer-events-none",
|
|
360
|
+
"before:absolute",
|
|
361
|
+
"before:end-0",
|
|
362
|
+
"before:top-1/2",
|
|
363
|
+
"before:h-4",
|
|
364
|
+
"before:w-px",
|
|
365
|
+
"before:-translate-y-1/2",
|
|
366
|
+
"before:rounded-small",
|
|
367
|
+
"before:bg-default-300",
|
|
368
|
+
"before:content-['']",
|
|
315
369
|
"outline-solid outline-transparent",
|
|
316
|
-
"data-[
|
|
317
|
-
"data-[hover=true]:text-foreground-400",
|
|
370
|
+
"data-[allows-sorting]:cursor-pointer",
|
|
318
371
|
...dataFocusVisibleClasses
|
|
319
372
|
],
|
|
373
|
+
columnResizer: [
|
|
374
|
+
"absolute",
|
|
375
|
+
"end-0",
|
|
376
|
+
"top-1/2",
|
|
377
|
+
"h-4",
|
|
378
|
+
"w-px",
|
|
379
|
+
"-translate-y-1/2",
|
|
380
|
+
"translate-x-1/2",
|
|
381
|
+
"rounded-small",
|
|
382
|
+
"bg-default-300",
|
|
383
|
+
"bg-clip-content",
|
|
384
|
+
"box-content",
|
|
385
|
+
"cursor-col-resize",
|
|
386
|
+
"touch-none",
|
|
387
|
+
"border-none",
|
|
388
|
+
"outline-none",
|
|
389
|
+
"px-2",
|
|
390
|
+
"data-[hovered=true]:h-full",
|
|
391
|
+
"data-[hovered=true]:w-0.5",
|
|
392
|
+
"data-[hovered=true]:bg-primary",
|
|
393
|
+
"data-[resizing=true]:h-full",
|
|
394
|
+
"data-[resizing=true]:w-0.5",
|
|
395
|
+
"data-[resizing=true]:bg-primary",
|
|
396
|
+
"data-[focus-visible=true]:h-full",
|
|
397
|
+
"data-[focus-visible=true]:w-0.5",
|
|
398
|
+
"data-[focus-visible=true]:bg-focus"
|
|
399
|
+
],
|
|
320
400
|
td: [
|
|
321
401
|
"py-2",
|
|
322
402
|
"px-3",
|
|
323
403
|
"relative",
|
|
404
|
+
"isolate",
|
|
405
|
+
"z-0",
|
|
324
406
|
"align-middle",
|
|
325
407
|
"whitespace-normal",
|
|
326
408
|
"text-small",
|
|
327
409
|
"font-normal",
|
|
410
|
+
"[&:not(td)]:h-full",
|
|
328
411
|
"outline-solid outline-transparent",
|
|
329
412
|
"[&>*]:z-1",
|
|
330
413
|
"[&>*]:relative",
|
|
@@ -333,10 +416,12 @@ var table = tv({
|
|
|
333
416
|
"before:pointer-events-none",
|
|
334
417
|
"before:content-['']",
|
|
335
418
|
"before:absolute",
|
|
336
|
-
"before
|
|
419
|
+
"before:-z-10",
|
|
337
420
|
"before:inset-0",
|
|
338
421
|
"before:opacity-0",
|
|
339
422
|
"data-[selected=true]:before:opacity-100",
|
|
423
|
+
"data-[selected]:before:opacity-100",
|
|
424
|
+
"group-aria-[selected=true]/tr:before:opacity-100",
|
|
340
425
|
// disabled
|
|
341
426
|
"group-data-[disabled=true]/tr:text-foreground-300",
|
|
342
427
|
"group-data-[disabled=true]/tr:cursor-not-allowed"
|
|
@@ -353,28 +438,28 @@ var table = tv({
|
|
|
353
438
|
"group-data-[hover=true]/th:opacity-100",
|
|
354
439
|
"data-[direction=ascending]:rotate-180"
|
|
355
440
|
],
|
|
356
|
-
emptyWrapper: "
|
|
441
|
+
emptyWrapper: "flex h-40 w-full items-center justify-center text-center align-middle text-foreground-400",
|
|
357
442
|
loadingWrapper: "absolute inset-0 flex items-center justify-center"
|
|
358
443
|
},
|
|
359
444
|
variants: {
|
|
360
445
|
color: {
|
|
361
446
|
default: {
|
|
362
|
-
td: "before:bg-default
|
|
447
|
+
td: "before:bg-default-300"
|
|
363
448
|
},
|
|
364
449
|
primary: {
|
|
365
|
-
td: "before:bg-primary/20
|
|
450
|
+
td: "before:bg-primary/20"
|
|
366
451
|
},
|
|
367
452
|
secondary: {
|
|
368
|
-
td: "before:bg-secondary/20
|
|
453
|
+
td: "before:bg-secondary/20"
|
|
369
454
|
},
|
|
370
455
|
success: {
|
|
371
|
-
td: "before:bg-success/20
|
|
456
|
+
td: "before:bg-success/20"
|
|
372
457
|
},
|
|
373
458
|
warning: {
|
|
374
|
-
td: "before:bg-warning/20
|
|
459
|
+
td: "before:bg-warning/20"
|
|
375
460
|
},
|
|
376
461
|
danger: {
|
|
377
|
-
td: "before:bg-danger/20
|
|
462
|
+
td: "before:bg-danger/20"
|
|
378
463
|
}
|
|
379
464
|
},
|
|
380
465
|
layout: {
|
|
@@ -385,6 +470,14 @@ var table = tv({
|
|
|
385
470
|
table: "table-fixed"
|
|
386
471
|
}
|
|
387
472
|
},
|
|
473
|
+
overflowMode: {
|
|
474
|
+
wrap: {
|
|
475
|
+
td: "whitespace-normal break-words"
|
|
476
|
+
},
|
|
477
|
+
truncate: {
|
|
478
|
+
td: "truncate"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
388
481
|
shadow: {
|
|
389
482
|
none: {
|
|
390
483
|
wrapper: "shadow-none"
|
|
@@ -407,9 +500,9 @@ var table = tv({
|
|
|
407
500
|
isStriped: {
|
|
408
501
|
true: {
|
|
409
502
|
td: [
|
|
410
|
-
"group-
|
|
411
|
-
"group-
|
|
412
|
-
"group-
|
|
503
|
+
"group-even/tr:before:bg-default-100/50",
|
|
504
|
+
"group-even/tr:before:opacity-100",
|
|
505
|
+
"group-even/tr:before:-z-10"
|
|
413
506
|
]
|
|
414
507
|
}
|
|
415
508
|
},
|
|
@@ -419,17 +512,40 @@ var table = tv({
|
|
|
419
512
|
},
|
|
420
513
|
false: {}
|
|
421
514
|
},
|
|
422
|
-
|
|
515
|
+
isBordered: {
|
|
423
516
|
true: {
|
|
424
|
-
|
|
517
|
+
// Inner grid lines only: no border after the last column or under the last row.
|
|
518
|
+
// The end border is cleared from the row because a virtualized cell is wrapped in a
|
|
519
|
+
// VirtualizerItem, so `:last-child` on the cell itself matches every column.
|
|
520
|
+
td: ["border-b", "border-divider", "group-last/tr:border-b-0"]
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
isGlass: {
|
|
524
|
+
true: {}
|
|
525
|
+
},
|
|
526
|
+
isSticky: {
|
|
527
|
+
true: {
|
|
528
|
+
thead: [
|
|
529
|
+
"sticky top-0 z-20",
|
|
530
|
+
// A virtualized rowgroup is 0-height (its children are all absolutely
|
|
531
|
+
// positioned by VirtualizerItem). Stretch it to fill the sticky wrapper
|
|
532
|
+
// so it has real area to paint on — same role a native <thead> already has.
|
|
533
|
+
"[&:not(thead)]:absolute",
|
|
534
|
+
"[&:not(thead)]:inset-0"
|
|
535
|
+
]
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
isFooterSticky: {
|
|
539
|
+
true: {
|
|
540
|
+
tfoot: "sticky bottom-0 z-20 rounded-lg bg-default-100"
|
|
425
541
|
}
|
|
426
542
|
},
|
|
427
543
|
isSelectable: {
|
|
428
544
|
true: {
|
|
429
545
|
tr: "cursor-default",
|
|
430
546
|
td: [
|
|
431
|
-
"group-aria-[selected=false]/tr:group-data-[
|
|
432
|
-
"group-aria-[selected=false]/tr:group-data-[
|
|
547
|
+
"group-aria-[selected=false]/tr:group-data-[hovered]/tr:before:bg-default-100",
|
|
548
|
+
"group-aria-[selected=false]/tr:group-data-[hovered]/tr:before:opacity-70"
|
|
433
549
|
]
|
|
434
550
|
}
|
|
435
551
|
},
|
|
@@ -437,13 +553,13 @@ var table = tv({
|
|
|
437
553
|
true: {
|
|
438
554
|
td: [
|
|
439
555
|
// first
|
|
440
|
-
"group-
|
|
441
|
-
"group-
|
|
556
|
+
"group-first/tr:first:before:rounded-ss-lg",
|
|
557
|
+
"group-first/tr:last:before:rounded-se-lg",
|
|
442
558
|
// middle
|
|
443
|
-
"group-
|
|
559
|
+
"group-[&:not(:first-child):not(:last-child)]/tr:before:rounded-none",
|
|
444
560
|
// last
|
|
445
|
-
"group-
|
|
446
|
-
"group-
|
|
561
|
+
"group-last/tr:first:before:rounded-es-lg",
|
|
562
|
+
"group-last/tr:last:before:rounded-ee-lg"
|
|
447
563
|
]
|
|
448
564
|
},
|
|
449
565
|
false: {
|
|
@@ -453,19 +569,25 @@ var table = tv({
|
|
|
453
569
|
radius: {
|
|
454
570
|
none: {
|
|
455
571
|
wrapper: "rounded-none",
|
|
572
|
+
tfoot: "rounded-none",
|
|
573
|
+
thead: [
|
|
574
|
+
"[&>[role=row]>[role=presentation]:first-child>[role=columnheader]]:rounded-s-none",
|
|
575
|
+
"[&>[role=row]>[role=presentation]:last-child>[role=columnheader]]:rounded-e-none"
|
|
576
|
+
],
|
|
577
|
+
tbody: "[&:not(tbody)]:rounded-none",
|
|
456
578
|
th: [
|
|
457
|
-
"first:rounded-s-none",
|
|
458
|
-
"first:before:rounded-s-none",
|
|
459
|
-
"last:rounded-e-none",
|
|
460
|
-
"last:before:rounded-e-none"
|
|
579
|
+
"[&:is(th):first-child]:rounded-s-none",
|
|
580
|
+
"[&:is(th):first-child]:before:rounded-s-none",
|
|
581
|
+
"[&:is(th):last-child]:rounded-e-none",
|
|
582
|
+
"[&:is(th):last-child]:before:rounded-e-none"
|
|
461
583
|
],
|
|
462
584
|
td: [
|
|
463
585
|
"first:before:rounded-s-none",
|
|
464
586
|
"last:before:rounded-e-none",
|
|
465
|
-
"group-
|
|
466
|
-
"group-
|
|
467
|
-
"group-
|
|
468
|
-
"group-
|
|
587
|
+
"group-first/tr:first:before:rounded-ss-none",
|
|
588
|
+
"group-first/tr:last:before:rounded-se-none",
|
|
589
|
+
"group-last/tr:first:before:rounded-es-none",
|
|
590
|
+
"group-last/tr:last:before:rounded-ee-none"
|
|
469
591
|
]
|
|
470
592
|
},
|
|
471
593
|
sm: {
|
|
@@ -506,52 +628,81 @@ var table = tv({
|
|
|
506
628
|
radius: "lg",
|
|
507
629
|
color: "default",
|
|
508
630
|
isCompact: false,
|
|
631
|
+
isGlass: true,
|
|
509
632
|
hideHeader: false,
|
|
510
633
|
isStriped: false,
|
|
511
634
|
fullWidth: true,
|
|
512
|
-
align: "start"
|
|
635
|
+
align: "start",
|
|
636
|
+
overflowMode: "wrap"
|
|
513
637
|
},
|
|
514
638
|
compoundVariants: [
|
|
639
|
+
{
|
|
640
|
+
isGlass: true,
|
|
641
|
+
isSticky: true,
|
|
642
|
+
class: {
|
|
643
|
+
// The single glass surface lives on the thead slot (rowgroup) — see the
|
|
644
|
+
// isSticky variant above for why that works in both native and virtualized DOM.
|
|
645
|
+
thead: "bg-default-100/80 backdrop-blur-sm",
|
|
646
|
+
th: [
|
|
647
|
+
// Cells stay transparent so the row group is the only thing painting glass —
|
|
648
|
+
// per-cell backdrop-filter would clamp its sampling to each cell's own box,
|
|
649
|
+
// producing a visible seam at every column boundary.
|
|
650
|
+
"bg-transparent",
|
|
651
|
+
// Native-only: a horizontally-pinned column header is sticky *within* the row
|
|
652
|
+
// group, so it can scroll away from the row group's own (also-scrolling)
|
|
653
|
+
// background box. It needs its own glass to stay opaque as content passes under it.
|
|
654
|
+
"data-[pinned]:bg-default-100/80",
|
|
655
|
+
"data-[pinned]:backdrop-blur-sm"
|
|
656
|
+
]
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
isFooterSticky: true,
|
|
661
|
+
isGlass: true,
|
|
662
|
+
class: {
|
|
663
|
+
tfoot: "bg-default-100/80 backdrop-blur-sm"
|
|
664
|
+
}
|
|
665
|
+
},
|
|
515
666
|
{
|
|
516
667
|
isStriped: true,
|
|
517
668
|
color: "default",
|
|
518
669
|
class: {
|
|
519
|
-
td: "group-
|
|
670
|
+
td: "group-even/tr:data-[selected=true]:before:bg-default/60"
|
|
520
671
|
}
|
|
521
672
|
},
|
|
522
673
|
{
|
|
523
674
|
isStriped: true,
|
|
524
675
|
color: "primary",
|
|
525
676
|
class: {
|
|
526
|
-
td: "group-
|
|
677
|
+
td: "group-even/tr:data-[selected=true]:before:bg-primary/20"
|
|
527
678
|
}
|
|
528
679
|
},
|
|
529
680
|
{
|
|
530
681
|
isStriped: true,
|
|
531
682
|
color: "secondary",
|
|
532
683
|
class: {
|
|
533
|
-
td: "group-
|
|
684
|
+
td: "group-even/tr:data-[selected=true]:before:bg-secondary/20"
|
|
534
685
|
}
|
|
535
686
|
},
|
|
536
687
|
{
|
|
537
688
|
isStriped: true,
|
|
538
689
|
color: "success",
|
|
539
690
|
class: {
|
|
540
|
-
td: "group-
|
|
691
|
+
td: "group-even/tr:data-[selected=true]:before:bg-success/20"
|
|
541
692
|
}
|
|
542
693
|
},
|
|
543
694
|
{
|
|
544
695
|
isStriped: true,
|
|
545
696
|
color: "warning",
|
|
546
697
|
class: {
|
|
547
|
-
td: "group-
|
|
698
|
+
td: "group-even/tr:data-[selected=true]:before:bg-warning/20"
|
|
548
699
|
}
|
|
549
700
|
},
|
|
550
701
|
{
|
|
551
702
|
isStriped: true,
|
|
552
703
|
color: "danger",
|
|
553
704
|
class: {
|
|
554
|
-
td: "group-
|
|
705
|
+
td: "group-even/tr:data-[selected=true]:before:bg-danger/20"
|
|
555
706
|
}
|
|
556
707
|
}
|
|
557
708
|
]
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
table
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-T754O54S.mjs";
|
|
20
|
-
import "../chunk-GXDNTAQH.mjs";
|
|
21
|
-
import "../chunk-RAC3PSZO.mjs";
|
|
3
|
+
} from "../chunk-Z4ZQGUPY.mjs";
|
|
4
|
+
import "../chunk-EZ47UJPD.mjs";
|
|
5
|
+
import "../chunk-W37Q6YFS.mjs";
|
|
6
|
+
import "../chunk-47BB6GL3.mjs";
|
|
7
|
+
import "../chunk-WH4ODSEM.mjs";
|
|
8
|
+
import "../chunk-XBJNS5SU.mjs";
|
|
9
|
+
import "../chunk-OSP4OLTO.mjs";
|
|
10
|
+
import "../chunk-4N2PLITL.mjs";
|
|
11
|
+
import "../chunk-AGSAOCCR.mjs";
|
|
12
|
+
import "../chunk-5DJU5KUL.mjs";
|
|
13
|
+
import "../chunk-ZWG2GMCI.mjs";
|
|
14
|
+
import "../chunk-P5HLCB43.mjs";
|
|
15
|
+
import "../chunk-XKMMJKKB.mjs";
|
|
16
|
+
import "../chunk-MTBQ5EO5.mjs";
|
|
17
|
+
import "../chunk-AL5UNXQI.mjs";
|
|
18
|
+
import "../chunk-USGOG5QI.mjs";
|
|
22
19
|
import "../chunk-GQT3YUX3.mjs";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-PY74IHS4.mjs";
|
|
21
|
+
import "../chunk-I5YZBAB3.mjs";
|
|
22
|
+
import "../chunk-7ARJ2TQM.mjs";
|
|
23
|
+
import "../chunk-KKEJLP4U.mjs";
|
|
24
|
+
import "../chunk-ECD4ABCS.mjs";
|
|
25
|
+
import "../chunk-NJBUOBAS.mjs";
|
|
26
|
+
import "../chunk-7K2CWEHT.mjs";
|
|
27
|
+
import "../chunk-D2XMP2NC.mjs";
|
|
28
|
+
import "../chunk-ROFEKAS6.mjs";
|
|
30
29
|
import "../chunk-GSRZWDGA.mjs";
|
|
31
30
|
import "../chunk-AWXUGVFR.mjs";
|
|
32
31
|
import "../chunk-MPVWW3DX.mjs";
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-7FAFG773.mjs";
|
|
33
|
+
import "../chunk-FJOYYPB2.mjs";
|
|
34
|
+
import "../chunk-RUIUXVZ4.mjs";
|
|
35
35
|
import "../chunk-WQEDQHKX.mjs";
|
|
36
36
|
import "../chunk-CPSLANMP.mjs";
|
|
37
37
|
import "../chunk-FFKHVGFX.mjs";
|