@caratlogic/design-system 0.1.13 → 0.1.18
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/README.md +1 -1
- package/dist/components/molecules/CustomField/CustomField.types.d.ts +28 -0
- package/dist/components/molecules/CustomField/CustomField.types.d.ts.map +1 -0
- package/dist/components/molecules/CustomField/CustomFieldInput.d.ts +43 -0
- package/dist/components/molecules/CustomField/CustomFieldInput.d.ts.map +1 -0
- package/dist/components/molecules/CustomField/CustomFieldValue.d.ts +17 -0
- package/dist/components/molecules/CustomField/CustomFieldValue.d.ts.map +1 -0
- package/dist/components/molecules/CustomField/fieldTypeIcon.d.ts +4 -0
- package/dist/components/molecules/CustomField/fieldTypeIcon.d.ts.map +1 -0
- package/dist/components/molecules/CustomField/fieldValueHelpers.d.ts +10 -0
- package/dist/components/molecules/CustomField/fieldValueHelpers.d.ts.map +1 -0
- package/dist/components/molecules/CustomField/index.d.ts +8 -0
- package/dist/components/molecules/CustomField/index.d.ts.map +1 -0
- package/dist/index.cjs.js +692 -341
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +684 -342
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2698,12 +2698,27 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
2698
2698
|
*/
|
|
2699
2699
|
|
|
2700
2700
|
|
|
2701
|
-
const __iconNode$
|
|
2701
|
+
const __iconNode$1j = [
|
|
2702
|
+
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
2703
|
+
["path", { d: "M17 18H3", key: "1amg6g" }],
|
|
2704
|
+
["path", { d: "M21 6H3", key: "1jwq7v" }]
|
|
2705
|
+
];
|
|
2706
|
+
const AlignLeft = createLucideIcon("align-left", __iconNode$1j);
|
|
2707
|
+
|
|
2708
|
+
/**
|
|
2709
|
+
* @license lucide-react v0.539.0 - ISC
|
|
2710
|
+
*
|
|
2711
|
+
* This source code is licensed under the ISC license.
|
|
2712
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2713
|
+
*/
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
const __iconNode$1i = [
|
|
2702
2717
|
["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
|
|
2703
2718
|
["path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", key: "1s80jp" }],
|
|
2704
2719
|
["path", { d: "M10 12h4", key: "a56b0p" }]
|
|
2705
2720
|
];
|
|
2706
|
-
const Archive = createLucideIcon("archive", __iconNode$
|
|
2721
|
+
const Archive = createLucideIcon("archive", __iconNode$1i);
|
|
2707
2722
|
|
|
2708
2723
|
/**
|
|
2709
2724
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2713,11 +2728,11 @@ const Archive = createLucideIcon("archive", __iconNode$18);
|
|
|
2713
2728
|
*/
|
|
2714
2729
|
|
|
2715
2730
|
|
|
2716
|
-
const __iconNode$
|
|
2731
|
+
const __iconNode$1h = [
|
|
2717
2732
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
2718
2733
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
2719
2734
|
];
|
|
2720
|
-
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$
|
|
2735
|
+
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$1h);
|
|
2721
2736
|
|
|
2722
2737
|
/**
|
|
2723
2738
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2727,11 +2742,11 @@ const ArrowLeft = createLucideIcon("arrow-left", __iconNode$17);
|
|
|
2727
2742
|
*/
|
|
2728
2743
|
|
|
2729
2744
|
|
|
2730
|
-
const __iconNode$
|
|
2745
|
+
const __iconNode$1g = [
|
|
2731
2746
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
2732
2747
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
2733
2748
|
];
|
|
2734
|
-
const ArrowRight = createLucideIcon("arrow-right", __iconNode$
|
|
2749
|
+
const ArrowRight = createLucideIcon("arrow-right", __iconNode$1g);
|
|
2735
2750
|
|
|
2736
2751
|
/**
|
|
2737
2752
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2741,11 +2756,11 @@ const ArrowRight = createLucideIcon("arrow-right", __iconNode$16);
|
|
|
2741
2756
|
*/
|
|
2742
2757
|
|
|
2743
2758
|
|
|
2744
|
-
const __iconNode$
|
|
2759
|
+
const __iconNode$1f = [
|
|
2745
2760
|
["path", { d: "M4.929 4.929 19.07 19.071", key: "196cmz" }],
|
|
2746
2761
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
|
|
2747
2762
|
];
|
|
2748
|
-
const Ban = createLucideIcon("ban", __iconNode$
|
|
2763
|
+
const Ban = createLucideIcon("ban", __iconNode$1f);
|
|
2749
2764
|
|
|
2750
2765
|
/**
|
|
2751
2766
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2755,7 +2770,7 @@ const Ban = createLucideIcon("ban", __iconNode$15);
|
|
|
2755
2770
|
*/
|
|
2756
2771
|
|
|
2757
2772
|
|
|
2758
|
-
const __iconNode$
|
|
2773
|
+
const __iconNode$1e = [
|
|
2759
2774
|
["path", { d: "M10.268 21a2 2 0 0 0 3.464 0", key: "vwvbt9" }],
|
|
2760
2775
|
[
|
|
2761
2776
|
"path",
|
|
@@ -2766,7 +2781,7 @@ const __iconNode$14 = [
|
|
|
2766
2781
|
],
|
|
2767
2782
|
["circle", { cx: "18", cy: "8", r: "3", key: "1g0gzu" }]
|
|
2768
2783
|
];
|
|
2769
|
-
const BellDot = createLucideIcon("bell-dot", __iconNode$
|
|
2784
|
+
const BellDot = createLucideIcon("bell-dot", __iconNode$1e);
|
|
2770
2785
|
|
|
2771
2786
|
/**
|
|
2772
2787
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2776,7 +2791,7 @@ const BellDot = createLucideIcon("bell-dot", __iconNode$14);
|
|
|
2776
2791
|
*/
|
|
2777
2792
|
|
|
2778
2793
|
|
|
2779
|
-
const __iconNode$
|
|
2794
|
+
const __iconNode$1d = [
|
|
2780
2795
|
["path", { d: "M10.268 21a2 2 0 0 0 3.464 0", key: "vwvbt9" }],
|
|
2781
2796
|
[
|
|
2782
2797
|
"path",
|
|
@@ -2786,7 +2801,7 @@ const __iconNode$13 = [
|
|
|
2786
2801
|
}
|
|
2787
2802
|
]
|
|
2788
2803
|
];
|
|
2789
|
-
const Bell = createLucideIcon("bell", __iconNode$
|
|
2804
|
+
const Bell = createLucideIcon("bell", __iconNode$1d);
|
|
2790
2805
|
|
|
2791
2806
|
/**
|
|
2792
2807
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2796,13 +2811,13 @@ const Bell = createLucideIcon("bell", __iconNode$13);
|
|
|
2796
2811
|
*/
|
|
2797
2812
|
|
|
2798
2813
|
|
|
2799
|
-
const __iconNode$
|
|
2814
|
+
const __iconNode$1c = [
|
|
2800
2815
|
[
|
|
2801
2816
|
"path",
|
|
2802
2817
|
{ d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8", key: "mg9rjx" }
|
|
2803
2818
|
]
|
|
2804
2819
|
];
|
|
2805
|
-
const Bold$1 = createLucideIcon("bold", __iconNode$
|
|
2820
|
+
const Bold$1 = createLucideIcon("bold", __iconNode$1c);
|
|
2806
2821
|
|
|
2807
2822
|
/**
|
|
2808
2823
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2812,7 +2827,7 @@ const Bold$1 = createLucideIcon("bold", __iconNode$12);
|
|
|
2812
2827
|
*/
|
|
2813
2828
|
|
|
2814
2829
|
|
|
2815
|
-
const __iconNode$
|
|
2830
|
+
const __iconNode$1b = [
|
|
2816
2831
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
2817
2832
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
2818
2833
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
@@ -2824,7 +2839,7 @@ const __iconNode$11 = [
|
|
|
2824
2839
|
["path", { d: "M12 18h.01", key: "mhygvu" }],
|
|
2825
2840
|
["path", { d: "M16 18h.01", key: "kzsmim" }]
|
|
2826
2841
|
];
|
|
2827
|
-
const CalendarDays = createLucideIcon("calendar-days", __iconNode$
|
|
2842
|
+
const CalendarDays = createLucideIcon("calendar-days", __iconNode$1b);
|
|
2828
2843
|
|
|
2829
2844
|
/**
|
|
2830
2845
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2834,13 +2849,13 @@ const CalendarDays = createLucideIcon("calendar-days", __iconNode$11);
|
|
|
2834
2849
|
*/
|
|
2835
2850
|
|
|
2836
2851
|
|
|
2837
|
-
const __iconNode$
|
|
2852
|
+
const __iconNode$1a = [
|
|
2838
2853
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
2839
2854
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
2840
2855
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
2841
2856
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
2842
2857
|
];
|
|
2843
|
-
const Calendar$1 = createLucideIcon("calendar", __iconNode$
|
|
2858
|
+
const Calendar$1 = createLucideIcon("calendar", __iconNode$1a);
|
|
2844
2859
|
|
|
2845
2860
|
/**
|
|
2846
2861
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2850,11 +2865,11 @@ const Calendar$1 = createLucideIcon("calendar", __iconNode$10);
|
|
|
2850
2865
|
*/
|
|
2851
2866
|
|
|
2852
2867
|
|
|
2853
|
-
const __iconNode
|
|
2868
|
+
const __iconNode$19 = [
|
|
2854
2869
|
["path", { d: "M18 6 7 17l-5-5", key: "116fxf" }],
|
|
2855
2870
|
["path", { d: "m22 10-7.5 7.5L13 16", key: "ke71qq" }]
|
|
2856
2871
|
];
|
|
2857
|
-
const CheckCheck = createLucideIcon("check-check", __iconNode
|
|
2872
|
+
const CheckCheck = createLucideIcon("check-check", __iconNode$19);
|
|
2858
2873
|
|
|
2859
2874
|
/**
|
|
2860
2875
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2864,8 +2879,8 @@ const CheckCheck = createLucideIcon("check-check", __iconNode$$);
|
|
|
2864
2879
|
*/
|
|
2865
2880
|
|
|
2866
2881
|
|
|
2867
|
-
const __iconNode$
|
|
2868
|
-
const Check = createLucideIcon("check", __iconNode$
|
|
2882
|
+
const __iconNode$18 = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
2883
|
+
const Check = createLucideIcon("check", __iconNode$18);
|
|
2869
2884
|
|
|
2870
2885
|
/**
|
|
2871
2886
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2875,8 +2890,8 @@ const Check = createLucideIcon("check", __iconNode$_);
|
|
|
2875
2890
|
*/
|
|
2876
2891
|
|
|
2877
2892
|
|
|
2878
|
-
const __iconNode$
|
|
2879
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
2893
|
+
const __iconNode$17 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
2894
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$17);
|
|
2880
2895
|
|
|
2881
2896
|
/**
|
|
2882
2897
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2886,8 +2901,8 @@ const ChevronDown = createLucideIcon("chevron-down", __iconNode$Z);
|
|
|
2886
2901
|
*/
|
|
2887
2902
|
|
|
2888
2903
|
|
|
2889
|
-
const __iconNode$
|
|
2890
|
-
const ChevronLeft = createLucideIcon("chevron-left", __iconNode$
|
|
2904
|
+
const __iconNode$16 = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
|
|
2905
|
+
const ChevronLeft = createLucideIcon("chevron-left", __iconNode$16);
|
|
2891
2906
|
|
|
2892
2907
|
/**
|
|
2893
2908
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2897,8 +2912,8 @@ const ChevronLeft = createLucideIcon("chevron-left", __iconNode$Y);
|
|
|
2897
2912
|
*/
|
|
2898
2913
|
|
|
2899
2914
|
|
|
2900
|
-
const __iconNode$
|
|
2901
|
-
const ChevronRight = createLucideIcon("chevron-right", __iconNode$
|
|
2915
|
+
const __iconNode$15 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
2916
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode$15);
|
|
2902
2917
|
|
|
2903
2918
|
/**
|
|
2904
2919
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2908,8 +2923,8 @@ const ChevronRight = createLucideIcon("chevron-right", __iconNode$X);
|
|
|
2908
2923
|
*/
|
|
2909
2924
|
|
|
2910
2925
|
|
|
2911
|
-
const __iconNode$
|
|
2912
|
-
const ChevronUp = createLucideIcon("chevron-up", __iconNode$
|
|
2926
|
+
const __iconNode$14 = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
|
|
2927
|
+
const ChevronUp = createLucideIcon("chevron-up", __iconNode$14);
|
|
2913
2928
|
|
|
2914
2929
|
/**
|
|
2915
2930
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2919,11 +2934,11 @@ const ChevronUp = createLucideIcon("chevron-up", __iconNode$W);
|
|
|
2919
2934
|
*/
|
|
2920
2935
|
|
|
2921
2936
|
|
|
2922
|
-
const __iconNode$
|
|
2937
|
+
const __iconNode$13 = [
|
|
2923
2938
|
["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
|
|
2924
2939
|
["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
|
|
2925
2940
|
];
|
|
2926
|
-
const ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$
|
|
2941
|
+
const ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$13);
|
|
2927
2942
|
|
|
2928
2943
|
/**
|
|
2929
2944
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2933,11 +2948,11 @@ const ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$V);
|
|
|
2933
2948
|
*/
|
|
2934
2949
|
|
|
2935
2950
|
|
|
2936
|
-
const __iconNode$
|
|
2951
|
+
const __iconNode$12 = [
|
|
2937
2952
|
["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
|
|
2938
2953
|
["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
|
|
2939
2954
|
];
|
|
2940
|
-
const ChevronsRight = createLucideIcon("chevrons-right", __iconNode$
|
|
2955
|
+
const ChevronsRight = createLucideIcon("chevrons-right", __iconNode$12);
|
|
2941
2956
|
|
|
2942
2957
|
/**
|
|
2943
2958
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2947,12 +2962,12 @@ const ChevronsRight = createLucideIcon("chevrons-right", __iconNode$U);
|
|
|
2947
2962
|
*/
|
|
2948
2963
|
|
|
2949
2964
|
|
|
2950
|
-
const __iconNode$
|
|
2965
|
+
const __iconNode$11 = [
|
|
2951
2966
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2952
2967
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
2953
2968
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
2954
2969
|
];
|
|
2955
|
-
const CircleAlert = createLucideIcon("circle-alert", __iconNode$
|
|
2970
|
+
const CircleAlert = createLucideIcon("circle-alert", __iconNode$11);
|
|
2956
2971
|
|
|
2957
2972
|
/**
|
|
2958
2973
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2962,11 +2977,11 @@ const CircleAlert = createLucideIcon("circle-alert", __iconNode$T);
|
|
|
2962
2977
|
*/
|
|
2963
2978
|
|
|
2964
2979
|
|
|
2965
|
-
const __iconNode$
|
|
2980
|
+
const __iconNode$10 = [
|
|
2966
2981
|
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
2967
2982
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
2968
2983
|
];
|
|
2969
|
-
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$
|
|
2984
|
+
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$10);
|
|
2970
2985
|
|
|
2971
2986
|
/**
|
|
2972
2987
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2976,11 +2991,11 @@ const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$S);
|
|
|
2976
2991
|
*/
|
|
2977
2992
|
|
|
2978
2993
|
|
|
2979
|
-
const __iconNode
|
|
2994
|
+
const __iconNode$$ = [
|
|
2980
2995
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2981
2996
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
2982
2997
|
];
|
|
2983
|
-
const CircleCheck = createLucideIcon("circle-check", __iconNode
|
|
2998
|
+
const CircleCheck = createLucideIcon("circle-check", __iconNode$$);
|
|
2984
2999
|
|
|
2985
3000
|
/**
|
|
2986
3001
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -2990,12 +3005,40 @@ const CircleCheck = createLucideIcon("circle-check", __iconNode$R);
|
|
|
2990
3005
|
*/
|
|
2991
3006
|
|
|
2992
3007
|
|
|
2993
|
-
const __iconNode$
|
|
3008
|
+
const __iconNode$_ = [
|
|
3009
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
3010
|
+
["path", { d: "m16 10-4 4-4-4", key: "894hmk" }]
|
|
3011
|
+
];
|
|
3012
|
+
const CircleChevronDown = createLucideIcon("circle-chevron-down", __iconNode$_);
|
|
3013
|
+
|
|
3014
|
+
/**
|
|
3015
|
+
* @license lucide-react v0.539.0 - ISC
|
|
3016
|
+
*
|
|
3017
|
+
* This source code is licensed under the ISC license.
|
|
3018
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3019
|
+
*/
|
|
3020
|
+
|
|
3021
|
+
|
|
3022
|
+
const __iconNode$Z = [
|
|
3023
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
3024
|
+
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }]
|
|
3025
|
+
];
|
|
3026
|
+
const CircleDot = createLucideIcon("circle-dot", __iconNode$Z);
|
|
3027
|
+
|
|
3028
|
+
/**
|
|
3029
|
+
* @license lucide-react v0.539.0 - ISC
|
|
3030
|
+
*
|
|
3031
|
+
* This source code is licensed under the ISC license.
|
|
3032
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3033
|
+
*/
|
|
3034
|
+
|
|
3035
|
+
|
|
3036
|
+
const __iconNode$Y = [
|
|
2994
3037
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2995
3038
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
2996
3039
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
2997
3040
|
];
|
|
2998
|
-
const CircleX = createLucideIcon("circle-x", __iconNode$
|
|
3041
|
+
const CircleX = createLucideIcon("circle-x", __iconNode$Y);
|
|
2999
3042
|
|
|
3000
3043
|
/**
|
|
3001
3044
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3005,8 +3048,8 @@ const CircleX = createLucideIcon("circle-x", __iconNode$Q);
|
|
|
3005
3048
|
*/
|
|
3006
3049
|
|
|
3007
3050
|
|
|
3008
|
-
const __iconNode$
|
|
3009
|
-
const Circle = createLucideIcon("circle", __iconNode$
|
|
3051
|
+
const __iconNode$X = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
|
|
3052
|
+
const Circle = createLucideIcon("circle", __iconNode$X);
|
|
3010
3053
|
|
|
3011
3054
|
/**
|
|
3012
3055
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3016,11 +3059,11 @@ const Circle = createLucideIcon("circle", __iconNode$P);
|
|
|
3016
3059
|
*/
|
|
3017
3060
|
|
|
3018
3061
|
|
|
3019
|
-
const __iconNode$
|
|
3062
|
+
const __iconNode$W = [
|
|
3020
3063
|
["path", { d: "M12 6v6l4 2", key: "mmk7yg" }],
|
|
3021
3064
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
|
|
3022
3065
|
];
|
|
3023
|
-
const Clock = createLucideIcon("clock", __iconNode$
|
|
3066
|
+
const Clock = createLucideIcon("clock", __iconNode$W);
|
|
3024
3067
|
|
|
3025
3068
|
/**
|
|
3026
3069
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3030,11 +3073,11 @@ const Clock = createLucideIcon("clock", __iconNode$O);
|
|
|
3030
3073
|
*/
|
|
3031
3074
|
|
|
3032
3075
|
|
|
3033
|
-
const __iconNode$
|
|
3076
|
+
const __iconNode$V = [
|
|
3034
3077
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
3035
3078
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
3036
3079
|
];
|
|
3037
|
-
const Copy = createLucideIcon("copy", __iconNode$
|
|
3080
|
+
const Copy = createLucideIcon("copy", __iconNode$V);
|
|
3038
3081
|
|
|
3039
3082
|
/**
|
|
3040
3083
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3044,11 +3087,11 @@ const Copy = createLucideIcon("copy", __iconNode$N);
|
|
|
3044
3087
|
*/
|
|
3045
3088
|
|
|
3046
3089
|
|
|
3047
|
-
const __iconNode$
|
|
3090
|
+
const __iconNode$U = [
|
|
3048
3091
|
["path", { d: "M6 2v14a2 2 0 0 0 2 2h14", key: "ron5a4" }],
|
|
3049
3092
|
["path", { d: "M18 22V8a2 2 0 0 0-2-2H2", key: "7s9ehn" }]
|
|
3050
3093
|
];
|
|
3051
|
-
const Crop = createLucideIcon("crop", __iconNode$
|
|
3094
|
+
const Crop = createLucideIcon("crop", __iconNode$U);
|
|
3052
3095
|
|
|
3053
3096
|
/**
|
|
3054
3097
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3058,12 +3101,12 @@ const Crop = createLucideIcon("crop", __iconNode$M);
|
|
|
3058
3101
|
*/
|
|
3059
3102
|
|
|
3060
3103
|
|
|
3061
|
-
const __iconNode$
|
|
3104
|
+
const __iconNode$T = [
|
|
3062
3105
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
3063
3106
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
3064
3107
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
3065
3108
|
];
|
|
3066
|
-
const Download = createLucideIcon("download", __iconNode$
|
|
3109
|
+
const Download = createLucideIcon("download", __iconNode$T);
|
|
3067
3110
|
|
|
3068
3111
|
/**
|
|
3069
3112
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3073,12 +3116,12 @@ const Download = createLucideIcon("download", __iconNode$L);
|
|
|
3073
3116
|
*/
|
|
3074
3117
|
|
|
3075
3118
|
|
|
3076
|
-
const __iconNode$
|
|
3119
|
+
const __iconNode$S = [
|
|
3077
3120
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
3078
3121
|
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
|
3079
3122
|
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
3080
3123
|
];
|
|
3081
|
-
const EllipsisVertical = createLucideIcon("ellipsis-vertical", __iconNode$
|
|
3124
|
+
const EllipsisVertical = createLucideIcon("ellipsis-vertical", __iconNode$S);
|
|
3082
3125
|
|
|
3083
3126
|
/**
|
|
3084
3127
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3088,12 +3131,12 @@ const EllipsisVertical = createLucideIcon("ellipsis-vertical", __iconNode$K);
|
|
|
3088
3131
|
*/
|
|
3089
3132
|
|
|
3090
3133
|
|
|
3091
|
-
const __iconNode$
|
|
3134
|
+
const __iconNode$R = [
|
|
3092
3135
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
3093
3136
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
3094
3137
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
3095
3138
|
];
|
|
3096
|
-
const Ellipsis = createLucideIcon("ellipsis", __iconNode$
|
|
3139
|
+
const Ellipsis = createLucideIcon("ellipsis", __iconNode$R);
|
|
3097
3140
|
|
|
3098
3141
|
/**
|
|
3099
3142
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3103,12 +3146,12 @@ const Ellipsis = createLucideIcon("ellipsis", __iconNode$J);
|
|
|
3103
3146
|
*/
|
|
3104
3147
|
|
|
3105
3148
|
|
|
3106
|
-
const __iconNode$
|
|
3149
|
+
const __iconNode$Q = [
|
|
3107
3150
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
3108
3151
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
3109
3152
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
3110
3153
|
];
|
|
3111
|
-
const ExternalLink = createLucideIcon("external-link", __iconNode$
|
|
3154
|
+
const ExternalLink = createLucideIcon("external-link", __iconNode$Q);
|
|
3112
3155
|
|
|
3113
3156
|
/**
|
|
3114
3157
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3118,7 +3161,7 @@ const ExternalLink = createLucideIcon("external-link", __iconNode$I);
|
|
|
3118
3161
|
*/
|
|
3119
3162
|
|
|
3120
3163
|
|
|
3121
|
-
const __iconNode$
|
|
3164
|
+
const __iconNode$P = [
|
|
3122
3165
|
[
|
|
3123
3166
|
"path",
|
|
3124
3167
|
{
|
|
@@ -3128,7 +3171,7 @@ const __iconNode$H = [
|
|
|
3128
3171
|
],
|
|
3129
3172
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
3130
3173
|
];
|
|
3131
|
-
const Eye = createLucideIcon("eye", __iconNode$
|
|
3174
|
+
const Eye = createLucideIcon("eye", __iconNode$P);
|
|
3132
3175
|
|
|
3133
3176
|
/**
|
|
3134
3177
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3138,13 +3181,13 @@ const Eye = createLucideIcon("eye", __iconNode$H);
|
|
|
3138
3181
|
*/
|
|
3139
3182
|
|
|
3140
3183
|
|
|
3141
|
-
const __iconNode$
|
|
3184
|
+
const __iconNode$O = [
|
|
3142
3185
|
[
|
|
3143
3186
|
"path",
|
|
3144
3187
|
{ d: "M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z", key: "1jg4f8" }
|
|
3145
3188
|
]
|
|
3146
3189
|
];
|
|
3147
|
-
const Facebook = createLucideIcon("facebook", __iconNode$
|
|
3190
|
+
const Facebook = createLucideIcon("facebook", __iconNode$O);
|
|
3148
3191
|
|
|
3149
3192
|
/**
|
|
3150
3193
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3154,7 +3197,7 @@ const Facebook = createLucideIcon("facebook", __iconNode$G);
|
|
|
3154
3197
|
*/
|
|
3155
3198
|
|
|
3156
3199
|
|
|
3157
|
-
const __iconNode$
|
|
3200
|
+
const __iconNode$N = [
|
|
3158
3201
|
["path", { d: "M12 22h6a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3.072", key: "n6s66f" }],
|
|
3159
3202
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
3160
3203
|
[
|
|
@@ -3166,7 +3209,7 @@ const __iconNode$F = [
|
|
|
3166
3209
|
],
|
|
3167
3210
|
["circle", { cx: "5", cy: "14", r: "3", key: "ufru5t" }]
|
|
3168
3211
|
];
|
|
3169
|
-
const FileBadge = createLucideIcon("file-badge", __iconNode$
|
|
3212
|
+
const FileBadge = createLucideIcon("file-badge", __iconNode$N);
|
|
3170
3213
|
|
|
3171
3214
|
/**
|
|
3172
3215
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3176,14 +3219,14 @@ const FileBadge = createLucideIcon("file-badge", __iconNode$F);
|
|
|
3176
3219
|
*/
|
|
3177
3220
|
|
|
3178
3221
|
|
|
3179
|
-
const __iconNode$
|
|
3222
|
+
const __iconNode$M = [
|
|
3180
3223
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
3181
3224
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
3182
3225
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
3183
3226
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
3184
3227
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
3185
3228
|
];
|
|
3186
|
-
const FileText = createLucideIcon("file-text", __iconNode$
|
|
3229
|
+
const FileText = createLucideIcon("file-text", __iconNode$M);
|
|
3187
3230
|
|
|
3188
3231
|
/**
|
|
3189
3232
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3193,7 +3236,7 @@ const FileText = createLucideIcon("file-text", __iconNode$E);
|
|
|
3193
3236
|
*/
|
|
3194
3237
|
|
|
3195
3238
|
|
|
3196
|
-
const __iconNode$
|
|
3239
|
+
const __iconNode$L = [
|
|
3197
3240
|
[
|
|
3198
3241
|
"path",
|
|
3199
3242
|
{
|
|
@@ -3202,7 +3245,7 @@ const __iconNode$D = [
|
|
|
3202
3245
|
}
|
|
3203
3246
|
]
|
|
3204
3247
|
];
|
|
3205
|
-
const Funnel = createLucideIcon("funnel", __iconNode$
|
|
3248
|
+
const Funnel = createLucideIcon("funnel", __iconNode$L);
|
|
3206
3249
|
|
|
3207
3250
|
/**
|
|
3208
3251
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3212,7 +3255,7 @@ const Funnel = createLucideIcon("funnel", __iconNode$D);
|
|
|
3212
3255
|
*/
|
|
3213
3256
|
|
|
3214
3257
|
|
|
3215
|
-
const __iconNode$
|
|
3258
|
+
const __iconNode$K = [
|
|
3216
3259
|
["circle", { cx: "12", cy: "9", r: "1", key: "124mty" }],
|
|
3217
3260
|
["circle", { cx: "19", cy: "9", r: "1", key: "1ruzo2" }],
|
|
3218
3261
|
["circle", { cx: "5", cy: "9", r: "1", key: "1a8b28" }],
|
|
@@ -3220,7 +3263,7 @@ const __iconNode$C = [
|
|
|
3220
3263
|
["circle", { cx: "19", cy: "15", r: "1", key: "1a92ep" }],
|
|
3221
3264
|
["circle", { cx: "5", cy: "15", r: "1", key: "5r1jwy" }]
|
|
3222
3265
|
];
|
|
3223
|
-
const GripHorizontal = createLucideIcon("grip-horizontal", __iconNode$
|
|
3266
|
+
const GripHorizontal = createLucideIcon("grip-horizontal", __iconNode$K);
|
|
3224
3267
|
|
|
3225
3268
|
/**
|
|
3226
3269
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3230,7 +3273,7 @@ const GripHorizontal = createLucideIcon("grip-horizontal", __iconNode$C);
|
|
|
3230
3273
|
*/
|
|
3231
3274
|
|
|
3232
3275
|
|
|
3233
|
-
const __iconNode$
|
|
3276
|
+
const __iconNode$J = [
|
|
3234
3277
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
3235
3278
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
3236
3279
|
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
@@ -3238,7 +3281,7 @@ const __iconNode$B = [
|
|
|
3238
3281
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
3239
3282
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
3240
3283
|
];
|
|
3241
|
-
const GripVertical = createLucideIcon("grip-vertical", __iconNode$
|
|
3284
|
+
const GripVertical = createLucideIcon("grip-vertical", __iconNode$J);
|
|
3242
3285
|
|
|
3243
3286
|
/**
|
|
3244
3287
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3248,13 +3291,29 @@ const GripVertical = createLucideIcon("grip-vertical", __iconNode$B);
|
|
|
3248
3291
|
*/
|
|
3249
3292
|
|
|
3250
3293
|
|
|
3251
|
-
const __iconNode$
|
|
3294
|
+
const __iconNode$I = [
|
|
3295
|
+
["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
|
|
3296
|
+
["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
|
|
3297
|
+
["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
|
|
3298
|
+
["line", { x1: "16", x2: "14", y1: "3", y2: "21", key: "weycgp" }]
|
|
3299
|
+
];
|
|
3300
|
+
const Hash = createLucideIcon("hash", __iconNode$I);
|
|
3301
|
+
|
|
3302
|
+
/**
|
|
3303
|
+
* @license lucide-react v0.539.0 - ISC
|
|
3304
|
+
*
|
|
3305
|
+
* This source code is licensed under the ISC license.
|
|
3306
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3307
|
+
*/
|
|
3308
|
+
|
|
3309
|
+
|
|
3310
|
+
const __iconNode$H = [
|
|
3252
3311
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
3253
3312
|
["path", { d: "M4 18V6", key: "1rz3zl" }],
|
|
3254
3313
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
3255
3314
|
["path", { d: "m17 12 3-2v8", key: "1hhhft" }]
|
|
3256
3315
|
];
|
|
3257
|
-
const Heading1 = createLucideIcon("heading-1", __iconNode$
|
|
3316
|
+
const Heading1 = createLucideIcon("heading-1", __iconNode$H);
|
|
3258
3317
|
|
|
3259
3318
|
/**
|
|
3260
3319
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3264,13 +3323,13 @@ const Heading1 = createLucideIcon("heading-1", __iconNode$A);
|
|
|
3264
3323
|
*/
|
|
3265
3324
|
|
|
3266
3325
|
|
|
3267
|
-
const __iconNode$
|
|
3326
|
+
const __iconNode$G = [
|
|
3268
3327
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
3269
3328
|
["path", { d: "M4 18V6", key: "1rz3zl" }],
|
|
3270
3329
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
3271
3330
|
["path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1", key: "9jr5yi" }]
|
|
3272
3331
|
];
|
|
3273
|
-
const Heading2 = createLucideIcon("heading-2", __iconNode$
|
|
3332
|
+
const Heading2 = createLucideIcon("heading-2", __iconNode$G);
|
|
3274
3333
|
|
|
3275
3334
|
/**
|
|
3276
3335
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3280,14 +3339,14 @@ const Heading2 = createLucideIcon("heading-2", __iconNode$z);
|
|
|
3280
3339
|
*/
|
|
3281
3340
|
|
|
3282
3341
|
|
|
3283
|
-
const __iconNode$
|
|
3342
|
+
const __iconNode$F = [
|
|
3284
3343
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
3285
3344
|
["path", { d: "M4 18V6", key: "1rz3zl" }],
|
|
3286
3345
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
3287
3346
|
["path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2", key: "68ncm8" }],
|
|
3288
3347
|
["path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2", key: "1ejuhz" }]
|
|
3289
3348
|
];
|
|
3290
|
-
const Heading3 = createLucideIcon("heading-3", __iconNode$
|
|
3349
|
+
const Heading3 = createLucideIcon("heading-3", __iconNode$F);
|
|
3291
3350
|
|
|
3292
3351
|
/**
|
|
3293
3352
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3297,12 +3356,12 @@ const Heading3 = createLucideIcon("heading-3", __iconNode$y);
|
|
|
3297
3356
|
*/
|
|
3298
3357
|
|
|
3299
3358
|
|
|
3300
|
-
const __iconNode$
|
|
3359
|
+
const __iconNode$E = [
|
|
3301
3360
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
3302
3361
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
3303
3362
|
["path", { d: "M12 7v5l4 2", key: "1fdv2h" }]
|
|
3304
3363
|
];
|
|
3305
|
-
const History = createLucideIcon("history", __iconNode$
|
|
3364
|
+
const History = createLucideIcon("history", __iconNode$E);
|
|
3306
3365
|
|
|
3307
3366
|
/**
|
|
3308
3367
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3312,12 +3371,12 @@ const History = createLucideIcon("history", __iconNode$x);
|
|
|
3312
3371
|
*/
|
|
3313
3372
|
|
|
3314
3373
|
|
|
3315
|
-
const __iconNode$
|
|
3374
|
+
const __iconNode$D = [
|
|
3316
3375
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
3317
3376
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
3318
3377
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
3319
3378
|
];
|
|
3320
|
-
const Image$1 = createLucideIcon("image", __iconNode$
|
|
3379
|
+
const Image$1 = createLucideIcon("image", __iconNode$D);
|
|
3321
3380
|
|
|
3322
3381
|
/**
|
|
3323
3382
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3327,12 +3386,12 @@ const Image$1 = createLucideIcon("image", __iconNode$w);
|
|
|
3327
3386
|
*/
|
|
3328
3387
|
|
|
3329
3388
|
|
|
3330
|
-
const __iconNode$
|
|
3389
|
+
const __iconNode$C = [
|
|
3331
3390
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
3332
3391
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
3333
3392
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
3334
3393
|
];
|
|
3335
|
-
const Info = createLucideIcon("info", __iconNode$
|
|
3394
|
+
const Info = createLucideIcon("info", __iconNode$C);
|
|
3336
3395
|
|
|
3337
3396
|
/**
|
|
3338
3397
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3342,12 +3401,12 @@ const Info = createLucideIcon("info", __iconNode$v);
|
|
|
3342
3401
|
*/
|
|
3343
3402
|
|
|
3344
3403
|
|
|
3345
|
-
const __iconNode$
|
|
3404
|
+
const __iconNode$B = [
|
|
3346
3405
|
["line", { x1: "19", x2: "10", y1: "4", y2: "4", key: "15jd3p" }],
|
|
3347
3406
|
["line", { x1: "14", x2: "5", y1: "20", y2: "20", key: "bu0au3" }],
|
|
3348
3407
|
["line", { x1: "15", x2: "9", y1: "4", y2: "20", key: "uljnxc" }]
|
|
3349
3408
|
];
|
|
3350
|
-
const Italic$1 = createLucideIcon("italic", __iconNode$
|
|
3409
|
+
const Italic$1 = createLucideIcon("italic", __iconNode$B);
|
|
3351
3410
|
|
|
3352
3411
|
/**
|
|
3353
3412
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3357,12 +3416,12 @@ const Italic$1 = createLucideIcon("italic", __iconNode$u);
|
|
|
3357
3416
|
*/
|
|
3358
3417
|
|
|
3359
3418
|
|
|
3360
|
-
const __iconNode$
|
|
3419
|
+
const __iconNode$A = [
|
|
3361
3420
|
["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
|
|
3362
3421
|
["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
|
|
3363
3422
|
["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
|
|
3364
3423
|
];
|
|
3365
|
-
const Link2 = createLucideIcon("link-2", __iconNode$
|
|
3424
|
+
const Link2 = createLucideIcon("link-2", __iconNode$A);
|
|
3366
3425
|
|
|
3367
3426
|
/**
|
|
3368
3427
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3372,7 +3431,24 @@ const Link2 = createLucideIcon("link-2", __iconNode$t);
|
|
|
3372
3431
|
*/
|
|
3373
3432
|
|
|
3374
3433
|
|
|
3375
|
-
const __iconNode$
|
|
3434
|
+
const __iconNode$z = [
|
|
3435
|
+
["path", { d: "m3 17 2 2 4-4", key: "1jhpwq" }],
|
|
3436
|
+
["path", { d: "m3 7 2 2 4-4", key: "1obspn" }],
|
|
3437
|
+
["path", { d: "M13 6h8", key: "15sg57" }],
|
|
3438
|
+
["path", { d: "M13 12h8", key: "h98zly" }],
|
|
3439
|
+
["path", { d: "M13 18h8", key: "oe0vm4" }]
|
|
3440
|
+
];
|
|
3441
|
+
const ListChecks = createLucideIcon("list-checks", __iconNode$z);
|
|
3442
|
+
|
|
3443
|
+
/**
|
|
3444
|
+
* @license lucide-react v0.539.0 - ISC
|
|
3445
|
+
*
|
|
3446
|
+
* This source code is licensed under the ISC license.
|
|
3447
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3448
|
+
*/
|
|
3449
|
+
|
|
3450
|
+
|
|
3451
|
+
const __iconNode$y = [
|
|
3376
3452
|
["path", { d: "M10 12h11", key: "6m4ad9" }],
|
|
3377
3453
|
["path", { d: "M10 18h11", key: "11hvi2" }],
|
|
3378
3454
|
["path", { d: "M10 6h11", key: "c7qv1k" }],
|
|
@@ -3380,7 +3456,7 @@ const __iconNode$s = [
|
|
|
3380
3456
|
["path", { d: "M4 6h1v4", key: "cnovpq" }],
|
|
3381
3457
|
["path", { d: "M6 18H4c0-1 2-2 2-3s-1-1.5-2-1", key: "m9a95d" }]
|
|
3382
3458
|
];
|
|
3383
|
-
const ListOrdered = createLucideIcon("list-ordered", __iconNode$
|
|
3459
|
+
const ListOrdered = createLucideIcon("list-ordered", __iconNode$y);
|
|
3384
3460
|
|
|
3385
3461
|
/**
|
|
3386
3462
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3390,7 +3466,7 @@ const ListOrdered = createLucideIcon("list-ordered", __iconNode$s);
|
|
|
3390
3466
|
*/
|
|
3391
3467
|
|
|
3392
3468
|
|
|
3393
|
-
const __iconNode$
|
|
3469
|
+
const __iconNode$x = [
|
|
3394
3470
|
["path", { d: "M3 12h.01", key: "nlz23k" }],
|
|
3395
3471
|
["path", { d: "M3 18h.01", key: "1tta3j" }],
|
|
3396
3472
|
["path", { d: "M3 6h.01", key: "1rqtza" }],
|
|
@@ -3398,7 +3474,7 @@ const __iconNode$r = [
|
|
|
3398
3474
|
["path", { d: "M8 18h13", key: "1lx6n3" }],
|
|
3399
3475
|
["path", { d: "M8 6h13", key: "ik3vkj" }]
|
|
3400
3476
|
];
|
|
3401
|
-
const List = createLucideIcon("list", __iconNode$
|
|
3477
|
+
const List = createLucideIcon("list", __iconNode$x);
|
|
3402
3478
|
|
|
3403
3479
|
/**
|
|
3404
3480
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3408,8 +3484,8 @@ const List = createLucideIcon("list", __iconNode$r);
|
|
|
3408
3484
|
*/
|
|
3409
3485
|
|
|
3410
3486
|
|
|
3411
|
-
const __iconNode$
|
|
3412
|
-
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$
|
|
3487
|
+
const __iconNode$w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
3488
|
+
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$w);
|
|
3413
3489
|
|
|
3414
3490
|
/**
|
|
3415
3491
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3419,7 +3495,7 @@ const LoaderCircle = createLucideIcon("loader-circle", __iconNode$q);
|
|
|
3419
3495
|
*/
|
|
3420
3496
|
|
|
3421
3497
|
|
|
3422
|
-
const __iconNode$
|
|
3498
|
+
const __iconNode$v = [
|
|
3423
3499
|
["path", { d: "M12 2v4", key: "3427ic" }],
|
|
3424
3500
|
["path", { d: "m16.2 7.8 2.9-2.9", key: "r700ao" }],
|
|
3425
3501
|
["path", { d: "M18 12h4", key: "wj9ykh" }],
|
|
@@ -3429,7 +3505,7 @@ const __iconNode$p = [
|
|
|
3429
3505
|
["path", { d: "M2 12h4", key: "j09sii" }],
|
|
3430
3506
|
["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
|
|
3431
3507
|
];
|
|
3432
|
-
const Loader = createLucideIcon("loader", __iconNode$
|
|
3508
|
+
const Loader = createLucideIcon("loader", __iconNode$v);
|
|
3433
3509
|
|
|
3434
3510
|
/**
|
|
3435
3511
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3439,12 +3515,12 @@ const Loader = createLucideIcon("loader", __iconNode$p);
|
|
|
3439
3515
|
*/
|
|
3440
3516
|
|
|
3441
3517
|
|
|
3442
|
-
const __iconNode$
|
|
3518
|
+
const __iconNode$u = [
|
|
3443
3519
|
["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
|
|
3444
3520
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
3445
3521
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
|
|
3446
3522
|
];
|
|
3447
|
-
const LogOut = createLucideIcon("log-out", __iconNode$
|
|
3523
|
+
const LogOut = createLucideIcon("log-out", __iconNode$u);
|
|
3448
3524
|
|
|
3449
3525
|
/**
|
|
3450
3526
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3454,12 +3530,26 @@ const LogOut = createLucideIcon("log-out", __iconNode$o);
|
|
|
3454
3530
|
*/
|
|
3455
3531
|
|
|
3456
3532
|
|
|
3457
|
-
const __iconNode$
|
|
3533
|
+
const __iconNode$t = [
|
|
3534
|
+
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
3535
|
+
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
3536
|
+
];
|
|
3537
|
+
const Mail = createLucideIcon("mail", __iconNode$t);
|
|
3538
|
+
|
|
3539
|
+
/**
|
|
3540
|
+
* @license lucide-react v0.539.0 - ISC
|
|
3541
|
+
*
|
|
3542
|
+
* This source code is licensed under the ISC license.
|
|
3543
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3544
|
+
*/
|
|
3545
|
+
|
|
3546
|
+
|
|
3547
|
+
const __iconNode$s = [
|
|
3458
3548
|
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
3459
3549
|
["path", { d: "M4 18h16", key: "19g7jn" }],
|
|
3460
3550
|
["path", { d: "M4 6h16", key: "1o0s65" }]
|
|
3461
3551
|
];
|
|
3462
|
-
const Menu = createLucideIcon("menu", __iconNode$
|
|
3552
|
+
const Menu = createLucideIcon("menu", __iconNode$s);
|
|
3463
3553
|
|
|
3464
3554
|
/**
|
|
3465
3555
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3469,7 +3559,7 @@ const Menu = createLucideIcon("menu", __iconNode$n);
|
|
|
3469
3559
|
*/
|
|
3470
3560
|
|
|
3471
3561
|
|
|
3472
|
-
const __iconNode$
|
|
3562
|
+
const __iconNode$r = [
|
|
3473
3563
|
[
|
|
3474
3564
|
"path",
|
|
3475
3565
|
{
|
|
@@ -3478,7 +3568,7 @@ const __iconNode$m = [
|
|
|
3478
3568
|
}
|
|
3479
3569
|
]
|
|
3480
3570
|
];
|
|
3481
|
-
const Moon = createLucideIcon("moon", __iconNode$
|
|
3571
|
+
const Moon = createLucideIcon("moon", __iconNode$r);
|
|
3482
3572
|
|
|
3483
3573
|
/**
|
|
3484
3574
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3488,7 +3578,7 @@ const Moon = createLucideIcon("moon", __iconNode$m);
|
|
|
3488
3578
|
*/
|
|
3489
3579
|
|
|
3490
3580
|
|
|
3491
|
-
const __iconNode$
|
|
3581
|
+
const __iconNode$q = [
|
|
3492
3582
|
[
|
|
3493
3583
|
"path",
|
|
3494
3584
|
{
|
|
@@ -3501,7 +3591,7 @@ const __iconNode$l = [
|
|
|
3501
3591
|
["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }],
|
|
3502
3592
|
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }]
|
|
3503
3593
|
];
|
|
3504
|
-
const Palette = createLucideIcon("palette", __iconNode$
|
|
3594
|
+
const Palette = createLucideIcon("palette", __iconNode$q);
|
|
3505
3595
|
|
|
3506
3596
|
/**
|
|
3507
3597
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3511,12 +3601,12 @@ const Palette = createLucideIcon("palette", __iconNode$l);
|
|
|
3511
3601
|
*/
|
|
3512
3602
|
|
|
3513
3603
|
|
|
3514
|
-
const __iconNode$
|
|
3604
|
+
const __iconNode$p = [
|
|
3515
3605
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3516
3606
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
3517
3607
|
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
3518
3608
|
];
|
|
3519
|
-
const PanelLeftClose = createLucideIcon("panel-left-close", __iconNode$
|
|
3609
|
+
const PanelLeftClose = createLucideIcon("panel-left-close", __iconNode$p);
|
|
3520
3610
|
|
|
3521
3611
|
/**
|
|
3522
3612
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3526,7 +3616,26 @@ const PanelLeftClose = createLucideIcon("panel-left-close", __iconNode$k);
|
|
|
3526
3616
|
*/
|
|
3527
3617
|
|
|
3528
3618
|
|
|
3529
|
-
const __iconNode$
|
|
3619
|
+
const __iconNode$o = [
|
|
3620
|
+
[
|
|
3621
|
+
"path",
|
|
3622
|
+
{
|
|
3623
|
+
d: "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",
|
|
3624
|
+
key: "1miecu"
|
|
3625
|
+
}
|
|
3626
|
+
]
|
|
3627
|
+
];
|
|
3628
|
+
const Paperclip = createLucideIcon("paperclip", __iconNode$o);
|
|
3629
|
+
|
|
3630
|
+
/**
|
|
3631
|
+
* @license lucide-react v0.539.0 - ISC
|
|
3632
|
+
*
|
|
3633
|
+
* This source code is licensed under the ISC license.
|
|
3634
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3635
|
+
*/
|
|
3636
|
+
|
|
3637
|
+
|
|
3638
|
+
const __iconNode$n = [
|
|
3530
3639
|
[
|
|
3531
3640
|
"path",
|
|
3532
3641
|
{
|
|
@@ -3536,7 +3645,7 @@ const __iconNode$j = [
|
|
|
3536
3645
|
],
|
|
3537
3646
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
3538
3647
|
];
|
|
3539
|
-
const Pencil = createLucideIcon("pencil", __iconNode$
|
|
3648
|
+
const Pencil = createLucideIcon("pencil", __iconNode$n);
|
|
3540
3649
|
|
|
3541
3650
|
/**
|
|
3542
3651
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3546,7 +3655,26 @@ const Pencil = createLucideIcon("pencil", __iconNode$j);
|
|
|
3546
3655
|
*/
|
|
3547
3656
|
|
|
3548
3657
|
|
|
3549
|
-
const __iconNode$
|
|
3658
|
+
const __iconNode$m = [
|
|
3659
|
+
[
|
|
3660
|
+
"path",
|
|
3661
|
+
{
|
|
3662
|
+
d: "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",
|
|
3663
|
+
key: "9njp5v"
|
|
3664
|
+
}
|
|
3665
|
+
]
|
|
3666
|
+
];
|
|
3667
|
+
const Phone = createLucideIcon("phone", __iconNode$m);
|
|
3668
|
+
|
|
3669
|
+
/**
|
|
3670
|
+
* @license lucide-react v0.539.0 - ISC
|
|
3671
|
+
*
|
|
3672
|
+
* This source code is licensed under the ISC license.
|
|
3673
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3674
|
+
*/
|
|
3675
|
+
|
|
3676
|
+
|
|
3677
|
+
const __iconNode$l = [
|
|
3550
3678
|
[
|
|
3551
3679
|
"path",
|
|
3552
3680
|
{
|
|
@@ -3555,7 +3683,7 @@ const __iconNode$i = [
|
|
|
3555
3683
|
}
|
|
3556
3684
|
]
|
|
3557
3685
|
];
|
|
3558
|
-
const Play = createLucideIcon("play", __iconNode$
|
|
3686
|
+
const Play = createLucideIcon("play", __iconNode$l);
|
|
3559
3687
|
|
|
3560
3688
|
/**
|
|
3561
3689
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3565,11 +3693,11 @@ const Play = createLucideIcon("play", __iconNode$i);
|
|
|
3565
3693
|
*/
|
|
3566
3694
|
|
|
3567
3695
|
|
|
3568
|
-
const __iconNode$
|
|
3696
|
+
const __iconNode$k = [
|
|
3569
3697
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
3570
3698
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
3571
3699
|
];
|
|
3572
|
-
const Plus = createLucideIcon("plus", __iconNode$
|
|
3700
|
+
const Plus = createLucideIcon("plus", __iconNode$k);
|
|
3573
3701
|
|
|
3574
3702
|
/**
|
|
3575
3703
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3579,10 +3707,10 @@ const Plus = createLucideIcon("plus", __iconNode$h);
|
|
|
3579
3707
|
*/
|
|
3580
3708
|
|
|
3581
3709
|
|
|
3582
|
-
const __iconNode$
|
|
3710
|
+
const __iconNode$j = [
|
|
3583
3711
|
["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }]
|
|
3584
3712
|
];
|
|
3585
|
-
const RectangleHorizontal = createLucideIcon("rectangle-horizontal", __iconNode$
|
|
3713
|
+
const RectangleHorizontal = createLucideIcon("rectangle-horizontal", __iconNode$j);
|
|
3586
3714
|
|
|
3587
3715
|
/**
|
|
3588
3716
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3592,11 +3720,11 @@ const RectangleHorizontal = createLucideIcon("rectangle-horizontal", __iconNode$
|
|
|
3592
3720
|
*/
|
|
3593
3721
|
|
|
3594
3722
|
|
|
3595
|
-
const __iconNode$
|
|
3723
|
+
const __iconNode$i = [
|
|
3596
3724
|
["path", { d: "M21 7v6h-6", key: "3ptur4" }],
|
|
3597
3725
|
["path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7", key: "1kgawr" }]
|
|
3598
3726
|
];
|
|
3599
|
-
const Redo = createLucideIcon("redo", __iconNode$
|
|
3727
|
+
const Redo = createLucideIcon("redo", __iconNode$i);
|
|
3600
3728
|
|
|
3601
3729
|
/**
|
|
3602
3730
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3606,13 +3734,13 @@ const Redo = createLucideIcon("redo", __iconNode$f);
|
|
|
3606
3734
|
*/
|
|
3607
3735
|
|
|
3608
3736
|
|
|
3609
|
-
const __iconNode$
|
|
3737
|
+
const __iconNode$h = [
|
|
3610
3738
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
3611
3739
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
3612
3740
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
3613
3741
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
3614
3742
|
];
|
|
3615
|
-
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$
|
|
3743
|
+
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$h);
|
|
3616
3744
|
|
|
3617
3745
|
/**
|
|
3618
3746
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3622,14 +3750,14 @@ const RefreshCw = createLucideIcon("refresh-cw", __iconNode$e);
|
|
|
3622
3750
|
*/
|
|
3623
3751
|
|
|
3624
3752
|
|
|
3625
|
-
const __iconNode$
|
|
3753
|
+
const __iconNode$g = [
|
|
3626
3754
|
["path", { d: "M4 7V4h16v3", key: "9msm58" }],
|
|
3627
3755
|
["path", { d: "M5 20h6", key: "1h6pxn" }],
|
|
3628
3756
|
["path", { d: "M13 4 8 20", key: "kqq6aj" }],
|
|
3629
3757
|
["path", { d: "m15 15 5 5", key: "me55sn" }],
|
|
3630
3758
|
["path", { d: "m20 15-5 5", key: "11p7ol" }]
|
|
3631
3759
|
];
|
|
3632
|
-
const RemoveFormatting = createLucideIcon("remove-formatting", __iconNode$
|
|
3760
|
+
const RemoveFormatting = createLucideIcon("remove-formatting", __iconNode$g);
|
|
3633
3761
|
|
|
3634
3762
|
/**
|
|
3635
3763
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3639,14 +3767,14 @@ const RemoveFormatting = createLucideIcon("remove-formatting", __iconNode$d);
|
|
|
3639
3767
|
*/
|
|
3640
3768
|
|
|
3641
3769
|
|
|
3642
|
-
const __iconNode$
|
|
3770
|
+
const __iconNode$f = [
|
|
3643
3771
|
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
3644
3772
|
["path", { d: "M8.12 8.12 12 12", key: "1alkpv" }],
|
|
3645
3773
|
["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
|
|
3646
3774
|
["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
|
|
3647
3775
|
["path", { d: "M14.8 14.8 20 20", key: "ptml3r" }]
|
|
3648
3776
|
];
|
|
3649
|
-
const Scissors = createLucideIcon("scissors", __iconNode$
|
|
3777
|
+
const Scissors = createLucideIcon("scissors", __iconNode$f);
|
|
3650
3778
|
|
|
3651
3779
|
/**
|
|
3652
3780
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3656,11 +3784,11 @@ const Scissors = createLucideIcon("scissors", __iconNode$c);
|
|
|
3656
3784
|
*/
|
|
3657
3785
|
|
|
3658
3786
|
|
|
3659
|
-
const __iconNode$
|
|
3787
|
+
const __iconNode$e = [
|
|
3660
3788
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
3661
3789
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
3662
3790
|
];
|
|
3663
|
-
const Search = createLucideIcon("search", __iconNode$
|
|
3791
|
+
const Search = createLucideIcon("search", __iconNode$e);
|
|
3664
3792
|
|
|
3665
3793
|
/**
|
|
3666
3794
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3670,14 +3798,14 @@ const Search = createLucideIcon("search", __iconNode$b);
|
|
|
3670
3798
|
*/
|
|
3671
3799
|
|
|
3672
3800
|
|
|
3673
|
-
const __iconNode$
|
|
3801
|
+
const __iconNode$d = [
|
|
3674
3802
|
["circle", { cx: "18", cy: "5", r: "3", key: "gq8acd" }],
|
|
3675
3803
|
["circle", { cx: "6", cy: "12", r: "3", key: "w7nqdw" }],
|
|
3676
3804
|
["circle", { cx: "18", cy: "19", r: "3", key: "1xt0gg" }],
|
|
3677
3805
|
["line", { x1: "8.59", x2: "15.42", y1: "13.51", y2: "17.49", key: "47mynk" }],
|
|
3678
3806
|
["line", { x1: "15.41", x2: "8.59", y1: "6.51", y2: "10.49", key: "1n3mei" }]
|
|
3679
3807
|
];
|
|
3680
|
-
const Share2 = createLucideIcon("share-2", __iconNode$
|
|
3808
|
+
const Share2 = createLucideIcon("share-2", __iconNode$d);
|
|
3681
3809
|
|
|
3682
3810
|
/**
|
|
3683
3811
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3687,10 +3815,27 @@ const Share2 = createLucideIcon("share-2", __iconNode$a);
|
|
|
3687
3815
|
*/
|
|
3688
3816
|
|
|
3689
3817
|
|
|
3690
|
-
const __iconNode$
|
|
3818
|
+
const __iconNode$c = [
|
|
3819
|
+
[
|
|
3820
|
+
"path",
|
|
3821
|
+
{ d: "M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344", key: "2acyp4" }
|
|
3822
|
+
],
|
|
3823
|
+
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
3824
|
+
];
|
|
3825
|
+
const SquareCheckBig = createLucideIcon("square-check-big", __iconNode$c);
|
|
3826
|
+
|
|
3827
|
+
/**
|
|
3828
|
+
* @license lucide-react v0.539.0 - ISC
|
|
3829
|
+
*
|
|
3830
|
+
* This source code is licensed under the ISC license.
|
|
3831
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3832
|
+
*/
|
|
3833
|
+
|
|
3834
|
+
|
|
3835
|
+
const __iconNode$b = [
|
|
3691
3836
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
|
|
3692
3837
|
];
|
|
3693
|
-
const Square = createLucideIcon("square", __iconNode$
|
|
3838
|
+
const Square = createLucideIcon("square", __iconNode$b);
|
|
3694
3839
|
|
|
3695
3840
|
/**
|
|
3696
3841
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3700,12 +3845,12 @@ const Square = createLucideIcon("square", __iconNode$9);
|
|
|
3700
3845
|
*/
|
|
3701
3846
|
|
|
3702
3847
|
|
|
3703
|
-
const __iconNode$
|
|
3848
|
+
const __iconNode$a = [
|
|
3704
3849
|
["path", { d: "M16 4H9a3 3 0 0 0-2.83 4", key: "43sutm" }],
|
|
3705
3850
|
["path", { d: "M14 12a4 4 0 0 1 0 8H6", key: "nlfj13" }],
|
|
3706
3851
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
|
|
3707
3852
|
];
|
|
3708
|
-
const Strikethrough = createLucideIcon("strikethrough", __iconNode$
|
|
3853
|
+
const Strikethrough = createLucideIcon("strikethrough", __iconNode$a);
|
|
3709
3854
|
|
|
3710
3855
|
/**
|
|
3711
3856
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3715,7 +3860,7 @@ const Strikethrough = createLucideIcon("strikethrough", __iconNode$8);
|
|
|
3715
3860
|
*/
|
|
3716
3861
|
|
|
3717
3862
|
|
|
3718
|
-
const __iconNode$
|
|
3863
|
+
const __iconNode$9 = [
|
|
3719
3864
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
3720
3865
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
3721
3866
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -3726,7 +3871,7 @@ const __iconNode$7 = [
|
|
|
3726
3871
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
3727
3872
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
3728
3873
|
];
|
|
3729
|
-
const Sun = createLucideIcon("sun", __iconNode$
|
|
3874
|
+
const Sun = createLucideIcon("sun", __iconNode$9);
|
|
3730
3875
|
|
|
3731
3876
|
/**
|
|
3732
3877
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3736,14 +3881,28 @@ const Sun = createLucideIcon("sun", __iconNode$7);
|
|
|
3736
3881
|
*/
|
|
3737
3882
|
|
|
3738
3883
|
|
|
3739
|
-
const __iconNode$
|
|
3884
|
+
const __iconNode$8 = [
|
|
3885
|
+
["circle", { cx: "9", cy: "12", r: "3", key: "u3jwor" }],
|
|
3886
|
+
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "7", key: "g7kal2" }]
|
|
3887
|
+
];
|
|
3888
|
+
const ToggleLeft = createLucideIcon("toggle-left", __iconNode$8);
|
|
3889
|
+
|
|
3890
|
+
/**
|
|
3891
|
+
* @license lucide-react v0.539.0 - ISC
|
|
3892
|
+
*
|
|
3893
|
+
* This source code is licensed under the ISC license.
|
|
3894
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3895
|
+
*/
|
|
3896
|
+
|
|
3897
|
+
|
|
3898
|
+
const __iconNode$7 = [
|
|
3740
3899
|
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
3741
3900
|
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
3742
3901
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
3743
3902
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
3744
3903
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
3745
3904
|
];
|
|
3746
|
-
const Trash2 = createLucideIcon("trash-2", __iconNode$
|
|
3905
|
+
const Trash2 = createLucideIcon("trash-2", __iconNode$7);
|
|
3747
3906
|
|
|
3748
3907
|
/**
|
|
3749
3908
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -3753,7 +3912,7 @@ const Trash2 = createLucideIcon("trash-2", __iconNode$6);
|
|
|
3753
3912
|
*/
|
|
3754
3913
|
|
|
3755
3914
|
|
|
3756
|
-
const __iconNode$
|
|
3915
|
+
const __iconNode$6 = [
|
|
3757
3916
|
[
|
|
3758
3917
|
"path",
|
|
3759
3918
|
{
|
|
@@ -3764,7 +3923,22 @@ const __iconNode$5 = [
|
|
|
3764
3923
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
3765
3924
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
3766
3925
|
];
|
|
3767
|
-
const TriangleAlert = createLucideIcon("triangle-alert", __iconNode$
|
|
3926
|
+
const TriangleAlert = createLucideIcon("triangle-alert", __iconNode$6);
|
|
3927
|
+
|
|
3928
|
+
/**
|
|
3929
|
+
* @license lucide-react v0.539.0 - ISC
|
|
3930
|
+
*
|
|
3931
|
+
* This source code is licensed under the ISC license.
|
|
3932
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3933
|
+
*/
|
|
3934
|
+
|
|
3935
|
+
|
|
3936
|
+
const __iconNode$5 = [
|
|
3937
|
+
["path", { d: "M12 4v16", key: "1654pz" }],
|
|
3938
|
+
["path", { d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2", key: "e0r10z" }],
|
|
3939
|
+
["path", { d: "M9 20h6", key: "s66wpe" }]
|
|
3940
|
+
];
|
|
3941
|
+
const Type = createLucideIcon("type", __iconNode$5);
|
|
3768
3942
|
|
|
3769
3943
|
/**
|
|
3770
3944
|
* @license lucide-react v0.539.0 - ISC
|
|
@@ -20817,7 +20991,7 @@ const DATE_FORMAT$1 = 'DD-MM-YYYY';
|
|
|
20817
20991
|
*/
|
|
20818
20992
|
const DEFAULT_INVENTORY_THUMBNAIL = '/default%20thumbnail.png';
|
|
20819
20993
|
|
|
20820
|
-
const formatDate$
|
|
20994
|
+
const formatDate$3 = (iso) => {
|
|
20821
20995
|
if (!iso)
|
|
20822
20996
|
return '-';
|
|
20823
20997
|
try {
|
|
@@ -20834,7 +21008,7 @@ const InfoCard = ({ info, title, refundToWallet, onRefundChange, }) => {
|
|
|
20834
21008
|
if (React.isValidElement(info))
|
|
20835
21009
|
return jsxRuntime.jsx("div", { className: "mt-3", children: info });
|
|
20836
21010
|
const i = info;
|
|
20837
|
-
return (jsxRuntime.jsx("div", { className: "mt-1 rounded-lg border bg-muted p-3 shadow-sm", children: jsxRuntime.jsxs("div", { className: "flex flex-col gap-1", children: [jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [jsxRuntime.jsx("div", { className: "w-36 text-sm text-muted-foreground", children: "Date" }), jsxRuntime.jsx("div", { children: formatDate$
|
|
21011
|
+
return (jsxRuntime.jsx("div", { className: "mt-1 rounded-lg border bg-muted p-3 shadow-sm", children: jsxRuntime.jsxs("div", { className: "flex flex-col gap-1", children: [jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [jsxRuntime.jsx("div", { className: "w-36 text-sm text-muted-foreground", children: "Date" }), jsxRuntime.jsx("div", { children: formatDate$3(i.invoiceDate) })] }), jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [jsxRuntime.jsx("div", { className: "w-36 text-sm text-muted-foreground", children: "Total" }), jsxRuntime.jsx("div", { className: "font-medium text-foreground", children: formatCurrencyWithTenantSymbol(i.totalAmount) })] }), i.paidAmount !== undefined && (jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [jsxRuntime.jsx("div", { className: "w-36 text-sm text-muted-foreground", children: "Paid" }), jsxRuntime.jsx("div", { className: "font-medium text-primary", children: formatCurrencyWithTenantSymbol(i.paidAmount) })] })), i.outstandingAmount !== undefined && (jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [jsxRuntime.jsx("div", { className: "w-36 text-sm text-muted-foreground", children: "Outstanding" }), jsxRuntime.jsx("div", { className: "font-medium text-muted-foreground", children: formatCurrencyWithTenantSymbol(i.outstandingAmount) })] })), title === 'Cancel Invoice' &&
|
|
20838
21012
|
!React.isValidElement(info) &&
|
|
20839
21013
|
(i?.paidAmount ?? 0) > 0 && (jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [jsxRuntime.jsx("div", { className: "w-36 whitespace-nowrap text-sm text-muted-foreground", children: "Refund to Wallet" }), jsxRuntime.jsx(Checkbox, { checked: !!refundToWallet, onCheckedChange: (v) => onRefundChange?.(Boolean(v)), className: "bg-card" })] })), (i.customerName || i.email) && (jsxRuntime.jsxs("div", { className: "mt-1 rounded bg-card p-2", children: [i.customerName && (jsxRuntime.jsx("div", { className: "text-sm font-medium", children: i.customerName })), i.email && (jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", children: i.email }))] }))] }) }));
|
|
20840
21014
|
};
|
|
@@ -31321,7 +31495,7 @@ function parseDate(value, dateFormat, locale, strictParsing, refDate) {
|
|
|
31321
31495
|
var parsedDate = parse(value, format_1, refDate, {
|
|
31322
31496
|
locale: localeObject});
|
|
31323
31497
|
if (isValid(parsedDate) &&
|
|
31324
|
-
(!strictParsing || value === formatDate$
|
|
31498
|
+
(!strictParsing || value === formatDate$2(parsedDate, format_1, locale))) {
|
|
31325
31499
|
return parsedDate;
|
|
31326
31500
|
}
|
|
31327
31501
|
}
|
|
@@ -31349,7 +31523,7 @@ function isValid(date, minDate) {
|
|
|
31349
31523
|
* @param locale - The locale.
|
|
31350
31524
|
* @returns - The formatted date.
|
|
31351
31525
|
*/
|
|
31352
|
-
function formatDate$
|
|
31526
|
+
function formatDate$2(date, formatStr, locale) {
|
|
31353
31527
|
if (locale === "en") {
|
|
31354
31528
|
return format(date, formatStr, {
|
|
31355
31529
|
useAdditionalWeekYearTokens: true,
|
|
@@ -31379,7 +31553,7 @@ function safeDateFormat(date, _a) {
|
|
|
31379
31553
|
var formatStr = (Array.isArray(dateFormat) && dateFormat.length > 0
|
|
31380
31554
|
? dateFormat[0]
|
|
31381
31555
|
: dateFormat); // Cast to string because it's impossible to get `string | string[] | undefined` here and typescript doesn't know that
|
|
31382
|
-
return (date && formatDate$
|
|
31556
|
+
return (date && formatDate$2(date, formatStr, locale)) || "";
|
|
31383
31557
|
}
|
|
31384
31558
|
/**
|
|
31385
31559
|
* Used as a delimiter to separate two dates when formatting a date range
|
|
@@ -31453,7 +31627,7 @@ function getWeek(date) {
|
|
|
31453
31627
|
* @returns - The day of the week code.
|
|
31454
31628
|
*/
|
|
31455
31629
|
function getDayOfWeekCode(day, locale) {
|
|
31456
|
-
return formatDate$
|
|
31630
|
+
return formatDate$2(day, "ddd", locale);
|
|
31457
31631
|
}
|
|
31458
31632
|
// *** Start of ***
|
|
31459
31633
|
/**
|
|
@@ -31676,7 +31850,7 @@ function getLocaleObject(localeSpec) {
|
|
|
31676
31850
|
* @returns - The formatted weekday.
|
|
31677
31851
|
*/
|
|
31678
31852
|
function getFormattedWeekdayInLocale(date, formatFunc, locale) {
|
|
31679
|
-
return formatFunc(formatDate$
|
|
31853
|
+
return formatFunc(formatDate$2(date, "EEEE", locale));
|
|
31680
31854
|
}
|
|
31681
31855
|
/**
|
|
31682
31856
|
* Gets the minimum weekday in a given locale.
|
|
@@ -31686,7 +31860,7 @@ function getFormattedWeekdayInLocale(date, formatFunc, locale) {
|
|
|
31686
31860
|
* @returns - The minimum weekday.
|
|
31687
31861
|
*/
|
|
31688
31862
|
function getWeekdayMinInLocale(date, locale) {
|
|
31689
|
-
return formatDate$
|
|
31863
|
+
return formatDate$2(date, "EEEEEE", locale);
|
|
31690
31864
|
}
|
|
31691
31865
|
/**
|
|
31692
31866
|
* Gets the short weekday in a given locale.
|
|
@@ -31696,7 +31870,7 @@ function getWeekdayMinInLocale(date, locale) {
|
|
|
31696
31870
|
* @returns - The short weekday.
|
|
31697
31871
|
*/
|
|
31698
31872
|
function getWeekdayShortInLocale(date, locale) {
|
|
31699
|
-
return formatDate$
|
|
31873
|
+
return formatDate$2(date, "EEE", locale);
|
|
31700
31874
|
}
|
|
31701
31875
|
/**
|
|
31702
31876
|
* Gets the month in a given locale.
|
|
@@ -31706,7 +31880,7 @@ function getWeekdayShortInLocale(date, locale) {
|
|
|
31706
31880
|
* @returns - The month.
|
|
31707
31881
|
*/
|
|
31708
31882
|
function getMonthInLocale(month, locale) {
|
|
31709
|
-
return formatDate$
|
|
31883
|
+
return formatDate$2(setMonth(newDate(), month), "LLLL", locale);
|
|
31710
31884
|
}
|
|
31711
31885
|
/**
|
|
31712
31886
|
* Gets the short month in a given locale.
|
|
@@ -31716,7 +31890,7 @@ function getMonthInLocale(month, locale) {
|
|
|
31716
31890
|
* @returns - The short month.
|
|
31717
31891
|
*/
|
|
31718
31892
|
function getMonthShortInLocale(month, locale) {
|
|
31719
|
-
return formatDate$
|
|
31893
|
+
return formatDate$2(setMonth(newDate(), month), "LLL", locale);
|
|
31720
31894
|
}
|
|
31721
31895
|
/**
|
|
31722
31896
|
* Gets the short quarter in a given locale.
|
|
@@ -31726,7 +31900,7 @@ function getMonthShortInLocale(month, locale) {
|
|
|
31726
31900
|
* @returns - The short quarter.
|
|
31727
31901
|
*/
|
|
31728
31902
|
function getQuarterShortInLocale(quarter, locale) {
|
|
31729
|
-
return formatDate$
|
|
31903
|
+
return formatDate$2(setQuarter(newDate(), quarter), "QQQ", locale);
|
|
31730
31904
|
}
|
|
31731
31905
|
/**
|
|
31732
31906
|
* Checks if a day is disabled.
|
|
@@ -32056,7 +32230,7 @@ function getHighLightDaysMap(highlightDates, defaultClassName) {
|
|
|
32056
32230
|
for (var i = 0, len = highlightDates.length; i < len; i++) {
|
|
32057
32231
|
var obj = highlightDates[i];
|
|
32058
32232
|
if (isDate(obj)) {
|
|
32059
|
-
var key = formatDate$
|
|
32233
|
+
var key = formatDate$2(obj, "MM.dd.yyyy");
|
|
32060
32234
|
var classNamesArr = dateClasses.get(key) || [];
|
|
32061
32235
|
if (!classNamesArr.includes(defaultClassName)) {
|
|
32062
32236
|
classNamesArr.push(defaultClassName);
|
|
@@ -32071,7 +32245,7 @@ function getHighLightDaysMap(highlightDates, defaultClassName) {
|
|
|
32071
32245
|
for (var k = 0, len_1 = arrOfDates.length; k < len_1; k++) {
|
|
32072
32246
|
var dateK = arrOfDates[k];
|
|
32073
32247
|
if (dateK) {
|
|
32074
|
-
var key = formatDate$
|
|
32248
|
+
var key = formatDate$2(dateK, "MM.dd.yyyy");
|
|
32075
32249
|
var classNamesArr = dateClasses.get(key) || [];
|
|
32076
32250
|
if (!classNamesArr.includes(className)) {
|
|
32077
32251
|
classNamesArr.push(className);
|
|
@@ -32111,7 +32285,7 @@ function getHolidaysMap(holidayDates, defaultClassName) {
|
|
|
32111
32285
|
if (!isDate(dateObj)) {
|
|
32112
32286
|
return;
|
|
32113
32287
|
}
|
|
32114
|
-
var key = formatDate$
|
|
32288
|
+
var key = formatDate$2(dateObj, "MM.dd.yyyy");
|
|
32115
32289
|
var classNamesObj = dateClasses.get(key) || {
|
|
32116
32290
|
className: "",
|
|
32117
32291
|
holidayNames: [],
|
|
@@ -32485,7 +32659,7 @@ var Day = /** @class */ (function (_super) {
|
|
|
32485
32659
|
return false;
|
|
32486
32660
|
}
|
|
32487
32661
|
// Looking for className in the Map of {'day string, 'className'}
|
|
32488
|
-
var dayStr = formatDate$
|
|
32662
|
+
var dayStr = formatDate$2(day, "MM.dd.yyyy");
|
|
32489
32663
|
return highlightDates.get(dayStr);
|
|
32490
32664
|
};
|
|
32491
32665
|
// Function to return the array containing className associated to the date
|
|
@@ -32496,7 +32670,7 @@ var Day = /** @class */ (function (_super) {
|
|
|
32496
32670
|
// For type consistency no other reasons
|
|
32497
32671
|
return [undefined];
|
|
32498
32672
|
}
|
|
32499
|
-
var dayStr = formatDate$
|
|
32673
|
+
var dayStr = formatDate$2(day, "MM.dd.yyyy");
|
|
32500
32674
|
// Looking for className in the Map of {day string: {className, holidayName}}
|
|
32501
32675
|
if (holidays.has(dayStr)) {
|
|
32502
32676
|
return [(_a = holidays.get(dayStr)) === null || _a === void 0 ? void 0 : _a.className];
|
|
@@ -32637,12 +32811,12 @@ var Day = /** @class */ (function (_super) {
|
|
|
32637
32811
|
var prefix = _this.isDisabled() || _this.isExcluded()
|
|
32638
32812
|
? ariaLabelPrefixWhenDisabled
|
|
32639
32813
|
: ariaLabelPrefixWhenEnabled;
|
|
32640
|
-
return "".concat(prefix, " ").concat(formatDate$
|
|
32814
|
+
return "".concat(prefix, " ").concat(formatDate$2(day, "PPPP", _this.props.locale));
|
|
32641
32815
|
};
|
|
32642
32816
|
// A function to return the holiday's name as title's content
|
|
32643
32817
|
_this.getTitle = function () {
|
|
32644
32818
|
var _a = _this.props, day = _a.day, _b = _a.holidays, holidays = _b === void 0 ? new Map() : _b, excludeDates = _a.excludeDates;
|
|
32645
|
-
var compareDt = formatDate$
|
|
32819
|
+
var compareDt = formatDate$2(day, "MM.dd.yyyy");
|
|
32646
32820
|
var titles = [];
|
|
32647
32821
|
if (holidays.has(compareDt)) {
|
|
32648
32822
|
titles.push.apply(titles, holidays.get(compareDt).holidayNames);
|
|
@@ -33568,7 +33742,7 @@ var Month = /** @class */ (function (_super) {
|
|
|
33568
33742
|
var prefix = _this.isDisabled(labelDate) || _this.isExcluded(labelDate)
|
|
33569
33743
|
? disabledDayAriaLabelPrefix
|
|
33570
33744
|
: chooseDayAriaLabelPrefix;
|
|
33571
|
-
return "".concat(prefix, " ").concat(formatDate$
|
|
33745
|
+
return "".concat(prefix, " ").concat(formatDate$2(labelDate, "MMMM yyyy", locale));
|
|
33572
33746
|
};
|
|
33573
33747
|
_this.getQuarterClassNames = function (q) {
|
|
33574
33748
|
var _a = _this.props, day = _a.day, startDate = _a.startDate, endDate = _a.endDate, minDate = _a.minDate, maxDate = _a.maxDate, excludeDates = _a.excludeDates, includeDates = _a.includeDates, filterDate = _a.filterDate, preSelection = _a.preSelection, disabledKeyboardNavigation = _a.disabledKeyboardNavigation, disabled = _a.disabled;
|
|
@@ -33670,7 +33844,7 @@ var Month = /** @class */ (function (_super) {
|
|
|
33670
33844
|
: "";
|
|
33671
33845
|
// Format aria-label, return empty string if date is invalid
|
|
33672
33846
|
var formattedAriaLabel = isValid(day)
|
|
33673
|
-
? "".concat(formattedAriaLabelPrefix).concat(formatDate$
|
|
33847
|
+
? "".concat(formattedAriaLabelPrefix).concat(formatDate$2(day, "MMMM, yyyy", this.props.locale))
|
|
33674
33848
|
: "";
|
|
33675
33849
|
var shouldUseListboxRole = showMonthYearPicker || showQuarterYearPicker;
|
|
33676
33850
|
if (shouldUseListboxRole) {
|
|
@@ -33813,7 +33987,7 @@ var MonthYearDropdownOptions = /** @class */ (function (_super) {
|
|
|
33813
33987
|
? "react-datepicker__month-year-option--selected_month-year"
|
|
33814
33988
|
: "react-datepicker__month-year-option", key: monthYearPoint, onClick: _this.onChange.bind(_this, monthYearPoint), "aria-selected": isSameMonthYear ? "true" : undefined },
|
|
33815
33989
|
isSameMonthYear ? (React.createElement("span", { className: "react-datepicker__month-year-option--selected" }, "\u2713")) : (""),
|
|
33816
|
-
formatDate$
|
|
33990
|
+
formatDate$2(monthYear, _this.props.dateFormat, _this.props.locale)));
|
|
33817
33991
|
});
|
|
33818
33992
|
};
|
|
33819
33993
|
_this.onChange = function (monthYear) { return _this.props.onChange(monthYear); };
|
|
@@ -33848,7 +34022,7 @@ var MonthYearDropdown = /** @class */ (function (_super) {
|
|
|
33848
34022
|
var options = [];
|
|
33849
34023
|
while (!isAfter$1(currDate, lastDate)) {
|
|
33850
34024
|
var timePoint = getTime(currDate);
|
|
33851
|
-
options.push(React.createElement("option", { key: timePoint, value: timePoint }, formatDate$
|
|
34025
|
+
options.push(React.createElement("option", { key: timePoint, value: timePoint }, formatDate$2(currDate, _this.props.dateFormat, _this.props.locale)));
|
|
33852
34026
|
currDate = addMonths(currDate, 1);
|
|
33853
34027
|
}
|
|
33854
34028
|
return options;
|
|
@@ -33858,7 +34032,7 @@ var MonthYearDropdown = /** @class */ (function (_super) {
|
|
|
33858
34032
|
};
|
|
33859
34033
|
_this.renderSelectMode = function () { return (React.createElement("select", { value: getTime(getStartOfMonth(_this.props.date)), className: "react-datepicker__month-year-select", onChange: _this.onSelectChange }, _this.renderSelectOptions())); };
|
|
33860
34034
|
_this.renderReadView = function (visible) {
|
|
33861
|
-
var yearMonth = formatDate$
|
|
34035
|
+
var yearMonth = formatDate$2(_this.props.date, _this.props.dateFormat, _this.props.locale);
|
|
33862
34036
|
return (React.createElement("div", { key: "read", style: { visibility: visible ? "visible" : "hidden" }, className: "react-datepicker__month-year-read-view", onClick: _this.toggleDropdown },
|
|
33863
34037
|
React.createElement("span", { className: "react-datepicker__month-year-read-view--down-arrow" }),
|
|
33864
34038
|
React.createElement("span", { className: "react-datepicker__month-year-read-view--selected-month-year" }, yearMonth)));
|
|
@@ -34027,7 +34201,7 @@ var Time = /** @class */ (function (_super) {
|
|
|
34027
34201
|
}
|
|
34028
34202
|
}, onKeyDown: function (event) {
|
|
34029
34203
|
_this.handleOnKeyDown(event, time);
|
|
34030
|
-
}, tabIndex: time === timeToFocus ? 0 : -1, role: "option", "aria-selected": _this.isSelectedTime(time) ? "true" : undefined, "aria-disabled": _this.isDisabledTime(time) ? "true" : undefined }, formatDate$
|
|
34204
|
+
}, tabIndex: time === timeToFocus ? 0 : -1, role: "option", "aria-selected": _this.isSelectedTime(time) ? "true" : undefined, "aria-disabled": _this.isDisabledTime(time) ? "true" : undefined }, formatDate$2(time, format, _this.props.locale)));
|
|
34031
34205
|
});
|
|
34032
34206
|
};
|
|
34033
34207
|
_this.renderTimeCaption = function () {
|
|
@@ -34798,7 +34972,7 @@ var Calendar = /** @class */ (function (_super) {
|
|
|
34798
34972
|
? _this.props.weekDayClassName(day)
|
|
34799
34973
|
: undefined;
|
|
34800
34974
|
return (React.createElement("div", { key: offset, role: "columnheader", className: clsx("react-datepicker__day-name", weekDayClassName, disabled ? "react-datepicker__day-name--disabled" : "") },
|
|
34801
|
-
React.createElement("span", { className: "react-datepicker__sr-only" }, formatDate$
|
|
34975
|
+
React.createElement("span", { className: "react-datepicker__sr-only" }, formatDate$2(day, "EEEE", _this.props.locale)),
|
|
34802
34976
|
React.createElement("span", { "aria-hidden": "true" }, weekDayName)));
|
|
34803
34977
|
}));
|
|
34804
34978
|
};
|
|
@@ -34978,7 +35152,7 @@ var Calendar = /** @class */ (function (_super) {
|
|
|
34978
35152
|
classes.push("react-datepicker__current-month--hasMonthYearDropdown");
|
|
34979
35153
|
}
|
|
34980
35154
|
return (React.createElement("h2", { className: classes.join(" ") }, isValid(date)
|
|
34981
|
-
? formatDate$
|
|
35155
|
+
? formatDate$2(date, _this.props.dateFormat, _this.props.locale)
|
|
34982
35156
|
: ""));
|
|
34983
35157
|
};
|
|
34984
35158
|
_this.renderYearDropdown = function (overrideHide) {
|
|
@@ -35962,7 +36136,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
35962
36136
|
var newMinutes = Math.min(maxMinutes, currentMinutes + timeIntervals);
|
|
35963
36137
|
newTime = addMinutes(baseDate, newMinutes);
|
|
35964
36138
|
}
|
|
35965
|
-
var formattedTime = formatDate$
|
|
36139
|
+
var formattedTime = formatDate$2(newTime, formatStr || DatePicker.defaultProps.dateFormat, _this.props.locale);
|
|
35966
36140
|
_this.setState({
|
|
35967
36141
|
preSelection: newTime,
|
|
35968
36142
|
inputValue: formattedTime,
|
|
@@ -36576,7 +36750,7 @@ function computeDateBounds(min, max) {
|
|
|
36576
36750
|
maxYear: maxDate ? moment(maxDate, BOUND_FORMAT).year() : undefined,
|
|
36577
36751
|
};
|
|
36578
36752
|
}
|
|
36579
|
-
function formatDate(value) {
|
|
36753
|
+
function formatDate$1(value) {
|
|
36580
36754
|
return value ? moment(value).format(DATE_FORMAT) : '';
|
|
36581
36755
|
}
|
|
36582
36756
|
function toBoundDate(bound) {
|
|
@@ -36650,7 +36824,7 @@ function useDateInput({ value, onChange, onBlur, min, max, disabled, }) {
|
|
|
36650
36824
|
const inputRef = React.useRef(null);
|
|
36651
36825
|
const caretRef = React.useRef(null);
|
|
36652
36826
|
const bounds = computeDateBounds(min, max);
|
|
36653
|
-
const formatted = formatDate(value);
|
|
36827
|
+
const formatted = formatDate$1(value);
|
|
36654
36828
|
const [text, setText] = React.useState(formatted);
|
|
36655
36829
|
const [syncedValue, setSyncedValue] = React.useState(formatted);
|
|
36656
36830
|
// Adopt `value` whenever it changes from the outside — a form reset, a
|
|
@@ -36684,7 +36858,7 @@ function useDateInput({ value, onChange, onBlur, min, max, disabled, }) {
|
|
|
36684
36858
|
}
|
|
36685
36859
|
};
|
|
36686
36860
|
const commit = (date) => {
|
|
36687
|
-
const next = formatDate(date);
|
|
36861
|
+
const next = formatDate$1(date);
|
|
36688
36862
|
setText(next);
|
|
36689
36863
|
setSyncedValue(next);
|
|
36690
36864
|
onChange(date);
|
|
@@ -36961,6 +37135,348 @@ const FilterSelect = ({ label, value, onValueChange, options, resetValue = 'all'
|
|
|
36961
37135
|
return (jsxRuntime.jsxs(Select, { value: value, onValueChange: onValueChange, keepOpenOnSelect: true, children: [jsxRuntime.jsxs(SelectTrigger, { className: cn(TRIGGER_BASE, active && TRIGGER_ACTIVE, triggerClassName), children: [jsxRuntime.jsx(Funnel, { className: cn('h-4 w-4 shrink-0', active ? 'text-primary' : 'text-muted-foreground'), "aria-hidden": "true" }), jsxRuntime.jsxs("span", { className: "flex items-center gap-1", children: [jsxRuntime.jsx(SelectValue, { placeholder: label }), active && (jsxRuntime.jsx("span", { className: "ml-1 inline-flex h-4 min-w-4 items-center justify-center rounded bg-primary/10 px-1 text-[10px] font-semibold leading-none text-primary", children: activeCount }))] })] }), jsxRuntime.jsxs(SelectContent, { className: cn(CONTENT_BASE, contentClassName), searchable: searchable, children: [jsxRuntime.jsx(SelectItem, { value: resetValue, withCheckbox: true, children: label }), options.map((opt) => (jsxRuntime.jsx(SelectItem, { value: opt.value, searchValue: opt.searchValue, withCheckbox: true, children: opt.label }, opt.value)))] })] }));
|
|
36962
37136
|
};
|
|
36963
37137
|
|
|
37138
|
+
/**
|
|
37139
|
+
* Horizontal row of option cards behaving as a radio group.
|
|
37140
|
+
* Selected option highlights with primary border + light green background + filled dot.
|
|
37141
|
+
* Unselected options have an empty circle indicator.
|
|
37142
|
+
*/
|
|
37143
|
+
function RadioCardGroup({ value, onChange, options, className, disabled, name, ariaLabel, iconSize = 'sm', }) {
|
|
37144
|
+
const iconSizeClasses = iconSize === 'xl'
|
|
37145
|
+
? '[&_svg]:h-10 [&_svg]:w-10'
|
|
37146
|
+
: iconSize === 'lg'
|
|
37147
|
+
? '[&_svg]:h-6 [&_svg]:w-6'
|
|
37148
|
+
: '[&_svg]:h-4 [&_svg]:w-4';
|
|
37149
|
+
return (jsxRuntime.jsx("div", { role: "radiogroup", "aria-label": ariaLabel, className: cn('grid w-full grid-cols-2 gap-3 sm:grid-cols-4', className), children: options.map((opt) => {
|
|
37150
|
+
const selected = value === opt.value;
|
|
37151
|
+
const isDisabled = disabled || opt.disabled;
|
|
37152
|
+
return (jsxRuntime.jsxs("button", { type: "button", role: "radio", "aria-checked": selected, disabled: isDisabled, "data-state": selected ? 'checked' : 'unchecked', onClick: () => !isDisabled && onChange(opt.value), name: name, className: cn('flex w-full cursor-pointer gap-3 rounded-md border px-3 text-sm font-medium shadow-[0_1px_2px_0_rgba(0,0,0,0.05)] transition-colors disabled:cursor-not-allowed', 'outline-none focus-visible:ring-2 focus-visible:ring-primary/30', opt.description
|
|
37153
|
+
? 'min-h-14 items-start py-2 text-left'
|
|
37154
|
+
: 'h-9 items-center py-1.5', selected
|
|
37155
|
+
? 'border-primary bg-primary/10 text-primary'
|
|
37156
|
+
: 'border-transparent bg-[#FAFAFA] text-foreground dark:bg-[#262626]', isDisabled && 'cursor-not-allowed opacity-50'), children: [jsxRuntime.jsx("span", { "aria-hidden": "true", className: cn('relative inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border', opt.description && 'mt-[3px]', selected ? 'border-primary' : 'border-gray-300'), children: selected && (jsxRuntime.jsx("span", { className: "block h-2 w-2 rounded-full bg-primary" })) }), jsxRuntime.jsxs("span", { className: "flex min-w-0 flex-1 flex-col items-start", children: [jsxRuntime.jsx("span", { className: "truncate", children: opt.label }), opt.description && (jsxRuntime.jsx("span", { className: cn('mt-0.5 text-xs font-normal', selected ? 'text-primary/80' : 'text-label'), children: opt.description }))] }), opt.icon && (jsxRuntime.jsx("span", { "aria-hidden": "true", className: cn('inline-flex shrink-0 items-center', iconSizeClasses, selected ? 'text-primary' : 'text-label'), children: opt.icon }))] }, opt.value));
|
|
37157
|
+
}) }));
|
|
37158
|
+
}
|
|
37159
|
+
|
|
37160
|
+
/**
|
|
37161
|
+
* One scrolling column of the picker (hours, minutes or period). The selected
|
|
37162
|
+
* row is scrolled into view whenever it changes, so reopening the popover lands
|
|
37163
|
+
* on the current value instead of at midnight.
|
|
37164
|
+
*/
|
|
37165
|
+
function TimeColumn({ label, options, selected, onSelect, }) {
|
|
37166
|
+
const listRef = React.useRef(null);
|
|
37167
|
+
const activeRef = React.useRef(null);
|
|
37168
|
+
React.useEffect(() => {
|
|
37169
|
+
const list = listRef.current;
|
|
37170
|
+
const active = activeRef.current;
|
|
37171
|
+
if (!list || !active)
|
|
37172
|
+
return;
|
|
37173
|
+
// `scrollIntoView` would scroll the page as well as the column.
|
|
37174
|
+
list.scrollTop =
|
|
37175
|
+
active.offsetTop - list.clientHeight / 2 + active.clientHeight / 2;
|
|
37176
|
+
}, [selected]);
|
|
37177
|
+
return (jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-col", children: [jsxRuntime.jsx("span", { className: "px-1 pb-1.5 text-center text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: label }), jsxRuntime.jsx("div", { ref: listRef, role: "listbox", "aria-label": label, className: "scrollbar-thin h-[184px] overflow-y-auto px-1", children: jsxRuntime.jsx("div", { className: "flex flex-col gap-0.5", children: options.map((option) => {
|
|
37178
|
+
const isSelected = option.value === selected;
|
|
37179
|
+
return (jsxRuntime.jsx("button", { ref: isSelected ? activeRef : undefined, type: "button", role: "option", "aria-selected": isSelected, onClick: () => onSelect(option.value), className: cn('rounded-md px-3 py-1.5 text-center text-sm tabular-nums transition-colors', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring', isSelected
|
|
37180
|
+
? 'bg-primary text-primary-foreground'
|
|
37181
|
+
: 'text-foreground hover:bg-muted'), children: option.label }, option.value));
|
|
37182
|
+
}) }) })] }));
|
|
37183
|
+
}
|
|
37184
|
+
|
|
37185
|
+
const TIME_PATTERN = /^(\d{1,2}):(\d{2})(?::\d{2})?$/;
|
|
37186
|
+
const pad = (n) => String(n).padStart(2, '0');
|
|
37187
|
+
/** Reads `HH:mm` / `HH:mm:ss`. Returns null for anything out of range. */
|
|
37188
|
+
function parseTimeValue(value) {
|
|
37189
|
+
const match = TIME_PATTERN.exec((value ?? '').trim());
|
|
37190
|
+
if (!match)
|
|
37191
|
+
return null;
|
|
37192
|
+
const hour = Number(match[1]);
|
|
37193
|
+
const minute = Number(match[2]);
|
|
37194
|
+
if (hour > 23 || minute > 59)
|
|
37195
|
+
return null;
|
|
37196
|
+
return { hour, minute };
|
|
37197
|
+
}
|
|
37198
|
+
/** The stored form — always 24-hour, whatever the display format. */
|
|
37199
|
+
function toTimeValue(hour, minute) {
|
|
37200
|
+
return `${pad(hour)}:${pad(minute)}`;
|
|
37201
|
+
}
|
|
37202
|
+
function formatTimeDisplay(time, use24Hour) {
|
|
37203
|
+
if (use24Hour)
|
|
37204
|
+
return toTimeValue(time.hour, time.minute);
|
|
37205
|
+
// 0 and 12 both map to 12 — midnight is 12 AM, noon is 12 PM.
|
|
37206
|
+
const hour12 = time.hour % 12 === 0 ? 12 : time.hour % 12;
|
|
37207
|
+
const period = time.hour < 12 ? 'AM' : 'PM';
|
|
37208
|
+
return `${pad(hour12)}:${pad(time.minute)} ${period}`;
|
|
37209
|
+
}
|
|
37210
|
+
function buildHourOptions(use24Hour) {
|
|
37211
|
+
if (use24Hour) {
|
|
37212
|
+
return Array.from({ length: 24 }, (_, hour) => ({
|
|
37213
|
+
value: hour,
|
|
37214
|
+
label: pad(hour),
|
|
37215
|
+
}));
|
|
37216
|
+
}
|
|
37217
|
+
// 12 first, matching how a clock reads.
|
|
37218
|
+
return Array.from({ length: 12 }, (_, index) => {
|
|
37219
|
+
const hour12 = index === 0 ? 12 : index;
|
|
37220
|
+
return { value: hour12, label: pad(hour12) };
|
|
37221
|
+
});
|
|
37222
|
+
}
|
|
37223
|
+
function buildMinuteOptions(step) {
|
|
37224
|
+
const safeStep = Number.isFinite(step) && step > 0 ? Math.floor(step) : 1;
|
|
37225
|
+
const options = [];
|
|
37226
|
+
for (let minute = 0; minute < 60; minute += safeStep) {
|
|
37227
|
+
options.push({ value: minute, label: pad(minute) });
|
|
37228
|
+
}
|
|
37229
|
+
return options;
|
|
37230
|
+
}
|
|
37231
|
+
/** The hour as the 12-hour column shows it (12, 1…11). */
|
|
37232
|
+
function toHour12(hour) {
|
|
37233
|
+
return hour % 12 === 0 ? 12 : hour % 12;
|
|
37234
|
+
}
|
|
37235
|
+
/** Rebuilds a 24-hour hour from a 12-hour column value and its period. */
|
|
37236
|
+
function fromHour12(hour12, period) {
|
|
37237
|
+
const base = hour12 % 12;
|
|
37238
|
+
return period === 'PM' ? base + 12 : base;
|
|
37239
|
+
}
|
|
37240
|
+
function periodOf(hour) {
|
|
37241
|
+
return hour < 12 ? 'AM' : 'PM';
|
|
37242
|
+
}
|
|
37243
|
+
|
|
37244
|
+
// Only one TimePicker popover should be open at a time — same coordination the
|
|
37245
|
+
// DateInput uses, for the same reason: each is its own `modal` Radix Popover, so
|
|
37246
|
+
// opening a second does not dismiss the first by outside-click.
|
|
37247
|
+
const TIMEPICKER_OPEN_EVENT = 'caratlogic:timepicker-open';
|
|
37248
|
+
const PERIOD_OPTIONS = [
|
|
37249
|
+
{ value: 0, label: 'AM' },
|
|
37250
|
+
{ value: 1, label: 'PM' },
|
|
37251
|
+
];
|
|
37252
|
+
function TimePicker({ value, onChange, onBlur, name, className, disabled, placeholder = 'Select time', use24Hour = false, minuteStep = 1, hideFooter = false, }) {
|
|
37253
|
+
const [open, setOpen] = React.useState(false);
|
|
37254
|
+
const instanceId = React.useId();
|
|
37255
|
+
const parsed = parseTimeValue(value);
|
|
37256
|
+
React.useEffect(() => {
|
|
37257
|
+
const onOtherOpen = (e) => {
|
|
37258
|
+
if (e.detail !== instanceId)
|
|
37259
|
+
setOpen(false);
|
|
37260
|
+
};
|
|
37261
|
+
window.addEventListener(TIMEPICKER_OPEN_EVENT, onOtherOpen);
|
|
37262
|
+
return () => window.removeEventListener(TIMEPICKER_OPEN_EVENT, onOtherOpen);
|
|
37263
|
+
}, [instanceId]);
|
|
37264
|
+
const handleOpenChange = (next) => {
|
|
37265
|
+
setOpen(next);
|
|
37266
|
+
if (next) {
|
|
37267
|
+
window.dispatchEvent(new CustomEvent(TIMEPICKER_OPEN_EVENT, { detail: instanceId }));
|
|
37268
|
+
}
|
|
37269
|
+
};
|
|
37270
|
+
/** Picking one column before the others commits against a 00:00 baseline. */
|
|
37271
|
+
const commit = (hour, minute) => {
|
|
37272
|
+
onChange(toTimeValue(hour, minute));
|
|
37273
|
+
};
|
|
37274
|
+
const handleHour = (picked) => {
|
|
37275
|
+
const minute = parsed?.minute ?? 0;
|
|
37276
|
+
if (use24Hour) {
|
|
37277
|
+
commit(picked, minute);
|
|
37278
|
+
return;
|
|
37279
|
+
}
|
|
37280
|
+
commit(fromHour12(picked, parsed ? periodOf(parsed.hour) : 'AM'), minute);
|
|
37281
|
+
};
|
|
37282
|
+
const handleMinute = (picked) => {
|
|
37283
|
+
commit(parsed?.hour ?? 0, picked);
|
|
37284
|
+
};
|
|
37285
|
+
const handlePeriod = (picked) => {
|
|
37286
|
+
const period = picked === 0 ? 'AM' : 'PM';
|
|
37287
|
+
const hour12 = parsed ? toHour12(parsed.hour) : 12;
|
|
37288
|
+
commit(fromHour12(hour12, period), parsed?.minute ?? 0);
|
|
37289
|
+
};
|
|
37290
|
+
const selectedHour = parsed
|
|
37291
|
+
? use24Hour
|
|
37292
|
+
? parsed.hour
|
|
37293
|
+
: toHour12(parsed.hour)
|
|
37294
|
+
: null;
|
|
37295
|
+
// NOTE: `open` is driven from the button's onClick rather than
|
|
37296
|
+
// <PopoverTrigger>, matching DateInput — inside a modal <SlideOut> the
|
|
37297
|
+
// trigger's built-in toggle does not fire in Safari. <PopoverAnchor> is pure
|
|
37298
|
+
// positioning, so a single controlled toggle stays the only source of truth.
|
|
37299
|
+
return (jsxRuntime.jsxs(Popover, { open: open, onOpenChange: handleOpenChange, modal: true, children: [jsxRuntime.jsx(PopoverAnchor, { asChild: true, children: jsxRuntime.jsxs("button", { type: "button", name: name, onBlur: onBlur, disabled: disabled, "aria-haspopup": "dialog", "aria-expanded": open, onClick: () => {
|
|
37300
|
+
if (!disabled)
|
|
37301
|
+
handleOpenChange(!open);
|
|
37302
|
+
}, "data-slot": "input", "data-empty": !parsed || undefined, className: cn('border-input-border flex h-9 w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-1 text-left shadow-[0_1px_2px_0_#0000000d] transition-[color,box-shadow] outline-none', 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]', 'aria-invalid:ring-destructive/20 aria-invalid:border-destructive', disabled && 'cursor-not-allowed bg-muted/50 text-label', className), children: [jsxRuntime.jsx("span", { className: cn('truncate text-sm md:text-sm', parsed ? 'text-foreground' : 'text-placeholder'), children: parsed ? formatTimeDisplay(parsed, use24Hour) : placeholder }), jsxRuntime.jsx("span", { className: "inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground", children: jsxRuntime.jsx(Clock, { className: "h-4 w-4 stroke-[1.75]" }) })] }) }), jsxRuntime.jsxs(PopoverContent, { align: "start", className: "w-auto p-3", children: [jsxRuntime.jsxs("div", { className: "flex gap-1", children: [jsxRuntime.jsx(TimeColumn, { label: "Hour", options: buildHourOptions(use24Hour), selected: selectedHour, onSelect: handleHour }), jsxRuntime.jsx(TimeColumn, { label: "Min", options: buildMinuteOptions(minuteStep), selected: parsed?.minute ?? null, onSelect: handleMinute }), !use24Hour && (jsxRuntime.jsx(TimeColumn, { label: "AM/PM", options: PERIOD_OPTIONS, selected: parsed ? (periodOf(parsed.hour) === 'AM' ? 0 : 1) : null, onSelect: handlePeriod }))] }), !hideFooter && (jsxRuntime.jsxs("div", { className: "mt-2 flex items-center justify-between gap-2 border-t border-border pt-2", children: [jsxRuntime.jsx("button", { type: "button", onClick: () => {
|
|
37303
|
+
onChange(undefined);
|
|
37304
|
+
setOpen(false);
|
|
37305
|
+
}, className: "rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: "Clear" }), jsxRuntime.jsx("button", { type: "button", onClick: () => {
|
|
37306
|
+
const now = new Date();
|
|
37307
|
+
commit(now.getHours(), now.getMinutes());
|
|
37308
|
+
setOpen(false);
|
|
37309
|
+
}, className: "rounded-md px-2 py-1 text-xs font-medium text-primary transition-colors hover:text-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: "Now" })] }))] })] }));
|
|
37310
|
+
}
|
|
37311
|
+
|
|
37312
|
+
const Textarea = ({ label, error, className, ...props }) => {
|
|
37313
|
+
return (jsxRuntime.jsxs("div", { className: "flex flex-col gap-1 w-full text-xs", children: [label && (jsxRuntime.jsx("label", { className: " font-medium text-foreground text-xs", children: label })), jsxRuntime.jsx("textarea", { "aria-invalid": error ? true : undefined, className: `w-full text-xs rounded-lg border px-3 py-2 placeholder:text-placeholder placeholder:text-sm shadow-[0_1px_2px_0_rgba(0,0,0,0.05)] outline-none resize-y
|
|
37314
|
+
disabled:cursor-not-allowed disabled:bg-muted/50 disabled:text-label
|
|
37315
|
+
focus:ring-2 focus:ring-input focus:border-input
|
|
37316
|
+
${error ? 'border-destructive focus:border-destructive focus:ring-destructive/20' : 'border-input-border'}
|
|
37317
|
+
${className || ''}
|
|
37318
|
+
`, ...props }), error && jsxRuntime.jsx("p", { className: "text-xs text-destructive", children: error })] }));
|
|
37319
|
+
};
|
|
37320
|
+
|
|
37321
|
+
/** Shown in a read-only control whose value was never filled in. */
|
|
37322
|
+
const NOT_CAPTURED = 'Not captured';
|
|
37323
|
+
const asText = (value) => typeof value === 'string' ? value : '';
|
|
37324
|
+
const asList = (value) => Array.isArray(value)
|
|
37325
|
+
? value.filter((v) => typeof v === 'string')
|
|
37326
|
+
: [];
|
|
37327
|
+
/** Blank for display purposes — a number `0` is a real value, not blank. */
|
|
37328
|
+
const isBlank = (value) => value === null || value === undefined || asText(value).trim() === '';
|
|
37329
|
+
/** Treats blank strings, empty arrays and empty upload objects as uncaptured. */
|
|
37330
|
+
function isValueEmpty(value) {
|
|
37331
|
+
if (value === null || value === undefined)
|
|
37332
|
+
return true;
|
|
37333
|
+
if (typeof value === 'string')
|
|
37334
|
+
return value.trim() === '';
|
|
37335
|
+
// multiSelect stores an array; uploads store an object.
|
|
37336
|
+
if (Array.isArray(value))
|
|
37337
|
+
return value.length === 0;
|
|
37338
|
+
if (typeof value === 'object')
|
|
37339
|
+
return Object.keys(value).length === 0;
|
|
37340
|
+
return false;
|
|
37341
|
+
}
|
|
37342
|
+
|
|
37343
|
+
/** A snapshotted option field whose list was never filled in. */
|
|
37344
|
+
const NoOptions = () => (jsxRuntime.jsx("p", { className: "py-1.5 text-sm text-muted-foreground", children: "No options configured." }));
|
|
37345
|
+
/**
|
|
37346
|
+
* Renders one control for a field described by `type` and its option metadata.
|
|
37347
|
+
*
|
|
37348
|
+
* Covers the field types shared by every custom-field surface. Types specific
|
|
37349
|
+
* to one feature stay with that feature, which handles them before delegating.
|
|
37350
|
+
*/
|
|
37351
|
+
function CustomFieldInput({ field, value, disabled, invalid, onChange, renderUpload, }) {
|
|
37352
|
+
// Read-only fields render even when blank, so say why they are blank rather
|
|
37353
|
+
// than leaving an unexplained empty box.
|
|
37354
|
+
const placeholder = disabled && isBlank(value) ? NOT_CAPTURED : undefined;
|
|
37355
|
+
switch (field.type) {
|
|
37356
|
+
case 'dropdown':
|
|
37357
|
+
case 'radio': {
|
|
37358
|
+
const options = field.options ?? [];
|
|
37359
|
+
if (field.type === 'radio') {
|
|
37360
|
+
if (options.length === 0)
|
|
37361
|
+
return jsxRuntime.jsx(NoOptions, {});
|
|
37362
|
+
return (jsxRuntime.jsx(RadioCardGroup, { name: field.id, ariaLabel: field.label, disabled: disabled, value: asText(value), onChange: (next) => onChange(next), options: options.map((option) => ({ value: option, label: option })) }));
|
|
37363
|
+
}
|
|
37364
|
+
return (jsxRuntime.jsxs(Select, { disabled: disabled, value: asText(value), onValueChange: (v) => onChange(v), children: [jsxRuntime.jsx(SelectTrigger, { id: field.id, "aria-invalid": invalid, className: "h-9 w-full", children: jsxRuntime.jsx(SelectValue, { placeholder: disabled ? NOT_CAPTURED : (field.placeholder ?? 'Select an option') }) }), jsxRuntime.jsx(SelectContent, { children: options.map((option) => (jsxRuntime.jsx(SelectItem, { value: option, children: option }, option))) })] }));
|
|
37365
|
+
}
|
|
37366
|
+
case 'multiSelect': {
|
|
37367
|
+
const options = field.options ?? [];
|
|
37368
|
+
if (options.length === 0)
|
|
37369
|
+
return jsxRuntime.jsx(NoOptions, {});
|
|
37370
|
+
const selected = asList(value);
|
|
37371
|
+
// Read-only has no trigger to disable, so show the picked values plainly.
|
|
37372
|
+
if (disabled) {
|
|
37373
|
+
return (jsxRuntime.jsx("p", { className: "py-1.5 text-sm text-foreground", children: selected.length > 0 ? selected.join(', ') : NOT_CAPTURED }));
|
|
37374
|
+
}
|
|
37375
|
+
return (jsxRuntime.jsx(FilterMultiSelect, { label: field.placeholder ?? 'Select options', value: selected, onChange: (next) => onChange(next), options: options.map((option) => ({ value: option, label: option })), triggerClassName: "w-full" }));
|
|
37376
|
+
}
|
|
37377
|
+
case 'toggle':
|
|
37378
|
+
return (jsxRuntime.jsx("div", { className: "flex h-9 items-center", children: jsxRuntime.jsx(ToggleSwitch, { checked: value === true, disabled: disabled, onCheckedChange: (checked) => onChange(checked) }) }));
|
|
37379
|
+
case 'time':
|
|
37380
|
+
return (jsxRuntime.jsx(TimePicker, { name: field.id, disabled: disabled, placeholder: disabled ? NOT_CAPTURED : (field.placeholder ?? 'Select time'), value: asText(value), onChange: (next) => onChange(next ?? null) }));
|
|
37381
|
+
case 'email':
|
|
37382
|
+
case 'phone':
|
|
37383
|
+
return (jsxRuntime.jsx(Input, { id: field.id, type: field.type === 'email' ? 'email' : 'tel', inputMode: field.type === 'phone' ? 'tel' : undefined, disabled: disabled, placeholder: placeholder ?? field.placeholder, "aria-invalid": invalid, value: asText(value), onChange: (e) => onChange(e.target.value) }));
|
|
37384
|
+
case 'image':
|
|
37385
|
+
case 'file':
|
|
37386
|
+
case 'docsWithExpiry':
|
|
37387
|
+
return (renderUpload?.({
|
|
37388
|
+
id: field.id,
|
|
37389
|
+
variant: field.type,
|
|
37390
|
+
value,
|
|
37391
|
+
expiryDateLabel: field.expiryDateLabel,
|
|
37392
|
+
disabled,
|
|
37393
|
+
onChange,
|
|
37394
|
+
}) ?? null);
|
|
37395
|
+
case 'textarea':
|
|
37396
|
+
return (jsxRuntime.jsx(Textarea, { id: field.id, rows: 3, disabled: disabled, placeholder: placeholder ?? field.placeholder, "aria-invalid": invalid, value: asText(value), onChange: (e) => onChange(e.target.value) }));
|
|
37397
|
+
case 'number':
|
|
37398
|
+
// The unit is carried by the label, so the input keeps its full width.
|
|
37399
|
+
return (jsxRuntime.jsx(NumberInput, { id: field.id, disabled: disabled, placeholder: placeholder ?? field.placeholder, "aria-invalid": invalid, value: typeof value === 'number' ? value : '', emitUndefinedOnEmpty: true, onChange: (v) => onChange(v ?? null), className: "h-9 w-full" }));
|
|
37400
|
+
case 'date':
|
|
37401
|
+
return (jsxRuntime.jsx(DateInput, { name: field.id, disabled: disabled, placeholder: placeholder ?? field.placeholder, max: field.maxDate, value: typeof value === 'string' && value ? new Date(value) : undefined, onChange: (date) => onChange(date ? date.toISOString() : null) }));
|
|
37402
|
+
case 'checkbox':
|
|
37403
|
+
return (jsxRuntime.jsxs("label", { className: "flex h-9 cursor-pointer select-none items-center gap-2", children: [jsxRuntime.jsx(Checkbox, { id: field.id, disabled: disabled, checked: value === true, onCheckedChange: (checked) => onChange(checked === true) }), jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: disabled ? (value === true ? 'Yes' : 'No') : 'Yes' })] }));
|
|
37404
|
+
default:
|
|
37405
|
+
return (jsxRuntime.jsx(Input, { id: field.id, disabled: disabled, placeholder: placeholder ?? field.placeholder, "aria-invalid": invalid, value: asText(value), onChange: (e) => onChange(e.target.value) }));
|
|
37406
|
+
}
|
|
37407
|
+
}
|
|
37408
|
+
|
|
37409
|
+
const formatDate = (iso) => {
|
|
37410
|
+
const date = new Date(iso);
|
|
37411
|
+
return Number.isNaN(date.getTime())
|
|
37412
|
+
? iso
|
|
37413
|
+
: date.toLocaleDateString(undefined, {
|
|
37414
|
+
day: '2-digit',
|
|
37415
|
+
month: 'short',
|
|
37416
|
+
year: 'numeric',
|
|
37417
|
+
});
|
|
37418
|
+
};
|
|
37419
|
+
const isUpload = (value) => !!value && typeof value === 'object' && 'key' in value;
|
|
37420
|
+
const FileLink = ({ file }) => file.url ? (jsxRuntime.jsxs("a", { href: file.url, target: "_blank", rel: "noreferrer", className: "inline-flex items-center gap-1.5 text-primary hover:underline", children: [jsxRuntime.jsx(FileText, { className: "h-3.5 w-3.5 shrink-0", "aria-hidden": true }), file.name] })) : (jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-1.5", children: [jsxRuntime.jsx(FileText, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground", "aria-hidden": true }), file.name] }));
|
|
37421
|
+
/** Muted dash, so an uncaptured field reads as blank rather than as a value. */
|
|
37422
|
+
const EmptyValue = () => (jsxRuntime.jsx("span", { className: "text-muted-foreground/60", children: "\u2014" }));
|
|
37423
|
+
/**
|
|
37424
|
+
* A captured value rendered for reading rather than editing. Edit forms use
|
|
37425
|
+
* real inputs; a disabled input full of placeholders is much harder to scan
|
|
37426
|
+
* than plain text, and reads as broken rather than empty.
|
|
37427
|
+
*/
|
|
37428
|
+
function CustomFieldValue({ type, value, unit, }) {
|
|
37429
|
+
if (isValueEmpty(value))
|
|
37430
|
+
return jsxRuntime.jsx(EmptyValue, {});
|
|
37431
|
+
switch (type) {
|
|
37432
|
+
case 'checkbox':
|
|
37433
|
+
case 'toggle':
|
|
37434
|
+
return jsxRuntime.jsx("span", { children: value === true ? 'Yes' : 'No' });
|
|
37435
|
+
case 'date':
|
|
37436
|
+
return jsxRuntime.jsx("span", { children: typeof value === 'string' ? formatDate(value) : '—' });
|
|
37437
|
+
case 'multiSelect':
|
|
37438
|
+
return (jsxRuntime.jsx("span", { children: Array.isArray(value) ? value.join(', ') : String(value) }));
|
|
37439
|
+
case 'image':
|
|
37440
|
+
case 'file':
|
|
37441
|
+
return isUpload(value) ? jsxRuntime.jsx(FileLink, { file: value }) : jsxRuntime.jsx(EmptyValue, {});
|
|
37442
|
+
case 'docsWithExpiry': {
|
|
37443
|
+
const doc = value;
|
|
37444
|
+
if (!isUpload(doc.file))
|
|
37445
|
+
return jsxRuntime.jsx(EmptyValue, {});
|
|
37446
|
+
return (jsxRuntime.jsxs("span", { className: "flex flex-col gap-0.5", children: [jsxRuntime.jsx(FileLink, { file: doc.file }), doc.expiryDate && (jsxRuntime.jsxs("span", { className: "text-xs text-muted-foreground", children: ["Expires ", formatDate(doc.expiryDate)] }))] }));
|
|
37447
|
+
}
|
|
37448
|
+
case 'number': {
|
|
37449
|
+
const text = typeof value === 'number' ? value.toLocaleString() : String(value);
|
|
37450
|
+
return (jsxRuntime.jsx("span", { className: "tabular-nums", children: unit ? `${text} ${unit}` : text }));
|
|
37451
|
+
}
|
|
37452
|
+
default:
|
|
37453
|
+
return (jsxRuntime.jsx("span", { className: "whitespace-pre-wrap break-words", children: String(value) }));
|
|
37454
|
+
}
|
|
37455
|
+
}
|
|
37456
|
+
|
|
37457
|
+
const FIELD_TYPE_ICONS = {
|
|
37458
|
+
text: Type,
|
|
37459
|
+
textarea: AlignLeft,
|
|
37460
|
+
email: Mail,
|
|
37461
|
+
phone: Phone,
|
|
37462
|
+
number: Hash,
|
|
37463
|
+
date: Calendar$1,
|
|
37464
|
+
time: Clock,
|
|
37465
|
+
dropdown: CircleChevronDown,
|
|
37466
|
+
radio: CircleDot,
|
|
37467
|
+
checkbox: SquareCheckBig,
|
|
37468
|
+
multiSelect: ListChecks,
|
|
37469
|
+
toggle: ToggleLeft,
|
|
37470
|
+
boolean: ToggleLeft,
|
|
37471
|
+
image: Image$1,
|
|
37472
|
+
file: Paperclip,
|
|
37473
|
+
docsWithExpiry: Paperclip,
|
|
37474
|
+
};
|
|
37475
|
+
/** Glyph for a field type, so a list of fields is scannable at a glance. */
|
|
37476
|
+
function fieldTypeIcon(type) {
|
|
37477
|
+
return FIELD_TYPE_ICONS[type] ?? Type;
|
|
37478
|
+
}
|
|
37479
|
+
|
|
36964
37480
|
/**
|
|
36965
37481
|
* Compact "time ago" label, e.g. "5m ago". Falls back to a locale date past a
|
|
36966
37482
|
* week so older entries stay scannable.
|
|
@@ -37992,28 +38508,6 @@ function PurchaseOrderComboBox({ selectedItem, onSelect, fetchPurchaseOrders, se
|
|
|
37992
38508
|
: '', fetchPage: fetchPage, resolveById: resolveById, preSelectedId: preSelectedId, searchPlaceholder: searchPlaceholder, emptyMessage: "No purchase orders found.", disabled: disabled, className: className, align: align }));
|
|
37993
38509
|
}
|
|
37994
38510
|
|
|
37995
|
-
/**
|
|
37996
|
-
* Horizontal row of option cards behaving as a radio group.
|
|
37997
|
-
* Selected option highlights with primary border + light green background + filled dot.
|
|
37998
|
-
* Unselected options have an empty circle indicator.
|
|
37999
|
-
*/
|
|
38000
|
-
function RadioCardGroup({ value, onChange, options, className, disabled, name, ariaLabel, iconSize = 'sm', }) {
|
|
38001
|
-
const iconSizeClasses = iconSize === 'xl'
|
|
38002
|
-
? '[&_svg]:h-10 [&_svg]:w-10'
|
|
38003
|
-
: iconSize === 'lg'
|
|
38004
|
-
? '[&_svg]:h-6 [&_svg]:w-6'
|
|
38005
|
-
: '[&_svg]:h-4 [&_svg]:w-4';
|
|
38006
|
-
return (jsxRuntime.jsx("div", { role: "radiogroup", "aria-label": ariaLabel, className: cn('grid w-full grid-cols-2 gap-3 sm:grid-cols-4', className), children: options.map((opt) => {
|
|
38007
|
-
const selected = value === opt.value;
|
|
38008
|
-
const isDisabled = disabled || opt.disabled;
|
|
38009
|
-
return (jsxRuntime.jsxs("button", { type: "button", role: "radio", "aria-checked": selected, disabled: isDisabled, "data-state": selected ? 'checked' : 'unchecked', onClick: () => !isDisabled && onChange(opt.value), name: name, className: cn('flex w-full cursor-pointer gap-3 rounded-md border px-3 text-sm font-medium shadow-[0_1px_2px_0_rgba(0,0,0,0.05)] transition-colors disabled:cursor-not-allowed', 'outline-none focus-visible:ring-2 focus-visible:ring-primary/30', opt.description
|
|
38010
|
-
? 'min-h-14 items-start py-2 text-left'
|
|
38011
|
-
: 'h-9 items-center py-1.5', selected
|
|
38012
|
-
? 'border-primary bg-primary/10 text-primary'
|
|
38013
|
-
: 'border-transparent bg-[#FAFAFA] text-foreground dark:bg-[#262626]', isDisabled && 'cursor-not-allowed opacity-50'), children: [jsxRuntime.jsx("span", { "aria-hidden": "true", className: cn('relative inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border', opt.description && 'mt-[3px]', selected ? 'border-primary' : 'border-gray-300'), children: selected && (jsxRuntime.jsx("span", { className: "block h-2 w-2 rounded-full bg-primary" })) }), jsxRuntime.jsxs("span", { className: "flex min-w-0 flex-1 flex-col items-start", children: [jsxRuntime.jsx("span", { className: "truncate", children: opt.label }), opt.description && (jsxRuntime.jsx("span", { className: cn('mt-0.5 text-xs font-normal', selected ? 'text-primary/80' : 'text-label'), children: opt.description }))] }), opt.icon && (jsxRuntime.jsx("span", { "aria-hidden": "true", className: cn('inline-flex shrink-0 items-center', iconSizeClasses, selected ? 'text-primary' : 'text-label'), children: opt.icon }))] }, opt.value));
|
|
38014
|
-
}) }));
|
|
38015
|
-
}
|
|
38016
|
-
|
|
38017
38511
|
// ::- Persistent data structure representing an ordered mapping from
|
|
38018
38512
|
// strings to values, with some convenient update methods.
|
|
38019
38513
|
function OrderedMap(content) {
|
|
@@ -66702,158 +67196,6 @@ function TagsInput({ value, onChange, placeholder, helperText, uppercase = false
|
|
|
66702
67196
|
return (jsxRuntime.jsxs("div", { className: "w-full", children: [jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [jsxRuntime.jsx(Input, { value: input, onChange: onInputChange, onKeyDown: onInputKeyDown, placeholder: placeholder || 'Type and Press Enter', className: "flex-1 bg-formInput" }), jsxRuntime.jsxs(Button$1, { type: "button", onClick: addTag, disabled: addDisabled, className: "h-9 gap-1.5 disabled:opacity-50", children: [jsxRuntime.jsx(Plus, { className: "h-4 w-4" }), "Add"] })] }), helperText && (jsxRuntime.jsx("p", { className: "mt-1.5 text-xs text-muted-foreground", children: helperText })), value.length > 0 && (jsxRuntime.jsx("div", { className: "mt-3 flex flex-wrap gap-2", children: value.map((tag, idx) => (jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-1.5 rounded-md border border-border bg-secondary px-2 py-1 text-xs font-medium text-foreground", children: [tag, jsxRuntime.jsx("button", { type: "button", onClick: () => removeTag(idx), "aria-label": `Remove ${tag}`, className: "cursor-pointer text-muted-foreground transition-colors hover:text-foreground", children: jsxRuntime.jsx(X$2, { className: "h-3 w-3" }) })] }, idx))) }))] }));
|
|
66703
67197
|
}
|
|
66704
67198
|
|
|
66705
|
-
/**
|
|
66706
|
-
* One scrolling column of the picker (hours, minutes or period). The selected
|
|
66707
|
-
* row is scrolled into view whenever it changes, so reopening the popover lands
|
|
66708
|
-
* on the current value instead of at midnight.
|
|
66709
|
-
*/
|
|
66710
|
-
function TimeColumn({ label, options, selected, onSelect, }) {
|
|
66711
|
-
const listRef = React.useRef(null);
|
|
66712
|
-
const activeRef = React.useRef(null);
|
|
66713
|
-
React.useEffect(() => {
|
|
66714
|
-
const list = listRef.current;
|
|
66715
|
-
const active = activeRef.current;
|
|
66716
|
-
if (!list || !active)
|
|
66717
|
-
return;
|
|
66718
|
-
// `scrollIntoView` would scroll the page as well as the column.
|
|
66719
|
-
list.scrollTop =
|
|
66720
|
-
active.offsetTop - list.clientHeight / 2 + active.clientHeight / 2;
|
|
66721
|
-
}, [selected]);
|
|
66722
|
-
return (jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-col", children: [jsxRuntime.jsx("span", { className: "px-1 pb-1.5 text-center text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: label }), jsxRuntime.jsx("div", { ref: listRef, role: "listbox", "aria-label": label, className: "scrollbar-thin h-[184px] overflow-y-auto px-1", children: jsxRuntime.jsx("div", { className: "flex flex-col gap-0.5", children: options.map((option) => {
|
|
66723
|
-
const isSelected = option.value === selected;
|
|
66724
|
-
return (jsxRuntime.jsx("button", { ref: isSelected ? activeRef : undefined, type: "button", role: "option", "aria-selected": isSelected, onClick: () => onSelect(option.value), className: cn('rounded-md px-3 py-1.5 text-center text-sm tabular-nums transition-colors', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring', isSelected
|
|
66725
|
-
? 'bg-primary text-primary-foreground'
|
|
66726
|
-
: 'text-foreground hover:bg-muted'), children: option.label }, option.value));
|
|
66727
|
-
}) }) })] }));
|
|
66728
|
-
}
|
|
66729
|
-
|
|
66730
|
-
const TIME_PATTERN = /^(\d{1,2}):(\d{2})(?::\d{2})?$/;
|
|
66731
|
-
const pad = (n) => String(n).padStart(2, '0');
|
|
66732
|
-
/** Reads `HH:mm` / `HH:mm:ss`. Returns null for anything out of range. */
|
|
66733
|
-
function parseTimeValue(value) {
|
|
66734
|
-
const match = TIME_PATTERN.exec((value ?? '').trim());
|
|
66735
|
-
if (!match)
|
|
66736
|
-
return null;
|
|
66737
|
-
const hour = Number(match[1]);
|
|
66738
|
-
const minute = Number(match[2]);
|
|
66739
|
-
if (hour > 23 || minute > 59)
|
|
66740
|
-
return null;
|
|
66741
|
-
return { hour, minute };
|
|
66742
|
-
}
|
|
66743
|
-
/** The stored form — always 24-hour, whatever the display format. */
|
|
66744
|
-
function toTimeValue(hour, minute) {
|
|
66745
|
-
return `${pad(hour)}:${pad(minute)}`;
|
|
66746
|
-
}
|
|
66747
|
-
function formatTimeDisplay(time, use24Hour) {
|
|
66748
|
-
if (use24Hour)
|
|
66749
|
-
return toTimeValue(time.hour, time.minute);
|
|
66750
|
-
// 0 and 12 both map to 12 — midnight is 12 AM, noon is 12 PM.
|
|
66751
|
-
const hour12 = time.hour % 12 === 0 ? 12 : time.hour % 12;
|
|
66752
|
-
const period = time.hour < 12 ? 'AM' : 'PM';
|
|
66753
|
-
return `${pad(hour12)}:${pad(time.minute)} ${period}`;
|
|
66754
|
-
}
|
|
66755
|
-
function buildHourOptions(use24Hour) {
|
|
66756
|
-
if (use24Hour) {
|
|
66757
|
-
return Array.from({ length: 24 }, (_, hour) => ({
|
|
66758
|
-
value: hour,
|
|
66759
|
-
label: pad(hour),
|
|
66760
|
-
}));
|
|
66761
|
-
}
|
|
66762
|
-
// 12 first, matching how a clock reads.
|
|
66763
|
-
return Array.from({ length: 12 }, (_, index) => {
|
|
66764
|
-
const hour12 = index === 0 ? 12 : index;
|
|
66765
|
-
return { value: hour12, label: pad(hour12) };
|
|
66766
|
-
});
|
|
66767
|
-
}
|
|
66768
|
-
function buildMinuteOptions(step) {
|
|
66769
|
-
const safeStep = Number.isFinite(step) && step > 0 ? Math.floor(step) : 1;
|
|
66770
|
-
const options = [];
|
|
66771
|
-
for (let minute = 0; minute < 60; minute += safeStep) {
|
|
66772
|
-
options.push({ value: minute, label: pad(minute) });
|
|
66773
|
-
}
|
|
66774
|
-
return options;
|
|
66775
|
-
}
|
|
66776
|
-
/** The hour as the 12-hour column shows it (12, 1…11). */
|
|
66777
|
-
function toHour12(hour) {
|
|
66778
|
-
return hour % 12 === 0 ? 12 : hour % 12;
|
|
66779
|
-
}
|
|
66780
|
-
/** Rebuilds a 24-hour hour from a 12-hour column value and its period. */
|
|
66781
|
-
function fromHour12(hour12, period) {
|
|
66782
|
-
const base = hour12 % 12;
|
|
66783
|
-
return period === 'PM' ? base + 12 : base;
|
|
66784
|
-
}
|
|
66785
|
-
function periodOf(hour) {
|
|
66786
|
-
return hour < 12 ? 'AM' : 'PM';
|
|
66787
|
-
}
|
|
66788
|
-
|
|
66789
|
-
// Only one TimePicker popover should be open at a time — same coordination the
|
|
66790
|
-
// DateInput uses, for the same reason: each is its own `modal` Radix Popover, so
|
|
66791
|
-
// opening a second does not dismiss the first by outside-click.
|
|
66792
|
-
const TIMEPICKER_OPEN_EVENT = 'caratlogic:timepicker-open';
|
|
66793
|
-
const PERIOD_OPTIONS = [
|
|
66794
|
-
{ value: 0, label: 'AM' },
|
|
66795
|
-
{ value: 1, label: 'PM' },
|
|
66796
|
-
];
|
|
66797
|
-
function TimePicker({ value, onChange, onBlur, name, className, disabled, placeholder = 'Select time', use24Hour = false, minuteStep = 1, hideFooter = false, }) {
|
|
66798
|
-
const [open, setOpen] = React.useState(false);
|
|
66799
|
-
const instanceId = React.useId();
|
|
66800
|
-
const parsed = parseTimeValue(value);
|
|
66801
|
-
React.useEffect(() => {
|
|
66802
|
-
const onOtherOpen = (e) => {
|
|
66803
|
-
if (e.detail !== instanceId)
|
|
66804
|
-
setOpen(false);
|
|
66805
|
-
};
|
|
66806
|
-
window.addEventListener(TIMEPICKER_OPEN_EVENT, onOtherOpen);
|
|
66807
|
-
return () => window.removeEventListener(TIMEPICKER_OPEN_EVENT, onOtherOpen);
|
|
66808
|
-
}, [instanceId]);
|
|
66809
|
-
const handleOpenChange = (next) => {
|
|
66810
|
-
setOpen(next);
|
|
66811
|
-
if (next) {
|
|
66812
|
-
window.dispatchEvent(new CustomEvent(TIMEPICKER_OPEN_EVENT, { detail: instanceId }));
|
|
66813
|
-
}
|
|
66814
|
-
};
|
|
66815
|
-
/** Picking one column before the others commits against a 00:00 baseline. */
|
|
66816
|
-
const commit = (hour, minute) => {
|
|
66817
|
-
onChange(toTimeValue(hour, minute));
|
|
66818
|
-
};
|
|
66819
|
-
const handleHour = (picked) => {
|
|
66820
|
-
const minute = parsed?.minute ?? 0;
|
|
66821
|
-
if (use24Hour) {
|
|
66822
|
-
commit(picked, minute);
|
|
66823
|
-
return;
|
|
66824
|
-
}
|
|
66825
|
-
commit(fromHour12(picked, parsed ? periodOf(parsed.hour) : 'AM'), minute);
|
|
66826
|
-
};
|
|
66827
|
-
const handleMinute = (picked) => {
|
|
66828
|
-
commit(parsed?.hour ?? 0, picked);
|
|
66829
|
-
};
|
|
66830
|
-
const handlePeriod = (picked) => {
|
|
66831
|
-
const period = picked === 0 ? 'AM' : 'PM';
|
|
66832
|
-
const hour12 = parsed ? toHour12(parsed.hour) : 12;
|
|
66833
|
-
commit(fromHour12(hour12, period), parsed?.minute ?? 0);
|
|
66834
|
-
};
|
|
66835
|
-
const selectedHour = parsed
|
|
66836
|
-
? use24Hour
|
|
66837
|
-
? parsed.hour
|
|
66838
|
-
: toHour12(parsed.hour)
|
|
66839
|
-
: null;
|
|
66840
|
-
// NOTE: `open` is driven from the button's onClick rather than
|
|
66841
|
-
// <PopoverTrigger>, matching DateInput — inside a modal <SlideOut> the
|
|
66842
|
-
// trigger's built-in toggle does not fire in Safari. <PopoverAnchor> is pure
|
|
66843
|
-
// positioning, so a single controlled toggle stays the only source of truth.
|
|
66844
|
-
return (jsxRuntime.jsxs(Popover, { open: open, onOpenChange: handleOpenChange, modal: true, children: [jsxRuntime.jsx(PopoverAnchor, { asChild: true, children: jsxRuntime.jsxs("button", { type: "button", name: name, onBlur: onBlur, disabled: disabled, "aria-haspopup": "dialog", "aria-expanded": open, onClick: () => {
|
|
66845
|
-
if (!disabled)
|
|
66846
|
-
handleOpenChange(!open);
|
|
66847
|
-
}, "data-slot": "input", "data-empty": !parsed || undefined, className: cn('border-input-border flex h-9 w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-1 text-left shadow-[0_1px_2px_0_#0000000d] transition-[color,box-shadow] outline-none', 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]', 'aria-invalid:ring-destructive/20 aria-invalid:border-destructive', disabled && 'cursor-not-allowed bg-muted/50 text-label', className), children: [jsxRuntime.jsx("span", { className: cn('truncate text-sm md:text-sm', parsed ? 'text-foreground' : 'text-placeholder'), children: parsed ? formatTimeDisplay(parsed, use24Hour) : placeholder }), jsxRuntime.jsx("span", { className: "inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground", children: jsxRuntime.jsx(Clock, { className: "h-4 w-4 stroke-[1.75]" }) })] }) }), jsxRuntime.jsxs(PopoverContent, { align: "start", className: "w-auto p-3", children: [jsxRuntime.jsxs("div", { className: "flex gap-1", children: [jsxRuntime.jsx(TimeColumn, { label: "Hour", options: buildHourOptions(use24Hour), selected: selectedHour, onSelect: handleHour }), jsxRuntime.jsx(TimeColumn, { label: "Min", options: buildMinuteOptions(minuteStep), selected: parsed?.minute ?? null, onSelect: handleMinute }), !use24Hour && (jsxRuntime.jsx(TimeColumn, { label: "AM/PM", options: PERIOD_OPTIONS, selected: parsed ? (periodOf(parsed.hour) === 'AM' ? 0 : 1) : null, onSelect: handlePeriod }))] }), !hideFooter && (jsxRuntime.jsxs("div", { className: "mt-2 flex items-center justify-between gap-2 border-t border-border pt-2", children: [jsxRuntime.jsx("button", { type: "button", onClick: () => {
|
|
66848
|
-
onChange(undefined);
|
|
66849
|
-
setOpen(false);
|
|
66850
|
-
}, className: "rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: "Clear" }), jsxRuntime.jsx("button", { type: "button", onClick: () => {
|
|
66851
|
-
const now = new Date();
|
|
66852
|
-
commit(now.getHours(), now.getMinutes());
|
|
66853
|
-
setOpen(false);
|
|
66854
|
-
}, className: "rounded-md px-2 py-1 text-xs font-medium text-primary transition-colors hover:text-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: "Now" })] }))] })] }));
|
|
66855
|
-
}
|
|
66856
|
-
|
|
66857
67199
|
function mapToItem(w, separator) {
|
|
66858
67200
|
const id = w.id || w.warehouseId || '';
|
|
66859
67201
|
if (!id)
|
|
@@ -77010,6 +77352,8 @@ exports.CurrencyDisplayTabs = CurrencyDisplayTabs;
|
|
|
77010
77352
|
exports.CurrencyInput = CurrencyInput;
|
|
77011
77353
|
exports.CurrencyToggle = CurrencyToggle;
|
|
77012
77354
|
exports.CustomCombobox = CustomCombobox;
|
|
77355
|
+
exports.CustomFieldInput = CustomFieldInput;
|
|
77356
|
+
exports.CustomFieldValue = CustomFieldValue;
|
|
77013
77357
|
exports.CustomTable = CustomTable;
|
|
77014
77358
|
exports.CustomizeColumnsDrawer = CustomizeColumnsDrawer;
|
|
77015
77359
|
exports.DIAMOND_AUDIT_CONFIG = DIAMOND_AUDIT_CONFIG;
|
|
@@ -77035,6 +77379,7 @@ exports.DropdownMenuSub = DropdownMenuSub;
|
|
|
77035
77379
|
exports.DropdownMenuSubContent = DropdownMenuSubContent;
|
|
77036
77380
|
exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
|
|
77037
77381
|
exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
77382
|
+
exports.EmptyValue = EmptyValue;
|
|
77038
77383
|
exports.EntityHeader = EntityHeader;
|
|
77039
77384
|
exports.Field = Field;
|
|
77040
77385
|
exports.FieldSkeleton = FieldSkeleton;
|
|
@@ -77071,6 +77416,7 @@ exports.MetricTile = MetricTile;
|
|
|
77071
77416
|
exports.Modal = Modal;
|
|
77072
77417
|
exports.MoreInfoPanel = MoreInfoPanel;
|
|
77073
77418
|
exports.MoreInfoTrigger = MoreInfoTrigger;
|
|
77419
|
+
exports.NOT_CAPTURED = NOT_CAPTURED;
|
|
77074
77420
|
exports.Navbar = Navbar;
|
|
77075
77421
|
exports.NavbarActions = NavbarActions;
|
|
77076
77422
|
exports.NavbarAvatar = NavbarAvatar;
|
|
@@ -77157,6 +77503,8 @@ exports.TruncateTooltip = TruncateTooltip;
|
|
|
77157
77503
|
exports.WarehouseComboBox = WarehouseComboBox;
|
|
77158
77504
|
exports.WarehouseFilter = WarehouseFilter;
|
|
77159
77505
|
exports.ZoomSplitViewer = ZoomSplitViewer;
|
|
77506
|
+
exports.asList = asList;
|
|
77507
|
+
exports.asText = asText;
|
|
77160
77508
|
exports.badgeVariants = badgeVariants;
|
|
77161
77509
|
exports.buildBulkShareTitle = buildBulkShareTitle;
|
|
77162
77510
|
exports.buildInventoryPublicUrl = buildInventoryPublicUrl;
|
|
@@ -77169,6 +77517,7 @@ exports.countries = countries;
|
|
|
77169
77517
|
exports.countryByCode = countryByCode;
|
|
77170
77518
|
exports.createVideoMediaItem = createVideoMediaItem;
|
|
77171
77519
|
exports.dropdownMenuItemDestructiveClass = dropdownMenuItemDestructiveClass;
|
|
77520
|
+
exports.fieldTypeIcon = fieldTypeIcon;
|
|
77172
77521
|
exports.findRegion = findRegion;
|
|
77173
77522
|
exports.flagEmoji = flagEmoji;
|
|
77174
77523
|
exports.formatAddressLocation = formatAddressLocation;
|
|
@@ -77183,10 +77532,12 @@ exports.getStatesOfCountry = getStatesOfCountry;
|
|
|
77183
77532
|
exports.iconButtonVariants = iconButtonVariants;
|
|
77184
77533
|
exports.inAppNotificationCardA11y = inAppNotificationCardA11y;
|
|
77185
77534
|
exports.inAppNotificationsPanelA11y = inAppNotificationsPanelA11y;
|
|
77535
|
+
exports.isBlank = isBlank;
|
|
77186
77536
|
exports.isIndiaCountry = isIndiaCountry;
|
|
77187
77537
|
exports.isKnownRegion = isKnownRegion;
|
|
77188
77538
|
exports.isPathActive = isPathActive;
|
|
77189
77539
|
exports.isValidAlpha2CountryCode = isValidAlpha2CountryCode;
|
|
77540
|
+
exports.isValueEmpty = isValueEmpty;
|
|
77190
77541
|
exports.notify = notify;
|
|
77191
77542
|
exports.releaseStaleOverlayBodyLock = releaseStaleOverlayBodyLock;
|
|
77192
77543
|
exports.renderBadge = renderBadge;
|