@bitrix24/b24ui-nuxt 0.2.3 → 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/index.ts +1 -0
- package/.nuxt/b24ui/input-number.ts +417 -0
- package/README.md +1 -1
- package/dist/meta.cjs +2321 -14
- package/dist/meta.d.cts +2321 -14
- package/dist/meta.d.mts +2321 -14
- package/dist/meta.d.ts +2321 -14
- package/dist/meta.mjs +2321 -14
- package/dist/module.cjs +2 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -1
- package/dist/runtime/components/DropdownMenu.vue +3 -3
- package/dist/runtime/components/InputNumber.vue +218 -0
- package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/shared/{b24ui-nuxt.Ce3hzs_q.cjs → b24ui-nuxt.DGjopCKm.cjs} +399 -0
- package/dist/shared/{b24ui-nuxt.DY8ePXC7.mjs → b24ui-nuxt.V9TzyCqH.mjs} +399 -0
- 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 +1 -1
|
@@ -2690,6 +2690,404 @@ const inputMenu = () => {
|
|
|
2690
2690
|
}, input);
|
|
2691
2691
|
};
|
|
2692
2692
|
|
|
2693
|
+
const inputNumber = () => {
|
|
2694
|
+
const input$1 = input;
|
|
2695
|
+
return {
|
|
2696
|
+
slots: {
|
|
2697
|
+
root: "relative inline-flex items-center",
|
|
2698
|
+
base: [
|
|
2699
|
+
"w-full py-0 border-0 focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
2700
|
+
"placeholder:text-base-400",
|
|
2701
|
+
"dark:placeholder:text-base-300",
|
|
2702
|
+
"appearance-none transition duration-300 ease-linear",
|
|
2703
|
+
// transition-colors
|
|
2704
|
+
"ring ring-inset ring-base-300",
|
|
2705
|
+
"dark:ring-base-800",
|
|
2706
|
+
"text-base-master bg-white placeholder:text-base-400 hover:text-base-900 focus:text-base-900 active:text-base-900",
|
|
2707
|
+
"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",
|
|
2708
|
+
"font-b24-primary font-regular text-md leading-none",
|
|
2709
|
+
"align-middle",
|
|
2710
|
+
"text-ellipsis whitespace-nowrap"
|
|
2711
|
+
].join(" "),
|
|
2712
|
+
increment: "absolute flex items-center",
|
|
2713
|
+
decrement: "absolute flex items-center",
|
|
2714
|
+
tag: input$1.slots.tag
|
|
2715
|
+
},
|
|
2716
|
+
variants: {
|
|
2717
|
+
size: {
|
|
2718
|
+
xs: "px-2 h-xl2 gap-1",
|
|
2719
|
+
sm: "px-2.5 h-8 gap-1.5",
|
|
2720
|
+
md: "px-2.5 h-10 gap-1.5",
|
|
2721
|
+
lg: "px-3 h-12 gap-2"
|
|
2722
|
+
},
|
|
2723
|
+
color: {
|
|
2724
|
+
default: "",
|
|
2725
|
+
danger: "",
|
|
2726
|
+
success: "",
|
|
2727
|
+
warning: "",
|
|
2728
|
+
primary: "",
|
|
2729
|
+
secondary: "",
|
|
2730
|
+
collab: "",
|
|
2731
|
+
ai: ""
|
|
2732
|
+
},
|
|
2733
|
+
tagColor: {
|
|
2734
|
+
...input$1.variants.tagColor
|
|
2735
|
+
},
|
|
2736
|
+
rounded: {
|
|
2737
|
+
...input$1.variants.rounded
|
|
2738
|
+
},
|
|
2739
|
+
noPadding: {
|
|
2740
|
+
...input$1.variants.noPadding
|
|
2741
|
+
},
|
|
2742
|
+
noBorder: {
|
|
2743
|
+
...input$1.variants.noBorder
|
|
2744
|
+
},
|
|
2745
|
+
underline: {
|
|
2746
|
+
...input$1.variants.underline
|
|
2747
|
+
},
|
|
2748
|
+
disabled: {
|
|
2749
|
+
true: {
|
|
2750
|
+
increment: "opacity-75 cursor-not-allowed",
|
|
2751
|
+
decrement: "opacity-75 cursor-not-allowed"
|
|
2752
|
+
}
|
|
2753
|
+
},
|
|
2754
|
+
orientation: {
|
|
2755
|
+
horizontal: {
|
|
2756
|
+
base: "text-center",
|
|
2757
|
+
increment: "inset-y-0 end-0 py-0 pe-0 [&>button]:p-1",
|
|
2758
|
+
decrement: "inset-y-0 start-0 py-0 ps-0 [&>button]:p-1"
|
|
2759
|
+
},
|
|
2760
|
+
vertical: {
|
|
2761
|
+
increment: "top-1 end-0 pe-1 [&>button]:p-0",
|
|
2762
|
+
decrement: "bottom-1 end-0 pe-1 [&>button]:p-0"
|
|
2763
|
+
}
|
|
2764
|
+
},
|
|
2765
|
+
highlight: {
|
|
2766
|
+
true: ""
|
|
2767
|
+
}
|
|
2768
|
+
},
|
|
2769
|
+
compoundVariants: [
|
|
2770
|
+
// region ring for focus and highlight ////
|
|
2771
|
+
// region default ////
|
|
2772
|
+
{
|
|
2773
|
+
color: "default",
|
|
2774
|
+
noBorder: false,
|
|
2775
|
+
underline: false,
|
|
2776
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-base-900 dark:focus-visible:ring-base-350"
|
|
2777
|
+
},
|
|
2778
|
+
{
|
|
2779
|
+
color: "default",
|
|
2780
|
+
highlight: true,
|
|
2781
|
+
noBorder: false,
|
|
2782
|
+
underline: false,
|
|
2783
|
+
class: "ring ring-inset ring-base-900 dark:ring-base-350"
|
|
2784
|
+
},
|
|
2785
|
+
{
|
|
2786
|
+
color: "default",
|
|
2787
|
+
noBorder: false,
|
|
2788
|
+
underline: true,
|
|
2789
|
+
class: "focus-visible:border-base-900 dark:focus-visible:border-b-base-350"
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
color: "default",
|
|
2793
|
+
highlight: true,
|
|
2794
|
+
noBorder: false,
|
|
2795
|
+
underline: true,
|
|
2796
|
+
class: "border-b-base-900 dark:border-b-base-350"
|
|
2797
|
+
},
|
|
2798
|
+
// endregion ////
|
|
2799
|
+
// region danger ////
|
|
2800
|
+
{
|
|
2801
|
+
color: "danger",
|
|
2802
|
+
noBorder: false,
|
|
2803
|
+
underline: false,
|
|
2804
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-red-500 dark:focus-visible:ring-red-600"
|
|
2805
|
+
},
|
|
2806
|
+
{
|
|
2807
|
+
color: "danger",
|
|
2808
|
+
highlight: true,
|
|
2809
|
+
noBorder: false,
|
|
2810
|
+
underline: false,
|
|
2811
|
+
class: "ring ring-inset ring-red-500 dark:ring-red-600"
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
color: "danger",
|
|
2815
|
+
noBorder: false,
|
|
2816
|
+
underline: true,
|
|
2817
|
+
class: "focus-visible:border-b-red-500 dark:focus-visible:border-b-red-600"
|
|
2818
|
+
},
|
|
2819
|
+
{
|
|
2820
|
+
color: "danger",
|
|
2821
|
+
highlight: true,
|
|
2822
|
+
noBorder: false,
|
|
2823
|
+
underline: true,
|
|
2824
|
+
class: "border-b-red-500 dark:border-b-red-600"
|
|
2825
|
+
},
|
|
2826
|
+
// endregion ////
|
|
2827
|
+
// region success ////
|
|
2828
|
+
{
|
|
2829
|
+
color: "success",
|
|
2830
|
+
noBorder: false,
|
|
2831
|
+
underline: false,
|
|
2832
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-green-500 dark:focus-visible:ring-green-600"
|
|
2833
|
+
},
|
|
2834
|
+
{
|
|
2835
|
+
color: "success",
|
|
2836
|
+
highlight: true,
|
|
2837
|
+
noBorder: false,
|
|
2838
|
+
underline: false,
|
|
2839
|
+
class: "ring ring-inset ring-green-500 dark:ring-green-600"
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
color: "success",
|
|
2843
|
+
noBorder: false,
|
|
2844
|
+
underline: true,
|
|
2845
|
+
class: "focus-visible:border-b-green-500 dark:focus-visible:border-b-green-600"
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
color: "success",
|
|
2849
|
+
highlight: true,
|
|
2850
|
+
noBorder: false,
|
|
2851
|
+
underline: true,
|
|
2852
|
+
class: "border-b-green-500 dark:border-b-green-600"
|
|
2853
|
+
},
|
|
2854
|
+
// endregion ////
|
|
2855
|
+
// region warning ////
|
|
2856
|
+
{
|
|
2857
|
+
color: "warning",
|
|
2858
|
+
noBorder: false,
|
|
2859
|
+
underline: false,
|
|
2860
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-orange-500 dark:focus-visible:ring-orange-600"
|
|
2861
|
+
},
|
|
2862
|
+
{
|
|
2863
|
+
color: "warning",
|
|
2864
|
+
highlight: true,
|
|
2865
|
+
noBorder: false,
|
|
2866
|
+
underline: false,
|
|
2867
|
+
class: "ring ring-inset ring-orange-500 dark:ring-orange-600"
|
|
2868
|
+
},
|
|
2869
|
+
{
|
|
2870
|
+
color: "warning",
|
|
2871
|
+
noBorder: false,
|
|
2872
|
+
underline: true,
|
|
2873
|
+
class: "focus-visible:border-b-orange-500 dark:focus-visible:border-b-orange-600"
|
|
2874
|
+
},
|
|
2875
|
+
{
|
|
2876
|
+
color: "warning",
|
|
2877
|
+
highlight: true,
|
|
2878
|
+
noBorder: false,
|
|
2879
|
+
underline: true,
|
|
2880
|
+
class: "border-b-orange-500 dark:border-b-orange-600"
|
|
2881
|
+
},
|
|
2882
|
+
// endregion ////
|
|
2883
|
+
// region primary ////
|
|
2884
|
+
{
|
|
2885
|
+
color: "primary",
|
|
2886
|
+
noBorder: false,
|
|
2887
|
+
underline: false,
|
|
2888
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-blue-500 dark:focus-visible:ring-blue-600"
|
|
2889
|
+
},
|
|
2890
|
+
{
|
|
2891
|
+
color: "primary",
|
|
2892
|
+
highlight: true,
|
|
2893
|
+
noBorder: false,
|
|
2894
|
+
underline: false,
|
|
2895
|
+
class: "ring ring-inset ring-blue-500 dark:ring-blue-600"
|
|
2896
|
+
},
|
|
2897
|
+
{
|
|
2898
|
+
color: "primary",
|
|
2899
|
+
noBorder: false,
|
|
2900
|
+
underline: true,
|
|
2901
|
+
class: "focus-visible:border-b-blue-500 dark:focus-visible:border-b-blue-600"
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
color: "primary",
|
|
2905
|
+
highlight: true,
|
|
2906
|
+
noBorder: false,
|
|
2907
|
+
underline: true,
|
|
2908
|
+
class: "border-b-blue-500 dark:border-b-blue-600"
|
|
2909
|
+
},
|
|
2910
|
+
// endregion ////
|
|
2911
|
+
// region secondary ////
|
|
2912
|
+
{
|
|
2913
|
+
color: "secondary",
|
|
2914
|
+
noBorder: false,
|
|
2915
|
+
underline: false,
|
|
2916
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-cyan-500 dark:focus-visible:ring-cyan-600"
|
|
2917
|
+
},
|
|
2918
|
+
{
|
|
2919
|
+
color: "secondary",
|
|
2920
|
+
highlight: true,
|
|
2921
|
+
noBorder: false,
|
|
2922
|
+
underline: false,
|
|
2923
|
+
class: "ring ring-inset ring-cyan-500 dark:ring-cyan-600"
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
color: "secondary",
|
|
2927
|
+
noBorder: false,
|
|
2928
|
+
underline: true,
|
|
2929
|
+
class: "focus-visible:border-b-cyan-500 dark:focus-visible:border-b-cyan-600"
|
|
2930
|
+
},
|
|
2931
|
+
{
|
|
2932
|
+
color: "secondary",
|
|
2933
|
+
highlight: true,
|
|
2934
|
+
noBorder: false,
|
|
2935
|
+
underline: true,
|
|
2936
|
+
class: "border-b-cyan-500 dark:border-b-cyan-600"
|
|
2937
|
+
},
|
|
2938
|
+
// endregion ////
|
|
2939
|
+
// region collab ////
|
|
2940
|
+
{
|
|
2941
|
+
color: "collab",
|
|
2942
|
+
noBorder: false,
|
|
2943
|
+
underline: false,
|
|
2944
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-collab-500 dark:focus-visible:ring-collab-600"
|
|
2945
|
+
},
|
|
2946
|
+
{
|
|
2947
|
+
color: "collab",
|
|
2948
|
+
highlight: true,
|
|
2949
|
+
noBorder: false,
|
|
2950
|
+
underline: false,
|
|
2951
|
+
class: "ring ring-inset ring-collab-500 dark:ring-collab-600"
|
|
2952
|
+
},
|
|
2953
|
+
{
|
|
2954
|
+
color: "collab",
|
|
2955
|
+
noBorder: false,
|
|
2956
|
+
underline: true,
|
|
2957
|
+
class: "focus-visible:border-b-collab-500 dark:focus-visible:border-b-collab-600"
|
|
2958
|
+
},
|
|
2959
|
+
{
|
|
2960
|
+
color: "collab",
|
|
2961
|
+
highlight: true,
|
|
2962
|
+
noBorder: false,
|
|
2963
|
+
underline: true,
|
|
2964
|
+
class: "border-b-collab-500 dark:border-b-collab-600"
|
|
2965
|
+
},
|
|
2966
|
+
// endregion ////
|
|
2967
|
+
// region ai ////
|
|
2968
|
+
{
|
|
2969
|
+
color: "ai",
|
|
2970
|
+
noBorder: false,
|
|
2971
|
+
underline: false,
|
|
2972
|
+
class: "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ai-500 dark:focus-visible:ring-ai-600"
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
color: "ai",
|
|
2976
|
+
highlight: true,
|
|
2977
|
+
noBorder: false,
|
|
2978
|
+
underline: false,
|
|
2979
|
+
class: "ring ring-inset ring-ai-500 dark:ring-ai-600"
|
|
2980
|
+
},
|
|
2981
|
+
{
|
|
2982
|
+
color: "ai",
|
|
2983
|
+
noBorder: false,
|
|
2984
|
+
underline: true,
|
|
2985
|
+
class: "focus-visible:border-b-ai-500 dark:focus-visible:border-b-ai-600"
|
|
2986
|
+
},
|
|
2987
|
+
{
|
|
2988
|
+
color: "ai",
|
|
2989
|
+
highlight: true,
|
|
2990
|
+
noBorder: false,
|
|
2991
|
+
underline: true,
|
|
2992
|
+
class: "border-b-ai-500 dark:border-b-ai-600"
|
|
2993
|
+
},
|
|
2994
|
+
// endregion ////
|
|
2995
|
+
// endregion ////
|
|
2996
|
+
// region orientation && size ////
|
|
2997
|
+
// region horizontal ////
|
|
2998
|
+
{
|
|
2999
|
+
orientation: "horizontal",
|
|
3000
|
+
rounded: true,
|
|
3001
|
+
class: {
|
|
3002
|
+
increment: "[&>button]:rounded-3xl",
|
|
3003
|
+
decrement: "[&>button]:rounded-3xl"
|
|
3004
|
+
}
|
|
3005
|
+
},
|
|
3006
|
+
{
|
|
3007
|
+
orientation: "horizontal",
|
|
3008
|
+
size: "xs",
|
|
3009
|
+
class: {
|
|
3010
|
+
base: "px-[1.3rem]",
|
|
3011
|
+
increment: "[&>button]:h-[24px] scale-80",
|
|
3012
|
+
decrement: "[&>button]:h-[24px] scale-80"
|
|
3013
|
+
}
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
orientation: "horizontal",
|
|
3017
|
+
size: "sm",
|
|
3018
|
+
class: {
|
|
3019
|
+
base: "px-[2.1rem]",
|
|
3020
|
+
increment: "scale-80",
|
|
3021
|
+
decrement: "scale-80"
|
|
3022
|
+
}
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
orientation: "horizontal",
|
|
3026
|
+
size: "md",
|
|
3027
|
+
class: {
|
|
3028
|
+
base: "px-[2.45rem]",
|
|
3029
|
+
increment: "[&>button]:p-1.5 scale-80",
|
|
3030
|
+
decrement: "[&>button]:p-1.5 scale-80"
|
|
3031
|
+
}
|
|
3032
|
+
},
|
|
3033
|
+
{
|
|
3034
|
+
orientation: "horizontal",
|
|
3035
|
+
size: "lg",
|
|
3036
|
+
class: {
|
|
3037
|
+
base: "px-[2.95rem]",
|
|
3038
|
+
increment: "pe-1 [&>button]:p-1.5 [&>button]:h-[42px] scale-95",
|
|
3039
|
+
decrement: "ps-1 [&>button]:p-1.5 [&>button]:h-[42px] scale-95"
|
|
3040
|
+
}
|
|
3041
|
+
},
|
|
3042
|
+
// endregion ////
|
|
3043
|
+
// region vertical ////
|
|
3044
|
+
{
|
|
3045
|
+
orientation: "vertical",
|
|
3046
|
+
size: "xs",
|
|
3047
|
+
class: {
|
|
3048
|
+
base: "pe-7",
|
|
3049
|
+
increment: "top-0 pe-0 [&>button]:h-[13px]",
|
|
3050
|
+
decrement: "bottom-0 pe-0 [&>button]:h-[13px]"
|
|
3051
|
+
}
|
|
3052
|
+
},
|
|
3053
|
+
{
|
|
3054
|
+
orientation: "vertical",
|
|
3055
|
+
size: "sm",
|
|
3056
|
+
class: {
|
|
3057
|
+
base: "pe-8",
|
|
3058
|
+
increment: "[&>button]:h-[13px] scale-80",
|
|
3059
|
+
decrement: "[&>button]:h-[13px] scale-80"
|
|
3060
|
+
}
|
|
3061
|
+
},
|
|
3062
|
+
{
|
|
3063
|
+
orientation: "vertical",
|
|
3064
|
+
size: "md",
|
|
3065
|
+
class: {
|
|
3066
|
+
base: "pe-9",
|
|
3067
|
+
increment: "[&>button]:h-[19px] scale-80",
|
|
3068
|
+
decrement: "[&>button]:h-[19px] scale-80"
|
|
3069
|
+
}
|
|
3070
|
+
},
|
|
3071
|
+
{
|
|
3072
|
+
orientation: "vertical",
|
|
3073
|
+
size: "lg",
|
|
3074
|
+
class: {
|
|
3075
|
+
base: "pe-9",
|
|
3076
|
+
increment: "[&>button]:h-[22px] scale-80",
|
|
3077
|
+
decrement: "[&>button]:h-[22px] scale-80"
|
|
3078
|
+
}
|
|
3079
|
+
}
|
|
3080
|
+
// endregion ////
|
|
3081
|
+
// endregion ////
|
|
3082
|
+
],
|
|
3083
|
+
defaultVariants: {
|
|
3084
|
+
size: "md",
|
|
3085
|
+
color: "primary",
|
|
3086
|
+
tagColor: "primary"
|
|
3087
|
+
}
|
|
3088
|
+
};
|
|
3089
|
+
};
|
|
3090
|
+
|
|
2693
3091
|
const kbd = {
|
|
2694
3092
|
base: "inline-flex items-center justify-center px-1 rounded-2xs font-normal font-b24-system-mono",
|
|
2695
3093
|
variants: {
|
|
@@ -4555,6 +4953,7 @@ const theme = {
|
|
|
4555
4953
|
formField: formField,
|
|
4556
4954
|
input: input,
|
|
4557
4955
|
inputMenu: inputMenu,
|
|
4956
|
+
inputNumber: inputNumber,
|
|
4558
4957
|
kbd: kbd,
|
|
4559
4958
|
link: link,
|
|
4560
4959
|
modal: modal,
|
package/dist/unplugin.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const pathe = require('pathe');
|
|
|
5
5
|
const unplugin = require('unplugin');
|
|
6
6
|
const defu = require('defu');
|
|
7
7
|
const tailwind = require('@tailwindcss/vite');
|
|
8
|
-
const templates = require('./shared/b24ui-nuxt.
|
|
8
|
+
const templates = require('./shared/b24ui-nuxt.DGjopCKm.cjs');
|
|
9
9
|
const tinyglobby = require('tinyglobby');
|
|
10
10
|
const knitwork = require('knitwork');
|
|
11
11
|
const MagicString = require('magic-string');
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
|
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import tailwind from '@tailwindcss/vite';
|
|
6
|
-
import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.
|
|
6
|
+
import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.V9TzyCqH.mjs';
|
|
7
7
|
import { globSync } from 'tinyglobby';
|
|
8
8
|
import { genSafeVariableName } from 'knitwork';
|
|
9
9
|
import MagicString from 'magic-string';
|
package/dist/vite.cjs
CHANGED
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED