@nextui-org/theme 2.2.9 → 2.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-726LN7M3.mjs → chunk-3LD7T42T.mjs} +1 -1
- package/dist/{chunk-GDIZAU4E.mjs → chunk-42JWJWWX.mjs} +1 -1
- package/dist/{chunk-DXPS72CE.mjs → chunk-63NMFZTF.mjs} +12 -7
- package/dist/{chunk-4YQYZDME.mjs → chunk-7YPXCOW5.mjs} +1 -1
- package/dist/{chunk-WUUKIKPR.mjs → chunk-ARYJFX77.mjs} +1 -1
- package/dist/{chunk-2PIR7DFM.mjs → chunk-BZCSOIUI.mjs} +12 -12
- package/dist/{chunk-YSA7EQBH.mjs → chunk-JFWA3DGK.mjs} +2 -2
- package/dist/{chunk-A4VDWEXY.mjs → chunk-JYFVXE5E.mjs} +1 -1
- package/dist/{chunk-NPRQPDVP.mjs → chunk-KPI62GDB.mjs} +4 -4
- package/dist/{chunk-5AGRECY5.mjs → chunk-KUKJUMC3.mjs} +1 -1
- package/dist/{chunk-XT44N6I6.mjs → chunk-LSQXJEPE.mjs} +9 -27
- package/dist/{chunk-DZGYN4XH.mjs → chunk-M3GQ3DWZ.mjs} +24 -41
- package/dist/{chunk-GFTQERGX.mjs → chunk-MP2JYSMR.mjs} +1 -1
- package/dist/{chunk-N4MWCCMM.mjs → chunk-P73E5YV7.mjs} +3 -2
- package/dist/{chunk-BT3FGTF7.mjs → chunk-PWJWH4MD.mjs} +1 -1
- package/dist/{chunk-SKQWKT6K.mjs → chunk-QV3ALCMB.mjs} +1 -1
- package/dist/{chunk-ARFD2V3F.mjs → chunk-QWWVIX6M.mjs} +10 -13
- package/dist/{chunk-HZX5JB5L.mjs → chunk-R27WO3A6.mjs} +1 -1
- package/dist/{chunk-KKN74BUG.mjs → chunk-TA7PDZUG.mjs} +5 -1
- package/dist/{chunk-D7H5R3VL.mjs → chunk-UDSOWFZE.mjs} +2 -2
- package/dist/{chunk-HPFX3B3F.mjs → chunk-WN6AL2BX.mjs} +2 -2
- package/dist/{chunk-CKTE75OS.mjs → chunk-XAYP4CR3.mjs} +1 -1
- package/dist/{chunk-IISEDJRF.mjs → chunk-XL6AWNU3.mjs} +1 -1
- package/dist/{chunk-MERQJVXF.mjs → chunk-XXQSA25O.mjs} +19 -7
- package/dist/components/accordion.mjs +1 -1
- package/dist/components/autocomplete.js +5 -1
- package/dist/components/autocomplete.mjs +1 -1
- package/dist/components/avatar.js +12 -12
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/badge.js +12 -12
- package/dist/components/badge.mjs +2 -2
- package/dist/components/breadcrumbs.mjs +1 -1
- package/dist/components/button.js +30 -18
- package/dist/components/button.mjs +2 -2
- package/dist/components/calendar.d.ts +6 -6
- package/dist/components/calendar.js +4 -4
- package/dist/components/calendar.mjs +2 -2
- package/dist/components/card.mjs +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.mjs +2 -2
- package/dist/components/chip.js +12 -12
- package/dist/components/chip.mjs +2 -2
- package/dist/components/code.js +12 -12
- package/dist/components/code.mjs +2 -2
- package/dist/components/dropdown.mjs +1 -1
- package/dist/components/index.js +102 -118
- package/dist/components/index.mjs +21 -21
- package/dist/components/input.js +10 -13
- package/dist/components/input.mjs +2 -2
- package/dist/components/link.mjs +1 -1
- package/dist/components/listbox.js +1 -1
- package/dist/components/listbox.mjs +2 -2
- package/dist/components/menu.js +1 -1
- package/dist/components/menu.mjs +2 -2
- package/dist/components/modal.js +3 -2
- package/dist/components/modal.mjs +2 -2
- package/dist/components/navbar.mjs +1 -1
- package/dist/components/pagination.d.ts +3 -3
- package/dist/components/pagination.js +23 -18
- package/dist/components/pagination.mjs +2 -2
- package/dist/components/popover.js +12 -12
- package/dist/components/popover.mjs +2 -2
- package/dist/components/radio.js +1 -1
- package/dist/components/radio.mjs +2 -2
- package/dist/components/select.d.ts +14 -7
- package/dist/components/select.js +24 -41
- package/dist/components/select.mjs +2 -2
- package/dist/components/skeleton.js +2 -2
- package/dist/components/skeleton.mjs +1 -1
- package/dist/components/slider.mjs +1 -1
- package/dist/components/snippet.js +12 -12
- package/dist/components/snippet.mjs +2 -2
- package/dist/components/table.js +9 -27
- package/dist/components/table.mjs +2 -2
- package/dist/components/tabs.js +12 -12
- package/dist/components/tabs.mjs +2 -2
- package/dist/components/toggle.js +1 -1
- package/dist/components/toggle.mjs +2 -2
- package/dist/components/user.mjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +110 -120
- package/dist/index.mjs +32 -25
- package/dist/plugin.js +2 -2
- package/dist/plugin.mjs +3 -3
- package/dist/utilities/index.d.ts +2 -2
- package/dist/utilities/index.js +2 -2
- package/dist/utilities/index.mjs +2 -2
- package/dist/utilities/transition.d.ts +2 -2
- package/dist/utilities/transition.js +2 -2
- package/dist/utilities/transition.mjs +1 -1
- package/dist/utils/index.js +12 -12
- package/dist/utils/index.mjs +1 -1
- package/dist/utils/variants.js +12 -12
- package/dist/utils/variants.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51,10 +51,12 @@ __export(src_exports, {
|
|
|
51
51
|
colorVariants: () => colorVariants,
|
|
52
52
|
colors: () => colors,
|
|
53
53
|
commonColors: () => commonColors,
|
|
54
|
+
darkLayout: () => darkLayout,
|
|
54
55
|
dataFocusVisibleClasses: () => dataFocusVisibleClasses,
|
|
55
56
|
dateInput: () => dateInput,
|
|
56
57
|
datePicker: () => datePicker,
|
|
57
58
|
dateRangePicker: () => dateRangePicker,
|
|
59
|
+
defaultLayout: () => defaultLayout,
|
|
58
60
|
divider: () => divider,
|
|
59
61
|
drip: () => drip,
|
|
60
62
|
dropdown: () => dropdown,
|
|
@@ -66,6 +68,7 @@ __export(src_exports, {
|
|
|
66
68
|
image: () => image,
|
|
67
69
|
input: () => input,
|
|
68
70
|
kbd: () => kbd,
|
|
71
|
+
lightLayout: () => lightLayout,
|
|
69
72
|
link: () => link,
|
|
70
73
|
linkAnchorClasses: () => linkAnchorClasses,
|
|
71
74
|
listbox: () => menu,
|
|
@@ -219,12 +222,12 @@ var bordered = {
|
|
|
219
222
|
foreground: "bg-transparent border-foreground text-foreground"
|
|
220
223
|
};
|
|
221
224
|
var flat = {
|
|
222
|
-
default: "bg-default/40 text-default-
|
|
223
|
-
primary: "bg-primary/20 text-primary",
|
|
224
|
-
secondary: "bg-secondary/20 text-secondary",
|
|
225
|
-
success: "bg-success/20 text-success-
|
|
226
|
-
warning: "bg-warning/20 text-warning-
|
|
227
|
-
danger: "bg-danger/20 text-danger dark:text-danger-500",
|
|
225
|
+
default: "bg-default/40 text-default-700",
|
|
226
|
+
primary: "bg-primary/20 text-primary-700",
|
|
227
|
+
secondary: "bg-secondary/20 text-secondary-700",
|
|
228
|
+
success: "bg-success/20 text-success-800 dark:text-success",
|
|
229
|
+
warning: "bg-warning/20 text-warning-800 dark:text-warning",
|
|
230
|
+
danger: "bg-danger/20 text-danger-800 dark:text-danger-500",
|
|
228
231
|
foreground: "bg-foreground/10 text-foreground"
|
|
229
232
|
};
|
|
230
233
|
var faded = {
|
|
@@ -246,12 +249,12 @@ var light = {
|
|
|
246
249
|
foreground: "bg-transparent text-foreground"
|
|
247
250
|
};
|
|
248
251
|
var ghost = {
|
|
249
|
-
default: "border-default text-default-foreground
|
|
250
|
-
primary: "border-primary text-primary
|
|
251
|
-
secondary: "border-secondary text-secondary
|
|
252
|
-
success: "border-success text-success
|
|
253
|
-
warning: "border-warning text-warning
|
|
254
|
-
danger: "border-danger text-danger
|
|
252
|
+
default: "border-default text-default-foreground",
|
|
253
|
+
primary: "border-primary text-primary",
|
|
254
|
+
secondary: "border-secondary text-secondary",
|
|
255
|
+
success: "border-success text-success",
|
|
256
|
+
warning: "border-warning text-warning",
|
|
257
|
+
danger: "border-danger text-danger",
|
|
255
258
|
foreground: "border-foreground text-foreground hover:!bg-foreground"
|
|
256
259
|
};
|
|
257
260
|
var colorVariants = {
|
|
@@ -968,32 +971,44 @@ var button = tv({
|
|
|
968
971
|
{
|
|
969
972
|
variant: "ghost",
|
|
970
973
|
color: "default",
|
|
971
|
-
class: colorVariants.ghost.default
|
|
974
|
+
class: [colorVariants.ghost.default, "data-[hover=true]:!bg-default"]
|
|
972
975
|
},
|
|
973
976
|
{
|
|
974
977
|
variant: "ghost",
|
|
975
978
|
color: "primary",
|
|
976
|
-
class:
|
|
979
|
+
class: [
|
|
980
|
+
colorVariants.ghost.primary,
|
|
981
|
+
"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"
|
|
982
|
+
]
|
|
977
983
|
},
|
|
978
984
|
{
|
|
979
985
|
variant: "ghost",
|
|
980
986
|
color: "secondary",
|
|
981
|
-
class:
|
|
987
|
+
class: [
|
|
988
|
+
colorVariants.ghost.secondary,
|
|
989
|
+
"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"
|
|
990
|
+
]
|
|
982
991
|
},
|
|
983
992
|
{
|
|
984
993
|
variant: "ghost",
|
|
985
994
|
color: "success",
|
|
986
|
-
class:
|
|
995
|
+
class: [
|
|
996
|
+
colorVariants.ghost.success,
|
|
997
|
+
"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"
|
|
998
|
+
]
|
|
987
999
|
},
|
|
988
1000
|
{
|
|
989
1001
|
variant: "ghost",
|
|
990
1002
|
color: "warning",
|
|
991
|
-
class:
|
|
1003
|
+
class: [
|
|
1004
|
+
colorVariants.ghost.warning,
|
|
1005
|
+
"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"
|
|
1006
|
+
]
|
|
992
1007
|
},
|
|
993
1008
|
{
|
|
994
1009
|
variant: "ghost",
|
|
995
1010
|
color: "danger",
|
|
996
|
-
class: colorVariants.ghost.danger
|
|
1011
|
+
class: [colorVariants.ghost.danger, "data-[hover=true]:!bg-danger !text-danger-foreground"]
|
|
997
1012
|
},
|
|
998
1013
|
{
|
|
999
1014
|
isInGroup: true,
|
|
@@ -2568,7 +2583,7 @@ var badge = tv({
|
|
|
2568
2583
|
// src/components/checkbox.ts
|
|
2569
2584
|
var checkbox = tv({
|
|
2570
2585
|
slots: {
|
|
2571
|
-
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",
|
|
2586
|
+
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
|
|
2572
2587
|
wrapper: [
|
|
2573
2588
|
"relative",
|
|
2574
2589
|
"inline-flex",
|
|
@@ -2769,7 +2784,7 @@ var checkboxGroup = tv({
|
|
|
2769
2784
|
// src/components/radio.ts
|
|
2770
2785
|
var radio = tv({
|
|
2771
2786
|
slots: {
|
|
2772
|
-
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",
|
|
2787
|
+
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
|
|
2773
2788
|
wrapper: [
|
|
2774
2789
|
"relative",
|
|
2775
2790
|
"inline-flex",
|
|
@@ -2946,7 +2961,12 @@ var pagination = tv({
|
|
|
2946
2961
|
"pointer-events-none",
|
|
2947
2962
|
"z-20"
|
|
2948
2963
|
],
|
|
2949
|
-
forwardIcon:
|
|
2964
|
+
forwardIcon: [
|
|
2965
|
+
"hidden",
|
|
2966
|
+
"group-hover:block",
|
|
2967
|
+
"group-data-[focus-visible=true]:block",
|
|
2968
|
+
"data-[before=true]:rotate-180"
|
|
2969
|
+
],
|
|
2950
2970
|
ellipsis: "group-hover:hidden group-data-[focus-visible=true]:hidden",
|
|
2951
2971
|
chevronNext: "rotate-180"
|
|
2952
2972
|
},
|
|
@@ -3005,12 +3025,12 @@ var pagination = tv({
|
|
|
3005
3025
|
wrapper: "gap-0 shadow-sm",
|
|
3006
3026
|
item: [
|
|
3007
3027
|
"shadow-none",
|
|
3008
|
-
"first-of-type:rounded-
|
|
3009
|
-
"last-of-type:rounded-
|
|
3028
|
+
"first-of-type:rounded-e-none",
|
|
3029
|
+
"last-of-type:rounded-s-none",
|
|
3010
3030
|
"[&:not(:first-of-type):not(:last-of-type)]:rounded-none"
|
|
3011
3031
|
],
|
|
3012
|
-
prev: "!rounded-
|
|
3013
|
-
next: "!rounded-
|
|
3032
|
+
prev: "!rounded-e-none",
|
|
3033
|
+
next: "!rounded-s-none"
|
|
3014
3034
|
}
|
|
3015
3035
|
},
|
|
3016
3036
|
isDisabled: {
|
|
@@ -3099,7 +3119,7 @@ var pagination = tv({
|
|
|
3099
3119
|
isCompact: true,
|
|
3100
3120
|
variant: "bordered",
|
|
3101
3121
|
class: {
|
|
3102
|
-
item: "[&:not(:first-of-type)]:
|
|
3122
|
+
item: "[&:not(:first-of-type)]:ms-[calc(theme(borderWidth.2)*-1)]"
|
|
3103
3123
|
}
|
|
3104
3124
|
},
|
|
3105
3125
|
{
|
|
@@ -3311,7 +3331,7 @@ var pagination = tv({
|
|
|
3311
3331
|
// src/components/toggle.ts
|
|
3312
3332
|
var toggle = tv({
|
|
3313
3333
|
slots: {
|
|
3314
|
-
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent",
|
|
3334
|
+
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent select-none",
|
|
3315
3335
|
wrapper: [
|
|
3316
3336
|
"px-1",
|
|
3317
3337
|
"relative",
|
|
@@ -3784,9 +3804,8 @@ var input = tv({
|
|
|
3784
3804
|
"z-10",
|
|
3785
3805
|
"hidden",
|
|
3786
3806
|
"absolute",
|
|
3787
|
-
"
|
|
3788
|
-
"
|
|
3789
|
-
"rtl:left-3",
|
|
3807
|
+
"end-3",
|
|
3808
|
+
"start-auto",
|
|
3790
3809
|
"appearance-none",
|
|
3791
3810
|
"outline-none",
|
|
3792
3811
|
"select-none",
|
|
@@ -3905,7 +3924,7 @@ var input = tv({
|
|
|
3905
3924
|
base: "flex-row items-center flex-nowrap data-[has-helper=true]:items-start",
|
|
3906
3925
|
inputWrapper: "flex-1",
|
|
3907
3926
|
mainWrapper: "flex flex-col",
|
|
3908
|
-
label: "relative text-foreground
|
|
3927
|
+
label: "relative text-foreground pe-2 ps-2 pointer-events-auto"
|
|
3909
3928
|
},
|
|
3910
3929
|
inside: {
|
|
3911
3930
|
label: "text-tiny cursor-text",
|
|
@@ -4316,13 +4335,13 @@ var input = tv({
|
|
|
4316
4335
|
labelPlacement: "outside",
|
|
4317
4336
|
isMultiline: false,
|
|
4318
4337
|
class: {
|
|
4319
|
-
base: "
|
|
4338
|
+
base: "relative justify-end",
|
|
4320
4339
|
label: [
|
|
4321
4340
|
"pb-0",
|
|
4322
4341
|
"z-20",
|
|
4323
4342
|
"top-1/2",
|
|
4324
4343
|
"-translate-y-1/2",
|
|
4325
|
-
"group-data-[filled-within=true]:
|
|
4344
|
+
"group-data-[filled-within=true]:start-0"
|
|
4326
4345
|
]
|
|
4327
4346
|
}
|
|
4328
4347
|
},
|
|
@@ -4465,7 +4484,7 @@ var input = tv({
|
|
|
4465
4484
|
isMultiline: false,
|
|
4466
4485
|
class: {
|
|
4467
4486
|
label: [
|
|
4468
|
-
"
|
|
4487
|
+
"start-2",
|
|
4469
4488
|
"text-tiny",
|
|
4470
4489
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
4471
4490
|
],
|
|
@@ -4478,9 +4497,8 @@ var input = tv({
|
|
|
4478
4497
|
isMultiline: false,
|
|
4479
4498
|
class: {
|
|
4480
4499
|
label: [
|
|
4481
|
-
"
|
|
4482
|
-
"
|
|
4483
|
-
"rtl:right-3",
|
|
4500
|
+
"start-3",
|
|
4501
|
+
"end-auto",
|
|
4484
4502
|
"text-small",
|
|
4485
4503
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
4486
4504
|
],
|
|
@@ -4493,9 +4511,8 @@ var input = tv({
|
|
|
4493
4511
|
isMultiline: false,
|
|
4494
4512
|
class: {
|
|
4495
4513
|
label: [
|
|
4496
|
-
"
|
|
4497
|
-
"
|
|
4498
|
-
"rtl:right-3",
|
|
4514
|
+
"start-3",
|
|
4515
|
+
"end-auto",
|
|
4499
4516
|
"text-medium",
|
|
4500
4517
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
4501
4518
|
],
|
|
@@ -5062,7 +5079,8 @@ var modal = tv({
|
|
|
5062
5079
|
"inset-0",
|
|
5063
5080
|
"z-50",
|
|
5064
5081
|
"overflow-x-auto",
|
|
5065
|
-
"justify-center"
|
|
5082
|
+
"justify-center",
|
|
5083
|
+
"h-[--visual-viewport-height]"
|
|
5066
5084
|
],
|
|
5067
5085
|
base: [
|
|
5068
5086
|
"flex",
|
|
@@ -5131,7 +5149,7 @@ var modal = tv({
|
|
|
5131
5149
|
base: "max-w-5xl"
|
|
5132
5150
|
},
|
|
5133
5151
|
full: {
|
|
5134
|
-
base: "my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] !rounded-none"
|
|
5152
|
+
base: "my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none"
|
|
5135
5153
|
}
|
|
5136
5154
|
},
|
|
5137
5155
|
radius: {
|
|
@@ -5447,18 +5465,15 @@ var table = tv({
|
|
|
5447
5465
|
"group",
|
|
5448
5466
|
"px-3",
|
|
5449
5467
|
"h-10",
|
|
5468
|
+
"text-start",
|
|
5450
5469
|
"align-middle",
|
|
5451
5470
|
"bg-default-100",
|
|
5452
5471
|
"whitespace-nowrap",
|
|
5453
5472
|
"text-foreground-500",
|
|
5454
5473
|
"text-tiny",
|
|
5455
5474
|
"font-semibold",
|
|
5456
|
-
"first:rounded-
|
|
5457
|
-
"
|
|
5458
|
-
"rtl:first:rounded-l-[unset]",
|
|
5459
|
-
"last:rounded-r-lg",
|
|
5460
|
-
"rtl:last:rounded-l-lg",
|
|
5461
|
-
"rtl:last:rounded-r-[unset]",
|
|
5475
|
+
"first:rounded-s-lg",
|
|
5476
|
+
"last:rounded-e-lg",
|
|
5462
5477
|
"outline-none",
|
|
5463
5478
|
"data-[sortable=true]:cursor-pointer",
|
|
5464
5479
|
"data-[hover=true]:text-foreground-400",
|
|
@@ -5487,7 +5502,7 @@ var table = tv({
|
|
|
5487
5502
|
],
|
|
5488
5503
|
tfoot: "",
|
|
5489
5504
|
sortIcon: [
|
|
5490
|
-
"
|
|
5505
|
+
"ms-2",
|
|
5491
5506
|
"mb-px",
|
|
5492
5507
|
"opacity-0",
|
|
5493
5508
|
"text-inherit",
|
|
@@ -5594,30 +5609,15 @@ var table = tv({
|
|
|
5594
5609
|
isMultiSelectable: {
|
|
5595
5610
|
true: {
|
|
5596
5611
|
td: [
|
|
5597
|
-
"group-data-[first=true]:first:before:rounded-
|
|
5598
|
-
"group-data-[first=true]:
|
|
5599
|
-
"group-data-[first=true]:rtl:first:before:rounded-tl-[unset]",
|
|
5600
|
-
"group-data-[first=true]:last:before:rounded-tr-lg",
|
|
5601
|
-
"group-data-[first=true]:rtl:last:before:rounded-tl-lg",
|
|
5602
|
-
"group-data-[first=true]:rtl:last:before:rounded-tr-[unset]",
|
|
5612
|
+
"group-data-[first=true]:first:before:rounded-ts-lg",
|
|
5613
|
+
"group-data-[first=true]:last:before:rounded-te-lg",
|
|
5603
5614
|
"group-data-[middle=true]:before:rounded-none",
|
|
5604
|
-
"group-data-[last=true]:first:before:rounded-
|
|
5605
|
-
"group-data-[last=true]:
|
|
5606
|
-
"group-data-[last=true]:rtl:first:before:rounded-bl-[unset]",
|
|
5607
|
-
"group-data-[last=true]:last:before:rounded-br-lg",
|
|
5608
|
-
"group-data-[last=true]:rtl:last:before:rounded-bl-lg",
|
|
5609
|
-
"group-data-[last=true]:rtl:last:before:rounded-br-[unset]"
|
|
5615
|
+
"group-data-[last=true]:first:before:rounded-bs-lg",
|
|
5616
|
+
"group-data-[last=true]:last:before:rounded-be-lg"
|
|
5610
5617
|
]
|
|
5611
5618
|
},
|
|
5612
5619
|
false: {
|
|
5613
|
-
td: [
|
|
5614
|
-
"first:before:rounded-l-lg",
|
|
5615
|
-
"rtl:first:before:rounded-r-lg",
|
|
5616
|
-
"rtl:first:before:rounded-l-[unset]",
|
|
5617
|
-
"last:before:rounded-r-lg",
|
|
5618
|
-
"rtl:last:before:rounded-l-lg",
|
|
5619
|
-
"rtl:last:before:rounded-r-[unset]"
|
|
5620
|
-
]
|
|
5620
|
+
td: ["first:before:rounded-s-lg", "last:before:rounded-e-lg"]
|
|
5621
5621
|
}
|
|
5622
5622
|
},
|
|
5623
5623
|
fullWidth: {
|
|
@@ -6166,7 +6166,7 @@ var skeleton = tv({
|
|
|
6166
6166
|
"data-[loaded=true]:pointer-events-auto",
|
|
6167
6167
|
"data-[loaded=true]:overflow-visible",
|
|
6168
6168
|
"data-[loaded=true]:!bg-transparent",
|
|
6169
|
-
"data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:animate-none",
|
|
6169
|
+
"data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:-z-10 data-[loaded=true]:before:animate-none",
|
|
6170
6170
|
"data-[loaded=true]:after:opacity-0"
|
|
6171
6171
|
],
|
|
6172
6172
|
content: ["opacity-0", "group-data-[loaded=true]:opacity-100"]
|
|
@@ -6178,7 +6178,7 @@ var skeleton = tv({
|
|
|
6178
6178
|
content: "transition-none"
|
|
6179
6179
|
},
|
|
6180
6180
|
false: {
|
|
6181
|
-
base: "transition-background !duration-300
|
|
6181
|
+
base: "transition-background !duration-300",
|
|
6182
6182
|
content: "transition-opacity motion-reduce:transition-none !duration-300"
|
|
6183
6183
|
}
|
|
6184
6184
|
}
|
|
@@ -6204,8 +6204,8 @@ var select = tv({
|
|
|
6204
6204
|
mainWrapper: "w-full flex flex-col",
|
|
6205
6205
|
trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
|
|
6206
6206
|
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",
|
|
6207
|
-
selectorIcon: "absolute
|
|
6208
|
-
spinner: "absolute
|
|
6207
|
+
selectorIcon: "absolute end-3 w-4 h-4",
|
|
6208
|
+
spinner: "absolute end-3",
|
|
6209
6209
|
value: ["text-foreground-500", "font-normal", "w-full", "text-left", "rtl:text-right"],
|
|
6210
6210
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
6211
6211
|
listbox: "",
|
|
@@ -6226,6 +6226,7 @@ var select = tv({
|
|
|
6226
6226
|
faded: {
|
|
6227
6227
|
trigger: [
|
|
6228
6228
|
"bg-default-100",
|
|
6229
|
+
"data-[hover=true]:bg-default-200",
|
|
6229
6230
|
"border-medium",
|
|
6230
6231
|
"border-default-200",
|
|
6231
6232
|
"data-[hover=true]:border-default-400"
|
|
@@ -6240,7 +6241,8 @@ var select = tv({
|
|
|
6240
6241
|
"data-[open=true]:border-default-foreground",
|
|
6241
6242
|
"data-[focus=true]:border-default-foreground",
|
|
6242
6243
|
"data-[focus=true]:border-default-foreground"
|
|
6243
|
-
]
|
|
6244
|
+
],
|
|
6245
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
6244
6246
|
},
|
|
6245
6247
|
underlined: {
|
|
6246
6248
|
trigger: [
|
|
@@ -6266,7 +6268,7 @@ var select = tv({
|
|
|
6266
6268
|
"data-[open=true]:after:w-full",
|
|
6267
6269
|
"data-[focus=true]:after:w-full"
|
|
6268
6270
|
],
|
|
6269
|
-
|
|
6271
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
6270
6272
|
}
|
|
6271
6273
|
},
|
|
6272
6274
|
color: {
|
|
@@ -6315,7 +6317,7 @@ var select = tv({
|
|
|
6315
6317
|
},
|
|
6316
6318
|
"outside-left": {
|
|
6317
6319
|
base: "flex-row items-center flex-nowrap items-start",
|
|
6318
|
-
label: "relative
|
|
6320
|
+
label: "relative pe-2 text-foreground"
|
|
6319
6321
|
},
|
|
6320
6322
|
inside: {
|
|
6321
6323
|
label: "text-tiny cursor-pointer",
|
|
@@ -6342,7 +6344,7 @@ var select = tv({
|
|
|
6342
6344
|
},
|
|
6343
6345
|
isRequired: {
|
|
6344
6346
|
true: {
|
|
6345
|
-
label: "after:content-['*'] after:text-danger after:
|
|
6347
|
+
label: "after:content-['*'] after:text-danger after:ms-0.5"
|
|
6346
6348
|
}
|
|
6347
6349
|
},
|
|
6348
6350
|
isMultiline: {
|
|
@@ -6397,7 +6399,8 @@ var select = tv({
|
|
|
6397
6399
|
variant: "flat",
|
|
6398
6400
|
color: "default",
|
|
6399
6401
|
class: {
|
|
6400
|
-
value: "group-data-[has-value=true]:text-default-foreground"
|
|
6402
|
+
value: "group-data-[has-value=true]:text-default-foreground",
|
|
6403
|
+
trigger: ["bg-default-100", "data-[hover=true]:bg-default-50"]
|
|
6401
6404
|
}
|
|
6402
6405
|
},
|
|
6403
6406
|
{
|
|
@@ -6405,9 +6408,9 @@ var select = tv({
|
|
|
6405
6408
|
color: "primary",
|
|
6406
6409
|
class: {
|
|
6407
6410
|
trigger: [
|
|
6408
|
-
"bg-primary-
|
|
6411
|
+
"bg-primary-100",
|
|
6409
6412
|
"text-primary",
|
|
6410
|
-
"data-[hover=true]:bg-primary-
|
|
6413
|
+
"data-[hover=true]:bg-primary-50",
|
|
6411
6414
|
"group-data-[focus=true]:bg-primary-50"
|
|
6412
6415
|
],
|
|
6413
6416
|
value: "text-primary",
|
|
@@ -6419,9 +6422,9 @@ var select = tv({
|
|
|
6419
6422
|
color: "secondary",
|
|
6420
6423
|
class: {
|
|
6421
6424
|
trigger: [
|
|
6422
|
-
"bg-secondary-
|
|
6425
|
+
"bg-secondary-100",
|
|
6423
6426
|
"text-secondary",
|
|
6424
|
-
"data-[hover=true]:bg-secondary-
|
|
6427
|
+
"data-[hover=true]:bg-secondary-50",
|
|
6425
6428
|
"group-data-[focus=true]:bg-secondary-50"
|
|
6426
6429
|
],
|
|
6427
6430
|
value: "text-secondary",
|
|
@@ -6433,10 +6436,10 @@ var select = tv({
|
|
|
6433
6436
|
color: "success",
|
|
6434
6437
|
class: {
|
|
6435
6438
|
trigger: [
|
|
6436
|
-
"bg-success-
|
|
6439
|
+
"bg-success-100",
|
|
6437
6440
|
"text-success-600",
|
|
6438
6441
|
"dark:text-success",
|
|
6439
|
-
"data-[hover=true]:bg-success-
|
|
6442
|
+
"data-[hover=true]:bg-success-50",
|
|
6440
6443
|
"group-data-[focus=true]:bg-success-50"
|
|
6441
6444
|
],
|
|
6442
6445
|
value: "text-success-600 dark:text-success",
|
|
@@ -6448,10 +6451,10 @@ var select = tv({
|
|
|
6448
6451
|
color: "warning",
|
|
6449
6452
|
class: {
|
|
6450
6453
|
trigger: [
|
|
6451
|
-
"bg-warning-
|
|
6454
|
+
"bg-warning-100",
|
|
6452
6455
|
"text-warning-600",
|
|
6453
6456
|
"dark:text-warning",
|
|
6454
|
-
"data-[hover=true]:bg-warning-
|
|
6457
|
+
"data-[hover=true]:bg-warning-50",
|
|
6455
6458
|
"group-data-[focus=true]:bg-warning-50"
|
|
6456
6459
|
],
|
|
6457
6460
|
value: "text-warning-600 dark:text-warning",
|
|
@@ -6463,10 +6466,10 @@ var select = tv({
|
|
|
6463
6466
|
color: "danger",
|
|
6464
6467
|
class: {
|
|
6465
6468
|
trigger: [
|
|
6466
|
-
"bg-danger-
|
|
6469
|
+
"bg-danger-100",
|
|
6467
6470
|
"text-danger",
|
|
6468
6471
|
"dark:text-danger-500",
|
|
6469
|
-
"data-[hover=true]:bg-danger-
|
|
6472
|
+
"data-[hover=true]:bg-danger-50",
|
|
6470
6473
|
"group-data-[focus=true]:bg-danger-50"
|
|
6471
6474
|
],
|
|
6472
6475
|
value: "text-danger dark:text-danger-500",
|
|
@@ -6704,26 +6707,12 @@ var select = tv({
|
|
|
6704
6707
|
trigger: "h-16 min-h-16 py-2.5 gap-0"
|
|
6705
6708
|
}
|
|
6706
6709
|
},
|
|
6707
|
-
{
|
|
6708
|
-
labelPlacement: ["inside", "outside"],
|
|
6709
|
-
class: {
|
|
6710
|
-
label: ["group-data-[filled=true]:pointer-events-auto"]
|
|
6711
|
-
}
|
|
6712
|
-
},
|
|
6713
6710
|
{
|
|
6714
6711
|
labelPlacement: "outside",
|
|
6715
6712
|
isMultiline: false,
|
|
6716
6713
|
class: {
|
|
6717
6714
|
base: "group relative justify-end",
|
|
6718
|
-
label: [
|
|
6719
|
-
"pb-0",
|
|
6720
|
-
"z-20",
|
|
6721
|
-
"top-1/2",
|
|
6722
|
-
"-translate-y-1/2",
|
|
6723
|
-
"group-data-[filled=true]:left-0",
|
|
6724
|
-
"rtl:group-data-[filled=true]:right-0",
|
|
6725
|
-
"rtl:group-data-[filled=true]:left-[unset]"
|
|
6726
|
-
]
|
|
6715
|
+
label: ["pb-0", "z-20", "top-1/2", "-translate-y-1/2", "group-data-[filled=true]:start-0"]
|
|
6727
6716
|
}
|
|
6728
6717
|
},
|
|
6729
6718
|
{
|
|
@@ -6843,9 +6832,7 @@ var select = tv({
|
|
|
6843
6832
|
isMultiline: false,
|
|
6844
6833
|
class: {
|
|
6845
6834
|
label: [
|
|
6846
|
-
"
|
|
6847
|
-
"rtl:right-2",
|
|
6848
|
-
"rtl:left-[unset]",
|
|
6835
|
+
"start-2",
|
|
6849
6836
|
"text-tiny",
|
|
6850
6837
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
6851
6838
|
],
|
|
@@ -6858,9 +6845,7 @@ var select = tv({
|
|
|
6858
6845
|
size: "md",
|
|
6859
6846
|
class: {
|
|
6860
6847
|
label: [
|
|
6861
|
-
"
|
|
6862
|
-
"rtl:right-3",
|
|
6863
|
-
"rtl:left-[unset]",
|
|
6848
|
+
"start-3",
|
|
6864
6849
|
"text-small",
|
|
6865
6850
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
6866
6851
|
],
|
|
@@ -6873,9 +6858,7 @@ var select = tv({
|
|
|
6873
6858
|
size: "lg",
|
|
6874
6859
|
class: {
|
|
6875
6860
|
label: [
|
|
6876
|
-
"
|
|
6877
|
-
"rtl:right-3",
|
|
6878
|
-
"rtl:left-[unset]",
|
|
6861
|
+
"start-3",
|
|
6879
6862
|
"text-medium",
|
|
6880
6863
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
6881
6864
|
],
|
|
@@ -6937,7 +6920,7 @@ var menuItem = tv({
|
|
|
6937
6920
|
"data-[focus-visible=true]:dark:ring-offset-background-content1"
|
|
6938
6921
|
],
|
|
6939
6922
|
wrapper: "w-full flex flex-col items-start justify-center",
|
|
6940
|
-
title: "flex-1 text-small font-normal
|
|
6923
|
+
title: "flex-1 text-small font-normal",
|
|
6941
6924
|
description: ["w-full", "text-tiny", "text-foreground-500", "group-hover:text-current"],
|
|
6942
6925
|
selectedIcon: ["text-inherit", "w-3", "h-3", "flex-shrink-0"],
|
|
6943
6926
|
shortcut: [
|
|
@@ -8013,12 +7996,16 @@ var autocomplete = tv({
|
|
|
8013
7996
|
"translate-x-1",
|
|
8014
7997
|
"cursor-text",
|
|
8015
7998
|
"opacity-0",
|
|
7999
|
+
"pointer-events-none",
|
|
8016
8000
|
"text-default-500",
|
|
8017
8001
|
"group-data-[invalid=true]:text-danger",
|
|
8018
8002
|
"data-[visible=true]:opacity-100",
|
|
8003
|
+
"data-[visible=true]:pointer-events-auto",
|
|
8019
8004
|
"data-[visible=true]:cursor-pointer",
|
|
8020
8005
|
"sm:data-[visible=true]:opacity-0",
|
|
8021
|
-
"sm:
|
|
8006
|
+
"sm:data-[visible=true]:pointer-events-none",
|
|
8007
|
+
"sm:group-data-[hover=true]:data-[visible=true]:opacity-100",
|
|
8008
|
+
"sm:group-data-[hover=true]:data-[visible=true]:pointer-events-auto"
|
|
8022
8009
|
],
|
|
8023
8010
|
selectorButton: "text-medium"
|
|
8024
8011
|
},
|
|
@@ -8058,17 +8045,17 @@ var calendar = tv({
|
|
|
8058
8045
|
"rounded-large overflow-x-auto bg-default-50 dark:bg-background",
|
|
8059
8046
|
"w-[calc(var(--visible-months)_*_var(--calendar-width))]"
|
|
8060
8047
|
],
|
|
8061
|
-
prevButton: [],
|
|
8062
|
-
nextButton: [],
|
|
8048
|
+
prevButton: ["order-1"],
|
|
8049
|
+
nextButton: ["order-3"],
|
|
8063
8050
|
headerWrapper: [
|
|
8064
|
-
"px-4 py-2 flex items-center justify-between gap-2 bg-content1 overflow-hidden",
|
|
8051
|
+
"px-4 py-2 flex items-center justify-between gap-2 bg-content1 overflow-hidden rtl:flex-row-reverse",
|
|
8065
8052
|
"[&_.chevron-icon]:flex-none",
|
|
8066
8053
|
"after:content-['']",
|
|
8067
8054
|
"after:bg-content1 origin-top",
|
|
8068
8055
|
"after:w-full after:h-0",
|
|
8069
8056
|
"after:absolute after:top-0 after:left-0"
|
|
8070
8057
|
],
|
|
8071
|
-
header: "flex w-full items-center justify-center gap-2 z-10",
|
|
8058
|
+
header: "flex w-full items-center justify-center gap-2 z-10 order-2",
|
|
8072
8059
|
title: "text-default-500 text-small font-medium",
|
|
8073
8060
|
content: "w-[calc(var(--visible-months)_*_var(--calendar-width))]",
|
|
8074
8061
|
gridWrapper: "flex max-w-full overflow-hidden pb-2 h-auto relative",
|
|
@@ -9283,12 +9270,12 @@ var transition_default = {
|
|
|
9283
9270
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
9284
9271
|
},
|
|
9285
9272
|
".transition-transform-colors": {
|
|
9286
|
-
"
|
|
9273
|
+
"transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke",
|
|
9287
9274
|
"transition-timing-function": "ease",
|
|
9288
9275
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
9289
9276
|
},
|
|
9290
9277
|
".transition-transform-colors-opacity": {
|
|
9291
|
-
"
|
|
9278
|
+
"transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity",
|
|
9292
9279
|
"transition-timing-function": "ease",
|
|
9293
9280
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
9294
9281
|
}
|
|
@@ -9607,10 +9594,12 @@ var nextui = (config = {}) => {
|
|
|
9607
9594
|
colorVariants,
|
|
9608
9595
|
colors,
|
|
9609
9596
|
commonColors,
|
|
9597
|
+
darkLayout,
|
|
9610
9598
|
dataFocusVisibleClasses,
|
|
9611
9599
|
dateInput,
|
|
9612
9600
|
datePicker,
|
|
9613
9601
|
dateRangePicker,
|
|
9602
|
+
defaultLayout,
|
|
9614
9603
|
divider,
|
|
9615
9604
|
drip,
|
|
9616
9605
|
dropdown,
|
|
@@ -9622,6 +9611,7 @@ var nextui = (config = {}) => {
|
|
|
9622
9611
|
image,
|
|
9623
9612
|
input,
|
|
9624
9613
|
kbd,
|
|
9614
|
+
lightLayout,
|
|
9625
9615
|
link,
|
|
9626
9616
|
linkAnchorClasses,
|
|
9627
9617
|
listbox,
|