@nextui-org/theme 2.2.10 → 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-BOVVTMHS.mjs → chunk-2TAKWWRG.mjs} +5 -5
- 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-OUNBTYJ7.mjs → chunk-FB2NWPDB.mjs} +12 -12
- package/dist/{chunk-WJIRIXV4.mjs → chunk-FJGKW3ZE.mjs} +29 -38
- 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-XEPPBQPJ.mjs → chunk-HNRFZTEX.mjs} +19 -19
- package/dist/{chunk-FE2UYWMQ.mjs → chunk-HZ7J23VD.mjs} +37 -44
- 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-4MIBATA4.mjs → chunk-LVAEW6WR.mjs} +15 -15
- 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-TSTU52NB.mjs → chunk-QFGVVQRM.mjs} +5 -5
- package/dist/{chunk-XAYP4CR3.mjs → chunk-SC2SILVU.mjs} +2 -2
- package/dist/{chunk-I33PMOA3.mjs → chunk-TNFNBUPA.mjs} +48 -47
- 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 +12 -5
- 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 +19 -12
- 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 +26 -19
- package/dist/components/date-input.mjs +3 -3
- package/dist/components/date-picker.js +12 -5
- 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 +503 -210
- package/dist/components/index.mjs +68 -60
- package/dist/components/input.d.ts +7 -0
- package/dist/components/input.js +55 -47
- 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 +22 -15
- 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 +44 -44
- 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 +36 -38
- 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 +528 -224
- 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,
|
|
@@ -2583,7 +2595,7 @@ var badge = tv({
|
|
|
2583
2595
|
// src/components/checkbox.ts
|
|
2584
2596
|
var checkbox = tv({
|
|
2585
2597
|
slots: {
|
|
2586
|
-
base: "group
|
|
2598
|
+
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
|
|
2587
2599
|
wrapper: [
|
|
2588
2600
|
"relative",
|
|
2589
2601
|
"inline-flex",
|
|
@@ -2604,12 +2616,12 @@ var checkbox = tv({
|
|
|
2604
2616
|
"after:scale-50",
|
|
2605
2617
|
"after:opacity-0",
|
|
2606
2618
|
"after:origin-center",
|
|
2607
|
-
"group-data-[selected=true]
|
|
2608
|
-
"group-data-[selected=true]
|
|
2609
|
-
"group-data-[hover=true]
|
|
2619
|
+
"group-data-[selected=true]:after:scale-100",
|
|
2620
|
+
"group-data-[selected=true]:after:opacity-100",
|
|
2621
|
+
"group-data-[hover=true]:before:bg-default-100",
|
|
2610
2622
|
...groupDataFocusVisibleClasses
|
|
2611
2623
|
],
|
|
2612
|
-
icon: "z-10 w-4 h-3 opacity-0 group-data-[selected=true]
|
|
2624
|
+
icon: "z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",
|
|
2613
2625
|
label: "relative text-foreground select-none"
|
|
2614
2626
|
},
|
|
2615
2627
|
variants: {
|
|
@@ -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)]"
|
|
@@ -2705,8 +2717,8 @@ var checkbox = tv({
|
|
|
2705
2717
|
"before:bg-foreground",
|
|
2706
2718
|
"before:w-0",
|
|
2707
2719
|
"before:h-0.5",
|
|
2708
|
-
"group-data-[selected=true]
|
|
2709
|
-
"group-data-[selected=true]
|
|
2720
|
+
"group-data-[selected=true]:opacity-60",
|
|
2721
|
+
"group-data-[selected=true]:before:w-full"
|
|
2710
2722
|
]
|
|
2711
2723
|
}
|
|
2712
2724
|
},
|
|
@@ -2730,7 +2742,7 @@ var checkbox = tv({
|
|
|
2730
2742
|
false: {
|
|
2731
2743
|
wrapper: [
|
|
2732
2744
|
"before:transition-colors",
|
|
2733
|
-
"group-data-[pressed=true]
|
|
2745
|
+
"group-data-[pressed=true]:scale-95",
|
|
2734
2746
|
"transition-transform",
|
|
2735
2747
|
"after:transition-transform-opacity",
|
|
2736
2748
|
"after:!ease-linear",
|
|
@@ -2784,7 +2796,7 @@ var checkboxGroup = tv({
|
|
|
2784
2796
|
// src/components/radio.ts
|
|
2785
2797
|
var radio = tv({
|
|
2786
2798
|
slots: {
|
|
2787
|
-
base: "group
|
|
2799
|
+
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
|
|
2788
2800
|
wrapper: [
|
|
2789
2801
|
"relative",
|
|
2790
2802
|
"inline-flex",
|
|
@@ -2797,7 +2809,7 @@ var radio = tv({
|
|
|
2797
2809
|
"box-border",
|
|
2798
2810
|
"border-default",
|
|
2799
2811
|
"rounded-full",
|
|
2800
|
-
"group-data-[hover-unselected=true]
|
|
2812
|
+
"group-data-[hover-unselected=true]:bg-default-100",
|
|
2801
2813
|
...groupDataFocusVisibleClasses
|
|
2802
2814
|
],
|
|
2803
2815
|
labelWrapper: "flex flex-col ml-1",
|
|
@@ -2809,8 +2821,8 @@ var radio = tv({
|
|
|
2809
2821
|
"scale-0",
|
|
2810
2822
|
"origin-center",
|
|
2811
2823
|
"rounded-full",
|
|
2812
|
-
"group-data-[selected=true]
|
|
2813
|
-
"group-data-[selected=true]
|
|
2824
|
+
"group-data-[selected=true]:opacity-100",
|
|
2825
|
+
"group-data-[selected=true]:scale-100"
|
|
2814
2826
|
],
|
|
2815
2827
|
label: "relative text-foreground select-none",
|
|
2816
2828
|
description: "relative text-foreground-400"
|
|
@@ -2819,27 +2831,27 @@ var radio = tv({
|
|
|
2819
2831
|
color: {
|
|
2820
2832
|
default: {
|
|
2821
2833
|
control: "bg-default-500 text-default-foreground",
|
|
2822
|
-
wrapper: "group-data-[selected=true]
|
|
2834
|
+
wrapper: "group-data-[selected=true]:border-default-500"
|
|
2823
2835
|
},
|
|
2824
2836
|
primary: {
|
|
2825
2837
|
control: "bg-primary text-primary-foreground",
|
|
2826
|
-
wrapper: "group-data-[selected=true]
|
|
2838
|
+
wrapper: "group-data-[selected=true]:border-primary"
|
|
2827
2839
|
},
|
|
2828
2840
|
secondary: {
|
|
2829
2841
|
control: "bg-secondary text-secondary-foreground",
|
|
2830
|
-
wrapper: "group-data-[selected=true]
|
|
2842
|
+
wrapper: "group-data-[selected=true]:border-secondary"
|
|
2831
2843
|
},
|
|
2832
2844
|
success: {
|
|
2833
2845
|
control: "bg-success text-success-foreground",
|
|
2834
|
-
wrapper: "group-data-[selected=true]
|
|
2846
|
+
wrapper: "group-data-[selected=true]:border-success"
|
|
2835
2847
|
},
|
|
2836
2848
|
warning: {
|
|
2837
2849
|
control: "bg-warning text-warning-foreground",
|
|
2838
|
-
wrapper: "group-data-[selected=true]
|
|
2850
|
+
wrapper: "group-data-[selected=true]:border-warning"
|
|
2839
2851
|
},
|
|
2840
2852
|
danger: {
|
|
2841
2853
|
control: "bg-danger text-danger-foreground",
|
|
2842
|
-
wrapper: "group-data-[selected=true]
|
|
2854
|
+
wrapper: "group-data-[selected=true]:border-danger"
|
|
2843
2855
|
}
|
|
2844
2856
|
},
|
|
2845
2857
|
size: {
|
|
@@ -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
|
}
|
|
@@ -2873,7 +2885,7 @@ var radio = tv({
|
|
|
2873
2885
|
isInvalid: {
|
|
2874
2886
|
true: {
|
|
2875
2887
|
control: "bg-danger text-danger-foreground",
|
|
2876
|
-
wrapper: "border-danger group-data-[selected=true]
|
|
2888
|
+
wrapper: "border-danger group-data-[selected=true]:border-danger",
|
|
2877
2889
|
label: "text-danger",
|
|
2878
2890
|
description: "text-danger-300"
|
|
2879
2891
|
}
|
|
@@ -2882,7 +2894,7 @@ var radio = tv({
|
|
|
2882
2894
|
true: {},
|
|
2883
2895
|
false: {
|
|
2884
2896
|
wrapper: [
|
|
2885
|
-
"group-data-[pressed=true]
|
|
2897
|
+
"group-data-[pressed=true]:scale-95",
|
|
2886
2898
|
"transition-transform-colors",
|
|
2887
2899
|
"motion-reduce:transition-none"
|
|
2888
2900
|
],
|
|
@@ -3331,7 +3343,7 @@ var pagination = tv({
|
|
|
3331
3343
|
// src/components/toggle.ts
|
|
3332
3344
|
var toggle = tv({
|
|
3333
3345
|
slots: {
|
|
3334
|
-
base: "group
|
|
3346
|
+
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent select-none",
|
|
3335
3347
|
wrapper: [
|
|
3336
3348
|
"px-1",
|
|
3337
3349
|
"relative",
|
|
@@ -3354,76 +3366,76 @@ 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: {
|
|
3364
3376
|
default: {
|
|
3365
3377
|
wrapper: [
|
|
3366
|
-
"group-data-[selected=true]
|
|
3367
|
-
"group-data-[selected=true]
|
|
3378
|
+
"group-data-[selected=true]:bg-default-400",
|
|
3379
|
+
"group-data-[selected=true]:text-default-foreground"
|
|
3368
3380
|
]
|
|
3369
3381
|
},
|
|
3370
3382
|
primary: {
|
|
3371
3383
|
wrapper: [
|
|
3372
|
-
"group-data-[selected=true]
|
|
3373
|
-
"group-data-[selected=true]
|
|
3384
|
+
"group-data-[selected=true]:bg-primary",
|
|
3385
|
+
"group-data-[selected=true]:text-primary-foreground"
|
|
3374
3386
|
]
|
|
3375
3387
|
},
|
|
3376
3388
|
secondary: {
|
|
3377
3389
|
wrapper: [
|
|
3378
|
-
"group-data-[selected=true]
|
|
3379
|
-
"group-data-[selected=true]
|
|
3390
|
+
"group-data-[selected=true]:bg-secondary",
|
|
3391
|
+
"group-data-[selected=true]:text-secondary-foreground"
|
|
3380
3392
|
]
|
|
3381
3393
|
},
|
|
3382
3394
|
success: {
|
|
3383
3395
|
wrapper: [
|
|
3384
|
-
"group-data-[selected=true]
|
|
3385
|
-
"group-data-[selected=true]
|
|
3396
|
+
"group-data-[selected=true]:bg-success",
|
|
3397
|
+
"group-data-[selected=true]:text-success-foreground"
|
|
3386
3398
|
]
|
|
3387
3399
|
},
|
|
3388
3400
|
warning: {
|
|
3389
3401
|
wrapper: [
|
|
3390
|
-
"group-data-[selected=true]
|
|
3391
|
-
"group-data-[selected=true]
|
|
3402
|
+
"group-data-[selected=true]:bg-warning",
|
|
3403
|
+
"group-data-[selected=true]:text-warning-foreground"
|
|
3392
3404
|
]
|
|
3393
3405
|
},
|
|
3394
3406
|
danger: {
|
|
3395
3407
|
wrapper: [
|
|
3396
|
-
"group-data-[selected=true]
|
|
3408
|
+
"group-data-[selected=true]:bg-danger",
|
|
3397
3409
|
"data-[selected=true]:text-danger-foreground"
|
|
3398
3410
|
]
|
|
3399
3411
|
}
|
|
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",
|
|
@@ -3447,14 +3459,14 @@ var toggle = tv({
|
|
|
3447
3459
|
"opacity-0",
|
|
3448
3460
|
"scale-50",
|
|
3449
3461
|
"transition-transform-opacity",
|
|
3450
|
-
"group-data-[selected=true]
|
|
3451
|
-
"group-data-[selected=true]
|
|
3462
|
+
"group-data-[selected=true]:scale-100",
|
|
3463
|
+
"group-data-[selected=true]:opacity-100"
|
|
3452
3464
|
],
|
|
3453
3465
|
endContent: [
|
|
3454
3466
|
"opacity-100",
|
|
3455
3467
|
"transition-transform-opacity",
|
|
3456
|
-
"group-data-[selected=true]
|
|
3457
|
-
"group-data-[selected=true]
|
|
3468
|
+
"group-data-[selected=true]:translate-x-3",
|
|
3469
|
+
"group-data-[selected=true]:opacity-0"
|
|
3458
3470
|
]
|
|
3459
3471
|
}
|
|
3460
3472
|
}
|
|
@@ -3469,30 +3481,21 @@ var toggle = tv({
|
|
|
3469
3481
|
disableAnimation: false,
|
|
3470
3482
|
size: "sm",
|
|
3471
3483
|
class: {
|
|
3472
|
-
thumb: [
|
|
3473
|
-
"group-data-[pressed=true]/toggle:w-5",
|
|
3474
|
-
"group-data-[selected]/toggle:group-data-[pressed]/toggle:ml-3"
|
|
3475
|
-
]
|
|
3484
|
+
thumb: ["group-data-[pressed=true]:w-5", "group-data-[selected]:group-data-[pressed]:ml-3"]
|
|
3476
3485
|
}
|
|
3477
3486
|
},
|
|
3478
3487
|
{
|
|
3479
3488
|
disableAnimation: false,
|
|
3480
3489
|
size: "md",
|
|
3481
3490
|
class: {
|
|
3482
|
-
thumb: [
|
|
3483
|
-
"group-data-[pressed=true]/toggle:w-6",
|
|
3484
|
-
"group-data-[selected]/toggle:group-data-[pressed]/toggle:ml-4"
|
|
3485
|
-
]
|
|
3491
|
+
thumb: ["group-data-[pressed=true]:w-6", "group-data-[selected]:group-data-[pressed]:ml-4"]
|
|
3486
3492
|
}
|
|
3487
3493
|
},
|
|
3488
3494
|
{
|
|
3489
3495
|
disableAnimation: false,
|
|
3490
3496
|
size: "lg",
|
|
3491
3497
|
class: {
|
|
3492
|
-
thumb: [
|
|
3493
|
-
"group-data-[pressed=true]/toggle:w-7",
|
|
3494
|
-
"group-data-[selected]/toggle:group-data-[pressed]/toggle:ml-5"
|
|
3495
|
-
]
|
|
3498
|
+
thumb: ["group-data-[pressed=true]:w-7", "group-data-[selected]:group-data-[pressed]:ml-5"]
|
|
3496
3499
|
}
|
|
3497
3500
|
}
|
|
3498
3501
|
]
|
|
@@ -3657,7 +3660,7 @@ var progress = tv(
|
|
|
3657
3660
|
},
|
|
3658
3661
|
isStriped: {
|
|
3659
3662
|
true: {
|
|
3660
|
-
indicator: "bg-stripe-gradient bg-
|
|
3663
|
+
indicator: "bg-stripe-gradient-default bg-stripe-size"
|
|
3661
3664
|
}
|
|
3662
3665
|
},
|
|
3663
3666
|
isIndeterminate: {
|
|
@@ -3692,6 +3695,41 @@ var progress = tv(
|
|
|
3692
3695
|
class: {
|
|
3693
3696
|
indicator: "!transition-none motion-reduce:transition-none"
|
|
3694
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
|
+
}
|
|
3695
3733
|
}
|
|
3696
3734
|
]
|
|
3697
3735
|
},
|
|
@@ -3785,7 +3823,7 @@ var circularProgress = tv({
|
|
|
3785
3823
|
// src/components/input.ts
|
|
3786
3824
|
var input = tv({
|
|
3787
3825
|
slots: {
|
|
3788
|
-
base: "group
|
|
3826
|
+
base: "group flex flex-col data-[hidden=true]:hidden",
|
|
3789
3827
|
label: [
|
|
3790
3828
|
"absolute",
|
|
3791
3829
|
"z-10",
|
|
@@ -3825,7 +3863,7 @@ var input = tv({
|
|
|
3825
3863
|
"rounded-full",
|
|
3826
3864
|
...dataFocusVisibleClasses
|
|
3827
3865
|
],
|
|
3828
|
-
helperWrapper: "hidden group-data-[has-helper=true]
|
|
3866
|
+
helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
|
|
3829
3867
|
description: "text-tiny text-foreground-400",
|
|
3830
3868
|
errorMessage: "text-tiny text-danger"
|
|
3831
3869
|
},
|
|
@@ -3835,7 +3873,7 @@ var input = tv({
|
|
|
3835
3873
|
inputWrapper: [
|
|
3836
3874
|
"bg-default-100",
|
|
3837
3875
|
"data-[hover=true]:bg-default-200",
|
|
3838
|
-
"group-data-[focus=true]
|
|
3876
|
+
"group-data-[focus=true]:bg-default-100"
|
|
3839
3877
|
]
|
|
3840
3878
|
},
|
|
3841
3879
|
faded: {
|
|
@@ -3845,14 +3883,14 @@ var input = tv({
|
|
|
3845
3883
|
"border-default-200",
|
|
3846
3884
|
"data-[hover=true]:border-default-400"
|
|
3847
3885
|
],
|
|
3848
|
-
value: "group-data-[has-value=true]
|
|
3886
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
3849
3887
|
},
|
|
3850
3888
|
bordered: {
|
|
3851
3889
|
inputWrapper: [
|
|
3852
3890
|
"border-medium",
|
|
3853
3891
|
"border-default-200",
|
|
3854
3892
|
"data-[hover=true]:border-default-400",
|
|
3855
|
-
"group-data-[focus=true]
|
|
3893
|
+
"group-data-[focus=true]:border-default-foreground"
|
|
3856
3894
|
]
|
|
3857
3895
|
},
|
|
3858
3896
|
underlined: {
|
|
@@ -3876,10 +3914,10 @@ var input = tv({
|
|
|
3876
3914
|
"after:-translate-x-1/2",
|
|
3877
3915
|
"after:-bottom-[2px]",
|
|
3878
3916
|
"after:h-[2px]",
|
|
3879
|
-
"group-data-[focus=true]
|
|
3917
|
+
"group-data-[focus=true]:after:w-full"
|
|
3880
3918
|
],
|
|
3881
3919
|
innerWrapper: "pb-1",
|
|
3882
|
-
label: "group-data-[filled-within=true]
|
|
3920
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
3883
3921
|
}
|
|
3884
3922
|
},
|
|
3885
3923
|
color: {
|
|
@@ -3938,17 +3976,18 @@ var input = tv({
|
|
|
3938
3976
|
inside: {
|
|
3939
3977
|
label: "text-tiny cursor-text",
|
|
3940
3978
|
inputWrapper: "flex-col items-start justify-center gap-0",
|
|
3941
|
-
innerWrapper: "group-data-[has-label=true]
|
|
3979
|
+
innerWrapper: "group-data-[has-label=true]:items-end"
|
|
3942
3980
|
}
|
|
3943
3981
|
},
|
|
3944
3982
|
fullWidth: {
|
|
3945
3983
|
true: {
|
|
3946
3984
|
base: "w-full"
|
|
3947
|
-
}
|
|
3985
|
+
},
|
|
3986
|
+
false: {}
|
|
3948
3987
|
},
|
|
3949
3988
|
isClearable: {
|
|
3950
3989
|
true: {
|
|
3951
|
-
input: "peer
|
|
3990
|
+
input: "peer pe-6 input-search-cancel-button-none",
|
|
3952
3991
|
clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
|
|
3953
3992
|
}
|
|
3954
3993
|
},
|
|
@@ -3967,14 +4006,14 @@ var input = tv({
|
|
|
3967
4006
|
},
|
|
3968
4007
|
isRequired: {
|
|
3969
4008
|
true: {
|
|
3970
|
-
label: "after:content-['*'] after:text-danger after:
|
|
4009
|
+
label: "after:content-['*'] after:text-danger after:ms-0.5"
|
|
3971
4010
|
}
|
|
3972
4011
|
},
|
|
3973
4012
|
isMultiline: {
|
|
3974
4013
|
true: {
|
|
3975
4014
|
label: "relative",
|
|
3976
4015
|
inputWrapper: "!h-auto",
|
|
3977
|
-
innerWrapper: "items-start group-data-[has-label=true]
|
|
4016
|
+
innerWrapper: "items-start group-data-[has-label=true]:items-start",
|
|
3978
4017
|
input: "resize-none data-[hide-scroll=true]:scrollbar-hide"
|
|
3979
4018
|
}
|
|
3980
4019
|
},
|
|
@@ -4011,7 +4050,7 @@ var input = tv({
|
|
|
4011
4050
|
variant: "flat",
|
|
4012
4051
|
color: "default",
|
|
4013
4052
|
class: {
|
|
4014
|
-
input: "group-data-[has-value=true]
|
|
4053
|
+
input: "group-data-[has-value=true]:text-default-foreground"
|
|
4015
4054
|
}
|
|
4016
4055
|
},
|
|
4017
4056
|
{
|
|
@@ -4022,7 +4061,7 @@ var input = tv({
|
|
|
4022
4061
|
"bg-primary-50",
|
|
4023
4062
|
"data-[hover=true]:bg-primary-100",
|
|
4024
4063
|
"text-primary",
|
|
4025
|
-
"group-data-[focus=true]
|
|
4064
|
+
"group-data-[focus=true]:bg-primary-50",
|
|
4026
4065
|
"placeholder:text-primary"
|
|
4027
4066
|
],
|
|
4028
4067
|
input: "placeholder:text-primary",
|
|
@@ -4037,7 +4076,7 @@ var input = tv({
|
|
|
4037
4076
|
"bg-secondary-50",
|
|
4038
4077
|
"text-secondary",
|
|
4039
4078
|
"data-[hover=true]:bg-secondary-100",
|
|
4040
|
-
"group-data-[focus=true]
|
|
4079
|
+
"group-data-[focus=true]:bg-secondary-50",
|
|
4041
4080
|
"placeholder:text-secondary"
|
|
4042
4081
|
],
|
|
4043
4082
|
input: "placeholder:text-secondary",
|
|
@@ -4055,7 +4094,7 @@ var input = tv({
|
|
|
4055
4094
|
"placeholder:text-success-600",
|
|
4056
4095
|
"dark:placeholder:text-success",
|
|
4057
4096
|
"data-[hover=true]:bg-success-100",
|
|
4058
|
-
"group-data-[focus=true]
|
|
4097
|
+
"group-data-[focus=true]:bg-success-50"
|
|
4059
4098
|
],
|
|
4060
4099
|
input: "placeholder:text-success-600 dark:placeholder:text-success",
|
|
4061
4100
|
label: "text-success-600 dark:text-success"
|
|
@@ -4072,7 +4111,7 @@ var input = tv({
|
|
|
4072
4111
|
"placeholder:text-warning-600",
|
|
4073
4112
|
"dark:placeholder:text-warning",
|
|
4074
4113
|
"data-[hover=true]:bg-warning-100",
|
|
4075
|
-
"group-data-[focus=true]
|
|
4114
|
+
"group-data-[focus=true]:bg-warning-50"
|
|
4076
4115
|
],
|
|
4077
4116
|
input: "placeholder:text-warning-600 dark:placeholder:text-warning",
|
|
4078
4117
|
label: "text-warning-600 dark:text-warning"
|
|
@@ -4089,7 +4128,7 @@ var input = tv({
|
|
|
4089
4128
|
"placeholder:text-danger",
|
|
4090
4129
|
"dark:placeholder:text-danger-500",
|
|
4091
4130
|
"data-[hover=true]:bg-danger-100",
|
|
4092
|
-
"group-data-[focus=true]
|
|
4131
|
+
"group-data-[focus=true]:bg-danger-50"
|
|
4093
4132
|
],
|
|
4094
4133
|
input: "placeholder:text-danger dark:placeholder:text-danger-500",
|
|
4095
4134
|
label: "text-danger dark:text-danger-500"
|
|
@@ -4139,7 +4178,7 @@ var input = tv({
|
|
|
4139
4178
|
variant: "underlined",
|
|
4140
4179
|
color: "default",
|
|
4141
4180
|
class: {
|
|
4142
|
-
input: "group-data-[has-value=true]
|
|
4181
|
+
input: "group-data-[has-value=true]:text-foreground"
|
|
4143
4182
|
}
|
|
4144
4183
|
},
|
|
4145
4184
|
{
|
|
@@ -4186,7 +4225,7 @@ var input = tv({
|
|
|
4186
4225
|
variant: "bordered",
|
|
4187
4226
|
color: "primary",
|
|
4188
4227
|
class: {
|
|
4189
|
-
inputWrapper: "group-data-[focus=true]
|
|
4228
|
+
inputWrapper: "group-data-[focus=true]:border-primary",
|
|
4190
4229
|
label: "text-primary"
|
|
4191
4230
|
}
|
|
4192
4231
|
},
|
|
@@ -4194,7 +4233,7 @@ var input = tv({
|
|
|
4194
4233
|
variant: "bordered",
|
|
4195
4234
|
color: "secondary",
|
|
4196
4235
|
class: {
|
|
4197
|
-
inputWrapper: "group-data-[focus=true]
|
|
4236
|
+
inputWrapper: "group-data-[focus=true]:border-secondary",
|
|
4198
4237
|
label: "text-secondary"
|
|
4199
4238
|
}
|
|
4200
4239
|
},
|
|
@@ -4202,7 +4241,7 @@ var input = tv({
|
|
|
4202
4241
|
variant: "bordered",
|
|
4203
4242
|
color: "success",
|
|
4204
4243
|
class: {
|
|
4205
|
-
inputWrapper: "group-data-[focus=true]
|
|
4244
|
+
inputWrapper: "group-data-[focus=true]:border-success",
|
|
4206
4245
|
label: "text-success"
|
|
4207
4246
|
}
|
|
4208
4247
|
},
|
|
@@ -4210,7 +4249,7 @@ var input = tv({
|
|
|
4210
4249
|
variant: "bordered",
|
|
4211
4250
|
color: "warning",
|
|
4212
4251
|
class: {
|
|
4213
|
-
inputWrapper: "group-data-[focus=true]
|
|
4252
|
+
inputWrapper: "group-data-[focus=true]:border-warning",
|
|
4214
4253
|
label: "text-warning"
|
|
4215
4254
|
}
|
|
4216
4255
|
},
|
|
@@ -4218,7 +4257,7 @@ var input = tv({
|
|
|
4218
4257
|
variant: "bordered",
|
|
4219
4258
|
color: "danger",
|
|
4220
4259
|
class: {
|
|
4221
|
-
inputWrapper: "group-data-[focus=true]
|
|
4260
|
+
inputWrapper: "group-data-[focus=true]:border-danger",
|
|
4222
4261
|
label: "text-danger"
|
|
4223
4262
|
}
|
|
4224
4263
|
},
|
|
@@ -4226,14 +4265,14 @@ var input = tv({
|
|
|
4226
4265
|
labelPlacement: "inside",
|
|
4227
4266
|
color: "default",
|
|
4228
4267
|
class: {
|
|
4229
|
-
label: "group-data-[filled-within=true]
|
|
4268
|
+
label: "group-data-[filled-within=true]:text-default-600"
|
|
4230
4269
|
}
|
|
4231
4270
|
},
|
|
4232
4271
|
{
|
|
4233
4272
|
labelPlacement: "outside",
|
|
4234
4273
|
color: "default",
|
|
4235
4274
|
class: {
|
|
4236
|
-
label: "group-data-[filled-within=true]
|
|
4275
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
4237
4276
|
}
|
|
4238
4277
|
},
|
|
4239
4278
|
{
|
|
@@ -4286,7 +4325,7 @@ var input = tv({
|
|
|
4286
4325
|
inputWrapper: [
|
|
4287
4326
|
"!bg-danger-50",
|
|
4288
4327
|
"data-[hover=true]:!bg-danger-100",
|
|
4289
|
-
"group-data-[focus=true]
|
|
4328
|
+
"group-data-[focus=true]:!bg-danger-50"
|
|
4290
4329
|
]
|
|
4291
4330
|
}
|
|
4292
4331
|
},
|
|
@@ -4294,7 +4333,7 @@ var input = tv({
|
|
|
4294
4333
|
isInvalid: true,
|
|
4295
4334
|
variant: "bordered",
|
|
4296
4335
|
class: {
|
|
4297
|
-
inputWrapper: "!border-danger group-data-[focus=true]
|
|
4336
|
+
inputWrapper: "!border-danger group-data-[focus=true]:!border-danger"
|
|
4298
4337
|
}
|
|
4299
4338
|
},
|
|
4300
4339
|
{
|
|
@@ -4337,7 +4376,7 @@ var input = tv({
|
|
|
4337
4376
|
{
|
|
4338
4377
|
labelPlacement: ["inside", "outside"],
|
|
4339
4378
|
class: {
|
|
4340
|
-
label: ["group-data-[filled-within=true]
|
|
4379
|
+
label: ["group-data-[filled-within=true]:pointer-events-auto"]
|
|
4341
4380
|
}
|
|
4342
4381
|
},
|
|
4343
4382
|
{
|
|
@@ -4350,14 +4389,14 @@ var input = tv({
|
|
|
4350
4389
|
"z-20",
|
|
4351
4390
|
"top-1/2",
|
|
4352
4391
|
"-translate-y-1/2",
|
|
4353
|
-
"group-data-[filled-within=true]
|
|
4392
|
+
"group-data-[filled-within=true]:start-0"
|
|
4354
4393
|
]
|
|
4355
4394
|
}
|
|
4356
4395
|
},
|
|
4357
4396
|
{
|
|
4358
4397
|
labelPlacement: ["inside"],
|
|
4359
4398
|
class: {
|
|
4360
|
-
label: ["group-data-[filled-within=true]
|
|
4399
|
+
label: ["group-data-[filled-within=true]:scale-85"]
|
|
4361
4400
|
}
|
|
4362
4401
|
},
|
|
4363
4402
|
{
|
|
@@ -4394,7 +4433,7 @@ var input = tv({
|
|
|
4394
4433
|
size: "sm",
|
|
4395
4434
|
class: {
|
|
4396
4435
|
label: [
|
|
4397
|
-
"group-data-[filled-within=true]
|
|
4436
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"
|
|
4398
4437
|
]
|
|
4399
4438
|
}
|
|
4400
4439
|
},
|
|
@@ -4404,7 +4443,7 @@ var input = tv({
|
|
|
4404
4443
|
size: "md",
|
|
4405
4444
|
class: {
|
|
4406
4445
|
label: [
|
|
4407
|
-
"group-data-[filled-within=true]
|
|
4446
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
4408
4447
|
]
|
|
4409
4448
|
}
|
|
4410
4449
|
},
|
|
@@ -4415,7 +4454,7 @@ var input = tv({
|
|
|
4415
4454
|
class: {
|
|
4416
4455
|
label: [
|
|
4417
4456
|
"text-medium",
|
|
4418
|
-
"group-data-[filled-within=true]
|
|
4457
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
4419
4458
|
]
|
|
4420
4459
|
}
|
|
4421
4460
|
},
|
|
@@ -4426,7 +4465,7 @@ var input = tv({
|
|
|
4426
4465
|
size: "sm",
|
|
4427
4466
|
class: {
|
|
4428
4467
|
label: [
|
|
4429
|
-
"group-data-[filled-within=true]
|
|
4468
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
4430
4469
|
]
|
|
4431
4470
|
}
|
|
4432
4471
|
},
|
|
@@ -4437,7 +4476,7 @@ var input = tv({
|
|
|
4437
4476
|
size: "md",
|
|
4438
4477
|
class: {
|
|
4439
4478
|
label: [
|
|
4440
|
-
"group-data-[filled-within=true]
|
|
4479
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
4441
4480
|
]
|
|
4442
4481
|
}
|
|
4443
4482
|
},
|
|
@@ -4449,7 +4488,7 @@ var input = tv({
|
|
|
4449
4488
|
class: {
|
|
4450
4489
|
label: [
|
|
4451
4490
|
"text-medium",
|
|
4452
|
-
"group-data-[filled-within=true]
|
|
4491
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
4453
4492
|
]
|
|
4454
4493
|
}
|
|
4455
4494
|
},
|
|
@@ -4460,7 +4499,7 @@ var input = tv({
|
|
|
4460
4499
|
size: "sm",
|
|
4461
4500
|
class: {
|
|
4462
4501
|
label: [
|
|
4463
|
-
"group-data-[filled-within=true]
|
|
4502
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"
|
|
4464
4503
|
]
|
|
4465
4504
|
}
|
|
4466
4505
|
},
|
|
@@ -4471,7 +4510,7 @@ var input = tv({
|
|
|
4471
4510
|
size: "md",
|
|
4472
4511
|
class: {
|
|
4473
4512
|
label: [
|
|
4474
|
-
"group-data-[filled-within=true]
|
|
4513
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
4475
4514
|
]
|
|
4476
4515
|
}
|
|
4477
4516
|
},
|
|
@@ -4483,7 +4522,7 @@ var input = tv({
|
|
|
4483
4522
|
class: {
|
|
4484
4523
|
label: [
|
|
4485
4524
|
"text-medium",
|
|
4486
|
-
"group-data-[filled-within=true]
|
|
4525
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
4487
4526
|
]
|
|
4488
4527
|
}
|
|
4489
4528
|
},
|
|
@@ -4495,7 +4534,7 @@ var input = tv({
|
|
|
4495
4534
|
label: [
|
|
4496
4535
|
"start-2",
|
|
4497
4536
|
"text-tiny",
|
|
4498
|
-
"group-data-[filled-within=true]
|
|
4537
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
4499
4538
|
],
|
|
4500
4539
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
4501
4540
|
}
|
|
@@ -4509,7 +4548,7 @@ var input = tv({
|
|
|
4509
4548
|
"start-3",
|
|
4510
4549
|
"end-auto",
|
|
4511
4550
|
"text-small",
|
|
4512
|
-
"group-data-[filled-within=true]
|
|
4551
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
4513
4552
|
],
|
|
4514
4553
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
4515
4554
|
}
|
|
@@ -4523,7 +4562,7 @@ var input = tv({
|
|
|
4523
4562
|
"start-3",
|
|
4524
4563
|
"end-auto",
|
|
4525
4564
|
"text-medium",
|
|
4526
|
-
"group-data-[filled-within=true]
|
|
4565
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
4527
4566
|
],
|
|
4528
4567
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
4529
4568
|
}
|
|
@@ -4532,21 +4571,21 @@ var input = tv({
|
|
|
4532
4571
|
labelPlacement: "outside-left",
|
|
4533
4572
|
size: "sm",
|
|
4534
4573
|
class: {
|
|
4535
|
-
label: "group-data-[has-helper=true]
|
|
4574
|
+
label: "group-data-[has-helper=true]:pt-2"
|
|
4536
4575
|
}
|
|
4537
4576
|
},
|
|
4538
4577
|
{
|
|
4539
4578
|
labelPlacement: "outside-left",
|
|
4540
4579
|
size: "md",
|
|
4541
4580
|
class: {
|
|
4542
|
-
label: "group-data-[has-helper=true]
|
|
4581
|
+
label: "group-data-[has-helper=true]:pt-3"
|
|
4543
4582
|
}
|
|
4544
4583
|
},
|
|
4545
4584
|
{
|
|
4546
4585
|
labelPlacement: "outside-left",
|
|
4547
4586
|
size: "lg",
|
|
4548
4587
|
class: {
|
|
4549
|
-
label: "group-data-[has-helper=true]
|
|
4588
|
+
label: "group-data-[has-helper=true]:pt-4"
|
|
4550
4589
|
}
|
|
4551
4590
|
},
|
|
4552
4591
|
{
|
|
@@ -5116,9 +5155,7 @@ var modal = tv({
|
|
|
5116
5155
|
"outline-none",
|
|
5117
5156
|
"select-none",
|
|
5118
5157
|
"top-1",
|
|
5119
|
-
"
|
|
5120
|
-
"rtl:left-1",
|
|
5121
|
-
"rtl:right-[unset]",
|
|
5158
|
+
"end-1",
|
|
5122
5159
|
"p-2",
|
|
5123
5160
|
"text-foreground-500",
|
|
5124
5161
|
"rounded-full",
|
|
@@ -5469,9 +5506,9 @@ var table = tv({
|
|
|
5469
5506
|
table: "min-w-full h-auto",
|
|
5470
5507
|
thead: "[&>tr]:first:rounded-lg",
|
|
5471
5508
|
tbody: "",
|
|
5472
|
-
tr: ["group", "outline-none", ...dataFocusVisibleClasses],
|
|
5509
|
+
tr: ["group/tr", "outline-none", ...dataFocusVisibleClasses],
|
|
5473
5510
|
th: [
|
|
5474
|
-
"group",
|
|
5511
|
+
"group/th",
|
|
5475
5512
|
"px-3",
|
|
5476
5513
|
"h-10",
|
|
5477
5514
|
"text-start",
|
|
@@ -5506,8 +5543,8 @@ var table = tv({
|
|
|
5506
5543
|
"before:inset-0",
|
|
5507
5544
|
"before:opacity-0",
|
|
5508
5545
|
"data-[selected=true]:before:opacity-100",
|
|
5509
|
-
"group-data-[disabled=true]:text-foreground-300",
|
|
5510
|
-
"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"
|
|
5511
5548
|
],
|
|
5512
5549
|
tfoot: "",
|
|
5513
5550
|
sortIcon: [
|
|
@@ -5518,7 +5555,7 @@ var table = tv({
|
|
|
5518
5555
|
"inline-block",
|
|
5519
5556
|
"transition-transform-opacity",
|
|
5520
5557
|
"data-[visible=true]:opacity-100",
|
|
5521
|
-
"group-data-[hover=true]:opacity-100",
|
|
5558
|
+
"group-data-[hover=true]/th:opacity-100",
|
|
5522
5559
|
"data-[direction=ascending]:rotate-180"
|
|
5523
5560
|
],
|
|
5524
5561
|
emptyWrapper: "text-foreground-400 align-middle text-center h-40",
|
|
@@ -5589,9 +5626,9 @@ var table = tv({
|
|
|
5589
5626
|
isStriped: {
|
|
5590
5627
|
true: {
|
|
5591
5628
|
td: [
|
|
5592
|
-
"group-data-[odd=true]:before:bg-default-100",
|
|
5593
|
-
"group-data-[odd=true]:before:opacity-100",
|
|
5594
|
-
"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"
|
|
5595
5632
|
]
|
|
5596
5633
|
}
|
|
5597
5634
|
},
|
|
@@ -5610,19 +5647,19 @@ var table = tv({
|
|
|
5610
5647
|
true: {
|
|
5611
5648
|
tr: "cursor-default",
|
|
5612
5649
|
td: [
|
|
5613
|
-
"group-aria-[selected=false]:group-data-[hover=true]:before:bg-default-100",
|
|
5614
|
-
"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"
|
|
5615
5652
|
]
|
|
5616
5653
|
}
|
|
5617
5654
|
},
|
|
5618
5655
|
isMultiSelectable: {
|
|
5619
5656
|
true: {
|
|
5620
5657
|
td: [
|
|
5621
|
-
"group-data-[first=true]:first:before:rounded-ts-lg",
|
|
5622
|
-
"group-data-[first=true]:last:before:rounded-te-lg",
|
|
5623
|
-
"group-data-[middle=true]:before:rounded-none",
|
|
5624
|
-
"group-data-[last=true]:first:before:rounded-bs-lg",
|
|
5625
|
-
"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"
|
|
5626
5663
|
]
|
|
5627
5664
|
},
|
|
5628
5665
|
false: {
|
|
@@ -5667,42 +5704,42 @@ var table = tv({
|
|
|
5667
5704
|
isStriped: true,
|
|
5668
5705
|
color: "default",
|
|
5669
5706
|
class: {
|
|
5670
|
-
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"
|
|
5671
5708
|
}
|
|
5672
5709
|
},
|
|
5673
5710
|
{
|
|
5674
5711
|
isStriped: true,
|
|
5675
5712
|
color: "primary",
|
|
5676
5713
|
class: {
|
|
5677
|
-
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"
|
|
5678
5715
|
}
|
|
5679
5716
|
},
|
|
5680
5717
|
{
|
|
5681
5718
|
isStriped: true,
|
|
5682
5719
|
color: "secondary",
|
|
5683
5720
|
class: {
|
|
5684
|
-
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"
|
|
5685
5722
|
}
|
|
5686
5723
|
},
|
|
5687
5724
|
{
|
|
5688
5725
|
isStriped: true,
|
|
5689
5726
|
color: "success",
|
|
5690
5727
|
class: {
|
|
5691
|
-
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"
|
|
5692
5729
|
}
|
|
5693
5730
|
},
|
|
5694
5731
|
{
|
|
5695
5732
|
isStriped: true,
|
|
5696
5733
|
color: "warning",
|
|
5697
5734
|
class: {
|
|
5698
|
-
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"
|
|
5699
5736
|
}
|
|
5700
5737
|
},
|
|
5701
5738
|
{
|
|
5702
5739
|
isStriped: true,
|
|
5703
5740
|
color: "danger",
|
|
5704
5741
|
class: {
|
|
5705
|
-
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"
|
|
5706
5743
|
}
|
|
5707
5744
|
}
|
|
5708
5745
|
]
|
|
@@ -6198,7 +6235,7 @@ var skeleton = tv({
|
|
|
6198
6235
|
// src/components/select.ts
|
|
6199
6236
|
var select = tv({
|
|
6200
6237
|
slots: {
|
|
6201
|
-
base: ["group
|
|
6238
|
+
base: ["group inline-flex flex-col relative"],
|
|
6202
6239
|
label: [
|
|
6203
6240
|
"block",
|
|
6204
6241
|
"absolute",
|
|
@@ -6215,7 +6252,7 @@ var select = tv({
|
|
|
6215
6252
|
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",
|
|
6216
6253
|
selectorIcon: "absolute end-3 w-4 h-4",
|
|
6217
6254
|
spinner: "absolute end-3",
|
|
6218
|
-
value: ["text-foreground-500", "font-normal", "w-full", "text-
|
|
6255
|
+
value: ["text-foreground-500", "font-normal", "w-full", "text-start"],
|
|
6219
6256
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
6220
6257
|
listbox: "",
|
|
6221
6258
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -6229,7 +6266,7 @@ var select = tv({
|
|
|
6229
6266
|
trigger: [
|
|
6230
6267
|
"bg-default-100",
|
|
6231
6268
|
"data-[hover=true]:bg-default-200",
|
|
6232
|
-
"group-data-[focus=true]
|
|
6269
|
+
"group-data-[focus=true]:bg-default-100"
|
|
6233
6270
|
]
|
|
6234
6271
|
},
|
|
6235
6272
|
faded: {
|
|
@@ -6240,7 +6277,7 @@ var select = tv({
|
|
|
6240
6277
|
"border-default-200",
|
|
6241
6278
|
"data-[hover=true]:border-default-400"
|
|
6242
6279
|
],
|
|
6243
|
-
value: "group-data-[has-value=true]
|
|
6280
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
6244
6281
|
},
|
|
6245
6282
|
bordered: {
|
|
6246
6283
|
trigger: [
|
|
@@ -6277,7 +6314,7 @@ var select = tv({
|
|
|
6277
6314
|
"data-[open=true]:after:w-full",
|
|
6278
6315
|
"data-[focus=true]:after:w-full"
|
|
6279
6316
|
],
|
|
6280
|
-
value: "group-data-[has-value=true]
|
|
6317
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
6281
6318
|
}
|
|
6282
6319
|
},
|
|
6283
6320
|
color: {
|
|
@@ -6336,6 +6373,9 @@ var select = tv({
|
|
|
6336
6373
|
fullWidth: {
|
|
6337
6374
|
true: {
|
|
6338
6375
|
base: "w-full"
|
|
6376
|
+
},
|
|
6377
|
+
false: {
|
|
6378
|
+
base: "min-w-40"
|
|
6339
6379
|
}
|
|
6340
6380
|
},
|
|
6341
6381
|
isDisabled: {
|
|
@@ -6408,7 +6448,7 @@ var select = tv({
|
|
|
6408
6448
|
variant: "flat",
|
|
6409
6449
|
color: "default",
|
|
6410
6450
|
class: {
|
|
6411
|
-
value: "group-data-[has-value=true]
|
|
6451
|
+
value: "group-data-[has-value=true]:text-default-foreground",
|
|
6412
6452
|
trigger: ["bg-default-100", "data-[hover=true]:bg-default-50"]
|
|
6413
6453
|
}
|
|
6414
6454
|
},
|
|
@@ -6420,7 +6460,7 @@ var select = tv({
|
|
|
6420
6460
|
"bg-primary-100",
|
|
6421
6461
|
"text-primary",
|
|
6422
6462
|
"data-[hover=true]:bg-primary-50",
|
|
6423
|
-
"group-data-[focus=true]
|
|
6463
|
+
"group-data-[focus=true]:bg-primary-50"
|
|
6424
6464
|
],
|
|
6425
6465
|
value: "text-primary",
|
|
6426
6466
|
label: "text-primary"
|
|
@@ -6434,7 +6474,7 @@ var select = tv({
|
|
|
6434
6474
|
"bg-secondary-100",
|
|
6435
6475
|
"text-secondary",
|
|
6436
6476
|
"data-[hover=true]:bg-secondary-50",
|
|
6437
|
-
"group-data-[focus=true]
|
|
6477
|
+
"group-data-[focus=true]:bg-secondary-50"
|
|
6438
6478
|
],
|
|
6439
6479
|
value: "text-secondary",
|
|
6440
6480
|
label: "text-secondary"
|
|
@@ -6449,7 +6489,7 @@ var select = tv({
|
|
|
6449
6489
|
"text-success-600",
|
|
6450
6490
|
"dark:text-success",
|
|
6451
6491
|
"data-[hover=true]:bg-success-50",
|
|
6452
|
-
"group-data-[focus=true]
|
|
6492
|
+
"group-data-[focus=true]:bg-success-50"
|
|
6453
6493
|
],
|
|
6454
6494
|
value: "text-success-600 dark:text-success",
|
|
6455
6495
|
label: "text-success-600 dark:text-success"
|
|
@@ -6464,7 +6504,7 @@ var select = tv({
|
|
|
6464
6504
|
"text-warning-600",
|
|
6465
6505
|
"dark:text-warning",
|
|
6466
6506
|
"data-[hover=true]:bg-warning-50",
|
|
6467
|
-
"group-data-[focus=true]
|
|
6507
|
+
"group-data-[focus=true]:bg-warning-50"
|
|
6468
6508
|
],
|
|
6469
6509
|
value: "text-warning-600 dark:text-warning",
|
|
6470
6510
|
label: "text-warning-600 dark:text-warning"
|
|
@@ -6479,7 +6519,7 @@ var select = tv({
|
|
|
6479
6519
|
"text-danger",
|
|
6480
6520
|
"dark:text-danger-500",
|
|
6481
6521
|
"data-[hover=true]:bg-danger-50",
|
|
6482
|
-
"group-data-[focus=true]
|
|
6522
|
+
"group-data-[focus=true]:bg-danger-50"
|
|
6483
6523
|
],
|
|
6484
6524
|
value: "text-danger dark:text-danger-500",
|
|
6485
6525
|
label: "text-danger dark:text-danger-500"
|
|
@@ -6529,7 +6569,7 @@ var select = tv({
|
|
|
6529
6569
|
variant: "underlined",
|
|
6530
6570
|
color: "default",
|
|
6531
6571
|
class: {
|
|
6532
|
-
value: "group-data-[has-value=true]
|
|
6572
|
+
value: "group-data-[has-value=true]:text-foreground"
|
|
6533
6573
|
}
|
|
6534
6574
|
},
|
|
6535
6575
|
{
|
|
@@ -6616,14 +6656,14 @@ var select = tv({
|
|
|
6616
6656
|
labelPlacement: "inside",
|
|
6617
6657
|
color: "default",
|
|
6618
6658
|
class: {
|
|
6619
|
-
label: "group-data-[filled=true]
|
|
6659
|
+
label: "group-data-[filled=true]:text-default-600"
|
|
6620
6660
|
}
|
|
6621
6661
|
},
|
|
6622
6662
|
{
|
|
6623
6663
|
labelPlacement: "outside",
|
|
6624
6664
|
color: "default",
|
|
6625
6665
|
class: {
|
|
6626
|
-
label: "group-data-[filled=true]
|
|
6666
|
+
label: "group-data-[filled=true]:text-foreground"
|
|
6627
6667
|
}
|
|
6628
6668
|
},
|
|
6629
6669
|
{
|
|
@@ -6676,7 +6716,7 @@ var select = tv({
|
|
|
6676
6716
|
trigger: [
|
|
6677
6717
|
"bg-danger-50",
|
|
6678
6718
|
"data-[hover=true]:bg-danger-100",
|
|
6679
|
-
"group-data-[focus=true]
|
|
6719
|
+
"group-data-[focus=true]:bg-danger-50"
|
|
6680
6720
|
]
|
|
6681
6721
|
}
|
|
6682
6722
|
},
|
|
@@ -6684,7 +6724,7 @@ var select = tv({
|
|
|
6684
6724
|
isInvalid: true,
|
|
6685
6725
|
variant: "bordered",
|
|
6686
6726
|
class: {
|
|
6687
|
-
trigger: "!border-danger group-data-[focus=true]
|
|
6727
|
+
trigger: "!border-danger group-data-[focus=true]:border-danger"
|
|
6688
6728
|
}
|
|
6689
6729
|
},
|
|
6690
6730
|
{
|
|
@@ -6721,19 +6761,13 @@ var select = tv({
|
|
|
6721
6761
|
isMultiline: false,
|
|
6722
6762
|
class: {
|
|
6723
6763
|
base: "group relative justify-end",
|
|
6724
|
-
label: [
|
|
6725
|
-
"pb-0",
|
|
6726
|
-
"z-20",
|
|
6727
|
-
"top-1/2",
|
|
6728
|
-
"-translate-y-1/2",
|
|
6729
|
-
"group-data-[filled=true]/select:start-0"
|
|
6730
|
-
]
|
|
6764
|
+
label: ["pb-0", "z-20", "top-1/2", "-translate-y-1/2", "group-data-[filled=true]:start-0"]
|
|
6731
6765
|
}
|
|
6732
6766
|
},
|
|
6733
6767
|
{
|
|
6734
6768
|
labelPlacement: ["inside"],
|
|
6735
6769
|
class: {
|
|
6736
|
-
label: "group-data-[filled=true]
|
|
6770
|
+
label: "group-data-[filled=true]:scale-85"
|
|
6737
6771
|
}
|
|
6738
6772
|
},
|
|
6739
6773
|
{
|
|
@@ -6748,10 +6782,8 @@ var select = tv({
|
|
|
6748
6782
|
isMultiline: false,
|
|
6749
6783
|
size: "sm",
|
|
6750
6784
|
class: {
|
|
6751
|
-
label: [
|
|
6752
|
-
|
|
6753
|
-
],
|
|
6754
|
-
innerWrapper: "group-data-[has-label=true]/select:pt-4"
|
|
6785
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"],
|
|
6786
|
+
innerWrapper: "group-data-[has-label=true]:pt-4"
|
|
6755
6787
|
}
|
|
6756
6788
|
},
|
|
6757
6789
|
{
|
|
@@ -6760,9 +6792,9 @@ var select = tv({
|
|
|
6760
6792
|
size: "md",
|
|
6761
6793
|
class: {
|
|
6762
6794
|
label: [
|
|
6763
|
-
"group-data-[filled=true]
|
|
6795
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
6764
6796
|
],
|
|
6765
|
-
innerWrapper: "group-data-[has-label=true]
|
|
6797
|
+
innerWrapper: "group-data-[has-label=true]:pt-4"
|
|
6766
6798
|
}
|
|
6767
6799
|
},
|
|
6768
6800
|
{
|
|
@@ -6772,9 +6804,9 @@ var select = tv({
|
|
|
6772
6804
|
class: {
|
|
6773
6805
|
label: [
|
|
6774
6806
|
"text-medium",
|
|
6775
|
-
"group-data-[filled=true]
|
|
6807
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
6776
6808
|
],
|
|
6777
|
-
innerWrapper: "group-data-[has-label=true]
|
|
6809
|
+
innerWrapper: "group-data-[has-label=true]:pt-5"
|
|
6778
6810
|
}
|
|
6779
6811
|
},
|
|
6780
6812
|
{
|
|
@@ -6784,7 +6816,7 @@ var select = tv({
|
|
|
6784
6816
|
size: "sm",
|
|
6785
6817
|
class: {
|
|
6786
6818
|
label: [
|
|
6787
|
-
"group-data-[filled=true]
|
|
6819
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
6788
6820
|
]
|
|
6789
6821
|
}
|
|
6790
6822
|
},
|
|
@@ -6795,7 +6827,7 @@ var select = tv({
|
|
|
6795
6827
|
size: "md",
|
|
6796
6828
|
class: {
|
|
6797
6829
|
label: [
|
|
6798
|
-
"group-data-[filled=true]
|
|
6830
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
6799
6831
|
]
|
|
6800
6832
|
}
|
|
6801
6833
|
},
|
|
@@ -6807,7 +6839,7 @@ var select = tv({
|
|
|
6807
6839
|
class: {
|
|
6808
6840
|
label: [
|
|
6809
6841
|
"text-medium",
|
|
6810
|
-
"group-data-[filled=true]
|
|
6842
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
6811
6843
|
]
|
|
6812
6844
|
}
|
|
6813
6845
|
},
|
|
@@ -6817,9 +6849,7 @@ var select = tv({
|
|
|
6817
6849
|
isMultiline: false,
|
|
6818
6850
|
size: "sm",
|
|
6819
6851
|
class: {
|
|
6820
|
-
label: [
|
|
6821
|
-
"group-data-[filled=true]/select:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"
|
|
6822
|
-
]
|
|
6852
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]
|
|
6823
6853
|
}
|
|
6824
6854
|
},
|
|
6825
6855
|
{
|
|
@@ -6829,7 +6859,7 @@ var select = tv({
|
|
|
6829
6859
|
size: "md",
|
|
6830
6860
|
class: {
|
|
6831
6861
|
label: [
|
|
6832
|
-
"group-data-[filled=true]
|
|
6862
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
6833
6863
|
]
|
|
6834
6864
|
}
|
|
6835
6865
|
},
|
|
@@ -6841,7 +6871,7 @@ var select = tv({
|
|
|
6841
6871
|
class: {
|
|
6842
6872
|
label: [
|
|
6843
6873
|
"text-medium",
|
|
6844
|
-
"group-data-[filled=true]
|
|
6874
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
6845
6875
|
]
|
|
6846
6876
|
}
|
|
6847
6877
|
},
|
|
@@ -6853,7 +6883,7 @@ var select = tv({
|
|
|
6853
6883
|
label: [
|
|
6854
6884
|
"start-2",
|
|
6855
6885
|
"text-tiny",
|
|
6856
|
-
"group-data-[filled=true]
|
|
6886
|
+
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
6857
6887
|
],
|
|
6858
6888
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
6859
6889
|
}
|
|
@@ -6866,7 +6896,7 @@ var select = tv({
|
|
|
6866
6896
|
label: [
|
|
6867
6897
|
"start-3",
|
|
6868
6898
|
"text-small",
|
|
6869
|
-
"group-data-[filled=true]
|
|
6899
|
+
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
6870
6900
|
],
|
|
6871
6901
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
6872
6902
|
}
|
|
@@ -6879,7 +6909,7 @@ var select = tv({
|
|
|
6879
6909
|
label: [
|
|
6880
6910
|
"start-3",
|
|
6881
6911
|
"text-medium",
|
|
6882
|
-
"group-data-[filled=true]
|
|
6912
|
+
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
6883
6913
|
],
|
|
6884
6914
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
6885
6915
|
}
|
|
@@ -7784,7 +7814,7 @@ var breadcrumbItem = tv({
|
|
|
7784
7814
|
"tap-highlight-transparent",
|
|
7785
7815
|
...dataFocusVisibleClasses
|
|
7786
7816
|
],
|
|
7787
|
-
separator: "text-default-400 px-1"
|
|
7817
|
+
separator: "text-default-400 px-1 rtl:rotate-180"
|
|
7788
7818
|
},
|
|
7789
7819
|
variants: {
|
|
7790
7820
|
color: {
|
|
@@ -8005,7 +8035,7 @@ var breadcrumbs = tv({
|
|
|
8005
8035
|
// src/components/autocomplete.ts
|
|
8006
8036
|
var autocomplete = tv({
|
|
8007
8037
|
slots: {
|
|
8008
|
-
base: "group
|
|
8038
|
+
base: "group inline-flex flex-column w-full",
|
|
8009
8039
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
8010
8040
|
listbox: "",
|
|
8011
8041
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -8017,14 +8047,14 @@ var autocomplete = tv({
|
|
|
8017
8047
|
"opacity-0",
|
|
8018
8048
|
"pointer-events-none",
|
|
8019
8049
|
"text-default-500",
|
|
8020
|
-
"group-data-[invalid=true]
|
|
8050
|
+
"group-data-[invalid=true]:text-danger",
|
|
8021
8051
|
"data-[visible=true]:opacity-100",
|
|
8022
8052
|
"data-[visible=true]:pointer-events-auto",
|
|
8023
8053
|
"data-[visible=true]:cursor-pointer",
|
|
8024
8054
|
"sm:data-[visible=true]:opacity-0",
|
|
8025
8055
|
"sm:data-[visible=true]:pointer-events-none",
|
|
8026
|
-
"sm:group-data-[hover=true]:data-[visible=true]
|
|
8027
|
-
"sm:group-data-[hover=true]:data-[visible=true]
|
|
8056
|
+
"sm:group-data-[hover=true]:data-[visible=true]:opacity-100",
|
|
8057
|
+
"sm:group-data-[hover=true]:data-[visible=true]:pointer-events-auto"
|
|
8028
8058
|
],
|
|
8029
8059
|
selectorButton: "text-medium"
|
|
8030
8060
|
},
|
|
@@ -8449,11 +8479,11 @@ var calendar = tv({
|
|
|
8449
8479
|
// src/components/date-input.ts
|
|
8450
8480
|
var dateInput = tv({
|
|
8451
8481
|
slots: {
|
|
8452
|
-
base: "group
|
|
8482
|
+
base: "group flex flex-col",
|
|
8453
8483
|
label: [
|
|
8454
8484
|
"block subpixel-antialiased text-small text-default-600",
|
|
8455
|
-
"group-data-[required=true]
|
|
8456
|
-
"group-data-[invalid=true]
|
|
8485
|
+
"group-data-[required=true]:after:content-['*'] group-data-[required=true]:after:text-danger group-data-[required=true]:after:ml-0.5",
|
|
8486
|
+
"group-data-[invalid=true]:text-danger"
|
|
8457
8487
|
],
|
|
8458
8488
|
inputWrapper: [
|
|
8459
8489
|
"relative px-3 gap-3 w-full inline-flex flex-row items-center",
|
|
@@ -8462,10 +8492,10 @@ var dateInput = tv({
|
|
|
8462
8492
|
input: "flex h-full gap-x-0.5 w-full font-normal",
|
|
8463
8493
|
innerWrapper: [
|
|
8464
8494
|
"flex items-center text-default-400 w-full gap-x-2 h-6",
|
|
8465
|
-
"group-data-[invalid=true]
|
|
8495
|
+
"group-data-[invalid=true]:text-danger"
|
|
8466
8496
|
],
|
|
8467
8497
|
segment: [
|
|
8468
|
-
"group
|
|
8498
|
+
"group first:-ml-0.5 [&:not(:first-child)]:-ml-1 px-0.5 my-auto box-content tabular-nums text-start",
|
|
8469
8499
|
"inline-block outline-none focus:shadow-sm rounded-md",
|
|
8470
8500
|
"text-foreground-500 data-[editable=true]:text-foreground",
|
|
8471
8501
|
"data-[editable=true]:data-[placeholder=true]:text-foreground-500",
|
|
@@ -8473,7 +8503,7 @@ var dateInput = tv({
|
|
|
8473
8503
|
"data-[invalid=true]:focus:bg-danger-400/50 dark:data-[invalid=true]:focus:bg-danger-400/20",
|
|
8474
8504
|
"data-[invalid=true]:data-[editable=true]:focus:text-danger"
|
|
8475
8505
|
],
|
|
8476
|
-
helperWrapper: "hidden group-data-[has-helper=true]
|
|
8506
|
+
helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
|
|
8477
8507
|
description: "text-tiny text-foreground-400",
|
|
8478
8508
|
errorMessage: "text-tiny text-danger"
|
|
8479
8509
|
},
|
|
@@ -8484,9 +8514,9 @@ var dateInput = tv({
|
|
|
8484
8514
|
"bg-default-100",
|
|
8485
8515
|
"hover:bg-default-200",
|
|
8486
8516
|
"focus-within:hover:bg-default-100",
|
|
8487
|
-
"group-data-[invalid=true]
|
|
8488
|
-
"group-data-[invalid=true]
|
|
8489
|
-
"group-data-[invalid=true]
|
|
8517
|
+
"group-data-[invalid=true]:bg-danger-50",
|
|
8518
|
+
"group-data-[invalid=true]:hover:bg-danger-100",
|
|
8519
|
+
"group-data-[invalid=true]:focus-within:hover:bg-danger-50"
|
|
8490
8520
|
]
|
|
8491
8521
|
},
|
|
8492
8522
|
faded: {
|
|
@@ -8495,9 +8525,9 @@ var dateInput = tv({
|
|
|
8495
8525
|
"border-medium",
|
|
8496
8526
|
"border-default-200",
|
|
8497
8527
|
"hover:border-default-400",
|
|
8498
|
-
"group-data-[invalid=true]
|
|
8499
|
-
"group-data-[invalid=true]
|
|
8500
|
-
"group-data-[invalid=true]
|
|
8528
|
+
"group-data-[invalid=true]:bg-danger-50",
|
|
8529
|
+
"group-data-[invalid=true]:hover:bg-danger-100",
|
|
8530
|
+
"group-data-[invalid=true]:focus-within:hover:bg-danger-50"
|
|
8501
8531
|
]
|
|
8502
8532
|
},
|
|
8503
8533
|
bordered: {
|
|
@@ -8507,9 +8537,9 @@ var dateInput = tv({
|
|
|
8507
8537
|
"hover:border-default-400",
|
|
8508
8538
|
"focus-within:border-default-foreground",
|
|
8509
8539
|
"focus-within:hover:border-default-foreground",
|
|
8510
|
-
"group-data-[invalid=true]
|
|
8511
|
-
"group-data-[invalid=true]
|
|
8512
|
-
"group-data-[invalid=true]
|
|
8540
|
+
"group-data-[invalid=true]:border-danger",
|
|
8541
|
+
"group-data-[invalid=true]:hover:border-danger",
|
|
8542
|
+
"group-data-[invalid=true]:focus-within:hover:border-danger"
|
|
8513
8543
|
]
|
|
8514
8544
|
},
|
|
8515
8545
|
underlined: {
|
|
@@ -8534,7 +8564,7 @@ var dateInput = tv({
|
|
|
8534
8564
|
"after:-bottom-[2px]",
|
|
8535
8565
|
"after:h-[2px]",
|
|
8536
8566
|
"focus-within:after:w-full",
|
|
8537
|
-
"group-data-[invalid=true]
|
|
8567
|
+
"group-data-[invalid=true]:after:bg-danger"
|
|
8538
8568
|
]
|
|
8539
8569
|
}
|
|
8540
8570
|
},
|
|
@@ -8595,13 +8625,13 @@ var dateInput = tv({
|
|
|
8595
8625
|
outside: {
|
|
8596
8626
|
base: "flex flex-col data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+8px)] gap-y-1.5",
|
|
8597
8627
|
label: "w-full text-foreground",
|
|
8598
|
-
helperWrapper: "absolute top-[calc(100%_+_2px)]
|
|
8628
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
|
|
8599
8629
|
},
|
|
8600
8630
|
"outside-left": {
|
|
8601
8631
|
base: "flex-row items-center data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+_8px)] gap-x-2 flex-nowrap",
|
|
8602
8632
|
label: "relative text-foreground",
|
|
8603
8633
|
inputWrapper: "relative flex-1",
|
|
8604
|
-
helperWrapper: "absolute top-[calc(100%_+_2px)]
|
|
8634
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
|
|
8605
8635
|
},
|
|
8606
8636
|
inside: {
|
|
8607
8637
|
label: "w-full text-tiny cursor-text",
|
|
@@ -8831,8 +8861,8 @@ var dateInput = tv({
|
|
|
8831
8861
|
// src/components/date-picker.ts
|
|
8832
8862
|
var datePicker = tv({
|
|
8833
8863
|
slots: {
|
|
8834
|
-
base: "group
|
|
8835
|
-
selectorButton: "-
|
|
8864
|
+
base: "group w-full",
|
|
8865
|
+
selectorButton: "-mx-2 text-inherit",
|
|
8836
8866
|
selectorIcon: "text-lg text-inherit pointer-events-none flex-shrink-0",
|
|
8837
8867
|
popoverContent: "p-0 w-full",
|
|
8838
8868
|
calendar: "w-[calc(var(--visible-months)_*_var(--calendar-width))] shadow-none",
|
|
@@ -8844,13 +8874,274 @@ var datePicker = tv({
|
|
|
8844
8874
|
var dateRangePicker = tv({
|
|
8845
8875
|
extend: datePicker,
|
|
8846
8876
|
slots: {
|
|
8847
|
-
calendar: "group
|
|
8877
|
+
calendar: "group",
|
|
8848
8878
|
bottomContent: "flex flex-col gap-y-2",
|
|
8849
|
-
timeInputWrapper: "flex flex-col group-data-[has-multiple-months=true]
|
|
8879
|
+
timeInputWrapper: "flex flex-col group-data-[has-multiple-months=true]:flex-row",
|
|
8850
8880
|
separator: "-mx-1 text-inherit"
|
|
8851
8881
|
}
|
|
8852
8882
|
});
|
|
8853
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
|
+
|
|
8854
9145
|
// src/colors/blue.ts
|
|
8855
9146
|
var blue = {
|
|
8856
9147
|
50: "#e6f1fe",
|
|
@@ -9167,12 +9458,8 @@ var colors = {
|
|
|
9167
9458
|
// src/plugin.ts
|
|
9168
9459
|
var import_color = __toESM(require("color"));
|
|
9169
9460
|
var import_plugin = __toESM(require("tailwindcss/plugin.js"));
|
|
9170
|
-
var import_lodash = __toESM(require("lodash.get"));
|
|
9171
|
-
var import_lodash2 = __toESM(require("lodash.omit"));
|
|
9172
|
-
var import_lodash3 = __toESM(require("lodash.foreach"));
|
|
9173
|
-
var import_lodash4 = __toESM(require("lodash.mapkeys"));
|
|
9174
|
-
var import_lodash5 = __toESM(require("lodash.kebabcase"));
|
|
9175
9461
|
var import_deepmerge = __toESM(require("deepmerge"));
|
|
9462
|
+
var import_shared_utils = require("@nextui-org/shared-utils");
|
|
9176
9463
|
|
|
9177
9464
|
// src/animations/index.ts
|
|
9178
9465
|
var animations = {
|
|
@@ -9316,6 +9603,11 @@ var custom_default = {
|
|
|
9316
9603
|
},
|
|
9317
9604
|
".tap-highlight-transparent": {
|
|
9318
9605
|
"-webkit-tap-highlight-color": "transparent"
|
|
9606
|
+
},
|
|
9607
|
+
".input-search-cancel-button-none": {
|
|
9608
|
+
"&::-webkit-search-cancel-button": {
|
|
9609
|
+
"-webkit-appearance": "none"
|
|
9610
|
+
}
|
|
9319
9611
|
}
|
|
9320
9612
|
};
|
|
9321
9613
|
|
|
@@ -9410,7 +9702,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
9410
9702
|
"color-scheme": scheme
|
|
9411
9703
|
} : {};
|
|
9412
9704
|
const flatColors = flattenThemeObject(colors2);
|
|
9413
|
-
const flatLayout = layout ? (0,
|
|
9705
|
+
const flatLayout = layout ? (0, import_shared_utils.mapKeys)(layout, (_, key) => (0, import_shared_utils.kebabCase)(key)) : {};
|
|
9414
9706
|
resolved.variants.push({
|
|
9415
9707
|
name: themeName,
|
|
9416
9708
|
definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
|
|
@@ -9460,6 +9752,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
9460
9752
|
};
|
|
9461
9753
|
var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
9462
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})))`;
|
|
9463
9756
|
return (0, import_plugin.default)(
|
|
9464
9757
|
({ addBase, addUtilities, addVariant }) => {
|
|
9465
9758
|
addBase({
|
|
@@ -9518,8 +9811,16 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
9518
9811
|
medium: `var(--${prefix}-box-shadow-medium)`,
|
|
9519
9812
|
large: `var(--${prefix}-box-shadow-large)`
|
|
9520
9813
|
},
|
|
9814
|
+
backgroundSize: {
|
|
9815
|
+
"stripe-size": "1.25rem 1.25rem"
|
|
9816
|
+
},
|
|
9521
9817
|
backgroundImage: {
|
|
9522
|
-
"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")
|
|
9523
9824
|
},
|
|
9524
9825
|
transitionDuration: {
|
|
9525
9826
|
0: "0ms",
|
|
@@ -9537,6 +9838,7 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
9537
9838
|
);
|
|
9538
9839
|
};
|
|
9539
9840
|
var nextui = (config = {}) => {
|
|
9841
|
+
var _a, _b, _c, _d;
|
|
9540
9842
|
const {
|
|
9541
9843
|
themes: themeObject = {},
|
|
9542
9844
|
defaultTheme = "light",
|
|
@@ -9545,8 +9847,8 @@ var nextui = (config = {}) => {
|
|
|
9545
9847
|
prefix: defaultPrefix = DEFAULT_PREFIX,
|
|
9546
9848
|
addCommonColors = false
|
|
9547
9849
|
} = config;
|
|
9548
|
-
const userLightColors = (0
|
|
9549
|
-
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) || {};
|
|
9550
9852
|
const defaultLayoutObj = userLayout && typeof userLayout === "object" ? (0, import_deepmerge.default)(defaultLayout, userLayout) : defaultLayout;
|
|
9551
9853
|
const baseLayouts = {
|
|
9552
9854
|
light: {
|
|
@@ -9558,8 +9860,8 @@ var nextui = (config = {}) => {
|
|
|
9558
9860
|
...darkLayout
|
|
9559
9861
|
}
|
|
9560
9862
|
};
|
|
9561
|
-
let otherThemes = (0,
|
|
9562
|
-
(
|
|
9863
|
+
let otherThemes = (0, import_shared_utils.omit)(themeObject, ["light", "dark"]) || {};
|
|
9864
|
+
Object.entries(otherThemes).forEach(([themeName, { extend, colors: colors2, layout }]) => {
|
|
9563
9865
|
const baseTheme = extend && isBaseTheme(extend) ? extend : defaultExtendTheme;
|
|
9564
9866
|
if (colors2 && typeof colors2 === "object") {
|
|
9565
9867
|
otherThemes[themeName].colors = (0, import_deepmerge.default)(semanticColors[baseTheme], colors2);
|
|
@@ -9572,11 +9874,11 @@ var nextui = (config = {}) => {
|
|
|
9572
9874
|
}
|
|
9573
9875
|
});
|
|
9574
9876
|
const light2 = {
|
|
9575
|
-
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) || {}),
|
|
9576
9878
|
colors: (0, import_deepmerge.default)(semanticColors.light, userLightColors)
|
|
9577
9879
|
};
|
|
9578
9880
|
const dark = {
|
|
9579
|
-
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) || {}),
|
|
9580
9882
|
colors: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors)
|
|
9581
9883
|
};
|
|
9582
9884
|
const themes = {
|
|
@@ -9592,6 +9894,7 @@ var nextui = (config = {}) => {
|
|
|
9592
9894
|
absoluteFullClasses,
|
|
9593
9895
|
accordion,
|
|
9594
9896
|
accordionItem,
|
|
9897
|
+
alert,
|
|
9595
9898
|
autocomplete,
|
|
9596
9899
|
avatar,
|
|
9597
9900
|
avatarGroup,
|
|
@@ -9620,6 +9923,7 @@ var nextui = (config = {}) => {
|
|
|
9620
9923
|
dateRangePicker,
|
|
9621
9924
|
defaultLayout,
|
|
9622
9925
|
divider,
|
|
9926
|
+
drawer,
|
|
9623
9927
|
drip,
|
|
9624
9928
|
dropdown,
|
|
9625
9929
|
dropdownItem,
|