@nextui-org/theme 2.2.11 → 2.3.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-LSQXJEPE.mjs → chunk-2ODFPLXN.mjs} +22 -22
- package/dist/{chunk-TA7PDZUG.mjs → chunk-2TAKWWRG.mjs} +1 -1
- package/dist/chunk-3XDFZGUJ.mjs +216 -0
- package/dist/{chunk-3XVMTUU7.mjs → chunk-46U6G7UJ.mjs} +2 -2
- package/dist/{chunk-MP2JYSMR.mjs → chunk-5VB7JNVX.mjs} +2 -2
- package/dist/{chunk-JBKBSMXM.mjs → chunk-7IYRK3EV.mjs} +1 -1
- package/dist/{chunk-T2VR4T5R.mjs → chunk-AKXXHKTO.mjs} +1 -1
- package/dist/{chunk-EF6G67MF.mjs → chunk-AN5I7NTT.mjs} +1 -1
- package/dist/{chunk-KPVV2V7V.mjs → chunk-AUN4SP2F.mjs} +1 -1
- package/dist/{chunk-A2DU46QS.mjs → chunk-AXSF7SRE.mjs} +1 -1
- package/dist/{chunk-V4SD44VK.mjs → chunk-BWPOLXFL.mjs} +1 -1
- package/dist/{chunk-AXXUQWWC.mjs → chunk-DBPAK7QN.mjs} +1 -1
- package/dist/{chunk-63NMFZTF.mjs → chunk-EGGHND3C.mjs} +2 -2
- package/dist/chunk-EP7KPCL3.mjs +62 -0
- package/dist/{chunk-GQDFLFNG.mjs → chunk-EQPJSVMB.mjs} +1 -1
- package/dist/{chunk-KUKJUMC3.mjs → chunk-FB2NWPDB.mjs} +4 -4
- package/dist/{chunk-ARYJFX77.mjs → chunk-FJGKW3ZE.mjs} +10 -10
- package/dist/{chunk-BYWORP66.mjs → chunk-GIXI35A3.mjs} +8 -1
- package/dist/{chunk-BJ6IKX32.mjs → chunk-GMZHMFEU.mjs} +1 -1
- package/dist/{chunk-BZCSOIUI.mjs → chunk-GQT3YUX3.mjs} +5 -5
- package/dist/{chunk-XL6AWNU3.mjs → chunk-HHK47K4W.mjs} +2 -2
- package/dist/{chunk-MVG7GLBD.mjs → chunk-HIFLYEAM.mjs} +1 -1
- package/dist/{chunk-22SLLLIZ.mjs → chunk-HNRFZTEX.mjs} +3 -3
- package/dist/{chunk-M3GQ3DWZ.mjs → chunk-HZ7J23VD.mjs} +6 -3
- package/dist/{chunk-C3SML4G4.mjs → chunk-IAHJC7C4.mjs} +1 -1
- package/dist/{chunk-2KK3SUMT.mjs → chunk-IZOPFGDE.mjs} +37 -2
- package/dist/{chunk-PWJWH4MD.mjs → chunk-JE6SPRGQ.mjs} +2 -2
- package/dist/{chunk-7YPXCOW5.mjs → chunk-K6KPB2U5.mjs} +1 -1
- package/dist/{chunk-42JWJWWX.mjs → chunk-KTTXIYK2.mjs} +2 -2
- package/dist/{chunk-C43Y2OOL.mjs → chunk-KZ2I3V4D.mjs} +2 -2
- package/dist/{chunk-JFWA3DGK.mjs → chunk-LCMN7HGG.mjs} +19 -13
- package/dist/{chunk-JYFVXE5E.mjs → chunk-LVAEW6WR.mjs} +3 -3
- package/dist/{chunk-R27WO3A6.mjs → chunk-LWG2RR7B.mjs} +2 -2
- package/dist/{chunk-P73E5YV7.mjs → chunk-N67DL6BW.mjs} +2 -4
- package/dist/{chunk-UDSOWFZE.mjs → chunk-OAHW4NON.mjs} +1 -1
- package/dist/{chunk-WGH4WKVU.mjs → chunk-QFGVVQRM.mjs} +2 -2
- package/dist/{chunk-XAYP4CR3.mjs → chunk-SC2SILVU.mjs} +2 -2
- package/dist/{chunk-QWWVIX6M.mjs → chunk-TNFNBUPA.mjs} +5 -4
- package/dist/{chunk-U6G6SZ26.mjs → chunk-TOQXZATI.mjs} +1 -1
- package/dist/{chunk-3QYYLFUC.mjs → chunk-UQZHSMVI.mjs} +1 -1
- package/dist/{chunk-N2KXC5ZE.mjs → chunk-UWE6H66T.mjs} +1 -1
- package/dist/{chunk-KPI62GDB.mjs → chunk-VKSIQ7SR.mjs} +1 -1
- package/dist/{chunk-F4AOWB64.mjs → chunk-VX7HAPUO.mjs} +1 -1
- package/dist/{chunk-DI2L75XK.mjs → chunk-W5UU3F46.mjs} +5 -0
- package/dist/{chunk-QV3ALCMB.mjs → chunk-XQI5RD6S.mjs} +2 -2
- package/dist/{chunk-3LD7T42T.mjs → chunk-XZMJGJQX.mjs} +4 -4
- package/dist/{chunk-VLE2FQQR.mjs → chunk-YLHKOIZS.mjs} +1 -1
- package/dist/{chunk-XXQSA25O.mjs → chunk-YRDDKYYT.mjs} +6 -3
- package/dist/components/accordion.js +8 -1
- package/dist/components/accordion.mjs +5 -5
- package/dist/components/alert.d.ts +344 -0
- package/dist/components/alert.js +355 -0
- package/dist/components/alert.mjs +12 -0
- package/dist/components/autocomplete.js +8 -1
- package/dist/components/autocomplete.mjs +3 -3
- package/dist/components/avatar.js +13 -6
- package/dist/components/avatar.mjs +5 -5
- package/dist/components/badge.js +13 -6
- package/dist/components/badge.mjs +5 -5
- package/dist/components/breadcrumbs.js +9 -2
- package/dist/components/breadcrumbs.mjs +5 -5
- package/dist/components/button.js +17 -7
- package/dist/components/button.mjs +5 -5
- package/dist/components/calendar.js +8 -1
- package/dist/components/calendar.mjs +5 -5
- package/dist/components/card.js +8 -1
- package/dist/components/card.mjs +5 -5
- package/dist/components/checkbox.js +11 -4
- package/dist/components/checkbox.mjs +5 -5
- package/dist/components/chip.js +13 -6
- package/dist/components/chip.mjs +5 -5
- package/dist/components/circular-progress.js +8 -1
- package/dist/components/circular-progress.mjs +3 -3
- package/dist/components/code.js +13 -6
- package/dist/components/code.mjs +5 -5
- package/dist/components/date-input.js +10 -3
- package/dist/components/date-input.mjs +3 -3
- package/dist/components/date-picker.js +9 -2
- package/dist/components/date-picker.mjs +3 -3
- package/dist/components/divider.js +8 -1
- package/dist/components/divider.mjs +3 -3
- package/dist/components/drawer.d.ts +358 -0
- package/dist/components/drawer.js +130 -0
- package/dist/components/drawer.mjs +8 -0
- package/dist/components/drip.js +8 -1
- package/dist/components/drip.mjs +3 -3
- package/dist/components/dropdown.js +8 -1
- package/dist/components/dropdown.mjs +5 -5
- package/dist/components/image.js +8 -1
- package/dist/components/image.mjs +3 -3
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +367 -55
- package/dist/components/index.mjs +68 -60
- package/dist/components/input.d.ts +7 -0
- package/dist/components/input.js +12 -4
- package/dist/components/input.mjs +5 -5
- package/dist/components/kbd.js +8 -1
- package/dist/components/kbd.mjs +3 -3
- package/dist/components/link.js +8 -1
- package/dist/components/link.mjs +5 -5
- package/dist/components/listbox.js +8 -1
- package/dist/components/listbox.mjs +5 -5
- package/dist/components/menu.js +8 -1
- package/dist/components/menu.mjs +5 -5
- package/dist/components/modal.js +9 -4
- package/dist/components/modal.mjs +5 -5
- package/dist/components/navbar.js +8 -1
- package/dist/components/navbar.mjs +5 -5
- package/dist/components/pagination.js +13 -6
- package/dist/components/pagination.mjs +5 -5
- package/dist/components/popover.js +13 -6
- package/dist/components/popover.mjs +5 -5
- package/dist/components/progress.js +44 -2
- package/dist/components/progress.mjs +3 -3
- package/dist/components/radio.js +10 -3
- package/dist/components/radio.mjs +5 -5
- package/dist/components/scroll-shadow.js +8 -1
- package/dist/components/scroll-shadow.mjs +3 -3
- package/dist/components/select.d.ts +21 -0
- package/dist/components/select.js +13 -3
- package/dist/components/select.mjs +5 -5
- package/dist/components/skeleton.js +8 -1
- package/dist/components/skeleton.mjs +3 -3
- package/dist/components/slider.js +8 -1
- package/dist/components/slider.mjs +5 -5
- package/dist/components/snippet.js +13 -6
- package/dist/components/snippet.mjs +5 -5
- package/dist/components/spacer.js +8 -1
- package/dist/components/spacer.mjs +3 -3
- package/dist/components/spinner.js +8 -1
- package/dist/components/spinner.mjs +3 -3
- package/dist/components/table.js +29 -22
- package/dist/components/table.mjs +5 -5
- package/dist/components/tabs.js +13 -6
- package/dist/components/tabs.mjs +5 -5
- package/dist/components/toggle.js +17 -10
- package/dist/components/toggle.mjs +5 -5
- package/dist/components/user.d.ts +26 -27
- package/dist/components/user.js +8 -1
- package/dist/components/user.mjs +5 -5
- package/dist/index.d.ts +2 -1
- package/dist/index.js +392 -69
- package/dist/index.mjs +74 -66
- package/dist/plugin.js +24 -13
- package/dist/plugin.mjs +4 -4
- package/dist/utilities/custom.d.ts +5 -0
- package/dist/utilities/custom.js +5 -0
- package/dist/utilities/custom.mjs +1 -1
- package/dist/utilities/index.d.ts +5 -0
- package/dist/utilities/index.js +5 -0
- package/dist/utilities/index.mjs +3 -3
- package/dist/utils/cn.js +9 -2
- package/dist/utils/cn.mjs +2 -2
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +14 -7
- package/dist/utils/index.mjs +5 -5
- package/dist/utils/tv.js +8 -1
- package/dist/utils/tv.mjs +2 -2
- package/dist/utils/tw-merge-config.d.ts +17 -3
- package/dist/utils/tw-merge-config.js +8 -1
- package/dist/utils/tw-merge-config.mjs +1 -1
- package/dist/utils/variants.js +5 -5
- package/dist/utils/variants.mjs +1 -1
- package/package.json +3 -12
- /package/dist/{chunk-UVXYPGDZ.mjs → chunk-MA4DKK64.mjs} +0 -0
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __export(src_exports, {
|
|
|
30
30
|
absoluteFullClasses: () => absoluteFullClasses,
|
|
31
31
|
accordion: () => accordion,
|
|
32
32
|
accordionItem: () => accordionItem,
|
|
33
|
+
alert: () => alert,
|
|
33
34
|
autocomplete: () => autocomplete,
|
|
34
35
|
avatar: () => avatar,
|
|
35
36
|
avatarGroup: () => avatarGroup,
|
|
@@ -58,6 +59,7 @@ __export(src_exports, {
|
|
|
58
59
|
dateRangePicker: () => dateRangePicker,
|
|
59
60
|
defaultLayout: () => defaultLayout,
|
|
60
61
|
divider: () => divider,
|
|
62
|
+
drawer: () => drawer,
|
|
61
63
|
drip: () => drip,
|
|
62
64
|
dropdown: () => dropdown,
|
|
63
65
|
dropdownItem: () => dropdownItem,
|
|
@@ -119,7 +121,14 @@ var twMergeConfig = {
|
|
|
119
121
|
classGroups: {
|
|
120
122
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
121
123
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
122
|
-
"bg-image": [
|
|
124
|
+
"bg-image": [
|
|
125
|
+
"bg-stripe-gradient-default",
|
|
126
|
+
"bg-stripe-gradient-primary",
|
|
127
|
+
"bg-stripe-gradient-secondary",
|
|
128
|
+
"bg-stripe-gradient-success",
|
|
129
|
+
"bg-stripe-gradient-warning",
|
|
130
|
+
"bg-stripe-gradient-danger"
|
|
131
|
+
]
|
|
123
132
|
}
|
|
124
133
|
};
|
|
125
134
|
|
|
@@ -223,11 +232,11 @@ var bordered = {
|
|
|
223
232
|
};
|
|
224
233
|
var flat = {
|
|
225
234
|
default: "bg-default/40 text-default-700",
|
|
226
|
-
primary: "bg-primary/20 text-primary-
|
|
227
|
-
secondary: "bg-secondary/20 text-secondary-
|
|
228
|
-
success: "bg-success/20 text-success-
|
|
229
|
-
warning: "bg-warning/20 text-warning-
|
|
230
|
-
danger: "bg-danger/20 text-danger-
|
|
235
|
+
primary: "bg-primary/20 text-primary-600",
|
|
236
|
+
secondary: "bg-secondary/20 text-secondary-600",
|
|
237
|
+
success: "bg-success/20 text-success-700 dark:text-success",
|
|
238
|
+
warning: "bg-warning/20 text-warning-700 dark:text-warning",
|
|
239
|
+
danger: "bg-danger/20 text-danger-600 dark:text-danger-500",
|
|
231
240
|
foreground: "bg-foreground/10 text-foreground"
|
|
232
241
|
};
|
|
233
242
|
var faded = {
|
|
@@ -270,7 +279,7 @@ var colorVariants = {
|
|
|
270
279
|
// src/utils/cn.ts
|
|
271
280
|
var import_clsx = __toESM(require("clsx"));
|
|
272
281
|
var import_tailwind_merge = require("tailwind-merge");
|
|
273
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)(twMergeConfig);
|
|
282
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({ extend: twMergeConfig });
|
|
274
283
|
function cn(...inputs) {
|
|
275
284
|
return twMerge((0, import_clsx.default)(inputs));
|
|
276
285
|
}
|
|
@@ -1008,7 +1017,10 @@ var button = tv({
|
|
|
1008
1017
|
{
|
|
1009
1018
|
variant: "ghost",
|
|
1010
1019
|
color: "danger",
|
|
1011
|
-
class: [
|
|
1020
|
+
class: [
|
|
1021
|
+
colorVariants.ghost.danger,
|
|
1022
|
+
"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"
|
|
1023
|
+
]
|
|
1012
1024
|
},
|
|
1013
1025
|
{
|
|
1014
1026
|
isInGroup: true,
|
|
@@ -2636,7 +2648,7 @@ var checkbox = tv({
|
|
|
2636
2648
|
size: {
|
|
2637
2649
|
sm: {
|
|
2638
2650
|
wrapper: [
|
|
2639
|
-
"w-4 h-4
|
|
2651
|
+
"w-4 h-4 me-2",
|
|
2640
2652
|
"rounded-[calc(theme(borderRadius.medium)*0.5)]",
|
|
2641
2653
|
"before:rounded-[calc(theme(borderRadius.medium)*0.5)]",
|
|
2642
2654
|
"after:rounded-[calc(theme(borderRadius.medium)*0.5)]"
|
|
@@ -2646,7 +2658,7 @@ var checkbox = tv({
|
|
|
2646
2658
|
},
|
|
2647
2659
|
md: {
|
|
2648
2660
|
wrapper: [
|
|
2649
|
-
"w-5 h-5
|
|
2661
|
+
"w-5 h-5 me-2",
|
|
2650
2662
|
"rounded-[calc(theme(borderRadius.medium)*0.6)]",
|
|
2651
2663
|
"before:rounded-[calc(theme(borderRadius.medium)*0.6)]",
|
|
2652
2664
|
"after:rounded-[calc(theme(borderRadius.medium)*0.6)]"
|
|
@@ -2656,7 +2668,7 @@ var checkbox = tv({
|
|
|
2656
2668
|
},
|
|
2657
2669
|
lg: {
|
|
2658
2670
|
wrapper: [
|
|
2659
|
-
"w-6 h-6
|
|
2671
|
+
"w-6 h-6 me-2",
|
|
2660
2672
|
"rounded-[calc(theme(borderRadius.medium)*0.7)]",
|
|
2661
2673
|
"before:rounded-[calc(theme(borderRadius.medium)*0.7)]",
|
|
2662
2674
|
"after:rounded-[calc(theme(borderRadius.medium)*0.7)]"
|
|
@@ -2853,14 +2865,14 @@ var radio = tv({
|
|
|
2853
2865
|
md: {
|
|
2854
2866
|
wrapper: "w-5 h-5",
|
|
2855
2867
|
control: "w-2 h-2",
|
|
2856
|
-
labelWrapper: "
|
|
2868
|
+
labelWrapper: "ms-2",
|
|
2857
2869
|
label: "text-medium",
|
|
2858
2870
|
description: "text-small"
|
|
2859
2871
|
},
|
|
2860
2872
|
lg: {
|
|
2861
2873
|
wrapper: "w-6 h-6",
|
|
2862
2874
|
control: "w-2.5 h-2.5",
|
|
2863
|
-
labelWrapper: "
|
|
2875
|
+
labelWrapper: "ms-2",
|
|
2864
2876
|
label: "text-large",
|
|
2865
2877
|
description: "text-medium"
|
|
2866
2878
|
}
|
|
@@ -3354,10 +3366,10 @@ var toggle = tv({
|
|
|
3354
3366
|
"rounded-full",
|
|
3355
3367
|
"origin-right"
|
|
3356
3368
|
],
|
|
3357
|
-
startContent: "z-0 absolute
|
|
3358
|
-
endContent: "z-0 absolute
|
|
3369
|
+
startContent: "z-0 absolute start-1.5 text-current",
|
|
3370
|
+
endContent: "z-0 absolute end-1.5 text-default-600",
|
|
3359
3371
|
thumbIcon: "text-black",
|
|
3360
|
-
label: "relative text-foreground select-none"
|
|
3372
|
+
label: "relative text-foreground select-none ms-2"
|
|
3361
3373
|
},
|
|
3362
3374
|
variants: {
|
|
3363
3375
|
color: {
|
|
@@ -3400,30 +3412,30 @@ var toggle = tv({
|
|
|
3400
3412
|
},
|
|
3401
3413
|
size: {
|
|
3402
3414
|
sm: {
|
|
3403
|
-
wrapper: "w-10 h-6
|
|
3415
|
+
wrapper: "w-10 h-6",
|
|
3404
3416
|
thumb: [
|
|
3405
3417
|
"w-4 h-4 text-tiny",
|
|
3406
|
-
"group-data-[selected=true]:
|
|
3418
|
+
"group-data-[selected=true]:ms-4"
|
|
3407
3419
|
],
|
|
3408
3420
|
endContent: "text-tiny",
|
|
3409
3421
|
startContent: "text-tiny",
|
|
3410
3422
|
label: "text-small"
|
|
3411
3423
|
},
|
|
3412
3424
|
md: {
|
|
3413
|
-
wrapper: "w-12 h-7
|
|
3425
|
+
wrapper: "w-12 h-7",
|
|
3414
3426
|
thumb: [
|
|
3415
3427
|
"w-5 h-5 text-small",
|
|
3416
|
-
"group-data-[selected=true]:
|
|
3428
|
+
"group-data-[selected=true]:ms-5"
|
|
3417
3429
|
],
|
|
3418
3430
|
endContent: "text-small",
|
|
3419
3431
|
startContent: "text-small",
|
|
3420
3432
|
label: "text-medium"
|
|
3421
3433
|
},
|
|
3422
3434
|
lg: {
|
|
3423
|
-
wrapper: "w-14 h-8
|
|
3435
|
+
wrapper: "w-14 h-8",
|
|
3424
3436
|
thumb: [
|
|
3425
3437
|
"w-6 h-6 text-medium",
|
|
3426
|
-
"group-data-[selected=true]:
|
|
3438
|
+
"group-data-[selected=true]:ms-6"
|
|
3427
3439
|
],
|
|
3428
3440
|
endContent: "text-medium",
|
|
3429
3441
|
startContent: "text-medium",
|
|
@@ -3648,7 +3660,7 @@ var progress = tv(
|
|
|
3648
3660
|
},
|
|
3649
3661
|
isStriped: {
|
|
3650
3662
|
true: {
|
|
3651
|
-
indicator: "bg-stripe-gradient bg-
|
|
3663
|
+
indicator: "bg-stripe-gradient-default bg-stripe-size"
|
|
3652
3664
|
}
|
|
3653
3665
|
},
|
|
3654
3666
|
isIndeterminate: {
|
|
@@ -3683,6 +3695,41 @@ var progress = tv(
|
|
|
3683
3695
|
class: {
|
|
3684
3696
|
indicator: "!transition-none motion-reduce:transition-none"
|
|
3685
3697
|
}
|
|
3698
|
+
},
|
|
3699
|
+
{
|
|
3700
|
+
color: "primary",
|
|
3701
|
+
isStriped: true,
|
|
3702
|
+
class: {
|
|
3703
|
+
indicator: "bg-stripe-gradient-primary bg-stripe-size"
|
|
3704
|
+
}
|
|
3705
|
+
},
|
|
3706
|
+
{
|
|
3707
|
+
color: "secondary",
|
|
3708
|
+
isStriped: true,
|
|
3709
|
+
class: {
|
|
3710
|
+
indicator: "bg-stripe-gradient-secondary bg-stripe-size"
|
|
3711
|
+
}
|
|
3712
|
+
},
|
|
3713
|
+
{
|
|
3714
|
+
color: "success",
|
|
3715
|
+
isStriped: true,
|
|
3716
|
+
class: {
|
|
3717
|
+
indicator: "bg-stripe-gradient-success bg-stripe-size"
|
|
3718
|
+
}
|
|
3719
|
+
},
|
|
3720
|
+
{
|
|
3721
|
+
color: "warning",
|
|
3722
|
+
isStriped: true,
|
|
3723
|
+
class: {
|
|
3724
|
+
indicator: "bg-stripe-gradient-warning bg-stripe-size"
|
|
3725
|
+
}
|
|
3726
|
+
},
|
|
3727
|
+
{
|
|
3728
|
+
color: "danger",
|
|
3729
|
+
isStriped: true,
|
|
3730
|
+
class: {
|
|
3731
|
+
indicator: "bg-stripe-gradient-danger bg-stripe-size"
|
|
3732
|
+
}
|
|
3686
3733
|
}
|
|
3687
3734
|
]
|
|
3688
3735
|
},
|
|
@@ -3935,11 +3982,12 @@ var input = tv({
|
|
|
3935
3982
|
fullWidth: {
|
|
3936
3983
|
true: {
|
|
3937
3984
|
base: "w-full"
|
|
3938
|
-
}
|
|
3985
|
+
},
|
|
3986
|
+
false: {}
|
|
3939
3987
|
},
|
|
3940
3988
|
isClearable: {
|
|
3941
3989
|
true: {
|
|
3942
|
-
input: "peer
|
|
3990
|
+
input: "peer pe-6 input-search-cancel-button-none",
|
|
3943
3991
|
clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
|
|
3944
3992
|
}
|
|
3945
3993
|
},
|
|
@@ -3958,7 +4006,7 @@ var input = tv({
|
|
|
3958
4006
|
},
|
|
3959
4007
|
isRequired: {
|
|
3960
4008
|
true: {
|
|
3961
|
-
label: "after:content-['*'] after:text-danger after:
|
|
4009
|
+
label: "after:content-['*'] after:text-danger after:ms-0.5"
|
|
3962
4010
|
}
|
|
3963
4011
|
},
|
|
3964
4012
|
isMultiline: {
|
|
@@ -5107,9 +5155,7 @@ var modal = tv({
|
|
|
5107
5155
|
"outline-none",
|
|
5108
5156
|
"select-none",
|
|
5109
5157
|
"top-1",
|
|
5110
|
-
"
|
|
5111
|
-
"rtl:left-1",
|
|
5112
|
-
"rtl:right-[unset]",
|
|
5158
|
+
"end-1",
|
|
5113
5159
|
"p-2",
|
|
5114
5160
|
"text-foreground-500",
|
|
5115
5161
|
"rounded-full",
|
|
@@ -5460,9 +5506,9 @@ var table = tv({
|
|
|
5460
5506
|
table: "min-w-full h-auto",
|
|
5461
5507
|
thead: "[&>tr]:first:rounded-lg",
|
|
5462
5508
|
tbody: "",
|
|
5463
|
-
tr: ["group", "outline-none", ...dataFocusVisibleClasses],
|
|
5509
|
+
tr: ["group/tr", "outline-none", ...dataFocusVisibleClasses],
|
|
5464
5510
|
th: [
|
|
5465
|
-
"group",
|
|
5511
|
+
"group/th",
|
|
5466
5512
|
"px-3",
|
|
5467
5513
|
"h-10",
|
|
5468
5514
|
"text-start",
|
|
@@ -5497,8 +5543,8 @@ var table = tv({
|
|
|
5497
5543
|
"before:inset-0",
|
|
5498
5544
|
"before:opacity-0",
|
|
5499
5545
|
"data-[selected=true]:before:opacity-100",
|
|
5500
|
-
"group-data-[disabled=true]:text-foreground-300",
|
|
5501
|
-
"group-data-[disabled=true]:cursor-not-allowed"
|
|
5546
|
+
"group-data-[disabled=true]/tr:text-foreground-300",
|
|
5547
|
+
"group-data-[disabled=true]/tr:cursor-not-allowed"
|
|
5502
5548
|
],
|
|
5503
5549
|
tfoot: "",
|
|
5504
5550
|
sortIcon: [
|
|
@@ -5509,7 +5555,7 @@ var table = tv({
|
|
|
5509
5555
|
"inline-block",
|
|
5510
5556
|
"transition-transform-opacity",
|
|
5511
5557
|
"data-[visible=true]:opacity-100",
|
|
5512
|
-
"group-data-[hover=true]:opacity-100",
|
|
5558
|
+
"group-data-[hover=true]/th:opacity-100",
|
|
5513
5559
|
"data-[direction=ascending]:rotate-180"
|
|
5514
5560
|
],
|
|
5515
5561
|
emptyWrapper: "text-foreground-400 align-middle text-center h-40",
|
|
@@ -5580,9 +5626,9 @@ var table = tv({
|
|
|
5580
5626
|
isStriped: {
|
|
5581
5627
|
true: {
|
|
5582
5628
|
td: [
|
|
5583
|
-
"group-data-[odd=true]:before:bg-default-100",
|
|
5584
|
-
"group-data-[odd=true]:before:opacity-100",
|
|
5585
|
-
"group-data-[odd=true]:before:-z-10"
|
|
5629
|
+
"group-data-[odd=true]/tr:before:bg-default-100",
|
|
5630
|
+
"group-data-[odd=true]/tr:before:opacity-100",
|
|
5631
|
+
"group-data-[odd=true]/tr:before:-z-10"
|
|
5586
5632
|
]
|
|
5587
5633
|
}
|
|
5588
5634
|
},
|
|
@@ -5601,19 +5647,19 @@ var table = tv({
|
|
|
5601
5647
|
true: {
|
|
5602
5648
|
tr: "cursor-default",
|
|
5603
5649
|
td: [
|
|
5604
|
-
"group-aria-[selected=false]:group-data-[hover=true]:before:bg-default-100",
|
|
5605
|
-
"group-aria-[selected=false]:group-data-[hover=true]:before:opacity-70"
|
|
5650
|
+
"group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:bg-default-100",
|
|
5651
|
+
"group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:opacity-70"
|
|
5606
5652
|
]
|
|
5607
5653
|
}
|
|
5608
5654
|
},
|
|
5609
5655
|
isMultiSelectable: {
|
|
5610
5656
|
true: {
|
|
5611
5657
|
td: [
|
|
5612
|
-
"group-data-[first=true]:first:before:rounded-ts-lg",
|
|
5613
|
-
"group-data-[first=true]:last:before:rounded-te-lg",
|
|
5614
|
-
"group-data-[middle=true]:before:rounded-none",
|
|
5615
|
-
"group-data-[last=true]:first:before:rounded-bs-lg",
|
|
5616
|
-
"group-data-[last=true]:last:before:rounded-be-lg"
|
|
5658
|
+
"group-data-[first=true]/tr:first:before:rounded-ts-lg",
|
|
5659
|
+
"group-data-[first=true]/tr:last:before:rounded-te-lg",
|
|
5660
|
+
"group-data-[middle=true]/tr:before:rounded-none",
|
|
5661
|
+
"group-data-[last=true]/tr:first:before:rounded-bs-lg",
|
|
5662
|
+
"group-data-[last=true]/tr:last:before:rounded-be-lg"
|
|
5617
5663
|
]
|
|
5618
5664
|
},
|
|
5619
5665
|
false: {
|
|
@@ -5658,42 +5704,42 @@ var table = tv({
|
|
|
5658
5704
|
isStriped: true,
|
|
5659
5705
|
color: "default",
|
|
5660
5706
|
class: {
|
|
5661
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-default/60"
|
|
5707
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-default/60"
|
|
5662
5708
|
}
|
|
5663
5709
|
},
|
|
5664
5710
|
{
|
|
5665
5711
|
isStriped: true,
|
|
5666
5712
|
color: "primary",
|
|
5667
5713
|
class: {
|
|
5668
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-primary/20"
|
|
5714
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-primary/20"
|
|
5669
5715
|
}
|
|
5670
5716
|
},
|
|
5671
5717
|
{
|
|
5672
5718
|
isStriped: true,
|
|
5673
5719
|
color: "secondary",
|
|
5674
5720
|
class: {
|
|
5675
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-secondary/20"
|
|
5721
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-secondary/20"
|
|
5676
5722
|
}
|
|
5677
5723
|
},
|
|
5678
5724
|
{
|
|
5679
5725
|
isStriped: true,
|
|
5680
5726
|
color: "success",
|
|
5681
5727
|
class: {
|
|
5682
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-success/20"
|
|
5728
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-success/20"
|
|
5683
5729
|
}
|
|
5684
5730
|
},
|
|
5685
5731
|
{
|
|
5686
5732
|
isStriped: true,
|
|
5687
5733
|
color: "warning",
|
|
5688
5734
|
class: {
|
|
5689
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-warning/20"
|
|
5735
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-warning/20"
|
|
5690
5736
|
}
|
|
5691
5737
|
},
|
|
5692
5738
|
{
|
|
5693
5739
|
isStriped: true,
|
|
5694
5740
|
color: "danger",
|
|
5695
5741
|
class: {
|
|
5696
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-danger/20"
|
|
5742
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-danger/20"
|
|
5697
5743
|
}
|
|
5698
5744
|
}
|
|
5699
5745
|
]
|
|
@@ -6189,7 +6235,7 @@ var skeleton = tv({
|
|
|
6189
6235
|
// src/components/select.ts
|
|
6190
6236
|
var select = tv({
|
|
6191
6237
|
slots: {
|
|
6192
|
-
base: ["group inline-flex flex-col relative
|
|
6238
|
+
base: ["group inline-flex flex-col relative"],
|
|
6193
6239
|
label: [
|
|
6194
6240
|
"block",
|
|
6195
6241
|
"absolute",
|
|
@@ -6206,7 +6252,7 @@ var select = tv({
|
|
|
6206
6252
|
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",
|
|
6207
6253
|
selectorIcon: "absolute end-3 w-4 h-4",
|
|
6208
6254
|
spinner: "absolute end-3",
|
|
6209
|
-
value: ["text-foreground-500", "font-normal", "w-full", "text-
|
|
6255
|
+
value: ["text-foreground-500", "font-normal", "w-full", "text-start"],
|
|
6210
6256
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
6211
6257
|
listbox: "",
|
|
6212
6258
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -6327,6 +6373,9 @@ var select = tv({
|
|
|
6327
6373
|
fullWidth: {
|
|
6328
6374
|
true: {
|
|
6329
6375
|
base: "w-full"
|
|
6376
|
+
},
|
|
6377
|
+
false: {
|
|
6378
|
+
base: "min-w-40"
|
|
6330
6379
|
}
|
|
6331
6380
|
},
|
|
6332
6381
|
isDisabled: {
|
|
@@ -7765,7 +7814,7 @@ var breadcrumbItem = tv({
|
|
|
7765
7814
|
"tap-highlight-transparent",
|
|
7766
7815
|
...dataFocusVisibleClasses
|
|
7767
7816
|
],
|
|
7768
|
-
separator: "text-default-400 px-1"
|
|
7817
|
+
separator: "text-default-400 px-1 rtl:rotate-180"
|
|
7769
7818
|
},
|
|
7770
7819
|
variants: {
|
|
7771
7820
|
color: {
|
|
@@ -8576,13 +8625,13 @@ var dateInput = tv({
|
|
|
8576
8625
|
outside: {
|
|
8577
8626
|
base: "flex flex-col data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+8px)] gap-y-1.5",
|
|
8578
8627
|
label: "w-full text-foreground",
|
|
8579
|
-
helperWrapper: "absolute top-[calc(100%_+_2px)]
|
|
8628
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
|
|
8580
8629
|
},
|
|
8581
8630
|
"outside-left": {
|
|
8582
8631
|
base: "flex-row items-center data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+_8px)] gap-x-2 flex-nowrap",
|
|
8583
8632
|
label: "relative text-foreground",
|
|
8584
8633
|
inputWrapper: "relative flex-1",
|
|
8585
|
-
helperWrapper: "absolute top-[calc(100%_+_2px)]
|
|
8634
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
|
|
8586
8635
|
},
|
|
8587
8636
|
inside: {
|
|
8588
8637
|
label: "w-full text-tiny cursor-text",
|
|
@@ -8813,7 +8862,7 @@ var dateInput = tv({
|
|
|
8813
8862
|
var datePicker = tv({
|
|
8814
8863
|
slots: {
|
|
8815
8864
|
base: "group w-full",
|
|
8816
|
-
selectorButton: "-
|
|
8865
|
+
selectorButton: "-mx-2 text-inherit",
|
|
8817
8866
|
selectorIcon: "text-lg text-inherit pointer-events-none flex-shrink-0",
|
|
8818
8867
|
popoverContent: "p-0 w-full",
|
|
8819
8868
|
calendar: "w-[calc(var(--visible-months)_*_var(--calendar-width))] shadow-none",
|
|
@@ -8832,6 +8881,267 @@ var dateRangePicker = tv({
|
|
|
8832
8881
|
}
|
|
8833
8882
|
});
|
|
8834
8883
|
|
|
8884
|
+
// src/components/alert.ts
|
|
8885
|
+
var alert = tv({
|
|
8886
|
+
slots: {
|
|
8887
|
+
base: "flex flex-row w-full flex-grow min-h-17 max-h-full py-3 px-4",
|
|
8888
|
+
mainWrapper: [
|
|
8889
|
+
"flex-grow min-h-11 max-h-full ms-2 flex flex-col box-border items-start text-inherit"
|
|
8890
|
+
],
|
|
8891
|
+
title: "w-full text-medium font-normal block min-h-6 max-h-full text-inherit",
|
|
8892
|
+
description: "text-small font-normal min-h-5 max-h-full text-inherit",
|
|
8893
|
+
closeButton: "relative text-inherit",
|
|
8894
|
+
alertIcon: "fill-current w-6"
|
|
8895
|
+
},
|
|
8896
|
+
variants: {
|
|
8897
|
+
color: {
|
|
8898
|
+
default: {},
|
|
8899
|
+
primary: {},
|
|
8900
|
+
secondary: {},
|
|
8901
|
+
success: {},
|
|
8902
|
+
warning: {},
|
|
8903
|
+
danger: {}
|
|
8904
|
+
},
|
|
8905
|
+
variant: {
|
|
8906
|
+
solid: {},
|
|
8907
|
+
flat: {},
|
|
8908
|
+
bordered: {
|
|
8909
|
+
base: "border-medium bg-transparent"
|
|
8910
|
+
}
|
|
8911
|
+
},
|
|
8912
|
+
radius: {
|
|
8913
|
+
none: {
|
|
8914
|
+
base: "rounded-none"
|
|
8915
|
+
},
|
|
8916
|
+
sm: {
|
|
8917
|
+
base: "rounded-small"
|
|
8918
|
+
},
|
|
8919
|
+
md: {
|
|
8920
|
+
base: "rounded-medium"
|
|
8921
|
+
},
|
|
8922
|
+
lg: {
|
|
8923
|
+
base: "rounded-large"
|
|
8924
|
+
},
|
|
8925
|
+
full: {
|
|
8926
|
+
base: "rounded-full"
|
|
8927
|
+
}
|
|
8928
|
+
},
|
|
8929
|
+
hasDescription: {
|
|
8930
|
+
true: {
|
|
8931
|
+
alertIcon: "mt-0.5"
|
|
8932
|
+
},
|
|
8933
|
+
false: {
|
|
8934
|
+
base: "items-center",
|
|
8935
|
+
mainWrapper: "justify-center"
|
|
8936
|
+
}
|
|
8937
|
+
}
|
|
8938
|
+
},
|
|
8939
|
+
defaultVariants: {
|
|
8940
|
+
color: "default",
|
|
8941
|
+
variant: "flat",
|
|
8942
|
+
radius: "md"
|
|
8943
|
+
},
|
|
8944
|
+
compoundVariants: [
|
|
8945
|
+
{
|
|
8946
|
+
variant: "solid",
|
|
8947
|
+
color: "default",
|
|
8948
|
+
class: {
|
|
8949
|
+
base: colorVariants.solid.default,
|
|
8950
|
+
closeButton: "data-[hover]:bg-default-100",
|
|
8951
|
+
alertIcon: "text-default-foreground"
|
|
8952
|
+
}
|
|
8953
|
+
},
|
|
8954
|
+
{
|
|
8955
|
+
variant: "solid",
|
|
8956
|
+
color: "primary",
|
|
8957
|
+
class: {
|
|
8958
|
+
base: colorVariants.solid.primary
|
|
8959
|
+
}
|
|
8960
|
+
},
|
|
8961
|
+
{
|
|
8962
|
+
variant: "solid",
|
|
8963
|
+
color: "secondary",
|
|
8964
|
+
class: {
|
|
8965
|
+
base: colorVariants.solid.secondary
|
|
8966
|
+
}
|
|
8967
|
+
},
|
|
8968
|
+
{
|
|
8969
|
+
variant: "solid",
|
|
8970
|
+
color: "success",
|
|
8971
|
+
class: {
|
|
8972
|
+
base: colorVariants.solid.success
|
|
8973
|
+
}
|
|
8974
|
+
},
|
|
8975
|
+
{
|
|
8976
|
+
variant: "solid",
|
|
8977
|
+
color: "warning",
|
|
8978
|
+
class: {
|
|
8979
|
+
base: colorVariants.solid.warning
|
|
8980
|
+
}
|
|
8981
|
+
},
|
|
8982
|
+
{
|
|
8983
|
+
variant: "solid",
|
|
8984
|
+
color: "danger",
|
|
8985
|
+
class: {
|
|
8986
|
+
base: colorVariants.solid.danger
|
|
8987
|
+
}
|
|
8988
|
+
},
|
|
8989
|
+
{
|
|
8990
|
+
variant: "flat",
|
|
8991
|
+
color: "default",
|
|
8992
|
+
class: {
|
|
8993
|
+
base: [colorVariants.flat.default, "text-default-foreground"],
|
|
8994
|
+
description: "text-default-600",
|
|
8995
|
+
closeButton: "text-default-400"
|
|
8996
|
+
}
|
|
8997
|
+
},
|
|
8998
|
+
{
|
|
8999
|
+
variant: "flat",
|
|
9000
|
+
color: "primary",
|
|
9001
|
+
class: {
|
|
9002
|
+
base: colorVariants.flat.primary,
|
|
9003
|
+
closeButton: "text-primary-400 data-[hover]:bg-primary-100"
|
|
9004
|
+
}
|
|
9005
|
+
},
|
|
9006
|
+
{
|
|
9007
|
+
variant: "flat",
|
|
9008
|
+
color: "secondary",
|
|
9009
|
+
class: {
|
|
9010
|
+
base: colorVariants.flat.secondary,
|
|
9011
|
+
closeButton: "text-secondary-400 data-[hover]:bg-secondary-100"
|
|
9012
|
+
}
|
|
9013
|
+
},
|
|
9014
|
+
{
|
|
9015
|
+
variant: "flat",
|
|
9016
|
+
color: "success",
|
|
9017
|
+
class: {
|
|
9018
|
+
base: colorVariants.flat.success,
|
|
9019
|
+
closeButton: "text-success-400 data-[hover]:bg-success-100"
|
|
9020
|
+
}
|
|
9021
|
+
},
|
|
9022
|
+
{
|
|
9023
|
+
variant: "flat",
|
|
9024
|
+
color: "warning",
|
|
9025
|
+
class: {
|
|
9026
|
+
base: colorVariants.flat.warning,
|
|
9027
|
+
closeButton: "text-warning-500 data-[hover]:bg-warning-200"
|
|
9028
|
+
}
|
|
9029
|
+
},
|
|
9030
|
+
{
|
|
9031
|
+
variant: "flat",
|
|
9032
|
+
color: "danger",
|
|
9033
|
+
class: {
|
|
9034
|
+
base: colorVariants.flat.danger,
|
|
9035
|
+
closeButton: "text-danger-400 data-[hover]:bg-danger-100"
|
|
9036
|
+
}
|
|
9037
|
+
},
|
|
9038
|
+
{
|
|
9039
|
+
variant: "bordered",
|
|
9040
|
+
color: "default",
|
|
9041
|
+
class: {
|
|
9042
|
+
base: [colorVariants.bordered.default],
|
|
9043
|
+
description: "text-default-600",
|
|
9044
|
+
closeButton: "text-default-400"
|
|
9045
|
+
}
|
|
9046
|
+
},
|
|
9047
|
+
{
|
|
9048
|
+
variant: "bordered",
|
|
9049
|
+
color: "primary",
|
|
9050
|
+
class: {
|
|
9051
|
+
base: [colorVariants.bordered.primary],
|
|
9052
|
+
closeButton: "data-[hover]:bg-primary-50"
|
|
9053
|
+
}
|
|
9054
|
+
},
|
|
9055
|
+
{
|
|
9056
|
+
variant: "bordered",
|
|
9057
|
+
color: "secondary",
|
|
9058
|
+
class: {
|
|
9059
|
+
base: [colorVariants.bordered.secondary],
|
|
9060
|
+
closeButton: "data-[hover]:bg-secondary-50"
|
|
9061
|
+
}
|
|
9062
|
+
},
|
|
9063
|
+
{
|
|
9064
|
+
variant: "bordered",
|
|
9065
|
+
color: "success",
|
|
9066
|
+
class: {
|
|
9067
|
+
base: [colorVariants.bordered.success],
|
|
9068
|
+
closeButton: "data-[hover]:bg-success-50"
|
|
9069
|
+
}
|
|
9070
|
+
},
|
|
9071
|
+
{
|
|
9072
|
+
variant: "bordered",
|
|
9073
|
+
color: "warning",
|
|
9074
|
+
class: {
|
|
9075
|
+
base: [colorVariants.bordered.warning],
|
|
9076
|
+
closeButton: "data-[hover]:bg-warning-100"
|
|
9077
|
+
}
|
|
9078
|
+
},
|
|
9079
|
+
{
|
|
9080
|
+
variant: "bordered",
|
|
9081
|
+
color: "danger",
|
|
9082
|
+
class: {
|
|
9083
|
+
base: [colorVariants.bordered.danger],
|
|
9084
|
+
closeButton: "data-[hover]:bg-danger-50"
|
|
9085
|
+
}
|
|
9086
|
+
}
|
|
9087
|
+
]
|
|
9088
|
+
});
|
|
9089
|
+
|
|
9090
|
+
// src/components/drawer.ts
|
|
9091
|
+
var drawer = tv({
|
|
9092
|
+
slots: {
|
|
9093
|
+
base: ["absolute", "m-0", "sm:m-0", "overflow-y-auto"]
|
|
9094
|
+
},
|
|
9095
|
+
variants: {
|
|
9096
|
+
size: {
|
|
9097
|
+
xs: {
|
|
9098
|
+
base: "max-w-xs max-h-[20rem]"
|
|
9099
|
+
},
|
|
9100
|
+
sm: {
|
|
9101
|
+
base: "max-w-sm max-h-[24rem]"
|
|
9102
|
+
},
|
|
9103
|
+
md: {
|
|
9104
|
+
base: "max-w-md max-h-[28rem]"
|
|
9105
|
+
},
|
|
9106
|
+
lg: {
|
|
9107
|
+
base: "max-w-lg max-h-[32rem]"
|
|
9108
|
+
},
|
|
9109
|
+
xl: {
|
|
9110
|
+
base: "max-w-xl max-h-[36rem]"
|
|
9111
|
+
},
|
|
9112
|
+
"2xl": {
|
|
9113
|
+
base: "max-w-2xl max-h-[42rem]"
|
|
9114
|
+
},
|
|
9115
|
+
"3xl": {
|
|
9116
|
+
base: "max-w-3xl max-h-[48rem]"
|
|
9117
|
+
},
|
|
9118
|
+
"4xl": {
|
|
9119
|
+
base: "max-w-4xl max-h-[56rem]"
|
|
9120
|
+
},
|
|
9121
|
+
"5xl": {
|
|
9122
|
+
base: "max-w-5xl max-h-[64rem]"
|
|
9123
|
+
},
|
|
9124
|
+
full: {
|
|
9125
|
+
base: "max-w-full max-h-full h-[100dvh] !rounded-none"
|
|
9126
|
+
}
|
|
9127
|
+
},
|
|
9128
|
+
placement: {
|
|
9129
|
+
top: {
|
|
9130
|
+
base: "inset-x-0 top-0 max-w-[none] rounded-t-none"
|
|
9131
|
+
},
|
|
9132
|
+
right: {
|
|
9133
|
+
base: "inset-y-0 right-0 max-h-[none] rounded-r-none"
|
|
9134
|
+
},
|
|
9135
|
+
bottom: {
|
|
9136
|
+
base: "inset-x-0 bottom-0 max-w-[none] rounded-b-none"
|
|
9137
|
+
},
|
|
9138
|
+
left: {
|
|
9139
|
+
base: "inset-y-0 left-0 max-h-[none] rounded-l-none"
|
|
9140
|
+
}
|
|
9141
|
+
}
|
|
9142
|
+
}
|
|
9143
|
+
});
|
|
9144
|
+
|
|
8835
9145
|
// src/colors/blue.ts
|
|
8836
9146
|
var blue = {
|
|
8837
9147
|
50: "#e6f1fe",
|
|
@@ -9148,12 +9458,8 @@ var colors = {
|
|
|
9148
9458
|
// src/plugin.ts
|
|
9149
9459
|
var import_color = __toESM(require("color"));
|
|
9150
9460
|
var import_plugin = __toESM(require("tailwindcss/plugin.js"));
|
|
9151
|
-
var import_lodash = __toESM(require("lodash.get"));
|
|
9152
|
-
var import_lodash2 = __toESM(require("lodash.omit"));
|
|
9153
|
-
var import_lodash3 = __toESM(require("lodash.foreach"));
|
|
9154
|
-
var import_lodash4 = __toESM(require("lodash.mapkeys"));
|
|
9155
|
-
var import_lodash5 = __toESM(require("lodash.kebabcase"));
|
|
9156
9461
|
var import_deepmerge = __toESM(require("deepmerge"));
|
|
9462
|
+
var import_shared_utils = require("@nextui-org/shared-utils");
|
|
9157
9463
|
|
|
9158
9464
|
// src/animations/index.ts
|
|
9159
9465
|
var animations = {
|
|
@@ -9297,6 +9603,11 @@ var custom_default = {
|
|
|
9297
9603
|
},
|
|
9298
9604
|
".tap-highlight-transparent": {
|
|
9299
9605
|
"-webkit-tap-highlight-color": "transparent"
|
|
9606
|
+
},
|
|
9607
|
+
".input-search-cancel-button-none": {
|
|
9608
|
+
"&::-webkit-search-cancel-button": {
|
|
9609
|
+
"-webkit-appearance": "none"
|
|
9610
|
+
}
|
|
9300
9611
|
}
|
|
9301
9612
|
};
|
|
9302
9613
|
|
|
@@ -9391,7 +9702,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
9391
9702
|
"color-scheme": scheme
|
|
9392
9703
|
} : {};
|
|
9393
9704
|
const flatColors = flattenThemeObject(colors2);
|
|
9394
|
-
const flatLayout = layout ? (0,
|
|
9705
|
+
const flatLayout = layout ? (0, import_shared_utils.mapKeys)(layout, (_, key) => (0, import_shared_utils.kebabCase)(key)) : {};
|
|
9395
9706
|
resolved.variants.push({
|
|
9396
9707
|
name: themeName,
|
|
9397
9708
|
definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
|
|
@@ -9441,6 +9752,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
9441
9752
|
};
|
|
9442
9753
|
var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
9443
9754
|
const resolved = resolveConfig(themes, defaultTheme, prefix);
|
|
9755
|
+
const createStripeGradient = (stripeColor, backgroundColor) => `linear-gradient(45deg, hsl(var(--${prefix}-${stripeColor})) 25%, hsl(var(--${prefix}-${backgroundColor})) 25%, hsl(var(--${prefix}-${backgroundColor})) 50%, hsl(var(--${prefix}-${stripeColor})) 50%, hsl(var(--${prefix}-${stripeColor})) 75%, hsl(var(--${prefix}-${backgroundColor})) 75%, hsl(var(--${prefix}-${backgroundColor})))`;
|
|
9444
9756
|
return (0, import_plugin.default)(
|
|
9445
9757
|
({ addBase, addUtilities, addVariant }) => {
|
|
9446
9758
|
addBase({
|
|
@@ -9499,8 +9811,16 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
9499
9811
|
medium: `var(--${prefix}-box-shadow-medium)`,
|
|
9500
9812
|
large: `var(--${prefix}-box-shadow-large)`
|
|
9501
9813
|
},
|
|
9814
|
+
backgroundSize: {
|
|
9815
|
+
"stripe-size": "1.25rem 1.25rem"
|
|
9816
|
+
},
|
|
9502
9817
|
backgroundImage: {
|
|
9503
|
-
"stripe-gradient": "
|
|
9818
|
+
"stripe-gradient-default": createStripeGradient("default-200", "default-400"),
|
|
9819
|
+
"stripe-gradient-primary": createStripeGradient("primary-200", "primary"),
|
|
9820
|
+
"stripe-gradient-secondary": createStripeGradient("secondary-200", "secondary"),
|
|
9821
|
+
"stripe-gradient-success": createStripeGradient("success-200", "success"),
|
|
9822
|
+
"stripe-gradient-warning": createStripeGradient("warning-200", "warning"),
|
|
9823
|
+
"stripe-gradient-danger": createStripeGradient("danger-200", "danger")
|
|
9504
9824
|
},
|
|
9505
9825
|
transitionDuration: {
|
|
9506
9826
|
0: "0ms",
|
|
@@ -9518,6 +9838,7 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
9518
9838
|
);
|
|
9519
9839
|
};
|
|
9520
9840
|
var nextui = (config = {}) => {
|
|
9841
|
+
var _a, _b, _c, _d;
|
|
9521
9842
|
const {
|
|
9522
9843
|
themes: themeObject = {},
|
|
9523
9844
|
defaultTheme = "light",
|
|
@@ -9526,8 +9847,8 @@ var nextui = (config = {}) => {
|
|
|
9526
9847
|
prefix: defaultPrefix = DEFAULT_PREFIX,
|
|
9527
9848
|
addCommonColors = false
|
|
9528
9849
|
} = config;
|
|
9529
|
-
const userLightColors = (0
|
|
9530
|
-
const userDarkColors = (0
|
|
9850
|
+
const userLightColors = ((_a = themeObject == null ? void 0 : themeObject.light) == null ? void 0 : _a.colors) || {};
|
|
9851
|
+
const userDarkColors = ((_b = themeObject == null ? void 0 : themeObject.dark) == null ? void 0 : _b.colors) || {};
|
|
9531
9852
|
const defaultLayoutObj = userLayout && typeof userLayout === "object" ? (0, import_deepmerge.default)(defaultLayout, userLayout) : defaultLayout;
|
|
9532
9853
|
const baseLayouts = {
|
|
9533
9854
|
light: {
|
|
@@ -9539,8 +9860,8 @@ var nextui = (config = {}) => {
|
|
|
9539
9860
|
...darkLayout
|
|
9540
9861
|
}
|
|
9541
9862
|
};
|
|
9542
|
-
let otherThemes = (0,
|
|
9543
|
-
(
|
|
9863
|
+
let otherThemes = (0, import_shared_utils.omit)(themeObject, ["light", "dark"]) || {};
|
|
9864
|
+
Object.entries(otherThemes).forEach(([themeName, { extend, colors: colors2, layout }]) => {
|
|
9544
9865
|
const baseTheme = extend && isBaseTheme(extend) ? extend : defaultExtendTheme;
|
|
9545
9866
|
if (colors2 && typeof colors2 === "object") {
|
|
9546
9867
|
otherThemes[themeName].colors = (0, import_deepmerge.default)(semanticColors[baseTheme], colors2);
|
|
@@ -9553,11 +9874,11 @@ var nextui = (config = {}) => {
|
|
|
9553
9874
|
}
|
|
9554
9875
|
});
|
|
9555
9876
|
const light2 = {
|
|
9556
|
-
layout: (0, import_deepmerge.default)(baseLayouts.light, (0
|
|
9877
|
+
layout: (0, import_deepmerge.default)(baseLayouts.light, ((_c = themeObject == null ? void 0 : themeObject.light) == null ? void 0 : _c.layout) || {}),
|
|
9557
9878
|
colors: (0, import_deepmerge.default)(semanticColors.light, userLightColors)
|
|
9558
9879
|
};
|
|
9559
9880
|
const dark = {
|
|
9560
|
-
layout: (0, import_deepmerge.default)(baseLayouts.dark, (0
|
|
9881
|
+
layout: (0, import_deepmerge.default)(baseLayouts.dark, ((_d = themeObject == null ? void 0 : themeObject.dark) == null ? void 0 : _d.layout) || {}),
|
|
9561
9882
|
colors: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors)
|
|
9562
9883
|
};
|
|
9563
9884
|
const themes = {
|
|
@@ -9573,6 +9894,7 @@ var nextui = (config = {}) => {
|
|
|
9573
9894
|
absoluteFullClasses,
|
|
9574
9895
|
accordion,
|
|
9575
9896
|
accordionItem,
|
|
9897
|
+
alert,
|
|
9576
9898
|
autocomplete,
|
|
9577
9899
|
avatar,
|
|
9578
9900
|
avatarGroup,
|
|
@@ -9601,6 +9923,7 @@ var nextui = (config = {}) => {
|
|
|
9601
9923
|
dateRangePicker,
|
|
9602
9924
|
defaultLayout,
|
|
9603
9925
|
divider,
|
|
9926
|
+
drawer,
|
|
9604
9927
|
drip,
|
|
9605
9928
|
dropdown,
|
|
9606
9929
|
dropdownItem,
|