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