@sytechui/theme 2.6.1 → 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-JV5J6JHS.mjs → chunk-47BB6GL3.mjs} +1 -1
- package/dist/{chunk-BHGZZQCH.mjs → chunk-4N2PLITL.mjs} +1 -1
- package/dist/{chunk-4CEUCYJO.mjs → chunk-5DJU5KUL.mjs} +1 -1
- package/dist/{chunk-ZLTZIM6X.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-FZM5ZZP2.mjs → chunk-AGSAOCCR.mjs} +1 -1
- package/dist/{chunk-SRSOCM2C.mjs → chunk-AL5UNXQI.mjs} +1 -1
- package/dist/{chunk-7QDYFNL6.mjs → chunk-ECD4ABCS.mjs} +1 -1
- package/dist/{chunk-K3TTKHSU.mjs → chunk-EZ47UJPD.mjs} +1 -1
- package/dist/{chunk-GQMW4NEU.mjs → chunk-I5YZBAB3.mjs} +1 -1
- package/dist/{chunk-FBI452W6.mjs → chunk-KKEJLP4U.mjs} +1 -1
- package/dist/{chunk-EOYBTX52.mjs → chunk-MTBQ5EO5.mjs} +1 -1
- package/dist/{chunk-TOGBVQYA.mjs → chunk-NJBUOBAS.mjs} +7 -3
- package/dist/{chunk-QP5CGENQ.mjs → chunk-OSP4OLTO.mjs} +1 -1
- package/dist/{chunk-FLCPUBBE.mjs → chunk-P5HLCB43.mjs} +1 -1
- package/dist/chunk-PY74IHS4.mjs +96 -0
- package/dist/{chunk-2WQ76NXU.mjs → chunk-ROFEKAS6.mjs} +1 -1
- package/dist/{chunk-KCPJHUUJ.mjs → chunk-USGOG5QI.mjs} +1 -1
- package/dist/{chunk-DBDK3IF7.mjs → chunk-W37Q6YFS.mjs} +1 -1
- package/dist/{chunk-FNHXMO5W.mjs → chunk-WH4ODSEM.mjs} +1 -1
- package/dist/{chunk-2BUT7L7P.mjs → chunk-XBJNS5SU.mjs} +1 -1
- package/dist/chunk-XKMMJKKB.mjs +29 -0
- package/dist/{chunk-LYTXO6TG.mjs → chunk-Z4ZQGUPY.mjs} +258 -398
- package/dist/{chunk-VK7USAMR.mjs → chunk-ZWG2GMCI.mjs} +1 -1
- package/dist/components/accordion.js +21 -0
- package/dist/components/accordion.mjs +25 -24
- package/dist/components/alert.d.mts +215 -110
- package/dist/components/alert.d.ts +215 -110
- package/dist/components/alert.js +86 -380
- package/dist/components/alert.mjs +9 -45
- package/dist/components/autocomplete.js +21 -0
- package/dist/components/autocomplete.mjs +5 -5
- package/dist/components/avatar.js +21 -0
- package/dist/components/avatar.mjs +25 -24
- package/dist/components/badge.js +21 -0
- package/dist/components/badge.mjs +25 -24
- package/dist/components/bottom-bar.js +21 -0
- package/dist/components/bottom-bar.mjs +25 -24
- package/dist/components/breadcrumbs.js +21 -0
- package/dist/components/breadcrumbs.mjs +25 -24
- package/dist/components/button.js +21 -0
- package/dist/components/button.mjs +25 -24
- package/dist/components/calendar.js +21 -0
- package/dist/components/calendar.mjs +25 -24
- package/dist/components/card.js +21 -0
- package/dist/components/card.mjs +25 -24
- package/dist/components/checkbox.js +28 -4
- package/dist/components/checkbox.mjs +25 -24
- package/dist/components/chip.js +21 -0
- package/dist/components/chip.mjs +25 -24
- package/dist/components/code.js +21 -0
- package/dist/components/code.mjs +25 -24
- package/dist/components/date-input.js +21 -0
- package/dist/components/date-input.mjs +5 -5
- package/dist/components/date-picker.js +21 -0
- package/dist/components/date-picker.mjs +5 -5
- package/dist/components/divider.d.mts +40 -1
- package/dist/components/divider.d.ts +40 -1
- package/dist/components/divider.js +33 -3
- package/dist/components/divider.mjs +9 -7
- package/dist/components/drawer.js +21 -0
- package/dist/components/drawer.mjs +5 -5
- package/dist/components/drip.js +21 -0
- package/dist/components/drip.mjs +5 -5
- package/dist/components/drop-zone.js +21 -0
- package/dist/components/drop-zone.mjs +25 -24
- package/dist/components/dropdown.js +21 -0
- package/dist/components/dropdown.mjs +25 -24
- package/dist/components/form.js +21 -0
- package/dist/components/form.mjs +5 -5
- package/dist/components/image.js +21 -0
- package/dist/components/image.mjs +5 -5
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +349 -368
- package/dist/components/index.mjs +32 -26
- package/dist/components/input-otp.js +21 -0
- package/dist/components/input-otp.mjs +25 -24
- package/dist/components/input.js +21 -0
- package/dist/components/input.mjs +25 -24
- package/dist/components/kbd.js +21 -0
- package/dist/components/kbd.mjs +5 -5
- package/dist/components/link.js +21 -0
- package/dist/components/link.mjs +25 -24
- package/dist/components/listbox.js +21 -0
- package/dist/components/listbox.mjs +25 -24
- package/dist/components/menu.js +21 -0
- package/dist/components/menu.mjs +25 -24
- package/dist/components/modal.js +21 -0
- package/dist/components/modal.mjs +25 -24
- package/dist/components/navbar.js +21 -0
- package/dist/components/navbar.mjs +25 -24
- package/dist/components/number-input.js +21 -0
- package/dist/components/number-input.mjs +25 -24
- package/dist/components/pagination.js +21 -0
- package/dist/components/pagination.mjs +25 -24
- package/dist/components/popover.js +21 -0
- package/dist/components/popover.mjs +25 -24
- package/dist/components/progress.js +21 -0
- package/dist/components/progress.mjs +5 -5
- package/dist/components/radio.js +21 -0
- package/dist/components/radio.mjs +25 -24
- package/dist/components/scroll-area.js +21 -0
- package/dist/components/scroll-area.mjs +5 -5
- package/dist/components/scroll-shadow.js +21 -0
- package/dist/components/scroll-shadow.mjs +5 -5
- package/dist/components/select.js +21 -0
- package/dist/components/select.mjs +25 -24
- package/dist/components/shimmer-text.js +21 -0
- package/dist/components/shimmer-text.mjs +5 -5
- package/dist/components/skeleton.js +21 -0
- package/dist/components/skeleton.mjs +5 -5
- package/dist/components/slider.js +21 -0
- package/dist/components/slider.mjs +25 -24
- package/dist/components/snippet.js +21 -0
- package/dist/components/snippet.mjs +25 -24
- package/dist/components/spacer.js +21 -0
- package/dist/components/spacer.mjs +5 -5
- package/dist/components/spinner.js +21 -0
- package/dist/components/spinner.mjs +5 -5
- package/dist/components/stepper.js +21 -0
- package/dist/components/stepper.mjs +25 -24
- 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 +25 -24
- 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 +25 -24
- package/dist/components/toast.js +21 -0
- package/dist/components/toast.mjs +25 -24
- package/dist/components/toggle.js +21 -0
- package/dist/components/toggle.mjs +25 -24
- package/dist/components/user.js +21 -0
- package/dist/components/user.mjs +25 -24
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +376 -370
- package/dist/index.mjs +32 -26
- package/dist/plugin.js +48 -2
- package/dist/plugin.mjs +4 -4
- 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 +2 -2
- 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 +4 -4
- package/dist/utils/index.js +29 -1
- package/dist/utils/index.mjs +25 -24
- package/dist/utils/merge-classes.js +21 -0
- package/dist/utils/merge-classes.mjs +25 -24
- package/dist/utils/tv.js +21 -0
- package/dist/utils/tv.mjs +4 -4
- package/dist/utils/tw-merge-config.js +21 -0
- package/dist/utils/tw-merge-config.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-7ZVSC6V6.mjs +0 -21
- package/dist/chunk-WH6SPIFG.mjs +0 -30
package/dist/index.js
CHANGED
|
@@ -35,6 +35,7 @@ __export(index_exports, {
|
|
|
35
35
|
accordion: () => accordion,
|
|
36
36
|
accordionItem: () => accordionItem,
|
|
37
37
|
alert: () => alert,
|
|
38
|
+
alertVariants: () => alertVariants,
|
|
38
39
|
autocomplete: () => autocomplete,
|
|
39
40
|
avatar: () => avatar,
|
|
40
41
|
avatarGroup: () => avatarGroup,
|
|
@@ -80,6 +81,7 @@ __export(index_exports, {
|
|
|
80
81
|
input: () => input,
|
|
81
82
|
inputOtp: () => inputOtp,
|
|
82
83
|
kbd: () => kbd,
|
|
84
|
+
labeledDivider: () => labeledDivider,
|
|
83
85
|
lightLayout: () => lightLayout,
|
|
84
86
|
link: () => link,
|
|
85
87
|
linkAnchorClasses: () => linkAnchorClasses,
|
|
@@ -211,7 +213,37 @@ var custom_default = {
|
|
|
211
213
|
};
|
|
212
214
|
|
|
213
215
|
// src/utilities/scrollbar-hide.ts
|
|
216
|
+
var scrollbarModes = {
|
|
217
|
+
'[data-scrollbar="thin"]': {
|
|
218
|
+
"--scrollbar-width": "thin",
|
|
219
|
+
"--scrollbar-color": "var(--scrollbar-thumb) var(--scrollbar-track)",
|
|
220
|
+
"--scrollbar-gutter": "auto"
|
|
221
|
+
},
|
|
222
|
+
'[data-scrollbar="default"]': {
|
|
223
|
+
"--scrollbar-width": "auto",
|
|
224
|
+
"--scrollbar-color": "auto",
|
|
225
|
+
"--scrollbar-gutter": "auto"
|
|
226
|
+
},
|
|
227
|
+
'[data-scrollbar="none"]': {
|
|
228
|
+
"--scrollbar-width": "none",
|
|
229
|
+
"--scrollbar-color": "auto",
|
|
230
|
+
"--scrollbar-gutter": "auto"
|
|
231
|
+
}
|
|
232
|
+
};
|
|
214
233
|
var scrollbar_hide_default = {
|
|
234
|
+
/**
|
|
235
|
+
* Theme-aware scrollbar
|
|
236
|
+
*/
|
|
237
|
+
".scrollbar": {
|
|
238
|
+
"scrollbar-width": "var(--scrollbar-width)",
|
|
239
|
+
"scrollbar-color": "var(--scrollbar-color)",
|
|
240
|
+
"scrollbar-gutter": "var(--scrollbar-gutter)"
|
|
241
|
+
},
|
|
242
|
+
".scrollbar-thin": {
|
|
243
|
+
"scrollbar-width": "thin",
|
|
244
|
+
"scrollbar-color": "var(--scrollbar-thumb) var(--scrollbar-track)",
|
|
245
|
+
"scrollbar-gutter": "auto"
|
|
246
|
+
},
|
|
215
247
|
/**
|
|
216
248
|
* Scroll Hide
|
|
217
249
|
*/
|
|
@@ -230,10 +262,18 @@ var scrollbar_hide_default = {
|
|
|
230
262
|
"-ms-overflow-style": "auto",
|
|
231
263
|
/* Firefox */
|
|
232
264
|
"scrollbar-width": "auto",
|
|
265
|
+
"scrollbar-color": "auto",
|
|
266
|
+
"scrollbar-gutter": "auto",
|
|
233
267
|
/* Safari and Chrome */
|
|
234
268
|
"&::-webkit-scrollbar": {
|
|
235
269
|
display: "block"
|
|
236
270
|
}
|
|
271
|
+
},
|
|
272
|
+
".scrollbar-none": {
|
|
273
|
+
"-ms-overflow-style": "none",
|
|
274
|
+
"scrollbar-width": "none",
|
|
275
|
+
"scrollbar-color": "auto",
|
|
276
|
+
"scrollbar-gutter": "auto"
|
|
237
277
|
}
|
|
238
278
|
};
|
|
239
279
|
|
|
@@ -373,7 +413,14 @@ var tv = (options, config) => {
|
|
|
373
413
|
// src/utils/classes.ts
|
|
374
414
|
var baseStyles = (prefix) => ({
|
|
375
415
|
color: `hsl(var(--${prefix}-foreground))`,
|
|
376
|
-
backgroundColor: `hsl(var(--${prefix}-background))
|
|
416
|
+
backgroundColor: `hsl(var(--${prefix}-background))`,
|
|
417
|
+
"--scrollbar-thumb": `hsl(var(--${prefix}-foreground) / 0.15)`,
|
|
418
|
+
"--scrollbar-track": "transparent",
|
|
419
|
+
"--scrollbar-gutter": "auto",
|
|
420
|
+
"--scrollbar-width": "thin",
|
|
421
|
+
"--scrollbar-color": "var(--scrollbar-thumb) var(--scrollbar-track)",
|
|
422
|
+
"--table-pinned-bg": `hsl(var(--${prefix}-content1))`,
|
|
423
|
+
"--table-pinned-shadow": `hsl(var(--${prefix}-foreground) / 0.25)`
|
|
377
424
|
});
|
|
378
425
|
var focusVisibleClasses = [
|
|
379
426
|
"focus-visible:z-10",
|
|
@@ -3839,14 +3886,15 @@ var checkbox = tv({
|
|
|
3839
3886
|
"justify-center",
|
|
3840
3887
|
"shrink-0",
|
|
3841
3888
|
"overflow-hidden",
|
|
3889
|
+
"shadow-small",
|
|
3842
3890
|
// before
|
|
3843
3891
|
"before:content-['']",
|
|
3844
3892
|
"before:absolute",
|
|
3845
3893
|
"before:inset-0",
|
|
3894
|
+
"before:border-small",
|
|
3846
3895
|
"before:border-solid",
|
|
3847
|
-
"before:border-
|
|
3848
|
-
"before:
|
|
3849
|
-
"before:border-default",
|
|
3896
|
+
"before:border-default-200",
|
|
3897
|
+
"before:bg-white",
|
|
3850
3898
|
// after
|
|
3851
3899
|
"after:content-['']",
|
|
3852
3900
|
"after:absolute",
|
|
@@ -3856,8 +3904,10 @@ var checkbox = tv({
|
|
|
3856
3904
|
"after:origin-center",
|
|
3857
3905
|
"group-data-[selected=true]:after:scale-100",
|
|
3858
3906
|
"group-data-[selected=true]:after:opacity-100",
|
|
3907
|
+
"group-data-[selected=true]:before:border-transparent",
|
|
3859
3908
|
// hover
|
|
3860
|
-
"group-data-[hover=true]:before:
|
|
3909
|
+
"group-data-[hover=true]:before:border-default-400",
|
|
3910
|
+
"group-data-[selected=true]:group-data-[hover=true]:before:border-transparent",
|
|
3861
3911
|
// focus ring
|
|
3862
3912
|
...groupDataFocusVisibleClasses
|
|
3863
3913
|
],
|
|
@@ -7617,15 +7667,36 @@ var table = tv({
|
|
|
7617
7667
|
"justify-between",
|
|
7618
7668
|
"gap-4",
|
|
7619
7669
|
"shadow-small",
|
|
7620
|
-
"bg-content1"
|
|
7621
|
-
"overflow-auto"
|
|
7670
|
+
"bg-content1"
|
|
7622
7671
|
],
|
|
7672
|
+
scrollContainer: ["scrollbar", "overflow-x-auto"],
|
|
7673
|
+
resizableContainer: ["relative", "scrollbar", "overflow-auto"],
|
|
7623
7674
|
table: "min-w-full h-auto",
|
|
7624
|
-
thead:
|
|
7625
|
-
|
|
7626
|
-
|
|
7675
|
+
thead: [
|
|
7676
|
+
// VirtualizerItem wraps each column, so round via the header row rather than the column.
|
|
7677
|
+
"[&>[role=row]>[role=presentation]:first-child>[role=columnheader]]:rounded-s-lg",
|
|
7678
|
+
"[&>[role=row]>[role=presentation]:last-child>[role=columnheader]]:rounded-e-lg",
|
|
7679
|
+
"[&>[role=row]>[role=presentation]:last-child>[role=columnheader]]:before:hidden",
|
|
7680
|
+
"[&>[role=row]>[role=presentation]:last-child>[role=columnheader]>[data-slot=table-column-resizer]]:hidden",
|
|
7681
|
+
"[&>tr>th:last-child>[data-slot=table-column-resizer]]:hidden"
|
|
7682
|
+
],
|
|
7683
|
+
tbody: [
|
|
7684
|
+
"[&:is(tbody)]:after:block",
|
|
7685
|
+
// A virtualized body is a div. Clip it instead of relying on first/last table cells.
|
|
7686
|
+
"[&:not(tbody)]:relative",
|
|
7687
|
+
"[&:not(tbody)]:h-full",
|
|
7688
|
+
"[&:not(tbody)]:overflow-hidden",
|
|
7689
|
+
"[&:not(tbody)]:rounded-lg"
|
|
7690
|
+
],
|
|
7691
|
+
tr: [
|
|
7692
|
+
"group/tr",
|
|
7693
|
+
"outline-solid outline-transparent",
|
|
7694
|
+
"[&:not(tr)]:h-full",
|
|
7695
|
+
...dataFocusVisibleClasses
|
|
7696
|
+
],
|
|
7627
7697
|
th: [
|
|
7628
7698
|
"group/th",
|
|
7699
|
+
"relative",
|
|
7629
7700
|
"px-3",
|
|
7630
7701
|
"h-10",
|
|
7631
7702
|
"text-start",
|
|
@@ -7635,21 +7706,62 @@ var table = tv({
|
|
|
7635
7706
|
"text-foreground-500",
|
|
7636
7707
|
"text-tiny",
|
|
7637
7708
|
"font-semibold",
|
|
7638
|
-
"
|
|
7639
|
-
"
|
|
7709
|
+
"[&:not(th)]:flex [&:not(th)]:items-center",
|
|
7710
|
+
"[&:is(th):first-child]:rounded-s-lg",
|
|
7711
|
+
"[&:is(th):last-child]:rounded-e-lg",
|
|
7712
|
+
"[&:is(th):last-child]:before:hidden",
|
|
7713
|
+
"before:pointer-events-none",
|
|
7714
|
+
"before:absolute",
|
|
7715
|
+
"before:end-0",
|
|
7716
|
+
"before:top-1/2",
|
|
7717
|
+
"before:h-4",
|
|
7718
|
+
"before:w-px",
|
|
7719
|
+
"before:-translate-y-1/2",
|
|
7720
|
+
"before:rounded-small",
|
|
7721
|
+
"before:bg-default-300",
|
|
7722
|
+
"before:content-['']",
|
|
7640
7723
|
"outline-solid outline-transparent",
|
|
7641
|
-
"data-[
|
|
7642
|
-
"data-[hover=true]:text-foreground-400",
|
|
7724
|
+
"data-[allows-sorting]:cursor-pointer",
|
|
7643
7725
|
...dataFocusVisibleClasses
|
|
7644
7726
|
],
|
|
7727
|
+
columnResizer: [
|
|
7728
|
+
"absolute",
|
|
7729
|
+
"end-0",
|
|
7730
|
+
"top-1/2",
|
|
7731
|
+
"h-4",
|
|
7732
|
+
"w-px",
|
|
7733
|
+
"-translate-y-1/2",
|
|
7734
|
+
"translate-x-1/2",
|
|
7735
|
+
"rounded-small",
|
|
7736
|
+
"bg-default-300",
|
|
7737
|
+
"bg-clip-content",
|
|
7738
|
+
"box-content",
|
|
7739
|
+
"cursor-col-resize",
|
|
7740
|
+
"touch-none",
|
|
7741
|
+
"border-none",
|
|
7742
|
+
"outline-none",
|
|
7743
|
+
"px-2",
|
|
7744
|
+
"data-[hovered=true]:h-full",
|
|
7745
|
+
"data-[hovered=true]:w-0.5",
|
|
7746
|
+
"data-[hovered=true]:bg-primary",
|
|
7747
|
+
"data-[resizing=true]:h-full",
|
|
7748
|
+
"data-[resizing=true]:w-0.5",
|
|
7749
|
+
"data-[resizing=true]:bg-primary",
|
|
7750
|
+
"data-[focus-visible=true]:h-full",
|
|
7751
|
+
"data-[focus-visible=true]:w-0.5",
|
|
7752
|
+
"data-[focus-visible=true]:bg-focus"
|
|
7753
|
+
],
|
|
7645
7754
|
td: [
|
|
7646
7755
|
"py-2",
|
|
7647
7756
|
"px-3",
|
|
7648
7757
|
"relative",
|
|
7758
|
+
"isolate",
|
|
7759
|
+
"z-0",
|
|
7649
7760
|
"align-middle",
|
|
7650
7761
|
"whitespace-normal",
|
|
7651
7762
|
"text-small",
|
|
7652
7763
|
"font-normal",
|
|
7764
|
+
"[&:not(td)]:h-full",
|
|
7653
7765
|
"outline-solid outline-transparent",
|
|
7654
7766
|
"[&>*]:z-1",
|
|
7655
7767
|
"[&>*]:relative",
|
|
@@ -7658,10 +7770,12 @@ var table = tv({
|
|
|
7658
7770
|
"before:pointer-events-none",
|
|
7659
7771
|
"before:content-['']",
|
|
7660
7772
|
"before:absolute",
|
|
7661
|
-
"before
|
|
7773
|
+
"before:-z-10",
|
|
7662
7774
|
"before:inset-0",
|
|
7663
7775
|
"before:opacity-0",
|
|
7664
7776
|
"data-[selected=true]:before:opacity-100",
|
|
7777
|
+
"data-[selected]:before:opacity-100",
|
|
7778
|
+
"group-aria-[selected=true]/tr:before:opacity-100",
|
|
7665
7779
|
// disabled
|
|
7666
7780
|
"group-data-[disabled=true]/tr:text-foreground-300",
|
|
7667
7781
|
"group-data-[disabled=true]/tr:cursor-not-allowed"
|
|
@@ -7678,28 +7792,28 @@ var table = tv({
|
|
|
7678
7792
|
"group-data-[hover=true]/th:opacity-100",
|
|
7679
7793
|
"data-[direction=ascending]:rotate-180"
|
|
7680
7794
|
],
|
|
7681
|
-
emptyWrapper: "
|
|
7795
|
+
emptyWrapper: "flex h-40 w-full items-center justify-center text-center align-middle text-foreground-400",
|
|
7682
7796
|
loadingWrapper: "absolute inset-0 flex items-center justify-center"
|
|
7683
7797
|
},
|
|
7684
7798
|
variants: {
|
|
7685
7799
|
color: {
|
|
7686
7800
|
default: {
|
|
7687
|
-
td: "before:bg-default
|
|
7801
|
+
td: "before:bg-default-300"
|
|
7688
7802
|
},
|
|
7689
7803
|
primary: {
|
|
7690
|
-
td: "before:bg-primary/20
|
|
7804
|
+
td: "before:bg-primary/20"
|
|
7691
7805
|
},
|
|
7692
7806
|
secondary: {
|
|
7693
|
-
td: "before:bg-secondary/20
|
|
7807
|
+
td: "before:bg-secondary/20"
|
|
7694
7808
|
},
|
|
7695
7809
|
success: {
|
|
7696
|
-
td: "before:bg-success/20
|
|
7810
|
+
td: "before:bg-success/20"
|
|
7697
7811
|
},
|
|
7698
7812
|
warning: {
|
|
7699
|
-
td: "before:bg-warning/20
|
|
7813
|
+
td: "before:bg-warning/20"
|
|
7700
7814
|
},
|
|
7701
7815
|
danger: {
|
|
7702
|
-
td: "before:bg-danger/20
|
|
7816
|
+
td: "before:bg-danger/20"
|
|
7703
7817
|
}
|
|
7704
7818
|
},
|
|
7705
7819
|
layout: {
|
|
@@ -7710,6 +7824,14 @@ var table = tv({
|
|
|
7710
7824
|
table: "table-fixed"
|
|
7711
7825
|
}
|
|
7712
7826
|
},
|
|
7827
|
+
overflowMode: {
|
|
7828
|
+
wrap: {
|
|
7829
|
+
td: "whitespace-normal break-words"
|
|
7830
|
+
},
|
|
7831
|
+
truncate: {
|
|
7832
|
+
td: "truncate"
|
|
7833
|
+
}
|
|
7834
|
+
},
|
|
7713
7835
|
shadow: {
|
|
7714
7836
|
none: {
|
|
7715
7837
|
wrapper: "shadow-none"
|
|
@@ -7732,9 +7854,9 @@ var table = tv({
|
|
|
7732
7854
|
isStriped: {
|
|
7733
7855
|
true: {
|
|
7734
7856
|
td: [
|
|
7735
|
-
"group-
|
|
7736
|
-
"group-
|
|
7737
|
-
"group-
|
|
7857
|
+
"group-even/tr:before:bg-default-100/50",
|
|
7858
|
+
"group-even/tr:before:opacity-100",
|
|
7859
|
+
"group-even/tr:before:-z-10"
|
|
7738
7860
|
]
|
|
7739
7861
|
}
|
|
7740
7862
|
},
|
|
@@ -7744,17 +7866,40 @@ var table = tv({
|
|
|
7744
7866
|
},
|
|
7745
7867
|
false: {}
|
|
7746
7868
|
},
|
|
7747
|
-
|
|
7869
|
+
isBordered: {
|
|
7870
|
+
true: {
|
|
7871
|
+
// Inner grid lines only: no border after the last column or under the last row.
|
|
7872
|
+
// The end border is cleared from the row because a virtualized cell is wrapped in a
|
|
7873
|
+
// VirtualizerItem, so `:last-child` on the cell itself matches every column.
|
|
7874
|
+
td: ["border-b", "border-divider", "group-last/tr:border-b-0"]
|
|
7875
|
+
}
|
|
7876
|
+
},
|
|
7877
|
+
isGlass: {
|
|
7878
|
+
true: {}
|
|
7879
|
+
},
|
|
7880
|
+
isSticky: {
|
|
7881
|
+
true: {
|
|
7882
|
+
thead: [
|
|
7883
|
+
"sticky top-0 z-20",
|
|
7884
|
+
// A virtualized rowgroup is 0-height (its children are all absolutely
|
|
7885
|
+
// positioned by VirtualizerItem). Stretch it to fill the sticky wrapper
|
|
7886
|
+
// so it has real area to paint on — same role a native <thead> already has.
|
|
7887
|
+
"[&:not(thead)]:absolute",
|
|
7888
|
+
"[&:not(thead)]:inset-0"
|
|
7889
|
+
]
|
|
7890
|
+
}
|
|
7891
|
+
},
|
|
7892
|
+
isFooterSticky: {
|
|
7748
7893
|
true: {
|
|
7749
|
-
|
|
7894
|
+
tfoot: "sticky bottom-0 z-20 rounded-lg bg-default-100"
|
|
7750
7895
|
}
|
|
7751
7896
|
},
|
|
7752
7897
|
isSelectable: {
|
|
7753
7898
|
true: {
|
|
7754
7899
|
tr: "cursor-default",
|
|
7755
7900
|
td: [
|
|
7756
|
-
"group-aria-[selected=false]/tr:group-data-[
|
|
7757
|
-
"group-aria-[selected=false]/tr:group-data-[
|
|
7901
|
+
"group-aria-[selected=false]/tr:group-data-[hovered]/tr:before:bg-default-100",
|
|
7902
|
+
"group-aria-[selected=false]/tr:group-data-[hovered]/tr:before:opacity-70"
|
|
7758
7903
|
]
|
|
7759
7904
|
}
|
|
7760
7905
|
},
|
|
@@ -7762,13 +7907,13 @@ var table = tv({
|
|
|
7762
7907
|
true: {
|
|
7763
7908
|
td: [
|
|
7764
7909
|
// first
|
|
7765
|
-
"group-
|
|
7766
|
-
"group-
|
|
7910
|
+
"group-first/tr:first:before:rounded-ss-lg",
|
|
7911
|
+
"group-first/tr:last:before:rounded-se-lg",
|
|
7767
7912
|
// middle
|
|
7768
|
-
"group-
|
|
7913
|
+
"group-[&:not(:first-child):not(:last-child)]/tr:before:rounded-none",
|
|
7769
7914
|
// last
|
|
7770
|
-
"group-
|
|
7771
|
-
"group-
|
|
7915
|
+
"group-last/tr:first:before:rounded-es-lg",
|
|
7916
|
+
"group-last/tr:last:before:rounded-ee-lg"
|
|
7772
7917
|
]
|
|
7773
7918
|
},
|
|
7774
7919
|
false: {
|
|
@@ -7778,19 +7923,25 @@ var table = tv({
|
|
|
7778
7923
|
radius: {
|
|
7779
7924
|
none: {
|
|
7780
7925
|
wrapper: "rounded-none",
|
|
7926
|
+
tfoot: "rounded-none",
|
|
7927
|
+
thead: [
|
|
7928
|
+
"[&>[role=row]>[role=presentation]:first-child>[role=columnheader]]:rounded-s-none",
|
|
7929
|
+
"[&>[role=row]>[role=presentation]:last-child>[role=columnheader]]:rounded-e-none"
|
|
7930
|
+
],
|
|
7931
|
+
tbody: "[&:not(tbody)]:rounded-none",
|
|
7781
7932
|
th: [
|
|
7782
|
-
"first:rounded-s-none",
|
|
7783
|
-
"first:before:rounded-s-none",
|
|
7784
|
-
"last:rounded-e-none",
|
|
7785
|
-
"last:before:rounded-e-none"
|
|
7933
|
+
"[&:is(th):first-child]:rounded-s-none",
|
|
7934
|
+
"[&:is(th):first-child]:before:rounded-s-none",
|
|
7935
|
+
"[&:is(th):last-child]:rounded-e-none",
|
|
7936
|
+
"[&:is(th):last-child]:before:rounded-e-none"
|
|
7786
7937
|
],
|
|
7787
7938
|
td: [
|
|
7788
7939
|
"first:before:rounded-s-none",
|
|
7789
7940
|
"last:before:rounded-e-none",
|
|
7790
|
-
"group-
|
|
7791
|
-
"group-
|
|
7792
|
-
"group-
|
|
7793
|
-
"group-
|
|
7941
|
+
"group-first/tr:first:before:rounded-ss-none",
|
|
7942
|
+
"group-first/tr:last:before:rounded-se-none",
|
|
7943
|
+
"group-last/tr:first:before:rounded-es-none",
|
|
7944
|
+
"group-last/tr:last:before:rounded-ee-none"
|
|
7794
7945
|
]
|
|
7795
7946
|
},
|
|
7796
7947
|
sm: {
|
|
@@ -7831,52 +7982,81 @@ var table = tv({
|
|
|
7831
7982
|
radius: "lg",
|
|
7832
7983
|
color: "default",
|
|
7833
7984
|
isCompact: false,
|
|
7985
|
+
isGlass: true,
|
|
7834
7986
|
hideHeader: false,
|
|
7835
7987
|
isStriped: false,
|
|
7836
7988
|
fullWidth: true,
|
|
7837
|
-
align: "start"
|
|
7989
|
+
align: "start",
|
|
7990
|
+
overflowMode: "wrap"
|
|
7838
7991
|
},
|
|
7839
7992
|
compoundVariants: [
|
|
7993
|
+
{
|
|
7994
|
+
isGlass: true,
|
|
7995
|
+
isSticky: true,
|
|
7996
|
+
class: {
|
|
7997
|
+
// The single glass surface lives on the thead slot (rowgroup) — see the
|
|
7998
|
+
// isSticky variant above for why that works in both native and virtualized DOM.
|
|
7999
|
+
thead: "bg-default-100/80 backdrop-blur-sm",
|
|
8000
|
+
th: [
|
|
8001
|
+
// Cells stay transparent so the row group is the only thing painting glass —
|
|
8002
|
+
// per-cell backdrop-filter would clamp its sampling to each cell's own box,
|
|
8003
|
+
// producing a visible seam at every column boundary.
|
|
8004
|
+
"bg-transparent",
|
|
8005
|
+
// Native-only: a horizontally-pinned column header is sticky *within* the row
|
|
8006
|
+
// group, so it can scroll away from the row group's own (also-scrolling)
|
|
8007
|
+
// background box. It needs its own glass to stay opaque as content passes under it.
|
|
8008
|
+
"data-[pinned]:bg-default-100/80",
|
|
8009
|
+
"data-[pinned]:backdrop-blur-sm"
|
|
8010
|
+
]
|
|
8011
|
+
}
|
|
8012
|
+
},
|
|
8013
|
+
{
|
|
8014
|
+
isFooterSticky: true,
|
|
8015
|
+
isGlass: true,
|
|
8016
|
+
class: {
|
|
8017
|
+
tfoot: "bg-default-100/80 backdrop-blur-sm"
|
|
8018
|
+
}
|
|
8019
|
+
},
|
|
7840
8020
|
{
|
|
7841
8021
|
isStriped: true,
|
|
7842
8022
|
color: "default",
|
|
7843
8023
|
class: {
|
|
7844
|
-
td: "group-
|
|
8024
|
+
td: "group-even/tr:data-[selected=true]:before:bg-default/60"
|
|
7845
8025
|
}
|
|
7846
8026
|
},
|
|
7847
8027
|
{
|
|
7848
8028
|
isStriped: true,
|
|
7849
8029
|
color: "primary",
|
|
7850
8030
|
class: {
|
|
7851
|
-
td: "group-
|
|
8031
|
+
td: "group-even/tr:data-[selected=true]:before:bg-primary/20"
|
|
7852
8032
|
}
|
|
7853
8033
|
},
|
|
7854
8034
|
{
|
|
7855
8035
|
isStriped: true,
|
|
7856
8036
|
color: "secondary",
|
|
7857
8037
|
class: {
|
|
7858
|
-
td: "group-
|
|
8038
|
+
td: "group-even/tr:data-[selected=true]:before:bg-secondary/20"
|
|
7859
8039
|
}
|
|
7860
8040
|
},
|
|
7861
8041
|
{
|
|
7862
8042
|
isStriped: true,
|
|
7863
8043
|
color: "success",
|
|
7864
8044
|
class: {
|
|
7865
|
-
td: "group-
|
|
8045
|
+
td: "group-even/tr:data-[selected=true]:before:bg-success/20"
|
|
7866
8046
|
}
|
|
7867
8047
|
},
|
|
7868
8048
|
{
|
|
7869
8049
|
isStriped: true,
|
|
7870
8050
|
color: "warning",
|
|
7871
8051
|
class: {
|
|
7872
|
-
td: "group-
|
|
8052
|
+
td: "group-even/tr:data-[selected=true]:before:bg-warning/20"
|
|
7873
8053
|
}
|
|
7874
8054
|
},
|
|
7875
8055
|
{
|
|
7876
8056
|
isStriped: true,
|
|
7877
8057
|
color: "danger",
|
|
7878
8058
|
class: {
|
|
7879
|
-
td: "group-
|
|
8059
|
+
td: "group-even/tr:data-[selected=true]:before:bg-danger/20"
|
|
7880
8060
|
}
|
|
7881
8061
|
}
|
|
7882
8062
|
]
|
|
@@ -7902,13 +8082,20 @@ var divider = tv({
|
|
|
7902
8082
|
variants: {
|
|
7903
8083
|
orientation: {
|
|
7904
8084
|
horizontal: "w-full h-divider",
|
|
7905
|
-
vertical: "h-
|
|
8085
|
+
vertical: "h-auto min-h-2 self-stretch w-divider"
|
|
7906
8086
|
}
|
|
7907
8087
|
},
|
|
7908
8088
|
defaultVariants: {
|
|
7909
8089
|
orientation: "horizontal"
|
|
7910
8090
|
}
|
|
7911
8091
|
});
|
|
8092
|
+
var labeledDivider = tv({
|
|
8093
|
+
slots: {
|
|
8094
|
+
base: "flex w-full items-center gap-3",
|
|
8095
|
+
line: "h-divider flex-1 bg-divider",
|
|
8096
|
+
label: "shrink-0 text-small text-default-500"
|
|
8097
|
+
}
|
|
8098
|
+
});
|
|
7912
8099
|
|
|
7913
8100
|
// src/components/kbd.ts
|
|
7914
8101
|
var kbd = tv({
|
|
@@ -7939,18 +8126,58 @@ var kbd = tv({
|
|
|
7939
8126
|
// src/components/tabs.ts
|
|
7940
8127
|
var tabs = tv({
|
|
7941
8128
|
slots: {
|
|
7942
|
-
base: "inline-flex",
|
|
8129
|
+
base: "group relative inline-flex max-w-full bg-default-100",
|
|
8130
|
+
scroller: "max-w-full",
|
|
7943
8131
|
tabList: [
|
|
7944
8132
|
"relative",
|
|
7945
|
-
"flex",
|
|
8133
|
+
"inline-flex",
|
|
7946
8134
|
"p-1",
|
|
7947
8135
|
"h-fit",
|
|
7948
8136
|
"gap-2",
|
|
7949
8137
|
"items-center",
|
|
7950
8138
|
"flex-nowrap",
|
|
7951
|
-
"
|
|
7952
|
-
"
|
|
7953
|
-
|
|
8139
|
+
"w-max",
|
|
8140
|
+
"min-w-full"
|
|
8141
|
+
],
|
|
8142
|
+
scrollPrev: [
|
|
8143
|
+
"absolute",
|
|
8144
|
+
"z-20",
|
|
8145
|
+
"hidden",
|
|
8146
|
+
"size-4",
|
|
8147
|
+
"items-center",
|
|
8148
|
+
"justify-center",
|
|
8149
|
+
"rounded-full",
|
|
8150
|
+
"bg-transparent",
|
|
8151
|
+
"outline-none",
|
|
8152
|
+
"text-foreground",
|
|
8153
|
+
"transition-opacity",
|
|
8154
|
+
"hover:opacity-70",
|
|
8155
|
+
"focus-visible:outline-2",
|
|
8156
|
+
"focus-visible:outline-focus",
|
|
8157
|
+
"group-has-[[data-left-scroll=true]]:flex",
|
|
8158
|
+
"group-has-[[data-left-right-scroll=true]]:flex",
|
|
8159
|
+
"group-has-[[data-top-scroll=true]]:flex",
|
|
8160
|
+
"group-has-[[data-top-bottom-scroll=true]]:flex"
|
|
8161
|
+
],
|
|
8162
|
+
scrollNext: [
|
|
8163
|
+
"absolute",
|
|
8164
|
+
"z-20",
|
|
8165
|
+
"hidden",
|
|
8166
|
+
"size-4",
|
|
8167
|
+
"items-center",
|
|
8168
|
+
"justify-center",
|
|
8169
|
+
"rounded-full",
|
|
8170
|
+
"bg-transparent",
|
|
8171
|
+
"outline-none",
|
|
8172
|
+
"text-foreground",
|
|
8173
|
+
"transition-opacity",
|
|
8174
|
+
"hover:opacity-70",
|
|
8175
|
+
"focus-visible:outline-2",
|
|
8176
|
+
"focus-visible:outline-focus",
|
|
8177
|
+
"group-has-[[data-right-scroll=true]]:flex",
|
|
8178
|
+
"group-has-[[data-left-right-scroll=true]]:flex",
|
|
8179
|
+
"group-has-[[data-bottom-scroll=true]]:flex",
|
|
8180
|
+
"group-has-[[data-top-bottom-scroll=true]]:flex"
|
|
7954
8181
|
],
|
|
7955
8182
|
tab: [
|
|
7956
8183
|
"z-0",
|
|
@@ -8006,14 +8233,14 @@ var tabs = tv({
|
|
|
8006
8233
|
variant: {
|
|
8007
8234
|
solid: {},
|
|
8008
8235
|
light: {
|
|
8009
|
-
|
|
8236
|
+
base: "bg-transparent dark:bg-transparent"
|
|
8010
8237
|
},
|
|
8011
8238
|
underlined: {
|
|
8012
|
-
|
|
8239
|
+
base: "bg-transparent dark:bg-transparent",
|
|
8013
8240
|
cursor: "h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"
|
|
8014
8241
|
},
|
|
8015
8242
|
bordered: {
|
|
8016
|
-
|
|
8243
|
+
base: "bg-transparent dark:bg-transparent border-medium border-default-200 shadow-xs"
|
|
8017
8244
|
}
|
|
8018
8245
|
},
|
|
8019
8246
|
color: {
|
|
@@ -8026,16 +8253,19 @@ var tabs = tv({
|
|
|
8026
8253
|
},
|
|
8027
8254
|
size: {
|
|
8028
8255
|
sm: {
|
|
8256
|
+
base: "rounded-medium",
|
|
8029
8257
|
tabList: "rounded-medium",
|
|
8030
8258
|
tab: "h-7 text-tiny rounded-small",
|
|
8031
8259
|
cursor: "rounded-small"
|
|
8032
8260
|
},
|
|
8033
8261
|
md: {
|
|
8262
|
+
base: "rounded-medium",
|
|
8034
8263
|
tabList: "rounded-medium",
|
|
8035
8264
|
tab: "h-8 text-small rounded-small",
|
|
8036
8265
|
cursor: "rounded-small"
|
|
8037
8266
|
},
|
|
8038
8267
|
lg: {
|
|
8268
|
+
base: "rounded-large",
|
|
8039
8269
|
tabList: "rounded-large",
|
|
8040
8270
|
tab: "h-9 text-medium rounded-medium",
|
|
8041
8271
|
cursor: "rounded-medium"
|
|
@@ -8043,26 +8273,31 @@ var tabs = tv({
|
|
|
8043
8273
|
},
|
|
8044
8274
|
radius: {
|
|
8045
8275
|
none: {
|
|
8276
|
+
base: "rounded-none",
|
|
8046
8277
|
tabList: "rounded-none",
|
|
8047
8278
|
tab: "rounded-none",
|
|
8048
8279
|
cursor: "rounded-none"
|
|
8049
8280
|
},
|
|
8050
8281
|
sm: {
|
|
8282
|
+
base: "rounded-medium",
|
|
8051
8283
|
tabList: "rounded-medium",
|
|
8052
8284
|
tab: "rounded-small",
|
|
8053
8285
|
cursor: "rounded-small"
|
|
8054
8286
|
},
|
|
8055
8287
|
md: {
|
|
8288
|
+
base: "rounded-medium",
|
|
8056
8289
|
tabList: "rounded-medium",
|
|
8057
8290
|
tab: "rounded-small",
|
|
8058
8291
|
cursor: "rounded-small"
|
|
8059
8292
|
},
|
|
8060
8293
|
lg: {
|
|
8294
|
+
base: "rounded-large",
|
|
8061
8295
|
tabList: "rounded-large",
|
|
8062
8296
|
tab: "rounded-medium",
|
|
8063
8297
|
cursor: "rounded-medium"
|
|
8064
8298
|
},
|
|
8065
8299
|
full: {
|
|
8300
|
+
base: "rounded-full",
|
|
8066
8301
|
tabList: "rounded-full",
|
|
8067
8302
|
tab: "rounded-full",
|
|
8068
8303
|
cursor: "rounded-full"
|
|
@@ -8071,7 +8306,7 @@ var tabs = tv({
|
|
|
8071
8306
|
fullWidth: {
|
|
8072
8307
|
true: {
|
|
8073
8308
|
base: "w-full",
|
|
8074
|
-
|
|
8309
|
+
scroller: "w-full"
|
|
8075
8310
|
}
|
|
8076
8311
|
},
|
|
8077
8312
|
isDisabled: {
|
|
@@ -8086,19 +8321,30 @@ var tabs = tv({
|
|
|
8086
8321
|
}
|
|
8087
8322
|
},
|
|
8088
8323
|
placement: {
|
|
8089
|
-
top: {
|
|
8324
|
+
top: {
|
|
8325
|
+
scrollPrev: "top-1/2 left-1 -translate-y-1/2",
|
|
8326
|
+
scrollNext: "top-1/2 right-1 -translate-y-1/2"
|
|
8327
|
+
},
|
|
8090
8328
|
start: {
|
|
8091
|
-
|
|
8329
|
+
scroller: "h-full",
|
|
8330
|
+
tabList: "min-w-0 flex-col",
|
|
8092
8331
|
panel: "py-0 px-3",
|
|
8093
|
-
tabWrapper: "flex"
|
|
8332
|
+
tabWrapper: "flex",
|
|
8333
|
+
scrollPrev: "top-1 left-1/2 -translate-x-1/2",
|
|
8334
|
+
scrollNext: "bottom-1 left-1/2 -translate-x-1/2"
|
|
8094
8335
|
},
|
|
8095
8336
|
end: {
|
|
8096
|
-
|
|
8337
|
+
scroller: "h-full",
|
|
8338
|
+
tabList: "min-w-0 flex-col",
|
|
8097
8339
|
panel: "py-0 px-3",
|
|
8098
|
-
tabWrapper: "flex flex-row-reverse"
|
|
8340
|
+
tabWrapper: "flex flex-row-reverse",
|
|
8341
|
+
scrollPrev: "top-1 left-1/2 -translate-x-1/2",
|
|
8342
|
+
scrollNext: "bottom-1 left-1/2 -translate-x-1/2"
|
|
8099
8343
|
},
|
|
8100
8344
|
bottom: {
|
|
8101
|
-
tabWrapper: "flex flex-col-reverse"
|
|
8345
|
+
tabWrapper: "flex flex-col-reverse",
|
|
8346
|
+
scrollPrev: "top-1/2 left-1 -translate-y-1/2",
|
|
8347
|
+
scrollNext: "top-1/2 right-1 -translate-y-1/2"
|
|
8102
8348
|
}
|
|
8103
8349
|
}
|
|
8104
8350
|
},
|
|
@@ -11455,33 +11701,66 @@ var dateRangePicker = tv({
|
|
|
11455
11701
|
});
|
|
11456
11702
|
|
|
11457
11703
|
// src/components/alert.ts
|
|
11458
|
-
var
|
|
11704
|
+
var accentColor = [
|
|
11705
|
+
"text-[color:color-mix(in_oklab,oklch(0.6204_0.195_253.83)_70%,oklch(0.2103_0.0059_285.89)_30%)]",
|
|
11706
|
+
"dark:text-[color:color-mix(in_oklab,oklch(0.6204_0.195_253.83)_80%,oklch(0.9911_0_0)_30%)]"
|
|
11707
|
+
];
|
|
11708
|
+
var successColor = [
|
|
11709
|
+
"text-[color:color-mix(in_oklab,oklch(0.7329_0.1935_150.81)_80%,oklch(0.2103_0.0059_285.89)_60%)]",
|
|
11710
|
+
"dark:text-[color:color-mix(in_oklab,oklch(0.7329_0.1935_150.81)_80%,oklch(0.9911_0_0)_30%)]"
|
|
11711
|
+
];
|
|
11712
|
+
var warningColor = [
|
|
11713
|
+
"text-[color:color-mix(in_oklab,oklch(0.7819_0.1585_72.33)_80%,oklch(0.2103_0.0059_285.89)_70%)]",
|
|
11714
|
+
"dark:text-[color:color-mix(in_oklab,oklch(0.8203_0.1388_76.34)_80%,oklch(0.9911_0_0)_30%)]"
|
|
11715
|
+
];
|
|
11716
|
+
var dangerColor = [
|
|
11717
|
+
"text-[color:color-mix(in_oklab,oklch(0.6532_0.2328_25.74)_70%,oklch(0.2103_0.0059_285.89)_40%)]",
|
|
11718
|
+
"dark:text-[color:color-mix(in_oklab,oklch(0.594_0.1967_24.63)_80%,oklch(0.9911_0_0)_30%)]"
|
|
11719
|
+
];
|
|
11720
|
+
var alertVariants = tv({
|
|
11459
11721
|
slots: {
|
|
11460
|
-
base:
|
|
11461
|
-
|
|
11462
|
-
|
|
11463
|
-
|
|
11464
|
-
|
|
11465
|
-
|
|
11466
|
-
|
|
11722
|
+
base: [
|
|
11723
|
+
"flex w-full flex-row items-start justify-start gap-1 px-4 py-3",
|
|
11724
|
+
"rounded-[24px] bg-[oklch(100%_0_0)] text-[oklch(0.2103_0.0059_285.89)]",
|
|
11725
|
+
"dark:bg-[oklch(0.2103_0.0059_285.89)] dark:text-[oklch(0.9911_0_0)]",
|
|
11726
|
+
"shadow-[0_2px_4px_0_rgba(0,0,0,0.04),0_1px_2px_0_rgba(0,0,0,0.06),0_0_1px_0_rgba(0,0,0,0.06)]",
|
|
11727
|
+
"dark:shadow-none"
|
|
11728
|
+
],
|
|
11729
|
+
content: "flex h-full grow flex-col items-start",
|
|
11730
|
+
indicator: [
|
|
11731
|
+
"flex size-6 shrink-0 items-center justify-center p-1 select-none",
|
|
11732
|
+
"[&_[data-slot=alert-default-icon]]:box-content",
|
|
11733
|
+
"[&_[data-slot=alert-default-icon]]:size-4"
|
|
11734
|
+
],
|
|
11735
|
+
title: "text-small leading-6 font-medium",
|
|
11736
|
+
description: "text-small text-[oklch(0.5517_0.0138_285.94)] dark:text-[oklch(70.5%_0.015_286.067)]"
|
|
11467
11737
|
},
|
|
11468
11738
|
variants: {
|
|
11469
|
-
|
|
11470
|
-
default: {
|
|
11471
|
-
|
|
11472
|
-
|
|
11473
|
-
|
|
11474
|
-
warning: {},
|
|
11475
|
-
danger: {}
|
|
11476
|
-
},
|
|
11477
|
-
variant: {
|
|
11478
|
-
solid: {},
|
|
11479
|
-
flat: {},
|
|
11480
|
-
faded: {
|
|
11481
|
-
base: "border-small"
|
|
11739
|
+
status: {
|
|
11740
|
+
default: {
|
|
11741
|
+
base: "border-default-300",
|
|
11742
|
+
indicator: "text-inherit",
|
|
11743
|
+
title: "text-inherit"
|
|
11482
11744
|
},
|
|
11483
|
-
|
|
11484
|
-
base: "border-
|
|
11745
|
+
accent: {
|
|
11746
|
+
base: "border-primary-300",
|
|
11747
|
+
indicator: accentColor,
|
|
11748
|
+
title: accentColor
|
|
11749
|
+
},
|
|
11750
|
+
success: {
|
|
11751
|
+
base: "border-success-300",
|
|
11752
|
+
indicator: successColor,
|
|
11753
|
+
title: successColor
|
|
11754
|
+
},
|
|
11755
|
+
warning: {
|
|
11756
|
+
base: "border-warning-300",
|
|
11757
|
+
indicator: warningColor,
|
|
11758
|
+
title: warningColor
|
|
11759
|
+
},
|
|
11760
|
+
danger: {
|
|
11761
|
+
base: "border-danger-300",
|
|
11762
|
+
indicator: dangerColor,
|
|
11763
|
+
title: dangerColor
|
|
11485
11764
|
}
|
|
11486
11765
|
},
|
|
11487
11766
|
radius: {
|
|
@@ -11495,295 +11774,19 @@ var alert = tv({
|
|
|
11495
11774
|
base: "rounded-medium"
|
|
11496
11775
|
},
|
|
11497
11776
|
lg: {
|
|
11498
|
-
base: "rounded-
|
|
11777
|
+
base: "rounded-[24px]"
|
|
11499
11778
|
},
|
|
11500
11779
|
full: {
|
|
11501
11780
|
base: "rounded-full"
|
|
11502
11781
|
}
|
|
11503
|
-
},
|
|
11504
|
-
hideIcon: {
|
|
11505
|
-
true: {
|
|
11506
|
-
iconWrapper: "hidden"
|
|
11507
|
-
}
|
|
11508
|
-
},
|
|
11509
|
-
hideIconWrapper: {
|
|
11510
|
-
true: {
|
|
11511
|
-
base: "gap-x-0",
|
|
11512
|
-
iconWrapper: "!bg-transparent !shadow-none !border-none"
|
|
11513
|
-
}
|
|
11514
|
-
},
|
|
11515
|
-
hasContent: {
|
|
11516
|
-
false: {
|
|
11517
|
-
base: "items-center",
|
|
11518
|
-
mainWrapper: "justify-center items-center"
|
|
11519
|
-
}
|
|
11520
11782
|
}
|
|
11521
11783
|
},
|
|
11522
11784
|
defaultVariants: {
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
hideIcon: false,
|
|
11527
|
-
hideIconWrapper: false
|
|
11528
|
-
},
|
|
11529
|
-
compoundVariants: [
|
|
11530
|
-
// solid / color
|
|
11531
|
-
{
|
|
11532
|
-
variant: "solid",
|
|
11533
|
-
color: "default",
|
|
11534
|
-
class: {
|
|
11535
|
-
base: colorVariants.solid.default,
|
|
11536
|
-
closeButton: "data-[hover]:bg-default-100",
|
|
11537
|
-
alertIcon: "text-default-foreground"
|
|
11538
|
-
}
|
|
11539
|
-
},
|
|
11540
|
-
{
|
|
11541
|
-
variant: "solid",
|
|
11542
|
-
color: "primary",
|
|
11543
|
-
class: {
|
|
11544
|
-
base: colorVariants.solid.primary
|
|
11545
|
-
}
|
|
11546
|
-
},
|
|
11547
|
-
{
|
|
11548
|
-
variant: "solid",
|
|
11549
|
-
color: "secondary",
|
|
11550
|
-
class: {
|
|
11551
|
-
base: colorVariants.solid.secondary
|
|
11552
|
-
}
|
|
11553
|
-
},
|
|
11554
|
-
{
|
|
11555
|
-
variant: "solid",
|
|
11556
|
-
color: "success",
|
|
11557
|
-
class: {
|
|
11558
|
-
base: colorVariants.solid.success
|
|
11559
|
-
}
|
|
11560
|
-
},
|
|
11561
|
-
{
|
|
11562
|
-
variant: "solid",
|
|
11563
|
-
color: "warning",
|
|
11564
|
-
class: {
|
|
11565
|
-
base: colorVariants.solid.warning
|
|
11566
|
-
}
|
|
11567
|
-
},
|
|
11568
|
-
{
|
|
11569
|
-
variant: "solid",
|
|
11570
|
-
color: "danger",
|
|
11571
|
-
class: {
|
|
11572
|
-
base: colorVariants.solid.danger
|
|
11573
|
-
}
|
|
11574
|
-
},
|
|
11575
|
-
// flat & faded / color
|
|
11576
|
-
{
|
|
11577
|
-
variant: ["flat", "faded"],
|
|
11578
|
-
color: "default",
|
|
11579
|
-
class: {
|
|
11580
|
-
base: [
|
|
11581
|
-
colorVariants.flat.default,
|
|
11582
|
-
"bg-default-100 dark:bg-default-50/50",
|
|
11583
|
-
"text-default-foreground"
|
|
11584
|
-
],
|
|
11585
|
-
description: "text-default-600",
|
|
11586
|
-
closeButton: "text-default-400",
|
|
11587
|
-
iconWrapper: "bg-default-50 dark:bg-default-100 border-default-200"
|
|
11588
|
-
}
|
|
11589
|
-
},
|
|
11590
|
-
{
|
|
11591
|
-
variant: ["flat", "faded"],
|
|
11592
|
-
color: "primary",
|
|
11593
|
-
class: {
|
|
11594
|
-
base: [colorVariants.flat.primary, "bg-primary-50 dark:bg-primary-50/50"],
|
|
11595
|
-
closeButton: "text-primary-500 data-[hover]:bg-primary-200",
|
|
11596
|
-
iconWrapper: "bg-primary-50 dark:bg-primary-100 border-primary-100"
|
|
11597
|
-
}
|
|
11598
|
-
},
|
|
11599
|
-
{
|
|
11600
|
-
variant: ["flat", "faded"],
|
|
11601
|
-
color: "secondary",
|
|
11602
|
-
class: {
|
|
11603
|
-
base: [colorVariants.flat.secondary, "bg-secondary-50 dark:bg-secondary-50/50"],
|
|
11604
|
-
closeButton: "text-secondary-500 data-[hover]:bg-secondary-200",
|
|
11605
|
-
iconWrapper: "bg-secondary-50 dark:bg-secondary-100 border-secondary-100"
|
|
11606
|
-
}
|
|
11607
|
-
},
|
|
11608
|
-
{
|
|
11609
|
-
variant: ["flat", "faded"],
|
|
11610
|
-
color: "success",
|
|
11611
|
-
class: {
|
|
11612
|
-
base: [colorVariants.flat.success, "bg-success-50 dark:bg-success-50/50"],
|
|
11613
|
-
closeButton: "text-success-500 data-[hover]:bg-success-200",
|
|
11614
|
-
iconWrapper: "bg-success-50 dark:bg-success-100 border-success-100"
|
|
11615
|
-
}
|
|
11616
|
-
},
|
|
11617
|
-
{
|
|
11618
|
-
variant: ["flat", "faded"],
|
|
11619
|
-
color: "warning",
|
|
11620
|
-
class: {
|
|
11621
|
-
base: [colorVariants.flat.warning, "bg-warning-50 dark:bg-warning-50/50"],
|
|
11622
|
-
closeButton: "text-warning-500 data-[hover]:bg-warning-200",
|
|
11623
|
-
iconWrapper: "bg-warning-50 dark:bg-warning-100 border-warning-100"
|
|
11624
|
-
}
|
|
11625
|
-
},
|
|
11626
|
-
{
|
|
11627
|
-
variant: ["flat", "faded"],
|
|
11628
|
-
color: "danger",
|
|
11629
|
-
class: {
|
|
11630
|
-
base: [colorVariants.flat.danger, "bg-danger-50 dark:bg-danger-50/50"],
|
|
11631
|
-
closeButton: "text-danger-500 data-[hover]:bg-danger-200",
|
|
11632
|
-
iconWrapper: "bg-danger-50 dark:bg-danger-100 border-danger-100"
|
|
11633
|
-
}
|
|
11634
|
-
},
|
|
11635
|
-
// faded / color
|
|
11636
|
-
{
|
|
11637
|
-
variant: "faded",
|
|
11638
|
-
color: "default",
|
|
11639
|
-
class: {
|
|
11640
|
-
base: "border-default-300 dark:border-default-200"
|
|
11641
|
-
}
|
|
11642
|
-
},
|
|
11643
|
-
{
|
|
11644
|
-
variant: "faded",
|
|
11645
|
-
color: "primary",
|
|
11646
|
-
class: {
|
|
11647
|
-
base: "border-primary-200 dark:border-primary-100"
|
|
11648
|
-
}
|
|
11649
|
-
},
|
|
11650
|
-
{
|
|
11651
|
-
variant: "faded",
|
|
11652
|
-
color: "secondary",
|
|
11653
|
-
class: {
|
|
11654
|
-
base: "border-secondary-200"
|
|
11655
|
-
}
|
|
11656
|
-
},
|
|
11657
|
-
{
|
|
11658
|
-
variant: "faded",
|
|
11659
|
-
color: "success",
|
|
11660
|
-
class: {
|
|
11661
|
-
base: "border-success-300 dark:border-success-100"
|
|
11662
|
-
}
|
|
11663
|
-
},
|
|
11664
|
-
{
|
|
11665
|
-
variant: "faded",
|
|
11666
|
-
color: "warning",
|
|
11667
|
-
class: {
|
|
11668
|
-
base: "border-warning-300 dark:border-warning-100"
|
|
11669
|
-
}
|
|
11670
|
-
},
|
|
11671
|
-
{
|
|
11672
|
-
variant: "faded",
|
|
11673
|
-
color: "danger",
|
|
11674
|
-
class: {
|
|
11675
|
-
base: "border-danger-200 dark:border-danger-100"
|
|
11676
|
-
}
|
|
11677
|
-
},
|
|
11678
|
-
// bordered / color
|
|
11679
|
-
{
|
|
11680
|
-
variant: "bordered",
|
|
11681
|
-
color: "default",
|
|
11682
|
-
class: {
|
|
11683
|
-
base: [colorVariants.bordered.default],
|
|
11684
|
-
description: "text-default-600",
|
|
11685
|
-
closeButton: "text-default-400"
|
|
11686
|
-
}
|
|
11687
|
-
},
|
|
11688
|
-
{
|
|
11689
|
-
variant: "bordered",
|
|
11690
|
-
color: "primary",
|
|
11691
|
-
class: {
|
|
11692
|
-
base: [colorVariants.bordered.primary],
|
|
11693
|
-
closeButton: "data-[hover]:bg-primary-50"
|
|
11694
|
-
}
|
|
11695
|
-
},
|
|
11696
|
-
{
|
|
11697
|
-
variant: "bordered",
|
|
11698
|
-
color: "secondary",
|
|
11699
|
-
class: {
|
|
11700
|
-
base: [colorVariants.bordered.secondary],
|
|
11701
|
-
closeButton: "data-[hover]:bg-secondary-50"
|
|
11702
|
-
}
|
|
11703
|
-
},
|
|
11704
|
-
{
|
|
11705
|
-
variant: "bordered",
|
|
11706
|
-
color: "success",
|
|
11707
|
-
class: {
|
|
11708
|
-
base: [colorVariants.bordered.success],
|
|
11709
|
-
closeButton: "data-[hover]:bg-success-50"
|
|
11710
|
-
}
|
|
11711
|
-
},
|
|
11712
|
-
{
|
|
11713
|
-
variant: "bordered",
|
|
11714
|
-
color: "warning",
|
|
11715
|
-
class: {
|
|
11716
|
-
base: [colorVariants.bordered.warning],
|
|
11717
|
-
closeButton: "data-[hover]:bg-warning-100"
|
|
11718
|
-
}
|
|
11719
|
-
},
|
|
11720
|
-
{
|
|
11721
|
-
variant: "bordered",
|
|
11722
|
-
color: "danger",
|
|
11723
|
-
class: {
|
|
11724
|
-
base: [colorVariants.bordered.danger],
|
|
11725
|
-
closeButton: "data-[hover]:bg-danger-50"
|
|
11726
|
-
}
|
|
11727
|
-
},
|
|
11728
|
-
// flat & bordered & faded
|
|
11729
|
-
{
|
|
11730
|
-
variant: ["flat", "bordered", "faded"],
|
|
11731
|
-
class: {
|
|
11732
|
-
iconWrapper: "shadow-small"
|
|
11733
|
-
}
|
|
11734
|
-
},
|
|
11735
|
-
// flat & faded
|
|
11736
|
-
{
|
|
11737
|
-
variant: ["flat", "faded"],
|
|
11738
|
-
class: {
|
|
11739
|
-
iconWrapper: "shadow-small border-1"
|
|
11740
|
-
}
|
|
11741
|
-
},
|
|
11742
|
-
// bordered & color
|
|
11743
|
-
{
|
|
11744
|
-
variant: "bordered",
|
|
11745
|
-
color: "default",
|
|
11746
|
-
class: {
|
|
11747
|
-
iconWrapper: "bg-default-200 dark:bg-default-100"
|
|
11748
|
-
}
|
|
11749
|
-
},
|
|
11750
|
-
{
|
|
11751
|
-
variant: "bordered",
|
|
11752
|
-
color: "primary",
|
|
11753
|
-
class: {
|
|
11754
|
-
iconWrapper: "bg-primary-100 dark:bg-primary-50"
|
|
11755
|
-
}
|
|
11756
|
-
},
|
|
11757
|
-
{
|
|
11758
|
-
variant: "bordered",
|
|
11759
|
-
color: "secondary",
|
|
11760
|
-
class: {
|
|
11761
|
-
iconWrapper: "bg-secondary-100 dark:bg-secondary-50"
|
|
11762
|
-
}
|
|
11763
|
-
},
|
|
11764
|
-
{
|
|
11765
|
-
variant: "bordered",
|
|
11766
|
-
color: "success",
|
|
11767
|
-
class: {
|
|
11768
|
-
iconWrapper: "bg-success-100 dark:bg-success-50"
|
|
11769
|
-
}
|
|
11770
|
-
},
|
|
11771
|
-
{
|
|
11772
|
-
variant: "bordered",
|
|
11773
|
-
color: "warning",
|
|
11774
|
-
class: {
|
|
11775
|
-
iconWrapper: "bg-warning-100 dark:bg-warning-50"
|
|
11776
|
-
}
|
|
11777
|
-
},
|
|
11778
|
-
{
|
|
11779
|
-
variant: "bordered",
|
|
11780
|
-
color: "danger",
|
|
11781
|
-
class: {
|
|
11782
|
-
iconWrapper: "bg-danger-100 dark:bg-danger-50"
|
|
11783
|
-
}
|
|
11784
|
-
}
|
|
11785
|
-
]
|
|
11785
|
+
radius: "lg",
|
|
11786
|
+
status: "default"
|
|
11787
|
+
}
|
|
11786
11788
|
});
|
|
11789
|
+
var alert = alertVariants;
|
|
11787
11790
|
|
|
11788
11791
|
// src/components/drawer.ts
|
|
11789
11792
|
var drawer = tv({
|
|
@@ -13777,7 +13780,8 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
13777
13780
|
addBase({
|
|
13778
13781
|
[":root, [data-theme]"]: {
|
|
13779
13782
|
...baseStyles(prefix)
|
|
13780
|
-
}
|
|
13783
|
+
},
|
|
13784
|
+
...scrollbarModes
|
|
13781
13785
|
});
|
|
13782
13786
|
addBase({ ...resolved == null ? void 0 : resolved.baseStyles });
|
|
13783
13787
|
addUtilities({ ...resolved == null ? void 0 : resolved.utilities, ...utilities });
|
|
@@ -13905,6 +13909,7 @@ var heroui = (config = {}) => {
|
|
|
13905
13909
|
accordion,
|
|
13906
13910
|
accordionItem,
|
|
13907
13911
|
alert,
|
|
13912
|
+
alertVariants,
|
|
13908
13913
|
autocomplete,
|
|
13909
13914
|
avatar,
|
|
13910
13915
|
avatarGroup,
|
|
@@ -13950,6 +13955,7 @@ var heroui = (config = {}) => {
|
|
|
13950
13955
|
input,
|
|
13951
13956
|
inputOtp,
|
|
13952
13957
|
kbd,
|
|
13958
|
+
labeledDivider,
|
|
13953
13959
|
lightLayout,
|
|
13954
13960
|
link,
|
|
13955
13961
|
linkAnchorClasses,
|