@bitrix24/b24ui-nuxt 0.2.2 → 0.2.4
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/.nuxt/b24ui/button.ts +9 -2
- package/.nuxt/b24ui/checkbox.ts +1 -1
- package/.nuxt/b24ui/index.ts +2 -0
- package/.nuxt/b24ui/input-menu.ts +1 -1
- package/.nuxt/b24ui/input-number.ts +417 -0
- package/.nuxt/b24ui/modal.ts +28 -0
- package/.nuxt/b24ui/radio-group.ts +1 -1
- package/.nuxt/b24ui/range.ts +1 -1
- package/.nuxt/b24ui/select-menu.ts +1 -1
- package/.nuxt/b24ui/select.ts +1 -1
- package/.nuxt/b24ui/switch.ts +1 -1
- package/.nuxt/b24ui/tabs.ts +2 -2
- package/.nuxt/b24ui/toaster.ts +4 -4
- package/README.md +1 -1
- package/dist/meta.cjs +4306 -655
- package/dist/meta.d.cts +4306 -655
- package/dist/meta.d.mts +4306 -655
- package/dist/meta.d.ts +4306 -655
- package/dist/meta.mjs +4306 -655
- package/dist/module.cjs +2 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -1
- package/dist/runtime/components/App.vue +2 -2
- package/dist/runtime/components/DropdownMenu.vue +3 -3
- package/dist/runtime/components/InputNumber.vue +218 -0
- package/dist/runtime/components/Modal.vue +179 -0
- package/dist/runtime/components/ModalDialogClose.vue +17 -0
- package/dist/runtime/components/ModalProvider.vue +12 -0
- package/dist/runtime/composables/useModal.d.ts +17 -0
- package/dist/runtime/composables/useModal.js +46 -0
- package/dist/runtime/plugins/modal.d.ts +2 -0
- package/dist/runtime/plugins/modal.js +10 -0
- package/dist/runtime/types/index.d.ts +3 -0
- package/dist/runtime/types/index.js +3 -0
- package/dist/shared/{b24ui-nuxt.DgnM0VWe.cjs → b24ui-nuxt.DGjopCKm.cjs} +478 -26
- package/dist/shared/{b24ui-nuxt.CYvh5VlN.mjs → b24ui-nuxt.V9TzyCqH.mjs} +478 -26
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +6 -4
|
@@ -720,7 +720,8 @@ const button = {
|
|
|
720
720
|
slots: {
|
|
721
721
|
base: [
|
|
722
722
|
"select-none cursor-pointer inline-flex items-center",
|
|
723
|
-
"relative
|
|
723
|
+
"relative",
|
|
724
|
+
"outline-transparent focus:outline-hidden focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
724
725
|
"disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:opacity-50",
|
|
725
726
|
"transition duration-150 ease-linear"
|
|
726
727
|
// transition-colors
|
|
@@ -737,7 +738,6 @@ const button = {
|
|
|
737
738
|
variants: {
|
|
738
739
|
...buttonGroupVariant,
|
|
739
740
|
color: {
|
|
740
|
-
// DEFAULT ////
|
|
741
741
|
default: [
|
|
742
742
|
"text-white dark:text-base-100 bg-base-650 border border-base-650",
|
|
743
743
|
"hover:bg-base-850 hover:border-base-850 hover:focus-visible:ring-0",
|
|
@@ -754,7 +754,6 @@ const button = {
|
|
|
754
754
|
"focus-visible:outline-red-720",
|
|
755
755
|
"ring-red-800 focus-visible:ring-red-800"
|
|
756
756
|
].join(" "),
|
|
757
|
-
// SUCCESS ////
|
|
758
757
|
success: [
|
|
759
758
|
"text-base-900 bg-green-450 border border-green-450",
|
|
760
759
|
"hover:bg-green-370 hover:border-green-370 hover:focus-visible:ring-0",
|
|
@@ -763,7 +762,6 @@ const button = {
|
|
|
763
762
|
"focus-visible:outline-green-450",
|
|
764
763
|
"ring-green-500 focus-visible:ring-green-500"
|
|
765
764
|
].join(" "),
|
|
766
|
-
// new WARNING ////
|
|
767
765
|
warning: [
|
|
768
766
|
"text-white dark:text-orange-100 bg-orange-500 border border-orange-500",
|
|
769
767
|
"hover:bg-orange-500/75 hover:border-orange-500/75 hover:focus-visible:ring-0",
|
|
@@ -772,7 +770,6 @@ const button = {
|
|
|
772
770
|
"focus-visible:outline-orange-500",
|
|
773
771
|
"ring-orange-800 focus-visible:ring-orange-800"
|
|
774
772
|
].join(" "),
|
|
775
|
-
// PRIMARY ////
|
|
776
773
|
primary: [
|
|
777
774
|
"text-white dark:text-blue-100 bg-blue-530 border border-blue-530",
|
|
778
775
|
"hover:bg-blue-450 hover:border-blue-450 hover:focus-visible:ring-0",
|
|
@@ -781,7 +778,6 @@ const button = {
|
|
|
781
778
|
"focus-visible:outline-blue-530",
|
|
782
779
|
"ring-blue-800 focus-visible:ring-blue-800"
|
|
783
780
|
].join(" "),
|
|
784
|
-
// SECONDARY ////
|
|
785
781
|
secondary: [
|
|
786
782
|
"text-base-900 bg-cyan-160 border border-cyan-230",
|
|
787
783
|
"hover:bg-cyan-150 hover:border-cyan-230 hover:focus-visible:ring-0",
|
|
@@ -790,7 +786,6 @@ const button = {
|
|
|
790
786
|
"focus-visible:outline-cyan-160",
|
|
791
787
|
"ring-cyan-500 focus-visible:ring-cyan-500"
|
|
792
788
|
].join(" "),
|
|
793
|
-
// COLLAB ////
|
|
794
789
|
collab: [
|
|
795
790
|
"text-white dark:text-collab-100 bg-collab-600 border border-collab-600",
|
|
796
791
|
"hover:bg-collab-500 hover:border-collab-500 hover:focus-visible:ring-0",
|
|
@@ -799,7 +794,6 @@ const button = {
|
|
|
799
794
|
"focus-visible:outline-collab-600",
|
|
800
795
|
"ring-collab-900 focus-visible:ring-collab-900"
|
|
801
796
|
].join(" "),
|
|
802
|
-
// AI ////
|
|
803
797
|
ai: [
|
|
804
798
|
"text-white dark:text-ai-100 bg-ai-450 border border-ai-450",
|
|
805
799
|
"hover:bg-ai-370 hover:border-ai-370 hover:focus-visible:ring-0",
|
|
@@ -808,7 +802,6 @@ const button = {
|
|
|
808
802
|
"focus-visible:outline-ai-450",
|
|
809
803
|
"ring-ai-900 focus-visible:ring-ai-900"
|
|
810
804
|
].join(" "),
|
|
811
|
-
// LINK ////
|
|
812
805
|
link: [
|
|
813
806
|
"no-underline decoration-solid decoration-auto",
|
|
814
807
|
"text-base-900 decoration-gray-900 bg-transparent border border-transparent dark:text-base-300",
|
|
@@ -896,7 +889,6 @@ const button = {
|
|
|
896
889
|
compoundVariants: [
|
|
897
890
|
// region default ////
|
|
898
891
|
{
|
|
899
|
-
// BASE_LIGHT ////
|
|
900
892
|
color: "default",
|
|
901
893
|
depth: "light",
|
|
902
894
|
class: [
|
|
@@ -904,7 +896,8 @@ const button = {
|
|
|
904
896
|
"hover:bg-base-320 hover:border-base-320 hover:focus-visible:ring-0",
|
|
905
897
|
"active:bg-base-250 active:border-base-250 active:focus-visible:ring-0",
|
|
906
898
|
"disabled:bg-base-200 aria-disabled:bg-base-200 disabled:border-base-300 aria-disabled:border-base-300",
|
|
907
|
-
"focus-visible:outline-base-200"
|
|
899
|
+
"focus-visible:outline-base-200",
|
|
900
|
+
"ring-base-320 focus-visible:ring-base-320"
|
|
908
901
|
].join(" ")
|
|
909
902
|
},
|
|
910
903
|
{
|
|
@@ -1125,12 +1118,18 @@ const button = {
|
|
|
1125
1118
|
].join(" ")
|
|
1126
1119
|
},
|
|
1127
1120
|
{
|
|
1128
|
-
//
|
|
1121
|
+
// LINK ////
|
|
1129
1122
|
color: "link",
|
|
1130
1123
|
depth: "light",
|
|
1131
1124
|
useLabel: true,
|
|
1132
1125
|
class: "ps-1.5 pe-1.5"
|
|
1133
1126
|
},
|
|
1127
|
+
{
|
|
1128
|
+
color: "link",
|
|
1129
|
+
depth: "normal",
|
|
1130
|
+
useLabel: true,
|
|
1131
|
+
class: "ps-0 pe-0"
|
|
1132
|
+
},
|
|
1134
1133
|
{
|
|
1135
1134
|
// LIGHT_BORDER ////
|
|
1136
1135
|
color: "link",
|
|
@@ -1266,7 +1265,11 @@ const button = {
|
|
|
1266
1265
|
const checkbox = {
|
|
1267
1266
|
slots: {
|
|
1268
1267
|
root: "relative flex items-start",
|
|
1269
|
-
base:
|
|
1268
|
+
base: [
|
|
1269
|
+
"cursor-pointer shrink-0 flex items-center justify-center rounded-2xs text-white dark:text-base-150",
|
|
1270
|
+
"ring ring-inset ring-base-300 dark:ring-base-700",
|
|
1271
|
+
"outline-transparent focus-visible:outline-2 focus-visible:outline-offset-2"
|
|
1272
|
+
].join(" "),
|
|
1270
1273
|
container: "flex items-center",
|
|
1271
1274
|
wrapper: "font-b24-primary ms-2",
|
|
1272
1275
|
icon: "shrink-0 size-full",
|
|
@@ -2477,9 +2480,9 @@ const inputMenu = () => {
|
|
|
2477
2480
|
trailing: "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75",
|
|
2478
2481
|
arrow: "fill-base-master/10 dark:fill-base-100/20",
|
|
2479
2482
|
content: [
|
|
2480
|
-
"w-
|
|
2483
|
+
"w-(--reka-popper-anchor-width)",
|
|
2481
2484
|
// 'max-h-60',
|
|
2482
|
-
// 'h-
|
|
2485
|
+
// 'h-(--reka-popper-available-height)',
|
|
2483
2486
|
"bg-white dark:bg-base-dark",
|
|
2484
2487
|
"shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800",
|
|
2485
2488
|
"overflow-hidden",
|
|
@@ -2689,6 +2692,404 @@ const inputMenu = () => {
|
|
|
2689
2692
|
}, input);
|
|
2690
2693
|
};
|
|
2691
2694
|
|
|
2695
|
+
const inputNumber = () => {
|
|
2696
|
+
const input$1 = input;
|
|
2697
|
+
return {
|
|
2698
|
+
slots: {
|
|
2699
|
+
root: "relative inline-flex items-center",
|
|
2700
|
+
base: [
|
|
2701
|
+
"w-full py-0 border-0 focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
2702
|
+
"placeholder:text-base-400",
|
|
2703
|
+
"dark:placeholder:text-base-300",
|
|
2704
|
+
"appearance-none transition duration-300 ease-linear",
|
|
2705
|
+
// transition-colors
|
|
2706
|
+
"ring ring-inset ring-base-300",
|
|
2707
|
+
"dark:ring-base-800",
|
|
2708
|
+
"text-base-master bg-white placeholder:text-base-400 hover:text-base-900 focus:text-base-900 active:text-base-900",
|
|
2709
|
+
"dark:text-base-150 dark:bg-transparent dark:placeholder:text-base-300 dark:hover:text-base-350 dark:focus:text-base-350 dark:active:text-base-350",
|
|
2710
|
+
"font-b24-primary font-regular text-md leading-none",
|
|
2711
|
+
"align-middle",
|
|
2712
|
+
"text-ellipsis whitespace-nowrap"
|
|
2713
|
+
].join(" "),
|
|
2714
|
+
increment: "absolute flex items-center",
|
|
2715
|
+
decrement: "absolute flex items-center",
|
|
2716
|
+
tag: input$1.slots.tag
|
|
2717
|
+
},
|
|
2718
|
+
variants: {
|
|
2719
|
+
size: {
|
|
2720
|
+
xs: "px-2 h-xl2 gap-1",
|
|
2721
|
+
sm: "px-2.5 h-8 gap-1.5",
|
|
2722
|
+
md: "px-2.5 h-10 gap-1.5",
|
|
2723
|
+
lg: "px-3 h-12 gap-2"
|
|
2724
|
+
},
|
|
2725
|
+
color: {
|
|
2726
|
+
default: "",
|
|
2727
|
+
danger: "",
|
|
2728
|
+
success: "",
|
|
2729
|
+
warning: "",
|
|
2730
|
+
primary: "",
|
|
2731
|
+
secondary: "",
|
|
2732
|
+
collab: "",
|
|
2733
|
+
ai: ""
|
|
2734
|
+
},
|
|
2735
|
+
tagColor: {
|
|
2736
|
+
...input$1.variants.tagColor
|
|
2737
|
+
},
|
|
2738
|
+
rounded: {
|
|
2739
|
+
...input$1.variants.rounded
|
|
2740
|
+
},
|
|
2741
|
+
noPadding: {
|
|
2742
|
+
...input$1.variants.noPadding
|
|
2743
|
+
},
|
|
2744
|
+
noBorder: {
|
|
2745
|
+
...input$1.variants.noBorder
|
|
2746
|
+
},
|
|
2747
|
+
underline: {
|
|
2748
|
+
...input$1.variants.underline
|
|
2749
|
+
},
|
|
2750
|
+
disabled: {
|
|
2751
|
+
true: {
|
|
2752
|
+
increment: "opacity-75 cursor-not-allowed",
|
|
2753
|
+
decrement: "opacity-75 cursor-not-allowed"
|
|
2754
|
+
}
|
|
2755
|
+
},
|
|
2756
|
+
orientation: {
|
|
2757
|
+
horizontal: {
|
|
2758
|
+
base: "text-center",
|
|
2759
|
+
increment: "inset-y-0 end-0 py-0 pe-0 [&>button]:p-1",
|
|
2760
|
+
decrement: "inset-y-0 start-0 py-0 ps-0 [&>button]:p-1"
|
|
2761
|
+
},
|
|
2762
|
+
vertical: {
|
|
2763
|
+
increment: "top-1 end-0 pe-1 [&>button]:p-0",
|
|
2764
|
+
decrement: "bottom-1 end-0 pe-1 [&>button]:p-0"
|
|
2765
|
+
}
|
|
2766
|
+
},
|
|
2767
|
+
highlight: {
|
|
2768
|
+
true: ""
|
|
2769
|
+
}
|
|
2770
|
+
},
|
|
2771
|
+
compoundVariants: [
|
|
2772
|
+
// region ring for focus and highlight ////
|
|
2773
|
+
// region default ////
|
|
2774
|
+
{
|
|
2775
|
+
color: "default",
|
|
2776
|
+
noBorder: false,
|
|
2777
|
+
underline: false,
|
|
2778
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-base-900 dark:focus-visible:ring-base-350"
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
color: "default",
|
|
2782
|
+
highlight: true,
|
|
2783
|
+
noBorder: false,
|
|
2784
|
+
underline: false,
|
|
2785
|
+
class: "ring ring-inset ring-base-900 dark:ring-base-350"
|
|
2786
|
+
},
|
|
2787
|
+
{
|
|
2788
|
+
color: "default",
|
|
2789
|
+
noBorder: false,
|
|
2790
|
+
underline: true,
|
|
2791
|
+
class: "focus-visible:border-base-900 dark:focus-visible:border-b-base-350"
|
|
2792
|
+
},
|
|
2793
|
+
{
|
|
2794
|
+
color: "default",
|
|
2795
|
+
highlight: true,
|
|
2796
|
+
noBorder: false,
|
|
2797
|
+
underline: true,
|
|
2798
|
+
class: "border-b-base-900 dark:border-b-base-350"
|
|
2799
|
+
},
|
|
2800
|
+
// endregion ////
|
|
2801
|
+
// region danger ////
|
|
2802
|
+
{
|
|
2803
|
+
color: "danger",
|
|
2804
|
+
noBorder: false,
|
|
2805
|
+
underline: false,
|
|
2806
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-red-500 dark:focus-visible:ring-red-600"
|
|
2807
|
+
},
|
|
2808
|
+
{
|
|
2809
|
+
color: "danger",
|
|
2810
|
+
highlight: true,
|
|
2811
|
+
noBorder: false,
|
|
2812
|
+
underline: false,
|
|
2813
|
+
class: "ring ring-inset ring-red-500 dark:ring-red-600"
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
color: "danger",
|
|
2817
|
+
noBorder: false,
|
|
2818
|
+
underline: true,
|
|
2819
|
+
class: "focus-visible:border-b-red-500 dark:focus-visible:border-b-red-600"
|
|
2820
|
+
},
|
|
2821
|
+
{
|
|
2822
|
+
color: "danger",
|
|
2823
|
+
highlight: true,
|
|
2824
|
+
noBorder: false,
|
|
2825
|
+
underline: true,
|
|
2826
|
+
class: "border-b-red-500 dark:border-b-red-600"
|
|
2827
|
+
},
|
|
2828
|
+
// endregion ////
|
|
2829
|
+
// region success ////
|
|
2830
|
+
{
|
|
2831
|
+
color: "success",
|
|
2832
|
+
noBorder: false,
|
|
2833
|
+
underline: false,
|
|
2834
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-green-500 dark:focus-visible:ring-green-600"
|
|
2835
|
+
},
|
|
2836
|
+
{
|
|
2837
|
+
color: "success",
|
|
2838
|
+
highlight: true,
|
|
2839
|
+
noBorder: false,
|
|
2840
|
+
underline: false,
|
|
2841
|
+
class: "ring ring-inset ring-green-500 dark:ring-green-600"
|
|
2842
|
+
},
|
|
2843
|
+
{
|
|
2844
|
+
color: "success",
|
|
2845
|
+
noBorder: false,
|
|
2846
|
+
underline: true,
|
|
2847
|
+
class: "focus-visible:border-b-green-500 dark:focus-visible:border-b-green-600"
|
|
2848
|
+
},
|
|
2849
|
+
{
|
|
2850
|
+
color: "success",
|
|
2851
|
+
highlight: true,
|
|
2852
|
+
noBorder: false,
|
|
2853
|
+
underline: true,
|
|
2854
|
+
class: "border-b-green-500 dark:border-b-green-600"
|
|
2855
|
+
},
|
|
2856
|
+
// endregion ////
|
|
2857
|
+
// region warning ////
|
|
2858
|
+
{
|
|
2859
|
+
color: "warning",
|
|
2860
|
+
noBorder: false,
|
|
2861
|
+
underline: false,
|
|
2862
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-orange-500 dark:focus-visible:ring-orange-600"
|
|
2863
|
+
},
|
|
2864
|
+
{
|
|
2865
|
+
color: "warning",
|
|
2866
|
+
highlight: true,
|
|
2867
|
+
noBorder: false,
|
|
2868
|
+
underline: false,
|
|
2869
|
+
class: "ring ring-inset ring-orange-500 dark:ring-orange-600"
|
|
2870
|
+
},
|
|
2871
|
+
{
|
|
2872
|
+
color: "warning",
|
|
2873
|
+
noBorder: false,
|
|
2874
|
+
underline: true,
|
|
2875
|
+
class: "focus-visible:border-b-orange-500 dark:focus-visible:border-b-orange-600"
|
|
2876
|
+
},
|
|
2877
|
+
{
|
|
2878
|
+
color: "warning",
|
|
2879
|
+
highlight: true,
|
|
2880
|
+
noBorder: false,
|
|
2881
|
+
underline: true,
|
|
2882
|
+
class: "border-b-orange-500 dark:border-b-orange-600"
|
|
2883
|
+
},
|
|
2884
|
+
// endregion ////
|
|
2885
|
+
// region primary ////
|
|
2886
|
+
{
|
|
2887
|
+
color: "primary",
|
|
2888
|
+
noBorder: false,
|
|
2889
|
+
underline: false,
|
|
2890
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-blue-500 dark:focus-visible:ring-blue-600"
|
|
2891
|
+
},
|
|
2892
|
+
{
|
|
2893
|
+
color: "primary",
|
|
2894
|
+
highlight: true,
|
|
2895
|
+
noBorder: false,
|
|
2896
|
+
underline: false,
|
|
2897
|
+
class: "ring ring-inset ring-blue-500 dark:ring-blue-600"
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
color: "primary",
|
|
2901
|
+
noBorder: false,
|
|
2902
|
+
underline: true,
|
|
2903
|
+
class: "focus-visible:border-b-blue-500 dark:focus-visible:border-b-blue-600"
|
|
2904
|
+
},
|
|
2905
|
+
{
|
|
2906
|
+
color: "primary",
|
|
2907
|
+
highlight: true,
|
|
2908
|
+
noBorder: false,
|
|
2909
|
+
underline: true,
|
|
2910
|
+
class: "border-b-blue-500 dark:border-b-blue-600"
|
|
2911
|
+
},
|
|
2912
|
+
// endregion ////
|
|
2913
|
+
// region secondary ////
|
|
2914
|
+
{
|
|
2915
|
+
color: "secondary",
|
|
2916
|
+
noBorder: false,
|
|
2917
|
+
underline: false,
|
|
2918
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-cyan-500 dark:focus-visible:ring-cyan-600"
|
|
2919
|
+
},
|
|
2920
|
+
{
|
|
2921
|
+
color: "secondary",
|
|
2922
|
+
highlight: true,
|
|
2923
|
+
noBorder: false,
|
|
2924
|
+
underline: false,
|
|
2925
|
+
class: "ring ring-inset ring-cyan-500 dark:ring-cyan-600"
|
|
2926
|
+
},
|
|
2927
|
+
{
|
|
2928
|
+
color: "secondary",
|
|
2929
|
+
noBorder: false,
|
|
2930
|
+
underline: true,
|
|
2931
|
+
class: "focus-visible:border-b-cyan-500 dark:focus-visible:border-b-cyan-600"
|
|
2932
|
+
},
|
|
2933
|
+
{
|
|
2934
|
+
color: "secondary",
|
|
2935
|
+
highlight: true,
|
|
2936
|
+
noBorder: false,
|
|
2937
|
+
underline: true,
|
|
2938
|
+
class: "border-b-cyan-500 dark:border-b-cyan-600"
|
|
2939
|
+
},
|
|
2940
|
+
// endregion ////
|
|
2941
|
+
// region collab ////
|
|
2942
|
+
{
|
|
2943
|
+
color: "collab",
|
|
2944
|
+
noBorder: false,
|
|
2945
|
+
underline: false,
|
|
2946
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-collab-500 dark:focus-visible:ring-collab-600"
|
|
2947
|
+
},
|
|
2948
|
+
{
|
|
2949
|
+
color: "collab",
|
|
2950
|
+
highlight: true,
|
|
2951
|
+
noBorder: false,
|
|
2952
|
+
underline: false,
|
|
2953
|
+
class: "ring ring-inset ring-collab-500 dark:ring-collab-600"
|
|
2954
|
+
},
|
|
2955
|
+
{
|
|
2956
|
+
color: "collab",
|
|
2957
|
+
noBorder: false,
|
|
2958
|
+
underline: true,
|
|
2959
|
+
class: "focus-visible:border-b-collab-500 dark:focus-visible:border-b-collab-600"
|
|
2960
|
+
},
|
|
2961
|
+
{
|
|
2962
|
+
color: "collab",
|
|
2963
|
+
highlight: true,
|
|
2964
|
+
noBorder: false,
|
|
2965
|
+
underline: true,
|
|
2966
|
+
class: "border-b-collab-500 dark:border-b-collab-600"
|
|
2967
|
+
},
|
|
2968
|
+
// endregion ////
|
|
2969
|
+
// region ai ////
|
|
2970
|
+
{
|
|
2971
|
+
color: "ai",
|
|
2972
|
+
noBorder: false,
|
|
2973
|
+
underline: false,
|
|
2974
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ai-500 dark:focus-visible:ring-ai-600"
|
|
2975
|
+
},
|
|
2976
|
+
{
|
|
2977
|
+
color: "ai",
|
|
2978
|
+
highlight: true,
|
|
2979
|
+
noBorder: false,
|
|
2980
|
+
underline: false,
|
|
2981
|
+
class: "ring ring-inset ring-ai-500 dark:ring-ai-600"
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
color: "ai",
|
|
2985
|
+
noBorder: false,
|
|
2986
|
+
underline: true,
|
|
2987
|
+
class: "focus-visible:border-b-ai-500 dark:focus-visible:border-b-ai-600"
|
|
2988
|
+
},
|
|
2989
|
+
{
|
|
2990
|
+
color: "ai",
|
|
2991
|
+
highlight: true,
|
|
2992
|
+
noBorder: false,
|
|
2993
|
+
underline: true,
|
|
2994
|
+
class: "border-b-ai-500 dark:border-b-ai-600"
|
|
2995
|
+
},
|
|
2996
|
+
// endregion ////
|
|
2997
|
+
// endregion ////
|
|
2998
|
+
// region orientation && size ////
|
|
2999
|
+
// region horizontal ////
|
|
3000
|
+
{
|
|
3001
|
+
orientation: "horizontal",
|
|
3002
|
+
rounded: true,
|
|
3003
|
+
class: {
|
|
3004
|
+
increment: "[&>button]:rounded-3xl",
|
|
3005
|
+
decrement: "[&>button]:rounded-3xl"
|
|
3006
|
+
}
|
|
3007
|
+
},
|
|
3008
|
+
{
|
|
3009
|
+
orientation: "horizontal",
|
|
3010
|
+
size: "xs",
|
|
3011
|
+
class: {
|
|
3012
|
+
base: "px-[1.3rem]",
|
|
3013
|
+
increment: "[&>button]:h-[24px] scale-80",
|
|
3014
|
+
decrement: "[&>button]:h-[24px] scale-80"
|
|
3015
|
+
}
|
|
3016
|
+
},
|
|
3017
|
+
{
|
|
3018
|
+
orientation: "horizontal",
|
|
3019
|
+
size: "sm",
|
|
3020
|
+
class: {
|
|
3021
|
+
base: "px-[2.1rem]",
|
|
3022
|
+
increment: "scale-80",
|
|
3023
|
+
decrement: "scale-80"
|
|
3024
|
+
}
|
|
3025
|
+
},
|
|
3026
|
+
{
|
|
3027
|
+
orientation: "horizontal",
|
|
3028
|
+
size: "md",
|
|
3029
|
+
class: {
|
|
3030
|
+
base: "px-[2.45rem]",
|
|
3031
|
+
increment: "[&>button]:p-1.5 scale-80",
|
|
3032
|
+
decrement: "[&>button]:p-1.5 scale-80"
|
|
3033
|
+
}
|
|
3034
|
+
},
|
|
3035
|
+
{
|
|
3036
|
+
orientation: "horizontal",
|
|
3037
|
+
size: "lg",
|
|
3038
|
+
class: {
|
|
3039
|
+
base: "px-[2.95rem]",
|
|
3040
|
+
increment: "pe-1 [&>button]:p-1.5 [&>button]:h-[42px] scale-95",
|
|
3041
|
+
decrement: "ps-1 [&>button]:p-1.5 [&>button]:h-[42px] scale-95"
|
|
3042
|
+
}
|
|
3043
|
+
},
|
|
3044
|
+
// endregion ////
|
|
3045
|
+
// region vertical ////
|
|
3046
|
+
{
|
|
3047
|
+
orientation: "vertical",
|
|
3048
|
+
size: "xs",
|
|
3049
|
+
class: {
|
|
3050
|
+
base: "pe-7",
|
|
3051
|
+
increment: "top-0 pe-0 [&>button]:h-[13px]",
|
|
3052
|
+
decrement: "bottom-0 pe-0 [&>button]:h-[13px]"
|
|
3053
|
+
}
|
|
3054
|
+
},
|
|
3055
|
+
{
|
|
3056
|
+
orientation: "vertical",
|
|
3057
|
+
size: "sm",
|
|
3058
|
+
class: {
|
|
3059
|
+
base: "pe-8",
|
|
3060
|
+
increment: "[&>button]:h-[13px] scale-80",
|
|
3061
|
+
decrement: "[&>button]:h-[13px] scale-80"
|
|
3062
|
+
}
|
|
3063
|
+
},
|
|
3064
|
+
{
|
|
3065
|
+
orientation: "vertical",
|
|
3066
|
+
size: "md",
|
|
3067
|
+
class: {
|
|
3068
|
+
base: "pe-9",
|
|
3069
|
+
increment: "[&>button]:h-[19px] scale-80",
|
|
3070
|
+
decrement: "[&>button]:h-[19px] scale-80"
|
|
3071
|
+
}
|
|
3072
|
+
},
|
|
3073
|
+
{
|
|
3074
|
+
orientation: "vertical",
|
|
3075
|
+
size: "lg",
|
|
3076
|
+
class: {
|
|
3077
|
+
base: "pe-9",
|
|
3078
|
+
increment: "[&>button]:h-[22px] scale-80",
|
|
3079
|
+
decrement: "[&>button]:h-[22px] scale-80"
|
|
3080
|
+
}
|
|
3081
|
+
}
|
|
3082
|
+
// endregion ////
|
|
3083
|
+
// endregion ////
|
|
3084
|
+
],
|
|
3085
|
+
defaultVariants: {
|
|
3086
|
+
size: "md",
|
|
3087
|
+
color: "primary",
|
|
3088
|
+
tagColor: "primary"
|
|
3089
|
+
}
|
|
3090
|
+
};
|
|
3091
|
+
};
|
|
3092
|
+
|
|
2692
3093
|
const kbd = {
|
|
2693
3094
|
base: "inline-flex items-center justify-center px-1 rounded-2xs font-normal font-b24-system-mono",
|
|
2694
3095
|
variants: {
|
|
@@ -2752,6 +3153,46 @@ const link = (options) => ({
|
|
|
2752
3153
|
}
|
|
2753
3154
|
});
|
|
2754
3155
|
|
|
3156
|
+
const modal = {
|
|
3157
|
+
slots: {
|
|
3158
|
+
overlay: "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
|
|
3159
|
+
content: [
|
|
3160
|
+
"py-md2 px-5",
|
|
3161
|
+
"fixed w-full h-dvh bg-white dark:bg-base-950",
|
|
3162
|
+
// 'divide-y divide-base-900/10 dark:divide-white/20',
|
|
3163
|
+
"flex flex-col focus:outline-none"
|
|
3164
|
+
].join(" "),
|
|
3165
|
+
header: "pe-5 pt-0",
|
|
3166
|
+
body: "flex-1 overflow-y-auto my-2.5 text-md leading-normal",
|
|
3167
|
+
footer: "flex items-center justify-center gap-3 mt-2.5 pt-4 border-t border-t-1 border-t-base-900/10 dark:border-t-white/20",
|
|
3168
|
+
title: "font-bold text-md leading-normal text-base-900 dark:text-base-150",
|
|
3169
|
+
description: "mt-0.5 mb-1 text-base-500 dark:text-base-400 text-sm",
|
|
3170
|
+
close: "absolute top-2 end-1.5 p-0.5"
|
|
3171
|
+
},
|
|
3172
|
+
variants: {
|
|
3173
|
+
transition: {
|
|
3174
|
+
true: {
|
|
3175
|
+
overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
|
|
3176
|
+
content: "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
|
|
3177
|
+
}
|
|
3178
|
+
},
|
|
3179
|
+
fullscreen: {
|
|
3180
|
+
true: {
|
|
3181
|
+
content: "inset-0"
|
|
3182
|
+
},
|
|
3183
|
+
false: {
|
|
3184
|
+
content: [
|
|
3185
|
+
"top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%]",
|
|
3186
|
+
"sm:min-w-[400px]",
|
|
3187
|
+
"sm:max-w-[420px] sm:h-auto sm:max-h-[calc(100vh-4rem)]",
|
|
3188
|
+
"sm:rounded-md sm:shadow-lg",
|
|
3189
|
+
"sm:ring ring-base-300 dark:ring-base-800"
|
|
3190
|
+
].join(" ")
|
|
3191
|
+
}
|
|
3192
|
+
}
|
|
3193
|
+
}
|
|
3194
|
+
};
|
|
3195
|
+
|
|
2755
3196
|
const progress = {
|
|
2756
3197
|
slots: {
|
|
2757
3198
|
root: "gap-2",
|
|
@@ -3032,7 +3473,11 @@ const radioGroup = {
|
|
|
3032
3473
|
fieldset: "flex",
|
|
3033
3474
|
legend: "mb-1.5 block font-medium text-base-master dark:text-base-400",
|
|
3034
3475
|
item: "flex items-start",
|
|
3035
|
-
base:
|
|
3476
|
+
base: [
|
|
3477
|
+
"cursor-pointer rounded-full",
|
|
3478
|
+
"ring ring-inset ring-base-300 dark:ring-base-700",
|
|
3479
|
+
"outline-transparent focus-visible:outline-2 focus-visible:outline-offset-2"
|
|
3480
|
+
].join(" "),
|
|
3036
3481
|
indicator: " flex items-center justify-center size-full rounded-full after:bg-white dark:after:bg-base-dark after:rounded-full",
|
|
3037
3482
|
container: "flex items-center",
|
|
3038
3483
|
wrapper: "font-b24-primary font-regular ms-2",
|
|
@@ -3144,7 +3589,11 @@ const range = {
|
|
|
3144
3589
|
root: "relative flex items-center select-none touch-none",
|
|
3145
3590
|
track: "relative bg-base-200 dark:bg-base-800 overflow-hidden rounded-full grow",
|
|
3146
3591
|
range: "absolute rounded-full",
|
|
3147
|
-
thumb:
|
|
3592
|
+
thumb: [
|
|
3593
|
+
"rounded-full bg-white dark:bg-base-100",
|
|
3594
|
+
"ring-2",
|
|
3595
|
+
"outline-transparent focus-visible:outline-2 focus-visible:outline-offset-2"
|
|
3596
|
+
].join(" ")
|
|
3148
3597
|
},
|
|
3149
3598
|
variants: {
|
|
3150
3599
|
color: {
|
|
@@ -3330,9 +3779,9 @@ const select = () => {
|
|
|
3330
3779
|
placeholder: "truncate text-base-400 dark:text-base-300",
|
|
3331
3780
|
arrow: "fill-base-master/10 dark:fill-base-100/20",
|
|
3332
3781
|
content: [
|
|
3333
|
-
"w-
|
|
3782
|
+
"w-(--reka-popper-anchor-width)",
|
|
3334
3783
|
// 'max-h-60',
|
|
3335
|
-
// 'h-
|
|
3784
|
+
// 'h-(--reka-popper-available-height)',
|
|
3336
3785
|
"bg-white dark:bg-base-dark",
|
|
3337
3786
|
"shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800",
|
|
3338
3787
|
"overflow-hidden",
|
|
@@ -3542,7 +3991,8 @@ const _switch = {
|
|
|
3542
3991
|
slots: {
|
|
3543
3992
|
root: "relative flex items-start",
|
|
3544
3993
|
base: [
|
|
3545
|
-
"cursor-pointer inline-flex items-center shrink-0 rounded-full border-2 border-transparent
|
|
3994
|
+
"cursor-pointer inline-flex items-center shrink-0 rounded-full border-2 border-transparent data-[state=unchecked]:bg-base-200 dark:data-[state=unchecked]:bg-base-800",
|
|
3995
|
+
"outline-transparent focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
3546
3996
|
"transition-colors duration-200"
|
|
3547
3997
|
].join(" "),
|
|
3548
3998
|
container: "flex items-center",
|
|
@@ -3700,12 +4150,12 @@ const tabs = {
|
|
|
3700
4150
|
horizontal: {
|
|
3701
4151
|
root: "flex-col",
|
|
3702
4152
|
list: "w-full",
|
|
3703
|
-
indicator: "left-0 w-
|
|
4153
|
+
indicator: "left-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)",
|
|
3704
4154
|
trigger: "justify-center"
|
|
3705
4155
|
},
|
|
3706
4156
|
vertical: {
|
|
3707
4157
|
list: "flex-col",
|
|
3708
|
-
indicator: "top-0 h-
|
|
4158
|
+
indicator: "top-0 h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)"
|
|
3709
4159
|
}
|
|
3710
4160
|
},
|
|
3711
4161
|
size: {
|
|
@@ -4395,8 +4845,8 @@ const toast = {
|
|
|
4395
4845
|
|
|
4396
4846
|
const toaster = {
|
|
4397
4847
|
slots: {
|
|
4398
|
-
viewport: "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-
|
|
4399
|
-
base: "pointer-events-auto absolute inset-x-0 z-
|
|
4848
|
+
viewport: "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none",
|
|
4849
|
+
base: "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:invisible data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
|
|
4400
4850
|
},
|
|
4401
4851
|
variants: {
|
|
4402
4852
|
position: {
|
|
@@ -4454,14 +4904,14 @@ const toaster = {
|
|
|
4454
4904
|
"left",
|
|
4455
4905
|
"right"
|
|
4456
4906
|
],
|
|
4457
|
-
class: "data-[swipe=move]:translate-x-
|
|
4907
|
+
class: "data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=end]:translate-x-(--reka-toast-swipe-end-x) data-[swipe=cancel]:translate-x-0"
|
|
4458
4908
|
},
|
|
4459
4909
|
{
|
|
4460
4910
|
swipeDirection: [
|
|
4461
4911
|
"up",
|
|
4462
4912
|
"down"
|
|
4463
4913
|
],
|
|
4464
|
-
class: "data-[swipe=move]:translate-y-
|
|
4914
|
+
class: "data-[swipe=move]:translate-y-(--reka-toast-swipe-move-y) data-[swipe=end]:translate-y-(--reka-toast-swipe-end-y) data-[swipe=cancel]:translate-y-0"
|
|
4465
4915
|
}
|
|
4466
4916
|
],
|
|
4467
4917
|
defaultVariants: {
|
|
@@ -4505,8 +4955,10 @@ const theme = {
|
|
|
4505
4955
|
formField: formField,
|
|
4506
4956
|
input: input,
|
|
4507
4957
|
inputMenu: inputMenu,
|
|
4958
|
+
inputNumber: inputNumber,
|
|
4508
4959
|
kbd: kbd,
|
|
4509
4960
|
link: link,
|
|
4961
|
+
modal: modal,
|
|
4510
4962
|
progress: progress,
|
|
4511
4963
|
radioGroup: radioGroup,
|
|
4512
4964
|
range: range,
|