@bitrix24/b24ui-nuxt 0.2.3 → 0.2.5

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.
@@ -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: {
@@ -3071,7 +3469,7 @@ const radioGroup = {
3071
3469
  slots: {
3072
3470
  root: "relative",
3073
3471
  fieldset: "flex",
3074
- legend: "mb-1.5 block font-medium text-base-master dark:text-base-400",
3472
+ legend: "mb-1.5 block text-base-900 dark:text-base-400",
3075
3473
  item: "flex items-start",
3076
3474
  base: [
3077
3475
  "cursor-pointer rounded-full",
@@ -3443,7 +3841,8 @@ const select = () => {
3443
3841
  const selectMenu = () => {
3444
3842
  return defu({
3445
3843
  slots: {
3446
- input: "border-b border-base-300 dark:dark:border-base-800"
3844
+ input: "border-b border-base-300 dark:dark:border-base-800",
3845
+ focusScope: "flex flex-col min-h-0"
3447
3846
  },
3448
3847
  variants: {
3449
3848
  addNew: {
@@ -4555,6 +4954,7 @@ const theme = {
4555
4954
  formField: formField,
4556
4955
  input: input,
4557
4956
  inputMenu: inputMenu,
4957
+ inputNumber: inputNumber,
4558
4958
  kbd: kbd,
4559
4959
  link: link,
4560
4960
  modal: modal,
@@ -4593,8 +4993,12 @@ const descriptionList = {
4593
4993
  avatar: "shrink-0",
4594
4994
  avatarSize: "",
4595
4995
  label: "",
4596
- descriptionWrapper: "text-base-950 sm:border-t sm:border-base-950/5 dark:text-white dark:sm:border-white/5 sm:[&:nth-child(2)]:border-none",
4597
- description: "text-base-900 dark:text-base-150",
4996
+ descriptionWrapper: [
4997
+ "sm:border-t sm:[&:nth-child(2)]:border-none",
4998
+ "text-base-900 sm:border-base-950/5",
4999
+ "dark:text-base-150 dark:sm:border-white/5"
5000
+ ].join(" "),
5001
+ description: "",
4598
5002
  actions: "flex flex-wrap gap-1.5 shrink-0",
4599
5003
  footer: "border-t border-base-950/5 dark:border-white/5"
4600
5004
  },