@use-stall/ui 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +24 -3
- package/dist/index.d.ts +24 -3
- package/dist/index.js +261 -150
- package/dist/index.mjs +244 -136
- package/package.json +2 -1
package/dist/index.mjs
CHANGED
|
@@ -2244,24 +2244,100 @@ FormMessage.displayName = "FormMessage";
|
|
|
2244
2244
|
|
|
2245
2245
|
// src/components/image-card.tsx
|
|
2246
2246
|
import React19 from "react";
|
|
2247
|
+
|
|
2248
|
+
// src/components/image-zoom.tsx
|
|
2249
|
+
import Zoom from "react-medium-image-zoom";
|
|
2247
2250
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2251
|
+
var ImageZoom = ({
|
|
2252
|
+
className,
|
|
2253
|
+
backdropClassName,
|
|
2254
|
+
...props
|
|
2255
|
+
}) => /* @__PURE__ */ jsx23(
|
|
2256
|
+
"div",
|
|
2257
|
+
{
|
|
2258
|
+
className: cn(
|
|
2259
|
+
"relative",
|
|
2260
|
+
"**:data-rmiz-ghost:pointer-events-none **:data-rmiz-ghost:absolute",
|
|
2261
|
+
"**:data-rmiz-btn-zoom:m-0 **:data-rmiz-btn-zoom:size-10 **:data-rmiz-btn-zoom:touch-manipulation **:data-rmiz-btn-zoom:appearance-none **:data-rmiz-btn-zoom:rounded-[50%] **:data-rmiz-btn-zoom:border-none **:data-rmiz-btn-zoom:bg-foreground/70 **:data-rmiz-btn-zoom:p-2 **:data-rmiz-btn-zoom:text-background **:data-rmiz-btn-zoom:outline-offset-2",
|
|
2262
|
+
"**:data-rmiz-btn-unzoom:m-0 **:data-rmiz-btn-unzoom:size-10 **:data-rmiz-btn-unzoom:touch-manipulation **:data-rmiz-btn-unzoom:appearance-none **:data-rmiz-btn-unzoom:rounded-[50%] **:data-rmiz-btn-unzoom:border-none **:data-rmiz-btn-unzoom:bg-foreground/70 **:data-rmiz-btn-unzoom:p-2 **:data-rmiz-btn-unzoom:text-background **:data-rmiz-btn-unzoom:outline-offset-2",
|
|
2263
|
+
"[&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:pointer-events-none [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:absolute [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:size-px [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:overflow-hidden [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:whitespace-nowrap [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:[clip-path:inset(50%)] [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:[clip:rect(0_0_0_0)]",
|
|
2264
|
+
"**:data-rmiz-btn-zoom:absolute **:data-rmiz-btn-zoom:top-2.5 **:data-rmiz-btn-zoom:right-2.5 **:data-rmiz-btn-zoom:bottom-auto **:data-rmiz-btn-zoom:left-auto **:data-rmiz-btn-zoom:cursor-zoom-in",
|
|
2265
|
+
"**:data-rmiz-btn-unzoom:absolute **:data-rmiz-btn-unzoom:top-5 **:data-rmiz-btn-unzoom:right-5 **:data-rmiz-btn-unzoom:bottom-auto **:data-rmiz-btn-unzoom:left-auto **:data-rmiz-btn-unzoom:z-1 **:data-rmiz-btn-unzoom:cursor-zoom-out",
|
|
2266
|
+
'[&_[data-rmiz-content="found"]_img]:cursor-zoom-in',
|
|
2267
|
+
'[&_[data-rmiz-content="found"]_svg]:cursor-zoom-in',
|
|
2268
|
+
'[&_[data-rmiz-content="found"]_[role="img"]]:cursor-zoom-in',
|
|
2269
|
+
'[&_[data-rmiz-content="found"]_[data-zoom]]:cursor-zoom-in',
|
|
2270
|
+
className
|
|
2271
|
+
),
|
|
2272
|
+
children: /* @__PURE__ */ jsx23(
|
|
2273
|
+
Zoom,
|
|
2274
|
+
{
|
|
2275
|
+
classDialog: cn(
|
|
2276
|
+
"backdrop:hidden",
|
|
2277
|
+
"[[open]]:fixed [[open]]:m-0 [[open]]:h-dvh [[open]]:max-h-none [[open]]:w-dvw [[open]]:max-w-none [[open]]:overflow-hidden [[open]]:border-0 [[open]]:bg-transparent [[open]]:p-0",
|
|
2278
|
+
"**:data-rmiz-modal-overlay:absolute **:data-rmiz-modal-overlay:inset-0 **:data-rmiz-modal-overlay:transition-all",
|
|
2279
|
+
'**:data-[rmiz-modal-overlay="hidden"]:bg-transparent',
|
|
2280
|
+
'**:data-[rmiz-modal-overlay="visible"]:bg-background/80 **:data-[rmiz-modal-overlay="visible"]:backdrop-blur-md',
|
|
2281
|
+
"**:data-rmiz-modal-content:relative **:data-rmiz-modal-content:size-full",
|
|
2282
|
+
"**:data-rmiz-modal-img:absolute **:data-rmiz-modal-img:origin-top-left **:data-rmiz-modal-img:cursor-zoom-out **:data-rmiz-modal-img:transition-transform",
|
|
2283
|
+
"motion-reduce:**:data-rmiz-modal-img:transition-none motion-reduce:**:data-rmiz-modal-overlay:transition-none",
|
|
2284
|
+
backdropClassName
|
|
2285
|
+
),
|
|
2286
|
+
...props
|
|
2287
|
+
}
|
|
2288
|
+
)
|
|
2289
|
+
}
|
|
2290
|
+
);
|
|
2291
|
+
|
|
2292
|
+
// src/components/image-card.tsx
|
|
2293
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2248
2294
|
var ImageCard = React19.memo(
|
|
2249
|
-
({
|
|
2250
|
-
|
|
2251
|
-
|
|
2295
|
+
({
|
|
2296
|
+
src = "",
|
|
2297
|
+
alt = "",
|
|
2298
|
+
onErrorImage = "/images/default_prod.png",
|
|
2299
|
+
className,
|
|
2300
|
+
imageClassName,
|
|
2301
|
+
disableZoom = false
|
|
2302
|
+
}) => {
|
|
2303
|
+
return /* @__PURE__ */ jsx24(
|
|
2304
|
+
"div",
|
|
2252
2305
|
{
|
|
2253
|
-
onError: (e) => {
|
|
2254
|
-
const target = e?.currentTarget;
|
|
2255
|
-
if (target) {
|
|
2256
|
-
target.src = onErrorImage || "";
|
|
2257
|
-
}
|
|
2258
|
-
},
|
|
2259
|
-
src,
|
|
2260
|
-
alt,
|
|
2261
2306
|
className: cn(
|
|
2262
|
-
`h-
|
|
2263
|
-
|
|
2307
|
+
`h-9 w-9 rounded-lg shadow-sm drop-shadow-sm border border-border
|
|
2308
|
+
overflow-hidden bg-background shrink-0 relative`,
|
|
2264
2309
|
className
|
|
2310
|
+
),
|
|
2311
|
+
children: /* @__PURE__ */ jsx24(
|
|
2312
|
+
ImageZoom,
|
|
2313
|
+
{
|
|
2314
|
+
isDisabled: disableZoom,
|
|
2315
|
+
className: cn(
|
|
2316
|
+
`h-full w-full rounded-[inherit] overflow-hidden
|
|
2317
|
+
[&_div]:h-full [&_div]:w-full`,
|
|
2318
|
+
{
|
|
2319
|
+
"**:cursor-pointer!": disableZoom
|
|
2320
|
+
}
|
|
2321
|
+
),
|
|
2322
|
+
children: /* @__PURE__ */ jsx24(
|
|
2323
|
+
"img",
|
|
2324
|
+
{
|
|
2325
|
+
onError: (e) => {
|
|
2326
|
+
const target = e?.currentTarget;
|
|
2327
|
+
if (target) {
|
|
2328
|
+
target.src = onErrorImage;
|
|
2329
|
+
}
|
|
2330
|
+
},
|
|
2331
|
+
src,
|
|
2332
|
+
alt,
|
|
2333
|
+
className: cn(
|
|
2334
|
+
`h-full w-full bg-main-background object-cover! object-center! rounded-lg
|
|
2335
|
+
border-[3px] border-white dark:border-zinc-800`,
|
|
2336
|
+
imageClassName
|
|
2337
|
+
)
|
|
2338
|
+
}
|
|
2339
|
+
)
|
|
2340
|
+
}
|
|
2265
2341
|
)
|
|
2266
2342
|
}
|
|
2267
2343
|
);
|
|
@@ -2272,8 +2348,8 @@ var ImageCard = React19.memo(
|
|
|
2272
2348
|
import * as React20 from "react";
|
|
2273
2349
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
2274
2350
|
import { Dot } from "lucide-react";
|
|
2275
|
-
import { jsx as
|
|
2276
|
-
var InputOTP = React20.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */
|
|
2351
|
+
import { jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2352
|
+
var InputOTP = React20.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
2277
2353
|
OTPInput,
|
|
2278
2354
|
{
|
|
2279
2355
|
ref,
|
|
@@ -2286,7 +2362,7 @@ var InputOTP = React20.forwardRef(({ className, containerClassName, ...props },
|
|
|
2286
2362
|
}
|
|
2287
2363
|
));
|
|
2288
2364
|
InputOTP.displayName = "InputOTP";
|
|
2289
|
-
var InputOTPGroup = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2365
|
+
var InputOTPGroup = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
2290
2366
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
2291
2367
|
var InputOTPSlot = React20.forwardRef(({ index, className, ...props }, ref) => {
|
|
2292
2368
|
const inputOTPContext = React20.useContext(OTPInputContext);
|
|
@@ -2303,35 +2379,64 @@ var InputOTPSlot = React20.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
2303
2379
|
...props,
|
|
2304
2380
|
children: [
|
|
2305
2381
|
char,
|
|
2306
|
-
hasFakeCaret && /* @__PURE__ */
|
|
2382
|
+
hasFakeCaret && /* @__PURE__ */ jsx25("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx25("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
2307
2383
|
]
|
|
2308
2384
|
}
|
|
2309
2385
|
);
|
|
2310
2386
|
});
|
|
2311
2387
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
2312
|
-
var InputOTPSeparator = React20.forwardRef(({ ...props }, ref) => /* @__PURE__ */
|
|
2388
|
+
var InputOTPSeparator = React20.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx25("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx25(Dot, {}) }));
|
|
2313
2389
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
2314
2390
|
|
|
2391
|
+
// src/components/kbd.tsx
|
|
2392
|
+
import { Fragment } from "react";
|
|
2393
|
+
import { jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2394
|
+
var DefaultKbdSeparator = ({
|
|
2395
|
+
className,
|
|
2396
|
+
children = "+",
|
|
2397
|
+
...props
|
|
2398
|
+
}) => /* @__PURE__ */ jsx26("span", { className: cn("text-muted-foreground/50", className), ...props, children });
|
|
2399
|
+
var Kbd = ({
|
|
2400
|
+
className,
|
|
2401
|
+
separator = /* @__PURE__ */ jsx26(DefaultKbdSeparator, {}),
|
|
2402
|
+
children,
|
|
2403
|
+
...props
|
|
2404
|
+
}) => /* @__PURE__ */ jsx26(
|
|
2405
|
+
"span",
|
|
2406
|
+
{
|
|
2407
|
+
className: cn(
|
|
2408
|
+
"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",
|
|
2409
|
+
className
|
|
2410
|
+
),
|
|
2411
|
+
...props,
|
|
2412
|
+
children: Array.isArray(children) ? children.map((child, index) => /* @__PURE__ */ jsxs16(Fragment, { children: [
|
|
2413
|
+
child,
|
|
2414
|
+
index < children.length - 1 && separator
|
|
2415
|
+
] }, index)) : children
|
|
2416
|
+
}
|
|
2417
|
+
);
|
|
2418
|
+
var KbdKey = ({ ...props }) => /* @__PURE__ */ jsx26("kbd", { ...props });
|
|
2419
|
+
|
|
2315
2420
|
// src/components/modal-container.tsx
|
|
2316
2421
|
import React21 from "react";
|
|
2317
2422
|
import { motion } from "framer-motion";
|
|
2318
|
-
import { jsx as
|
|
2423
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2319
2424
|
var ModalContainer = React21.memo((props) => {
|
|
2320
|
-
return /* @__PURE__ */
|
|
2425
|
+
return /* @__PURE__ */ jsx27(
|
|
2321
2426
|
motion.div,
|
|
2322
2427
|
{
|
|
2323
2428
|
initial: { y: 10, opacity: 0 },
|
|
2324
2429
|
exit: { y: 10, opacity: 0 },
|
|
2325
2430
|
animate: { y: 0, opacity: 1 },
|
|
2326
2431
|
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",
|
|
2327
|
-
children: /* @__PURE__ */
|
|
2432
|
+
children: /* @__PURE__ */ jsx27("div", { className: "w-full h-full overflow-hidden overflow-y-auto flex justify-center", children: /* @__PURE__ */ jsx27("div", { className: "w-full max-w-[700px] h-fit shrink-0 overflow-hidden flex flex-col p-4", children: props.children }) })
|
|
2328
2433
|
}
|
|
2329
2434
|
);
|
|
2330
2435
|
});
|
|
2331
2436
|
|
|
2332
2437
|
// src/components/multi-select.tsx
|
|
2333
2438
|
import * as React22 from "react";
|
|
2334
|
-
import { jsx as
|
|
2439
|
+
import { jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2335
2440
|
var MultiSelect = ({
|
|
2336
2441
|
options: options2 = [],
|
|
2337
2442
|
value = [],
|
|
@@ -2355,7 +2460,7 @@ var MultiSelect = ({
|
|
|
2355
2460
|
},
|
|
2356
2461
|
[onValueChange]
|
|
2357
2462
|
);
|
|
2358
|
-
return /* @__PURE__ */
|
|
2463
|
+
return /* @__PURE__ */ jsxs17(
|
|
2359
2464
|
Combobox,
|
|
2360
2465
|
{
|
|
2361
2466
|
required,
|
|
@@ -2365,15 +2470,15 @@ var MultiSelect = ({
|
|
|
2365
2470
|
onValueChange: handleValueChange,
|
|
2366
2471
|
disabled: maxCount === options2.length,
|
|
2367
2472
|
children: [
|
|
2368
|
-
/* @__PURE__ */
|
|
2473
|
+
/* @__PURE__ */ jsx28(
|
|
2369
2474
|
ComboboxChips,
|
|
2370
2475
|
{
|
|
2371
2476
|
className: cn(
|
|
2372
2477
|
"min-h-10! before:hidden shadow-none rounded-10!",
|
|
2373
2478
|
className
|
|
2374
2479
|
),
|
|
2375
|
-
children: /* @__PURE__ */
|
|
2376
|
-
value2?.map((item) => /* @__PURE__ */
|
|
2480
|
+
children: /* @__PURE__ */ jsx28(ComboboxValue, { children: (value2) => /* @__PURE__ */ jsxs17(React22.Fragment, { children: [
|
|
2481
|
+
value2?.map((item) => /* @__PURE__ */ jsx28(
|
|
2377
2482
|
ComboboxChip,
|
|
2378
2483
|
{
|
|
2379
2484
|
"aria-label": item.value,
|
|
@@ -2382,7 +2487,7 @@ var MultiSelect = ({
|
|
|
2382
2487
|
},
|
|
2383
2488
|
item.value
|
|
2384
2489
|
)),
|
|
2385
|
-
/* @__PURE__ */
|
|
2490
|
+
/* @__PURE__ */ jsx28(
|
|
2386
2491
|
ComboboxInput,
|
|
2387
2492
|
{
|
|
2388
2493
|
placeholder: value2.length > 0 ? void 0 : placeholder || "Select an item...",
|
|
@@ -2396,14 +2501,14 @@ var MultiSelect = ({
|
|
|
2396
2501
|
] }) })
|
|
2397
2502
|
}
|
|
2398
2503
|
),
|
|
2399
|
-
/* @__PURE__ */
|
|
2400
|
-
/* @__PURE__ */
|
|
2401
|
-
/* @__PURE__ */
|
|
2504
|
+
/* @__PURE__ */ jsxs17(ComboboxPopup, { className: "rounded-xl", children: [
|
|
2505
|
+
/* @__PURE__ */ jsxs17(ComboboxEmpty, { className: "w-full center-flex flex-col", children: [
|
|
2506
|
+
/* @__PURE__ */ jsx28(
|
|
2402
2507
|
"div",
|
|
2403
2508
|
{
|
|
2404
2509
|
style: { borderRadius: "30% 70% 70% 30% / 30% 38% 62% 70%" },
|
|
2405
2510
|
className: "mt-8 size-24 center-flex bg-accent/50 rounded-blob",
|
|
2406
|
-
children: /* @__PURE__ */
|
|
2511
|
+
children: /* @__PURE__ */ jsx28(
|
|
2407
2512
|
"img",
|
|
2408
2513
|
{
|
|
2409
2514
|
src: "/images/no-direction.png",
|
|
@@ -2413,10 +2518,10 @@ var MultiSelect = ({
|
|
|
2413
2518
|
)
|
|
2414
2519
|
}
|
|
2415
2520
|
),
|
|
2416
|
-
/* @__PURE__ */
|
|
2417
|
-
/* @__PURE__ */
|
|
2521
|
+
/* @__PURE__ */ jsx28("h1", { className: "mt-4 text-sm text-foreground font-semibold", children: "Nothing Found" }),
|
|
2522
|
+
/* @__PURE__ */ jsx28("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" })
|
|
2418
2523
|
] }),
|
|
2419
|
-
/* @__PURE__ */
|
|
2524
|
+
/* @__PURE__ */ jsx28(ComboboxList, { children: (item) => /* @__PURE__ */ jsx28(
|
|
2420
2525
|
ComboboxItem,
|
|
2421
2526
|
{
|
|
2422
2527
|
value: item,
|
|
@@ -2435,7 +2540,7 @@ MultiSelect.displayName = "MultiSelect";
|
|
|
2435
2540
|
// src/components/password-input.tsx
|
|
2436
2541
|
import { Check as Check5, Eye, EyeOff, X } from "lucide-react";
|
|
2437
2542
|
import React23 from "react";
|
|
2438
|
-
import { jsx as
|
|
2543
|
+
import { jsx as jsx29, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2439
2544
|
var PasswordInput = React23.forwardRef(
|
|
2440
2545
|
({ className, onSubmit, showStrength, ...props }, ref) => {
|
|
2441
2546
|
const [isVisible, setIsVisible] = React23.useState(false);
|
|
@@ -2476,9 +2581,9 @@ var PasswordInput = React23.forwardRef(
|
|
|
2476
2581
|
}
|
|
2477
2582
|
onSubmit?.(event);
|
|
2478
2583
|
};
|
|
2479
|
-
return /* @__PURE__ */
|
|
2480
|
-
/* @__PURE__ */
|
|
2481
|
-
/* @__PURE__ */
|
|
2584
|
+
return /* @__PURE__ */ jsxs18("div", { className: "relative w-full", children: [
|
|
2585
|
+
/* @__PURE__ */ jsxs18("div", { className: "relative w-full", children: [
|
|
2586
|
+
/* @__PURE__ */ jsx29(
|
|
2482
2587
|
Input,
|
|
2483
2588
|
{
|
|
2484
2589
|
className: cn("pe-9", className),
|
|
@@ -2489,7 +2594,7 @@ var PasswordInput = React23.forwardRef(
|
|
|
2489
2594
|
onSubmit: handleSubmit
|
|
2490
2595
|
}
|
|
2491
2596
|
),
|
|
2492
|
-
showStrength && /* @__PURE__ */
|
|
2597
|
+
showStrength && /* @__PURE__ */ jsx29(
|
|
2493
2598
|
"input",
|
|
2494
2599
|
{
|
|
2495
2600
|
title: "password",
|
|
@@ -2499,7 +2604,7 @@ var PasswordInput = React23.forwardRef(
|
|
|
2499
2604
|
value: showStrength ? strengthScore >= 4 ? props?.value : "" : props.value
|
|
2500
2605
|
}
|
|
2501
2606
|
),
|
|
2502
|
-
/* @__PURE__ */
|
|
2607
|
+
/* @__PURE__ */ jsx29(
|
|
2503
2608
|
"button",
|
|
2504
2609
|
{
|
|
2505
2610
|
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",
|
|
@@ -2508,12 +2613,12 @@ var PasswordInput = React23.forwardRef(
|
|
|
2508
2613
|
"aria-label": isVisible ? "Hide password" : "Show password",
|
|
2509
2614
|
"aria-pressed": isVisible,
|
|
2510
2615
|
"aria-controls": "password",
|
|
2511
|
-
children: isVisible ? /* @__PURE__ */
|
|
2616
|
+
children: isVisible ? /* @__PURE__ */ jsx29(EyeOff, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : /* @__PURE__ */ jsx29(Eye, { size: 16, strokeWidth: 2, "aria-hidden": "true" })
|
|
2512
2617
|
}
|
|
2513
2618
|
)
|
|
2514
2619
|
] }),
|
|
2515
|
-
showStrength && /* @__PURE__ */
|
|
2516
|
-
/* @__PURE__ */
|
|
2620
|
+
showStrength && /* @__PURE__ */ jsxs18(React23.Fragment, { children: [
|
|
2621
|
+
/* @__PURE__ */ jsx29(
|
|
2517
2622
|
"div",
|
|
2518
2623
|
{
|
|
2519
2624
|
className: "my-3 h-1 w-full overflow-hidden rounded-full bg-border",
|
|
@@ -2522,7 +2627,7 @@ var PasswordInput = React23.forwardRef(
|
|
|
2522
2627
|
"aria-valuemin": 0,
|
|
2523
2628
|
"aria-valuemax": 4,
|
|
2524
2629
|
"aria-label": "Password strength",
|
|
2525
|
-
children: /* @__PURE__ */
|
|
2630
|
+
children: /* @__PURE__ */ jsx29(
|
|
2526
2631
|
"div",
|
|
2527
2632
|
{
|
|
2528
2633
|
className: `h-full ${getStrengthColor(
|
|
@@ -2533,7 +2638,7 @@ var PasswordInput = React23.forwardRef(
|
|
|
2533
2638
|
)
|
|
2534
2639
|
}
|
|
2535
2640
|
),
|
|
2536
|
-
/* @__PURE__ */
|
|
2641
|
+
/* @__PURE__ */ jsxs18(
|
|
2537
2642
|
"p",
|
|
2538
2643
|
{
|
|
2539
2644
|
id: "password-strength",
|
|
@@ -2544,15 +2649,15 @@ var PasswordInput = React23.forwardRef(
|
|
|
2544
2649
|
]
|
|
2545
2650
|
}
|
|
2546
2651
|
),
|
|
2547
|
-
/* @__PURE__ */
|
|
2548
|
-
req.met ? /* @__PURE__ */
|
|
2652
|
+
/* @__PURE__ */ jsx29("ul", { className: "space-y-1.5", "aria-label": "Password requirements", children: strength.map((req, index) => /* @__PURE__ */ jsxs18("li", { className: "flex items-center gap-2", children: [
|
|
2653
|
+
req.met ? /* @__PURE__ */ jsx29(
|
|
2549
2654
|
Check5,
|
|
2550
2655
|
{
|
|
2551
2656
|
size: 16,
|
|
2552
2657
|
className: "text-emerald-500",
|
|
2553
2658
|
"aria-hidden": "true"
|
|
2554
2659
|
}
|
|
2555
|
-
) : /* @__PURE__ */
|
|
2660
|
+
) : /* @__PURE__ */ jsx29(
|
|
2556
2661
|
X,
|
|
2557
2662
|
{
|
|
2558
2663
|
size: 16,
|
|
@@ -2560,13 +2665,13 @@ var PasswordInput = React23.forwardRef(
|
|
|
2560
2665
|
"aria-hidden": "true"
|
|
2561
2666
|
}
|
|
2562
2667
|
),
|
|
2563
|
-
/* @__PURE__ */
|
|
2668
|
+
/* @__PURE__ */ jsxs18(
|
|
2564
2669
|
"span",
|
|
2565
2670
|
{
|
|
2566
2671
|
className: `text-xs ${req.met ? "text-emerald-600" : "text-muted-foreground"}`,
|
|
2567
2672
|
children: [
|
|
2568
2673
|
req.text,
|
|
2569
|
-
/* @__PURE__ */
|
|
2674
|
+
/* @__PURE__ */ jsx29("span", { className: "sr-only", children: req.met ? " - Requirement met" : " - Requirement not met" })
|
|
2570
2675
|
]
|
|
2571
2676
|
}
|
|
2572
2677
|
)
|
|
@@ -2584,7 +2689,7 @@ import { forwardRef as forwardRef16, useState as useState3 } from "react";
|
|
|
2584
2689
|
import * as RPNInput from "react-phone-number-input";
|
|
2585
2690
|
import flags from "react-phone-number-input/flags";
|
|
2586
2691
|
import { isValidPhoneNumber } from "react-phone-number-input";
|
|
2587
|
-
import { jsx as
|
|
2692
|
+
import { jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2588
2693
|
function PhoneNumberInput({
|
|
2589
2694
|
className = "",
|
|
2590
2695
|
...props
|
|
@@ -2598,7 +2703,7 @@ function PhoneNumberInput({
|
|
|
2598
2703
|
}
|
|
2599
2704
|
props.onChange(newValue ?? "");
|
|
2600
2705
|
};
|
|
2601
|
-
return /* @__PURE__ */
|
|
2706
|
+
return /* @__PURE__ */ jsx30("div", { className: cn(className), children: /* @__PURE__ */ jsx30(
|
|
2602
2707
|
RPNInput.default,
|
|
2603
2708
|
{
|
|
2604
2709
|
className: cn("flex rounded-md", error && "border border-red-500/70"),
|
|
@@ -2616,7 +2721,7 @@ function PhoneNumberInput({
|
|
|
2616
2721
|
}
|
|
2617
2722
|
var PhoneInput = forwardRef16(
|
|
2618
2723
|
({ className, ...props }, ref) => {
|
|
2619
|
-
return /* @__PURE__ */
|
|
2724
|
+
return /* @__PURE__ */ jsx30(
|
|
2620
2725
|
Input,
|
|
2621
2726
|
{
|
|
2622
2727
|
className: cn(
|
|
@@ -2639,7 +2744,7 @@ var CountrySelect = ({
|
|
|
2639
2744
|
const handleSelect = (event) => {
|
|
2640
2745
|
onChange(event.target.value);
|
|
2641
2746
|
};
|
|
2642
|
-
return /* @__PURE__ */
|
|
2747
|
+
return /* @__PURE__ */ jsxs19(
|
|
2643
2748
|
"div",
|
|
2644
2749
|
{
|
|
2645
2750
|
className: cn(`relative inline-flex items-center self-stretch rounded-s-10 border border-input
|
|
@@ -2647,11 +2752,11 @@ var CountrySelect = ({
|
|
|
2647
2752
|
focus-within:border-ring focus-within:outline-none focus-within:ring-[3px] focus-within:ring-ring/20
|
|
2648
2753
|
hover:text-foreground has-disabled:pointer-events-none has-disabled:opacity-50`),
|
|
2649
2754
|
children: [
|
|
2650
|
-
/* @__PURE__ */
|
|
2651
|
-
/* @__PURE__ */
|
|
2652
|
-
/* @__PURE__ */
|
|
2755
|
+
/* @__PURE__ */ jsxs19("div", { className: "inline-flex items-center gap-1", "aria-hidden": "true", children: [
|
|
2756
|
+
/* @__PURE__ */ jsx30(FlagComponent, { country: value, countryName: value, "aria-hidden": "true" }),
|
|
2757
|
+
/* @__PURE__ */ jsx30("span", { className: "text-muted-foreground/80", children: /* @__PURE__ */ jsx30(ChevronDown2, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) })
|
|
2653
2758
|
] }),
|
|
2654
|
-
/* @__PURE__ */
|
|
2759
|
+
/* @__PURE__ */ jsxs19(
|
|
2655
2760
|
"select",
|
|
2656
2761
|
{
|
|
2657
2762
|
disabled,
|
|
@@ -2660,8 +2765,8 @@ var CountrySelect = ({
|
|
|
2660
2765
|
className: "absolute inset-0 text-sm opacity-0",
|
|
2661
2766
|
"aria-label": "Select country",
|
|
2662
2767
|
children: [
|
|
2663
|
-
/* @__PURE__ */
|
|
2664
|
-
options2.filter((x) => x.value).map((option, i) => /* @__PURE__ */
|
|
2768
|
+
/* @__PURE__ */ jsx30("option", { value: "", children: "Select a country" }, "default"),
|
|
2769
|
+
options2.filter((x) => x.value).map((option, i) => /* @__PURE__ */ jsxs19("option", { value: option.value, children: [
|
|
2665
2770
|
option.label,
|
|
2666
2771
|
" ",
|
|
2667
2772
|
option.value && `+${RPNInput.getCountryCallingCode(option.value)}`
|
|
@@ -2675,15 +2780,15 @@ var CountrySelect = ({
|
|
|
2675
2780
|
};
|
|
2676
2781
|
var FlagComponent = ({ country, countryName }) => {
|
|
2677
2782
|
const Flag = flags[country];
|
|
2678
|
-
return /* @__PURE__ */
|
|
2783
|
+
return /* @__PURE__ */ jsx30("span", { className: "w-5 overflow-hidden rounded-sm", children: Flag ? /* @__PURE__ */ jsx30(Flag, { title: countryName }) : /* @__PURE__ */ jsx30(Phone, { size: 16, "aria-hidden": "true" }) });
|
|
2679
2784
|
};
|
|
2680
2785
|
|
|
2681
2786
|
// src/components/price-input.tsx
|
|
2682
2787
|
import React25 from "react";
|
|
2683
|
-
import { jsx as
|
|
2788
|
+
import { jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2684
2789
|
var PriceInput = React25.forwardRef(
|
|
2685
2790
|
({ currency, ...props }, ref) => {
|
|
2686
|
-
return /* @__PURE__ */
|
|
2791
|
+
return /* @__PURE__ */ jsxs20(
|
|
2687
2792
|
"div",
|
|
2688
2793
|
{
|
|
2689
2794
|
className: cn(
|
|
@@ -2691,8 +2796,8 @@ var PriceInput = React25.forwardRef(
|
|
|
2691
2796
|
props.containerClassname
|
|
2692
2797
|
),
|
|
2693
2798
|
children: [
|
|
2694
|
-
!props.hide_currency_symbol && /* @__PURE__ */
|
|
2695
|
-
/* @__PURE__ */
|
|
2799
|
+
!props.hide_currency_symbol && /* @__PURE__ */ jsx31("div", { className: "absolute inset-y-0.5 flex items-center pl-4 pr-2", children: /* @__PURE__ */ jsx31("span", { className: "[fontSize:inherit] font-medium text-muted-foreground/50", children: currency?.symbol }) }),
|
|
2800
|
+
/* @__PURE__ */ jsx31(
|
|
2696
2801
|
Input,
|
|
2697
2802
|
{
|
|
2698
2803
|
ref,
|
|
@@ -2702,7 +2807,7 @@ var PriceInput = React25.forwardRef(
|
|
|
2702
2807
|
className: cn("px-10 shadow-none m-0! py-0", props.className)
|
|
2703
2808
|
}
|
|
2704
2809
|
),
|
|
2705
|
-
!props.hide_currency_code && /* @__PURE__ */
|
|
2810
|
+
!props.hide_currency_code && /* @__PURE__ */ jsx31("div", { className: "absolute inset-y-0.5 right-0 flex items-center pl-3 pr-4", children: /* @__PURE__ */ jsx31("span", { className: "[fontSize:inherit] font-medium text-muted-foreground/50", children: currency?.code }) })
|
|
2706
2811
|
]
|
|
2707
2812
|
}
|
|
2708
2813
|
);
|
|
@@ -2713,8 +2818,8 @@ PriceInput.displayName = "PriceInput";
|
|
|
2713
2818
|
// src/components/progress.tsx
|
|
2714
2819
|
import * as React26 from "react";
|
|
2715
2820
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
2716
|
-
import { jsx as
|
|
2717
|
-
var Progress = React26.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */
|
|
2821
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2822
|
+
var Progress = React26.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2718
2823
|
ProgressPrimitive.Root,
|
|
2719
2824
|
{
|
|
2720
2825
|
ref,
|
|
@@ -2723,7 +2828,7 @@ var Progress = React26.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2723
2828
|
className
|
|
2724
2829
|
),
|
|
2725
2830
|
...props,
|
|
2726
|
-
children: /* @__PURE__ */
|
|
2831
|
+
children: /* @__PURE__ */ jsx32(
|
|
2727
2832
|
ProgressPrimitive.Indicator,
|
|
2728
2833
|
{
|
|
2729
2834
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
@@ -2738,11 +2843,11 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
|
2738
2843
|
import * as React27 from "react";
|
|
2739
2844
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2740
2845
|
import { Check as Check6, ChevronDown as ChevronDown3, ChevronUp } from "lucide-react";
|
|
2741
|
-
import { jsx as
|
|
2846
|
+
import { jsx as jsx33, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2742
2847
|
var Select = SelectPrimitive.Root;
|
|
2743
2848
|
var SelectGroup = SelectPrimitive.Group;
|
|
2744
2849
|
var SelectValue = SelectPrimitive.Value;
|
|
2745
|
-
var SelectTrigger = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
2850
|
+
var SelectTrigger = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs21(
|
|
2746
2851
|
SelectPrimitive.Trigger,
|
|
2747
2852
|
{
|
|
2748
2853
|
ref,
|
|
@@ -2753,12 +2858,12 @@ var SelectTrigger = React27.forwardRef(({ className, children, ...props }, ref)
|
|
|
2753
2858
|
...props,
|
|
2754
2859
|
children: [
|
|
2755
2860
|
children,
|
|
2756
|
-
/* @__PURE__ */
|
|
2861
|
+
/* @__PURE__ */ jsx33(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx33(ChevronDown3, { className: "h-4 w-4 opacity-50" }) })
|
|
2757
2862
|
]
|
|
2758
2863
|
}
|
|
2759
2864
|
));
|
|
2760
2865
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2761
|
-
var SelectScrollUpButton = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2866
|
+
var SelectScrollUpButton = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
2762
2867
|
SelectPrimitive.ScrollUpButton,
|
|
2763
2868
|
{
|
|
2764
2869
|
ref,
|
|
@@ -2767,11 +2872,11 @@ var SelectScrollUpButton = React27.forwardRef(({ className, ...props }, ref) =>
|
|
|
2767
2872
|
className
|
|
2768
2873
|
),
|
|
2769
2874
|
...props,
|
|
2770
|
-
children: /* @__PURE__ */
|
|
2875
|
+
children: /* @__PURE__ */ jsx33(ChevronUp, { className: "h-4 w-4" })
|
|
2771
2876
|
}
|
|
2772
2877
|
));
|
|
2773
2878
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
2774
|
-
var SelectScrollDownButton = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2879
|
+
var SelectScrollDownButton = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
2775
2880
|
SelectPrimitive.ScrollDownButton,
|
|
2776
2881
|
{
|
|
2777
2882
|
ref,
|
|
@@ -2780,11 +2885,11 @@ var SelectScrollDownButton = React27.forwardRef(({ className, ...props }, ref) =
|
|
|
2780
2885
|
className
|
|
2781
2886
|
),
|
|
2782
2887
|
...props,
|
|
2783
|
-
children: /* @__PURE__ */
|
|
2888
|
+
children: /* @__PURE__ */ jsx33(ChevronDown3, { className: "h-4 w-4" })
|
|
2784
2889
|
}
|
|
2785
2890
|
));
|
|
2786
2891
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2787
|
-
var SelectContent = React27.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */
|
|
2892
|
+
var SelectContent = React27.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx33(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs21(
|
|
2788
2893
|
SelectPrimitive.Content,
|
|
2789
2894
|
{
|
|
2790
2895
|
ref,
|
|
@@ -2796,8 +2901,8 @@ var SelectContent = React27.forwardRef(({ className, children, position = "poppe
|
|
|
2796
2901
|
position,
|
|
2797
2902
|
...props,
|
|
2798
2903
|
children: [
|
|
2799
|
-
/* @__PURE__ */
|
|
2800
|
-
/* @__PURE__ */
|
|
2904
|
+
/* @__PURE__ */ jsx33(SelectScrollUpButton, {}),
|
|
2905
|
+
/* @__PURE__ */ jsx33(
|
|
2801
2906
|
SelectPrimitive.Viewport,
|
|
2802
2907
|
{
|
|
2803
2908
|
className: cn(
|
|
@@ -2807,12 +2912,12 @@ var SelectContent = React27.forwardRef(({ className, children, position = "poppe
|
|
|
2807
2912
|
children
|
|
2808
2913
|
}
|
|
2809
2914
|
),
|
|
2810
|
-
/* @__PURE__ */
|
|
2915
|
+
/* @__PURE__ */ jsx33(SelectScrollDownButton, {})
|
|
2811
2916
|
]
|
|
2812
2917
|
}
|
|
2813
2918
|
) }));
|
|
2814
2919
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2815
|
-
var SelectLabel = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2920
|
+
var SelectLabel = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
2816
2921
|
SelectPrimitive.Label,
|
|
2817
2922
|
{
|
|
2818
2923
|
ref,
|
|
@@ -2821,7 +2926,7 @@ var SelectLabel = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2821
2926
|
}
|
|
2822
2927
|
));
|
|
2823
2928
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2824
|
-
var SelectItem = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
2929
|
+
var SelectItem = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs21(
|
|
2825
2930
|
SelectPrimitive.Item,
|
|
2826
2931
|
{
|
|
2827
2932
|
ref,
|
|
@@ -2831,13 +2936,13 @@ var SelectItem = React27.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2831
2936
|
),
|
|
2832
2937
|
...props,
|
|
2833
2938
|
children: [
|
|
2834
|
-
/* @__PURE__ */
|
|
2835
|
-
/* @__PURE__ */
|
|
2939
|
+
/* @__PURE__ */ jsx33("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx33(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx33(Check6, { className: "h-4 w-4" }) }) }),
|
|
2940
|
+
/* @__PURE__ */ jsx33(SelectPrimitive.ItemText, { children })
|
|
2836
2941
|
]
|
|
2837
2942
|
}
|
|
2838
2943
|
));
|
|
2839
2944
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2840
|
-
var SelectSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2945
|
+
var SelectSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
2841
2946
|
SelectPrimitive.Separator,
|
|
2842
2947
|
{
|
|
2843
2948
|
ref,
|
|
@@ -2850,9 +2955,9 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
|
2850
2955
|
// src/components/separator.tsx
|
|
2851
2956
|
import * as React28 from "react";
|
|
2852
2957
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
2853
|
-
import { jsx as
|
|
2958
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2854
2959
|
var Separator3 = React28.forwardRef(
|
|
2855
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */
|
|
2960
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
2856
2961
|
SeparatorPrimitive.Root,
|
|
2857
2962
|
{
|
|
2858
2963
|
ref,
|
|
@@ -2874,12 +2979,12 @@ import * as React29 from "react";
|
|
|
2874
2979
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
2875
2980
|
import { cva as cva4 } from "class-variance-authority";
|
|
2876
2981
|
import { X as X2 } from "lucide-react";
|
|
2877
|
-
import { jsx as
|
|
2982
|
+
import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2878
2983
|
var Sheet = SheetPrimitive.Root;
|
|
2879
2984
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
2880
2985
|
var SheetClose = SheetPrimitive.Close;
|
|
2881
2986
|
var SheetPortal = SheetPrimitive.Portal;
|
|
2882
|
-
var SheetOverlay = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2987
|
+
var SheetOverlay = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
2883
2988
|
SheetPrimitive.Overlay,
|
|
2884
2989
|
{
|
|
2885
2990
|
className: cn(
|
|
@@ -2907,9 +3012,9 @@ var sheetVariants = cva4(
|
|
|
2907
3012
|
}
|
|
2908
3013
|
}
|
|
2909
3014
|
);
|
|
2910
|
-
var SheetContent = React29.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */
|
|
2911
|
-
/* @__PURE__ */
|
|
2912
|
-
/* @__PURE__ */
|
|
3015
|
+
var SheetContent = React29.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs22(SheetPortal, { children: [
|
|
3016
|
+
/* @__PURE__ */ jsx35(SheetOverlay, {}),
|
|
3017
|
+
/* @__PURE__ */ jsxs22(
|
|
2913
3018
|
SheetPrimitive.Content,
|
|
2914
3019
|
{
|
|
2915
3020
|
ref,
|
|
@@ -2917,9 +3022,9 @@ var SheetContent = React29.forwardRef(({ side = "right", className, children, ..
|
|
|
2917
3022
|
...props,
|
|
2918
3023
|
children: [
|
|
2919
3024
|
children,
|
|
2920
|
-
/* @__PURE__ */
|
|
2921
|
-
/* @__PURE__ */
|
|
2922
|
-
/* @__PURE__ */
|
|
3025
|
+
/* @__PURE__ */ jsxs22(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: [
|
|
3026
|
+
/* @__PURE__ */ jsx35(X2, { className: "h-4 w-4" }),
|
|
3027
|
+
/* @__PURE__ */ jsx35("span", { className: "sr-only", children: "Close" })
|
|
2923
3028
|
] })
|
|
2924
3029
|
]
|
|
2925
3030
|
}
|
|
@@ -2929,7 +3034,7 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
|
2929
3034
|
var SheetHeader = ({
|
|
2930
3035
|
className,
|
|
2931
3036
|
...props
|
|
2932
|
-
}) => /* @__PURE__ */
|
|
3037
|
+
}) => /* @__PURE__ */ jsx35(
|
|
2933
3038
|
"div",
|
|
2934
3039
|
{
|
|
2935
3040
|
className: cn(
|
|
@@ -2943,7 +3048,7 @@ SheetHeader.displayName = "SheetHeader";
|
|
|
2943
3048
|
var SheetFooter = ({
|
|
2944
3049
|
className,
|
|
2945
3050
|
...props
|
|
2946
|
-
}) => /* @__PURE__ */
|
|
3051
|
+
}) => /* @__PURE__ */ jsx35(
|
|
2947
3052
|
"div",
|
|
2948
3053
|
{
|
|
2949
3054
|
className: cn(
|
|
@@ -2954,7 +3059,7 @@ var SheetFooter = ({
|
|
|
2954
3059
|
}
|
|
2955
3060
|
);
|
|
2956
3061
|
SheetFooter.displayName = "SheetFooter";
|
|
2957
|
-
var SheetTitle = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3062
|
+
var SheetTitle = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
2958
3063
|
SheetPrimitive.Title,
|
|
2959
3064
|
{
|
|
2960
3065
|
ref,
|
|
@@ -2963,7 +3068,7 @@ var SheetTitle = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2963
3068
|
}
|
|
2964
3069
|
));
|
|
2965
3070
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
2966
|
-
var SheetDescription = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3071
|
+
var SheetDescription = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
2967
3072
|
SheetPrimitive.Description,
|
|
2968
3073
|
{
|
|
2969
3074
|
ref,
|
|
@@ -2974,12 +3079,12 @@ var SheetDescription = React29.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2974
3079
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
2975
3080
|
|
|
2976
3081
|
// src/components/skeleton.tsx
|
|
2977
|
-
import { jsx as
|
|
3082
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2978
3083
|
function Skeleton({
|
|
2979
3084
|
className,
|
|
2980
3085
|
...props
|
|
2981
3086
|
}) {
|
|
2982
|
-
return /* @__PURE__ */
|
|
3087
|
+
return /* @__PURE__ */ jsx36(
|
|
2983
3088
|
"div",
|
|
2984
3089
|
{
|
|
2985
3090
|
className: cn("animate-pulse rounded-lg bg-muted", className),
|
|
@@ -2992,7 +3097,7 @@ function Skeleton({
|
|
|
2992
3097
|
import { mergeProps as mergeProps3 } from "@base-ui-components/react/merge-props";
|
|
2993
3098
|
import { useRender as useRender3 } from "@base-ui-components/react/use-render";
|
|
2994
3099
|
import { cva as cva5 } from "class-variance-authority";
|
|
2995
|
-
import { jsx as
|
|
3100
|
+
import { jsx as jsx37, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2996
3101
|
var statusIndicatorVariants = cva5(
|
|
2997
3102
|
"relative inline-flex size-2.5 shrink-0",
|
|
2998
3103
|
{
|
|
@@ -3023,8 +3128,8 @@ function StatusIndicator({
|
|
|
3023
3128
|
return useRender3({
|
|
3024
3129
|
defaultTagName: "span",
|
|
3025
3130
|
props: mergeProps3(defaultProps, props),
|
|
3026
|
-
render: render || /* @__PURE__ */
|
|
3027
|
-
/* @__PURE__ */
|
|
3131
|
+
render: render || /* @__PURE__ */ jsxs23("span", { ...defaultProps, children: [
|
|
3132
|
+
/* @__PURE__ */ jsx37(
|
|
3028
3133
|
"span",
|
|
3029
3134
|
{
|
|
3030
3135
|
className: cn(
|
|
@@ -3033,16 +3138,16 @@ function StatusIndicator({
|
|
|
3033
3138
|
)
|
|
3034
3139
|
}
|
|
3035
3140
|
),
|
|
3036
|
-
/* @__PURE__ */
|
|
3141
|
+
/* @__PURE__ */ jsx37("span", { className: "relative inline-flex rounded-full size-2.5" })
|
|
3037
3142
|
] })
|
|
3038
3143
|
});
|
|
3039
3144
|
}
|
|
3040
3145
|
|
|
3041
3146
|
// src/components/switch.tsx
|
|
3042
3147
|
import { Switch as SwitchPrimitive } from "@base-ui-components/react/switch";
|
|
3043
|
-
import { jsx as
|
|
3148
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3044
3149
|
function Switch({ className, ...props }) {
|
|
3045
|
-
return /* @__PURE__ */
|
|
3150
|
+
return /* @__PURE__ */ jsx38(
|
|
3046
3151
|
SwitchPrimitive.Root,
|
|
3047
3152
|
{
|
|
3048
3153
|
className: cn(
|
|
@@ -3051,7 +3156,7 @@ function Switch({ className, ...props }) {
|
|
|
3051
3156
|
),
|
|
3052
3157
|
"data-slot": "switch",
|
|
3053
3158
|
...props,
|
|
3054
|
-
children: /* @__PURE__ */
|
|
3159
|
+
children: /* @__PURE__ */ jsx38(
|
|
3055
3160
|
SwitchPrimitive.Thumb,
|
|
3056
3161
|
{
|
|
3057
3162
|
className: cn(
|
|
@@ -3065,14 +3170,14 @@ function Switch({ className, ...props }) {
|
|
|
3065
3170
|
}
|
|
3066
3171
|
|
|
3067
3172
|
// src/components/table.tsx
|
|
3068
|
-
import { jsx as
|
|
3173
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3069
3174
|
function Table({ className, ...props }) {
|
|
3070
|
-
return /* @__PURE__ */
|
|
3175
|
+
return /* @__PURE__ */ jsx39(
|
|
3071
3176
|
"div",
|
|
3072
3177
|
{
|
|
3073
3178
|
className: "relative w-full overflow-x-auto",
|
|
3074
3179
|
"data-slot": "table-container",
|
|
3075
|
-
children: /* @__PURE__ */
|
|
3180
|
+
children: /* @__PURE__ */ jsx39(
|
|
3076
3181
|
"table",
|
|
3077
3182
|
{
|
|
3078
3183
|
className: cn(
|
|
@@ -3087,7 +3192,7 @@ function Table({ className, ...props }) {
|
|
|
3087
3192
|
);
|
|
3088
3193
|
}
|
|
3089
3194
|
function TableHeader({ className, ...props }) {
|
|
3090
|
-
return /* @__PURE__ */
|
|
3195
|
+
return /* @__PURE__ */ jsx39(
|
|
3091
3196
|
"thead",
|
|
3092
3197
|
{
|
|
3093
3198
|
className: cn(
|
|
@@ -3100,7 +3205,7 @@ function TableHeader({ className, ...props }) {
|
|
|
3100
3205
|
);
|
|
3101
3206
|
}
|
|
3102
3207
|
function TableBody({ className, ...props }) {
|
|
3103
|
-
return /* @__PURE__ */
|
|
3208
|
+
return /* @__PURE__ */ jsx39(
|
|
3104
3209
|
"tbody",
|
|
3105
3210
|
{
|
|
3106
3211
|
className: cn(
|
|
@@ -3113,7 +3218,7 @@ function TableBody({ className, ...props }) {
|
|
|
3113
3218
|
);
|
|
3114
3219
|
}
|
|
3115
3220
|
function TableFooter({ className, ...props }) {
|
|
3116
|
-
return /* @__PURE__ */
|
|
3221
|
+
return /* @__PURE__ */ jsx39(
|
|
3117
3222
|
"tfoot",
|
|
3118
3223
|
{
|
|
3119
3224
|
className: cn(
|
|
@@ -3126,7 +3231,7 @@ function TableFooter({ className, ...props }) {
|
|
|
3126
3231
|
);
|
|
3127
3232
|
}
|
|
3128
3233
|
function TableRow({ className, ...props }) {
|
|
3129
|
-
return /* @__PURE__ */
|
|
3234
|
+
return /* @__PURE__ */ jsx39(
|
|
3130
3235
|
"tr",
|
|
3131
3236
|
{
|
|
3132
3237
|
className: cn(
|
|
@@ -3139,7 +3244,7 @@ function TableRow({ className, ...props }) {
|
|
|
3139
3244
|
);
|
|
3140
3245
|
}
|
|
3141
3246
|
function TableHead({ className, ...props }) {
|
|
3142
|
-
return /* @__PURE__ */
|
|
3247
|
+
return /* @__PURE__ */ jsx39(
|
|
3143
3248
|
"th",
|
|
3144
3249
|
{
|
|
3145
3250
|
className: cn(
|
|
@@ -3152,7 +3257,7 @@ function TableHead({ className, ...props }) {
|
|
|
3152
3257
|
);
|
|
3153
3258
|
}
|
|
3154
3259
|
function TableCell({ className, ...props }) {
|
|
3155
|
-
return /* @__PURE__ */
|
|
3260
|
+
return /* @__PURE__ */ jsx39(
|
|
3156
3261
|
"td",
|
|
3157
3262
|
{
|
|
3158
3263
|
className: cn(
|
|
@@ -3168,7 +3273,7 @@ function TableCaption({
|
|
|
3168
3273
|
className,
|
|
3169
3274
|
...props
|
|
3170
3275
|
}) {
|
|
3171
|
-
return /* @__PURE__ */
|
|
3276
|
+
return /* @__PURE__ */ jsx39(
|
|
3172
3277
|
"caption",
|
|
3173
3278
|
{
|
|
3174
3279
|
className: cn(
|
|
@@ -3184,9 +3289,9 @@ function TableCaption({
|
|
|
3184
3289
|
// src/components/tabs.tsx
|
|
3185
3290
|
import * as React30 from "react";
|
|
3186
3291
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3187
|
-
import { jsx as
|
|
3292
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3188
3293
|
var Tabs = TabsPrimitive.Root;
|
|
3189
|
-
var TabsList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3294
|
+
var TabsList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
|
|
3190
3295
|
TabsPrimitive.List,
|
|
3191
3296
|
{
|
|
3192
3297
|
ref,
|
|
@@ -3198,7 +3303,7 @@ var TabsList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3198
3303
|
}
|
|
3199
3304
|
));
|
|
3200
3305
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
3201
|
-
var TabsTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3306
|
+
var TabsTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
|
|
3202
3307
|
TabsPrimitive.Trigger,
|
|
3203
3308
|
{
|
|
3204
3309
|
ref,
|
|
@@ -3210,7 +3315,7 @@ var TabsTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3210
3315
|
}
|
|
3211
3316
|
));
|
|
3212
3317
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
3213
|
-
var TabsContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3318
|
+
var TabsContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
|
|
3214
3319
|
TabsPrimitive.Content,
|
|
3215
3320
|
{
|
|
3216
3321
|
ref,
|
|
@@ -3226,14 +3331,14 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
|
3226
3331
|
// src/components/tags-input.tsx
|
|
3227
3332
|
import { TagInput } from "emblor";
|
|
3228
3333
|
import { useId as useId3, useState as useState4 } from "react";
|
|
3229
|
-
import { jsx as
|
|
3334
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3230
3335
|
|
|
3231
3336
|
// src/components/textarea.tsx
|
|
3232
3337
|
import * as React31 from "react";
|
|
3233
|
-
import { jsx as
|
|
3338
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3234
3339
|
var Textarea = React31.forwardRef(
|
|
3235
3340
|
({ className, ...props }, ref) => {
|
|
3236
|
-
return /* @__PURE__ */
|
|
3341
|
+
return /* @__PURE__ */ jsx42(
|
|
3237
3342
|
"textarea",
|
|
3238
3343
|
{
|
|
3239
3344
|
className: cn(
|
|
@@ -3250,7 +3355,7 @@ Textarea.displayName = "Textarea";
|
|
|
3250
3355
|
|
|
3251
3356
|
// src/components/timeline.tsx
|
|
3252
3357
|
import * as React32 from "react";
|
|
3253
|
-
import { jsx as
|
|
3358
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
3254
3359
|
var TimelineContext = React32.createContext(null);
|
|
3255
3360
|
function useTimeline() {
|
|
3256
3361
|
const context = React32.useContext(TimelineContext);
|
|
@@ -3260,7 +3365,7 @@ function useTimeline() {
|
|
|
3260
3365
|
return context;
|
|
3261
3366
|
}
|
|
3262
3367
|
var Timeline = React32.forwardRef(
|
|
3263
|
-
({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */
|
|
3368
|
+
({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx43(TimelineContext.Provider, { value: { orientation }, children: /* @__PURE__ */ jsx43(
|
|
3264
3369
|
"ol",
|
|
3265
3370
|
{
|
|
3266
3371
|
ref,
|
|
@@ -3278,7 +3383,7 @@ var Timeline = React32.forwardRef(
|
|
|
3278
3383
|
Timeline.displayName = "Timeline";
|
|
3279
3384
|
var TimelineItem = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3280
3385
|
const { orientation } = useTimeline();
|
|
3281
|
-
return /* @__PURE__ */
|
|
3386
|
+
return /* @__PURE__ */ jsx43(
|
|
3282
3387
|
"li",
|
|
3283
3388
|
{
|
|
3284
3389
|
ref,
|
|
@@ -3295,7 +3400,7 @@ var TimelineItem = React32.forwardRef(({ className, ...props }, ref) => {
|
|
|
3295
3400
|
TimelineItem.displayName = "TimelineItem";
|
|
3296
3401
|
var TimelineSeparator = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3297
3402
|
const { orientation } = useTimeline();
|
|
3298
|
-
return /* @__PURE__ */
|
|
3403
|
+
return /* @__PURE__ */ jsx43(
|
|
3299
3404
|
"div",
|
|
3300
3405
|
{
|
|
3301
3406
|
ref,
|
|
@@ -3312,7 +3417,7 @@ var TimelineSeparator = React32.forwardRef(({ className, ...props }, ref) => {
|
|
|
3312
3417
|
TimelineSeparator.displayName = "TimelineSeparator";
|
|
3313
3418
|
var TimelineDot = React32.forwardRef(({ variant = "default", className, ...props }, ref) => {
|
|
3314
3419
|
const { orientation } = useTimeline();
|
|
3315
|
-
return /* @__PURE__ */
|
|
3420
|
+
return /* @__PURE__ */ jsx43(
|
|
3316
3421
|
"div",
|
|
3317
3422
|
{
|
|
3318
3423
|
ref,
|
|
@@ -3331,7 +3436,7 @@ var TimelineDot = React32.forwardRef(({ variant = "default", className, ...props
|
|
|
3331
3436
|
TimelineDot.displayName = "TimelineDot";
|
|
3332
3437
|
var TimelineConnector = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3333
3438
|
const { orientation } = useTimeline();
|
|
3334
|
-
return /* @__PURE__ */
|
|
3439
|
+
return /* @__PURE__ */ jsx43(
|
|
3335
3440
|
"div",
|
|
3336
3441
|
{
|
|
3337
3442
|
ref,
|
|
@@ -3349,7 +3454,7 @@ var TimelineConnector = React32.forwardRef(({ className, ...props }, ref) => {
|
|
|
3349
3454
|
TimelineConnector.displayName = "TimelineConnector";
|
|
3350
3455
|
var TimelineContent = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3351
3456
|
const { orientation } = useTimeline();
|
|
3352
|
-
return /* @__PURE__ */
|
|
3457
|
+
return /* @__PURE__ */ jsx43(
|
|
3353
3458
|
"div",
|
|
3354
3459
|
{
|
|
3355
3460
|
ref,
|
|
@@ -3367,12 +3472,12 @@ var TimelineContent = React32.forwardRef(({ className, ...props }, ref) => {
|
|
|
3367
3472
|
TimelineContent.displayName = "TimelineContent";
|
|
3368
3473
|
var TimelineTitle = React32.forwardRef((props, ref) => {
|
|
3369
3474
|
const { orientation } = useTimeline();
|
|
3370
|
-
return /* @__PURE__ */
|
|
3475
|
+
return /* @__PURE__ */ jsx43("div", { ref, "data-orientation": orientation, ...props });
|
|
3371
3476
|
});
|
|
3372
3477
|
TimelineTitle.displayName = "TimelineTitle";
|
|
3373
3478
|
var TimelineDescription = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3374
3479
|
const { orientation } = useTimeline();
|
|
3375
|
-
return /* @__PURE__ */
|
|
3480
|
+
return /* @__PURE__ */ jsx43(
|
|
3376
3481
|
"div",
|
|
3377
3482
|
{
|
|
3378
3483
|
ref,
|
|
@@ -3387,11 +3492,11 @@ TimelineDescription.displayName = "TimelineDescription";
|
|
|
3387
3492
|
// src/components/tooltip.tsx
|
|
3388
3493
|
import * as React33 from "react";
|
|
3389
3494
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3390
|
-
import { jsx as
|
|
3495
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
3391
3496
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
3392
3497
|
var Tooltip = TooltipPrimitive.Root;
|
|
3393
3498
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
3394
|
-
var TooltipContent = React33.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */
|
|
3499
|
+
var TooltipContent = React33.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx44(
|
|
3395
3500
|
TooltipPrimitive.Content,
|
|
3396
3501
|
{
|
|
3397
3502
|
ref,
|
|
@@ -3523,11 +3628,14 @@ export {
|
|
|
3523
3628
|
FormMessage,
|
|
3524
3629
|
ButtonIcon as Icon,
|
|
3525
3630
|
ImageCard,
|
|
3631
|
+
ImageZoom,
|
|
3526
3632
|
Input,
|
|
3527
3633
|
InputOTP,
|
|
3528
3634
|
InputOTPGroup,
|
|
3529
3635
|
InputOTPSeparator,
|
|
3530
3636
|
InputOTPSlot,
|
|
3637
|
+
Kbd,
|
|
3638
|
+
KbdKey,
|
|
3531
3639
|
Label2 as Label,
|
|
3532
3640
|
MultiSelect,
|
|
3533
3641
|
PhoneNumberInput,
|