rockin 0.0.14 → 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,22 +6367,22 @@ 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
6387
  import {
6441
6388
  forwardRef as forwardRef3,
@@ -6445,7 +6392,7 @@ import {
6445
6392
  useRef as useRef4,
6446
6393
  useState as useState8
6447
6394
  } from "react";
6448
- import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
6395
+ import { jsx as jsx41, jsxs as jsxs23 } from "react/jsx-runtime";
6449
6396
  var EASE_OUT = [0.23, 1, 0.32, 1];
6450
6397
  var ROLL = { duration: 0.18, ease: EASE_OUT };
6451
6398
  var SLIDE = { type: "spring", visualDuration: 0.2, bounce: 0 };
@@ -6499,15 +6446,15 @@ function RollingNumber({
6499
6446
  }) {
6500
6447
  const direction = useDirection(value);
6501
6448
  const chars = [...format(value)];
6502
- return /* @__PURE__ */ jsx42(
6449
+ return /* @__PURE__ */ jsx41(
6503
6450
  "span",
6504
6451
  {
6505
6452
  "aria-hidden": true,
6506
- className: cn41("relative inline-flex tabular-nums", className),
6507
- children: /* @__PURE__ */ jsx42(AnimatePresence2, { mode: "popLayout", initial: false, custom: direction, children: chars.map((char, index) => {
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) => {
6508
6455
  const place = chars.length - index;
6509
6456
  const digit = /\d/.test(char);
6510
- 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}`);
6511
6458
  }) })
6512
6459
  }
6513
6460
  );
@@ -6517,7 +6464,7 @@ function Place({
6517
6464
  children
6518
6465
  }) {
6519
6466
  const reduceMotion = useReducedMotion();
6520
- return /* @__PURE__ */ jsx42(
6467
+ return /* @__PURE__ */ jsx41(
6521
6468
  motion6.span,
6522
6469
  {
6523
6470
  layout: reduceMotion ? false : "position",
@@ -6529,7 +6476,7 @@ function Place({
6529
6476
  transition: { duration: 0.1 }
6530
6477
  },
6531
6478
  transition: { ...ROLL, layout: SLIDE },
6532
- className: cn41("inline-grid", digit && "overflow-hidden"),
6479
+ className: cn40("inline-grid", digit && "overflow-hidden"),
6533
6480
  children
6534
6481
  }
6535
6482
  );
@@ -6537,7 +6484,7 @@ function Place({
6537
6484
  function Digit({ char, direction }) {
6538
6485
  const reduceMotion = useReducedMotion();
6539
6486
  const offset = (value) => reduceMotion ? "0%" : `${value * 100}%`;
6540
- return /* @__PURE__ */ jsx42(AnimatePresence2, { initial: false, custom: direction, children: /* @__PURE__ */ jsx42(
6487
+ return /* @__PURE__ */ jsx41(AnimatePresence2, { initial: false, custom: direction, children: /* @__PURE__ */ jsx41(
6541
6488
  motion6.span,
6542
6489
  {
6543
6490
  custom: direction,
@@ -6661,7 +6608,7 @@ var NumberStepper = forwardRef3(
6661
6608
  if (Number.isNaN(parsed)) return;
6662
6609
  setTo(parsed, parsed > latest.current.value ? 1 : -1);
6663
6610
  };
6664
- const button = (delta, atLimit, name, path) => /* @__PURE__ */ jsx42(
6611
+ const button = (delta, atLimit, name, path) => /* @__PURE__ */ jsx41(
6665
6612
  "button",
6666
6613
  {
6667
6614
  type: "button",
@@ -6685,13 +6632,13 @@ var NumberStepper = forwardRef3(
6685
6632
  stepBy(delta);
6686
6633
  }
6687
6634
  },
6688
- className: cn41(
6635
+ className: cn40(
6689
6636
  "flex shrink-0 touch-manipulation items-center justify-center rounded-full text-foreground outline-hidden select-none",
6690
6637
  styles.button,
6691
6638
  "transition-[scale,opacity,background-color] duration-150 ease-out hover:bg-foreground/6 active:scale-[0.96] motion-reduce:transition-[opacity,background-color]",
6692
6639
  (disabled || atLimit) && "opacity-35 hover:bg-transparent"
6693
6640
  ),
6694
- children: /* @__PURE__ */ jsx42(
6641
+ children: /* @__PURE__ */ jsx41(
6695
6642
  "svg",
6696
6643
  {
6697
6644
  viewBox: "0 0 16 16",
@@ -6701,17 +6648,18 @@ var NumberStepper = forwardRef3(
6701
6648
  stroke: "currentColor",
6702
6649
  strokeWidth: 1.5,
6703
6650
  strokeLinecap: "round",
6704
- children: /* @__PURE__ */ jsx42("path", { d: path })
6651
+ children: /* @__PURE__ */ jsx41("path", { d: path })
6705
6652
  }
6706
6653
  )
6707
6654
  }
6708
6655
  );
6709
6656
  const editing = draft !== null;
6710
6657
  const styles = sizeStyles[size];
6711
- return /* @__PURE__ */ jsxs24(
6658
+ return /* @__PURE__ */ jsxs23(
6712
6659
  "div",
6713
6660
  {
6714
- className: cn41(
6661
+ "data-slot": "input-group",
6662
+ className: cn40(
6715
6663
  "shadow-raised inline-flex items-center rounded-full border",
6716
6664
  disabled && "opacity-50",
6717
6665
  styles.container,
@@ -6719,18 +6667,19 @@ var NumberStepper = forwardRef3(
6719
6667
  ),
6720
6668
  children: [
6721
6669
  button(-step, value <= min, "Decrease", "M3.5 8h9"),
6722
- /* @__PURE__ */ jsxs24(
6670
+ /* @__PURE__ */ jsxs23(
6723
6671
  "span",
6724
6672
  {
6725
6673
  ref: valueRef,
6726
- className: cn41("relative grid place-items-center", styles.value),
6674
+ className: cn40("relative grid place-items-center", styles.value),
6727
6675
  children: [
6728
- /* @__PURE__ */ jsx42(
6676
+ /* @__PURE__ */ jsx41(
6729
6677
  "input",
6730
6678
  {
6731
6679
  ref,
6732
6680
  id,
6733
6681
  disabled,
6682
+ "data-slot": "input-group-control",
6734
6683
  "data-no-ring": true,
6735
6684
  role: "spinbutton",
6736
6685
  "aria-label": label,
@@ -6775,18 +6724,18 @@ var NumberStepper = forwardRef3(
6775
6724
  setDraft(null);
6776
6725
  }
6777
6726
  },
6778
- className: cn41(
6727
+ className: cn40(
6779
6728
  "col-start-1 row-start-1 w-full bg-transparent text-center font-medium tabular-nums caret-foreground outline-hidden",
6780
6729
  styles.text,
6781
6730
  editing ? "text-foreground" : "text-transparent"
6782
6731
  )
6783
6732
  }
6784
6733
  ),
6785
- !editing && /* @__PURE__ */ jsx42(
6734
+ !editing && /* @__PURE__ */ jsx41(
6786
6735
  RollingNumber,
6787
6736
  {
6788
6737
  value,
6789
- className: cn41(
6738
+ className: cn40(
6790
6739
  "pointer-events-none col-start-1 row-start-1 font-medium text-foreground",
6791
6740
  styles.text
6792
6741
  )
@@ -6803,7 +6752,7 @@ var NumberStepper = forwardRef3(
6803
6752
  );
6804
6753
 
6805
6754
  // src/ui/otp.tsx
6806
- import { cn as cn42 } from "cn";
6755
+ import { cn as cn41 } from "cn";
6807
6756
  import {
6808
6757
  AnimatePresence as AnimatePresence3,
6809
6758
  animate,
@@ -6811,7 +6760,7 @@ import {
6811
6760
  useReducedMotion as useReducedMotion2
6812
6761
  } from "motion/react";
6813
6762
  import { Fragment as Fragment4, useEffect as useEffect7, useId as useId4, useRef as useRef5, useState as useState9 } from "react";
6814
- import { jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
6763
+ import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
6815
6764
  var EASE_OUT2 = [0.16, 1, 0.3, 1];
6816
6765
  var EASE_IN_OUT = [0.77, 0, 0.175, 1];
6817
6766
  var EASE_DRAWER = [0.32, 0.72, 0, 1];
@@ -6976,8 +6925,8 @@ function OTPInput2({
6976
6925
  const showSuccess = status === "success";
6977
6926
  const activeIndex = focused ? active : -1;
6978
6927
  const message = showSuccess ? successMessage : status === "error" ? errorMessage : hint;
6979
- return /* @__PURE__ */ jsxs25("div", { className: cn42("inline-flex flex-col gap-2", className), children: [
6980
- label ? /* @__PURE__ */ jsx43(
6928
+ return /* @__PURE__ */ jsxs24("div", { className: cn41("inline-flex flex-col gap-2", className), children: [
6929
+ label ? /* @__PURE__ */ jsx42(
6981
6930
  "label",
6982
6931
  {
6983
6932
  htmlFor: `${uid}-input`,
@@ -6985,7 +6934,7 @@ function OTPInput2({
6985
6934
  children: label
6986
6935
  }
6987
6936
  ) : null,
6988
- /* @__PURE__ */ jsxs25(
6937
+ /* @__PURE__ */ jsxs24(
6989
6938
  "div",
6990
6939
  {
6991
6940
  className: "relative inline-flex w-max",
@@ -6998,7 +6947,7 @@ function OTPInput2({
6998
6947
  inputRef.current?.focus();
6999
6948
  },
7000
6949
  children: [
7001
- /* @__PURE__ */ jsx43(
6950
+ /* @__PURE__ */ jsx42(
7002
6951
  "input",
7003
6952
  {
7004
6953
  ref: inputRef,
@@ -7025,24 +6974,24 @@ function OTPInput2({
7025
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"
7026
6975
  }
7027
6976
  ),
7028
- /* @__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) => {
7029
6978
  const char = slots[i] ?? "";
7030
6979
  const isActive = i === activeIndex;
7031
- return /* @__PURE__ */ jsxs25(Fragment4, { children: [
7032
- /* @__PURE__ */ jsxs25(
6980
+ return /* @__PURE__ */ jsxs24(Fragment4, { children: [
6981
+ /* @__PURE__ */ jsxs24(
7033
6982
  "div",
7034
6983
  {
7035
6984
  "data-otp-slot": true,
7036
6985
  "data-active": isActive,
7037
6986
  "data-filled": char !== "",
7038
- className: cn42(
6987
+ className: cn41(
7039
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",
7040
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",
7041
6990
  isActive && !showSuccess && status !== "error" && "border-brand border-2 ring-0",
7042
6991
  disabled && "opacity-50"
7043
6992
  ),
7044
6993
  children: [
7045
- isActive && !showSuccess ? /* @__PURE__ */ jsx43(
6994
+ isActive && !showSuccess ? /* @__PURE__ */ jsx42(
7046
6995
  motion7.span,
7047
6996
  {
7048
6997
  "aria-hidden": true,
@@ -7052,13 +7001,13 @@ function OTPInput2({
7052
7001
  repeat: Number.POSITIVE_INFINITY,
7053
7002
  ease: "linear"
7054
7003
  },
7055
- className: cn42(
7004
+ className: cn41(
7056
7005
  "bg-brand pointer-events-none absolute top-1/2 h-6 w-px -translate-y-1/2",
7057
7006
  char ? "right-3" : "left-1/2 -translate-x-1/2"
7058
7007
  )
7059
7008
  }
7060
7009
  ) : null,
7061
- /* @__PURE__ */ jsx43(AnimatePresence3, { initial: false, children: char ? /* @__PURE__ */ jsx43(
7010
+ /* @__PURE__ */ jsx42(AnimatePresence3, { initial: false, children: char ? /* @__PURE__ */ jsx42(
7062
7011
  motion7.span,
7063
7012
  {
7064
7013
  initial: reduce ? {
@@ -7096,10 +7045,10 @@ function OTPInput2({
7096
7045
  ]
7097
7046
  }
7098
7047
  ),
7099
- 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
7100
7049
  ] }, `${uid}-${i}`);
7101
7050
  }) }),
7102
- /* @__PURE__ */ jsx43(AnimatePresence3, { children: showSuccess ? /* @__PURE__ */ jsx43(
7051
+ /* @__PURE__ */ jsx42(AnimatePresence3, { children: showSuccess ? /* @__PURE__ */ jsx42(
7103
7052
  motion7.span,
7104
7053
  {
7105
7054
  initial: reduce ? {
@@ -7129,7 +7078,7 @@ function OTPInput2({
7129
7078
  },
7130
7079
  className: "pointer-events-none absolute top-1/2 -right-7 -translate-y-1/2 text-emerald-500",
7131
7080
  "aria-hidden": true,
7132
- children: /* @__PURE__ */ jsxs25(
7081
+ children: /* @__PURE__ */ jsxs24(
7133
7082
  "svg",
7134
7083
  {
7135
7084
  width: "20",
@@ -7141,8 +7090,8 @@ function OTPInput2({
7141
7090
  strokeLinecap: "round",
7142
7091
  strokeLinejoin: "round",
7143
7092
  children: [
7144
- /* @__PURE__ */ jsx43("title", { children: "Verified" }),
7145
- /* @__PURE__ */ jsx43(
7093
+ /* @__PURE__ */ jsx42("title", { children: "Verified" }),
7094
+ /* @__PURE__ */ jsx42(
7146
7095
  motion7.path,
7147
7096
  {
7148
7097
  d: "M5 13l4 4L19 7",
@@ -7171,11 +7120,11 @@ function OTPInput2({
7171
7120
  ]
7172
7121
  }
7173
7122
  ),
7174
- message ? /* @__PURE__ */ jsx43(
7123
+ message ? /* @__PURE__ */ jsx42(
7175
7124
  "p",
7176
7125
  {
7177
7126
  "aria-live": "polite",
7178
- className: cn42(
7127
+ className: cn41(
7179
7128
  "text-sm",
7180
7129
  showSuccess ? "text-emerald-500" : status === "error" ? "text-destructive" : "text-muted-foreground"
7181
7130
  ),
@@ -7194,13 +7143,13 @@ function toSlots(raw, length) {
7194
7143
 
7195
7144
  // src/ui/popover.tsx
7196
7145
  import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
7197
- import { cn as cn43 } from "cn";
7198
- import { jsx as jsx44 } from "react/jsx-runtime";
7146
+ import { cn as cn42 } from "cn";
7147
+ import { jsx as jsx43 } from "react/jsx-runtime";
7199
7148
  function Popover({ ...props }) {
7200
- return /* @__PURE__ */ jsx44(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
7149
+ return /* @__PURE__ */ jsx43(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
7201
7150
  }
7202
7151
  function PopoverTrigger({ ...props }) {
7203
- return /* @__PURE__ */ jsx44(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
7152
+ return /* @__PURE__ */ jsx43(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
7204
7153
  }
7205
7154
  function PopoverContent({
7206
7155
  className,
@@ -7210,7 +7159,7 @@ function PopoverContent({
7210
7159
  sideOffset = 4,
7211
7160
  ...props
7212
7161
  }) {
7213
- return /* @__PURE__ */ jsx44(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx44(
7162
+ return /* @__PURE__ */ jsx43(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx43(
7214
7163
  PopoverPrimitive.Positioner,
7215
7164
  {
7216
7165
  align,
@@ -7218,11 +7167,11 @@ function PopoverContent({
7218
7167
  side,
7219
7168
  sideOffset,
7220
7169
  className: "isolate z-50",
7221
- children: /* @__PURE__ */ jsx44(
7170
+ children: /* @__PURE__ */ jsx43(
7222
7171
  PopoverPrimitive.Popup,
7223
7172
  {
7224
7173
  "data-slot": "popover-content",
7225
- className: cn43(
7174
+ className: cn42(
7226
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",
7227
7176
  className
7228
7177
  ),
@@ -7233,21 +7182,21 @@ function PopoverContent({
7233
7182
  ) });
7234
7183
  }
7235
7184
  function PopoverHeader({ className, ...props }) {
7236
- return /* @__PURE__ */ jsx44(
7185
+ return /* @__PURE__ */ jsx43(
7237
7186
  "div",
7238
7187
  {
7239
7188
  "data-slot": "popover-header",
7240
- className: cn43("flex flex-col gap-0.5 text-sm", className),
7189
+ className: cn42("flex flex-col gap-0.5 text-sm", className),
7241
7190
  ...props
7242
7191
  }
7243
7192
  );
7244
7193
  }
7245
7194
  function PopoverTitle({ className, ...props }) {
7246
- return /* @__PURE__ */ jsx44(
7195
+ return /* @__PURE__ */ jsx43(
7247
7196
  PopoverPrimitive.Title,
7248
7197
  {
7249
7198
  "data-slot": "popover-title",
7250
- className: cn43("font-medium", className),
7199
+ className: cn42("font-medium", className),
7251
7200
  ...props
7252
7201
  }
7253
7202
  );
@@ -7256,11 +7205,11 @@ function PopoverDescription({
7256
7205
  className,
7257
7206
  ...props
7258
7207
  }) {
7259
- return /* @__PURE__ */ jsx44(
7208
+ return /* @__PURE__ */ jsx43(
7260
7209
  PopoverPrimitive.Description,
7261
7210
  {
7262
7211
  "data-slot": "popover-description",
7263
- className: cn43("text-muted-foreground", className),
7212
+ className: cn42("text-muted-foreground", className),
7264
7213
  ...props
7265
7214
  }
7266
7215
  );
@@ -7270,11 +7219,11 @@ function PopoverDescription({
7270
7219
  import { NumberField } from "@base-ui/react/number-field";
7271
7220
  import { Minus, Plus } from "@gravity-ui/icons";
7272
7221
  import * as React13 from "react";
7273
- import { jsx as jsx45, jsxs as jsxs26 } from "react/jsx-runtime";
7222
+ import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
7274
7223
  var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref) {
7275
7224
  const id = React13.useId();
7276
- 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: [
7277
- /* @__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(
7278
7227
  NumberField.Decrement,
7279
7228
  {
7280
7229
  className: buttonVariants({
@@ -7282,10 +7231,10 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
7282
7231
  size: "icon-sm",
7283
7232
  className: "rounded-full! border-border!"
7284
7233
  }),
7285
- children: /* @__PURE__ */ jsx45(Minus, {})
7234
+ children: /* @__PURE__ */ jsx44(Minus, {})
7286
7235
  }
7287
7236
  ),
7288
- /* @__PURE__ */ jsx45(
7237
+ /* @__PURE__ */ jsx44(
7289
7238
  NumberField.Input,
7290
7239
  {
7291
7240
  ref,
@@ -7293,7 +7242,7 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
7293
7242
  "data-no-ring": true
7294
7243
  }
7295
7244
  ),
7296
- /* @__PURE__ */ jsx45(
7245
+ /* @__PURE__ */ jsx44(
7297
7246
  NumberField.Increment,
7298
7247
  {
7299
7248
  className: buttonVariants({
@@ -7301,7 +7250,7 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
7301
7250
  size: "icon-sm",
7302
7251
  className: "rounded-full! border-border!"
7303
7252
  }),
7304
- children: /* @__PURE__ */ jsx45(Plus, {})
7253
+ children: /* @__PURE__ */ jsx44(Plus, {})
7305
7254
  }
7306
7255
  )
7307
7256
  ] }) });
@@ -7310,34 +7259,34 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
7310
7259
  // src/ui/radio-group.tsx
7311
7260
  import { Radio as RadioPrimitive } from "@base-ui/react/radio";
7312
7261
  import { RadioGroup as RadioGroupPrimitive } from "@base-ui/react/radio-group";
7313
- import { cn as cn44 } from "cn";
7314
- import { jsx as jsx46 } from "react/jsx-runtime";
7262
+ import { cn as cn43 } from "cn";
7263
+ import { jsx as jsx45 } from "react/jsx-runtime";
7315
7264
  function RadioGroup({ className, ...props }) {
7316
- return /* @__PURE__ */ jsx46(
7265
+ return /* @__PURE__ */ jsx45(
7317
7266
  RadioGroupPrimitive,
7318
7267
  {
7319
7268
  "data-slot": "radio-group",
7320
- className: cn44("grid w-full gap-2", className),
7269
+ className: cn43("grid w-full gap-2", className),
7321
7270
  ...props
7322
7271
  }
7323
7272
  );
7324
7273
  }
7325
7274
  function RadioGroupItem({ className, ...props }) {
7326
- return /* @__PURE__ */ jsx46(
7275
+ return /* @__PURE__ */ jsx45(
7327
7276
  RadioPrimitive.Root,
7328
7277
  {
7329
7278
  "data-slot": "radio-group-item",
7330
- className: cn44(
7279
+ className: cn43(
7331
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",
7332
7281
  className
7333
7282
  ),
7334
7283
  ...props,
7335
- children: /* @__PURE__ */ jsx46(
7284
+ children: /* @__PURE__ */ jsx45(
7336
7285
  RadioPrimitive.Indicator,
7337
7286
  {
7338
7287
  "data-slot": "radio-group-indicator",
7339
7288
  className: "flex size-4 items-center justify-center",
7340
- 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" })
7341
7290
  }
7342
7291
  )
7343
7292
  }
@@ -7345,18 +7294,18 @@ function RadioGroupItem({ className, ...props }) {
7345
7294
  }
7346
7295
 
7347
7296
  // src/ui/resizable.tsx
7348
- import { cn as cn45 } from "cn";
7297
+ import { cn as cn44 } from "cn";
7349
7298
  import * as ResizablePrimitive from "react-resizable-panels";
7350
- import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
7299
+ import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
7351
7300
  function ResizablePanelGroup({
7352
7301
  className,
7353
7302
  ...props
7354
7303
  }) {
7355
- return /* @__PURE__ */ jsx47(
7304
+ return /* @__PURE__ */ jsx46(
7356
7305
  ResizablePrimitive.Group,
7357
7306
  {
7358
7307
  "data-slot": "resizable-panel-group",
7359
- className: cn45(
7308
+ className: cn44(
7360
7309
  "flex h-full w-full aria-[orientation=vertical]:flex-col",
7361
7310
  className
7362
7311
  ),
@@ -7365,26 +7314,26 @@ function ResizablePanelGroup({
7365
7314
  );
7366
7315
  }
7367
7316
  function ResizablePanel({ ...props }) {
7368
- return /* @__PURE__ */ jsx47(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
7317
+ return /* @__PURE__ */ jsx46(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
7369
7318
  }
7370
7319
  function ResizableHandle({
7371
7320
  withHandle,
7372
7321
  className,
7373
7322
  ...props
7374
7323
  }) {
7375
- return /* @__PURE__ */ jsx47(
7324
+ return /* @__PURE__ */ jsx46(
7376
7325
  ResizablePrimitive.Separator,
7377
7326
  {
7378
7327
  "data-slot": "resizable-handle",
7379
- className: cn45(
7328
+ className: cn44(
7380
7329
  "relative mx-0.5 flex w-px items-center justify-center",
7381
7330
  className
7382
7331
  ),
7383
7332
  ...props,
7384
- children: withHandle && /* @__PURE__ */ jsxs27("div", { className: "flex cursor-col-resize flex-col gap-[4px]", children: [
7385
- /* @__PURE__ */ jsx47("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
7386
- /* @__PURE__ */ jsx47("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
7387
- /* @__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" })
7388
7337
  ] })
7389
7338
  }
7390
7339
  );
@@ -7392,26 +7341,26 @@ function ResizableHandle({
7392
7341
 
7393
7342
  // src/ui/select.tsx
7394
7343
  import { Select as SelectPrimitive } from "@base-ui/react/select";
7395
- import { cn as cn46 } from "cn";
7344
+ import { cn as cn45 } from "cn";
7396
7345
  import { Check as Check3, ChevronDown as ChevronDown3, ChevronUp as ChevronUp2 } from "@gravity-ui/icons";
7397
- import { jsx as jsx48, jsxs as jsxs28 } from "react/jsx-runtime";
7346
+ import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
7398
7347
  var Select = SelectPrimitive.Root;
7399
7348
  function SelectGroup({ className, ...props }) {
7400
- return /* @__PURE__ */ jsx48(
7349
+ return /* @__PURE__ */ jsx47(
7401
7350
  SelectPrimitive.Group,
7402
7351
  {
7403
7352
  "data-slot": "select-group",
7404
- className: cn46("scroll-my-1 p-1", className),
7353
+ className: cn45("scroll-my-1 p-1", className),
7405
7354
  ...props
7406
7355
  }
7407
7356
  );
7408
7357
  }
7409
7358
  function SelectValue({ className, ...props }) {
7410
- return /* @__PURE__ */ jsx48(
7359
+ return /* @__PURE__ */ jsx47(
7411
7360
  SelectPrimitive.Value,
7412
7361
  {
7413
7362
  "data-slot": "select-value",
7414
- className: cn46("flex flex-1 text-left", className),
7363
+ className: cn45("flex flex-1 text-left", className),
7415
7364
  ...props
7416
7365
  }
7417
7366
  );
@@ -7422,22 +7371,22 @@ function SelectTrigger({
7422
7371
  children,
7423
7372
  ...props
7424
7373
  }) {
7425
- return /* @__PURE__ */ jsxs28(
7374
+ return /* @__PURE__ */ jsxs27(
7426
7375
  SelectPrimitive.Trigger,
7427
7376
  {
7428
7377
  "data-slot": "select-trigger",
7429
7378
  "data-size": size,
7430
- className: cn46(
7379
+ className: cn45(
7431
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",
7432
7381
  className
7433
7382
  ),
7434
7383
  ...props,
7435
7384
  children: [
7436
7385
  children,
7437
- /* @__PURE__ */ jsx48(
7386
+ /* @__PURE__ */ jsx47(
7438
7387
  SelectPrimitive.Icon,
7439
7388
  {
7440
- 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" })
7441
7390
  }
7442
7391
  )
7443
7392
  ]
@@ -7454,7 +7403,7 @@ function SelectContent({
7454
7403
  alignItemWithTrigger = true,
7455
7404
  ...props
7456
7405
  }) {
7457
- return /* @__PURE__ */ jsx48(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx48(
7406
+ return /* @__PURE__ */ jsx47(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx47(
7458
7407
  SelectPrimitive.Positioner,
7459
7408
  {
7460
7409
  side,
@@ -7463,20 +7412,20 @@ function SelectContent({
7463
7412
  alignOffset,
7464
7413
  alignItemWithTrigger,
7465
7414
  className: "isolate z-50",
7466
- children: /* @__PURE__ */ jsxs28(
7415
+ children: /* @__PURE__ */ jsxs27(
7467
7416
  SelectPrimitive.Popup,
7468
7417
  {
7469
7418
  "data-slot": "select-content",
7470
7419
  "data-align-trigger": alignItemWithTrigger,
7471
- className: cn46(
7420
+ className: cn45(
7472
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",
7473
7422
  className
7474
7423
  ),
7475
7424
  ...props,
7476
7425
  children: [
7477
- /* @__PURE__ */ jsx48(SelectScrollUpButton, {}),
7478
- /* @__PURE__ */ jsx48(SelectPrimitive.List, { className: "p-1", children }),
7479
- /* @__PURE__ */ jsx48(SelectScrollDownButton, {})
7426
+ /* @__PURE__ */ jsx47(SelectScrollUpButton, {}),
7427
+ /* @__PURE__ */ jsx47(SelectPrimitive.List, { className: "p-1", children }),
7428
+ /* @__PURE__ */ jsx47(SelectScrollDownButton, {})
7480
7429
  ]
7481
7430
  }
7482
7431
  )
@@ -7487,11 +7436,11 @@ function SelectLabel({
7487
7436
  className,
7488
7437
  ...props
7489
7438
  }) {
7490
- return /* @__PURE__ */ jsx48(
7439
+ return /* @__PURE__ */ jsx47(
7491
7440
  SelectPrimitive.GroupLabel,
7492
7441
  {
7493
7442
  "data-slot": "select-label",
7494
- 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),
7495
7444
  ...props
7496
7445
  }
7497
7446
  );
@@ -7501,22 +7450,22 @@ function SelectItem({
7501
7450
  children,
7502
7451
  ...props
7503
7452
  }) {
7504
- return /* @__PURE__ */ jsxs28(
7453
+ return /* @__PURE__ */ jsxs27(
7505
7454
  SelectPrimitive.Item,
7506
7455
  {
7507
7456
  "data-slot": "select-item",
7508
- className: cn46(
7457
+ className: cn45(
7509
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",
7510
7459
  className
7511
7460
  ),
7512
7461
  ...props,
7513
7462
  children: [
7514
- /* @__PURE__ */ jsx48(SelectPrimitive.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
7515
- /* @__PURE__ */ jsx48(
7463
+ /* @__PURE__ */ jsx47(SelectPrimitive.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
7464
+ /* @__PURE__ */ jsx47(
7516
7465
  SelectPrimitive.ItemIndicator,
7517
7466
  {
7518
- render: /* @__PURE__ */ jsx48("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
7519
- 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" })
7520
7469
  }
7521
7470
  )
7522
7471
  ]
@@ -7527,11 +7476,11 @@ function SelectSeparator({
7527
7476
  className,
7528
7477
  ...props
7529
7478
  }) {
7530
- return /* @__PURE__ */ jsx48(
7479
+ return /* @__PURE__ */ jsx47(
7531
7480
  SelectPrimitive.Separator,
7532
7481
  {
7533
7482
  "data-slot": "select-separator",
7534
- 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),
7535
7484
  ...props
7536
7485
  }
7537
7486
  );
@@ -7540,16 +7489,16 @@ function SelectScrollUpButton({
7540
7489
  className,
7541
7490
  ...props
7542
7491
  }) {
7543
- return /* @__PURE__ */ jsx48(
7492
+ return /* @__PURE__ */ jsx47(
7544
7493
  SelectPrimitive.ScrollUpArrow,
7545
7494
  {
7546
7495
  "data-slot": "select-scroll-up-button",
7547
- className: cn46(
7496
+ className: cn45(
7548
7497
  "top-0 z-10 flex w-full cursor-default items-center justify-center bg-background py-1 [&_svg:not([class*='size-'])]:size-4",
7549
7498
  className
7550
7499
  ),
7551
7500
  ...props,
7552
- children: /* @__PURE__ */ jsx48(ChevronUp2, {})
7501
+ children: /* @__PURE__ */ jsx47(ChevronUp2, {})
7553
7502
  }
7554
7503
  );
7555
7504
  }
@@ -7557,16 +7506,16 @@ function SelectScrollDownButton({
7557
7506
  className,
7558
7507
  ...props
7559
7508
  }) {
7560
- return /* @__PURE__ */ jsx48(
7509
+ return /* @__PURE__ */ jsx47(
7561
7510
  SelectPrimitive.ScrollDownArrow,
7562
7511
  {
7563
7512
  "data-slot": "select-scroll-down-button",
7564
- className: cn46(
7513
+ className: cn45(
7565
7514
  "bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-background py-1 [&_svg:not([class*='size-'])]:size-4",
7566
7515
  className
7567
7516
  ),
7568
7517
  ...props,
7569
- children: /* @__PURE__ */ jsx48(ChevronDown3, {})
7518
+ children: /* @__PURE__ */ jsx47(ChevronDown3, {})
7570
7519
  }
7571
7520
  );
7572
7521
  }
@@ -7576,8 +7525,8 @@ import {
7576
7525
  forwardRef as forwardRef5,
7577
7526
  useLayoutEffect as useLayoutEffect2
7578
7527
  } from "react";
7579
- import { cn as cn47 } from "cn";
7580
- import { jsx as jsx49 } from "react/jsx-runtime";
7528
+ import { cn as cn46 } from "cn";
7529
+ import { jsx as jsx48 } from "react/jsx-runtime";
7581
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)]";
7582
7531
  var STYLE_ID = "iconiq-skeleton-styles";
7583
7532
  var SKELETON_CSS = `
@@ -7698,10 +7647,10 @@ var Skeleton = forwardRef5(function Skeleton2({
7698
7647
  ...style,
7699
7648
  "--iconiq-skeleton-duration": `${variantDuration}s`
7700
7649
  } : style;
7701
- return /* @__PURE__ */ jsx49(
7650
+ return /* @__PURE__ */ jsx48(
7702
7651
  "div",
7703
7652
  {
7704
- className: cn47(
7653
+ className: cn46(
7705
7654
  componentThemeClassName,
7706
7655
  "iconiq-skeleton-surface relative block h-4 w-full overflow-hidden",
7707
7656
  showFade && "iconiq-skeleton-fade-root",
@@ -7712,7 +7661,7 @@ var Skeleton = forwardRef5(function Skeleton2({
7712
7661
  style: animatedStyle,
7713
7662
  ...resolveSkeletonA11yProps({ animate: animate2, decorative, label }),
7714
7663
  ...props,
7715
- children: showShimmer ? /* @__PURE__ */ jsx49(
7664
+ children: showShimmer ? /* @__PURE__ */ jsx48(
7716
7665
  "span",
7717
7666
  {
7718
7667
  "aria-hidden": "true",
@@ -7727,10 +7676,10 @@ function SkeletonAvatar({
7727
7676
  className,
7728
7677
  ...props
7729
7678
  }) {
7730
- return /* @__PURE__ */ jsx49(
7679
+ return /* @__PURE__ */ jsx48(
7731
7680
  Skeleton,
7732
7681
  {
7733
- className: cn47("size-10", className),
7682
+ className: cn46("size-10", className),
7734
7683
  decorative: true,
7735
7684
  rounded: "full",
7736
7685
  ...props
@@ -7738,16 +7687,16 @@ function SkeletonAvatar({
7738
7687
  );
7739
7688
  }
7740
7689
  function SkeletonText({ className, ...props }) {
7741
- 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 });
7742
7691
  }
7743
7692
  function SkeletonButton({
7744
7693
  className,
7745
7694
  ...props
7746
7695
  }) {
7747
- return /* @__PURE__ */ jsx49(
7696
+ return /* @__PURE__ */ jsx48(
7748
7697
  Skeleton,
7749
7698
  {
7750
- className: cn47("h-9 w-24", className),
7699
+ className: cn46("h-9 w-24", className),
7751
7700
  decorative: true,
7752
7701
  rounded: "lg",
7753
7702
  ...props
@@ -7759,11 +7708,11 @@ var ShimmerSkeleton = Skeleton;
7759
7708
  // src/ui/sonner.tsx
7760
7709
  import { GooeyToaster } from "goey-toast";
7761
7710
  import { useTheme as useTheme2 } from "next-themes";
7762
- import { jsx as jsx50 } from "react/jsx-runtime";
7711
+ import { jsx as jsx49 } from "react/jsx-runtime";
7763
7712
  var Toaster = ({ closeButton = "top-left", ...props }) => {
7764
7713
  const { theme = "system" } = useTheme2();
7765
7714
  const toasterTheme = theme === "dark" ? "dark" : "light";
7766
- return /* @__PURE__ */ jsx50(
7715
+ return /* @__PURE__ */ jsx49(
7767
7716
  GooeyToaster,
7768
7717
  {
7769
7718
  theme: toasterTheme,
@@ -7805,7 +7754,7 @@ import {
7805
7754
  import { CSS } from "@dnd-kit/utilities";
7806
7755
  import * as React16 from "react";
7807
7756
  import * as ReactDOM from "react-dom";
7808
- import { cn as cn48 } from "cn";
7757
+ import { cn as cn47 } from "cn";
7809
7758
 
7810
7759
  // src/hooks/use-isomorphic-layout-effect.ts
7811
7760
  import * as React14 from "react";
@@ -7850,7 +7799,7 @@ function useComposedRefs(...refs) {
7850
7799
  }
7851
7800
 
7852
7801
  // src/ui/sortable.tsx
7853
- import { jsx as jsx51 } from "react/jsx-runtime";
7802
+ import { jsx as jsx50 } from "react/jsx-runtime";
7854
7803
  var orientationConfig = {
7855
7804
  vertical: {
7856
7805
  modifiers: [restrictToVerticalAxis, restrictToParentElement],
@@ -8035,11 +7984,11 @@ function Sortable(props) {
8035
7984
  flatCursor
8036
7985
  ]
8037
7986
  );
8038
- return /* @__PURE__ */ jsx51(
7987
+ return /* @__PURE__ */ jsx50(
8039
7988
  SortableRootContext.Provider,
8040
7989
  {
8041
7990
  value: contextValue,
8042
- children: /* @__PURE__ */ jsx51(
7991
+ children: /* @__PURE__ */ jsx50(
8043
7992
  DndContext,
8044
7993
  {
8045
7994
  collisionDetection: collisionDetection ?? config.collisionDetection,
@@ -8088,7 +8037,7 @@ function SortableContent(props) {
8088
8037
  },
8089
8038
  enabled: !withoutSlot
8090
8039
  });
8091
- return /* @__PURE__ */ jsx51(SortableContentContext.Provider, { value: true, children: /* @__PURE__ */ jsx51(
8040
+ return /* @__PURE__ */ jsx50(SortableContentContext.Provider, { value: true, children: /* @__PURE__ */ jsx50(
8092
8041
  SortableContext,
8093
8042
  {
8094
8043
  items: context.items,
@@ -8172,7 +8121,7 @@ function SortableItem(props) {
8172
8121
  id,
8173
8122
  ref: composedRef,
8174
8123
  style: composedStyle,
8175
- className: cn48(
8124
+ className: cn47(
8176
8125
  "focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:outline-hidden",
8177
8126
  {
8178
8127
  "touch-none select-none": asHandle,
@@ -8195,7 +8144,7 @@ function SortableItem(props) {
8195
8144
  ...isDragging && { dragging: "" }
8196
8145
  }
8197
8146
  });
8198
- return /* @__PURE__ */ jsx51(SortableItemContext.Provider, { value: itemContext, children: element });
8147
+ return /* @__PURE__ */ jsx50(SortableItemContext.Provider, { value: itemContext, children: element });
8199
8148
  }
8200
8149
  function SortableItemHandle(props) {
8201
8150
  const { disabled, className, render, ref, ...itemHandleProps } = props;
@@ -8220,7 +8169,7 @@ function SortableItemHandle(props) {
8220
8169
  "aria-controls": itemContext.id,
8221
8170
  ref: composedRef,
8222
8171
  disabled: isDisabled,
8223
- className: cn48(
8172
+ className: cn47(
8224
8173
  "select-none disabled:pointer-events-none disabled:opacity-50",
8225
8174
  context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
8226
8175
  className
@@ -8255,14 +8204,14 @@ function SortableOverlay(props) {
8255
8204
  const container = containerProp ?? (mounted ? globalThis.document?.body : null);
8256
8205
  if (!container) return null;
8257
8206
  return ReactDOM.createPortal(
8258
- /* @__PURE__ */ jsx51(
8207
+ /* @__PURE__ */ jsx50(
8259
8208
  DragOverlay,
8260
8209
  {
8261
8210
  dropAnimation,
8262
8211
  modifiers: context.modifiers,
8263
- className: cn48(!context.flatCursor && "cursor-grabbing"),
8212
+ className: cn47(!context.flatCursor && "cursor-grabbing"),
8264
8213
  ...overlayProps,
8265
- 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 })
8266
8215
  }
8267
8216
  ),
8268
8217
  container
@@ -8271,24 +8220,24 @@ function SortableOverlay(props) {
8271
8220
 
8272
8221
  // src/ui/switch.tsx
8273
8222
  import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
8274
- import { cn as cn49 } from "cn";
8275
- import { jsx as jsx52 } from "react/jsx-runtime";
8223
+ import { cn as cn48 } from "cn";
8224
+ import { jsx as jsx51 } from "react/jsx-runtime";
8276
8225
  function Switch({
8277
8226
  className,
8278
8227
  size = "default",
8279
8228
  ...props
8280
8229
  }) {
8281
- return /* @__PURE__ */ jsx52(
8230
+ return /* @__PURE__ */ jsx51(
8282
8231
  SwitchPrimitive.Root,
8283
8232
  {
8284
8233
  "data-slot": "switch",
8285
8234
  "data-size": size,
8286
- className: cn49(
8235
+ className: cn48(
8287
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",
8288
8237
  className
8289
8238
  ),
8290
8239
  ...props,
8291
- children: /* @__PURE__ */ jsx52(
8240
+ children: /* @__PURE__ */ jsx51(
8292
8241
  SwitchPrimitive.Thumb,
8293
8242
  {
8294
8243
  "data-slot": "switch-thumb",
@@ -8300,11 +8249,11 @@ function Switch({
8300
8249
  }
8301
8250
 
8302
8251
  // src/ui/theme-toggle.tsx
8303
- import { cn as cn50 } from "cn";
8252
+ import { cn as cn49 } from "cn";
8304
8253
  import { motion as motion8, useReducedMotion as useReducedMotion3 } from "motion/react";
8305
8254
  import { useTheme as useTheme3 } from "next-themes";
8306
8255
  import { useId as useId7 } from "react";
8307
- import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
8256
+ import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
8308
8257
  var MORPH = { type: "spring", visualDuration: 0.4, bounce: 0 };
8309
8258
  var RAY_STAGGER = 0.018;
8310
8259
  var EASE_OUT3 = [0.23, 1, 0.32, 1];
@@ -8335,14 +8284,14 @@ function ThemeToggle({
8335
8284
  const activeVariant = variant ?? "ghost";
8336
8285
  const maskId = `moon-${useId7().replace(/[^\w-]/g, "")}`;
8337
8286
  const morph = reduceMotion ? { duration: 0 } : MORPH;
8338
- return /* @__PURE__ */ jsx53(
8287
+ return /* @__PURE__ */ jsx52(
8339
8288
  "button",
8340
8289
  {
8341
8290
  type: "button",
8342
8291
  "aria-label": "Toggle theme",
8343
8292
  "aria-pressed": dark,
8344
8293
  onClick: () => setTheme(dark ? "light" : "dark"),
8345
- className: cn50(
8294
+ className: cn49(
8346
8295
  buttonVariants({ variant: activeVariant }),
8347
8296
  "shadow-raised relative touch-manipulation rounded-full outline-hidden select-none",
8348
8297
  "transition-[scale,background-color] duration-150 ease-out active:scale-[0.96] motion-reduce:transition-[background-color]",
@@ -8353,7 +8302,7 @@ function ThemeToggle({
8353
8302
  size === "lg" && "size-9",
8354
8303
  className
8355
8304
  ),
8356
- children: /* @__PURE__ */ jsxs29(
8305
+ children: /* @__PURE__ */ jsxs28(
8357
8306
  motion8.svg,
8358
8307
  {
8359
8308
  "aria-hidden": true,
@@ -8363,7 +8312,7 @@ function ThemeToggle({
8363
8312
  animate: { rotate: dark ? MOON_TILT : 0 },
8364
8313
  transition: morph,
8365
8314
  children: [
8366
- /* @__PURE__ */ jsx53("defs", { children: /* @__PURE__ */ jsxs29(
8315
+ /* @__PURE__ */ jsx52("defs", { children: /* @__PURE__ */ jsxs28(
8367
8316
  "mask",
8368
8317
  {
8369
8318
  id: maskId,
@@ -8373,8 +8322,8 @@ function ThemeToggle({
8373
8322
  width: "24",
8374
8323
  height: "24",
8375
8324
  children: [
8376
- /* @__PURE__ */ jsx53("rect", { width: "24", height: "24", fill: "white" }),
8377
- /* @__PURE__ */ jsx53(
8325
+ /* @__PURE__ */ jsx52("rect", { width: "24", height: "24", fill: "white" }),
8326
+ /* @__PURE__ */ jsx52(
8378
8327
  motion8.circle,
8379
8328
  {
8380
8329
  r: BITE_R,
@@ -8387,7 +8336,7 @@ function ThemeToggle({
8387
8336
  ]
8388
8337
  }
8389
8338
  ) }),
8390
- /* @__PURE__ */ jsx53(
8339
+ /* @__PURE__ */ jsx52(
8391
8340
  motion8.circle,
8392
8341
  {
8393
8342
  cx: "12",
@@ -8399,10 +8348,10 @@ function ThemeToggle({
8399
8348
  transition: morph
8400
8349
  }
8401
8350
  ),
8402
- /* @__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) => {
8403
8352
  const { inner, outer } = dark ? RAY_IN : RAY_OUT;
8404
8353
  const delay = reduceMotion ? 0 : dark ? i * RAY_STAGGER : 0.06 + (RAYS.length - 1 - i) * RAY_STAGGER;
8405
- return /* @__PURE__ */ jsx53(
8354
+ return /* @__PURE__ */ jsx52(
8406
8355
  motion8.line,
8407
8356
  {
8408
8357
  initial: false,
@@ -8692,7 +8641,7 @@ export {
8692
8641
  Textarea,
8693
8642
  ThemeToggle,
8694
8643
  Toaster,
8695
- Tooltip2 as Tooltip,
8644
+ Tooltip,
8696
8645
  TooltipContent,
8697
8646
  TooltipProvider,
8698
8647
  TooltipTrigger,