@yenio-pld/blocks 1.2.0-rc.15 → 1.2.0-rc.16

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.cjs CHANGED
@@ -3154,7 +3154,7 @@ function CountryPicker({
3154
3154
  "data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95"
3155
3155
  ),
3156
3156
  children: [
3157
- /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.Empty, { className: "px-3 py-2 text-sm text-muted-foreground", children: labels.noResults }),
3157
+ /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.Empty, { className: "text-sm text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block px-2 py-2", children: labels.noResults }) }),
3158
3158
  /* @__PURE__ */ jsxRuntime.jsx(
3159
3159
  combobox_js.Combobox.List,
3160
3160
  {
@@ -3165,12 +3165,12 @@ function CountryPicker({
3165
3165
  {
3166
3166
  value: item,
3167
3167
  className: cn(
3168
- "relative flex cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-sm outline-none select-none",
3168
+ "relative flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none select-none",
3169
3169
  "data-highlighted:bg-accent data-highlighted:text-accent-foreground"
3170
3170
  ),
3171
3171
  children: [
3172
- /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.ItemIndicator, { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4", "aria-hidden": true }) }),
3173
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: item.label })
3172
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1", children: item.label }),
3173
+ /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.ItemIndicator, { className: "flex size-4 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4", "aria-hidden": true }) })
3174
3174
  ]
3175
3175
  },
3176
3176
  item.value
@@ -3187,6 +3187,18 @@ function CountryPicker({
3187
3187
  )
3188
3188
  ] });
3189
3189
  }
3190
+ function useMediaQuery(query) {
3191
+ const [matches, setMatches] = React6.useState(false);
3192
+ React6.useEffect(() => {
3193
+ if (typeof window === "undefined" || !window.matchMedia) return;
3194
+ const mql = window.matchMedia(query);
3195
+ const onChange = () => setMatches(mql.matches);
3196
+ onChange();
3197
+ mql.addEventListener("change", onChange);
3198
+ return () => mql.removeEventListener("change", onChange);
3199
+ }, [query]);
3200
+ return matches;
3201
+ }
3190
3202
 
3191
3203
  // src/data/sat-tax-regimes.json
3192
3204
  var sat_tax_regimes_default = {
@@ -3343,7 +3355,9 @@ function filterTaxRegimes(query, locale) {
3343
3355
  return code.includes(needle) || label.includes(needle);
3344
3356
  });
3345
3357
  }
3358
+ var MD_UP = "(min-width: 768px)";
3346
3359
  var INPUT_CLASS2 = "h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40";
3360
+ var TRIGGER_CLASS = "flex h-8 w-full min-w-0 items-center justify-between gap-2 rounded-lg border border-input bg-transparent px-2.5 py-1 text-left text-base transition-colors outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40";
3347
3361
  function defaultLabels3(locale) {
3348
3362
  const es = locale === "es-MX";
3349
3363
  return {
@@ -3351,7 +3365,8 @@ function defaultLabels3(locale) {
3351
3365
  search: es ? "Buscar r\xE9gimen fiscal" : "Search tax regime",
3352
3366
  noResults: es ? "Sin resultados" : "No results",
3353
3367
  clear: es ? "Limpiar" : "Clear",
3354
- open: es ? "Abrir lista" : "Open list"
3368
+ open: es ? "Abrir lista" : "Open list",
3369
+ title: es ? "R\xE9gimen fiscal" : "Tax regime"
3355
3370
  };
3356
3371
  }
3357
3372
  function findItem2(items, code) {
@@ -3376,119 +3391,244 @@ function TaxRegimePicker({
3376
3391
  const items = React6__namespace.useMemo(() => taxRegimePickerItems(locale), [locale]);
3377
3392
  const selected = React6__namespace.useMemo(() => findItem2(items, value), [items, value]);
3378
3393
  const dialogPortalContainer = dialog_js.useDialogPortalContainer();
3379
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3380
- name ? /* @__PURE__ */ jsxRuntime.jsx("input", { type: "hidden", name, value: value.trim() }) : null,
3381
- /* @__PURE__ */ jsxRuntime.jsxs(
3382
- combobox_js.Combobox.Root,
3383
- {
3384
- items,
3385
- value: selected,
3386
- onValueChange: (item) => {
3387
- onValueChange(item?.value ?? "");
3388
- },
3389
- disabled,
3390
- itemToStringLabel: (item) => item.label,
3391
- itemToStringValue: (item) => item.value,
3392
- isItemEqualToValue: (item, current) => item.value === current.value,
3393
- children: [
3394
- /* @__PURE__ */ jsxRuntime.jsxs(
3395
- combobox_js.Combobox.InputGroup,
3396
- {
3397
- className: cn("relative flex w-full items-center", className),
3398
- children: [
3399
- /* @__PURE__ */ jsxRuntime.jsx(
3400
- combobox_js.Combobox.Input,
3401
- {
3402
- id,
3403
- required,
3404
- "aria-invalid": ariaInvalid,
3405
- ...labels.ariaLabel ? { "aria-label": labels.ariaLabel } : {},
3406
- placeholder: labels.placeholder,
3407
- className: cn(INPUT_CLASS2, "pr-16")
3408
- }
3409
- ),
3410
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute inset-y-0 right-0 flex items-center gap-0.5 pr-1.5", children: [
3411
- allowEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
3412
- combobox_js.Combobox.Clear,
3413
- {
3414
- className: "inline-flex size-7 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground",
3415
- "aria-label": labels.clear,
3416
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, { className: "size-4", "aria-hidden": true })
3417
- }
3418
- ) : null,
3394
+ const isMdUp = useMediaQuery(MD_UP);
3395
+ const [open, setOpen] = React6__namespace.useState(false);
3396
+ const [query, setQuery] = React6__namespace.useState("");
3397
+ const searchRef = React6__namespace.useRef(null);
3398
+ const filtered = React6__namespace.useMemo(
3399
+ () => filterTaxRegimes(query, locale),
3400
+ [locale, query]
3401
+ );
3402
+ function setOpenState(next) {
3403
+ setOpen(next);
3404
+ if (!next) setQuery("");
3405
+ }
3406
+ function selectItem(item) {
3407
+ onValueChange(item.value);
3408
+ setOpenState(false);
3409
+ }
3410
+ function clearSelection() {
3411
+ onValueChange("");
3412
+ setQuery("");
3413
+ }
3414
+ React6__namespace.useEffect(() => {
3415
+ if (!open || isMdUp) return;
3416
+ const handle = window.setTimeout(() => searchRef.current?.focus(), 0);
3417
+ return () => window.clearTimeout(handle);
3418
+ }, [isMdUp, open]);
3419
+ const sheetTitle = labels.title || labels.placeholder;
3420
+ const display = selected?.label ?? "";
3421
+ const hidden = name ? /* @__PURE__ */ jsxRuntime.jsx("input", { type: "hidden", name, value: value.trim() }) : null;
3422
+ if (isMdUp) {
3423
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3424
+ hidden,
3425
+ /* @__PURE__ */ jsxRuntime.jsxs(
3426
+ combobox_js.Combobox.Root,
3427
+ {
3428
+ items,
3429
+ value: selected,
3430
+ onValueChange: (item) => {
3431
+ onValueChange(item?.value ?? "");
3432
+ },
3433
+ disabled,
3434
+ itemToStringLabel: (item) => item.label,
3435
+ itemToStringValue: (item) => item.value,
3436
+ isItemEqualToValue: (item, current) => item.value === current.value,
3437
+ children: [
3438
+ /* @__PURE__ */ jsxRuntime.jsxs(
3439
+ combobox_js.Combobox.InputGroup,
3440
+ {
3441
+ className: cn("relative flex w-full items-center", className),
3442
+ children: [
3419
3443
  /* @__PURE__ */ jsxRuntime.jsx(
3420
- combobox_js.Combobox.Trigger,
3444
+ combobox_js.Combobox.Input,
3421
3445
  {
3422
- className: "inline-flex size-7 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground",
3423
- "aria-label": labels.open,
3424
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "size-4", "aria-hidden": true })
3446
+ id,
3447
+ required,
3448
+ "aria-invalid": ariaInvalid,
3449
+ ...labels.ariaLabel ? { "aria-label": labels.ariaLabel } : {},
3450
+ placeholder: labels.placeholder,
3451
+ className: cn(INPUT_CLASS2, "pr-16")
3425
3452
  }
3426
- )
3427
- ] })
3428
- ]
3429
- }
3430
- ),
3431
- /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.Portal, { container: dialogPortalContainer ?? void 0, children: /* @__PURE__ */ jsxRuntime.jsx(
3432
- combobox_js.Combobox.Positioner,
3433
- {
3434
- className: "pointer-events-auto isolate z-[60] outline-none",
3435
- sideOffset: 4,
3436
- children: /* @__PURE__ */ jsxRuntime.jsxs(
3437
- combobox_js.Combobox.Popup,
3438
- {
3439
- className: cn(
3440
- "pointer-events-auto z-[60] max-h-60 w-(--anchor-width) min-w-[16rem] overflow-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10",
3441
- "data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95"
3442
3453
  ),
3443
- children: [
3444
- /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.Empty, { className: "px-3 py-2 text-sm text-muted-foreground", children: labels.noResults }),
3454
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute inset-y-0 right-0 flex items-center gap-0.5 pr-1.5", children: [
3455
+ allowEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
3456
+ combobox_js.Combobox.Clear,
3457
+ {
3458
+ className: "inline-flex size-7 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground",
3459
+ "aria-label": labels.clear,
3460
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, { className: "size-4", "aria-hidden": true })
3461
+ }
3462
+ ) : null,
3445
3463
  /* @__PURE__ */ jsxRuntime.jsx(
3446
- combobox_js.Combobox.List,
3464
+ combobox_js.Combobox.Trigger,
3447
3465
  {
3448
- className: "max-h-60 overflow-y-auto p-1 outline-none",
3449
- onWheel: (event) => event.stopPropagation(),
3450
- children: (item) => /* @__PURE__ */ jsxRuntime.jsxs(
3451
- combobox_js.Combobox.Item,
3452
- {
3453
- value: item,
3454
- className: cn(
3455
- "relative flex cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-sm outline-none select-none",
3456
- "data-highlighted:bg-accent data-highlighted:text-accent-foreground"
3457
- ),
3458
- children: [
3459
- /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.ItemIndicator, { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4", "aria-hidden": true }) }),
3460
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: item.label })
3461
- ]
3462
- },
3463
- item.value
3464
- )
3466
+ className: "inline-flex size-7 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground",
3467
+ "aria-label": labels.open,
3468
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "size-4", "aria-hidden": true })
3465
3469
  }
3466
3470
  )
3467
- ]
3471
+ ] })
3472
+ ]
3473
+ }
3474
+ ),
3475
+ /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.Portal, { container: dialogPortalContainer ?? void 0, children: /* @__PURE__ */ jsxRuntime.jsx(
3476
+ combobox_js.Combobox.Positioner,
3477
+ {
3478
+ className: "pointer-events-auto isolate z-[60] outline-none",
3479
+ sideOffset: 4,
3480
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
3481
+ combobox_js.Combobox.Popup,
3482
+ {
3483
+ className: cn(
3484
+ "pointer-events-auto z-[60] max-h-60 w-(--anchor-width) min-w-[16rem] overflow-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10",
3485
+ "motion-safe:data-open:animate-in motion-safe:data-open:fade-in-0 motion-safe:data-open:zoom-in-95"
3486
+ ),
3487
+ children: [
3488
+ /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.Empty, { className: "text-sm text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block px-2 py-2", children: labels.noResults }) }),
3489
+ /* @__PURE__ */ jsxRuntime.jsx(
3490
+ combobox_js.Combobox.List,
3491
+ {
3492
+ className: "max-h-60 overflow-y-auto p-1 outline-none",
3493
+ onWheel: (event) => event.stopPropagation(),
3494
+ children: (item) => /* @__PURE__ */ jsxRuntime.jsxs(
3495
+ combobox_js.Combobox.Item,
3496
+ {
3497
+ value: item,
3498
+ className: cn(
3499
+ "relative flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none select-none",
3500
+ "data-highlighted:bg-accent data-highlighted:text-accent-foreground"
3501
+ ),
3502
+ children: [
3503
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1", children: item.label }),
3504
+ /* @__PURE__ */ jsxRuntime.jsx(combobox_js.Combobox.ItemIndicator, { className: "flex size-4 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4", "aria-hidden": true }) })
3505
+ ]
3506
+ },
3507
+ item.value
3508
+ )
3509
+ }
3510
+ )
3511
+ ]
3512
+ }
3513
+ )
3514
+ }
3515
+ ) })
3516
+ ]
3517
+ }
3518
+ )
3519
+ ] });
3520
+ }
3521
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("relative w-full", className), children: [
3522
+ hidden,
3523
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-center gap-1", children: [
3524
+ /* @__PURE__ */ jsxRuntime.jsxs(
3525
+ "button",
3526
+ {
3527
+ "aria-expanded": open,
3528
+ "aria-haspopup": "dialog",
3529
+ "aria-invalid": ariaInvalid,
3530
+ "aria-label": labels.ariaLabel || labels.open,
3531
+ "aria-required": required || void 0,
3532
+ className: TRIGGER_CLASS,
3533
+ disabled,
3534
+ id,
3535
+ type: "button",
3536
+ onClick: () => setOpenState(true),
3537
+ children: [
3538
+ /* @__PURE__ */ jsxRuntime.jsx(
3539
+ "span",
3540
+ {
3541
+ className: cn(
3542
+ "min-w-0 flex-1 truncate",
3543
+ display ? "text-foreground" : "text-muted-foreground"
3544
+ ),
3545
+ children: display || labels.placeholder
3546
+ }
3547
+ ),
3548
+ /* @__PURE__ */ jsxRuntime.jsx(
3549
+ lucideReact.ChevronDownIcon,
3550
+ {
3551
+ "aria-hidden": true,
3552
+ className: "size-4 shrink-0 text-muted-foreground"
3553
+ }
3554
+ )
3555
+ ]
3556
+ }
3557
+ ),
3558
+ allowEmpty && value ? /* @__PURE__ */ jsxRuntime.jsx(
3559
+ button_js.Button,
3560
+ {
3561
+ "aria-label": labels.clear,
3562
+ disabled,
3563
+ size: "icon",
3564
+ type: "button",
3565
+ variant: "ghost",
3566
+ onClick: clearSelection,
3567
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, { className: "size-4", "aria-hidden": true })
3568
+ }
3569
+ ) : null
3570
+ ] }),
3571
+ /* @__PURE__ */ jsxRuntime.jsx(drawer_js.Drawer, { open, onOpenChange: setOpenState, children: /* @__PURE__ */ jsxRuntime.jsxs(drawer_js.DrawerContent, { className: "max-h-[85vh]", children: [
3572
+ /* @__PURE__ */ jsxRuntime.jsxs(drawer_js.DrawerHeader, { className: "flex flex-row items-center justify-between gap-2 text-left md:text-left", children: [
3573
+ /* @__PURE__ */ jsxRuntime.jsx(drawer_js.DrawerTitle, { children: sheetTitle }),
3574
+ allowEmpty && value ? /* @__PURE__ */ jsxRuntime.jsx(
3575
+ button_js.Button,
3576
+ {
3577
+ size: "sm",
3578
+ type: "button",
3579
+ variant: "ghost",
3580
+ onClick: () => {
3581
+ clearSelection();
3582
+ setOpenState(false);
3583
+ },
3584
+ children: labels.clear
3585
+ }
3586
+ ) : null
3587
+ ] }),
3588
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky top-0 z-10 border-b border-border bg-background px-4 pb-3", children: /* @__PURE__ */ jsxRuntime.jsx(
3589
+ input_js.Input,
3590
+ {
3591
+ ref: searchRef,
3592
+ "aria-label": labels.search,
3593
+ disabled,
3594
+ placeholder: labels.search,
3595
+ value: query,
3596
+ onChange: (event) => setQuery(event.target.value)
3597
+ }
3598
+ ) }),
3599
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-y-auto px-2 pb-4", children: filtered.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "px-2 py-3 text-sm text-muted-foreground", children: labels.noResults }) : /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "flex flex-col gap-1 p-1", role: "listbox", children: filtered.map((item) => {
3600
+ const isSelected = item.value === value.trim();
3601
+ return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(
3602
+ "button",
3603
+ {
3604
+ "aria-selected": isSelected,
3605
+ className: cn(
3606
+ "flex w-full items-center gap-2 rounded-lg px-3 py-3 text-left text-sm outline-none transition-colors",
3607
+ "hover:bg-muted/60 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50",
3608
+ isSelected ? "bg-accent" : null
3609
+ ),
3610
+ role: "option",
3611
+ type: "button",
3612
+ onClick: () => selectItem(item),
3613
+ children: [
3614
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1", children: item.label }),
3615
+ isSelected ? /* @__PURE__ */ jsxRuntime.jsx(
3616
+ lucideReact.CheckIcon,
3617
+ {
3618
+ "aria-hidden": true,
3619
+ className: "size-4 shrink-0 text-foreground"
3468
3620
  }
3469
- )
3470
- }
3471
- ) })
3472
- ]
3473
- }
3474
- )
3621
+ ) : null
3622
+ ]
3623
+ }
3624
+ ) }, item.value);
3625
+ }) }) })
3626
+ ] }) })
3475
3627
  ] });
3476
3628
  }
3477
- function useMediaQuery(query) {
3478
- const [matches, setMatches] = React6.useState(false);
3479
- React6.useEffect(() => {
3480
- if (typeof window === "undefined" || !window.matchMedia) return;
3481
- const mql = window.matchMedia(query);
3482
- const onChange = () => setMatches(mql.matches);
3483
- onChange();
3484
- mql.addEventListener("change", onChange);
3485
- return () => mql.removeEventListener("change", onChange);
3486
- }, [query]);
3487
- return matches;
3488
- }
3489
- var TRIGGER_CLASS = "flex h-8 w-full min-w-0 items-center justify-between gap-2 rounded-lg border border-input bg-transparent px-2.5 py-1 text-left text-base transition-colors outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40";
3629
+ var TRIGGER_CLASS2 = "flex h-8 w-full min-w-0 items-center justify-between gap-2 rounded-lg border border-input bg-transparent px-2.5 py-1 text-left text-base transition-colors outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40";
3490
3630
  var SEARCH_CLASS = "h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 md:text-sm dark:bg-input/30";
3491
- var MD_UP = "(min-width: 768px)";
3631
+ var MD_UP2 = "(min-width: 768px)";
3492
3632
  function LoadingRows() {
3493
3633
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1 p-2", role: "status", children: [
3494
3634
  /* @__PURE__ */ jsxRuntime.jsx(skeleton_js.Skeleton, { className: "h-8 w-full motion-reduce:animate-none" }),
@@ -3528,7 +3668,7 @@ function SearchablePicker({
3528
3668
  onCreate,
3529
3669
  createLabel
3530
3670
  }) {
3531
- const isMdUp = useMediaQuery(MD_UP);
3671
+ const isMdUp = useMediaQuery(MD_UP2);
3532
3672
  const dialogPortalContainer = dialog_js.useDialogPortalContainer();
3533
3673
  const [open, setOpen] = React6__namespace.useState(false);
3534
3674
  const searchRef = React6__namespace.useRef(null);
@@ -3624,7 +3764,7 @@ function SearchablePicker({
3624
3764
  id,
3625
3765
  "aria-invalid": ariaInvalid,
3626
3766
  "aria-label": openLabel,
3627
- className: cn(TRIGGER_CLASS, allowClear && value ? "pr-1" : null),
3767
+ className: cn(TRIGGER_CLASS2, allowClear && value ? "pr-1" : null),
3628
3768
  disabled,
3629
3769
  children: [
3630
3770
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -3725,7 +3865,7 @@ function SearchablePicker({
3725
3865
  "aria-haspopup": "dialog",
3726
3866
  "aria-invalid": ariaInvalid,
3727
3867
  "aria-label": openLabel,
3728
- className: TRIGGER_CLASS,
3868
+ className: TRIGGER_CLASS2,
3729
3869
  disabled,
3730
3870
  id,
3731
3871
  type: "button",
@@ -4176,7 +4316,7 @@ function PasswordInput({
4176
4316
  )
4177
4317
  ] });
4178
4318
  }
4179
- var MD_UP2 = "(min-width: 768px)";
4319
+ var MD_UP3 = "(min-width: 768px)";
4180
4320
  var ROW_CLASS = "flex h-8 w-full min-w-0 items-stretch overflow-hidden rounded-lg border border-input bg-transparent transition-colors outline-none focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40";
4181
4321
  var SEARCH_CLASS2 = "h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 md:text-sm dark:bg-input/30";
4182
4322
  function isCountryCode(value) {
@@ -4281,7 +4421,7 @@ function PhoneInput({
4281
4421
  const [open, setOpen] = React6__namespace.useState(false);
4282
4422
  const [query, setQuery] = React6__namespace.useState("");
4283
4423
  const lastEmittedRef = React6__namespace.useRef(value);
4284
- const isMdUp = useMediaQuery(MD_UP2);
4424
+ const isMdUp = useMediaQuery(MD_UP3);
4285
4425
  const dialogPortalContainer = dialog_js.useDialogPortalContainer();
4286
4426
  const searchRef = React6__namespace.useRef(null);
4287
4427
  React6__namespace.useEffect(() => {