@use-stall/ui 0.1.2 → 0.1.3
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/dist/index.d.mts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +164 -131
- package/dist/index.mjs +149 -118
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -153,6 +153,8 @@ __export(index_exports, {
|
|
|
153
153
|
InputOTPGroup: () => InputOTPGroup,
|
|
154
154
|
InputOTPSeparator: () => InputOTPSeparator,
|
|
155
155
|
InputOTPSlot: () => InputOTPSlot,
|
|
156
|
+
Kbd: () => Kbd,
|
|
157
|
+
KbdKey: () => KbdKey,
|
|
156
158
|
Label: () => Label2,
|
|
157
159
|
MultiSelect: () => MultiSelect,
|
|
158
160
|
PhoneNumberInput: () => PhoneNumberInput,
|
|
@@ -2532,26 +2534,55 @@ InputOTPSlot.displayName = "InputOTPSlot";
|
|
|
2532
2534
|
var InputOTPSeparator = React20.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react10.Dot, {}) }));
|
|
2533
2535
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
2534
2536
|
|
|
2537
|
+
// src/components/kbd.tsx
|
|
2538
|
+
var import_react3 = require("react");
|
|
2539
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2540
|
+
var DefaultKbdSeparator = ({
|
|
2541
|
+
className,
|
|
2542
|
+
children = "+",
|
|
2543
|
+
...props
|
|
2544
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: cn("text-muted-foreground/50", className), ...props, children });
|
|
2545
|
+
var Kbd = ({
|
|
2546
|
+
className,
|
|
2547
|
+
separator = /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DefaultKbdSeparator, {}),
|
|
2548
|
+
children,
|
|
2549
|
+
...props
|
|
2550
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2551
|
+
"span",
|
|
2552
|
+
{
|
|
2553
|
+
className: cn(
|
|
2554
|
+
"inline-flex select-none items-center gap-1 rounded border bg-muted px-1.5 align-middle font-medium font-mono text-[10px] text-muted-foreground leading-loose",
|
|
2555
|
+
className
|
|
2556
|
+
),
|
|
2557
|
+
...props,
|
|
2558
|
+
children: Array.isArray(children) ? children.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_react3.Fragment, { children: [
|
|
2559
|
+
child,
|
|
2560
|
+
index < children.length - 1 && separator
|
|
2561
|
+
] }, index)) : children
|
|
2562
|
+
}
|
|
2563
|
+
);
|
|
2564
|
+
var KbdKey = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("kbd", { ...props });
|
|
2565
|
+
|
|
2535
2566
|
// src/components/modal-container.tsx
|
|
2536
|
-
var
|
|
2567
|
+
var import_react4 = __toESM(require("react"));
|
|
2537
2568
|
var import_framer_motion = require("framer-motion");
|
|
2538
|
-
var
|
|
2539
|
-
var ModalContainer =
|
|
2540
|
-
return /* @__PURE__ */ (0,
|
|
2569
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
2570
|
+
var ModalContainer = import_react4.default.memo((props) => {
|
|
2571
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2541
2572
|
import_framer_motion.motion.div,
|
|
2542
2573
|
{
|
|
2543
2574
|
initial: { y: 10, opacity: 0 },
|
|
2544
2575
|
exit: { y: 10, opacity: 0 },
|
|
2545
2576
|
animate: { y: 0, opacity: 1 },
|
|
2546
2577
|
className: "fixed inset-0 md:inset-2 md:rounded-xl md:border-4 border-white dark:border-zinc-700\n shadow-3xl bg-main-background overflow-hidden z-10",
|
|
2547
|
-
children: /* @__PURE__ */ (0,
|
|
2578
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "w-full h-full overflow-hidden overflow-y-auto flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "w-full max-w-[700px] h-fit shrink-0 overflow-hidden flex flex-col p-4", children: props.children }) })
|
|
2548
2579
|
}
|
|
2549
2580
|
);
|
|
2550
2581
|
});
|
|
2551
2582
|
|
|
2552
2583
|
// src/components/multi-select.tsx
|
|
2553
2584
|
var React22 = __toESM(require("react"));
|
|
2554
|
-
var
|
|
2585
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2555
2586
|
var MultiSelect = ({
|
|
2556
2587
|
options: options2 = [],
|
|
2557
2588
|
value = [],
|
|
@@ -2575,7 +2606,7 @@ var MultiSelect = ({
|
|
|
2575
2606
|
},
|
|
2576
2607
|
[onValueChange]
|
|
2577
2608
|
);
|
|
2578
|
-
return /* @__PURE__ */ (0,
|
|
2609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2579
2610
|
Combobox,
|
|
2580
2611
|
{
|
|
2581
2612
|
required,
|
|
@@ -2585,15 +2616,15 @@ var MultiSelect = ({
|
|
|
2585
2616
|
onValueChange: handleValueChange,
|
|
2586
2617
|
disabled: maxCount === options2.length,
|
|
2587
2618
|
children: [
|
|
2588
|
-
/* @__PURE__ */ (0,
|
|
2619
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2589
2620
|
ComboboxChips,
|
|
2590
2621
|
{
|
|
2591
2622
|
className: cn(
|
|
2592
2623
|
"min-h-10! before:hidden shadow-none rounded-10!",
|
|
2593
2624
|
className
|
|
2594
2625
|
),
|
|
2595
|
-
children: /* @__PURE__ */ (0,
|
|
2596
|
-
value2?.map((item) => /* @__PURE__ */ (0,
|
|
2626
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ComboboxValue, { children: (value2) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(React22.Fragment, { children: [
|
|
2627
|
+
value2?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2597
2628
|
ComboboxChip,
|
|
2598
2629
|
{
|
|
2599
2630
|
"aria-label": item.value,
|
|
@@ -2602,7 +2633,7 @@ var MultiSelect = ({
|
|
|
2602
2633
|
},
|
|
2603
2634
|
item.value
|
|
2604
2635
|
)),
|
|
2605
|
-
/* @__PURE__ */ (0,
|
|
2636
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2606
2637
|
ComboboxInput,
|
|
2607
2638
|
{
|
|
2608
2639
|
placeholder: value2.length > 0 ? void 0 : placeholder || "Select an item...",
|
|
@@ -2616,14 +2647,14 @@ var MultiSelect = ({
|
|
|
2616
2647
|
] }) })
|
|
2617
2648
|
}
|
|
2618
2649
|
),
|
|
2619
|
-
/* @__PURE__ */ (0,
|
|
2620
|
-
/* @__PURE__ */ (0,
|
|
2621
|
-
/* @__PURE__ */ (0,
|
|
2650
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(ComboboxPopup, { className: "rounded-xl", children: [
|
|
2651
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(ComboboxEmpty, { className: "w-full center-flex flex-col", children: [
|
|
2652
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2622
2653
|
"div",
|
|
2623
2654
|
{
|
|
2624
2655
|
style: { borderRadius: "30% 70% 70% 30% / 30% 38% 62% 70%" },
|
|
2625
2656
|
className: "mt-8 size-24 center-flex bg-accent/50 rounded-blob",
|
|
2626
|
-
children: /* @__PURE__ */ (0,
|
|
2657
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2627
2658
|
"img",
|
|
2628
2659
|
{
|
|
2629
2660
|
src: "/images/no-direction.png",
|
|
@@ -2633,10 +2664,10 @@ var MultiSelect = ({
|
|
|
2633
2664
|
)
|
|
2634
2665
|
}
|
|
2635
2666
|
),
|
|
2636
|
-
/* @__PURE__ */ (0,
|
|
2637
|
-
/* @__PURE__ */ (0,
|
|
2667
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("h1", { className: "mt-4 text-sm text-foreground font-semibold", children: "Nothing Found" }),
|
|
2668
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "mt-1 mb-8 text-sm text-center text-muted-foreground max-w-62", children: "We couldn't find anything matching your search" })
|
|
2638
2669
|
] }),
|
|
2639
|
-
/* @__PURE__ */ (0,
|
|
2670
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ComboboxList, { children: (item) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2640
2671
|
ComboboxItem,
|
|
2641
2672
|
{
|
|
2642
2673
|
value: item,
|
|
@@ -2654,11 +2685,11 @@ MultiSelect.displayName = "MultiSelect";
|
|
|
2654
2685
|
|
|
2655
2686
|
// src/components/password-input.tsx
|
|
2656
2687
|
var import_lucide_react11 = require("lucide-react");
|
|
2657
|
-
var
|
|
2658
|
-
var
|
|
2659
|
-
var PasswordInput =
|
|
2688
|
+
var import_react5 = __toESM(require("react"));
|
|
2689
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2690
|
+
var PasswordInput = import_react5.default.forwardRef(
|
|
2660
2691
|
({ className, onSubmit, showStrength, ...props }, ref) => {
|
|
2661
|
-
const [isVisible, setIsVisible] =
|
|
2692
|
+
const [isVisible, setIsVisible] = import_react5.default.useState(false);
|
|
2662
2693
|
const toggleVisibility = () => setIsVisible((prevState) => !prevState);
|
|
2663
2694
|
const checkStrength = (pass) => {
|
|
2664
2695
|
const requirements = [
|
|
@@ -2673,7 +2704,7 @@ var PasswordInput = import_react4.default.forwardRef(
|
|
|
2673
2704
|
}));
|
|
2674
2705
|
};
|
|
2675
2706
|
const strength = checkStrength(props.value?.toString() || "");
|
|
2676
|
-
const strengthScore =
|
|
2707
|
+
const strengthScore = import_react5.default.useMemo(() => {
|
|
2677
2708
|
return strength.filter((req) => req.met).length;
|
|
2678
2709
|
}, [strength]);
|
|
2679
2710
|
const getStrengthColor = (score) => {
|
|
@@ -2696,9 +2727,9 @@ var PasswordInput = import_react4.default.forwardRef(
|
|
|
2696
2727
|
}
|
|
2697
2728
|
onSubmit?.(event);
|
|
2698
2729
|
};
|
|
2699
|
-
return /* @__PURE__ */ (0,
|
|
2700
|
-
/* @__PURE__ */ (0,
|
|
2701
|
-
/* @__PURE__ */ (0,
|
|
2730
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "relative w-full", children: [
|
|
2731
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "relative w-full", children: [
|
|
2732
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2702
2733
|
Input,
|
|
2703
2734
|
{
|
|
2704
2735
|
className: cn("pe-9", className),
|
|
@@ -2709,7 +2740,7 @@ var PasswordInput = import_react4.default.forwardRef(
|
|
|
2709
2740
|
onSubmit: handleSubmit
|
|
2710
2741
|
}
|
|
2711
2742
|
),
|
|
2712
|
-
showStrength && /* @__PURE__ */ (0,
|
|
2743
|
+
showStrength && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2713
2744
|
"input",
|
|
2714
2745
|
{
|
|
2715
2746
|
title: "password",
|
|
@@ -2719,7 +2750,7 @@ var PasswordInput = import_react4.default.forwardRef(
|
|
|
2719
2750
|
value: showStrength ? strengthScore >= 4 ? props?.value : "" : props.value
|
|
2720
2751
|
}
|
|
2721
2752
|
),
|
|
2722
|
-
/* @__PURE__ */ (0,
|
|
2753
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2723
2754
|
"button",
|
|
2724
2755
|
{
|
|
2725
2756
|
className: "absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-10 text-muted-foreground/80 outline-offset-2 transition-colors hover:text-foreground focus:z-10 focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-ring/70 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -2728,12 +2759,12 @@ var PasswordInput = import_react4.default.forwardRef(
|
|
|
2728
2759
|
"aria-label": isVisible ? "Hide password" : "Show password",
|
|
2729
2760
|
"aria-pressed": isVisible,
|
|
2730
2761
|
"aria-controls": "password",
|
|
2731
|
-
children: isVisible ? /* @__PURE__ */ (0,
|
|
2762
|
+
children: isVisible ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react11.EyeOff, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react11.Eye, { size: 16, strokeWidth: 2, "aria-hidden": "true" })
|
|
2732
2763
|
}
|
|
2733
2764
|
)
|
|
2734
2765
|
] }),
|
|
2735
|
-
showStrength && /* @__PURE__ */ (0,
|
|
2736
|
-
/* @__PURE__ */ (0,
|
|
2766
|
+
showStrength && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_react5.default.Fragment, { children: [
|
|
2767
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2737
2768
|
"div",
|
|
2738
2769
|
{
|
|
2739
2770
|
className: "my-3 h-1 w-full overflow-hidden rounded-full bg-border",
|
|
@@ -2742,7 +2773,7 @@ var PasswordInput = import_react4.default.forwardRef(
|
|
|
2742
2773
|
"aria-valuemin": 0,
|
|
2743
2774
|
"aria-valuemax": 4,
|
|
2744
2775
|
"aria-label": "Password strength",
|
|
2745
|
-
children: /* @__PURE__ */ (0,
|
|
2776
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2746
2777
|
"div",
|
|
2747
2778
|
{
|
|
2748
2779
|
className: `h-full ${getStrengthColor(
|
|
@@ -2753,7 +2784,7 @@ var PasswordInput = import_react4.default.forwardRef(
|
|
|
2753
2784
|
)
|
|
2754
2785
|
}
|
|
2755
2786
|
),
|
|
2756
|
-
/* @__PURE__ */ (0,
|
|
2787
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
2757
2788
|
"p",
|
|
2758
2789
|
{
|
|
2759
2790
|
id: "password-strength",
|
|
@@ -2764,15 +2795,15 @@ var PasswordInput = import_react4.default.forwardRef(
|
|
|
2764
2795
|
]
|
|
2765
2796
|
}
|
|
2766
2797
|
),
|
|
2767
|
-
/* @__PURE__ */ (0,
|
|
2768
|
-
req.met ? /* @__PURE__ */ (0,
|
|
2798
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("ul", { className: "space-y-1.5", "aria-label": "Password requirements", children: strength.map((req, index) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("li", { className: "flex items-center gap-2", children: [
|
|
2799
|
+
req.met ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2769
2800
|
import_lucide_react11.Check,
|
|
2770
2801
|
{
|
|
2771
2802
|
size: 16,
|
|
2772
2803
|
className: "text-emerald-500",
|
|
2773
2804
|
"aria-hidden": "true"
|
|
2774
2805
|
}
|
|
2775
|
-
) : /* @__PURE__ */ (0,
|
|
2806
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2776
2807
|
import_lucide_react11.X,
|
|
2777
2808
|
{
|
|
2778
2809
|
size: 16,
|
|
@@ -2780,13 +2811,13 @@ var PasswordInput = import_react4.default.forwardRef(
|
|
|
2780
2811
|
"aria-hidden": "true"
|
|
2781
2812
|
}
|
|
2782
2813
|
),
|
|
2783
|
-
/* @__PURE__ */ (0,
|
|
2814
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
2784
2815
|
"span",
|
|
2785
2816
|
{
|
|
2786
2817
|
className: `text-xs ${req.met ? "text-emerald-600" : "text-muted-foreground"}`,
|
|
2787
2818
|
children: [
|
|
2788
2819
|
req.text,
|
|
2789
|
-
/* @__PURE__ */ (0,
|
|
2820
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "sr-only", children: req.met ? " - Requirement met" : " - Requirement not met" })
|
|
2790
2821
|
]
|
|
2791
2822
|
}
|
|
2792
2823
|
)
|
|
@@ -2796,20 +2827,20 @@ var PasswordInput = import_react4.default.forwardRef(
|
|
|
2796
2827
|
}
|
|
2797
2828
|
);
|
|
2798
2829
|
PasswordInput.displayName = "PasswordInput";
|
|
2799
|
-
var password_input_default =
|
|
2830
|
+
var password_input_default = import_react5.default.memo(PasswordInput);
|
|
2800
2831
|
|
|
2801
2832
|
// src/components/phone-number-input.tsx
|
|
2802
2833
|
var import_lucide_react12 = require("lucide-react");
|
|
2803
|
-
var
|
|
2834
|
+
var import_react6 = require("react");
|
|
2804
2835
|
var RPNInput = __toESM(require("react-phone-number-input"));
|
|
2805
2836
|
var import_flags = __toESM(require("react-phone-number-input/flags"));
|
|
2806
2837
|
var import_react_phone_number_input = require("react-phone-number-input");
|
|
2807
|
-
var
|
|
2838
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2808
2839
|
function PhoneNumberInput({
|
|
2809
2840
|
className = "",
|
|
2810
2841
|
...props
|
|
2811
2842
|
}) {
|
|
2812
|
-
const [error, setError] = (0,
|
|
2843
|
+
const [error, setError] = (0, import_react6.useState)(null);
|
|
2813
2844
|
const handleChange = (newValue) => {
|
|
2814
2845
|
if (newValue && !(0, import_react_phone_number_input.isValidPhoneNumber)(newValue)) {
|
|
2815
2846
|
setError("Invalid phone number");
|
|
@@ -2818,7 +2849,7 @@ function PhoneNumberInput({
|
|
|
2818
2849
|
}
|
|
2819
2850
|
props.onChange(newValue ?? "");
|
|
2820
2851
|
};
|
|
2821
|
-
return /* @__PURE__ */ (0,
|
|
2852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2822
2853
|
RPNInput.default,
|
|
2823
2854
|
{
|
|
2824
2855
|
className: cn("flex rounded-md", error && "border border-red-500/70"),
|
|
@@ -2834,9 +2865,9 @@ function PhoneNumberInput({
|
|
|
2834
2865
|
}
|
|
2835
2866
|
) });
|
|
2836
2867
|
}
|
|
2837
|
-
var PhoneInput = (0,
|
|
2868
|
+
var PhoneInput = (0, import_react6.forwardRef)(
|
|
2838
2869
|
({ className, ...props }, ref) => {
|
|
2839
|
-
return /* @__PURE__ */ (0,
|
|
2870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2840
2871
|
Input,
|
|
2841
2872
|
{
|
|
2842
2873
|
className: cn(
|
|
@@ -2859,7 +2890,7 @@ var CountrySelect = ({
|
|
|
2859
2890
|
const handleSelect = (event) => {
|
|
2860
2891
|
onChange(event.target.value);
|
|
2861
2892
|
};
|
|
2862
|
-
return /* @__PURE__ */ (0,
|
|
2893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2863
2894
|
"div",
|
|
2864
2895
|
{
|
|
2865
2896
|
className: cn(`relative inline-flex items-center self-stretch rounded-s-10 border border-input
|
|
@@ -2867,11 +2898,11 @@ var CountrySelect = ({
|
|
|
2867
2898
|
focus-within:border-ring focus-within:outline-none focus-within:ring-[3px] focus-within:ring-ring/20
|
|
2868
2899
|
hover:text-foreground has-disabled:pointer-events-none has-disabled:opacity-50`),
|
|
2869
2900
|
children: [
|
|
2870
|
-
/* @__PURE__ */ (0,
|
|
2871
|
-
/* @__PURE__ */ (0,
|
|
2872
|
-
/* @__PURE__ */ (0,
|
|
2901
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "inline-flex items-center gap-1", "aria-hidden": "true", children: [
|
|
2902
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(FlagComponent, { country: value, countryName: value, "aria-hidden": "true" }),
|
|
2903
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-muted-foreground/80", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react12.ChevronDown, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) })
|
|
2873
2904
|
] }),
|
|
2874
|
-
/* @__PURE__ */ (0,
|
|
2905
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2875
2906
|
"select",
|
|
2876
2907
|
{
|
|
2877
2908
|
disabled,
|
|
@@ -2880,8 +2911,8 @@ var CountrySelect = ({
|
|
|
2880
2911
|
className: "absolute inset-0 text-sm opacity-0",
|
|
2881
2912
|
"aria-label": "Select country",
|
|
2882
2913
|
children: [
|
|
2883
|
-
/* @__PURE__ */ (0,
|
|
2884
|
-
options2.filter((x) => x.value).map((option, i) => /* @__PURE__ */ (0,
|
|
2914
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("option", { value: "", children: "Select a country" }, "default"),
|
|
2915
|
+
options2.filter((x) => x.value).map((option, i) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("option", { value: option.value, children: [
|
|
2885
2916
|
option.label,
|
|
2886
2917
|
" ",
|
|
2887
2918
|
option.value && `+${RPNInput.getCountryCallingCode(option.value)}`
|
|
@@ -2895,15 +2926,15 @@ var CountrySelect = ({
|
|
|
2895
2926
|
};
|
|
2896
2927
|
var FlagComponent = ({ country, countryName }) => {
|
|
2897
2928
|
const Flag = import_flags.default[country];
|
|
2898
|
-
return /* @__PURE__ */ (0,
|
|
2929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "w-5 overflow-hidden rounded-sm", children: Flag ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Flag, { title: countryName }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react12.Phone, { size: 16, "aria-hidden": "true" }) });
|
|
2899
2930
|
};
|
|
2900
2931
|
|
|
2901
2932
|
// src/components/price-input.tsx
|
|
2902
|
-
var
|
|
2903
|
-
var
|
|
2904
|
-
var PriceInput =
|
|
2933
|
+
var import_react7 = __toESM(require("react"));
|
|
2934
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2935
|
+
var PriceInput = import_react7.default.forwardRef(
|
|
2905
2936
|
({ currency, ...props }, ref) => {
|
|
2906
|
-
return /* @__PURE__ */ (0,
|
|
2937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
2907
2938
|
"div",
|
|
2908
2939
|
{
|
|
2909
2940
|
className: cn(
|
|
@@ -2911,8 +2942,8 @@ var PriceInput = import_react6.default.forwardRef(
|
|
|
2911
2942
|
props.containerClassname
|
|
2912
2943
|
),
|
|
2913
2944
|
children: [
|
|
2914
|
-
!props.hide_currency_symbol && /* @__PURE__ */ (0,
|
|
2915
|
-
/* @__PURE__ */ (0,
|
|
2945
|
+
!props.hide_currency_symbol && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "absolute inset-y-0.5 flex items-center pl-4 pr-2", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "[fontSize:inherit] font-medium text-muted-foreground/50", children: currency?.symbol }) }),
|
|
2946
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2916
2947
|
Input,
|
|
2917
2948
|
{
|
|
2918
2949
|
ref,
|
|
@@ -2922,7 +2953,7 @@ var PriceInput = import_react6.default.forwardRef(
|
|
|
2922
2953
|
className: cn("px-10 shadow-none m-0! py-0", props.className)
|
|
2923
2954
|
}
|
|
2924
2955
|
),
|
|
2925
|
-
!props.hide_currency_code && /* @__PURE__ */ (0,
|
|
2956
|
+
!props.hide_currency_code && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "absolute inset-y-0.5 right-0 flex items-center pl-3 pr-4", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "[fontSize:inherit] font-medium text-muted-foreground/50", children: currency?.code }) })
|
|
2926
2957
|
]
|
|
2927
2958
|
}
|
|
2928
2959
|
);
|
|
@@ -2933,8 +2964,8 @@ PriceInput.displayName = "PriceInput";
|
|
|
2933
2964
|
// src/components/progress.tsx
|
|
2934
2965
|
var React26 = __toESM(require("react"));
|
|
2935
2966
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
|
2936
|
-
var
|
|
2937
|
-
var Progress = React26.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2967
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2968
|
+
var Progress = React26.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2938
2969
|
ProgressPrimitive.Root,
|
|
2939
2970
|
{
|
|
2940
2971
|
ref,
|
|
@@ -2943,7 +2974,7 @@ var Progress = React26.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2943
2974
|
className
|
|
2944
2975
|
),
|
|
2945
2976
|
...props,
|
|
2946
|
-
children: /* @__PURE__ */ (0,
|
|
2977
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2947
2978
|
ProgressPrimitive.Indicator,
|
|
2948
2979
|
{
|
|
2949
2980
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
@@ -2958,11 +2989,11 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
|
2958
2989
|
var React27 = __toESM(require("react"));
|
|
2959
2990
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
|
|
2960
2991
|
var import_lucide_react13 = require("lucide-react");
|
|
2961
|
-
var
|
|
2992
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2962
2993
|
var Select = SelectPrimitive.Root;
|
|
2963
2994
|
var SelectGroup = SelectPrimitive.Group;
|
|
2964
2995
|
var SelectValue = SelectPrimitive.Value;
|
|
2965
|
-
var SelectTrigger = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2996
|
+
var SelectTrigger = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2966
2997
|
SelectPrimitive.Trigger,
|
|
2967
2998
|
{
|
|
2968
2999
|
ref,
|
|
@@ -2973,12 +3004,12 @@ var SelectTrigger = React27.forwardRef(({ className, children, ...props }, ref)
|
|
|
2973
3004
|
...props,
|
|
2974
3005
|
children: [
|
|
2975
3006
|
children,
|
|
2976
|
-
/* @__PURE__ */ (0,
|
|
3007
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react13.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
2977
3008
|
]
|
|
2978
3009
|
}
|
|
2979
3010
|
));
|
|
2980
3011
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2981
|
-
var SelectScrollUpButton = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3012
|
+
var SelectScrollUpButton = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2982
3013
|
SelectPrimitive.ScrollUpButton,
|
|
2983
3014
|
{
|
|
2984
3015
|
ref,
|
|
@@ -2987,11 +3018,11 @@ var SelectScrollUpButton = React27.forwardRef(({ className, ...props }, ref) =>
|
|
|
2987
3018
|
className
|
|
2988
3019
|
),
|
|
2989
3020
|
...props,
|
|
2990
|
-
children: /* @__PURE__ */ (0,
|
|
3021
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react13.ChevronUp, { className: "h-4 w-4" })
|
|
2991
3022
|
}
|
|
2992
3023
|
));
|
|
2993
3024
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
2994
|
-
var SelectScrollDownButton = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3025
|
+
var SelectScrollDownButton = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2995
3026
|
SelectPrimitive.ScrollDownButton,
|
|
2996
3027
|
{
|
|
2997
3028
|
ref,
|
|
@@ -3000,11 +3031,11 @@ var SelectScrollDownButton = React27.forwardRef(({ className, ...props }, ref) =
|
|
|
3000
3031
|
className
|
|
3001
3032
|
),
|
|
3002
3033
|
...props,
|
|
3003
|
-
children: /* @__PURE__ */ (0,
|
|
3034
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react13.ChevronDown, { className: "h-4 w-4" })
|
|
3004
3035
|
}
|
|
3005
3036
|
));
|
|
3006
3037
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
3007
|
-
var SelectContent = React27.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0,
|
|
3038
|
+
var SelectContent = React27.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
3008
3039
|
SelectPrimitive.Content,
|
|
3009
3040
|
{
|
|
3010
3041
|
ref,
|
|
@@ -3016,8 +3047,8 @@ var SelectContent = React27.forwardRef(({ className, children, position = "poppe
|
|
|
3016
3047
|
position,
|
|
3017
3048
|
...props,
|
|
3018
3049
|
children: [
|
|
3019
|
-
/* @__PURE__ */ (0,
|
|
3020
|
-
/* @__PURE__ */ (0,
|
|
3050
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectScrollUpButton, {}),
|
|
3051
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3021
3052
|
SelectPrimitive.Viewport,
|
|
3022
3053
|
{
|
|
3023
3054
|
className: cn(
|
|
@@ -3027,12 +3058,12 @@ var SelectContent = React27.forwardRef(({ className, children, position = "poppe
|
|
|
3027
3058
|
children
|
|
3028
3059
|
}
|
|
3029
3060
|
),
|
|
3030
|
-
/* @__PURE__ */ (0,
|
|
3061
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectScrollDownButton, {})
|
|
3031
3062
|
]
|
|
3032
3063
|
}
|
|
3033
3064
|
) }));
|
|
3034
3065
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
3035
|
-
var SelectLabel = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3066
|
+
var SelectLabel = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3036
3067
|
SelectPrimitive.Label,
|
|
3037
3068
|
{
|
|
3038
3069
|
ref,
|
|
@@ -3041,7 +3072,7 @@ var SelectLabel = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3041
3072
|
}
|
|
3042
3073
|
));
|
|
3043
3074
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
3044
|
-
var SelectItem = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3075
|
+
var SelectItem = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
3045
3076
|
SelectPrimitive.Item,
|
|
3046
3077
|
{
|
|
3047
3078
|
ref,
|
|
@@ -3051,13 +3082,13 @@ var SelectItem = React27.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
3051
3082
|
),
|
|
3052
3083
|
...props,
|
|
3053
3084
|
children: [
|
|
3054
|
-
/* @__PURE__ */ (0,
|
|
3055
|
-
/* @__PURE__ */ (0,
|
|
3085
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react13.Check, { className: "h-4 w-4" }) }) }),
|
|
3086
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.ItemText, { children })
|
|
3056
3087
|
]
|
|
3057
3088
|
}
|
|
3058
3089
|
));
|
|
3059
3090
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
3060
|
-
var SelectSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3091
|
+
var SelectSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3061
3092
|
SelectPrimitive.Separator,
|
|
3062
3093
|
{
|
|
3063
3094
|
ref,
|
|
@@ -3070,9 +3101,9 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
|
3070
3101
|
// src/components/separator.tsx
|
|
3071
3102
|
var React28 = __toESM(require("react"));
|
|
3072
3103
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
|
|
3073
|
-
var
|
|
3104
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3074
3105
|
var Separator3 = React28.forwardRef(
|
|
3075
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3106
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3076
3107
|
SeparatorPrimitive.Root,
|
|
3077
3108
|
{
|
|
3078
3109
|
ref,
|
|
@@ -3094,12 +3125,12 @@ var React29 = __toESM(require("react"));
|
|
|
3094
3125
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
3095
3126
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
3096
3127
|
var import_lucide_react14 = require("lucide-react");
|
|
3097
|
-
var
|
|
3128
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3098
3129
|
var Sheet = SheetPrimitive.Root;
|
|
3099
3130
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
3100
3131
|
var SheetClose = SheetPrimitive.Close;
|
|
3101
3132
|
var SheetPortal = SheetPrimitive.Portal;
|
|
3102
|
-
var SheetOverlay = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3133
|
+
var SheetOverlay = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3103
3134
|
SheetPrimitive.Overlay,
|
|
3104
3135
|
{
|
|
3105
3136
|
className: cn(
|
|
@@ -3127,9 +3158,9 @@ var sheetVariants = (0, import_class_variance_authority4.cva)(
|
|
|
3127
3158
|
}
|
|
3128
3159
|
}
|
|
3129
3160
|
);
|
|
3130
|
-
var SheetContent = React29.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3131
|
-
/* @__PURE__ */ (0,
|
|
3132
|
-
/* @__PURE__ */ (0,
|
|
3161
|
+
var SheetContent = React29.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(SheetPortal, { children: [
|
|
3162
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SheetOverlay, {}),
|
|
3163
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
3133
3164
|
SheetPrimitive.Content,
|
|
3134
3165
|
{
|
|
3135
3166
|
ref,
|
|
@@ -3137,9 +3168,9 @@ var SheetContent = React29.forwardRef(({ side = "right", className, children, ..
|
|
|
3137
3168
|
...props,
|
|
3138
3169
|
children: [
|
|
3139
3170
|
children,
|
|
3140
|
-
/* @__PURE__ */ (0,
|
|
3141
|
-
/* @__PURE__ */ (0,
|
|
3142
|
-
/* @__PURE__ */ (0,
|
|
3171
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
3172
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.X, { className: "h-4 w-4" }),
|
|
3173
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "sr-only", children: "Close" })
|
|
3143
3174
|
] })
|
|
3144
3175
|
]
|
|
3145
3176
|
}
|
|
@@ -3149,7 +3180,7 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
|
3149
3180
|
var SheetHeader = ({
|
|
3150
3181
|
className,
|
|
3151
3182
|
...props
|
|
3152
|
-
}) => /* @__PURE__ */ (0,
|
|
3183
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3153
3184
|
"div",
|
|
3154
3185
|
{
|
|
3155
3186
|
className: cn(
|
|
@@ -3163,7 +3194,7 @@ SheetHeader.displayName = "SheetHeader";
|
|
|
3163
3194
|
var SheetFooter = ({
|
|
3164
3195
|
className,
|
|
3165
3196
|
...props
|
|
3166
|
-
}) => /* @__PURE__ */ (0,
|
|
3197
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3167
3198
|
"div",
|
|
3168
3199
|
{
|
|
3169
3200
|
className: cn(
|
|
@@ -3174,7 +3205,7 @@ var SheetFooter = ({
|
|
|
3174
3205
|
}
|
|
3175
3206
|
);
|
|
3176
3207
|
SheetFooter.displayName = "SheetFooter";
|
|
3177
|
-
var SheetTitle = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3208
|
+
var SheetTitle = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3178
3209
|
SheetPrimitive.Title,
|
|
3179
3210
|
{
|
|
3180
3211
|
ref,
|
|
@@ -3183,7 +3214,7 @@ var SheetTitle = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3183
3214
|
}
|
|
3184
3215
|
));
|
|
3185
3216
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
3186
|
-
var SheetDescription = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3217
|
+
var SheetDescription = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3187
3218
|
SheetPrimitive.Description,
|
|
3188
3219
|
{
|
|
3189
3220
|
ref,
|
|
@@ -3194,12 +3225,12 @@ var SheetDescription = React29.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3194
3225
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
3195
3226
|
|
|
3196
3227
|
// src/components/skeleton.tsx
|
|
3197
|
-
var
|
|
3228
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3198
3229
|
function Skeleton({
|
|
3199
3230
|
className,
|
|
3200
3231
|
...props
|
|
3201
3232
|
}) {
|
|
3202
|
-
return /* @__PURE__ */ (0,
|
|
3233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3203
3234
|
"div",
|
|
3204
3235
|
{
|
|
3205
3236
|
className: cn("animate-pulse rounded-lg bg-muted", className),
|
|
@@ -3212,7 +3243,7 @@ function Skeleton({
|
|
|
3212
3243
|
var import_merge_props3 = require("@base-ui-components/react/merge-props");
|
|
3213
3244
|
var import_use_render3 = require("@base-ui-components/react/use-render");
|
|
3214
3245
|
var import_class_variance_authority5 = require("class-variance-authority");
|
|
3215
|
-
var
|
|
3246
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3216
3247
|
var statusIndicatorVariants = (0, import_class_variance_authority5.cva)(
|
|
3217
3248
|
"relative inline-flex size-2.5 shrink-0",
|
|
3218
3249
|
{
|
|
@@ -3243,8 +3274,8 @@ function StatusIndicator({
|
|
|
3243
3274
|
return (0, import_use_render3.useRender)({
|
|
3244
3275
|
defaultTagName: "span",
|
|
3245
3276
|
props: (0, import_merge_props3.mergeProps)(defaultProps, props),
|
|
3246
|
-
render: render || /* @__PURE__ */ (0,
|
|
3247
|
-
/* @__PURE__ */ (0,
|
|
3277
|
+
render: render || /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("span", { ...defaultProps, children: [
|
|
3278
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3248
3279
|
"span",
|
|
3249
3280
|
{
|
|
3250
3281
|
className: cn(
|
|
@@ -3253,16 +3284,16 @@ function StatusIndicator({
|
|
|
3253
3284
|
)
|
|
3254
3285
|
}
|
|
3255
3286
|
),
|
|
3256
|
-
/* @__PURE__ */ (0,
|
|
3287
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "relative inline-flex rounded-full size-2.5" })
|
|
3257
3288
|
] })
|
|
3258
3289
|
});
|
|
3259
3290
|
}
|
|
3260
3291
|
|
|
3261
3292
|
// src/components/switch.tsx
|
|
3262
3293
|
var import_switch = require("@base-ui-components/react/switch");
|
|
3263
|
-
var
|
|
3294
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3264
3295
|
function Switch({ className, ...props }) {
|
|
3265
|
-
return /* @__PURE__ */ (0,
|
|
3296
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3266
3297
|
import_switch.Switch.Root,
|
|
3267
3298
|
{
|
|
3268
3299
|
className: cn(
|
|
@@ -3271,7 +3302,7 @@ function Switch({ className, ...props }) {
|
|
|
3271
3302
|
),
|
|
3272
3303
|
"data-slot": "switch",
|
|
3273
3304
|
...props,
|
|
3274
|
-
children: /* @__PURE__ */ (0,
|
|
3305
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3275
3306
|
import_switch.Switch.Thumb,
|
|
3276
3307
|
{
|
|
3277
3308
|
className: cn(
|
|
@@ -3285,14 +3316,14 @@ function Switch({ className, ...props }) {
|
|
|
3285
3316
|
}
|
|
3286
3317
|
|
|
3287
3318
|
// src/components/table.tsx
|
|
3288
|
-
var
|
|
3319
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3289
3320
|
function Table({ className, ...props }) {
|
|
3290
|
-
return /* @__PURE__ */ (0,
|
|
3321
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3291
3322
|
"div",
|
|
3292
3323
|
{
|
|
3293
3324
|
className: "relative w-full overflow-x-auto",
|
|
3294
3325
|
"data-slot": "table-container",
|
|
3295
|
-
children: /* @__PURE__ */ (0,
|
|
3326
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3296
3327
|
"table",
|
|
3297
3328
|
{
|
|
3298
3329
|
className: cn(
|
|
@@ -3307,7 +3338,7 @@ function Table({ className, ...props }) {
|
|
|
3307
3338
|
);
|
|
3308
3339
|
}
|
|
3309
3340
|
function TableHeader({ className, ...props }) {
|
|
3310
|
-
return /* @__PURE__ */ (0,
|
|
3341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3311
3342
|
"thead",
|
|
3312
3343
|
{
|
|
3313
3344
|
className: cn(
|
|
@@ -3320,7 +3351,7 @@ function TableHeader({ className, ...props }) {
|
|
|
3320
3351
|
);
|
|
3321
3352
|
}
|
|
3322
3353
|
function TableBody({ className, ...props }) {
|
|
3323
|
-
return /* @__PURE__ */ (0,
|
|
3354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3324
3355
|
"tbody",
|
|
3325
3356
|
{
|
|
3326
3357
|
className: cn(
|
|
@@ -3333,7 +3364,7 @@ function TableBody({ className, ...props }) {
|
|
|
3333
3364
|
);
|
|
3334
3365
|
}
|
|
3335
3366
|
function TableFooter({ className, ...props }) {
|
|
3336
|
-
return /* @__PURE__ */ (0,
|
|
3367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3337
3368
|
"tfoot",
|
|
3338
3369
|
{
|
|
3339
3370
|
className: cn(
|
|
@@ -3346,7 +3377,7 @@ function TableFooter({ className, ...props }) {
|
|
|
3346
3377
|
);
|
|
3347
3378
|
}
|
|
3348
3379
|
function TableRow({ className, ...props }) {
|
|
3349
|
-
return /* @__PURE__ */ (0,
|
|
3380
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3350
3381
|
"tr",
|
|
3351
3382
|
{
|
|
3352
3383
|
className: cn(
|
|
@@ -3359,7 +3390,7 @@ function TableRow({ className, ...props }) {
|
|
|
3359
3390
|
);
|
|
3360
3391
|
}
|
|
3361
3392
|
function TableHead({ className, ...props }) {
|
|
3362
|
-
return /* @__PURE__ */ (0,
|
|
3393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3363
3394
|
"th",
|
|
3364
3395
|
{
|
|
3365
3396
|
className: cn(
|
|
@@ -3372,7 +3403,7 @@ function TableHead({ className, ...props }) {
|
|
|
3372
3403
|
);
|
|
3373
3404
|
}
|
|
3374
3405
|
function TableCell({ className, ...props }) {
|
|
3375
|
-
return /* @__PURE__ */ (0,
|
|
3406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3376
3407
|
"td",
|
|
3377
3408
|
{
|
|
3378
3409
|
className: cn(
|
|
@@ -3388,7 +3419,7 @@ function TableCaption({
|
|
|
3388
3419
|
className,
|
|
3389
3420
|
...props
|
|
3390
3421
|
}) {
|
|
3391
|
-
return /* @__PURE__ */ (0,
|
|
3422
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3392
3423
|
"caption",
|
|
3393
3424
|
{
|
|
3394
3425
|
className: cn(
|
|
@@ -3404,9 +3435,9 @@ function TableCaption({
|
|
|
3404
3435
|
// src/components/tabs.tsx
|
|
3405
3436
|
var React30 = __toESM(require("react"));
|
|
3406
3437
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
3407
|
-
var
|
|
3438
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3408
3439
|
var Tabs = TabsPrimitive.Root;
|
|
3409
|
-
var TabsList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3440
|
+
var TabsList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3410
3441
|
TabsPrimitive.List,
|
|
3411
3442
|
{
|
|
3412
3443
|
ref,
|
|
@@ -3418,7 +3449,7 @@ var TabsList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3418
3449
|
}
|
|
3419
3450
|
));
|
|
3420
3451
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
3421
|
-
var TabsTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3452
|
+
var TabsTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3422
3453
|
TabsPrimitive.Trigger,
|
|
3423
3454
|
{
|
|
3424
3455
|
ref,
|
|
@@ -3430,7 +3461,7 @@ var TabsTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3430
3461
|
}
|
|
3431
3462
|
));
|
|
3432
3463
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
3433
|
-
var TabsContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3464
|
+
var TabsContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3434
3465
|
TabsPrimitive.Content,
|
|
3435
3466
|
{
|
|
3436
3467
|
ref,
|
|
@@ -3445,15 +3476,15 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
|
3445
3476
|
|
|
3446
3477
|
// src/components/tags-input.tsx
|
|
3447
3478
|
var import_emblor = require("emblor");
|
|
3448
|
-
var
|
|
3449
|
-
var
|
|
3479
|
+
var import_react8 = require("react");
|
|
3480
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3450
3481
|
|
|
3451
3482
|
// src/components/textarea.tsx
|
|
3452
3483
|
var React31 = __toESM(require("react"));
|
|
3453
|
-
var
|
|
3484
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3454
3485
|
var Textarea = React31.forwardRef(
|
|
3455
3486
|
({ className, ...props }, ref) => {
|
|
3456
|
-
return /* @__PURE__ */ (0,
|
|
3487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3457
3488
|
"textarea",
|
|
3458
3489
|
{
|
|
3459
3490
|
className: cn(
|
|
@@ -3470,7 +3501,7 @@ Textarea.displayName = "Textarea";
|
|
|
3470
3501
|
|
|
3471
3502
|
// src/components/timeline.tsx
|
|
3472
3503
|
var React32 = __toESM(require("react"));
|
|
3473
|
-
var
|
|
3504
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3474
3505
|
var TimelineContext = React32.createContext(null);
|
|
3475
3506
|
function useTimeline() {
|
|
3476
3507
|
const context = React32.useContext(TimelineContext);
|
|
@@ -3480,7 +3511,7 @@ function useTimeline() {
|
|
|
3480
3511
|
return context;
|
|
3481
3512
|
}
|
|
3482
3513
|
var Timeline = React32.forwardRef(
|
|
3483
|
-
({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0,
|
|
3514
|
+
({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TimelineContext.Provider, { value: { orientation }, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3484
3515
|
"ol",
|
|
3485
3516
|
{
|
|
3486
3517
|
ref,
|
|
@@ -3498,7 +3529,7 @@ var Timeline = React32.forwardRef(
|
|
|
3498
3529
|
Timeline.displayName = "Timeline";
|
|
3499
3530
|
var TimelineItem = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3500
3531
|
const { orientation } = useTimeline();
|
|
3501
|
-
return /* @__PURE__ */ (0,
|
|
3532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3502
3533
|
"li",
|
|
3503
3534
|
{
|
|
3504
3535
|
ref,
|
|
@@ -3515,7 +3546,7 @@ var TimelineItem = React32.forwardRef(({ className, ...props }, ref) => {
|
|
|
3515
3546
|
TimelineItem.displayName = "TimelineItem";
|
|
3516
3547
|
var TimelineSeparator = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3517
3548
|
const { orientation } = useTimeline();
|
|
3518
|
-
return /* @__PURE__ */ (0,
|
|
3549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3519
3550
|
"div",
|
|
3520
3551
|
{
|
|
3521
3552
|
ref,
|
|
@@ -3532,7 +3563,7 @@ var TimelineSeparator = React32.forwardRef(({ className, ...props }, ref) => {
|
|
|
3532
3563
|
TimelineSeparator.displayName = "TimelineSeparator";
|
|
3533
3564
|
var TimelineDot = React32.forwardRef(({ variant = "default", className, ...props }, ref) => {
|
|
3534
3565
|
const { orientation } = useTimeline();
|
|
3535
|
-
return /* @__PURE__ */ (0,
|
|
3566
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3536
3567
|
"div",
|
|
3537
3568
|
{
|
|
3538
3569
|
ref,
|
|
@@ -3551,7 +3582,7 @@ var TimelineDot = React32.forwardRef(({ variant = "default", className, ...props
|
|
|
3551
3582
|
TimelineDot.displayName = "TimelineDot";
|
|
3552
3583
|
var TimelineConnector = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3553
3584
|
const { orientation } = useTimeline();
|
|
3554
|
-
return /* @__PURE__ */ (0,
|
|
3585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3555
3586
|
"div",
|
|
3556
3587
|
{
|
|
3557
3588
|
ref,
|
|
@@ -3569,7 +3600,7 @@ var TimelineConnector = React32.forwardRef(({ className, ...props }, ref) => {
|
|
|
3569
3600
|
TimelineConnector.displayName = "TimelineConnector";
|
|
3570
3601
|
var TimelineContent = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3571
3602
|
const { orientation } = useTimeline();
|
|
3572
|
-
return /* @__PURE__ */ (0,
|
|
3603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3573
3604
|
"div",
|
|
3574
3605
|
{
|
|
3575
3606
|
ref,
|
|
@@ -3587,12 +3618,12 @@ var TimelineContent = React32.forwardRef(({ className, ...props }, ref) => {
|
|
|
3587
3618
|
TimelineContent.displayName = "TimelineContent";
|
|
3588
3619
|
var TimelineTitle = React32.forwardRef((props, ref) => {
|
|
3589
3620
|
const { orientation } = useTimeline();
|
|
3590
|
-
return /* @__PURE__ */ (0,
|
|
3621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { ref, "data-orientation": orientation, ...props });
|
|
3591
3622
|
});
|
|
3592
3623
|
TimelineTitle.displayName = "TimelineTitle";
|
|
3593
3624
|
var TimelineDescription = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3594
3625
|
const { orientation } = useTimeline();
|
|
3595
|
-
return /* @__PURE__ */ (0,
|
|
3626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3596
3627
|
"div",
|
|
3597
3628
|
{
|
|
3598
3629
|
ref,
|
|
@@ -3607,11 +3638,11 @@ TimelineDescription.displayName = "TimelineDescription";
|
|
|
3607
3638
|
// src/components/tooltip.tsx
|
|
3608
3639
|
var React33 = __toESM(require("react"));
|
|
3609
3640
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
|
3610
|
-
var
|
|
3641
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3611
3642
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
3612
3643
|
var Tooltip = TooltipPrimitive.Root;
|
|
3613
3644
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
3614
|
-
var TooltipContent = React33.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3645
|
+
var TooltipContent = React33.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3615
3646
|
TooltipPrimitive.Content,
|
|
3616
3647
|
{
|
|
3617
3648
|
ref,
|
|
@@ -3749,6 +3780,8 @@ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
|
3749
3780
|
InputOTPGroup,
|
|
3750
3781
|
InputOTPSeparator,
|
|
3751
3782
|
InputOTPSlot,
|
|
3783
|
+
Kbd,
|
|
3784
|
+
KbdKey,
|
|
3752
3785
|
Label,
|
|
3753
3786
|
MultiSelect,
|
|
3754
3787
|
PhoneNumberInput,
|