@shuriken-ui/tailwind 3.0.0-next.6 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/plugins/index.cjs +571 -262
- package/dist/plugins/index.d.cts +6 -1
- package/dist/plugins/index.d.mts +6 -1
- package/dist/plugins/index.d.ts +6 -1
- package/dist/plugins/index.mjs +571 -263
- package/dist/preset.d.cts +1 -1
- package/dist/preset.d.mts +1 -1
- package/dist/preset.d.ts +1 -1
- package/dist/shared/{tailwind.a9f50d73.d.cts → tailwind.0b4ef210.d.cts} +1029 -229
- package/dist/shared/{tailwind.a9f50d73.d.mts → tailwind.0b4ef210.d.mts} +1029 -229
- package/dist/shared/{tailwind.a9f50d73.d.ts → tailwind.0b4ef210.d.ts} +1029 -229
- package/package.json +9 -11
package/dist/plugins/index.mjs
CHANGED
@@ -15,8 +15,8 @@ function mergePlugins(plugins) {
|
|
15
15
|
return plugin((api) => plugins.map((plugin2) => plugin2.handler(api)), config);
|
16
16
|
}
|
17
17
|
|
18
|
-
const key$
|
19
|
-
const defaultConfig$
|
18
|
+
const key$T = "accordion";
|
19
|
+
const defaultConfig$S = {
|
20
20
|
wrapper: {
|
21
21
|
width: "full",
|
22
22
|
rounded: {
|
@@ -233,15 +233,15 @@ const defaultConfig$R = {
|
|
233
233
|
}
|
234
234
|
};
|
235
235
|
|
236
|
-
const config$
|
236
|
+
const config$T = {
|
237
237
|
theme: {
|
238
238
|
nui: {
|
239
|
-
[key$
|
239
|
+
[key$T]: defaultConfig$S
|
240
240
|
}
|
241
241
|
}
|
242
242
|
};
|
243
243
|
const accordion = plugin(({ addComponents, theme }) => {
|
244
|
-
const config2 = theme(`nui.${key$
|
244
|
+
const config2 = theme(`nui.${key$T}`);
|
245
245
|
addComponents({
|
246
246
|
//Accordion:wrapper
|
247
247
|
".nui-accordion": {
|
@@ -458,10 +458,10 @@ const accordion = plugin(({ addComponents, theme }) => {
|
|
458
458
|
}
|
459
459
|
}
|
460
460
|
});
|
461
|
-
}, config$
|
461
|
+
}, config$T);
|
462
462
|
|
463
|
-
const key$
|
464
|
-
const defaultConfig$
|
463
|
+
const key$S = "autocomplete";
|
464
|
+
const defaultConfig$R = {
|
465
465
|
rounded: {
|
466
466
|
none: "none",
|
467
467
|
sm: "md",
|
@@ -949,15 +949,15 @@ const defaultConfig$Q = {
|
|
949
949
|
}
|
950
950
|
};
|
951
951
|
|
952
|
-
const config$
|
952
|
+
const config$S = {
|
953
953
|
theme: {
|
954
954
|
nui: {
|
955
|
-
[key$
|
955
|
+
[key$S]: defaultConfig$R
|
956
956
|
}
|
957
957
|
}
|
958
958
|
};
|
959
959
|
const autocomplete = plugin(({ addComponents, theme }) => {
|
960
|
-
const config2 = theme(`nui.${key$
|
960
|
+
const config2 = theme(`nui.${key$S}`);
|
961
961
|
addComponents({
|
962
962
|
".nui-autocomplete": {
|
963
963
|
"@apply w-full relative": {},
|
@@ -1051,15 +1051,6 @@ const autocomplete = plugin(({ addComponents, theme }) => {
|
|
1051
1051
|
"@apply h-3 w-full max-w-[75%] rounded": {}
|
1052
1052
|
}
|
1053
1053
|
},
|
1054
|
-
//Autocomplete:error
|
1055
|
-
".nui-autocomplete-error-text": {
|
1056
|
-
//Base
|
1057
|
-
"@apply mt-1 block leading-none": {},
|
1058
|
-
//Error text font
|
1059
|
-
[`@apply font-${config2.error.font.family} text-${config2.error.font.size} font-${config2.error.font.weight}`]: {},
|
1060
|
-
//Error text color
|
1061
|
-
[`@apply text-${config2.error.font.color.light} dark:text-${config2.error.font.color.dark}`]: {}
|
1062
|
-
},
|
1063
1054
|
//Autocomplete:results
|
1064
1055
|
".nui-autocomplete-results": {
|
1065
1056
|
"@apply nui-slimscroll absolute z-20 mt-1 max-h-[265px] w-full overflow-auto py-1 outline-none sm:text-sm": {},
|
@@ -1463,10 +1454,10 @@ const autocomplete = plugin(({ addComponents, theme }) => {
|
|
1463
1454
|
}
|
1464
1455
|
}
|
1465
1456
|
});
|
1466
|
-
}, config$
|
1457
|
+
}, config$S);
|
1467
1458
|
|
1468
|
-
const key$
|
1469
|
-
const defaultConfig$
|
1459
|
+
const key$R = "avatar";
|
1460
|
+
const defaultConfig$Q = {
|
1470
1461
|
inner: {
|
1471
1462
|
size: "full",
|
1472
1463
|
transition: {
|
@@ -1815,15 +1806,15 @@ const defaultConfig$P = {
|
|
1815
1806
|
}
|
1816
1807
|
};
|
1817
1808
|
|
1818
|
-
const config$
|
1809
|
+
const config$R = {
|
1819
1810
|
theme: {
|
1820
1811
|
nui: {
|
1821
|
-
[key$
|
1812
|
+
[key$R]: defaultConfig$Q
|
1822
1813
|
}
|
1823
1814
|
}
|
1824
1815
|
};
|
1825
1816
|
const avatar = plugin(({ addComponents, theme }) => {
|
1826
|
-
const config2 = theme(`nui.${key$
|
1817
|
+
const config2 = theme(`nui.${key$R}`);
|
1827
1818
|
addComponents({
|
1828
1819
|
".nui-avatar": {
|
1829
1820
|
//Avatar:wrapper
|
@@ -2588,10 +2579,10 @@ const avatar = plugin(({ addComponents, theme }) => {
|
|
2588
2579
|
}
|
2589
2580
|
}
|
2590
2581
|
});
|
2591
|
-
}, config$
|
2582
|
+
}, config$R);
|
2592
2583
|
|
2593
|
-
const key$
|
2594
|
-
const defaultConfig$
|
2584
|
+
const key$Q = "avatarGroup";
|
2585
|
+
const defaultConfig$P = {
|
2595
2586
|
avatar: {
|
2596
2587
|
rounded: "full",
|
2597
2588
|
outer: {
|
@@ -2711,15 +2702,15 @@ const defaultConfig$O = {
|
|
2711
2702
|
}
|
2712
2703
|
};
|
2713
2704
|
|
2714
|
-
const config$
|
2705
|
+
const config$Q = {
|
2715
2706
|
theme: {
|
2716
2707
|
nui: {
|
2717
|
-
[key$
|
2708
|
+
[key$Q]: defaultConfig$P
|
2718
2709
|
}
|
2719
2710
|
}
|
2720
2711
|
};
|
2721
2712
|
const avatarGroup = plugin(({ addComponents, theme }) => {
|
2722
|
-
const config2 = theme(`nui.${key$
|
2713
|
+
const config2 = theme(`nui.${key$Q}`);
|
2723
2714
|
addComponents({
|
2724
2715
|
".nui-avatar-group": {
|
2725
2716
|
"@apply flex": {},
|
@@ -2863,10 +2854,10 @@ const avatarGroup = plugin(({ addComponents, theme }) => {
|
|
2863
2854
|
}
|
2864
2855
|
}
|
2865
2856
|
});
|
2866
|
-
}, config$
|
2857
|
+
}, config$Q);
|
2867
2858
|
|
2868
|
-
const key$
|
2869
|
-
const defaultConfig$
|
2859
|
+
const key$P = "breadcrumb";
|
2860
|
+
const defaultConfig$O = {
|
2870
2861
|
item: {
|
2871
2862
|
text: {
|
2872
2863
|
font: {
|
@@ -2932,15 +2923,15 @@ const defaultConfig$N = {
|
|
2932
2923
|
}
|
2933
2924
|
};
|
2934
2925
|
|
2935
|
-
const config$
|
2926
|
+
const config$P = {
|
2936
2927
|
theme: {
|
2937
2928
|
nui: {
|
2938
|
-
[key$
|
2929
|
+
[key$P]: defaultConfig$O
|
2939
2930
|
}
|
2940
2931
|
}
|
2941
2932
|
};
|
2942
2933
|
const breadcrumb = plugin(({ addComponents, theme }) => {
|
2943
|
-
const config2 = theme(`nui.${key$
|
2934
|
+
const config2 = theme(`nui.${key$P}`);
|
2944
2935
|
addComponents({
|
2945
2936
|
".nui-breadcrumb": {
|
2946
2937
|
".nui-breadcrumb-list": {
|
@@ -3005,10 +2996,10 @@ const breadcrumb = plugin(({ addComponents, theme }) => {
|
|
3005
2996
|
}
|
3006
2997
|
}
|
3007
2998
|
});
|
3008
|
-
}, config$
|
2999
|
+
}, config$P);
|
3009
3000
|
|
3010
|
-
const key$
|
3011
|
-
const defaultConfig$
|
3001
|
+
const key$O = "buttonAction";
|
3002
|
+
const defaultConfig$N = {
|
3012
3003
|
rounded: {
|
3013
3004
|
none: "none",
|
3014
3005
|
sm: "md",
|
@@ -3343,15 +3334,15 @@ const defaultConfig$M = {
|
|
3343
3334
|
}
|
3344
3335
|
};
|
3345
3336
|
|
3346
|
-
const config$
|
3337
|
+
const config$O = {
|
3347
3338
|
theme: {
|
3348
3339
|
nui: {
|
3349
|
-
[key$
|
3340
|
+
[key$O]: defaultConfig$N
|
3350
3341
|
}
|
3351
3342
|
}
|
3352
3343
|
};
|
3353
3344
|
const buttonAction = plugin(({ addComponents, theme }) => {
|
3354
|
-
const config2 = theme(`nui.${key$
|
3345
|
+
const config2 = theme(`nui.${key$O}`);
|
3355
3346
|
addComponents({
|
3356
3347
|
".nui-button-action": {
|
3357
3348
|
//Wrapper
|
@@ -3540,10 +3531,10 @@ const buttonAction = plugin(({ addComponents, theme }) => {
|
|
3540
3531
|
}
|
3541
3532
|
}
|
3542
3533
|
});
|
3543
|
-
}, config$
|
3534
|
+
}, config$O);
|
3544
3535
|
|
3545
|
-
const key$
|
3546
|
-
const defaultConfig$
|
3536
|
+
const key$N = "buttonClose";
|
3537
|
+
const defaultConfig$M = {
|
3547
3538
|
size: {
|
3548
3539
|
xs: {
|
3549
3540
|
outer: "6",
|
@@ -3579,6 +3570,14 @@ const defaultConfig$L = {
|
|
3579
3570
|
hover: {
|
3580
3571
|
light: "muted-100",
|
3581
3572
|
dark: "muted-700"
|
3573
|
+
},
|
3574
|
+
focus: {
|
3575
|
+
light: "muted-100",
|
3576
|
+
dark: "muted-700"
|
3577
|
+
},
|
3578
|
+
active: {
|
3579
|
+
light: "transparent",
|
3580
|
+
dark: "transparent"
|
3582
3581
|
}
|
3583
3582
|
},
|
3584
3583
|
font: {
|
@@ -3597,6 +3596,14 @@ const defaultConfig$L = {
|
|
3597
3596
|
hover: {
|
3598
3597
|
light: "muted-100",
|
3599
3598
|
dark: "muted-900"
|
3599
|
+
},
|
3600
|
+
focus: {
|
3601
|
+
light: "muted-100",
|
3602
|
+
dark: "muted-900"
|
3603
|
+
},
|
3604
|
+
active: {
|
3605
|
+
light: "transparent",
|
3606
|
+
dark: "transparent"
|
3600
3607
|
}
|
3601
3608
|
},
|
3602
3609
|
font: {
|
@@ -3615,6 +3622,14 @@ const defaultConfig$L = {
|
|
3615
3622
|
hover: {
|
3616
3623
|
light: "muted-50",
|
3617
3624
|
dark: "muted-600"
|
3625
|
+
},
|
3626
|
+
focus: {
|
3627
|
+
light: "muted-50",
|
3628
|
+
dark: "muted-600"
|
3629
|
+
},
|
3630
|
+
active: {
|
3631
|
+
light: "muted-100",
|
3632
|
+
dark: "muted-700"
|
3618
3633
|
}
|
3619
3634
|
},
|
3620
3635
|
font: {
|
@@ -3633,6 +3648,14 @@ const defaultConfig$L = {
|
|
3633
3648
|
hover: {
|
3634
3649
|
light: "muted-50",
|
3635
3650
|
dark: "muted-900"
|
3651
|
+
},
|
3652
|
+
focus: {
|
3653
|
+
light: "muted-50",
|
3654
|
+
dark: "muted-900"
|
3655
|
+
},
|
3656
|
+
active: {
|
3657
|
+
light: "muted-100",
|
3658
|
+
dark: "muted-950"
|
3636
3659
|
}
|
3637
3660
|
},
|
3638
3661
|
font: {
|
@@ -3651,6 +3674,14 @@ const defaultConfig$L = {
|
|
3651
3674
|
hover: {
|
3652
3675
|
light: "primary-500/20",
|
3653
3676
|
dark: "primary-500/20"
|
3677
|
+
},
|
3678
|
+
focus: {
|
3679
|
+
light: "primary-500/20",
|
3680
|
+
dark: "primary-500/20"
|
3681
|
+
},
|
3682
|
+
active: {
|
3683
|
+
light: "primary-500/10",
|
3684
|
+
dark: "primary-500/10"
|
3654
3685
|
}
|
3655
3686
|
},
|
3656
3687
|
font: {
|
@@ -3669,6 +3700,14 @@ const defaultConfig$L = {
|
|
3669
3700
|
hover: {
|
3670
3701
|
light: "info-500/20",
|
3671
3702
|
dark: "info-500/20"
|
3703
|
+
},
|
3704
|
+
focus: {
|
3705
|
+
light: "info-500/20",
|
3706
|
+
dark: "info-500/20"
|
3707
|
+
},
|
3708
|
+
active: {
|
3709
|
+
light: "info-500/10",
|
3710
|
+
dark: "info-500/10"
|
3672
3711
|
}
|
3673
3712
|
},
|
3674
3713
|
font: {
|
@@ -3687,6 +3726,14 @@ const defaultConfig$L = {
|
|
3687
3726
|
hover: {
|
3688
3727
|
light: "success-500/20",
|
3689
3728
|
dark: "success-500/20"
|
3729
|
+
},
|
3730
|
+
focus: {
|
3731
|
+
light: "success-500/20",
|
3732
|
+
dark: "success-500/20"
|
3733
|
+
},
|
3734
|
+
active: {
|
3735
|
+
light: "success-500/10",
|
3736
|
+
dark: "success-500/10"
|
3690
3737
|
}
|
3691
3738
|
},
|
3692
3739
|
font: {
|
@@ -3705,6 +3752,14 @@ const defaultConfig$L = {
|
|
3705
3752
|
hover: {
|
3706
3753
|
light: "warning-500/20",
|
3707
3754
|
dark: "warning-500/20"
|
3755
|
+
},
|
3756
|
+
focus: {
|
3757
|
+
light: "warning-500/20",
|
3758
|
+
dark: "warning-500/20"
|
3759
|
+
},
|
3760
|
+
active: {
|
3761
|
+
light: "warning-500/10",
|
3762
|
+
dark: "warning-500/10"
|
3708
3763
|
}
|
3709
3764
|
},
|
3710
3765
|
font: {
|
@@ -3723,6 +3778,14 @@ const defaultConfig$L = {
|
|
3723
3778
|
hover: {
|
3724
3779
|
light: "danger-500/20",
|
3725
3780
|
dark: "danger-500/20"
|
3781
|
+
},
|
3782
|
+
focus: {
|
3783
|
+
light: "danger-500/20",
|
3784
|
+
dark: "danger-500/20"
|
3785
|
+
},
|
3786
|
+
active: {
|
3787
|
+
light: "danger-500/10",
|
3788
|
+
dark: "danger-500/10"
|
3726
3789
|
}
|
3727
3790
|
},
|
3728
3791
|
font: {
|
@@ -3739,15 +3802,15 @@ const defaultConfig$L = {
|
|
3739
3802
|
}
|
3740
3803
|
};
|
3741
3804
|
|
3742
|
-
const config$
|
3805
|
+
const config$N = {
|
3743
3806
|
theme: {
|
3744
3807
|
nui: {
|
3745
|
-
[key$
|
3808
|
+
[key$N]: defaultConfig$M
|
3746
3809
|
}
|
3747
3810
|
}
|
3748
3811
|
};
|
3749
3812
|
const buttonClose = plugin(({ addComponents, theme }) => {
|
3750
|
-
const config2 = theme(`nui.${key$
|
3813
|
+
const config2 = theme(`nui.${key$N}`);
|
3751
3814
|
addComponents({
|
3752
3815
|
".nui-button-close": {
|
3753
3816
|
"@apply nui-focus flex items-center justify-center disabled:opacity-30 cursor-pointer": {},
|
@@ -3807,7 +3870,11 @@ const buttonClose = plugin(({ addComponents, theme }) => {
|
|
3807
3870
|
//Background
|
3808
3871
|
[`@apply bg-${config2.color.default.background.base.light} dark:bg-${config2.color.default.background.base.dark}`]: {},
|
3809
3872
|
//Background hover
|
3810
|
-
[`@apply hover:bg-${config2.color.default.background.hover.light} dark:hover:bg-${config2.color.default.background.hover.dark}`]: {}
|
3873
|
+
[`@apply hover:bg-${config2.color.default.background.hover.light} dark:hover:bg-${config2.color.default.background.hover.dark}`]: {},
|
3874
|
+
//Background focus
|
3875
|
+
[`@apply focus-visible:bg-${config2.color.default.background.focus.light} dark:focus-visible:bg-${config2.color.default.background.focus.dark}`]: {},
|
3876
|
+
//Background active
|
3877
|
+
[`@apply active:enabled:bg-${config2.color.default.background.active.light} dark:active:enabled:bg-${config2.color.default.background.active.dark}`]: {}
|
3811
3878
|
},
|
3812
3879
|
//Color:default-contrast
|
3813
3880
|
"&.nui-button-default-contrast": {
|
@@ -3815,7 +3882,11 @@ const buttonClose = plugin(({ addComponents, theme }) => {
|
|
3815
3882
|
//Background
|
3816
3883
|
[`@apply bg-${config2.color.defaultContrast.background.base.light} dark:bg-${config2.color.defaultContrast.background.base.dark}`]: {},
|
3817
3884
|
//Background hover
|
3818
|
-
[`@apply hover:bg-${config2.color.defaultContrast.background.hover.light} dark:hover:bg-${config2.color.defaultContrast.background.hover.dark}`]: {}
|
3885
|
+
[`@apply hover:bg-${config2.color.defaultContrast.background.hover.light} dark:hover:bg-${config2.color.defaultContrast.background.hover.dark}`]: {},
|
3886
|
+
//Background focus
|
3887
|
+
[`@apply focus-visible:bg-${config2.color.defaultContrast.background.focus.light} dark:focus-visible:bg-${config2.color.defaultContrast.background.focus.dark}`]: {},
|
3888
|
+
//Background active
|
3889
|
+
[`@apply active:enabled:bg-${config2.color.defaultContrast.background.active.light} dark:active:enabled:bg-${config2.color.defaultContrast.background.active.dark}`]: {}
|
3819
3890
|
},
|
3820
3891
|
//Color:muted
|
3821
3892
|
"&.nui-button-muted": {
|
@@ -3823,7 +3894,11 @@ const buttonClose = plugin(({ addComponents, theme }) => {
|
|
3823
3894
|
//Background
|
3824
3895
|
[`@apply bg-${config2.color.muted.background.base.light} dark:bg-${config2.color.muted.background.base.dark}`]: {},
|
3825
3896
|
//Background hover
|
3826
|
-
[`@apply hover:bg-${config2.color.muted.background.hover.light} dark:hover:bg-${config2.color.muted.background.hover.dark}`]: {}
|
3897
|
+
[`@apply hover:bg-${config2.color.muted.background.hover.light} dark:hover:bg-${config2.color.muted.background.hover.dark}`]: {},
|
3898
|
+
//Background focus
|
3899
|
+
[`@apply focus-visible:bg-${config2.color.muted.background.focus.light} dark:focus-visible:bg-${config2.color.muted.background.focus.dark}`]: {},
|
3900
|
+
//Background active
|
3901
|
+
[`@apply active:enabled:bg-${config2.color.muted.background.active.light} dark:active:enabled:bg-${config2.color.muted.background.active.dark}`]: {}
|
3827
3902
|
},
|
3828
3903
|
//Color:muted-contrast
|
3829
3904
|
"&.nui-button-muted-contrast": {
|
@@ -3831,7 +3906,11 @@ const buttonClose = plugin(({ addComponents, theme }) => {
|
|
3831
3906
|
//Background
|
3832
3907
|
[`@apply bg-${config2.color.mutedContrast.background.base.light} dark:bg-${config2.color.mutedContrast.background.base.dark}`]: {},
|
3833
3908
|
//Background hover
|
3834
|
-
[`@apply hover:bg-${config2.color.mutedContrast.background.hover.light} dark:hover:bg-${config2.color.mutedContrast.background.hover.dark}`]: {}
|
3909
|
+
[`@apply hover:bg-${config2.color.mutedContrast.background.hover.light} dark:hover:bg-${config2.color.mutedContrast.background.hover.dark}`]: {},
|
3910
|
+
//Background focus
|
3911
|
+
[`@apply focus-visible:bg-${config2.color.mutedContrast.background.focus.light} dark:focus-visible:bg-${config2.color.mutedContrast.background.focus.dark}`]: {},
|
3912
|
+
//Background active
|
3913
|
+
[`@apply active:enabled:bg-${config2.color.mutedContrast.background.active.light} dark:active:enabled:bg-${config2.color.mutedContrast.background.active.dark}`]: {}
|
3835
3914
|
},
|
3836
3915
|
//Color:primary
|
3837
3916
|
"&.nui-button-primary": {
|
@@ -3839,7 +3918,11 @@ const buttonClose = plugin(({ addComponents, theme }) => {
|
|
3839
3918
|
//Background
|
3840
3919
|
[`@apply bg-${config2.color.primary.background.base.light} dark:bg-${config2.color.primary.background.base.dark}`]: {},
|
3841
3920
|
//Background hover
|
3842
|
-
[`@apply hover:bg-${config2.color.primary.background.hover.light} dark:hover:bg-${config2.color.primary.background.hover.dark}`]: {}
|
3921
|
+
[`@apply hover:bg-${config2.color.primary.background.hover.light} dark:hover:bg-${config2.color.primary.background.hover.dark}`]: {},
|
3922
|
+
//Background focus
|
3923
|
+
[`@apply focus-visible:bg-${config2.color.primary.background.focus.light} dark:focus-visible:bg-${config2.color.primary.background.focus.dark}`]: {},
|
3924
|
+
//Background active
|
3925
|
+
[`@apply active:enabled:bg-${config2.color.primary.background.active.light} dark:active:enabled:bg-${config2.color.primary.background.active.dark}`]: {}
|
3843
3926
|
},
|
3844
3927
|
//Color:info
|
3845
3928
|
"&.nui-button-info": {
|
@@ -3847,7 +3930,11 @@ const buttonClose = plugin(({ addComponents, theme }) => {
|
|
3847
3930
|
//Background
|
3848
3931
|
[`@apply bg-${config2.color.info.background.base.light} dark:bg-${config2.color.info.background.base.dark}`]: {},
|
3849
3932
|
//Background hover
|
3850
|
-
[`@apply hover:bg-${config2.color.info.background.hover.light} dark:hover:bg-${config2.color.info.background.hover.dark}`]: {}
|
3933
|
+
[`@apply hover:bg-${config2.color.info.background.hover.light} dark:hover:bg-${config2.color.info.background.hover.dark}`]: {},
|
3934
|
+
//Background focus
|
3935
|
+
[`@apply focus-visible:bg-${config2.color.info.background.focus.light} dark:focus-visible:bg-${config2.color.info.background.focus.dark}`]: {},
|
3936
|
+
//Background active
|
3937
|
+
[`@apply active:enabled:bg-${config2.color.info.background.active.light} dark:active:enabled:bg-${config2.color.info.background.active.dark}`]: {}
|
3851
3938
|
},
|
3852
3939
|
//Color:success
|
3853
3940
|
"&.nui-button-success": {
|
@@ -3855,7 +3942,11 @@ const buttonClose = plugin(({ addComponents, theme }) => {
|
|
3855
3942
|
//Background
|
3856
3943
|
[`@apply bg-${config2.color.success.background.base.light} dark:bg-${config2.color.success.background.base.dark}`]: {},
|
3857
3944
|
//Background hover
|
3858
|
-
[`@apply hover:bg-${config2.color.success.background.hover.light} dark:hover:bg-${config2.color.success.background.hover.dark}`]: {}
|
3945
|
+
[`@apply hover:bg-${config2.color.success.background.hover.light} dark:hover:bg-${config2.color.success.background.hover.dark}`]: {},
|
3946
|
+
//Background focus
|
3947
|
+
[`@apply focus-visible:bg-${config2.color.success.background.focus.light} dark:focus-visible:bg-${config2.color.success.background.focus.dark}`]: {},
|
3948
|
+
//Background active
|
3949
|
+
[`@apply active:enabled:bg-${config2.color.success.background.active.light} dark:active:enabled:bg-${config2.color.success.background.active.dark}`]: {}
|
3859
3950
|
},
|
3860
3951
|
//Color:warning
|
3861
3952
|
"&.nui-button-warning": {
|
@@ -3863,7 +3954,11 @@ const buttonClose = plugin(({ addComponents, theme }) => {
|
|
3863
3954
|
//Background
|
3864
3955
|
[`@apply bg-${config2.color.warning.background.base.light} dark:bg-${config2.color.warning.background.base.dark}`]: {},
|
3865
3956
|
//Background hover
|
3866
|
-
[`@apply hover:bg-${config2.color.warning.background.hover.light} dark:hover:bg-${config2.color.warning.background.hover.dark}`]: {}
|
3957
|
+
[`@apply hover:bg-${config2.color.warning.background.hover.light} dark:hover:bg-${config2.color.warning.background.hover.dark}`]: {},
|
3958
|
+
//Background focus
|
3959
|
+
[`@apply focus-visible:bg-${config2.color.warning.background.focus.light} dark:focus-visible:bg-${config2.color.warning.background.focus.dark}`]: {},
|
3960
|
+
//Background active
|
3961
|
+
[`@apply active:enabled:bg-${config2.color.warning.background.active.light} dark:active:enabled:bg-${config2.color.warning.background.active.dark}`]: {}
|
3867
3962
|
},
|
3868
3963
|
//Color:danger
|
3869
3964
|
"&.nui-button-danger": {
|
@@ -3871,19 +3966,23 @@ const buttonClose = plugin(({ addComponents, theme }) => {
|
|
3871
3966
|
//Background
|
3872
3967
|
[`@apply bg-${config2.color.danger.background.base.light} dark:bg-${config2.color.danger.background.base.dark}`]: {},
|
3873
3968
|
//Background hover
|
3874
|
-
[`@apply hover:bg-${config2.color.danger.background.hover.light} dark:hover:bg-${config2.color.danger.background.hover.dark}`]: {}
|
3969
|
+
[`@apply hover:bg-${config2.color.danger.background.hover.light} dark:hover:bg-${config2.color.danger.background.hover.dark}`]: {},
|
3970
|
+
//Background focus
|
3971
|
+
[`@apply focus-visible:bg-${config2.color.danger.background.focus.light} dark:focus-visible:bg-${config2.color.danger.background.focus.dark}`]: {},
|
3972
|
+
//Background active
|
3973
|
+
[`@apply active:enabled:bg-${config2.color.danger.background.active.light} dark:active:enabled:bg-${config2.color.danger.background.active.dark}`]: {}
|
3875
3974
|
}
|
3876
3975
|
}
|
3877
3976
|
});
|
3878
|
-
}, config$
|
3977
|
+
}, config$N);
|
3879
3978
|
|
3880
|
-
const key$
|
3881
|
-
const defaultConfig$
|
3979
|
+
const key$M = "buttonAction";
|
3980
|
+
const defaultConfig$L = {};
|
3882
3981
|
|
3883
|
-
const config$
|
3982
|
+
const config$M = {
|
3884
3983
|
theme: {
|
3885
3984
|
nui: {
|
3886
|
-
[key$
|
3985
|
+
[key$M]: defaultConfig$L
|
3887
3986
|
}
|
3888
3987
|
}
|
3889
3988
|
};
|
@@ -3891,7 +3990,8 @@ const buttonGroup = plugin(
|
|
3891
3990
|
({ addComponents }) => addComponents({
|
3892
3991
|
'.nui-button-group, [role="group"]': {
|
3893
3992
|
"@apply flex": {},
|
3894
|
-
|
3993
|
+
// Button
|
3994
|
+
"> .nui-button:not(:only-child), > .nui-button-action:not(:only-child), > .nui-button-icon:not(:only-child)": {
|
3895
3995
|
"@apply !border-e-0": {},
|
3896
3996
|
"&:focus": {
|
3897
3997
|
"@apply !z-10 relative": {}
|
@@ -3906,6 +4006,7 @@ const buttonGroup = plugin(
|
|
3906
4006
|
"@apply !border-e !rounded-s-none": {}
|
3907
4007
|
}
|
3908
4008
|
},
|
4009
|
+
// Input
|
3909
4010
|
".nui-input-wrapper:not(:first-child):not(:last-child)": {
|
3910
4011
|
".nui-input": {
|
3911
4012
|
"@apply !border-e-0 !rounded-none": {},
|
@@ -3914,15 +4015,15 @@ const buttonGroup = plugin(
|
|
3914
4015
|
}
|
3915
4016
|
}
|
3916
4017
|
},
|
3917
|
-
".nui-input-wrapper:first-child": {
|
4018
|
+
".nui-input-wrapper:first-child:not(:last-child)": {
|
3918
4019
|
".nui-input": {
|
3919
|
-
"@apply !rounded-e-none": {},
|
4020
|
+
"@apply !border-e-0 !rounded-e-none": {},
|
3920
4021
|
"&:focus": {
|
3921
4022
|
"@apply !z-10 relative": {}
|
3922
4023
|
}
|
3923
4024
|
}
|
3924
4025
|
},
|
3925
|
-
".nui-input-wrapper:last-child": {
|
4026
|
+
".nui-input-wrapper:last-child:not(:first-child)": {
|
3926
4027
|
".nui-input": {
|
3927
4028
|
"@apply !border-e !rounded-s-none": {},
|
3928
4029
|
"&:focus": {
|
@@ -3930,6 +4031,57 @@ const buttonGroup = plugin(
|
|
3930
4031
|
}
|
3931
4032
|
}
|
3932
4033
|
},
|
4034
|
+
// InputNumber
|
4035
|
+
".nui-input-number-wrapper:not(:first-child):not(:last-child)": {
|
4036
|
+
".nui-input-number": {
|
4037
|
+
"@apply !border-e-0 !rounded-none": {},
|
4038
|
+
"&:focus": {
|
4039
|
+
"@apply !z-10 relative": {}
|
4040
|
+
}
|
4041
|
+
}
|
4042
|
+
},
|
4043
|
+
".nui-input-number-wrapper:first-child:not(:last-child)": {
|
4044
|
+
".nui-input-number": {
|
4045
|
+
"@apply !border-e-0 !rounded-e-none": {},
|
4046
|
+
"&:focus": {
|
4047
|
+
"@apply !z-10 relative": {}
|
4048
|
+
}
|
4049
|
+
}
|
4050
|
+
},
|
4051
|
+
".nui-input-number-wrapper:last-child:not(:first-child)": {
|
4052
|
+
".nui-input-number": {
|
4053
|
+
"@apply !border-e !rounded-s-none": {},
|
4054
|
+
"&:focus": {
|
4055
|
+
"@apply !z-10 relative": {}
|
4056
|
+
}
|
4057
|
+
}
|
4058
|
+
},
|
4059
|
+
// InputFileRegular
|
4060
|
+
".nui-input-file-regular:not(:first-child):not(:last-child)": {
|
4061
|
+
".nui-input-file-inner": {
|
4062
|
+
"@apply !border-e-0 !rounded-none": {},
|
4063
|
+
"&:focus": {
|
4064
|
+
"@apply !z-10 relative": {}
|
4065
|
+
}
|
4066
|
+
}
|
4067
|
+
},
|
4068
|
+
".nui-input-file-regular:first-child:not(:last-child)": {
|
4069
|
+
".nui-input-file-inner": {
|
4070
|
+
"@apply !border-e-0 !rounded-e-none": {},
|
4071
|
+
"&:focus": {
|
4072
|
+
"@apply !z-10 relative": {}
|
4073
|
+
}
|
4074
|
+
}
|
4075
|
+
},
|
4076
|
+
".nui-input-file-regular:last-child:not(:first-child)": {
|
4077
|
+
".nui-input-file-inner": {
|
4078
|
+
"@apply !border-e !rounded-s-none": {},
|
4079
|
+
"&:focus": {
|
4080
|
+
"@apply !z-10 relative": {}
|
4081
|
+
}
|
4082
|
+
}
|
4083
|
+
},
|
4084
|
+
// Select
|
3933
4085
|
".nui-select-wrapper:not(:first-child):not(:last-child)": {
|
3934
4086
|
".nui-select": {
|
3935
4087
|
"@apply !border-e-0 !rounded-none": {},
|
@@ -3938,40 +4090,83 @@ const buttonGroup = plugin(
|
|
3938
4090
|
}
|
3939
4091
|
}
|
3940
4092
|
},
|
3941
|
-
".nui-select-wrapper:first-child": {
|
4093
|
+
".nui-select-wrapper:first-child:not(:last-child)": {
|
3942
4094
|
".nui-select": {
|
3943
|
-
"@apply !rounded-e-none": {},
|
4095
|
+
"@apply !border-e-0 !rounded-e-none": {},
|
3944
4096
|
"&:focus": {
|
3945
4097
|
"@apply !z-10 relative": {}
|
3946
4098
|
}
|
3947
4099
|
}
|
3948
4100
|
},
|
3949
|
-
|
3950
|
-
|
4101
|
+
// Autocomplete
|
4102
|
+
".nui-autocomplete:not(:first-child):not(:last-child)": {
|
4103
|
+
".nui-autocomplete-input": {
|
4104
|
+
"@apply !border-e-0 !rounded-none": {},
|
4105
|
+
"&:focus": {
|
4106
|
+
"@apply !z-10 relative": {}
|
4107
|
+
}
|
4108
|
+
}
|
4109
|
+
},
|
4110
|
+
".nui-autocomplete:first-child:not(:last-child)": {
|
4111
|
+
".nui-autocomplete-input": {
|
4112
|
+
"@apply !border-e-0 !rounded-e-none": {},
|
4113
|
+
"&:focus": {
|
4114
|
+
"@apply !z-10 relative": {}
|
4115
|
+
}
|
4116
|
+
}
|
4117
|
+
},
|
4118
|
+
".nui-autocomplete:last-child:not(:first-child)": {
|
4119
|
+
".nui-autocomplete-input": {
|
3951
4120
|
"@apply !border-e !rounded-s-none": {},
|
3952
4121
|
"&:focus": {
|
3953
4122
|
"@apply !z-10 relative": {}
|
3954
4123
|
}
|
3955
4124
|
}
|
3956
4125
|
},
|
4126
|
+
// Dropdown
|
3957
4127
|
".nui-dropdown:not(:first-child):not(:last-child)": {
|
3958
|
-
".nui-
|
4128
|
+
".nui-button": {
|
3959
4129
|
"@apply !border-e-0 !rounded-none": {},
|
3960
4130
|
"&:focus": {
|
3961
4131
|
"@apply !z-10 relative": {}
|
3962
4132
|
}
|
3963
4133
|
}
|
3964
4134
|
},
|
3965
|
-
".nui-dropdown:first-child": {
|
3966
|
-
".nui-
|
3967
|
-
"@apply !rounded-e-none": {},
|
4135
|
+
".nui-dropdown:first-child:not(:last-child)": {
|
4136
|
+
".nui-button": {
|
4137
|
+
"@apply !border-e-0 !rounded-e-none": {},
|
3968
4138
|
"&:focus": {
|
3969
4139
|
"@apply !z-10 relative": {}
|
3970
4140
|
}
|
3971
4141
|
}
|
3972
4142
|
},
|
3973
|
-
".nui-dropdown:last-child": {
|
3974
|
-
".nui-
|
4143
|
+
".nui-dropdown:last-child:not(:first-child)": {
|
4144
|
+
".nui-button": {
|
4145
|
+
"@apply !border-e !rounded-s-none": {},
|
4146
|
+
"&:focus": {
|
4147
|
+
"@apply !z-10 relative": {}
|
4148
|
+
}
|
4149
|
+
}
|
4150
|
+
},
|
4151
|
+
// Listbox
|
4152
|
+
".nui-listbox:not(:first-child):not(:last-child)": {
|
4153
|
+
".nui-listbox-button": {
|
4154
|
+
"@apply !border-e-0 !rounded-none": {},
|
4155
|
+
"&:focus": {
|
4156
|
+
"@apply !z-10 relative": {}
|
4157
|
+
}
|
4158
|
+
}
|
4159
|
+
},
|
4160
|
+
".nui-listbox:first-child:not(:last-child)": {
|
4161
|
+
".nui-listbox-button": {
|
4162
|
+
"@apply !border-e-0 !rounded-e-none": {},
|
4163
|
+
"&:focus": {
|
4164
|
+
"@apply !z-10 relative": {}
|
4165
|
+
}
|
4166
|
+
}
|
4167
|
+
},
|
4168
|
+
".nui-listbox:last-child:not(:first-child)": {
|
4169
|
+
".nui-listbox-button": {
|
3975
4170
|
"@apply !border-e !rounded-s-none": {},
|
3976
4171
|
"&:focus": {
|
3977
4172
|
"@apply !z-10 relative": {}
|
@@ -3980,11 +4175,11 @@ const buttonGroup = plugin(
|
|
3980
4175
|
}
|
3981
4176
|
}
|
3982
4177
|
}),
|
3983
|
-
config$
|
4178
|
+
config$M
|
3984
4179
|
);
|
3985
4180
|
|
3986
|
-
const key$
|
3987
|
-
const defaultConfig$
|
4181
|
+
const key$L = "buttonIcon";
|
4182
|
+
const defaultConfig$K = {
|
3988
4183
|
font: {
|
3989
4184
|
family: "sans",
|
3990
4185
|
size: "sm",
|
@@ -4242,15 +4437,15 @@ const defaultConfig$J = {
|
|
4242
4437
|
}
|
4243
4438
|
};
|
4244
4439
|
|
4245
|
-
const config$
|
4440
|
+
const config$L = {
|
4246
4441
|
theme: {
|
4247
4442
|
nui: {
|
4248
|
-
[key$
|
4443
|
+
[key$L]: defaultConfig$K
|
4249
4444
|
}
|
4250
4445
|
}
|
4251
4446
|
};
|
4252
4447
|
const buttonIcon = plugin(({ addComponents, theme }) => {
|
4253
|
-
const config2 = theme(`nui.${key$
|
4448
|
+
const config2 = theme(`nui.${key$L}`);
|
4254
4449
|
addComponents({
|
4255
4450
|
".nui-button-icon": {
|
4256
4451
|
//Base
|
@@ -4405,10 +4600,10 @@ const buttonIcon = plugin(({ addComponents, theme }) => {
|
|
4405
4600
|
}
|
4406
4601
|
}
|
4407
4602
|
});
|
4408
|
-
}, config$
|
4603
|
+
}, config$L);
|
4409
4604
|
|
4410
|
-
const key$
|
4411
|
-
const defaultConfig$
|
4605
|
+
const key$K = "button";
|
4606
|
+
const defaultConfig$J = {
|
4412
4607
|
font: {
|
4413
4608
|
family: "sans",
|
4414
4609
|
weight: "normal"
|
@@ -4501,8 +4696,8 @@ const defaultConfig$I = {
|
|
4501
4696
|
},
|
4502
4697
|
border: {
|
4503
4698
|
light: {
|
4504
|
-
base: "muted-
|
4505
|
-
hover: "muted-
|
4699
|
+
base: "muted-300",
|
4700
|
+
hover: "muted-200"
|
4506
4701
|
},
|
4507
4702
|
dark: {
|
4508
4703
|
base: "muted-600",
|
@@ -5459,15 +5654,15 @@ const defaultConfig$I = {
|
|
5459
5654
|
}
|
5460
5655
|
};
|
5461
5656
|
|
5462
|
-
const config$
|
5657
|
+
const config$K = {
|
5463
5658
|
theme: {
|
5464
5659
|
nui: {
|
5465
|
-
button: defaultConfig$
|
5660
|
+
button: defaultConfig$J
|
5466
5661
|
}
|
5467
5662
|
}
|
5468
5663
|
};
|
5469
5664
|
const button = plugin(({ addComponents, theme }) => {
|
5470
|
-
const config2 = theme(`nui.${key$
|
5665
|
+
const config2 = theme(`nui.${key$K}`);
|
5471
5666
|
addComponents({
|
5472
5667
|
".nui-button": {
|
5473
5668
|
// #region Base
|
@@ -6235,10 +6430,10 @@ const button = plugin(({ addComponents, theme }) => {
|
|
6235
6430
|
// #endregion
|
6236
6431
|
}
|
6237
6432
|
});
|
6238
|
-
}, config$
|
6433
|
+
}, config$K);
|
6239
6434
|
|
6240
|
-
const key$
|
6241
|
-
const defaultConfig$
|
6435
|
+
const key$J = "card";
|
6436
|
+
const defaultConfig$I = {
|
6242
6437
|
width: "full",
|
6243
6438
|
rounded: {
|
6244
6439
|
none: "none",
|
@@ -6369,15 +6564,15 @@ const defaultConfig$H = {
|
|
6369
6564
|
}
|
6370
6565
|
};
|
6371
6566
|
|
6372
|
-
const config$
|
6567
|
+
const config$J = {
|
6373
6568
|
theme: {
|
6374
6569
|
nui: {
|
6375
|
-
[key$
|
6570
|
+
[key$J]: defaultConfig$I
|
6376
6571
|
}
|
6377
6572
|
}
|
6378
6573
|
};
|
6379
6574
|
const card = plugin(({ addComponents, theme }) => {
|
6380
|
-
const config2 = theme(`nui.${key$
|
6575
|
+
const config2 = theme(`nui.${key$J}`);
|
6381
6576
|
addComponents({
|
6382
6577
|
".nui-card": {
|
6383
6578
|
//Base
|
@@ -6482,10 +6677,10 @@ const card = plugin(({ addComponents, theme }) => {
|
|
6482
6677
|
}
|
6483
6678
|
}
|
6484
6679
|
});
|
6485
|
-
}, config$
|
6680
|
+
}, config$J);
|
6486
6681
|
|
6487
|
-
const key$
|
6488
|
-
const defaultConfig$
|
6682
|
+
const key$I = "checkbox";
|
6683
|
+
const defaultConfig$H = {
|
6489
6684
|
rounded: {
|
6490
6685
|
sm: "rounded",
|
6491
6686
|
md: "rounded-md",
|
@@ -6587,15 +6782,15 @@ const defaultConfig$G = {
|
|
6587
6782
|
}
|
6588
6783
|
};
|
6589
6784
|
|
6590
|
-
const config$
|
6785
|
+
const config$I = {
|
6591
6786
|
theme: {
|
6592
6787
|
nui: {
|
6593
|
-
[key$
|
6788
|
+
[key$I]: defaultConfig$H
|
6594
6789
|
}
|
6595
6790
|
}
|
6596
6791
|
};
|
6597
6792
|
const checkbox = plugin(({ addComponents, theme }) => {
|
6598
|
-
const config2 = theme(`nui.${key$
|
6793
|
+
const config2 = theme(`nui.${key$I}`);
|
6599
6794
|
addComponents({
|
6600
6795
|
//Wrapper
|
6601
6796
|
".nui-checkbox": {
|
@@ -6659,9 +6854,7 @@ const checkbox = plugin(({ addComponents, theme }) => {
|
|
6659
6854
|
},
|
6660
6855
|
//Error
|
6661
6856
|
".nui-checkbox-error": {
|
6662
|
-
[`@apply
|
6663
|
-
//Color
|
6664
|
-
[`@apply text-${config2.error.font.color.light} dark:text-${config2.error.font.color.dark}`]: {}
|
6857
|
+
[`@apply ms-1 inline-block`]: {}
|
6665
6858
|
},
|
6666
6859
|
//Rounded:sm
|
6667
6860
|
"&.nui-checkbox-rounded-sm .nui-checkbox-outer, &.nui-checkbox-rounded-sm .nui-checkbox-inner": {
|
@@ -6721,10 +6914,10 @@ const checkbox = plugin(({ addComponents, theme }) => {
|
|
6721
6914
|
}
|
6722
6915
|
}
|
6723
6916
|
});
|
6724
|
-
}, config$
|
6917
|
+
}, config$I);
|
6725
6918
|
|
6726
|
-
const key$
|
6727
|
-
const defaultConfig$
|
6919
|
+
const key$H = "drodownDivider";
|
6920
|
+
const defaultConfig$G = {
|
6728
6921
|
margin: {
|
6729
6922
|
y: "2"
|
6730
6923
|
},
|
@@ -6734,24 +6927,24 @@ const defaultConfig$F = {
|
|
6734
6927
|
}
|
6735
6928
|
};
|
6736
6929
|
|
6737
|
-
const config$
|
6930
|
+
const config$H = {
|
6738
6931
|
theme: {
|
6739
6932
|
nui: {
|
6740
|
-
[key$
|
6933
|
+
[key$H]: defaultConfig$G
|
6741
6934
|
}
|
6742
6935
|
}
|
6743
6936
|
};
|
6744
6937
|
const dropdownDivider = plugin(({ addComponents, theme }) => {
|
6745
|
-
const config2 = theme(`nui.${key$
|
6938
|
+
const config2 = theme(`nui.${key$H}`);
|
6746
6939
|
addComponents({
|
6747
6940
|
".nui-dropdown-divider": {
|
6748
6941
|
[`@apply my-${config2.margin.y} block h-px w-full border-t border-${config2.border.light} dark:border-${config2.border.dark}`]: {}
|
6749
6942
|
}
|
6750
6943
|
});
|
6751
|
-
}, config$
|
6944
|
+
}, config$H);
|
6752
6945
|
|
6753
|
-
const key$
|
6754
|
-
const defaultConfig$
|
6946
|
+
const key$G = "dropdownItem";
|
6947
|
+
const defaultConfig$F = {
|
6755
6948
|
align: "start",
|
6756
6949
|
font: {
|
6757
6950
|
family: "sans",
|
@@ -6847,15 +7040,15 @@ const defaultConfig$E = {
|
|
6847
7040
|
}
|
6848
7041
|
};
|
6849
7042
|
|
6850
|
-
const config$
|
7043
|
+
const config$G = {
|
6851
7044
|
theme: {
|
6852
7045
|
nui: {
|
6853
|
-
[key$
|
7046
|
+
[key$G]: defaultConfig$F
|
6854
7047
|
}
|
6855
7048
|
}
|
6856
7049
|
};
|
6857
7050
|
const dropdownItem = plugin(({ addComponents, theme }) => {
|
6858
|
-
const config2 = theme(`nui.${key$
|
7051
|
+
const config2 = theme(`nui.${key$G}`);
|
6859
7052
|
addComponents({
|
6860
7053
|
//Wrapper
|
6861
7054
|
".nui-dropdown-item": {
|
@@ -6872,6 +7065,10 @@ const dropdownItem = plugin(({ addComponents, theme }) => {
|
|
6872
7065
|
"&:not(.nui-active)": {
|
6873
7066
|
[`@apply text-${config2.font.color.inactive.light} dark:text-${config2.font.color.inactive.dark}`]: {}
|
6874
7067
|
},
|
7068
|
+
//Item:disabled
|
7069
|
+
"&.nui-item-disabled": {
|
7070
|
+
[`@apply opacity-50 pointer-events-none`]: {}
|
7071
|
+
},
|
6875
7072
|
//Contrast:default
|
6876
7073
|
"&.nui-item-default": {
|
6877
7074
|
//Background:hover
|
@@ -6939,10 +7136,10 @@ const dropdownItem = plugin(({ addComponents, theme }) => {
|
|
6939
7136
|
}
|
6940
7137
|
}
|
6941
7138
|
});
|
6942
|
-
}, config$
|
7139
|
+
}, config$G);
|
6943
7140
|
|
6944
|
-
const key$
|
6945
|
-
const defaultConfig$
|
7141
|
+
const key$F = "dropdown";
|
7142
|
+
const defaultConfig$E = {
|
6946
7143
|
align: "start",
|
6947
7144
|
button: {
|
6948
7145
|
context: {
|
@@ -6989,15 +7186,6 @@ const defaultConfig$D = {
|
|
6989
7186
|
duration: "300"
|
6990
7187
|
}
|
6991
7188
|
},
|
6992
|
-
text: {
|
6993
|
-
font: {
|
6994
|
-
family: "sans",
|
6995
|
-
color: {
|
6996
|
-
light: "muted-400",
|
6997
|
-
dark: "muted-400"
|
6998
|
-
}
|
6999
|
-
}
|
7000
|
-
},
|
7001
7189
|
chevron: {
|
7002
7190
|
size: "4",
|
7003
7191
|
transition: {
|
@@ -7075,15 +7263,15 @@ const defaultConfig$D = {
|
|
7075
7263
|
}
|
7076
7264
|
};
|
7077
7265
|
|
7078
|
-
const config$
|
7266
|
+
const config$F = {
|
7079
7267
|
theme: {
|
7080
7268
|
nui: {
|
7081
|
-
[key$
|
7269
|
+
[key$F]: defaultConfig$E
|
7082
7270
|
}
|
7083
7271
|
}
|
7084
7272
|
};
|
7085
7273
|
const dropdown = plugin(({ addComponents, theme }) => {
|
7086
|
-
const config2 = theme(`nui.${key$
|
7274
|
+
const config2 = theme(`nui.${key$F}`);
|
7087
7275
|
addComponents({
|
7088
7276
|
//Wrapper
|
7089
7277
|
".nui-dropdown": {
|
@@ -7130,13 +7318,7 @@ const dropdown = plugin(({ addComponents, theme }) => {
|
|
7130
7318
|
//Button:text
|
7131
7319
|
".nui-text-button": {
|
7132
7320
|
//Base
|
7133
|
-
"@apply flex items-center space-x-1": {}
|
7134
|
-
//Font
|
7135
|
-
[`@apply font-${config2.button.text.font.family} text-${config2.button.text.font.color.light} dark:text-${config2.button.text.font.color.dark}`]: {},
|
7136
|
-
//Text:inner
|
7137
|
-
".nui-text-button-inner": {
|
7138
|
-
[`@apply font-${config2.button.text.font.family}`]: {}
|
7139
|
-
}
|
7321
|
+
"@apply flex items-center space-x-1": {}
|
7140
7322
|
},
|
7141
7323
|
//Button:chevron
|
7142
7324
|
".nui-chevron": {
|
@@ -7238,10 +7420,10 @@ const dropdown = plugin(({ addComponents, theme }) => {
|
|
7238
7420
|
}
|
7239
7421
|
}
|
7240
7422
|
});
|
7241
|
-
}, config$
|
7423
|
+
}, config$F);
|
7242
7424
|
|
7243
|
-
const key$
|
7244
|
-
const defaultConfig$
|
7425
|
+
const key$E = "focus";
|
7426
|
+
const defaultConfig$D = {
|
7245
7427
|
offset: "2",
|
7246
7428
|
width: "2",
|
7247
7429
|
style: "dashed",
|
@@ -7252,15 +7434,15 @@ const defaultConfig$C = {
|
|
7252
7434
|
mode: "always"
|
7253
7435
|
};
|
7254
7436
|
|
7255
|
-
const config$
|
7437
|
+
const config$E = {
|
7256
7438
|
theme: {
|
7257
7439
|
nui: {
|
7258
|
-
[key$
|
7440
|
+
[key$E]: defaultConfig$D
|
7259
7441
|
}
|
7260
7442
|
}
|
7261
7443
|
};
|
7262
7444
|
const focus = plugin(({ addComponents, theme }) => {
|
7263
|
-
const config2 = theme(`nui.${key$
|
7445
|
+
const config2 = theme(`nui.${key$E}`);
|
7264
7446
|
const mode = config2.mode === "focus-visible" ? "&:has(:focus-visible), &:focus-visible" : "&:focus-within";
|
7265
7447
|
addComponents({
|
7266
7448
|
".nui-focus": {
|
@@ -7272,10 +7454,10 @@ const focus = plugin(({ addComponents, theme }) => {
|
|
7272
7454
|
}
|
7273
7455
|
}
|
7274
7456
|
});
|
7275
|
-
}, config$
|
7457
|
+
}, config$E);
|
7276
7458
|
|
7277
|
-
const key$
|
7278
|
-
const defaultConfig$
|
7459
|
+
const key$D = "fullscreenDropfile";
|
7460
|
+
const defaultConfig$C = {
|
7279
7461
|
height: "[230px]",
|
7280
7462
|
width: "[500px]",
|
7281
7463
|
rounded: "rounded-md",
|
@@ -7310,15 +7492,15 @@ const defaultConfig$B = {
|
|
7310
7492
|
}
|
7311
7493
|
};
|
7312
7494
|
|
7313
|
-
const config$
|
7495
|
+
const config$D = {
|
7314
7496
|
theme: {
|
7315
7497
|
nui: {
|
7316
|
-
[key$
|
7498
|
+
[key$D]: defaultConfig$C
|
7317
7499
|
}
|
7318
7500
|
}
|
7319
7501
|
};
|
7320
7502
|
const fullscreenDropfile = plugin(({ addComponents, theme }) => {
|
7321
|
-
const config2 = theme(`nui.${key$
|
7503
|
+
const config2 = theme(`nui.${key$D}`);
|
7322
7504
|
addComponents({
|
7323
7505
|
//Wrapper
|
7324
7506
|
".nui-fullscreen-dropfile": {
|
@@ -7391,10 +7573,10 @@ const fullscreenDropfile = plugin(({ addComponents, theme }) => {
|
|
7391
7573
|
}
|
7392
7574
|
}
|
7393
7575
|
});
|
7394
|
-
}, config$
|
7576
|
+
}, config$D);
|
7395
7577
|
|
7396
|
-
const key$
|
7397
|
-
const defaultConfig$
|
7578
|
+
const key$C = "heading";
|
7579
|
+
const defaultConfig$B = {
|
7398
7580
|
size: {
|
7399
7581
|
xs: "xs",
|
7400
7582
|
sm: "sm",
|
@@ -7427,15 +7609,15 @@ const defaultConfig$A = {
|
|
7427
7609
|
}
|
7428
7610
|
};
|
7429
7611
|
|
7430
|
-
const config$
|
7612
|
+
const config$C = {
|
7431
7613
|
theme: {
|
7432
7614
|
nui: {
|
7433
|
-
[key$
|
7615
|
+
[key$C]: defaultConfig$B
|
7434
7616
|
}
|
7435
7617
|
}
|
7436
7618
|
};
|
7437
7619
|
const heading = plugin(({ addComponents, theme }) => {
|
7438
|
-
const config2 = theme(`nui.${key$
|
7620
|
+
const config2 = theme(`nui.${key$C}`);
|
7439
7621
|
addComponents({
|
7440
7622
|
".nui-heading": {
|
7441
7623
|
"@apply font-sans": {},
|
@@ -7516,10 +7698,10 @@ const heading = plugin(({ addComponents, theme }) => {
|
|
7516
7698
|
}
|
7517
7699
|
}
|
7518
7700
|
});
|
7519
|
-
}, config$
|
7701
|
+
}, config$C);
|
7520
7702
|
|
7521
|
-
const key$
|
7522
|
-
const defaultConfig$
|
7703
|
+
const key$B = "iconBox";
|
7704
|
+
const defaultConfig$A = {
|
7523
7705
|
bordered: {
|
7524
7706
|
border: {
|
7525
7707
|
size: "2",
|
@@ -7609,6 +7791,30 @@ const defaultConfig$z = {
|
|
7609
7791
|
}
|
7610
7792
|
}
|
7611
7793
|
},
|
7794
|
+
muted: {
|
7795
|
+
background: {
|
7796
|
+
light: "muted-200",
|
7797
|
+
dark: "muted-700"
|
7798
|
+
},
|
7799
|
+
font: {
|
7800
|
+
color: {
|
7801
|
+
light: "muted-700",
|
7802
|
+
dark: "muted-200"
|
7803
|
+
}
|
7804
|
+
}
|
7805
|
+
},
|
7806
|
+
mutedContrast: {
|
7807
|
+
background: {
|
7808
|
+
light: "muted-200",
|
7809
|
+
dark: "muted-950"
|
7810
|
+
},
|
7811
|
+
font: {
|
7812
|
+
color: {
|
7813
|
+
light: "muted-700",
|
7814
|
+
dark: "muted-100"
|
7815
|
+
}
|
7816
|
+
}
|
7817
|
+
},
|
7612
7818
|
light: {
|
7613
7819
|
background: {
|
7614
7820
|
light: "white",
|
@@ -7731,6 +7937,30 @@ const defaultConfig$z = {
|
|
7731
7937
|
}
|
7732
7938
|
}
|
7733
7939
|
},
|
7940
|
+
muted: {
|
7941
|
+
background: {
|
7942
|
+
light: "muted-600/10",
|
7943
|
+
dark: "muted-700/10"
|
7944
|
+
},
|
7945
|
+
font: {
|
7946
|
+
color: {
|
7947
|
+
light: "muted-700",
|
7948
|
+
dark: "muted-200"
|
7949
|
+
}
|
7950
|
+
}
|
7951
|
+
},
|
7952
|
+
mutedContrast: {
|
7953
|
+
background: {
|
7954
|
+
light: "muted-600/10",
|
7955
|
+
dark: "muted-950/10"
|
7956
|
+
},
|
7957
|
+
font: {
|
7958
|
+
color: {
|
7959
|
+
light: "muted-700",
|
7960
|
+
dark: "muted-100"
|
7961
|
+
}
|
7962
|
+
}
|
7963
|
+
},
|
7734
7964
|
light: {
|
7735
7965
|
background: {
|
7736
7966
|
light: "white/10",
|
@@ -7861,6 +8091,38 @@ const defaultConfig$z = {
|
|
7861
8091
|
}
|
7862
8092
|
}
|
7863
8093
|
},
|
8094
|
+
muted: {
|
8095
|
+
background: {
|
8096
|
+
light: "transparent",
|
8097
|
+
dark: "transparent"
|
8098
|
+
},
|
8099
|
+
border: {
|
8100
|
+
light: "current",
|
8101
|
+
dark: "current"
|
8102
|
+
},
|
8103
|
+
font: {
|
8104
|
+
color: {
|
8105
|
+
light: "muted-700",
|
8106
|
+
dark: "muted-200"
|
8107
|
+
}
|
8108
|
+
}
|
8109
|
+
},
|
8110
|
+
mutedContrast: {
|
8111
|
+
background: {
|
8112
|
+
light: "transparent",
|
8113
|
+
dark: "transparent"
|
8114
|
+
},
|
8115
|
+
border: {
|
8116
|
+
light: "current",
|
8117
|
+
dark: "current"
|
8118
|
+
},
|
8119
|
+
font: {
|
8120
|
+
color: {
|
8121
|
+
light: "muted-700",
|
8122
|
+
dark: "muted-100"
|
8123
|
+
}
|
8124
|
+
}
|
8125
|
+
},
|
7864
8126
|
light: {
|
7865
8127
|
background: {
|
7866
8128
|
light: "transparent",
|
@@ -7994,15 +8256,15 @@ const defaultConfig$z = {
|
|
7994
8256
|
}
|
7995
8257
|
};
|
7996
8258
|
|
7997
|
-
const config$
|
8259
|
+
const config$B = {
|
7998
8260
|
theme: {
|
7999
8261
|
nui: {
|
8000
|
-
[key$
|
8262
|
+
[key$B]: defaultConfig$A
|
8001
8263
|
}
|
8002
8264
|
}
|
8003
8265
|
};
|
8004
8266
|
const iconBox = plugin(({ addComponents, theme }) => {
|
8005
|
-
const config2 = theme(`nui.${key$
|
8267
|
+
const config2 = theme(`nui.${key$B}`);
|
8006
8268
|
addComponents({
|
8007
8269
|
//Wrapper
|
8008
8270
|
".nui-icon-box": {
|
@@ -8130,6 +8392,20 @@ const iconBox = plugin(({ addComponents, theme }) => {
|
|
8130
8392
|
//Background
|
8131
8393
|
[`@apply bg-${config2.color.variant.solid.defaultContrast.background.light} dark:bg-${config2.color.variant.solid.defaultContrast.background.dark}`]: {}
|
8132
8394
|
},
|
8395
|
+
//Color:muted
|
8396
|
+
"&.nui-box-muted": {
|
8397
|
+
//Font
|
8398
|
+
[`@apply text-${config2.color.variant.solid.muted.font.color.light} dark:text-${config2.color.variant.solid.muted.font.color.dark}`]: {},
|
8399
|
+
//Background
|
8400
|
+
[`@apply bg-${config2.color.variant.solid.muted.background.light} dark:bg-${config2.color.variant.solid.muted.background.dark}`]: {}
|
8401
|
+
},
|
8402
|
+
//Color:muted-contrast
|
8403
|
+
"&.nui-box-muted-contrast": {
|
8404
|
+
//Font
|
8405
|
+
[`@apply text-${config2.color.variant.solid.mutedContrast.font.color.light} dark:text-${config2.color.variant.solid.mutedContrast.font.color.dark}`]: {},
|
8406
|
+
//Background
|
8407
|
+
[`@apply bg-${config2.color.variant.solid.mutedContrast.background.light} dark:bg-${config2.color.variant.solid.mutedContrast.background.dark}`]: {}
|
8408
|
+
},
|
8133
8409
|
//Color:light
|
8134
8410
|
"&.nui-box-light": {
|
8135
8411
|
//Font
|
@@ -8203,6 +8479,20 @@ const iconBox = plugin(({ addComponents, theme }) => {
|
|
8203
8479
|
//Background
|
8204
8480
|
[`@apply bg-${config2.color.variant.pastel.defaultContrast.background.light} dark:bg-${config2.color.variant.pastel.defaultContrast.background.dark}`]: {}
|
8205
8481
|
},
|
8482
|
+
//Color:muted
|
8483
|
+
"&.nui-box-muted": {
|
8484
|
+
//Font
|
8485
|
+
[`@apply text-${config2.color.variant.pastel.muted.font.color.light} dark:text-${config2.color.variant.pastel.muted.font.color.dark}`]: {},
|
8486
|
+
//Background
|
8487
|
+
[`@apply bg-${config2.color.variant.pastel.muted.background.light} dark:bg-${config2.color.variant.pastel.muted.background.dark}`]: {}
|
8488
|
+
},
|
8489
|
+
//Color:muted-contrast
|
8490
|
+
"&.nui-box-muted-contrast": {
|
8491
|
+
//Font
|
8492
|
+
[`@apply text-${config2.color.variant.pastel.mutedContrast.font.color.light} dark:text-${config2.color.variant.pastel.mutedContrast.font.color.dark}`]: {},
|
8493
|
+
//Background
|
8494
|
+
[`@apply bg-${config2.color.variant.pastel.mutedContrast.background.light} dark:bg-${config2.color.variant.pastel.mutedContrast.background.dark}`]: {}
|
8495
|
+
},
|
8206
8496
|
//Color:light
|
8207
8497
|
"&.nui-box-light": {
|
8208
8498
|
//Font
|
@@ -8280,6 +8570,24 @@ const iconBox = plugin(({ addComponents, theme }) => {
|
|
8280
8570
|
//Border
|
8281
8571
|
[`@apply border-2 border-${config2.color.variant.outline.defaultContrast.border.light} dark:border-${config2.color.variant.outline.defaultContrast.border.dark}`]: {}
|
8282
8572
|
},
|
8573
|
+
//Color:muted
|
8574
|
+
"&.nui-box-muted": {
|
8575
|
+
//Font
|
8576
|
+
[`@apply text-${config2.color.variant.outline.muted.font.color.light} dark:text-${config2.color.variant.outline.muted.font.color.dark}`]: {},
|
8577
|
+
//Background
|
8578
|
+
[`@apply bg-${config2.color.variant.outline.muted.background.light} bg-${config2.color.variant.outline.muted.background.dark}`]: {},
|
8579
|
+
//Border
|
8580
|
+
[`@apply border-2 border-${config2.color.variant.outline.muted.border.light} dark:border-${config2.color.variant.outline.muted.border.dark}`]: {}
|
8581
|
+
},
|
8582
|
+
//Color:muted-contrast
|
8583
|
+
"&.nui-box-muted-contrast": {
|
8584
|
+
//Font
|
8585
|
+
[`@apply text-${config2.color.variant.outline.mutedContrast.font.color.light} dark:text-${config2.color.variant.outline.mutedContrast.font.color.dark}`]: {},
|
8586
|
+
//Background
|
8587
|
+
[`@apply bg-${config2.color.variant.outline.mutedContrast.background.light} bg-${config2.color.variant.outline.mutedContrast.background.dark}`]: {},
|
8588
|
+
//Border
|
8589
|
+
[`@apply border-2 border-${config2.color.variant.outline.mutedContrast.border.light} dark:border-${config2.color.variant.outline.mutedContrast.border.dark}`]: {}
|
8590
|
+
},
|
8283
8591
|
//Color:light
|
8284
8592
|
"&.nui-box-light": {
|
8285
8593
|
//Font
|
@@ -8363,10 +8671,10 @@ const iconBox = plugin(({ addComponents, theme }) => {
|
|
8363
8671
|
}
|
8364
8672
|
}
|
8365
8673
|
});
|
8366
|
-
}, config$
|
8674
|
+
}, config$B);
|
8367
8675
|
|
8368
|
-
const key$
|
8369
|
-
const defaultConfig$
|
8676
|
+
const key$A = "inputFileRegular";
|
8677
|
+
const defaultConfig$z = {
|
8370
8678
|
font: {
|
8371
8679
|
color: {
|
8372
8680
|
light: "muted-400",
|
@@ -8563,15 +8871,15 @@ const defaultConfig$y = {
|
|
8563
8871
|
}
|
8564
8872
|
};
|
8565
8873
|
|
8566
|
-
const config$
|
8874
|
+
const config$A = {
|
8567
8875
|
theme: {
|
8568
8876
|
nui: {
|
8569
|
-
[key$
|
8877
|
+
[key$A]: defaultConfig$z
|
8570
8878
|
}
|
8571
8879
|
}
|
8572
8880
|
};
|
8573
8881
|
const inputFileRegular = plugin(({ addComponents, theme }) => {
|
8574
|
-
const config2 = theme(`nui.${key$
|
8882
|
+
const config2 = theme(`nui.${key$A}`);
|
8575
8883
|
addComponents({
|
8576
8884
|
//Wrapper
|
8577
8885
|
".nui-input-file-regular": {
|
@@ -8614,13 +8922,6 @@ const inputFileRegular = plugin(({ addComponents, theme }) => {
|
|
8614
8922
|
"@apply h-3 w-full max-w-[75%] rounded": {}
|
8615
8923
|
}
|
8616
8924
|
},
|
8617
|
-
//Input:error
|
8618
|
-
".nui-input-file-error-text": {
|
8619
|
-
//Base
|
8620
|
-
[`@apply mt-1 block font-${config2.error.font.family} text-${config2.error.font.size} font-${config2.error.font.weight} leading-none`]: {},
|
8621
|
-
//Color
|
8622
|
-
[`@apply text-${config2.error.font.color.light} dark:text-${config2.error.font.color.dark}`]: {}
|
8623
|
-
},
|
8624
8925
|
//Color:default
|
8625
8926
|
"&.nui-input-default": {
|
8626
8927
|
//Input:inner
|
@@ -8815,10 +9116,10 @@ const inputFileRegular = plugin(({ addComponents, theme }) => {
|
|
8815
9116
|
}
|
8816
9117
|
}
|
8817
9118
|
});
|
8818
|
-
}, config$
|
9119
|
+
}, config$A);
|
8819
9120
|
|
8820
|
-
const key$
|
8821
|
-
const defaultConfig$
|
9121
|
+
const key$z = "inputFile";
|
9122
|
+
const defaultConfig$y = {
|
8822
9123
|
drop: {
|
8823
9124
|
height: "64",
|
8824
9125
|
border: {
|
@@ -9070,15 +9371,15 @@ const defaultConfig$x = {
|
|
9070
9371
|
}
|
9071
9372
|
};
|
9072
9373
|
|
9073
|
-
const config$
|
9374
|
+
const config$z = {
|
9074
9375
|
theme: {
|
9075
9376
|
nui: {
|
9076
|
-
[key$
|
9377
|
+
[key$z]: defaultConfig$y
|
9077
9378
|
}
|
9078
9379
|
}
|
9079
9380
|
};
|
9080
9381
|
const inputFile = plugin(({ addComponents, theme }) => {
|
9081
|
-
const config2 = theme(`nui.${key$
|
9382
|
+
const config2 = theme(`nui.${key$z}`);
|
9082
9383
|
addComponents({
|
9083
9384
|
//Wrapper
|
9084
9385
|
".nui-input-file": {
|
@@ -9353,10 +9654,10 @@ const inputFile = plugin(({ addComponents, theme }) => {
|
|
9353
9654
|
}
|
9354
9655
|
}
|
9355
9656
|
});
|
9356
|
-
}, config$
|
9657
|
+
}, config$z);
|
9357
9658
|
|
9358
|
-
const key$
|
9359
|
-
const defaultConfig$
|
9659
|
+
const key$y = "input";
|
9660
|
+
const defaultConfig$x = {
|
9360
9661
|
rounded: {
|
9361
9662
|
none: "rounded-none",
|
9362
9663
|
sm: "rounded-md",
|
@@ -9718,15 +10019,15 @@ const defaultConfig$w = {
|
|
9718
10019
|
}
|
9719
10020
|
};
|
9720
10021
|
|
9721
|
-
const config$
|
10022
|
+
const config$y = {
|
9722
10023
|
theme: {
|
9723
10024
|
nui: {
|
9724
|
-
[key$
|
10025
|
+
[key$y]: defaultConfig$x
|
9725
10026
|
}
|
9726
10027
|
}
|
9727
10028
|
};
|
9728
10029
|
const input = plugin(({ addComponents, theme }) => {
|
9729
|
-
const config2 = theme(`nui.${key$
|
10030
|
+
const config2 = theme(`nui.${key$y}`);
|
9730
10031
|
addComponents({
|
9731
10032
|
//Wrapper
|
9732
10033
|
".nui-input-wrapper": {
|
@@ -9755,15 +10056,6 @@ const input = plugin(({ addComponents, theme }) => {
|
|
9755
10056
|
//Transition
|
9756
10057
|
[`@apply transition-${config2.input.icon.transition.property} duration-${config2.input.icon.transition.duration}`]: {}
|
9757
10058
|
},
|
9758
|
-
//Error:text
|
9759
|
-
".nui-input-error-text": {
|
9760
|
-
//Base
|
9761
|
-
"@apply mt-1 block": {},
|
9762
|
-
//Font
|
9763
|
-
[`@apply font-${config2.error.font.family} text-${config2.error.font.size} font-${config2.error.font.weight} leading-none`]: {},
|
9764
|
-
//Font color
|
9765
|
-
[`@apply text-${config2.error.font.color.light} dark:text-${config2.error.font.color.dark}`]: {}
|
9766
|
-
},
|
9767
10059
|
//Input
|
9768
10060
|
".nui-input": {
|
9769
10061
|
//Base
|
@@ -10122,10 +10414,10 @@ const input = plugin(({ addComponents, theme }) => {
|
|
10122
10414
|
}
|
10123
10415
|
}
|
10124
10416
|
});
|
10125
|
-
}, config$
|
10417
|
+
}, config$y);
|
10126
10418
|
|
10127
|
-
const key$
|
10128
|
-
const defaultConfig$
|
10419
|
+
const key$x = "inputNumber";
|
10420
|
+
const defaultConfig$w = {
|
10129
10421
|
rounded: {
|
10130
10422
|
none: "rounded-none",
|
10131
10423
|
sm: "rounded-md",
|
@@ -10496,15 +10788,15 @@ const defaultConfig$v = {
|
|
10496
10788
|
}
|
10497
10789
|
};
|
10498
10790
|
|
10499
|
-
const config$
|
10791
|
+
const config$x = {
|
10500
10792
|
theme: {
|
10501
10793
|
nui: {
|
10502
|
-
[key$
|
10794
|
+
[key$x]: defaultConfig$w
|
10503
10795
|
}
|
10504
10796
|
}
|
10505
10797
|
};
|
10506
10798
|
const inputNumber = plugin(({ addComponents, theme }) => {
|
10507
|
-
const config2 = theme(`nui.${key$
|
10799
|
+
const config2 = theme(`nui.${key$x}`);
|
10508
10800
|
addComponents({
|
10509
10801
|
//Wrapper
|
10510
10802
|
".nui-input-number-wrapper": {
|
@@ -10550,15 +10842,6 @@ const inputNumber = plugin(({ addComponents, theme }) => {
|
|
10550
10842
|
".nui-input-number-buttons svg": {
|
10551
10843
|
"@apply h-4 w-4": {}
|
10552
10844
|
},
|
10553
|
-
//Error:text
|
10554
|
-
".nui-input-number-error-text": {
|
10555
|
-
//Base
|
10556
|
-
"@apply mt-1 block": {},
|
10557
|
-
//Font
|
10558
|
-
[`@apply font-${config2.error.font.family} text-${config2.error.font.size} font-${config2.error.font.weight} leading-none`]: {},
|
10559
|
-
//Font color
|
10560
|
-
[`@apply text-${config2.error.font.color.light} dark:text-${config2.error.font.color.dark}`]: {}
|
10561
|
-
},
|
10562
10845
|
//Input
|
10563
10846
|
".nui-input-number": {
|
10564
10847
|
//Base
|
@@ -10840,37 +11123,37 @@ const inputNumber = plugin(({ addComponents, theme }) => {
|
|
10840
11123
|
//Without icon && Size:sm
|
10841
11124
|
"&:not(.nui-has-icon).nui-input-number-sm": {
|
10842
11125
|
".nui-input-number": {
|
10843
|
-
[`@apply h-8 py-1 text-${config2.icon.disabled.input.sm.font.size} leading-4
|
11126
|
+
[`@apply h-8 py-1 text-${config2.icon.disabled.input.sm.font.size} leading-4 ps-2 pe-[3.75rem]`]: {}
|
10844
11127
|
}
|
10845
11128
|
},
|
10846
11129
|
//With icon && Size:sm
|
10847
11130
|
"&.nui-has-icon.nui-input-number-sm": {
|
10848
11131
|
".nui-input-number": {
|
10849
|
-
[`@apply h-8 py-1 text-${config2.icon.enabled.input.sm.font.size} leading-4 pe-3
|
11132
|
+
[`@apply h-8 py-1 text-${config2.icon.enabled.input.sm.font.size} leading-4 ps-8 pe-[3.75rem]`]: {}
|
10850
11133
|
}
|
10851
11134
|
},
|
10852
11135
|
//Without icon && Size:md
|
10853
11136
|
"&:not(.nui-has-icon).nui-input-number-md": {
|
10854
11137
|
".nui-input-number": {
|
10855
|
-
[`@apply h-10 py-2 text-${config2.icon.disabled.input.md.font.size} leading-5
|
11138
|
+
[`@apply h-10 py-2 text-${config2.icon.disabled.input.md.font.size} leading-5 ps-3 pe-[4.75rem]`]: {}
|
10856
11139
|
}
|
10857
11140
|
},
|
10858
11141
|
//With icon && Size:md
|
10859
11142
|
"&.nui-has-icon.nui-input-number-md": {
|
10860
11143
|
".nui-input-number": {
|
10861
|
-
[`@apply h-10 py-2 text-${config2.icon.enabled.input.md.font.size} leading-5 pe-4
|
11144
|
+
[`@apply h-10 py-2 text-${config2.icon.enabled.input.md.font.size} leading-5 ps-10 pe-[4.75rem]`]: {}
|
10862
11145
|
}
|
10863
11146
|
},
|
10864
11147
|
//Without icon && Size:lg
|
10865
11148
|
"&:not(.nui-has-icon).nui-input-number-lg": {
|
10866
11149
|
".nui-input-number": {
|
10867
|
-
[`@apply h-12 py-2 text-${config2.icon.disabled.input.lg.font.size} leading-5
|
11150
|
+
[`@apply h-12 py-2 text-${config2.icon.disabled.input.lg.font.size} leading-5 ps-4 pe-24`]: {}
|
10868
11151
|
}
|
10869
11152
|
},
|
10870
11153
|
//With icon && Size:lg
|
10871
11154
|
"&.nui-has-icon.nui-input-number-lg": {
|
10872
11155
|
".nui-input-number": {
|
10873
|
-
[`@apply h-12 py-2 text-${config2.icon.enabled.input.lg.font.size} leading-5
|
11156
|
+
[`@apply h-12 py-2 text-${config2.icon.enabled.input.lg.font.size} leading-5 ps-11 pe-24`]: {}
|
10874
11157
|
}
|
10875
11158
|
},
|
10876
11159
|
//With action && Size:sm
|
@@ -10965,6 +11248,34 @@ const inputNumber = plugin(({ addComponents, theme }) => {
|
|
10965
11248
|
}
|
10966
11249
|
}
|
10967
11250
|
});
|
11251
|
+
}, config$x);
|
11252
|
+
|
11253
|
+
const key$w = "inputHelpText";
|
11254
|
+
const defaultConfig$v = {
|
11255
|
+
font: {
|
11256
|
+
family: "sans",
|
11257
|
+
size: "[0.65rem]",
|
11258
|
+
weight: "medium"
|
11259
|
+
}
|
11260
|
+
};
|
11261
|
+
|
11262
|
+
const config$w = {
|
11263
|
+
theme: {
|
11264
|
+
nui: {
|
11265
|
+
[key$w]: defaultConfig$v
|
11266
|
+
}
|
11267
|
+
}
|
11268
|
+
};
|
11269
|
+
const inputHelpText = plugin(({ addComponents, theme }) => {
|
11270
|
+
const config2 = theme(`nui.${key$w}`);
|
11271
|
+
addComponents({
|
11272
|
+
".nui-input-help-text": {
|
11273
|
+
//Base
|
11274
|
+
"@apply mt-1 block": {},
|
11275
|
+
//Font
|
11276
|
+
[`@apply font-${config2.font.family} text-${config2.font.size} font-${config2.font.weight} leading-none`]: {}
|
11277
|
+
}
|
11278
|
+
});
|
10968
11279
|
}, config$w);
|
10969
11280
|
|
10970
11281
|
const key$v = "kbd";
|
@@ -12041,15 +12352,6 @@ const listbox = plugin(({ addComponents, theme }) => {
|
|
12041
12352
|
[`@apply bg-${config2.option.activeHover.background.light} dark:bg-${config2.option.activeHover.background.dark}`]: {}
|
12042
12353
|
}
|
12043
12354
|
},
|
12044
|
-
//Listbox:error
|
12045
|
-
".nui-listbox-error-text": {
|
12046
|
-
//Base
|
12047
|
-
"@apply mt-1 block": {},
|
12048
|
-
//Font
|
12049
|
-
[`@apply font-${config2.error.font.family} text-${config2.error.font.size} font-${config2.error.font.weight} leading-none`]: {},
|
12050
|
-
//Color
|
12051
|
-
[`@apply text-${config2.error.font.color.light} dark:text-${config2.error.font.color.dark}`]: {}
|
12052
|
-
},
|
12053
12355
|
//Listbox:placeload
|
12054
12356
|
".nui-listbox-placeload.nui-loading-placeload": {
|
12055
12357
|
"@apply absolute start-0 top-0 flex w-full items-center px-4": {},
|
@@ -12719,6 +13021,9 @@ const messageText = plugin(({ addComponents, theme }) => {
|
|
12719
13021
|
|
12720
13022
|
const key$n = "message";
|
12721
13023
|
const defaultConfig$m = {
|
13024
|
+
safeArea: {
|
13025
|
+
end: "6"
|
13026
|
+
},
|
12722
13027
|
icon: {
|
12723
13028
|
outer: {
|
12724
13029
|
size: "10"
|
@@ -12749,8 +13054,21 @@ const defaultConfig$m = {
|
|
12749
13054
|
icon: {
|
12750
13055
|
size: "4"
|
12751
13056
|
},
|
13057
|
+
position: {
|
13058
|
+
top: "[-0.5rem]",
|
13059
|
+
end: "[-0.5rem]"
|
13060
|
+
},
|
13061
|
+
size: {
|
13062
|
+
outer: {
|
13063
|
+
width: "8",
|
13064
|
+
height: "8"
|
13065
|
+
},
|
13066
|
+
inner: {
|
13067
|
+
width: "6",
|
13068
|
+
height: "6"
|
13069
|
+
}
|
13070
|
+
},
|
12752
13071
|
rounded: "rounded-full",
|
12753
|
-
padding: "1",
|
12754
13072
|
transition: {
|
12755
13073
|
property: "colors",
|
12756
13074
|
duration: "200"
|
@@ -13313,7 +13631,7 @@ const message = plugin(({ addComponents, theme }) => {
|
|
13313
13631
|
addComponents({
|
13314
13632
|
//Wrapper
|
13315
13633
|
".nui-message": {
|
13316
|
-
"@apply flex
|
13634
|
+
"@apply relative flex gap-2 border": {},
|
13317
13635
|
//Icon:outer
|
13318
13636
|
".nui-message-icon-outer": {
|
13319
13637
|
[`@apply flex h-${config2.icon.outer.size} w-${config2.icon.outer.size} shrink-0 items-center justify-center`]: {},
|
@@ -13328,15 +13646,19 @@ const message = plugin(({ addComponents, theme }) => {
|
|
13328
13646
|
//Inner:text
|
13329
13647
|
".nui-message-inner-text": {
|
13330
13648
|
//Base
|
13331
|
-
"@apply
|
13649
|
+
"@apply inline-flex items-center leading-normal": {},
|
13332
13650
|
//Font
|
13333
13651
|
[`@apply font-${config2.inner.font.family} text-${config2.inner.font.size}`]: {},
|
13334
13652
|
//Color
|
13335
13653
|
[`@apply text-${config2.inner.font.color.light} dark:text-${config2.inner.font.color.dark}`]: {}
|
13336
13654
|
},
|
13337
|
-
//
|
13655
|
+
//Message:close
|
13656
|
+
".nui-message-close-wrapper": {
|
13657
|
+
[`@apply absolute top-${config2.close.position.top} end-${config2.close.position.end} flex items-center justify-center bg-white dark:bg-muted-950 border border-muted-200 dark:border-muted-800 ${config2.close.rounded} h-${config2.close.size.outer.height} w-${config2.close.size.outer.width}`]: {}
|
13658
|
+
},
|
13659
|
+
//Message:close
|
13338
13660
|
".nui-message-close": {
|
13339
|
-
[`@apply nui-focus
|
13661
|
+
[`@apply nui-focus flex cursor-pointer items-center justify-center shrink-0 h-${config2.close.size.inner.height} w-${config2.close.size.inner.width} ${config2.close.rounded}`]: {},
|
13340
13662
|
//Color
|
13341
13663
|
[`@apply text-${config2.close.color.light} dark:text-${config2.close.color.dark}`]: {},
|
13342
13664
|
//Transition
|
@@ -13346,6 +13668,14 @@ const message = plugin(({ addComponents, theme }) => {
|
|
13346
13668
|
[`@apply h-${config2.close.icon.size} w-${config2.close.icon.size}`]: {}
|
13347
13669
|
}
|
13348
13670
|
},
|
13671
|
+
//Message:text
|
13672
|
+
"&.nui-has-text": {
|
13673
|
+
[`@apply py-2 ps-2 pe-${config2.safeArea.end}`]: {}
|
13674
|
+
},
|
13675
|
+
//Message:icon
|
13676
|
+
"&.nui-has-icon": {
|
13677
|
+
[`@apply py-1 ps-1 pe-${config2.safeArea.end}`]: {}
|
13678
|
+
},
|
13349
13679
|
//Rounded:sm
|
13350
13680
|
"&.nui-message-rounded-sm": {
|
13351
13681
|
[`@apply ${config2.rounded.sm}`]: {},
|
@@ -14772,9 +15102,7 @@ const radio = plugin(({ addComponents, theme }) => {
|
|
14772
15102
|
},
|
14773
15103
|
//Radio:error
|
14774
15104
|
".nui-radio-error": {
|
14775
|
-
"@apply ms-1 inline-block": {}
|
14776
|
-
//Font
|
14777
|
-
[`@apply font-${config2.error.font.family} text-${config2.error.font.size} text-${config2.error.font.color.light} dark:text-${config2.error.font.color.dark}`]: {}
|
15105
|
+
"@apply ms-1 inline-block": {}
|
14778
15106
|
},
|
14779
15107
|
//Color:default
|
14780
15108
|
"&.nui-radio-default": {
|
@@ -15238,15 +15566,6 @@ const select = plugin(({ addComponents, theme }) => {
|
|
15238
15566
|
//Transition
|
15239
15567
|
[`@apply transition-${config2.select.icon.transition.property} duration-${config2.select.icon.transition.duration}`]: {}
|
15240
15568
|
},
|
15241
|
-
//Error:text
|
15242
|
-
".nui-select-error-text": {
|
15243
|
-
//Base
|
15244
|
-
"@apply mt-1 block": {},
|
15245
|
-
//Font
|
15246
|
-
[`@apply font-${config2.error.font.family} text-${config2.error.font.size} font-${config2.error.font.weight} leading-none`]: {},
|
15247
|
-
//Font color
|
15248
|
-
[`@apply text-${config2.error.font.color.light} dark:text-${config2.error.font.color.dark}`]: {}
|
15249
|
-
},
|
15250
15569
|
//Select
|
15251
15570
|
".nui-select": {
|
15252
15571
|
//Base
|
@@ -15604,6 +15923,7 @@ const select = plugin(({ addComponents, theme }) => {
|
|
15604
15923
|
const key$c = "slimscroll";
|
15605
15924
|
const defaultConfig$b = {
|
15606
15925
|
width: "[6px]",
|
15926
|
+
height: "[6px]",
|
15607
15927
|
background: {
|
15608
15928
|
base: {
|
15609
15929
|
light: "black/5",
|
@@ -15629,7 +15949,7 @@ const slimscroll = plugin(({ addComponents, theme }) => {
|
|
15629
15949
|
".nui-slimscroll::-webkit-scrollbar, .nui-slimscroll-opaque::-webkit-scrollbar": {
|
15630
15950
|
scrollBehavior: "smooth",
|
15631
15951
|
scrollbarGutter: "stable",
|
15632
|
-
[`@apply w-${config2.width}`]: {}
|
15952
|
+
[`@apply w-${config2.width} h-${config2.height}`]: {}
|
15633
15953
|
},
|
15634
15954
|
".nui-slimscroll::-webkit-scrollbar-thumb": {
|
15635
15955
|
[`@apply rounded-lg bg-${config2.background.base.light} dark:bg-${config2.background.base.dark} duration-300 transition-all`]: {}
|
@@ -15813,10 +16133,6 @@ const snack = plugin(({ addComponents, theme }) => {
|
|
15813
16133
|
//Color
|
15814
16134
|
[`@apply text-${config2.font.color.light} dark:text-${config2.font.color.dark}`]: {}
|
15815
16135
|
},
|
15816
|
-
//Snack:button
|
15817
|
-
".nui-snack-button": {
|
15818
|
-
"@apply hover:!bg-transparent": {}
|
15819
|
-
},
|
15820
16136
|
//Size:xs
|
15821
16137
|
"&.nui-snack-xs": {
|
15822
16138
|
//Snack:media:xs
|
@@ -18759,15 +19075,6 @@ const textarea = plugin(({ addComponents, theme }) => {
|
|
18759
19075
|
[`@apply transition-${config2.textarea.transition.property} duration-${config2.textarea.transition.duration}`]: {}
|
18760
19076
|
}
|
18761
19077
|
},
|
18762
|
-
//Error:text
|
18763
|
-
".nui-textarea-error-text": {
|
18764
|
-
//Base
|
18765
|
-
"@apply mt-1 block": {},
|
18766
|
-
//Font
|
18767
|
-
[`@apply font-${config2.error.font.family} text-${config2.error.font.size} font-${config2.error.font.weight} leading-none`]: {},
|
18768
|
-
//Font color
|
18769
|
-
[`@apply text-${config2.error.font.color.light} dark:text-${config2.error.font.color.dark}`]: {}
|
18770
|
-
},
|
18771
19078
|
//Textrea:placeload
|
18772
19079
|
".nui-textarea-placeload": {
|
18773
19080
|
[`@apply absolute start-0 top-4 flex h-${config2.textarea.placeload.size} w-${config2.textarea.placeload.size} flex-col space-y-${config2.textarea.placeload.space} px-3`]: {},
|
@@ -19820,7 +20127,7 @@ const tooltip = plugin(({ addComponents, theme }) => {
|
|
19820
20127
|
borderRadius: "0.5ch",
|
19821
20128
|
zIndex: "1000",
|
19822
20129
|
[`@apply font-${config2.font.family} text-xs shadow-lg`]: {},
|
19823
|
-
[`@apply text-${config2.font.color.light} dark:text-${config2.font.color.
|
20130
|
+
[`@apply text-${config2.font.color.light} dark:text-${config2.font.color.dark}`]: {},
|
19824
20131
|
[`@apply !bg-${config2.background.light} dark:!bg-${config2.background.dark}`]: {}
|
19825
20132
|
},
|
19826
20133
|
[`[${tooltip}]:hover::before, [${tooltip}]:hover::after, [${tooltip}]:focus-visible::before, [${tooltip}]:focus-visible::after`]: {
|
@@ -19834,7 +20141,7 @@ const tooltip = plugin(({ addComponents, theme }) => {
|
|
19834
20141
|
bottom: "calc(100% + 8px)",
|
19835
20142
|
borderBottomWidth: "0",
|
19836
20143
|
borderTopColor: "currentColor",
|
19837
|
-
[`@apply !text-${config2.background.light} dark:!text-${config2.background.
|
20144
|
+
[`@apply !text-${config2.background.light} dark:!text-${config2.background.dark}`]: {}
|
19838
20145
|
},
|
19839
20146
|
[`[${tooltip}]:not([${position}])::after, [${tooltip}][${position}^='up']::after`]: {
|
19840
20147
|
bottom: "calc(100% + 13px)"
|
@@ -19950,6 +20257,7 @@ const components = mergePlugins([
|
|
19950
20257
|
inputFile,
|
19951
20258
|
input,
|
19952
20259
|
inputNumber,
|
20260
|
+
inputHelpText,
|
19953
20261
|
kbd,
|
19954
20262
|
label,
|
19955
20263
|
link,
|
@@ -20074,4 +20382,4 @@ const textShades = plugin(
|
|
20074
20382
|
|
20075
20383
|
const utilities = mergePlugins([bgShades, textShades]);
|
20076
20384
|
|
20077
|
-
export { accordion, autocomplete, avatar, avatarGroup, base, bgShades, breadcrumb, button, buttonAction, buttonClose, buttonGroup, buttonIcon, card, checkbox, components, dropdown, dropdownDivider, dropdownItem, focus, fullscreenDropfile, heading, iconBox, input, inputFile, inputFileRegular, inputNumber, kbd, label, link, list, listbox, mark, mask, message, messageText, modal, pagination, paragraph, placeholderPage, placeload, progress, progressCircle, prose, radio, select, slimscroll, snack, switchBall, switchThin, tabSlider, tabs, tag, text, textShades, textarea, themeSwitch, themeToggle, toast, tooltip, utilities };
|
20385
|
+
export { accordion, autocomplete, avatar, avatarGroup, base, bgShades, breadcrumb, button, buttonAction, buttonClose, buttonGroup, buttonIcon, card, checkbox, components, dropdown, dropdownDivider, dropdownItem, focus, fullscreenDropfile, heading, iconBox, input, inputFile, inputFileRegular, inputHelpText, inputNumber, kbd, label, link, list, listbox, mark, mask, message, messageText, modal, pagination, paragraph, placeholderPage, placeload, progress, progressCircle, prose, radio, select, slimscroll, snack, switchBall, switchThin, tabSlider, tabs, tag, text, textShades, textarea, themeSwitch, themeToggle, toast, tooltip, utilities };
|