rockin 0.0.13 → 0.0.15

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/ui/index.js CHANGED
@@ -1,11 +1,14 @@
1
1
  "use client";
2
- import {
3
- IconSwap
4
- } from "../chunk-5LE4X3CW.js";
5
2
  import {
6
3
  useMediaQuery,
7
4
  useMounted
8
5
  } from "../chunk-C3RGHTDI.js";
6
+ import {
7
+ Tooltip,
8
+ TooltipContent,
9
+ TooltipProvider,
10
+ TooltipTrigger
11
+ } from "../chunk-FYFBWCMJ.js";
9
12
  import {
10
13
  getNativeAppPlugin,
11
14
  getNativePlatform,
@@ -13,6 +16,9 @@ import {
13
16
  getNativeThemePlugin,
14
17
  isNativeApp
15
18
  } from "../chunk-ATPUW3SQ.js";
19
+ import {
20
+ IconSwap
21
+ } from "../chunk-5LE4X3CW.js";
16
22
 
17
23
  // src/ui/accordion.tsx
18
24
  import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
@@ -4189,69 +4195,10 @@ function KbdGroup({ className, ...props }) {
4189
4195
  );
4190
4196
  }
4191
4197
 
4192
- // src/ui/tooltip.tsx
4193
- import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
4194
- import { cn as cn33 } from "cn";
4195
- import { jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
4196
- function TooltipProvider({
4197
- delay = 0,
4198
- ...props
4199
- }) {
4200
- return /* @__PURE__ */ jsx34(
4201
- TooltipPrimitive.Provider,
4202
- {
4203
- "data-slot": "tooltip-provider",
4204
- delay,
4205
- ...props
4206
- }
4207
- );
4208
- }
4209
- function Tooltip2({ ...props }) {
4210
- return /* @__PURE__ */ jsx34(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props });
4211
- }
4212
- function TooltipTrigger({ ...props }) {
4213
- return /* @__PURE__ */ jsx34(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
4214
- }
4215
- function TooltipContent({
4216
- className,
4217
- side = "top",
4218
- sideOffset = 4,
4219
- align = "center",
4220
- alignOffset = 0,
4221
- children,
4222
- ...props
4223
- }) {
4224
- return /* @__PURE__ */ jsx34(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx34(
4225
- TooltipPrimitive.Positioner,
4226
- {
4227
- align,
4228
- alignOffset,
4229
- side,
4230
- sideOffset,
4231
- className: "isolate z-50",
4232
- children: /* @__PURE__ */ jsxs18(
4233
- TooltipPrimitive.Popup,
4234
- {
4235
- "data-slot": "tooltip-content",
4236
- className: cn33(
4237
- "z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
4238
- className
4239
- ),
4240
- ...props,
4241
- children: [
4242
- children,
4243
- /* @__PURE__ */ jsx34(TooltipPrimitive.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })
4244
- ]
4245
- }
4246
- )
4247
- }
4248
- ) });
4249
- }
4250
-
4251
4198
  // src/ui/filters.tsx
4252
- import { cn as cn34 } from "cn";
4199
+ import { cn as cn33 } from "cn";
4253
4200
  import { AlertCircleIcon, CheckIcon as CheckIcon2, PlusIcon, XIcon } from "lucide-react";
4254
- import { Fragment as Fragment2, jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
4201
+ import { Fragment as Fragment2, jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
4255
4202
  var DEFAULT_I18N = {
4256
4203
  // UI Labels
4257
4204
  addFilter: "Filter",
@@ -4417,10 +4364,10 @@ function FilterInput({
4417
4364
  }
4418
4365
  onKeyDown?.(e);
4419
4366
  };
4420
- return /* @__PURE__ */ jsxs19(
4367
+ return /* @__PURE__ */ jsxs18(
4421
4368
  InputGroup,
4422
4369
  {
4423
- className: cn34(
4370
+ className: cn33(
4424
4371
  "w-36",
4425
4372
  // Height follows each style's own control ladder. `default` sets no
4426
4373
  // height on purpose so the style's `.cn-input-group` applies (h-8 nova,
@@ -4435,8 +4382,8 @@ function FilterInput({
4435
4382
  className
4436
4383
  ),
4437
4384
  children: [
4438
- field?.prefix && /* @__PURE__ */ jsx35(InputGroupAddon, { children: /* @__PURE__ */ jsx35(InputGroupText, { children: field.prefix }) }),
4439
- /* @__PURE__ */ jsx35(
4385
+ field?.prefix && /* @__PURE__ */ jsx34(InputGroupAddon, { children: /* @__PURE__ */ jsx34(InputGroupText, { children: field.prefix }) }),
4386
+ /* @__PURE__ */ jsx34(
4440
4387
  InputGroupInput,
4441
4388
  {
4442
4389
  ref: inputRef,
@@ -4444,29 +4391,29 @@ function FilterInput({
4444
4391
  "aria-describedby": !isValid && validationMessage ? `${field?.key || "input"}-error` : void 0,
4445
4392
  onBlur: handleBlur,
4446
4393
  onKeyDown: handleKeyDown,
4447
- className: cn34(
4394
+ className: cn33(
4448
4395
  context.size == "sm" && "h-7! text-xs",
4449
4396
  context.size == "lg" && "h-9!"
4450
4397
  ),
4451
4398
  ...props
4452
4399
  }
4453
4400
  ),
4454
- !isValid && validationMessage && /* @__PURE__ */ jsx35(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxs19(Tooltip2, { children: [
4455
- /* @__PURE__ */ jsx35(TooltipTrigger, { render: /* @__PURE__ */ jsx35(InputGroupButton, { size: "icon-xs" }), children: /* @__PURE__ */ jsx35(AlertCircleIcon, { className: "size-3.5 text-destructive" }) }),
4456
- /* @__PURE__ */ jsx35(TooltipContent, { children: /* @__PURE__ */ jsx35("p", { className: "text-sm", children: validationMessage }) })
4401
+ !isValid && validationMessage && /* @__PURE__ */ jsx34(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxs18(Tooltip, { children: [
4402
+ /* @__PURE__ */ jsx34(TooltipTrigger, { render: /* @__PURE__ */ jsx34(InputGroupButton, { size: "icon-xs" }), children: /* @__PURE__ */ jsx34(AlertCircleIcon, { className: "size-3.5 text-destructive" }) }),
4403
+ /* @__PURE__ */ jsx34(TooltipContent, { children: /* @__PURE__ */ jsx34("p", { className: "text-sm", children: validationMessage }) })
4457
4404
  ] }) }),
4458
- field?.suffix && /* @__PURE__ */ jsx35(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsx35(InputGroupText, { children: field.suffix }) })
4405
+ field?.suffix && /* @__PURE__ */ jsx34(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsx34(InputGroupText, { children: field.suffix }) })
4459
4406
  ]
4460
4407
  }
4461
4408
  );
4462
4409
  }
4463
4410
  function FilterRemoveButton({
4464
4411
  className,
4465
- icon = /* @__PURE__ */ jsx35(XIcon, {}),
4412
+ icon = /* @__PURE__ */ jsx34(XIcon, {}),
4466
4413
  ...props
4467
4414
  }) {
4468
4415
  const context = useFilterContext();
4469
- return /* @__PURE__ */ jsx35(
4416
+ return /* @__PURE__ */ jsx34(
4470
4417
  Button,
4471
4418
  {
4472
4419
  variant: "outline",
@@ -4637,11 +4584,11 @@ function FilterOperatorDropdown({
4637
4584
  [field, values, context.i18n]
4638
4585
  );
4639
4586
  const operatorLabel = operators.find((op) => op.value === operator)?.label || context.i18n.helpers.formatOperator(operator);
4640
- return /* @__PURE__ */ jsxs19(DropdownMenu, { children: [
4641
- /* @__PURE__ */ jsx35(
4587
+ return /* @__PURE__ */ jsxs18(DropdownMenu, { children: [
4588
+ /* @__PURE__ */ jsx34(
4642
4589
  DropdownMenuTrigger,
4643
4590
  {
4644
- render: /* @__PURE__ */ jsx35(
4591
+ render: /* @__PURE__ */ jsx34(
4645
4592
  Button,
4646
4593
  {
4647
4594
  variant: "outline",
@@ -4652,19 +4599,19 @@ function FilterOperatorDropdown({
4652
4599
  )
4653
4600
  }
4654
4601
  ),
4655
- /* @__PURE__ */ jsx35(DropdownMenuContent, { align: "start", className: "w-fit min-w-fit", children: operators.map((op) => /* @__PURE__ */ jsxs19(
4602
+ /* @__PURE__ */ jsx34(DropdownMenuContent, { align: "start", className: "w-fit min-w-fit", children: operators.map((op) => /* @__PURE__ */ jsxs18(
4656
4603
  DropdownMenuItem,
4657
4604
  {
4658
4605
  onClick: () => onChange(op.value),
4659
- className: cn34(
4606
+ className: cn33(
4660
4607
  "flex items-center justify-between data-highlighted:bg-accent data-highlighted:text-accent-foreground"
4661
4608
  ),
4662
4609
  children: [
4663
- /* @__PURE__ */ jsx35("span", { children: op.label }),
4664
- /* @__PURE__ */ jsx35(
4610
+ /* @__PURE__ */ jsx34("span", { children: op.label }),
4611
+ /* @__PURE__ */ jsx34(
4665
4612
  CheckIcon2,
4666
4613
  {
4667
- className: cn34(
4614
+ className: cn33(
4668
4615
  "ms-auto text-primary",
4669
4616
  op.value === operator ? "opacity-100" : "opacity-0"
4670
4617
  )
@@ -4745,7 +4692,7 @@ function SelectOptionsPopover({
4745
4692
  const isSelected = effectiveValues.includes(option.value);
4746
4693
  const isHighlighted = highlightedIndex === overallIndex;
4747
4694
  const itemId = `${baseId}-item-${overallIndex}`;
4748
- return /* @__PURE__ */ jsxs19(
4695
+ return /* @__PURE__ */ jsxs18(
4749
4696
  DropdownMenuCheckboxItem,
4750
4697
  {
4751
4698
  id: itemId,
@@ -4754,7 +4701,7 @@ function SelectOptionsPopover({
4754
4701
  "data-highlighted": isHighlighted || void 0,
4755
4702
  onMouseEnter: () => setHighlightedIndex(overallIndex),
4756
4703
  checked: isSelected,
4757
- className: cn34(
4704
+ className: cn33(
4758
4705
  "data-highlighted:bg-accent data-highlighted:text-accent-foreground",
4759
4706
  option.className
4760
4707
  ),
@@ -4764,15 +4711,15 @@ function SelectOptionsPopover({
4764
4711
  onCheckedChange: () => toggleOption(option),
4765
4712
  children: [
4766
4713
  option.icon && option.icon,
4767
- /* @__PURE__ */ jsx35("span", { className: "truncate", children: option.label })
4714
+ /* @__PURE__ */ jsx34("span", { className: "truncate", children: option.label })
4768
4715
  ]
4769
4716
  },
4770
4717
  String(option.value)
4771
4718
  );
4772
4719
  };
4773
- const renderMenuContent = () => /* @__PURE__ */ jsxs19(Fragment2, { children: [
4774
- field.searchable !== false && /* @__PURE__ */ jsxs19(Fragment2, { children: [
4775
- /* @__PURE__ */ jsx35(
4720
+ const renderMenuContent = () => /* @__PURE__ */ jsxs18(Fragment2, { children: [
4721
+ field.searchable !== false && /* @__PURE__ */ jsxs18(Fragment2, { children: [
4722
+ /* @__PURE__ */ jsx34(
4776
4723
  Input,
4777
4724
  {
4778
4725
  ref: inputRef,
@@ -4785,7 +4732,7 @@ function SelectOptionsPopover({
4785
4732
  placeholder: context.i18n.placeholders.searchField(
4786
4733
  field.label || ""
4787
4734
  ),
4788
- className: cn34(
4735
+ className: cn33(
4789
4736
  "h-8 rounded-none border-0 border-input bg-transparent! px-2 text-sm shadow-none",
4790
4737
  "focus-visible:border-border focus-visible:ring-0 focus-visible:ring-offset-0",
4791
4738
  open && "placeholder:text-foreground"
@@ -4833,24 +4780,24 @@ function SelectOptionsPopover({
4833
4780
  }
4834
4781
  }
4835
4782
  ),
4836
- /* @__PURE__ */ jsx35(DropdownMenuSeparator, {})
4783
+ /* @__PURE__ */ jsx34(DropdownMenuSeparator, {})
4837
4784
  ] }),
4838
- /* @__PURE__ */ jsx35("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx35(
4785
+ /* @__PURE__ */ jsx34("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx34(
4839
4786
  "div",
4840
4787
  {
4841
4788
  className: "flex max-h-[min(var(--available-height),24rem)] w-full scroll-pt-2 scroll-pb-2 flex-col overscroll-contain",
4842
4789
  role: "listbox",
4843
4790
  id: `${baseId}-listbox`,
4844
- children: isAsync && loading && allFilteredOptions.length === 0 ? /* @__PURE__ */ jsx35("div", { className: "py-2 text-center text-sm text-muted-foreground", children: context.i18n.loadingOptions ?? DEFAULT_I18N.loadingOptions }) : isAsync && error ? /* @__PURE__ */ jsx35("div", { className: "py-2 text-center text-sm text-muted-foreground", children: context.i18n.errorLoadingOptions ?? DEFAULT_I18N.errorLoadingOptions }) : allFilteredOptions.length === 0 ? /* @__PURE__ */ jsx35("div", { className: "py-2 text-center text-sm text-muted-foreground", children: context.i18n.noResultsFound }) : field.renderOptionList ? field.renderOptionList({
4791
+ children: isAsync && loading && allFilteredOptions.length === 0 ? /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: context.i18n.loadingOptions ?? DEFAULT_I18N.loadingOptions }) : isAsync && error ? /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: context.i18n.errorLoadingOptions ?? DEFAULT_I18N.errorLoadingOptions }) : allFilteredOptions.length === 0 ? /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: context.i18n.noResultsFound }) : field.renderOptionList ? field.renderOptionList({
4845
4792
  options: allFilteredOptions,
4846
4793
  highlightedIndex,
4847
4794
  renderOption: renderOptionItem
4848
- }) : /* @__PURE__ */ jsxs19(ScrollArea, { className: "size-full min-h-0 **:data-[slot=scroll-area-scrollbar]:m-0 **:data-[slot=scroll-area-viewport]:h-full **:data-[slot=scroll-area-viewport]:overscroll-contain", children: [
4849
- filteredSelectedOptions.length > 0 && /* @__PURE__ */ jsx35(DropdownMenuGroup, { className: "px-1", children: filteredSelectedOptions.map(
4795
+ }) : /* @__PURE__ */ jsxs18(ScrollArea, { className: "size-full min-h-0 **:data-[slot=scroll-area-scrollbar]:m-0 **:data-[slot=scroll-area-viewport]:h-full **:data-[slot=scroll-area-viewport]:overscroll-contain", children: [
4796
+ filteredSelectedOptions.length > 0 && /* @__PURE__ */ jsx34(DropdownMenuGroup, { className: "px-1", children: filteredSelectedOptions.map(
4850
4797
  (option, index) => renderOptionItem(option, index)
4851
4798
  ) }),
4852
- filteredSelectedOptions.length > 0 && filteredUnselectedOptions.length > 0 && /* @__PURE__ */ jsx35(DropdownMenuSeparator, { className: "mx-0" }),
4853
- filteredUnselectedOptions.length > 0 && /* @__PURE__ */ jsx35(DropdownMenuGroup, { className: "px-1", children: filteredUnselectedOptions.map(
4799
+ filteredSelectedOptions.length > 0 && filteredUnselectedOptions.length > 0 && /* @__PURE__ */ jsx34(DropdownMenuSeparator, { className: "mx-0" }),
4800
+ filteredUnselectedOptions.length > 0 && /* @__PURE__ */ jsx34(DropdownMenuGroup, { className: "px-1", children: filteredUnselectedOptions.map(
4854
4801
  (option, index) => renderOptionItem(
4855
4802
  option,
4856
4803
  index + filteredSelectedOptions.length
@@ -4861,9 +4808,9 @@ function SelectOptionsPopover({
4861
4808
  ) })
4862
4809
  ] });
4863
4810
  if (inline) {
4864
- return /* @__PURE__ */ jsx35("div", { className: "w-full", children: renderMenuContent() });
4811
+ return /* @__PURE__ */ jsx34("div", { className: "w-full", children: renderMenuContent() });
4865
4812
  }
4866
- return /* @__PURE__ */ jsxs19(
4813
+ return /* @__PURE__ */ jsxs18(
4867
4814
  DropdownMenu,
4868
4815
  {
4869
4816
  open,
@@ -4874,23 +4821,23 @@ function SelectOptionsPopover({
4874
4821
  }
4875
4822
  },
4876
4823
  children: [
4877
- /* @__PURE__ */ jsx35(
4824
+ /* @__PURE__ */ jsx34(
4878
4825
  DropdownMenuTrigger,
4879
4826
  {
4880
- render: /* @__PURE__ */ jsx35(Button, { variant: "outline", size: context.size, children: /* @__PURE__ */ jsx35("div", { className: "flex items-center gap-1.5", children: field.customValueRenderer ? field.customValueRenderer(
4827
+ render: /* @__PURE__ */ jsx34(Button, { variant: "outline", size: context.size, children: /* @__PURE__ */ jsx34("div", { className: "flex items-center gap-1.5", children: field.customValueRenderer ? field.customValueRenderer(
4881
4828
  values,
4882
4829
  isAsync ? resolveSelected(values) : field.options || []
4883
- ) : /* @__PURE__ */ jsxs19(Fragment2, { children: [
4884
- selectedOptions.length > 0 && /* @__PURE__ */ jsx35("div", { className: "flex items-center -space-x-1.5", children: selectedOptions.slice(0, 3).map((option) => /* @__PURE__ */ jsx35("div", { children: option.icon }, String(option.value))) }),
4830
+ ) : /* @__PURE__ */ jsxs18(Fragment2, { children: [
4831
+ selectedOptions.length > 0 && /* @__PURE__ */ jsx34("div", { className: "flex items-center -space-x-1.5", children: selectedOptions.slice(0, 3).map((option) => /* @__PURE__ */ jsx34("div", { children: option.icon }, String(option.value))) }),
4885
4832
  selectedOptions.length === 1 ? selectedOptions[0].label : selectedOptions.length > 1 ? `${selectedOptions.length} ${context.i18n.selectedCount}` : context.i18n.select
4886
4833
  ] }) }) })
4887
4834
  }
4888
4835
  ),
4889
- /* @__PURE__ */ jsx35(
4836
+ /* @__PURE__ */ jsx34(
4890
4837
  DropdownMenuContent,
4891
4838
  {
4892
4839
  align: "start",
4893
- className: cn34("w-50 px-0", field.className),
4840
+ className: cn33("w-50 px-0", field.className),
4894
4841
  children: renderMenuContent()
4895
4842
  }
4896
4843
  )
@@ -4909,10 +4856,10 @@ function FilterValueSelector({
4909
4856
  return null;
4910
4857
  }
4911
4858
  if (field.customRenderer) {
4912
- return /* @__PURE__ */ jsx35(ButtonGroupText, { className: "bg-background text-start whitespace-nowrap outline-hidden hover:bg-accent aria-expanded:bg-accent dark:bg-input/30", children: field.customRenderer({ field, values, onChange, operator }) });
4859
+ return /* @__PURE__ */ jsx34(ButtonGroupText, { className: "bg-background text-start whitespace-nowrap outline-hidden hover:bg-accent aria-expanded:bg-accent dark:bg-input/30", children: field.customRenderer({ field, values, onChange, operator }) });
4913
4860
  }
4914
4861
  if (field.type === "text") {
4915
- return /* @__PURE__ */ jsx35(
4862
+ return /* @__PURE__ */ jsx34(
4916
4863
  FilterInput,
4917
4864
  {
4918
4865
  type: "text",
@@ -4921,15 +4868,15 @@ function FilterValueSelector({
4921
4868
  placeholder: field.placeholder,
4922
4869
  pattern: field.pattern,
4923
4870
  field,
4924
- className: cn34("w-36", field.className),
4871
+ className: cn33("w-36", field.className),
4925
4872
  autoFocus
4926
4873
  }
4927
4874
  );
4928
4875
  }
4929
4876
  if (field.type === "select" || field.type === "multiselect") {
4930
- return /* @__PURE__ */ jsx35(SelectOptionsPopover, { field, values, onChange });
4877
+ return /* @__PURE__ */ jsx34(SelectOptionsPopover, { field, values, onChange });
4931
4878
  }
4932
- return /* @__PURE__ */ jsx35(SelectOptionsPopover, { field, values, onChange });
4879
+ return /* @__PURE__ */ jsx34(SelectOptionsPopover, { field, values, onChange });
4933
4880
  }
4934
4881
  var FiltersContent = ({
4935
4882
  filters,
@@ -4961,10 +4908,10 @@ var FiltersContent = ({
4961
4908
  },
4962
4909
  [filters, onChange]
4963
4910
  );
4964
- return /* @__PURE__ */ jsx35(
4911
+ return /* @__PURE__ */ jsx34(
4965
4912
  "div",
4966
4913
  {
4967
- className: cn34(
4914
+ className: cn33(
4968
4915
  filtersContainerVariants({
4969
4916
  variant: context.variant,
4970
4917
  size: context.size
@@ -4974,16 +4921,16 @@ var FiltersContent = ({
4974
4921
  children: filters.map((filter) => {
4975
4922
  const field = fieldsMap[filter.field];
4976
4923
  if (!field) return null;
4977
- return /* @__PURE__ */ jsxs19(
4924
+ return /* @__PURE__ */ jsxs18(
4978
4925
  ButtonGroup,
4979
4926
  {
4980
4927
  className: "",
4981
4928
  children: [
4982
- /* @__PURE__ */ jsxs19(ButtonGroupText, { children: [
4929
+ /* @__PURE__ */ jsxs18(ButtonGroupText, { children: [
4983
4930
  field.icon && field.icon,
4984
4931
  field.label
4985
4932
  ] }),
4986
- /* @__PURE__ */ jsx35(
4933
+ /* @__PURE__ */ jsx34(
4987
4934
  FilterOperatorDropdown,
4988
4935
  {
4989
4936
  field,
@@ -4992,7 +4939,7 @@ var FiltersContent = ({
4992
4939
  onChange: (operator) => updateFilter(filter.id, { operator })
4993
4940
  }
4994
4941
  ),
4995
- /* @__PURE__ */ jsx35(
4942
+ /* @__PURE__ */ jsx34(
4996
4943
  FilterValueSelector,
4997
4944
  {
4998
4945
  field,
@@ -5002,7 +4949,7 @@ var FiltersContent = ({
5002
4949
  autoFocus: false
5003
4950
  }
5004
4951
  ),
5005
- /* @__PURE__ */ jsx35(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
4952
+ /* @__PURE__ */ jsx34(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
5006
4953
  ]
5007
4954
  },
5008
4955
  filter.id
@@ -5080,7 +5027,7 @@ function FilterSubmenuContent({
5080
5027
  const isSelected = currentValues.includes(option.value);
5081
5028
  const isHighlighted = highlightedIndex === index;
5082
5029
  const itemId = `${baseId}-item-${index}`;
5083
- return /* @__PURE__ */ jsxs19(
5030
+ return /* @__PURE__ */ jsxs18(
5084
5031
  DropdownMenuCheckboxItem,
5085
5032
  {
5086
5033
  id: itemId,
@@ -5089,7 +5036,7 @@ function FilterSubmenuContent({
5089
5036
  "data-highlighted": isHighlighted || void 0,
5090
5037
  onMouseEnter: () => setHighlightedIndex(index),
5091
5038
  checked: isSelected,
5092
- className: cn34(
5039
+ className: cn33(
5093
5040
  "data-highlighted:bg-accent data-highlighted:text-accent-foreground",
5094
5041
  option.className
5095
5042
  ),
@@ -5099,7 +5046,7 @@ function FilterSubmenuContent({
5099
5046
  onCheckedChange: () => onToggle(option.value, isSelected),
5100
5047
  children: [
5101
5048
  option.icon && option.icon,
5102
- /* @__PURE__ */ jsx35("span", { className: "truncate", children: option.label })
5049
+ /* @__PURE__ */ jsx34("span", { className: "truncate", children: option.label })
5103
5050
  ]
5104
5051
  },
5105
5052
  String(option.value)
@@ -5110,9 +5057,9 @@ function FilterSubmenuContent({
5110
5057
  setHighlightedIndex(0);
5111
5058
  }
5112
5059
  }, [isActive, filteredOptions.length]);
5113
- return /* @__PURE__ */ jsxs19("div", { className: "flex flex-col", onMouseEnter: onActive, children: [
5114
- field.searchable !== false && /* @__PURE__ */ jsxs19(Fragment2, { children: [
5115
- /* @__PURE__ */ jsx35(
5060
+ return /* @__PURE__ */ jsxs18("div", { className: "flex flex-col", onMouseEnter: onActive, children: [
5061
+ field.searchable !== false && /* @__PURE__ */ jsxs18(Fragment2, { children: [
5062
+ /* @__PURE__ */ jsx34(
5116
5063
  Input,
5117
5064
  {
5118
5065
  ref: inputRef,
@@ -5123,7 +5070,7 @@ function FilterSubmenuContent({
5123
5070
  "aria-controls": `${baseId}-listbox`,
5124
5071
  "aria-activedescendant": highlightedIndex >= 0 ? `${baseId}-item-${highlightedIndex}` : void 0,
5125
5072
  placeholder: i18n.placeholders.searchField(field.label || ""),
5126
- className: cn34(
5073
+ className: cn33(
5127
5074
  "h-8 rounded-none border-0 bg-transparent! px-2 text-sm shadow-none",
5128
5075
  "focus-visible:border-border focus-visible:ring-0 focus-visible:ring-offset-0",
5129
5076
  isActive && "placeholder:text-foreground"
@@ -5175,9 +5122,9 @@ function FilterSubmenuContent({
5175
5122
  }
5176
5123
  }
5177
5124
  ),
5178
- /* @__PURE__ */ jsx35(DropdownMenuSeparator, {})
5125
+ /* @__PURE__ */ jsx34(DropdownMenuSeparator, {})
5179
5126
  ] }),
5180
- /* @__PURE__ */ jsx35("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx35(
5127
+ /* @__PURE__ */ jsx34("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx34(
5181
5128
  "div",
5182
5129
  {
5183
5130
  className: "flex max-h-[min(var(--available-height),24rem)] w-full scroll-pt-2 scroll-pb-2 flex-col overscroll-contain outline-hidden",
@@ -5222,11 +5169,11 @@ function FilterSubmenuContent({
5222
5169
  e.stopPropagation();
5223
5170
  }
5224
5171
  },
5225
- children: isAsync && loading && filteredOptions.length === 0 ? /* @__PURE__ */ jsx35("div", { className: "py-2 text-center text-sm text-muted-foreground", children: i18n.loadingOptions ?? DEFAULT_I18N.loadingOptions }) : isAsync && error ? /* @__PURE__ */ jsx35("div", { className: "py-2 text-center text-sm text-muted-foreground", children: i18n.errorLoadingOptions ?? DEFAULT_I18N.errorLoadingOptions }) : filteredOptions.length === 0 ? /* @__PURE__ */ jsx35("div", { className: "py-2 text-center text-sm text-muted-foreground", children: i18n.noResultsFound }) : field.renderOptionList ? field.renderOptionList({
5172
+ children: isAsync && loading && filteredOptions.length === 0 ? /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: i18n.loadingOptions ?? DEFAULT_I18N.loadingOptions }) : isAsync && error ? /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: i18n.errorLoadingOptions ?? DEFAULT_I18N.errorLoadingOptions }) : filteredOptions.length === 0 ? /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: i18n.noResultsFound }) : field.renderOptionList ? field.renderOptionList({
5226
5173
  options: filteredOptions,
5227
5174
  highlightedIndex,
5228
5175
  renderOption: renderOptionItem
5229
- }) : /* @__PURE__ */ jsx35(ScrollArea, { className: "size-full min-h-0 **:data-[slot=scroll-area-scrollbar]:m-0 **:data-[slot=scroll-area-viewport]:h-full **:data-[slot=scroll-area-viewport]:overscroll-contain", children: /* @__PURE__ */ jsx35(DropdownMenuGroup, { children: filteredOptions.map(
5176
+ }) : /* @__PURE__ */ jsx34(ScrollArea, { className: "size-full min-h-0 **:data-[slot=scroll-area-scrollbar]:m-0 **:data-[slot=scroll-area-viewport]:h-full **:data-[slot=scroll-area-viewport]:overscroll-contain", children: /* @__PURE__ */ jsx34(DropdownMenuGroup, { children: filteredOptions.map(
5230
5177
  (option, index) => renderOptionItem(option, index)
5231
5178
  ) }) })
5232
5179
  }
@@ -5373,8 +5320,8 @@ function Filters({
5373
5320
  }
5374
5321
  }, [addFilterOpen, filteredFields.length]);
5375
5322
  const triggerButton = useRender4({
5376
- render: trigger ?? /* @__PURE__ */ jsxs19(Button, { variant: "outline", children: [
5377
- /* @__PURE__ */ jsx35(PlusIcon, {}),
5323
+ render: trigger ?? /* @__PURE__ */ jsxs18(Button, { variant: "outline", children: [
5324
+ /* @__PURE__ */ jsx34(PlusIcon, {}),
5378
5325
  mergedI18n.addFilter
5379
5326
  ] }),
5380
5327
  defaultTagName: "button"
@@ -5391,12 +5338,12 @@ function Filters({
5391
5338
  }),
5392
5339
  [variant, size, radius, mergedI18n, className, trigger, allowMultiple]
5393
5340
  );
5394
- return /* @__PURE__ */ jsx35(FilterContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs19(
5341
+ return /* @__PURE__ */ jsx34(FilterContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs18(
5395
5342
  "div",
5396
5343
  {
5397
- className: cn34(filtersContainerVariants({ variant, size }), className),
5344
+ className: cn33(filtersContainerVariants({ variant, size }), className),
5398
5345
  children: [
5399
- selectableFields.length > 0 && /* @__PURE__ */ jsxs19(
5346
+ selectableFields.length > 0 && /* @__PURE__ */ jsxs18(
5400
5347
  DropdownMenu,
5401
5348
  {
5402
5349
  open: addFilterOpen,
@@ -5410,16 +5357,16 @@ function Filters({
5410
5357
  }
5411
5358
  },
5412
5359
  children: [
5413
- /* @__PURE__ */ jsx35(DropdownMenuTrigger, { render: triggerButton }),
5414
- /* @__PURE__ */ jsxs19(
5360
+ /* @__PURE__ */ jsx34(DropdownMenuTrigger, { render: triggerButton }),
5361
+ /* @__PURE__ */ jsxs18(
5415
5362
  DropdownMenuContent,
5416
5363
  {
5417
- className: cn34("w-55", menuPopupClassName),
5364
+ className: cn33("w-55", menuPopupClassName),
5418
5365
  align: "start",
5419
5366
  children: [
5420
- showSearchInput && /* @__PURE__ */ jsxs19(Fragment2, { children: [
5421
- /* @__PURE__ */ jsxs19("div", { className: "relative", children: [
5422
- /* @__PURE__ */ jsx35(
5367
+ showSearchInput && /* @__PURE__ */ jsxs18(Fragment2, { children: [
5368
+ /* @__PURE__ */ jsxs18("div", { className: "relative", children: [
5369
+ /* @__PURE__ */ jsx34(
5423
5370
  Input,
5424
5371
  {
5425
5372
  ref: rootInputRef,
@@ -5427,7 +5374,7 @@ function Filters({
5427
5374
  "aria-controls": `${rootId}-listbox`,
5428
5375
  "aria-activedescendant": highlightedIndex >= 0 ? `${rootId}-item-${highlightedIndex}` : void 0,
5429
5376
  placeholder: mergedI18n.searchFields,
5430
- className: cn34(
5377
+ className: cn33(
5431
5378
  "h-8 rounded-none border-0 bg-transparent! px-2 text-sm shadow-none",
5432
5379
  "focus-visible:border-border focus-visible:ring-0 focus-visible:ring-offset-0",
5433
5380
  activeMenu === "root" && "placeholder:text-foreground"
@@ -5491,20 +5438,20 @@ function Filters({
5491
5438
  }
5492
5439
  }
5493
5440
  ),
5494
- enableShortcut && shortcutLabel && /* @__PURE__ */ jsx35(Kbd, { className: "absolute top-1/2 right-2 -translate-y-1/2 border bg-background", children: shortcutLabel })
5441
+ enableShortcut && shortcutLabel && /* @__PURE__ */ jsx34(Kbd, { className: "absolute top-1/2 right-2 -translate-y-1/2 border bg-background", children: shortcutLabel })
5495
5442
  ] }),
5496
- /* @__PURE__ */ jsx35(DropdownMenuSeparator, {})
5443
+ /* @__PURE__ */ jsx34(DropdownMenuSeparator, {})
5497
5444
  ] }),
5498
- /* @__PURE__ */ jsx35("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx35(
5445
+ /* @__PURE__ */ jsx34("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx34(
5499
5446
  "div",
5500
5447
  {
5501
5448
  className: "flex max-h-[min(var(--available-height),24rem)] w-full scroll-pt-2 scroll-pb-2 flex-col overscroll-contain",
5502
5449
  role: "listbox",
5503
5450
  id: `${rootId}-listbox`,
5504
5451
  onMouseEnter: () => setActiveMenu("root"),
5505
- children: /* @__PURE__ */ jsx35(ScrollArea, { className: "**:data-[slot=scroll-area-scrollbar]:m-0", children: (() => {
5452
+ children: /* @__PURE__ */ jsx34(ScrollArea, { className: "**:data-[slot=scroll-area-scrollbar]:m-0", children: (() => {
5506
5453
  if (filteredFields.length === 0) {
5507
- return /* @__PURE__ */ jsx35("div", { className: "py-2 text-center text-sm text-muted-foreground", children: mergedI18n.noFieldsFound });
5454
+ return /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: mergedI18n.noFieldsFound });
5508
5455
  }
5509
5456
  return filteredFields.map((field, index) => {
5510
5457
  const isHighlighted = highlightedIndex === index;
@@ -5516,7 +5463,7 @@ function Filters({
5516
5463
  const sessionFilterId = sessionFilterIds[fieldKey];
5517
5464
  const sessionFilter = sessionFilterId ? filters.find((f) => f.id === sessionFilterId) : null;
5518
5465
  const currentValues = sessionFilter?.values || [];
5519
- return /* @__PURE__ */ jsxs19(
5466
+ return /* @__PURE__ */ jsxs18(
5520
5467
  DropdownMenuSub,
5521
5468
  {
5522
5469
  open: openSubMenu === fieldKey,
@@ -5531,7 +5478,7 @@ function Filters({
5531
5478
  }
5532
5479
  },
5533
5480
  children: [
5534
- /* @__PURE__ */ jsxs19(
5481
+ /* @__PURE__ */ jsxs18(
5535
5482
  DropdownMenuSubTrigger,
5536
5483
  {
5537
5484
  id: itemId,
@@ -5545,16 +5492,16 @@ function Filters({
5545
5492
  className: "data-highlighted:bg-accent data-highlighted:text-accent-foreground data-popup-open:bg-accent data-popup-open:text-accent-foreground",
5546
5493
  children: [
5547
5494
  field.icon,
5548
- /* @__PURE__ */ jsx35("span", { children: field.label })
5495
+ /* @__PURE__ */ jsx34("span", { children: field.label })
5549
5496
  ]
5550
5497
  }
5551
5498
  ),
5552
- /* @__PURE__ */ jsx35(
5499
+ /* @__PURE__ */ jsx34(
5553
5500
  DropdownMenuSubContent,
5554
5501
  {
5555
5502
  className: "w-50",
5556
5503
  side: "right",
5557
- children: /* @__PURE__ */ jsx35(
5504
+ children: /* @__PURE__ */ jsx34(
5558
5505
  FilterSubmenuContent,
5559
5506
  {
5560
5507
  field,
@@ -5627,7 +5574,7 @@ function Filters({
5627
5574
  fieldKey
5628
5575
  );
5629
5576
  }
5630
- return /* @__PURE__ */ jsxs19(
5577
+ return /* @__PURE__ */ jsxs18(
5631
5578
  DropdownMenuItem,
5632
5579
  {
5633
5580
  id: itemId,
@@ -5639,7 +5586,7 @@ function Filters({
5639
5586
  className: "data-highlighted:bg-accent data-highlighted:text-accent-foreground",
5640
5587
  children: [
5641
5588
  field.icon,
5642
- /* @__PURE__ */ jsx35("span", { children: field.label })
5589
+ /* @__PURE__ */ jsx34("span", { children: field.label })
5643
5590
  ]
5644
5591
  },
5645
5592
  field.key
@@ -5657,16 +5604,16 @@ function Filters({
5657
5604
  filters.map((filter) => {
5658
5605
  const field = fieldsMap[filter.field];
5659
5606
  if (!field) return null;
5660
- return /* @__PURE__ */ jsxs19(
5607
+ return /* @__PURE__ */ jsxs18(
5661
5608
  ButtonGroup,
5662
5609
  {
5663
5610
  className: "",
5664
5611
  children: [
5665
- /* @__PURE__ */ jsxs19(ButtonGroupText, { className: "bg-background dark:bg-input/30", children: [
5612
+ /* @__PURE__ */ jsxs18(ButtonGroupText, { className: "bg-background dark:bg-input/30", children: [
5666
5613
  field.icon && field.icon,
5667
5614
  field.label
5668
5615
  ] }),
5669
- /* @__PURE__ */ jsx35(
5616
+ /* @__PURE__ */ jsx34(
5670
5617
  FilterOperatorDropdown,
5671
5618
  {
5672
5619
  field,
@@ -5675,7 +5622,7 @@ function Filters({
5675
5622
  onChange: (operator) => updateFilter(filter.id, { operator })
5676
5623
  }
5677
5624
  ),
5678
- /* @__PURE__ */ jsx35(
5625
+ /* @__PURE__ */ jsx34(
5679
5626
  FilterValueSelector,
5680
5627
  {
5681
5628
  field,
@@ -5685,7 +5632,7 @@ function Filters({
5685
5632
  autoFocus: filter.id === lastAddedFilterId
5686
5633
  }
5687
5634
  ),
5688
- /* @__PURE__ */ jsx35(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
5635
+ /* @__PURE__ */ jsx34(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
5689
5636
  ]
5690
5637
  },
5691
5638
  filter.id
@@ -5711,8 +5658,8 @@ var createFilterGroup = (id, label, fields, initialFilters = []) => ({
5711
5658
  // src/ui/image.tsx
5712
5659
  import NextImage from "next/image";
5713
5660
  import { useCallback as useCallback3, useState as useState6 } from "react";
5714
- import { cn as cn35 } from "cn";
5715
- import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
5661
+ import { cn as cn34 } from "cn";
5662
+ import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
5716
5663
  function srcValue(src) {
5717
5664
  if (!src) return null;
5718
5665
  if (typeof src === "string") return src;
@@ -5732,7 +5679,7 @@ function Image({
5732
5679
  onLoad,
5733
5680
  onError,
5734
5681
  children,
5735
- fallback = /* @__PURE__ */ jsx36(JellyMini, { mood: "curious", className: "size-full p-4" }),
5682
+ fallback = /* @__PURE__ */ jsx35(JellyMini, { mood: "curious", className: "size-full p-4" }),
5736
5683
  ...props
5737
5684
  }) {
5738
5685
  const currentSrc = srcValue(src);
@@ -5752,9 +5699,9 @@ function Image({
5752
5699
  if (!currentSrc) return;
5753
5700
  setFailedSrc(currentSrc);
5754
5701
  }, [currentSrc]);
5755
- return /* @__PURE__ */ jsxs20("section", { className: cn35("relative block overflow-hidden", wrapper), children: [
5756
- showSkeleton && !loaded && !failed && hasSource && /* @__PURE__ */ jsx36(Skeleton, { className: "absolute inset-0 size-full" }),
5757
- hasSource && !failed ? /* @__PURE__ */ jsx36(
5702
+ return /* @__PURE__ */ jsxs19("section", { className: cn34("relative block overflow-hidden", wrapper), children: [
5703
+ showSkeleton && !loaded && !failed && hasSource && /* @__PURE__ */ jsx35(Skeleton, { className: "absolute inset-0 size-full" }),
5704
+ hasSource && !failed ? /* @__PURE__ */ jsx35(
5758
5705
  NextImage,
5759
5706
  {
5760
5707
  ...props,
@@ -5764,7 +5711,7 @@ function Image({
5764
5711
  loading: imageLoading,
5765
5712
  preload: shouldPreload,
5766
5713
  fetchPriority: fetchPriority ?? (imageLoading === "eager" ? "high" : void 0),
5767
- className: cn35(
5714
+ className: cn34(
5768
5715
  "transition-opacity duration-200",
5769
5716
  loaded ? "opacity-100" : "opacity-0",
5770
5717
  className
@@ -5786,34 +5733,34 @@ function Image({
5786
5733
  // src/ui/input-otp.tsx
5787
5734
  import * as React11 from "react";
5788
5735
  import { OTPInput, OTPInputContext, REGEXP_ONLY_DIGITS } from "input-otp";
5789
- import { cn as cn36 } from "cn";
5736
+ import { cn as cn35 } from "cn";
5790
5737
  import { MinusIcon } from "lucide-react";
5791
- import { jsx as jsx37, jsxs as jsxs21 } from "react/jsx-runtime";
5738
+ import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
5792
5739
  function InputOTP({
5793
5740
  className,
5794
5741
  containerClassName,
5795
5742
  ...props
5796
5743
  }) {
5797
- return /* @__PURE__ */ jsx37(
5744
+ return /* @__PURE__ */ jsx36(
5798
5745
  OTPInput,
5799
5746
  {
5800
5747
  "data-slot": "input-otp",
5801
- containerClassName: cn36(
5748
+ containerClassName: cn35(
5802
5749
  "cn-input-otp flex items-center has-disabled:opacity-50",
5803
5750
  containerClassName
5804
5751
  ),
5805
5752
  spellCheck: false,
5806
- className: cn36("disabled:cursor-not-allowed", className),
5753
+ className: cn35("disabled:cursor-not-allowed", className),
5807
5754
  ...props
5808
5755
  }
5809
5756
  );
5810
5757
  }
5811
5758
  function InputOTPGroup({ className, ...props }) {
5812
- return /* @__PURE__ */ jsx37(
5759
+ return /* @__PURE__ */ jsx36(
5813
5760
  "div",
5814
5761
  {
5815
5762
  "data-slot": "input-otp-group",
5816
- className: cn36(
5763
+ className: cn35(
5817
5764
  "flex items-center rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40",
5818
5765
  className
5819
5766
  ),
@@ -5828,32 +5775,32 @@ function InputOTPSlot({
5828
5775
  }) {
5829
5776
  const inputOTPContext = React11.useContext(OTPInputContext);
5830
5777
  const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
5831
- return /* @__PURE__ */ jsxs21(
5778
+ return /* @__PURE__ */ jsxs20(
5832
5779
  "div",
5833
5780
  {
5834
5781
  "data-slot": "input-otp-slot",
5835
5782
  "data-active": isActive,
5836
- className: cn36(
5783
+ className: cn35(
5837
5784
  "relative flex size-8 items-center justify-center border-y border-r border-input text-sm transition-[background-color,border-color,box-shadow,opacity] duration-150 ease-out outline-none motion-reduce:transition-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40",
5838
5785
  className
5839
5786
  ),
5840
5787
  ...props,
5841
5788
  children: [
5842
5789
  char,
5843
- hasFakeCaret && /* @__PURE__ */ jsx37("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx37("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
5790
+ hasFakeCaret && /* @__PURE__ */ jsx36("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx36("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
5844
5791
  ]
5845
5792
  }
5846
5793
  );
5847
5794
  }
5848
5795
  function InputOTPSeparator({ ...props }) {
5849
- return /* @__PURE__ */ jsx37(
5796
+ return /* @__PURE__ */ jsx36(
5850
5797
  "div",
5851
5798
  {
5852
5799
  "data-slot": "input-otp-separator",
5853
5800
  className: "flex items-center [&_svg:not([class*='size-'])]:size-4",
5854
5801
  role: "separator",
5855
5802
  ...props,
5856
- children: /* @__PURE__ */ jsx37(MinusIcon, {})
5803
+ children: /* @__PURE__ */ jsx36(MinusIcon, {})
5857
5804
  }
5858
5805
  );
5859
5806
  }
@@ -5862,15 +5809,15 @@ function InputOTPSeparator({ ...props }) {
5862
5809
  import { mergeProps as mergeProps4 } from "@base-ui/react/merge-props";
5863
5810
  import { useRender as useRender5 } from "@base-ui/react/use-render";
5864
5811
  import { cva as cva9 } from "class-variance-authority";
5865
- import { cn as cn37 } from "cn";
5866
- import { jsx as jsx38 } from "react/jsx-runtime";
5812
+ import { cn as cn36 } from "cn";
5813
+ import { jsx as jsx37 } from "react/jsx-runtime";
5867
5814
  function ItemGroup({ className, ...props }) {
5868
- return /* @__PURE__ */ jsx38(
5815
+ return /* @__PURE__ */ jsx37(
5869
5816
  "div",
5870
5817
  {
5871
5818
  role: "list",
5872
5819
  "data-slot": "item-group",
5873
- className: cn37(
5820
+ className: cn36(
5874
5821
  "group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",
5875
5822
  className
5876
5823
  ),
@@ -5882,12 +5829,12 @@ function ItemSeparator({
5882
5829
  className,
5883
5830
  ...props
5884
5831
  }) {
5885
- return /* @__PURE__ */ jsx38(
5832
+ return /* @__PURE__ */ jsx37(
5886
5833
  Separator,
5887
5834
  {
5888
5835
  "data-slot": "item-separator",
5889
5836
  orientation: "horizontal",
5890
- className: cn37("my-2", className),
5837
+ className: cn36("my-2", className),
5891
5838
  ...props
5892
5839
  }
5893
5840
  );
@@ -5924,7 +5871,7 @@ function Item({
5924
5871
  defaultTagName: "div",
5925
5872
  props: mergeProps4(
5926
5873
  {
5927
- className: cn37(itemVariants({ variant, size, className }))
5874
+ className: cn36(itemVariants({ variant, size, className }))
5928
5875
  },
5929
5876
  props
5930
5877
  ),
@@ -5956,22 +5903,22 @@ function ItemMedia({
5956
5903
  variant = "default",
5957
5904
  ...props
5958
5905
  }) {
5959
- return /* @__PURE__ */ jsx38(
5906
+ return /* @__PURE__ */ jsx37(
5960
5907
  "div",
5961
5908
  {
5962
5909
  "data-slot": "item-media",
5963
5910
  "data-variant": variant,
5964
- className: cn37(itemMediaVariants({ variant, className })),
5911
+ className: cn36(itemMediaVariants({ variant, className })),
5965
5912
  ...props
5966
5913
  }
5967
5914
  );
5968
5915
  }
5969
5916
  function ItemContent({ className, ...props }) {
5970
- return /* @__PURE__ */ jsx38(
5917
+ return /* @__PURE__ */ jsx37(
5971
5918
  "div",
5972
5919
  {
5973
5920
  "data-slot": "item-content",
5974
- className: cn37(
5921
+ className: cn36(
5975
5922
  "flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",
5976
5923
  className
5977
5924
  ),
@@ -5980,11 +5927,11 @@ function ItemContent({ className, ...props }) {
5980
5927
  );
5981
5928
  }
5982
5929
  function ItemTitle({ className, ...props }) {
5983
- return /* @__PURE__ */ jsx38(
5930
+ return /* @__PURE__ */ jsx37(
5984
5931
  "div",
5985
5932
  {
5986
5933
  "data-slot": "item-title",
5987
- className: cn37(
5934
+ className: cn36(
5988
5935
  "line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",
5989
5936
  className
5990
5937
  ),
@@ -5993,11 +5940,11 @@ function ItemTitle({ className, ...props }) {
5993
5940
  );
5994
5941
  }
5995
5942
  function ItemDescription({ className, ...props }) {
5996
- return /* @__PURE__ */ jsx38(
5943
+ return /* @__PURE__ */ jsx37(
5997
5944
  "p",
5998
5945
  {
5999
5946
  "data-slot": "item-description",
6000
- className: cn37(
5947
+ className: cn36(
6001
5948
  "line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
6002
5949
  className
6003
5950
  ),
@@ -6006,21 +5953,21 @@ function ItemDescription({ className, ...props }) {
6006
5953
  );
6007
5954
  }
6008
5955
  function ItemActions({ className, ...props }) {
6009
- return /* @__PURE__ */ jsx38(
5956
+ return /* @__PURE__ */ jsx37(
6010
5957
  "div",
6011
5958
  {
6012
5959
  "data-slot": "item-actions",
6013
- className: cn37("flex items-center gap-2", className),
5960
+ className: cn36("flex items-center gap-2", className),
6014
5961
  ...props
6015
5962
  }
6016
5963
  );
6017
5964
  }
6018
5965
  function ItemHeader({ className, ...props }) {
6019
- return /* @__PURE__ */ jsx38(
5966
+ return /* @__PURE__ */ jsx37(
6020
5967
  "div",
6021
5968
  {
6022
5969
  "data-slot": "item-header",
6023
- className: cn37(
5970
+ className: cn36(
6024
5971
  "flex basis-full items-center justify-between gap-2",
6025
5972
  className
6026
5973
  ),
@@ -6029,11 +5976,11 @@ function ItemHeader({ className, ...props }) {
6029
5976
  );
6030
5977
  }
6031
5978
  function ItemFooter({ className, ...props }) {
6032
- return /* @__PURE__ */ jsx38(
5979
+ return /* @__PURE__ */ jsx37(
6033
5980
  "div",
6034
5981
  {
6035
5982
  "data-slot": "item-footer",
6036
- className: cn37(
5983
+ className: cn36(
6037
5984
  "flex basis-full items-center justify-between gap-2",
6038
5985
  className
6039
5986
  ),
@@ -6048,19 +5995,19 @@ import {
6048
5995
  JellyBlobMascot
6049
5996
  } from "feral-blob";
6050
5997
  import * as React12 from "react";
6051
- import { cn as cn38 } from "cn";
5998
+ import { cn as cn37 } from "cn";
6052
5999
  import {
6053
6000
  BlobSpeech as BlobSpeech2,
6054
6001
  JellyBlobMascot as JellyBlobMascot2,
6055
6002
  JellyBlobMascotDemo
6056
6003
  } from "feral-blob";
6057
- import { jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
6004
+ import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
6058
6005
  function JellyBlob({ ...props }) {
6059
- return /* @__PURE__ */ jsx39("span", { className: "inline-block", children: /* @__PURE__ */ jsx39(
6006
+ return /* @__PURE__ */ jsx38("span", { className: "inline-block", children: /* @__PURE__ */ jsx38(
6060
6007
  JellyBlobMascot,
6061
6008
  {
6062
6009
  ...props,
6063
- className: cn38("h-auto w-full", props.className)
6010
+ className: cn37("h-auto w-full", props.className)
6064
6011
  }
6065
6012
  ) });
6066
6013
  }
@@ -6086,15 +6033,15 @@ function JellyMini({
6086
6033
  ...props
6087
6034
  }) {
6088
6035
  const { mounted } = useMounted();
6089
- return /* @__PURE__ */ jsx39(
6036
+ return /* @__PURE__ */ jsx38(
6090
6037
  "span",
6091
6038
  {
6092
6039
  "aria-hidden": "true",
6093
- className: cn38(
6040
+ className: cn37(
6094
6041
  "inline-flex size-5 shrink-0 items-center justify-center select-none",
6095
6042
  className
6096
6043
  ),
6097
- children: mounted ? /* @__PURE__ */ jsx39(
6044
+ children: mounted ? /* @__PURE__ */ jsx38(
6098
6045
  JellyBlobMascot,
6099
6046
  {
6100
6047
  ...props,
@@ -6136,14 +6083,14 @@ function JellyAction({
6136
6083
  ...props
6137
6084
  }) {
6138
6085
  const preview = useJellyMood();
6139
- return /* @__PURE__ */ jsx39(Button, { ...props, ...withPreviewHandlers(preview, { ...props, mood }) });
6086
+ return /* @__PURE__ */ jsx38(Button, { ...props, ...withPreviewHandlers(preview, { ...props, mood }) });
6140
6087
  }
6141
6088
  function JellyLink({
6142
6089
  mood,
6143
6090
  ...props
6144
6091
  }) {
6145
6092
  const preview = useJellyMood();
6146
- return /* @__PURE__ */ jsx39("a", { ...props, ...withPreviewHandlers(preview, { ...props, mood }) });
6093
+ return /* @__PURE__ */ jsx38("a", { ...props, ...withPreviewHandlers(preview, { ...props, mood }) });
6147
6094
  }
6148
6095
  function JellyMascotProvider({
6149
6096
  mood = "neutral",
@@ -6165,7 +6112,7 @@ function JellyMascotProvider({
6165
6112
  blobProps,
6166
6113
  setPreview: setPreviewMood
6167
6114
  };
6168
- return /* @__PURE__ */ jsx39(JellyMascotContext.Provider, { value, children });
6115
+ return /* @__PURE__ */ jsx38(JellyMascotContext.Provider, { value, children });
6169
6116
  }
6170
6117
  var SIZE_WRAPPER = {
6171
6118
  sm: "w-20",
@@ -6179,24 +6126,24 @@ function JellyMascotFace({
6179
6126
  }) {
6180
6127
  const mascot = React12.useContext(JellyMascotContext);
6181
6128
  if (!mascot) return null;
6182
- return /* @__PURE__ */ jsxs22(
6129
+ return /* @__PURE__ */ jsxs21(
6183
6130
  "div",
6184
6131
  {
6185
6132
  "aria-hidden": "true",
6186
- className: cn38(
6133
+ className: cn37(
6187
6134
  "flex flex-col items-center select-none",
6188
6135
  SIZE_WRAPPER[size],
6189
6136
  className
6190
6137
  ),
6191
6138
  children: [
6192
- mascot.speech ? /* @__PURE__ */ jsx39(
6139
+ mascot.speech ? /* @__PURE__ */ jsx38(
6193
6140
  BlobSpeech,
6194
6141
  {
6195
6142
  mood: mascot.mood,
6196
6143
  messages: { [mascot.mood]: mascot.speech }
6197
6144
  }
6198
6145
  ) : null,
6199
- mascot.mounted ? /* @__PURE__ */ jsx39(
6146
+ mascot.mounted ? /* @__PURE__ */ jsx38(
6200
6147
  JellyBlobMascot,
6201
6148
  {
6202
6149
  ...mascot.blobProps,
@@ -6216,14 +6163,14 @@ function JellyMascot({
6216
6163
  ...config
6217
6164
  }) {
6218
6165
  const existing = React12.useContext(JellyMascotContext);
6219
- if (existing) return /* @__PURE__ */ jsx39(JellyMascotFace, { size, className });
6220
- return /* @__PURE__ */ jsx39(JellyMascotProvider, { ...config, children: /* @__PURE__ */ jsx39(JellyMascotFace, { size, className }) });
6166
+ if (existing) return /* @__PURE__ */ jsx38(JellyMascotFace, { size, className });
6167
+ return /* @__PURE__ */ jsx38(JellyMascotProvider, { ...config, children: /* @__PURE__ */ jsx38(JellyMascotFace, { size, className }) });
6221
6168
  }
6222
6169
  function JellyGroup({
6223
6170
  children,
6224
6171
  ...config
6225
6172
  }) {
6226
- return /* @__PURE__ */ jsx39(JellyMascotProvider, { ...config, children });
6173
+ return /* @__PURE__ */ jsx38(JellyMascotProvider, { ...config, children });
6227
6174
  }
6228
6175
  function JellyEmpty({
6229
6176
  title,
@@ -6233,25 +6180,25 @@ function JellyEmpty({
6233
6180
  className,
6234
6181
  ...config
6235
6182
  }) {
6236
- return /* @__PURE__ */ jsx39(JellyMascotProvider, { ...config, children: /* @__PURE__ */ jsxs22(Empty, { className: cn38("gap-4", className), children: [
6237
- /* @__PURE__ */ jsxs22(EmptyHeader, { className: "gap-2", children: [
6238
- /* @__PURE__ */ jsx39(JellyMascotFace, { size }),
6239
- title ? /* @__PURE__ */ jsx39(EmptyTitle, { className: "text-base font-semibold sm:text-lg", children: title }) : null,
6240
- description ? /* @__PURE__ */ jsx39(EmptyDescription, { className: "max-w-sm", children: description }) : null
6183
+ return /* @__PURE__ */ jsx38(JellyMascotProvider, { ...config, children: /* @__PURE__ */ jsxs21(Empty, { className: cn37("gap-4", className), children: [
6184
+ /* @__PURE__ */ jsxs21(EmptyHeader, { className: "gap-2", children: [
6185
+ /* @__PURE__ */ jsx38(JellyMascotFace, { size }),
6186
+ title ? /* @__PURE__ */ jsx38(EmptyTitle, { className: "text-base font-semibold sm:text-lg", children: title }) : null,
6187
+ description ? /* @__PURE__ */ jsx38(EmptyDescription, { className: "max-w-sm", children: description }) : null
6241
6188
  ] }),
6242
- actions ? /* @__PURE__ */ jsx39(EmptyContent, { children: actions }) : null
6189
+ actions ? /* @__PURE__ */ jsx38(EmptyContent, { children: actions }) : null
6243
6190
  ] }) });
6244
6191
  }
6245
6192
 
6246
6193
  // src/ui/message.tsx
6247
- import { cn as cn39 } from "cn";
6248
- import { jsx as jsx40 } from "react/jsx-runtime";
6194
+ import { cn as cn38 } from "cn";
6195
+ import { jsx as jsx39 } from "react/jsx-runtime";
6249
6196
  function MessageGroup({ className, ...props }) {
6250
- return /* @__PURE__ */ jsx40(
6197
+ return /* @__PURE__ */ jsx39(
6251
6198
  "div",
6252
6199
  {
6253
6200
  "data-slot": "message-group",
6254
- className: cn39("flex min-w-0 flex-col gap-2", className),
6201
+ className: cn38("flex min-w-0 flex-col gap-2", className),
6255
6202
  ...props
6256
6203
  }
6257
6204
  );
@@ -6261,12 +6208,12 @@ function Message({
6261
6208
  align = "start",
6262
6209
  ...props
6263
6210
  }) {
6264
- return /* @__PURE__ */ jsx40(
6211
+ return /* @__PURE__ */ jsx39(
6265
6212
  "div",
6266
6213
  {
6267
6214
  "data-slot": "message",
6268
6215
  "data-align": align,
6269
- className: cn39(
6216
+ className: cn38(
6270
6217
  "group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse",
6271
6218
  className
6272
6219
  ),
@@ -6275,11 +6222,11 @@ function Message({
6275
6222
  );
6276
6223
  }
6277
6224
  function MessageAvatar({ className, ...props }) {
6278
- return /* @__PURE__ */ jsx40(
6225
+ return /* @__PURE__ */ jsx39(
6279
6226
  "div",
6280
6227
  {
6281
6228
  "data-slot": "message-avatar",
6282
- className: cn39(
6229
+ className: cn38(
6283
6230
  "flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden rounded-full bg-muted group-has-data-[slot=message-footer]/message:-translate-y-8",
6284
6231
  className
6285
6232
  ),
@@ -6288,11 +6235,11 @@ function MessageAvatar({ className, ...props }) {
6288
6235
  );
6289
6236
  }
6290
6237
  function MessageContent({ className, ...props }) {
6291
- return /* @__PURE__ */ jsx40(
6238
+ return /* @__PURE__ */ jsx39(
6292
6239
  "div",
6293
6240
  {
6294
6241
  "data-slot": "message-content",
6295
- className: cn39(
6242
+ className: cn38(
6296
6243
  "flex w-full min-w-0 flex-col gap-2.5 wrap-break-word group-data-[align=end]/message:*:data-slot:self-end",
6297
6244
  className
6298
6245
  ),
@@ -6301,11 +6248,11 @@ function MessageContent({ className, ...props }) {
6301
6248
  );
6302
6249
  }
6303
6250
  function MessageHeader({ className, ...props }) {
6304
- return /* @__PURE__ */ jsx40(
6251
+ return /* @__PURE__ */ jsx39(
6305
6252
  "div",
6306
6253
  {
6307
6254
  "data-slot": "message-header",
6308
- className: cn39(
6255
+ className: cn38(
6309
6256
  "flex max-w-full min-w-0 items-center px-3 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0",
6310
6257
  className
6311
6258
  ),
@@ -6314,11 +6261,11 @@ function MessageHeader({ className, ...props }) {
6314
6261
  );
6315
6262
  }
6316
6263
  function MessageFooter({ className, ...props }) {
6317
- return /* @__PURE__ */ jsx40(
6264
+ return /* @__PURE__ */ jsx39(
6318
6265
  "div",
6319
6266
  {
6320
6267
  "data-slot": "message-footer",
6321
- className: cn39(
6268
+ className: cn38(
6322
6269
  "flex max-w-full min-w-0 items-center px-3 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0 group-data-[align=end]/message:justify-end",
6323
6270
  className
6324
6271
  ),
@@ -6334,21 +6281,21 @@ import {
6334
6281
  useMessageScrollerScrollable,
6335
6282
  useMessageScrollerVisibility
6336
6283
  } from "@shadcn/react/message-scroller";
6337
- import { cn as cn40 } from "cn";
6284
+ import { cn as cn39 } from "cn";
6338
6285
  import { ArrowDownIcon } from "lucide-react";
6339
- import { Fragment as Fragment3, jsx as jsx41, jsxs as jsxs23 } from "react/jsx-runtime";
6286
+ import { Fragment as Fragment3, jsx as jsx40, jsxs as jsxs22 } from "react/jsx-runtime";
6340
6287
  function MessageScrollerProvider(props) {
6341
- return /* @__PURE__ */ jsx41(MessageScrollerPrimitive.Provider, { ...props });
6288
+ return /* @__PURE__ */ jsx40(MessageScrollerPrimitive.Provider, { ...props });
6342
6289
  }
6343
6290
  function MessageScroller({
6344
6291
  className,
6345
6292
  ...props
6346
6293
  }) {
6347
- return /* @__PURE__ */ jsx41(
6294
+ return /* @__PURE__ */ jsx40(
6348
6295
  MessageScrollerPrimitive.Root,
6349
6296
  {
6350
6297
  "data-slot": "message-scroller",
6351
- className: cn40(
6298
+ className: cn39(
6352
6299
  "group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden",
6353
6300
  className
6354
6301
  ),
@@ -6360,11 +6307,11 @@ function MessageScrollerViewport({
6360
6307
  className,
6361
6308
  ...props
6362
6309
  }) {
6363
- return /* @__PURE__ */ jsx41(
6310
+ return /* @__PURE__ */ jsx40(
6364
6311
  MessageScrollerPrimitive.Viewport,
6365
6312
  {
6366
6313
  "data-slot": "message-scroller-viewport",
6367
- className: cn40(
6314
+ className: cn39(
6368
6315
  "size-full min-h-0 min-w-0 scroll-fade scrollbar-thin scrollbar-gutter-stable overflow-y-auto overscroll-contain contain-content data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent",
6369
6316
  className
6370
6317
  ),
@@ -6376,11 +6323,11 @@ function MessageScrollerContent({
6376
6323
  className,
6377
6324
  ...props
6378
6325
  }) {
6379
- return /* @__PURE__ */ jsx41(
6326
+ return /* @__PURE__ */ jsx40(
6380
6327
  MessageScrollerPrimitive.Content,
6381
6328
  {
6382
6329
  "data-slot": "message-scroller-content",
6383
- className: cn40("flex h-max min-h-full flex-col gap-6", className),
6330
+ className: cn39("flex h-max min-h-full flex-col gap-6", className),
6384
6331
  ...props
6385
6332
  }
6386
6333
  );
@@ -6390,12 +6337,12 @@ function MessageScrollerItem({
6390
6337
  scrollAnchor = false,
6391
6338
  ...props
6392
6339
  }) {
6393
- return /* @__PURE__ */ jsx41(
6340
+ return /* @__PURE__ */ jsx40(
6394
6341
  MessageScrollerPrimitive.Item,
6395
6342
  {
6396
6343
  "data-slot": "message-scroller-item",
6397
6344
  scrollAnchor,
6398
- className: cn40(
6345
+ className: cn39(
6399
6346
  "min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]",
6400
6347
  className
6401
6348
  ),
@@ -6412,7 +6359,7 @@ function MessageScrollerButton({
6412
6359
  size = "icon-sm",
6413
6360
  ...props
6414
6361
  }) {
6415
- return /* @__PURE__ */ jsx41(
6362
+ return /* @__PURE__ */ jsx40(
6416
6363
  MessageScrollerPrimitive.Button,
6417
6364
  {
6418
6365
  "data-slot": "message-scroller-button",
@@ -6420,25 +6367,32 @@ function MessageScrollerButton({
6420
6367
  "data-variant": variant,
6421
6368
  "data-size": size,
6422
6369
  direction,
6423
- className: cn40(
6370
+ className: cn39(
6424
6371
  "data-[active=true]:ease-out-quint absolute inset-s-1/2 -translate-x-1/2 border-border bg-background text-foreground transition-[translate,scale,opacity] duration-200 hover:bg-muted hover:text-foreground data-[active=false]:pointer-events-none data-[active=false]:scale-95 data-[active=false]:opacity-0 data-[active=false]:duration-400 data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)] data-[active=true]:translate-y-0 data-[active=true]:scale-100 data-[active=true]:opacity-100 data-[direction=end]:bottom-4 data-[direction=end]:data-[active=false]:translate-y-full data-[direction=start]:top-4 data-[direction=start]:data-[active=false]:-translate-y-full rtl:translate-x-1/2 data-[direction=start]:[&_svg]:rotate-180",
6425
6372
  className
6426
6373
  ),
6427
- render: render ?? /* @__PURE__ */ jsx41(Button, { variant, size }),
6374
+ render: render ?? /* @__PURE__ */ jsx40(Button, { variant, size }),
6428
6375
  ...props,
6429
- children: children ?? /* @__PURE__ */ jsxs23(Fragment3, { children: [
6430
- /* @__PURE__ */ jsx41(ArrowDownIcon, {}),
6431
- /* @__PURE__ */ jsx41("span", { className: "sr-only", children: direction === "end" ? "Scroll to end" : "Scroll to start" })
6376
+ children: children ?? /* @__PURE__ */ jsxs22(Fragment3, { children: [
6377
+ /* @__PURE__ */ jsx40(ArrowDownIcon, {}),
6378
+ /* @__PURE__ */ jsx40("span", { className: "sr-only", children: direction === "end" ? "Scroll to end" : "Scroll to start" })
6432
6379
  ] })
6433
6380
  }
6434
6381
  );
6435
6382
  }
6436
6383
 
6437
6384
  // src/ui/numberstepper.tsx
6438
- import { cn as cn41 } from "cn";
6385
+ import { cn as cn40 } from "cn";
6439
6386
  import { AnimatePresence as AnimatePresence2, motion as motion6, useReducedMotion } from "motion/react";
6440
- import { useEffect as useEffect6, useId as useId3, useLayoutEffect, useRef as useRef4, useState as useState8 } from "react";
6441
- import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
6387
+ import {
6388
+ forwardRef as forwardRef3,
6389
+ useEffect as useEffect6,
6390
+ useId as useId3,
6391
+ useLayoutEffect,
6392
+ useRef as useRef4,
6393
+ useState as useState8
6394
+ } from "react";
6395
+ import { jsx as jsx41, jsxs as jsxs23 } from "react/jsx-runtime";
6442
6396
  var EASE_OUT = [0.23, 1, 0.32, 1];
6443
6397
  var ROLL = { duration: 0.18, ease: EASE_OUT };
6444
6398
  var SLIDE = { type: "spring", visualDuration: 0.2, bounce: 0 };
@@ -6447,10 +6401,34 @@ var FIRST_REPEAT = 150;
6447
6401
  var ACCELERATION = 0.85;
6448
6402
  var FASTEST = 40;
6449
6403
  var sizeStyles = {
6450
- xs: { container: "h-6 p-0.5", button: "size-5", value: "w-6", text: "text-xs", icon: "size-3" },
6451
- sm: { container: "h-7 p-0.5", button: "size-6", value: "w-7", text: "text-sm", icon: "size-3.5" },
6452
- default: { container: "h-8 p-0.5", button: "size-7", value: "w-9", text: "text-sm", icon: "size-3.5" },
6453
- lg: { container: "h-9 p-1", button: "size-8", value: "w-11", text: "text-[15px]", icon: "size-4" }
6404
+ xs: {
6405
+ container: "h-6 p-0.5",
6406
+ button: "size-5",
6407
+ value: "w-6",
6408
+ text: "text-xs",
6409
+ icon: "size-3"
6410
+ },
6411
+ sm: {
6412
+ container: "h-7 p-0.5",
6413
+ button: "size-6",
6414
+ value: "w-7",
6415
+ text: "text-sm",
6416
+ icon: "size-3.5"
6417
+ },
6418
+ default: {
6419
+ container: "h-8 p-0.5",
6420
+ button: "size-7",
6421
+ value: "w-9",
6422
+ text: "text-sm",
6423
+ icon: "size-3.5"
6424
+ },
6425
+ lg: {
6426
+ container: "h-9 p-1",
6427
+ button: "size-8",
6428
+ value: "w-11",
6429
+ text: "text-[15px]",
6430
+ icon: "size-4"
6431
+ }
6454
6432
  };
6455
6433
  function useDirection(value) {
6456
6434
  const [previous, setPrevious] = useState8(value);
@@ -6468,15 +6446,15 @@ function RollingNumber({
6468
6446
  }) {
6469
6447
  const direction = useDirection(value);
6470
6448
  const chars = [...format(value)];
6471
- return /* @__PURE__ */ jsx42(
6449
+ return /* @__PURE__ */ jsx41(
6472
6450
  "span",
6473
6451
  {
6474
6452
  "aria-hidden": true,
6475
- className: cn41("relative inline-flex tabular-nums", className),
6476
- children: /* @__PURE__ */ jsx42(AnimatePresence2, { mode: "popLayout", initial: false, custom: direction, children: chars.map((char, i) => {
6477
- const place = chars.length - i;
6453
+ className: cn40("relative inline-flex tabular-nums", className),
6454
+ children: /* @__PURE__ */ jsx41(AnimatePresence2, { mode: "popLayout", initial: false, custom: direction, children: chars.map((char, index) => {
6455
+ const place = chars.length - index;
6478
6456
  const digit = /\d/.test(char);
6479
- return /* @__PURE__ */ jsx42(Place, { digit, children: digit ? /* @__PURE__ */ jsx42(Digit, { char, direction }) : char }, digit ? `d${place}` : `s${place}${char}`);
6457
+ return /* @__PURE__ */ jsx41(Place, { digit, children: digit ? /* @__PURE__ */ jsx41(Digit, { char, direction }) : char }, digit ? `d${place}` : `s${place}${char}`);
6480
6458
  }) })
6481
6459
  }
6482
6460
  );
@@ -6486,30 +6464,43 @@ function Place({
6486
6464
  children
6487
6465
  }) {
6488
6466
  const reduceMotion = useReducedMotion();
6489
- return /* @__PURE__ */ jsx42(
6467
+ return /* @__PURE__ */ jsx41(
6490
6468
  motion6.span,
6491
6469
  {
6492
6470
  layout: reduceMotion ? false : "position",
6493
6471
  initial: { opacity: 0, filter: "blur(4px)" },
6494
6472
  animate: { opacity: 1, filter: "blur(0px)" },
6495
- exit: { opacity: 0, filter: "blur(0px)", transition: { duration: 0.1 } },
6473
+ exit: {
6474
+ opacity: 0,
6475
+ filter: "blur(0px)",
6476
+ transition: { duration: 0.1 }
6477
+ },
6496
6478
  transition: { ...ROLL, layout: SLIDE },
6497
- className: cn41("inline-grid", digit && "overflow-hidden"),
6479
+ className: cn40("inline-grid", digit && "overflow-hidden"),
6498
6480
  children
6499
6481
  }
6500
6482
  );
6501
6483
  }
6502
6484
  function Digit({ char, direction }) {
6503
6485
  const reduceMotion = useReducedMotion();
6504
- const offset = (d) => reduceMotion ? "0%" : `${d * 100}%`;
6505
- return /* @__PURE__ */ jsx42(AnimatePresence2, { initial: false, custom: direction, children: /* @__PURE__ */ jsx42(
6486
+ const offset = (value) => reduceMotion ? "0%" : `${value * 100}%`;
6487
+ return /* @__PURE__ */ jsx41(AnimatePresence2, { initial: false, custom: direction, children: /* @__PURE__ */ jsx41(
6506
6488
  motion6.span,
6507
6489
  {
6508
6490
  custom: direction,
6509
6491
  variants: {
6510
- enter: (d) => ({ y: offset(d), opacity: 0 }),
6511
- center: { y: "0%", opacity: 1 },
6512
- exit: (d) => ({ y: offset(-d), opacity: 0 })
6492
+ enter: (value) => ({
6493
+ y: offset(value),
6494
+ opacity: 0
6495
+ }),
6496
+ center: {
6497
+ y: "0%",
6498
+ opacity: 1
6499
+ },
6500
+ exit: (value) => ({
6501
+ y: offset(-value),
6502
+ opacity: 0
6503
+ })
6513
6504
  },
6514
6505
  initial: "enter",
6515
6506
  animate: "center",
@@ -6521,198 +6512,247 @@ function Digit({ char, direction }) {
6521
6512
  char
6522
6513
  ) });
6523
6514
  }
6524
- function NumberStepper({
6525
- label,
6526
- value,
6527
- onChange,
6528
- min = 0,
6529
- max = 99,
6530
- step = 1,
6531
- className,
6532
- size = "default"
6533
- }) {
6534
- const reduceMotion = useReducedMotion();
6535
- const id = useId3();
6536
- const [draft, setDraft] = useState8(null);
6537
- const valueRef = useRef4(null);
6538
- const bumpAnimation = useRef4(void 0);
6539
- const timer = useRef4(void 0);
6540
- const latest = useRef4({ value, onChange, min, max });
6541
- useLayoutEffect(() => {
6542
- latest.current = { value, onChange, min, max };
6543
- });
6544
- useEffect6(
6545
- () => () => {
6546
- clearTimeout(timer.current);
6547
- bumpAnimation.current?.cancel();
6548
- },
6549
- []
6550
- );
6551
- const bump = (direction) => {
6552
- const el = valueRef.current;
6553
- if (!el || reduceMotion) return;
6554
- bumpAnimation.current?.cancel();
6555
- bumpAnimation.current = el.animate(
6556
- { translate: ["0", `${direction * 3}px`, "0"] },
6557
- { duration: 200, easing: "cubic-bezier(0.23, 1, 0.32, 1)" }
6558
- );
6559
- };
6560
- const setTo = (target, direction) => {
6561
- const now = latest.current;
6562
- const next = Math.min(Math.max(target, now.min), now.max);
6563
- if (next !== target) bump(direction);
6564
- if (next === now.value) return false;
6565
- latest.current = { ...now, value: next };
6566
- now.onChange(next);
6567
- return true;
6568
- };
6569
- const stepBy = (delta) => setTo(latest.current.value + delta, delta > 0 ? 1 : -1);
6570
- const stop = () => clearTimeout(timer.current);
6571
- const hold = (delta) => {
6572
- stop();
6573
- if (!stepBy(delta)) return;
6574
- let interval = FIRST_REPEAT;
6575
- const repeat = () => {
6576
- if (!stepBy(delta)) return;
6577
- interval = Math.max(FASTEST, interval * ACCELERATION);
6578
- timer.current = setTimeout(repeat, interval);
6579
- };
6580
- timer.current = setTimeout(repeat, HOLD_DELAY);
6581
- };
6582
- const commitDraft = () => {
6583
- if (draft === null) return;
6584
- const parsed = Number.parseInt(draft, 10);
6585
- setDraft(null);
6586
- if (Number.isNaN(parsed)) return;
6587
- setTo(parsed, parsed > value ? 1 : -1);
6588
- };
6589
- const button = (delta, atLimit, name, path) => /* @__PURE__ */ jsx42(
6590
- "button",
6591
- {
6592
- type: "button",
6593
- "aria-label": `${name} ${label.toLowerCase()}`,
6594
- "aria-controls": id,
6595
- "aria-disabled": atLimit,
6596
- tabIndex: -1,
6597
- onPointerDown: (e) => {
6598
- if (e.button !== 0) return;
6599
- e.preventDefault();
6600
- hold(delta);
6601
- },
6602
- onPointerUp: stop,
6603
- onPointerLeave: stop,
6604
- onPointerCancel: stop,
6605
- onContextMenu: (e) => e.preventDefault(),
6606
- onClick: (e) => {
6607
- if (e.detail === 0) stepBy(delta);
6515
+ var NumberStepper = forwardRef3(
6516
+ function NumberStepper2({
6517
+ label,
6518
+ value,
6519
+ onChange,
6520
+ min = 0,
6521
+ max = 99,
6522
+ step = 1,
6523
+ className,
6524
+ size = "default",
6525
+ disabled = false,
6526
+ onFocus,
6527
+ onKeyDown,
6528
+ onKeyDownCapture
6529
+ }, ref) {
6530
+ const reduceMotion = useReducedMotion();
6531
+ const id = useId3();
6532
+ const [draft, setDraft] = useState8(null);
6533
+ const valueRef = useRef4(null);
6534
+ const bumpAnimation = useRef4(void 0);
6535
+ const timer = useRef4(void 0);
6536
+ const latest = useRef4({
6537
+ value,
6538
+ onChange,
6539
+ min,
6540
+ max,
6541
+ disabled
6542
+ });
6543
+ useLayoutEffect(() => {
6544
+ latest.current = {
6545
+ value,
6546
+ onChange,
6547
+ min,
6548
+ max,
6549
+ disabled
6550
+ };
6551
+ });
6552
+ useEffect6(
6553
+ () => () => {
6554
+ clearTimeout(timer.current);
6555
+ bumpAnimation.current?.cancel();
6608
6556
  },
6609
- className: cn41(
6610
- "flex shrink-0 touch-manipulation items-center justify-center rounded-full text-foreground outline-hidden select-none",
6611
- styles.button,
6612
- "transition-[scale,opacity,background-color] duration-150 ease-out hover:bg-foreground/6 active:scale-[0.96] motion-reduce:transition-[opacity,background-color]",
6613
- atLimit && "opacity-35 hover:bg-transparent"
6614
- ),
6615
- children: /* @__PURE__ */ jsx42(
6616
- "svg",
6557
+ []
6558
+ );
6559
+ const bump = (direction) => {
6560
+ const element = valueRef.current;
6561
+ if (!element || reduceMotion) return;
6562
+ bumpAnimation.current?.cancel();
6563
+ bumpAnimation.current = element.animate(
6617
6564
  {
6618
- viewBox: "0 0 16 16",
6619
- "aria-hidden": true,
6620
- className: styles.icon,
6621
- fill: "none",
6622
- stroke: "currentColor",
6623
- strokeWidth: 1.5,
6624
- strokeLinecap: "round",
6625
- children: /* @__PURE__ */ jsx42("path", { d: path })
6565
+ translate: ["0", `${direction * 3}px`, "0"]
6566
+ },
6567
+ {
6568
+ duration: 200,
6569
+ easing: "cubic-bezier(0.23, 1, 0.32, 1)"
6626
6570
  }
6627
- )
6628
- }
6629
- );
6630
- const editing = draft !== null;
6631
- const styles = sizeStyles[size];
6632
- return /* @__PURE__ */ jsxs24(
6633
- "div",
6634
- {
6635
- className: cn41(
6636
- "shadow-raised inline-flex items-center rounded-full border",
6637
- styles.container,
6638
- className
6639
- ),
6640
- children: [
6641
- button(-step, value <= min, "Decrease", "M3.5 8h9"),
6642
- /* @__PURE__ */ jsxs24(
6643
- "span",
6571
+ );
6572
+ };
6573
+ const setTo = (target, direction) => {
6574
+ const current = latest.current;
6575
+ if (current.disabled) return false;
6576
+ const next = Math.min(Math.max(target, current.min), current.max);
6577
+ if (next !== target) {
6578
+ bump(direction);
6579
+ }
6580
+ if (next === current.value) return false;
6581
+ latest.current = {
6582
+ ...current,
6583
+ value: next
6584
+ };
6585
+ current.onChange(next);
6586
+ return true;
6587
+ };
6588
+ const stepBy = (delta) => setTo(latest.current.value + delta, delta > 0 ? 1 : -1);
6589
+ const stop = () => {
6590
+ clearTimeout(timer.current);
6591
+ };
6592
+ const hold = (delta) => {
6593
+ if (disabled) return;
6594
+ stop();
6595
+ if (!stepBy(delta)) return;
6596
+ let interval = FIRST_REPEAT;
6597
+ const repeat = () => {
6598
+ if (!stepBy(delta)) return;
6599
+ interval = Math.max(FASTEST, interval * ACCELERATION);
6600
+ timer.current = setTimeout(repeat, interval);
6601
+ };
6602
+ timer.current = setTimeout(repeat, HOLD_DELAY);
6603
+ };
6604
+ const commitDraft = () => {
6605
+ if (draft === null) return;
6606
+ const parsed = Number.parseInt(draft, 10);
6607
+ setDraft(null);
6608
+ if (Number.isNaN(parsed)) return;
6609
+ setTo(parsed, parsed > latest.current.value ? 1 : -1);
6610
+ };
6611
+ const button = (delta, atLimit, name, path) => /* @__PURE__ */ jsx41(
6612
+ "button",
6613
+ {
6614
+ type: "button",
6615
+ disabled: disabled || atLimit,
6616
+ "aria-label": `${name} ${label.toLowerCase()}`,
6617
+ "aria-controls": id,
6618
+ "aria-disabled": disabled || atLimit,
6619
+ tabIndex: -1,
6620
+ onPointerDown: (event) => {
6621
+ if (event.button !== 0 || disabled) return;
6622
+ event.preventDefault();
6623
+ hold(delta);
6624
+ },
6625
+ onPointerUp: stop,
6626
+ onPointerLeave: stop,
6627
+ onPointerCancel: stop,
6628
+ onContextMenu: (event) => event.preventDefault(),
6629
+ onClick: (event) => {
6630
+ if (disabled) return;
6631
+ if (event.detail === 0) {
6632
+ stepBy(delta);
6633
+ }
6634
+ },
6635
+ className: cn40(
6636
+ "flex shrink-0 touch-manipulation items-center justify-center rounded-full text-foreground outline-hidden select-none",
6637
+ styles.button,
6638
+ "transition-[scale,opacity,background-color] duration-150 ease-out hover:bg-foreground/6 active:scale-[0.96] motion-reduce:transition-[opacity,background-color]",
6639
+ (disabled || atLimit) && "opacity-35 hover:bg-transparent"
6640
+ ),
6641
+ children: /* @__PURE__ */ jsx41(
6642
+ "svg",
6644
6643
  {
6645
- ref: valueRef,
6646
- className: cn41(
6647
- "relative grid place-items-center",
6648
- styles.value
6649
- ),
6650
- children: [
6651
- /* @__PURE__ */ jsx42(
6652
- "input",
6653
- {
6654
- id,
6655
- "data-no-ring": true,
6656
- role: "spinbutton",
6657
- "aria-label": label,
6658
- "aria-valuenow": value,
6659
- "aria-valuemin": min,
6660
- "aria-valuemax": max,
6661
- inputMode: "numeric",
6662
- autoComplete: "off",
6663
- value: draft ?? String(value),
6664
- onChange: (e) => setDraft(e.target.value.replace(/\D/g, "")),
6665
- onFocus: (e) => e.currentTarget.select(),
6666
- onBlur: commitDraft,
6667
- onKeyDown: (e) => {
6668
- const delta = {
6669
- ArrowUp: step,
6670
- ArrowDown: -step,
6671
- PageUp: step * 10,
6672
- PageDown: -step * 10
6673
- };
6674
- if (e.key in delta) {
6675
- e.preventDefault();
6676
- setDraft(null);
6677
- stepBy(delta[e.key]);
6678
- } else if (e.key === "Home" || e.key === "End") {
6679
- e.preventDefault();
6680
- setDraft(null);
6681
- setTo(e.key === "Home" ? min : max, e.key === "Home" ? -1 : 1);
6682
- } else if (e.key === "Enter") {
6683
- commitDraft();
6684
- } else if (e.key === "Escape") {
6685
- setDraft(null);
6686
- }
6687
- },
6688
- className: cn41(
6689
- "col-start-1 row-start-1 w-full bg-transparent text-center font-medium tabular-nums caret-foreground outline-hidden",
6690
- styles.text,
6691
- editing ? "text-foreground" : "text-transparent"
6692
- )
6693
- }
6694
- ),
6695
- !editing && /* @__PURE__ */ jsx42(
6696
- RollingNumber,
6697
- {
6698
- value,
6699
- className: cn41(
6700
- "pointer-events-none col-start-1 row-start-1 font-medium text-foreground",
6701
- styles.text
6702
- )
6703
- }
6704
- )
6705
- ]
6644
+ viewBox: "0 0 16 16",
6645
+ "aria-hidden": true,
6646
+ className: styles.icon,
6647
+ fill: "none",
6648
+ stroke: "currentColor",
6649
+ strokeWidth: 1.5,
6650
+ strokeLinecap: "round",
6651
+ children: /* @__PURE__ */ jsx41("path", { d: path })
6706
6652
  }
6653
+ )
6654
+ }
6655
+ );
6656
+ const editing = draft !== null;
6657
+ const styles = sizeStyles[size];
6658
+ return /* @__PURE__ */ jsxs23(
6659
+ "div",
6660
+ {
6661
+ "data-slot": "input-group",
6662
+ className: cn40(
6663
+ "shadow-raised inline-flex items-center rounded-full border",
6664
+ disabled && "opacity-50",
6665
+ styles.container,
6666
+ className
6707
6667
  ),
6708
- button(step, value >= max, "Increase", "M3.5 8h9M8 3.5v9")
6709
- ]
6710
- }
6711
- );
6712
- }
6668
+ children: [
6669
+ button(-step, value <= min, "Decrease", "M3.5 8h9"),
6670
+ /* @__PURE__ */ jsxs23(
6671
+ "span",
6672
+ {
6673
+ ref: valueRef,
6674
+ className: cn40("relative grid place-items-center", styles.value),
6675
+ children: [
6676
+ /* @__PURE__ */ jsx41(
6677
+ "input",
6678
+ {
6679
+ ref,
6680
+ id,
6681
+ disabled,
6682
+ "data-slot": "input-group-control",
6683
+ "data-no-ring": true,
6684
+ role: "spinbutton",
6685
+ "aria-label": label,
6686
+ "aria-valuenow": value,
6687
+ "aria-valuemin": min,
6688
+ "aria-valuemax": max,
6689
+ inputMode: "numeric",
6690
+ autoComplete: "off",
6691
+ value: draft ?? String(value),
6692
+ onChange: (event) => {
6693
+ setDraft(event.target.value.replace(/\D/g, ""));
6694
+ },
6695
+ onFocus: (event) => {
6696
+ event.currentTarget.select();
6697
+ onFocus?.(event);
6698
+ },
6699
+ onBlur: commitDraft,
6700
+ onKeyDownCapture,
6701
+ onKeyDown: (event) => {
6702
+ onKeyDown?.(event);
6703
+ if (event.defaultPrevented) return;
6704
+ const delta = {
6705
+ ArrowUp: step,
6706
+ ArrowDown: -step,
6707
+ PageUp: step * 10,
6708
+ PageDown: -step * 10
6709
+ };
6710
+ if (event.key in delta) {
6711
+ event.preventDefault();
6712
+ setDraft(null);
6713
+ stepBy(delta[event.key]);
6714
+ } else if (event.key === "Home" || event.key === "End") {
6715
+ event.preventDefault();
6716
+ setDraft(null);
6717
+ setTo(
6718
+ event.key === "Home" ? min : max,
6719
+ event.key === "Home" ? -1 : 1
6720
+ );
6721
+ } else if (event.key === "Enter") {
6722
+ commitDraft();
6723
+ } else if (event.key === "Escape") {
6724
+ setDraft(null);
6725
+ }
6726
+ },
6727
+ className: cn40(
6728
+ "col-start-1 row-start-1 w-full bg-transparent text-center font-medium tabular-nums caret-foreground outline-hidden",
6729
+ styles.text,
6730
+ editing ? "text-foreground" : "text-transparent"
6731
+ )
6732
+ }
6733
+ ),
6734
+ !editing && /* @__PURE__ */ jsx41(
6735
+ RollingNumber,
6736
+ {
6737
+ value,
6738
+ className: cn40(
6739
+ "pointer-events-none col-start-1 row-start-1 font-medium text-foreground",
6740
+ styles.text
6741
+ )
6742
+ }
6743
+ )
6744
+ ]
6745
+ }
6746
+ ),
6747
+ button(step, value >= max, "Increase", "M3.5 8h9M8 3.5v9")
6748
+ ]
6749
+ }
6750
+ );
6751
+ }
6752
+ );
6713
6753
 
6714
6754
  // src/ui/otp.tsx
6715
- import { cn as cn42 } from "cn";
6755
+ import { cn as cn41 } from "cn";
6716
6756
  import {
6717
6757
  AnimatePresence as AnimatePresence3,
6718
6758
  animate,
@@ -6720,7 +6760,7 @@ import {
6720
6760
  useReducedMotion as useReducedMotion2
6721
6761
  } from "motion/react";
6722
6762
  import { Fragment as Fragment4, useEffect as useEffect7, useId as useId4, useRef as useRef5, useState as useState9 } from "react";
6723
- import { jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
6763
+ import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
6724
6764
  var EASE_OUT2 = [0.16, 1, 0.3, 1];
6725
6765
  var EASE_IN_OUT = [0.77, 0, 0.175, 1];
6726
6766
  var EASE_DRAWER = [0.32, 0.72, 0, 1];
@@ -6885,8 +6925,8 @@ function OTPInput2({
6885
6925
  const showSuccess = status === "success";
6886
6926
  const activeIndex = focused ? active : -1;
6887
6927
  const message = showSuccess ? successMessage : status === "error" ? errorMessage : hint;
6888
- return /* @__PURE__ */ jsxs25("div", { className: cn42("inline-flex flex-col gap-2", className), children: [
6889
- label ? /* @__PURE__ */ jsx43(
6928
+ return /* @__PURE__ */ jsxs24("div", { className: cn41("inline-flex flex-col gap-2", className), children: [
6929
+ label ? /* @__PURE__ */ jsx42(
6890
6930
  "label",
6891
6931
  {
6892
6932
  htmlFor: `${uid}-input`,
@@ -6894,7 +6934,7 @@ function OTPInput2({
6894
6934
  children: label
6895
6935
  }
6896
6936
  ) : null,
6897
- /* @__PURE__ */ jsxs25(
6937
+ /* @__PURE__ */ jsxs24(
6898
6938
  "div",
6899
6939
  {
6900
6940
  className: "relative inline-flex w-max",
@@ -6907,7 +6947,7 @@ function OTPInput2({
6907
6947
  inputRef.current?.focus();
6908
6948
  },
6909
6949
  children: [
6910
- /* @__PURE__ */ jsx43(
6950
+ /* @__PURE__ */ jsx42(
6911
6951
  "input",
6912
6952
  {
6913
6953
  ref: inputRef,
@@ -6934,24 +6974,24 @@ function OTPInput2({
6934
6974
  className: "absolute inset-0 z-20 h-full w-full cursor-text bg-transparent text-transparent caret-transparent opacity-0 outline-none disabled:cursor-not-allowed"
6935
6975
  }
6936
6976
  ),
6937
- /* @__PURE__ */ jsx43("div", { ref: slotsRef, className: "flex items-center gap-3", children: Array.from({ length }, (_, i) => {
6977
+ /* @__PURE__ */ jsx42("div", { ref: slotsRef, className: "flex items-center gap-3", children: Array.from({ length }, (_, i) => {
6938
6978
  const char = slots[i] ?? "";
6939
6979
  const isActive = i === activeIndex;
6940
- return /* @__PURE__ */ jsxs25(Fragment4, { children: [
6941
- /* @__PURE__ */ jsxs25(
6980
+ return /* @__PURE__ */ jsxs24(Fragment4, { children: [
6981
+ /* @__PURE__ */ jsxs24(
6942
6982
  "div",
6943
6983
  {
6944
6984
  "data-otp-slot": true,
6945
6985
  "data-active": isActive,
6946
6986
  "data-filled": char !== "",
6947
- className: cn42(
6987
+ className: cn41(
6948
6988
  "relative grid size-11 place-items-center overflow-hidden rounded-xl border bg-card text-xl font-semibold tabular-nums transition-colors duration-200",
6949
6989
  showSuccess ? "border-emerald-500/60 text-foreground" : status === "error" ? "border-destructive/60 text-foreground" : char ? "border-border-strong text-foreground" : "border-border text-muted-foreground",
6950
6990
  isActive && !showSuccess && status !== "error" && "border-brand border-2 ring-0",
6951
6991
  disabled && "opacity-50"
6952
6992
  ),
6953
6993
  children: [
6954
- isActive && !showSuccess ? /* @__PURE__ */ jsx43(
6994
+ isActive && !showSuccess ? /* @__PURE__ */ jsx42(
6955
6995
  motion7.span,
6956
6996
  {
6957
6997
  "aria-hidden": true,
@@ -6961,13 +7001,13 @@ function OTPInput2({
6961
7001
  repeat: Number.POSITIVE_INFINITY,
6962
7002
  ease: "linear"
6963
7003
  },
6964
- className: cn42(
7004
+ className: cn41(
6965
7005
  "bg-brand pointer-events-none absolute top-1/2 h-6 w-px -translate-y-1/2",
6966
7006
  char ? "right-3" : "left-1/2 -translate-x-1/2"
6967
7007
  )
6968
7008
  }
6969
7009
  ) : null,
6970
- /* @__PURE__ */ jsx43(AnimatePresence3, { initial: false, children: char ? /* @__PURE__ */ jsx43(
7010
+ /* @__PURE__ */ jsx42(AnimatePresence3, { initial: false, children: char ? /* @__PURE__ */ jsx42(
6971
7011
  motion7.span,
6972
7012
  {
6973
7013
  initial: reduce ? {
@@ -7005,10 +7045,10 @@ function OTPInput2({
7005
7045
  ]
7006
7046
  }
7007
7047
  ),
7008
- i === 2 ? /* @__PURE__ */ jsx43("span", { "aria-hidden": "true", className: "h-0.5 w-4 bg-primary" }) : null
7048
+ i === 2 ? /* @__PURE__ */ jsx42("span", { "aria-hidden": "true", className: "h-0.5 w-4 bg-primary" }) : null
7009
7049
  ] }, `${uid}-${i}`);
7010
7050
  }) }),
7011
- /* @__PURE__ */ jsx43(AnimatePresence3, { children: showSuccess ? /* @__PURE__ */ jsx43(
7051
+ /* @__PURE__ */ jsx42(AnimatePresence3, { children: showSuccess ? /* @__PURE__ */ jsx42(
7012
7052
  motion7.span,
7013
7053
  {
7014
7054
  initial: reduce ? {
@@ -7038,7 +7078,7 @@ function OTPInput2({
7038
7078
  },
7039
7079
  className: "pointer-events-none absolute top-1/2 -right-7 -translate-y-1/2 text-emerald-500",
7040
7080
  "aria-hidden": true,
7041
- children: /* @__PURE__ */ jsxs25(
7081
+ children: /* @__PURE__ */ jsxs24(
7042
7082
  "svg",
7043
7083
  {
7044
7084
  width: "20",
@@ -7050,8 +7090,8 @@ function OTPInput2({
7050
7090
  strokeLinecap: "round",
7051
7091
  strokeLinejoin: "round",
7052
7092
  children: [
7053
- /* @__PURE__ */ jsx43("title", { children: "Verified" }),
7054
- /* @__PURE__ */ jsx43(
7093
+ /* @__PURE__ */ jsx42("title", { children: "Verified" }),
7094
+ /* @__PURE__ */ jsx42(
7055
7095
  motion7.path,
7056
7096
  {
7057
7097
  d: "M5 13l4 4L19 7",
@@ -7080,11 +7120,11 @@ function OTPInput2({
7080
7120
  ]
7081
7121
  }
7082
7122
  ),
7083
- message ? /* @__PURE__ */ jsx43(
7123
+ message ? /* @__PURE__ */ jsx42(
7084
7124
  "p",
7085
7125
  {
7086
7126
  "aria-live": "polite",
7087
- className: cn42(
7127
+ className: cn41(
7088
7128
  "text-sm",
7089
7129
  showSuccess ? "text-emerald-500" : status === "error" ? "text-destructive" : "text-muted-foreground"
7090
7130
  ),
@@ -7103,13 +7143,13 @@ function toSlots(raw, length) {
7103
7143
 
7104
7144
  // src/ui/popover.tsx
7105
7145
  import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
7106
- import { cn as cn43 } from "cn";
7107
- import { jsx as jsx44 } from "react/jsx-runtime";
7146
+ import { cn as cn42 } from "cn";
7147
+ import { jsx as jsx43 } from "react/jsx-runtime";
7108
7148
  function Popover({ ...props }) {
7109
- return /* @__PURE__ */ jsx44(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
7149
+ return /* @__PURE__ */ jsx43(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
7110
7150
  }
7111
7151
  function PopoverTrigger({ ...props }) {
7112
- return /* @__PURE__ */ jsx44(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
7152
+ return /* @__PURE__ */ jsx43(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
7113
7153
  }
7114
7154
  function PopoverContent({
7115
7155
  className,
@@ -7119,7 +7159,7 @@ function PopoverContent({
7119
7159
  sideOffset = 4,
7120
7160
  ...props
7121
7161
  }) {
7122
- return /* @__PURE__ */ jsx44(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx44(
7162
+ return /* @__PURE__ */ jsx43(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx43(
7123
7163
  PopoverPrimitive.Positioner,
7124
7164
  {
7125
7165
  align,
@@ -7127,11 +7167,11 @@ function PopoverContent({
7127
7167
  side,
7128
7168
  sideOffset,
7129
7169
  className: "isolate z-50",
7130
- children: /* @__PURE__ */ jsx44(
7170
+ children: /* @__PURE__ */ jsx43(
7131
7171
  PopoverPrimitive.Popup,
7132
7172
  {
7133
7173
  "data-slot": "popover-content",
7134
- className: cn43(
7174
+ className: cn42(
7135
7175
  "z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-background p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
7136
7176
  className
7137
7177
  ),
@@ -7142,21 +7182,21 @@ function PopoverContent({
7142
7182
  ) });
7143
7183
  }
7144
7184
  function PopoverHeader({ className, ...props }) {
7145
- return /* @__PURE__ */ jsx44(
7185
+ return /* @__PURE__ */ jsx43(
7146
7186
  "div",
7147
7187
  {
7148
7188
  "data-slot": "popover-header",
7149
- className: cn43("flex flex-col gap-0.5 text-sm", className),
7189
+ className: cn42("flex flex-col gap-0.5 text-sm", className),
7150
7190
  ...props
7151
7191
  }
7152
7192
  );
7153
7193
  }
7154
7194
  function PopoverTitle({ className, ...props }) {
7155
- return /* @__PURE__ */ jsx44(
7195
+ return /* @__PURE__ */ jsx43(
7156
7196
  PopoverPrimitive.Title,
7157
7197
  {
7158
7198
  "data-slot": "popover-title",
7159
- className: cn43("font-medium", className),
7199
+ className: cn42("font-medium", className),
7160
7200
  ...props
7161
7201
  }
7162
7202
  );
@@ -7165,11 +7205,11 @@ function PopoverDescription({
7165
7205
  className,
7166
7206
  ...props
7167
7207
  }) {
7168
- return /* @__PURE__ */ jsx44(
7208
+ return /* @__PURE__ */ jsx43(
7169
7209
  PopoverPrimitive.Description,
7170
7210
  {
7171
7211
  "data-slot": "popover-description",
7172
- className: cn43("text-muted-foreground", className),
7212
+ className: cn42("text-muted-foreground", className),
7173
7213
  ...props
7174
7214
  }
7175
7215
  );
@@ -7179,11 +7219,11 @@ function PopoverDescription({
7179
7219
  import { NumberField } from "@base-ui/react/number-field";
7180
7220
  import { Minus, Plus } from "@gravity-ui/icons";
7181
7221
  import * as React13 from "react";
7182
- import { jsx as jsx45, jsxs as jsxs26 } from "react/jsx-runtime";
7222
+ import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
7183
7223
  var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref) {
7184
7224
  const id = React13.useId();
7185
- return /* @__PURE__ */ jsx45(NumberField.Root, { id, ...props, className: "flex flex-col items-start", children: /* @__PURE__ */ jsxs26(NumberField.Group, { className: "flex h-8 gap-1", children: [
7186
- /* @__PURE__ */ jsx45(
7225
+ return /* @__PURE__ */ jsx44(NumberField.Root, { id, ...props, className: "flex flex-col items-start", children: /* @__PURE__ */ jsxs25(NumberField.Group, { className: "flex h-8 gap-1", children: [
7226
+ /* @__PURE__ */ jsx44(
7187
7227
  NumberField.Decrement,
7188
7228
  {
7189
7229
  className: buttonVariants({
@@ -7191,10 +7231,10 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
7191
7231
  size: "icon-sm",
7192
7232
  className: "rounded-full! border-border!"
7193
7233
  }),
7194
- children: /* @__PURE__ */ jsx45(Minus, {})
7234
+ children: /* @__PURE__ */ jsx44(Minus, {})
7195
7235
  }
7196
7236
  ),
7197
- /* @__PURE__ */ jsx45(
7237
+ /* @__PURE__ */ jsx44(
7198
7238
  NumberField.Input,
7199
7239
  {
7200
7240
  ref,
@@ -7202,7 +7242,7 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
7202
7242
  "data-no-ring": true
7203
7243
  }
7204
7244
  ),
7205
- /* @__PURE__ */ jsx45(
7245
+ /* @__PURE__ */ jsx44(
7206
7246
  NumberField.Increment,
7207
7247
  {
7208
7248
  className: buttonVariants({
@@ -7210,7 +7250,7 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
7210
7250
  size: "icon-sm",
7211
7251
  className: "rounded-full! border-border!"
7212
7252
  }),
7213
- children: /* @__PURE__ */ jsx45(Plus, {})
7253
+ children: /* @__PURE__ */ jsx44(Plus, {})
7214
7254
  }
7215
7255
  )
7216
7256
  ] }) });
@@ -7219,34 +7259,34 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
7219
7259
  // src/ui/radio-group.tsx
7220
7260
  import { Radio as RadioPrimitive } from "@base-ui/react/radio";
7221
7261
  import { RadioGroup as RadioGroupPrimitive } from "@base-ui/react/radio-group";
7222
- import { cn as cn44 } from "cn";
7223
- import { jsx as jsx46 } from "react/jsx-runtime";
7262
+ import { cn as cn43 } from "cn";
7263
+ import { jsx as jsx45 } from "react/jsx-runtime";
7224
7264
  function RadioGroup({ className, ...props }) {
7225
- return /* @__PURE__ */ jsx46(
7265
+ return /* @__PURE__ */ jsx45(
7226
7266
  RadioGroupPrimitive,
7227
7267
  {
7228
7268
  "data-slot": "radio-group",
7229
- className: cn44("grid w-full gap-2", className),
7269
+ className: cn43("grid w-full gap-2", className),
7230
7270
  ...props
7231
7271
  }
7232
7272
  );
7233
7273
  }
7234
7274
  function RadioGroupItem({ className, ...props }) {
7235
- return /* @__PURE__ */ jsx46(
7275
+ return /* @__PURE__ */ jsx45(
7236
7276
  RadioPrimitive.Root,
7237
7277
  {
7238
7278
  "data-slot": "radio-group-item",
7239
- className: cn44(
7279
+ className: cn43(
7240
7280
  "group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",
7241
7281
  className
7242
7282
  ),
7243
7283
  ...props,
7244
- children: /* @__PURE__ */ jsx46(
7284
+ children: /* @__PURE__ */ jsx45(
7245
7285
  RadioPrimitive.Indicator,
7246
7286
  {
7247
7287
  "data-slot": "radio-group-indicator",
7248
7288
  className: "flex size-4 items-center justify-center",
7249
- children: /* @__PURE__ */ jsx46("span", { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground" })
7289
+ children: /* @__PURE__ */ jsx45("span", { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground" })
7250
7290
  }
7251
7291
  )
7252
7292
  }
@@ -7254,18 +7294,18 @@ function RadioGroupItem({ className, ...props }) {
7254
7294
  }
7255
7295
 
7256
7296
  // src/ui/resizable.tsx
7257
- import { cn as cn45 } from "cn";
7297
+ import { cn as cn44 } from "cn";
7258
7298
  import * as ResizablePrimitive from "react-resizable-panels";
7259
- import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
7299
+ import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
7260
7300
  function ResizablePanelGroup({
7261
7301
  className,
7262
7302
  ...props
7263
7303
  }) {
7264
- return /* @__PURE__ */ jsx47(
7304
+ return /* @__PURE__ */ jsx46(
7265
7305
  ResizablePrimitive.Group,
7266
7306
  {
7267
7307
  "data-slot": "resizable-panel-group",
7268
- className: cn45(
7308
+ className: cn44(
7269
7309
  "flex h-full w-full aria-[orientation=vertical]:flex-col",
7270
7310
  className
7271
7311
  ),
@@ -7274,26 +7314,26 @@ function ResizablePanelGroup({
7274
7314
  );
7275
7315
  }
7276
7316
  function ResizablePanel({ ...props }) {
7277
- return /* @__PURE__ */ jsx47(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
7317
+ return /* @__PURE__ */ jsx46(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
7278
7318
  }
7279
7319
  function ResizableHandle({
7280
7320
  withHandle,
7281
7321
  className,
7282
7322
  ...props
7283
7323
  }) {
7284
- return /* @__PURE__ */ jsx47(
7324
+ return /* @__PURE__ */ jsx46(
7285
7325
  ResizablePrimitive.Separator,
7286
7326
  {
7287
7327
  "data-slot": "resizable-handle",
7288
- className: cn45(
7328
+ className: cn44(
7289
7329
  "relative mx-0.5 flex w-px items-center justify-center",
7290
7330
  className
7291
7331
  ),
7292
7332
  ...props,
7293
- children: withHandle && /* @__PURE__ */ jsxs27("div", { className: "flex cursor-col-resize flex-col gap-[4px]", children: [
7294
- /* @__PURE__ */ jsx47("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
7295
- /* @__PURE__ */ jsx47("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
7296
- /* @__PURE__ */ jsx47("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" })
7333
+ children: withHandle && /* @__PURE__ */ jsxs26("div", { className: "flex cursor-col-resize flex-col gap-[4px]", children: [
7334
+ /* @__PURE__ */ jsx46("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
7335
+ /* @__PURE__ */ jsx46("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
7336
+ /* @__PURE__ */ jsx46("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" })
7297
7337
  ] })
7298
7338
  }
7299
7339
  );
@@ -7301,26 +7341,26 @@ function ResizableHandle({
7301
7341
 
7302
7342
  // src/ui/select.tsx
7303
7343
  import { Select as SelectPrimitive } from "@base-ui/react/select";
7304
- import { cn as cn46 } from "cn";
7344
+ import { cn as cn45 } from "cn";
7305
7345
  import { Check as Check3, ChevronDown as ChevronDown3, ChevronUp as ChevronUp2 } from "@gravity-ui/icons";
7306
- import { jsx as jsx48, jsxs as jsxs28 } from "react/jsx-runtime";
7346
+ import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
7307
7347
  var Select = SelectPrimitive.Root;
7308
7348
  function SelectGroup({ className, ...props }) {
7309
- return /* @__PURE__ */ jsx48(
7349
+ return /* @__PURE__ */ jsx47(
7310
7350
  SelectPrimitive.Group,
7311
7351
  {
7312
7352
  "data-slot": "select-group",
7313
- className: cn46("scroll-my-1 p-1", className),
7353
+ className: cn45("scroll-my-1 p-1", className),
7314
7354
  ...props
7315
7355
  }
7316
7356
  );
7317
7357
  }
7318
7358
  function SelectValue({ className, ...props }) {
7319
- return /* @__PURE__ */ jsx48(
7359
+ return /* @__PURE__ */ jsx47(
7320
7360
  SelectPrimitive.Value,
7321
7361
  {
7322
7362
  "data-slot": "select-value",
7323
- className: cn46("flex flex-1 text-left", className),
7363
+ className: cn45("flex flex-1 text-left", className),
7324
7364
  ...props
7325
7365
  }
7326
7366
  );
@@ -7331,22 +7371,22 @@ function SelectTrigger({
7331
7371
  children,
7332
7372
  ...props
7333
7373
  }) {
7334
- return /* @__PURE__ */ jsxs28(
7374
+ return /* @__PURE__ */ jsxs27(
7335
7375
  SelectPrimitive.Trigger,
7336
7376
  {
7337
7377
  "data-slot": "select-trigger",
7338
7378
  "data-size": size,
7339
- className: cn46(
7379
+ className: cn45(
7340
7380
  "flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-placeholder:text-muted-foreground data-[size=default]:h-8 *:data-[slot=select-value]:line-clamp-1 dark:hover:bg-input/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
7341
7381
  className
7342
7382
  ),
7343
7383
  ...props,
7344
7384
  children: [
7345
7385
  children,
7346
- /* @__PURE__ */ jsx48(
7386
+ /* @__PURE__ */ jsx47(
7347
7387
  SelectPrimitive.Icon,
7348
7388
  {
7349
- render: /* @__PURE__ */ jsx48(ChevronDown3, { className: "pointer-events-none size-4 text-muted-foreground" })
7389
+ render: /* @__PURE__ */ jsx47(ChevronDown3, { className: "pointer-events-none size-4 text-muted-foreground" })
7350
7390
  }
7351
7391
  )
7352
7392
  ]
@@ -7363,7 +7403,7 @@ function SelectContent({
7363
7403
  alignItemWithTrigger = true,
7364
7404
  ...props
7365
7405
  }) {
7366
- return /* @__PURE__ */ jsx48(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx48(
7406
+ return /* @__PURE__ */ jsx47(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx47(
7367
7407
  SelectPrimitive.Positioner,
7368
7408
  {
7369
7409
  side,
@@ -7372,20 +7412,20 @@ function SelectContent({
7372
7412
  alignOffset,
7373
7413
  alignItemWithTrigger,
7374
7414
  className: "isolate z-50",
7375
- children: /* @__PURE__ */ jsxs28(
7415
+ children: /* @__PURE__ */ jsxs27(
7376
7416
  SelectPrimitive.Popup,
7377
7417
  {
7378
7418
  "data-slot": "select-content",
7379
7419
  "data-align-trigger": alignItemWithTrigger,
7380
- className: cn46(
7420
+ className: cn45(
7381
7421
  "relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-background text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-open:fade-in-0 data-open:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95",
7382
7422
  className
7383
7423
  ),
7384
7424
  ...props,
7385
7425
  children: [
7386
- /* @__PURE__ */ jsx48(SelectScrollUpButton, {}),
7387
- /* @__PURE__ */ jsx48(SelectPrimitive.List, { className: "p-1", children }),
7388
- /* @__PURE__ */ jsx48(SelectScrollDownButton, {})
7426
+ /* @__PURE__ */ jsx47(SelectScrollUpButton, {}),
7427
+ /* @__PURE__ */ jsx47(SelectPrimitive.List, { className: "p-1", children }),
7428
+ /* @__PURE__ */ jsx47(SelectScrollDownButton, {})
7389
7429
  ]
7390
7430
  }
7391
7431
  )
@@ -7396,11 +7436,11 @@ function SelectLabel({
7396
7436
  className,
7397
7437
  ...props
7398
7438
  }) {
7399
- return /* @__PURE__ */ jsx48(
7439
+ return /* @__PURE__ */ jsx47(
7400
7440
  SelectPrimitive.GroupLabel,
7401
7441
  {
7402
7442
  "data-slot": "select-label",
7403
- className: cn46("px-1.5 py-1 text-xs text-muted-foreground", className),
7443
+ className: cn45("px-1.5 py-1 text-xs text-muted-foreground", className),
7404
7444
  ...props
7405
7445
  }
7406
7446
  );
@@ -7410,22 +7450,22 @@ function SelectItem({
7410
7450
  children,
7411
7451
  ...props
7412
7452
  }) {
7413
- return /* @__PURE__ */ jsxs28(
7453
+ return /* @__PURE__ */ jsxs27(
7414
7454
  SelectPrimitive.Item,
7415
7455
  {
7416
7456
  "data-slot": "select-item",
7417
- className: cn46(
7457
+ className: cn45(
7418
7458
  "relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
7419
7459
  className
7420
7460
  ),
7421
7461
  ...props,
7422
7462
  children: [
7423
- /* @__PURE__ */ jsx48(SelectPrimitive.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
7424
- /* @__PURE__ */ jsx48(
7463
+ /* @__PURE__ */ jsx47(SelectPrimitive.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
7464
+ /* @__PURE__ */ jsx47(
7425
7465
  SelectPrimitive.ItemIndicator,
7426
7466
  {
7427
- render: /* @__PURE__ */ jsx48("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
7428
- children: /* @__PURE__ */ jsx48(Check3, { className: "pointer-events-none" })
7467
+ render: /* @__PURE__ */ jsx47("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
7468
+ children: /* @__PURE__ */ jsx47(Check3, { className: "pointer-events-none" })
7429
7469
  }
7430
7470
  )
7431
7471
  ]
@@ -7436,11 +7476,11 @@ function SelectSeparator({
7436
7476
  className,
7437
7477
  ...props
7438
7478
  }) {
7439
- return /* @__PURE__ */ jsx48(
7479
+ return /* @__PURE__ */ jsx47(
7440
7480
  SelectPrimitive.Separator,
7441
7481
  {
7442
7482
  "data-slot": "select-separator",
7443
- className: cn46("pointer-events-none -mx-1 my-1 h-px bg-border", className),
7483
+ className: cn45("pointer-events-none -mx-1 my-1 h-px bg-border", className),
7444
7484
  ...props
7445
7485
  }
7446
7486
  );
@@ -7449,16 +7489,16 @@ function SelectScrollUpButton({
7449
7489
  className,
7450
7490
  ...props
7451
7491
  }) {
7452
- return /* @__PURE__ */ jsx48(
7492
+ return /* @__PURE__ */ jsx47(
7453
7493
  SelectPrimitive.ScrollUpArrow,
7454
7494
  {
7455
7495
  "data-slot": "select-scroll-up-button",
7456
- className: cn46(
7496
+ className: cn45(
7457
7497
  "top-0 z-10 flex w-full cursor-default items-center justify-center bg-background py-1 [&_svg:not([class*='size-'])]:size-4",
7458
7498
  className
7459
7499
  ),
7460
7500
  ...props,
7461
- children: /* @__PURE__ */ jsx48(ChevronUp2, {})
7501
+ children: /* @__PURE__ */ jsx47(ChevronUp2, {})
7462
7502
  }
7463
7503
  );
7464
7504
  }
@@ -7466,27 +7506,27 @@ function SelectScrollDownButton({
7466
7506
  className,
7467
7507
  ...props
7468
7508
  }) {
7469
- return /* @__PURE__ */ jsx48(
7509
+ return /* @__PURE__ */ jsx47(
7470
7510
  SelectPrimitive.ScrollDownArrow,
7471
7511
  {
7472
7512
  "data-slot": "select-scroll-down-button",
7473
- className: cn46(
7513
+ className: cn45(
7474
7514
  "bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-background py-1 [&_svg:not([class*='size-'])]:size-4",
7475
7515
  className
7476
7516
  ),
7477
7517
  ...props,
7478
- children: /* @__PURE__ */ jsx48(ChevronDown3, {})
7518
+ children: /* @__PURE__ */ jsx47(ChevronDown3, {})
7479
7519
  }
7480
7520
  );
7481
7521
  }
7482
7522
 
7483
7523
  // src/ui/skeleton.tsx
7484
7524
  import {
7485
- forwardRef as forwardRef4,
7525
+ forwardRef as forwardRef5,
7486
7526
  useLayoutEffect as useLayoutEffect2
7487
7527
  } from "react";
7488
- import { cn as cn47 } from "cn";
7489
- import { jsx as jsx49 } from "react/jsx-runtime";
7528
+ import { cn as cn46 } from "cn";
7529
+ import { jsx as jsx48 } from "react/jsx-runtime";
7490
7530
  var componentThemeClassName = "[--ic-background:#ffffff] [--ic-foreground:#111111] [--ic-primary:#111111] [--ic-secondary:#646b75] [--ic-surface-border:#e9edf2] [--ic-border:#e3e7ec] [--ic-card:#ffffff] [--ic-card-foreground:#111111] [--ic-muted:#f5f7fa] [--ic-muted-foreground:#6d7480] [--ic-accent:#f3f5f8] [--color-accent:var(--ic-accent)] [--color-accent-foreground:var(--ic-accent-foreground)] [--ic-accent-foreground:#111111] [--ic-input:#e3e7ec] [--ic-ring:rgba(17,17,17,0.16)] [--ic-destructive:#dc2626] [--ic-paper:#fcfcfd] [--ic-popover-foreground:#111111] [--ic-brand:#0ea5e9] [--ic-brand-soft:#bae6fd] [--ic-shadow-soft:0_18px_38px_-24px_rgba(15,23,42,0.35)] [--ic-chart-1:oklch(0.52_0.19_254)] [--ic-chart-2:oklch(0.74_0.11_232)] [--ic-chart-3:oklch(0.42_0.16_262)] [--ic-chart-4:oklch(0.84_0.07_228)] [--ic-chart-5:oklch(0.62_0.14_240)] [--color-background:var(--ic-background)] [--color-foreground:var(--ic-foreground)] [--color-primary:var(--ic-primary)] [--color-secondary:var(--ic-secondary)] [--color-border:var(--ic-border)] [--color-card:var(--ic-card)] [--color-card-foreground:var(--ic-card-foreground)] [--color-muted:var(--ic-muted)] [--color-muted-foreground:var(--ic-muted-foreground)] [--color-accent:var(--ic-accent)] [--color-accent-foreground:var(--ic-accent-foreground)] [--color-input:var(--ic-input)] [--color-ring:var(--ic-ring)] [--color-destructive:var(--ic-destructive)] [--color-paper:var(--ic-paper)] [--color-popover-foreground:var(--ic-popover-foreground)] [--color-brand:var(--ic-brand)] [--color-brand-soft:var(--ic-brand-soft)] [--color-chart-1:var(--ic-chart-1)] [--color-chart-2:var(--ic-chart-2)] [--color-chart-3:var(--ic-chart-3)] [--color-chart-4:var(--ic-chart-4)] [--color-chart-5:var(--ic-chart-5)] dark:[--ic-background:#111111] dark:[--ic-foreground:#f6f3ec] dark:[--ic-primary:#f6f3ec] dark:[--ic-secondary:#cbc6bb] dark:[--ic-surface-border:#2a2a25] dark:[--ic-border:#2b2a25] dark:[--ic-card:#111111] dark:[--ic-card-foreground:#f6f3ec] dark:[--ic-muted:#171716] dark:[--ic-muted-foreground:#9a958a] dark:[--ic-accent:#1a1a18] [--color-accent:var(--ic-accent)] [--color-accent-foreground:var(--ic-accent-foreground)] dark:[--ic-accent-foreground:#f6f3ec] dark:[--ic-input:#2b2a25] dark:[--ic-ring:rgba(246,243,236,0.18)] dark:[--ic-destructive:#f87171] dark:[--ic-paper:#171716] dark:[--ic-popover-foreground:#f6f3ec] dark:[--ic-brand:#38bdf8] dark:[--ic-brand-soft:#0c4a6e] dark:[--ic-shadow-soft:0_20px_44px_-28px_rgba(0,0,0,0.6)] dark:[--ic-chart-1:oklch(0.68_0.17_250)] dark:[--ic-chart-2:oklch(0.82_0.09_225)] dark:[--ic-chart-3:oklch(0.58_0.15_260)] dark:[--ic-chart-4:oklch(0.75_0.12_235)] dark:[--ic-chart-5:oklch(0.88_0.06_220)]";
7491
7531
  var STYLE_ID = "iconiq-skeleton-styles";
7492
7532
  var SKELETON_CSS = `
@@ -7584,7 +7624,7 @@ function resolveSkeletonA11yProps({
7584
7624
  role: "status"
7585
7625
  };
7586
7626
  }
7587
- var Skeleton = forwardRef4(function Skeleton2({
7627
+ var Skeleton = forwardRef5(function Skeleton2({
7588
7628
  animate: animate2 = true,
7589
7629
  className,
7590
7630
  decorative = true,
@@ -7607,10 +7647,10 @@ var Skeleton = forwardRef4(function Skeleton2({
7607
7647
  ...style,
7608
7648
  "--iconiq-skeleton-duration": `${variantDuration}s`
7609
7649
  } : style;
7610
- return /* @__PURE__ */ jsx49(
7650
+ return /* @__PURE__ */ jsx48(
7611
7651
  "div",
7612
7652
  {
7613
- className: cn47(
7653
+ className: cn46(
7614
7654
  componentThemeClassName,
7615
7655
  "iconiq-skeleton-surface relative block h-4 w-full overflow-hidden",
7616
7656
  showFade && "iconiq-skeleton-fade-root",
@@ -7621,7 +7661,7 @@ var Skeleton = forwardRef4(function Skeleton2({
7621
7661
  style: animatedStyle,
7622
7662
  ...resolveSkeletonA11yProps({ animate: animate2, decorative, label }),
7623
7663
  ...props,
7624
- children: showShimmer ? /* @__PURE__ */ jsx49(
7664
+ children: showShimmer ? /* @__PURE__ */ jsx48(
7625
7665
  "span",
7626
7666
  {
7627
7667
  "aria-hidden": "true",
@@ -7636,10 +7676,10 @@ function SkeletonAvatar({
7636
7676
  className,
7637
7677
  ...props
7638
7678
  }) {
7639
- return /* @__PURE__ */ jsx49(
7679
+ return /* @__PURE__ */ jsx48(
7640
7680
  Skeleton,
7641
7681
  {
7642
- className: cn47("size-10", className),
7682
+ className: cn46("size-10", className),
7643
7683
  decorative: true,
7644
7684
  rounded: "full",
7645
7685
  ...props
@@ -7647,16 +7687,16 @@ function SkeletonAvatar({
7647
7687
  );
7648
7688
  }
7649
7689
  function SkeletonText({ className, ...props }) {
7650
- return /* @__PURE__ */ jsx49(Skeleton, { className: cn47("h-3", className), decorative: true, ...props });
7690
+ return /* @__PURE__ */ jsx48(Skeleton, { className: cn46("h-3", className), decorative: true, ...props });
7651
7691
  }
7652
7692
  function SkeletonButton({
7653
7693
  className,
7654
7694
  ...props
7655
7695
  }) {
7656
- return /* @__PURE__ */ jsx49(
7696
+ return /* @__PURE__ */ jsx48(
7657
7697
  Skeleton,
7658
7698
  {
7659
- className: cn47("h-9 w-24", className),
7699
+ className: cn46("h-9 w-24", className),
7660
7700
  decorative: true,
7661
7701
  rounded: "lg",
7662
7702
  ...props
@@ -7668,11 +7708,11 @@ var ShimmerSkeleton = Skeleton;
7668
7708
  // src/ui/sonner.tsx
7669
7709
  import { GooeyToaster } from "goey-toast";
7670
7710
  import { useTheme as useTheme2 } from "next-themes";
7671
- import { jsx as jsx50 } from "react/jsx-runtime";
7711
+ import { jsx as jsx49 } from "react/jsx-runtime";
7672
7712
  var Toaster = ({ closeButton = "top-left", ...props }) => {
7673
7713
  const { theme = "system" } = useTheme2();
7674
7714
  const toasterTheme = theme === "dark" ? "dark" : "light";
7675
- return /* @__PURE__ */ jsx50(
7715
+ return /* @__PURE__ */ jsx49(
7676
7716
  GooeyToaster,
7677
7717
  {
7678
7718
  theme: toasterTheme,
@@ -7714,7 +7754,7 @@ import {
7714
7754
  import { CSS } from "@dnd-kit/utilities";
7715
7755
  import * as React16 from "react";
7716
7756
  import * as ReactDOM from "react-dom";
7717
- import { cn as cn48 } from "cn";
7757
+ import { cn as cn47 } from "cn";
7718
7758
 
7719
7759
  // src/hooks/use-isomorphic-layout-effect.ts
7720
7760
  import * as React14 from "react";
@@ -7759,7 +7799,7 @@ function useComposedRefs(...refs) {
7759
7799
  }
7760
7800
 
7761
7801
  // src/ui/sortable.tsx
7762
- import { jsx as jsx51 } from "react/jsx-runtime";
7802
+ import { jsx as jsx50 } from "react/jsx-runtime";
7763
7803
  var orientationConfig = {
7764
7804
  vertical: {
7765
7805
  modifiers: [restrictToVerticalAxis, restrictToParentElement],
@@ -7944,11 +7984,11 @@ function Sortable(props) {
7944
7984
  flatCursor
7945
7985
  ]
7946
7986
  );
7947
- return /* @__PURE__ */ jsx51(
7987
+ return /* @__PURE__ */ jsx50(
7948
7988
  SortableRootContext.Provider,
7949
7989
  {
7950
7990
  value: contextValue,
7951
- children: /* @__PURE__ */ jsx51(
7991
+ children: /* @__PURE__ */ jsx50(
7952
7992
  DndContext,
7953
7993
  {
7954
7994
  collisionDetection: collisionDetection ?? config.collisionDetection,
@@ -7997,7 +8037,7 @@ function SortableContent(props) {
7997
8037
  },
7998
8038
  enabled: !withoutSlot
7999
8039
  });
8000
- return /* @__PURE__ */ jsx51(SortableContentContext.Provider, { value: true, children: /* @__PURE__ */ jsx51(
8040
+ return /* @__PURE__ */ jsx50(SortableContentContext.Provider, { value: true, children: /* @__PURE__ */ jsx50(
8001
8041
  SortableContext,
8002
8042
  {
8003
8043
  items: context.items,
@@ -8081,7 +8121,7 @@ function SortableItem(props) {
8081
8121
  id,
8082
8122
  ref: composedRef,
8083
8123
  style: composedStyle,
8084
- className: cn48(
8124
+ className: cn47(
8085
8125
  "focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:outline-hidden",
8086
8126
  {
8087
8127
  "touch-none select-none": asHandle,
@@ -8104,7 +8144,7 @@ function SortableItem(props) {
8104
8144
  ...isDragging && { dragging: "" }
8105
8145
  }
8106
8146
  });
8107
- return /* @__PURE__ */ jsx51(SortableItemContext.Provider, { value: itemContext, children: element });
8147
+ return /* @__PURE__ */ jsx50(SortableItemContext.Provider, { value: itemContext, children: element });
8108
8148
  }
8109
8149
  function SortableItemHandle(props) {
8110
8150
  const { disabled, className, render, ref, ...itemHandleProps } = props;
@@ -8129,7 +8169,7 @@ function SortableItemHandle(props) {
8129
8169
  "aria-controls": itemContext.id,
8130
8170
  ref: composedRef,
8131
8171
  disabled: isDisabled,
8132
- className: cn48(
8172
+ className: cn47(
8133
8173
  "select-none disabled:pointer-events-none disabled:opacity-50",
8134
8174
  context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
8135
8175
  className
@@ -8164,14 +8204,14 @@ function SortableOverlay(props) {
8164
8204
  const container = containerProp ?? (mounted ? globalThis.document?.body : null);
8165
8205
  if (!container) return null;
8166
8206
  return ReactDOM.createPortal(
8167
- /* @__PURE__ */ jsx51(
8207
+ /* @__PURE__ */ jsx50(
8168
8208
  DragOverlay,
8169
8209
  {
8170
8210
  dropAnimation,
8171
8211
  modifiers: context.modifiers,
8172
- className: cn48(!context.flatCursor && "cursor-grabbing"),
8212
+ className: cn47(!context.flatCursor && "cursor-grabbing"),
8173
8213
  ...overlayProps,
8174
- children: /* @__PURE__ */ jsx51(SortableOverlayContext.Provider, { value: true, children: context.activeId ? typeof children === "function" ? children({ value: context.activeId }) : children : null })
8214
+ children: /* @__PURE__ */ jsx50(SortableOverlayContext.Provider, { value: true, children: context.activeId ? typeof children === "function" ? children({ value: context.activeId }) : children : null })
8175
8215
  }
8176
8216
  ),
8177
8217
  container
@@ -8180,24 +8220,24 @@ function SortableOverlay(props) {
8180
8220
 
8181
8221
  // src/ui/switch.tsx
8182
8222
  import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
8183
- import { cn as cn49 } from "cn";
8184
- import { jsx as jsx52 } from "react/jsx-runtime";
8223
+ import { cn as cn48 } from "cn";
8224
+ import { jsx as jsx51 } from "react/jsx-runtime";
8185
8225
  function Switch({
8186
8226
  className,
8187
8227
  size = "default",
8188
8228
  ...props
8189
8229
  }) {
8190
- return /* @__PURE__ */ jsx52(
8230
+ return /* @__PURE__ */ jsx51(
8191
8231
  SwitchPrimitive.Root,
8192
8232
  {
8193
8233
  "data-slot": "switch",
8194
8234
  "data-size": size,
8195
- className: cn49(
8235
+ className: cn48(
8196
8236
  "peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-[background-color,border-color,box-shadow,opacity] duration-150 ease-out outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 motion-reduce:transition-none dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",
8197
8237
  className
8198
8238
  ),
8199
8239
  ...props,
8200
- children: /* @__PURE__ */ jsx52(
8240
+ children: /* @__PURE__ */ jsx51(
8201
8241
  SwitchPrimitive.Thumb,
8202
8242
  {
8203
8243
  "data-slot": "switch-thumb",
@@ -8209,11 +8249,11 @@ function Switch({
8209
8249
  }
8210
8250
 
8211
8251
  // src/ui/theme-toggle.tsx
8212
- import { cn as cn50 } from "cn";
8252
+ import { cn as cn49 } from "cn";
8213
8253
  import { motion as motion8, useReducedMotion as useReducedMotion3 } from "motion/react";
8214
8254
  import { useTheme as useTheme3 } from "next-themes";
8215
8255
  import { useId as useId7 } from "react";
8216
- import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
8256
+ import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
8217
8257
  var MORPH = { type: "spring", visualDuration: 0.4, bounce: 0 };
8218
8258
  var RAY_STAGGER = 0.018;
8219
8259
  var EASE_OUT3 = [0.23, 1, 0.32, 1];
@@ -8244,14 +8284,14 @@ function ThemeToggle({
8244
8284
  const activeVariant = variant ?? "ghost";
8245
8285
  const maskId = `moon-${useId7().replace(/[^\w-]/g, "")}`;
8246
8286
  const morph = reduceMotion ? { duration: 0 } : MORPH;
8247
- return /* @__PURE__ */ jsx53(
8287
+ return /* @__PURE__ */ jsx52(
8248
8288
  "button",
8249
8289
  {
8250
8290
  type: "button",
8251
8291
  "aria-label": "Toggle theme",
8252
8292
  "aria-pressed": dark,
8253
8293
  onClick: () => setTheme(dark ? "light" : "dark"),
8254
- className: cn50(
8294
+ className: cn49(
8255
8295
  buttonVariants({ variant: activeVariant }),
8256
8296
  "shadow-raised relative touch-manipulation rounded-full outline-hidden select-none",
8257
8297
  "transition-[scale,background-color] duration-150 ease-out active:scale-[0.96] motion-reduce:transition-[background-color]",
@@ -8262,7 +8302,7 @@ function ThemeToggle({
8262
8302
  size === "lg" && "size-9",
8263
8303
  className
8264
8304
  ),
8265
- children: /* @__PURE__ */ jsxs29(
8305
+ children: /* @__PURE__ */ jsxs28(
8266
8306
  motion8.svg,
8267
8307
  {
8268
8308
  "aria-hidden": true,
@@ -8272,7 +8312,7 @@ function ThemeToggle({
8272
8312
  animate: { rotate: dark ? MOON_TILT : 0 },
8273
8313
  transition: morph,
8274
8314
  children: [
8275
- /* @__PURE__ */ jsx53("defs", { children: /* @__PURE__ */ jsxs29(
8315
+ /* @__PURE__ */ jsx52("defs", { children: /* @__PURE__ */ jsxs28(
8276
8316
  "mask",
8277
8317
  {
8278
8318
  id: maskId,
@@ -8282,8 +8322,8 @@ function ThemeToggle({
8282
8322
  width: "24",
8283
8323
  height: "24",
8284
8324
  children: [
8285
- /* @__PURE__ */ jsx53("rect", { width: "24", height: "24", fill: "white" }),
8286
- /* @__PURE__ */ jsx53(
8325
+ /* @__PURE__ */ jsx52("rect", { width: "24", height: "24", fill: "white" }),
8326
+ /* @__PURE__ */ jsx52(
8287
8327
  motion8.circle,
8288
8328
  {
8289
8329
  r: BITE_R,
@@ -8296,7 +8336,7 @@ function ThemeToggle({
8296
8336
  ]
8297
8337
  }
8298
8338
  ) }),
8299
- /* @__PURE__ */ jsx53(
8339
+ /* @__PURE__ */ jsx52(
8300
8340
  motion8.circle,
8301
8341
  {
8302
8342
  cx: "12",
@@ -8308,10 +8348,10 @@ function ThemeToggle({
8308
8348
  transition: morph
8309
8349
  }
8310
8350
  ),
8311
- /* @__PURE__ */ jsx53("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", children: RAYS.map((ray, i) => {
8351
+ /* @__PURE__ */ jsx52("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", children: RAYS.map((ray, i) => {
8312
8352
  const { inner, outer } = dark ? RAY_IN : RAY_OUT;
8313
8353
  const delay = reduceMotion ? 0 : dark ? i * RAY_STAGGER : 0.06 + (RAYS.length - 1 - i) * RAY_STAGGER;
8314
- return /* @__PURE__ */ jsx53(
8354
+ return /* @__PURE__ */ jsx52(
8315
8355
  motion8.line,
8316
8356
  {
8317
8357
  initial: false,
@@ -8601,7 +8641,7 @@ export {
8601
8641
  Textarea,
8602
8642
  ThemeToggle,
8603
8643
  Toaster,
8604
- Tooltip2 as Tooltip,
8644
+ Tooltip,
8605
8645
  TooltipContent,
8606
8646
  TooltipProvider,
8607
8647
  TooltipTrigger,