rockin 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -3
- package/dist/{chunk-5LE4X3CW.js → chunk-5QSYZSVL.js} +7 -1
- package/dist/chunk-7ZCRGTLA.js +209 -0
- package/dist/chunk-FYFBWCMJ.js +65 -0
- package/dist/{chunk-BDQJCK4S.js → chunk-M5NHRP6W.js} +1 -5
- package/dist/chunk-RT2YVQ2Y.js +33 -0
- package/dist/hooks/index.d.ts +5 -1
- package/dist/hooks/index.js +7 -14
- package/dist/icon/index.js +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -2
- package/dist/loader.d.ts +2 -2
- package/dist/provider.d.ts +17 -0
- package/dist/provider.js +13 -0
- package/dist/ui/index.d.ts +10 -1
- package/dist/ui/index.js +392 -397
- package/dist/utils/parms-client.js +1 -1
- package/package.json +10 -4
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-5QSYZSVL.js";
|
|
16
22
|
|
|
17
23
|
// src/ui/accordion.tsx
|
|
18
24
|
import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
|
|
@@ -111,7 +117,7 @@ import { cva } from "class-variance-authority";
|
|
|
111
117
|
import { cn as cn2 } from "cn";
|
|
112
118
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
113
119
|
var buttonVariants = cva(
|
|
114
|
-
"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,opacity,transform] duration-150 ease-[var(--ease-out)] outline-none select-none
|
|
120
|
+
"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,opacity,transform] duration-150 ease-[var(--ease-out)] outline-none select-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 motion-reduce:transition-none dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:opacity-70 [&_svg:not([class*='size-'])]:size-4",
|
|
115
121
|
{
|
|
116
122
|
variants: {
|
|
117
123
|
variant: {
|
|
@@ -1178,7 +1184,7 @@ import { useRender } from "@base-ui/react/use-render";
|
|
|
1178
1184
|
import { cva as cva2 } from "class-variance-authority";
|
|
1179
1185
|
import { cn as cn11 } from "cn";
|
|
1180
1186
|
var badgeVariants = cva2(
|
|
1181
|
-
"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,opacity] duration-150 ease-[var(--ease-out)]
|
|
1187
|
+
"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,opacity] duration-150 ease-[var(--ease-out)] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 motion-reduce:transition-none dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
|
|
1182
1188
|
{
|
|
1183
1189
|
variants: {
|
|
1184
1190
|
variant: {
|
|
@@ -2061,13 +2067,17 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
2061
2067
|
import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
2062
2068
|
import { cn as cn18 } from "cn";
|
|
2063
2069
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
2064
|
-
function Checkbox({
|
|
2070
|
+
function Checkbox({
|
|
2071
|
+
className,
|
|
2072
|
+
children,
|
|
2073
|
+
...props
|
|
2074
|
+
}) {
|
|
2065
2075
|
return /* @__PURE__ */ jsx18(
|
|
2066
2076
|
CheckboxPrimitive.Root,
|
|
2067
2077
|
{
|
|
2068
2078
|
"data-slot": "checkbox",
|
|
2069
2079
|
className: cn18(
|
|
2070
|
-
"peer inline-flex size-5 shrink-0 items-center justify-center rounded border border-border bg-background text-primary
|
|
2080
|
+
"peer inline-flex size-5 shrink-0 items-center justify-center rounded border border-border bg-background text-primary transition-[background-color,border-color,box-shadow,opacity] duration-150 ease-out outline-none focus-visible:ring-2 focus-visible:ring-ring/50 motion-reduce:transition-none data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
2071
2081
|
className
|
|
2072
2082
|
),
|
|
2073
2083
|
...props,
|
|
@@ -4189,69 +4199,10 @@ function KbdGroup({ className, ...props }) {
|
|
|
4189
4199
|
);
|
|
4190
4200
|
}
|
|
4191
4201
|
|
|
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
4202
|
// src/ui/filters.tsx
|
|
4252
|
-
import { cn as
|
|
4203
|
+
import { cn as cn33 } from "cn";
|
|
4253
4204
|
import { AlertCircleIcon, CheckIcon as CheckIcon2, PlusIcon, XIcon } from "lucide-react";
|
|
4254
|
-
import { Fragment as Fragment2, jsx as
|
|
4205
|
+
import { Fragment as Fragment2, jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4255
4206
|
var DEFAULT_I18N = {
|
|
4256
4207
|
// UI Labels
|
|
4257
4208
|
addFilter: "Filter",
|
|
@@ -4417,10 +4368,10 @@ function FilterInput({
|
|
|
4417
4368
|
}
|
|
4418
4369
|
onKeyDown?.(e);
|
|
4419
4370
|
};
|
|
4420
|
-
return /* @__PURE__ */
|
|
4371
|
+
return /* @__PURE__ */ jsxs18(
|
|
4421
4372
|
InputGroup,
|
|
4422
4373
|
{
|
|
4423
|
-
className:
|
|
4374
|
+
className: cn33(
|
|
4424
4375
|
"w-36",
|
|
4425
4376
|
// Height follows each style's own control ladder. `default` sets no
|
|
4426
4377
|
// height on purpose so the style's `.cn-input-group` applies (h-8 nova,
|
|
@@ -4435,8 +4386,8 @@ function FilterInput({
|
|
|
4435
4386
|
className
|
|
4436
4387
|
),
|
|
4437
4388
|
children: [
|
|
4438
|
-
field?.prefix && /* @__PURE__ */
|
|
4439
|
-
/* @__PURE__ */
|
|
4389
|
+
field?.prefix && /* @__PURE__ */ jsx34(InputGroupAddon, { children: /* @__PURE__ */ jsx34(InputGroupText, { children: field.prefix }) }),
|
|
4390
|
+
/* @__PURE__ */ jsx34(
|
|
4440
4391
|
InputGroupInput,
|
|
4441
4392
|
{
|
|
4442
4393
|
ref: inputRef,
|
|
@@ -4444,29 +4395,29 @@ function FilterInput({
|
|
|
4444
4395
|
"aria-describedby": !isValid && validationMessage ? `${field?.key || "input"}-error` : void 0,
|
|
4445
4396
|
onBlur: handleBlur,
|
|
4446
4397
|
onKeyDown: handleKeyDown,
|
|
4447
|
-
className:
|
|
4398
|
+
className: cn33(
|
|
4448
4399
|
context.size == "sm" && "h-7! text-xs",
|
|
4449
4400
|
context.size == "lg" && "h-9!"
|
|
4450
4401
|
),
|
|
4451
4402
|
...props
|
|
4452
4403
|
}
|
|
4453
4404
|
),
|
|
4454
|
-
!isValid && validationMessage && /* @__PURE__ */
|
|
4455
|
-
/* @__PURE__ */
|
|
4456
|
-
/* @__PURE__ */
|
|
4405
|
+
!isValid && validationMessage && /* @__PURE__ */ jsx34(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxs18(Tooltip, { children: [
|
|
4406
|
+
/* @__PURE__ */ jsx34(TooltipTrigger, { render: /* @__PURE__ */ jsx34(InputGroupButton, { size: "icon-xs" }), children: /* @__PURE__ */ jsx34(AlertCircleIcon, { className: "size-3.5 text-destructive" }) }),
|
|
4407
|
+
/* @__PURE__ */ jsx34(TooltipContent, { children: /* @__PURE__ */ jsx34("p", { className: "text-sm", children: validationMessage }) })
|
|
4457
4408
|
] }) }),
|
|
4458
|
-
field?.suffix && /* @__PURE__ */
|
|
4409
|
+
field?.suffix && /* @__PURE__ */ jsx34(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsx34(InputGroupText, { children: field.suffix }) })
|
|
4459
4410
|
]
|
|
4460
4411
|
}
|
|
4461
4412
|
);
|
|
4462
4413
|
}
|
|
4463
4414
|
function FilterRemoveButton({
|
|
4464
4415
|
className,
|
|
4465
|
-
icon = /* @__PURE__ */
|
|
4416
|
+
icon = /* @__PURE__ */ jsx34(XIcon, {}),
|
|
4466
4417
|
...props
|
|
4467
4418
|
}) {
|
|
4468
4419
|
const context = useFilterContext();
|
|
4469
|
-
return /* @__PURE__ */
|
|
4420
|
+
return /* @__PURE__ */ jsx34(
|
|
4470
4421
|
Button,
|
|
4471
4422
|
{
|
|
4472
4423
|
variant: "outline",
|
|
@@ -4637,11 +4588,11 @@ function FilterOperatorDropdown({
|
|
|
4637
4588
|
[field, values, context.i18n]
|
|
4638
4589
|
);
|
|
4639
4590
|
const operatorLabel = operators.find((op) => op.value === operator)?.label || context.i18n.helpers.formatOperator(operator);
|
|
4640
|
-
return /* @__PURE__ */
|
|
4641
|
-
/* @__PURE__ */
|
|
4591
|
+
return /* @__PURE__ */ jsxs18(DropdownMenu, { children: [
|
|
4592
|
+
/* @__PURE__ */ jsx34(
|
|
4642
4593
|
DropdownMenuTrigger,
|
|
4643
4594
|
{
|
|
4644
|
-
render: /* @__PURE__ */
|
|
4595
|
+
render: /* @__PURE__ */ jsx34(
|
|
4645
4596
|
Button,
|
|
4646
4597
|
{
|
|
4647
4598
|
variant: "outline",
|
|
@@ -4652,19 +4603,19 @@ function FilterOperatorDropdown({
|
|
|
4652
4603
|
)
|
|
4653
4604
|
}
|
|
4654
4605
|
),
|
|
4655
|
-
/* @__PURE__ */
|
|
4606
|
+
/* @__PURE__ */ jsx34(DropdownMenuContent, { align: "start", className: "w-fit min-w-fit", children: operators.map((op) => /* @__PURE__ */ jsxs18(
|
|
4656
4607
|
DropdownMenuItem,
|
|
4657
4608
|
{
|
|
4658
4609
|
onClick: () => onChange(op.value),
|
|
4659
|
-
className:
|
|
4610
|
+
className: cn33(
|
|
4660
4611
|
"flex items-center justify-between data-highlighted:bg-accent data-highlighted:text-accent-foreground"
|
|
4661
4612
|
),
|
|
4662
4613
|
children: [
|
|
4663
|
-
/* @__PURE__ */
|
|
4664
|
-
/* @__PURE__ */
|
|
4614
|
+
/* @__PURE__ */ jsx34("span", { children: op.label }),
|
|
4615
|
+
/* @__PURE__ */ jsx34(
|
|
4665
4616
|
CheckIcon2,
|
|
4666
4617
|
{
|
|
4667
|
-
className:
|
|
4618
|
+
className: cn33(
|
|
4668
4619
|
"ms-auto text-primary",
|
|
4669
4620
|
op.value === operator ? "opacity-100" : "opacity-0"
|
|
4670
4621
|
)
|
|
@@ -4745,7 +4696,7 @@ function SelectOptionsPopover({
|
|
|
4745
4696
|
const isSelected = effectiveValues.includes(option.value);
|
|
4746
4697
|
const isHighlighted = highlightedIndex === overallIndex;
|
|
4747
4698
|
const itemId = `${baseId}-item-${overallIndex}`;
|
|
4748
|
-
return /* @__PURE__ */
|
|
4699
|
+
return /* @__PURE__ */ jsxs18(
|
|
4749
4700
|
DropdownMenuCheckboxItem,
|
|
4750
4701
|
{
|
|
4751
4702
|
id: itemId,
|
|
@@ -4754,7 +4705,7 @@ function SelectOptionsPopover({
|
|
|
4754
4705
|
"data-highlighted": isHighlighted || void 0,
|
|
4755
4706
|
onMouseEnter: () => setHighlightedIndex(overallIndex),
|
|
4756
4707
|
checked: isSelected,
|
|
4757
|
-
className:
|
|
4708
|
+
className: cn33(
|
|
4758
4709
|
"data-highlighted:bg-accent data-highlighted:text-accent-foreground",
|
|
4759
4710
|
option.className
|
|
4760
4711
|
),
|
|
@@ -4764,15 +4715,15 @@ function SelectOptionsPopover({
|
|
|
4764
4715
|
onCheckedChange: () => toggleOption(option),
|
|
4765
4716
|
children: [
|
|
4766
4717
|
option.icon && option.icon,
|
|
4767
|
-
/* @__PURE__ */
|
|
4718
|
+
/* @__PURE__ */ jsx34("span", { className: "truncate", children: option.label })
|
|
4768
4719
|
]
|
|
4769
4720
|
},
|
|
4770
4721
|
String(option.value)
|
|
4771
4722
|
);
|
|
4772
4723
|
};
|
|
4773
|
-
const renderMenuContent = () => /* @__PURE__ */
|
|
4774
|
-
field.searchable !== false && /* @__PURE__ */
|
|
4775
|
-
/* @__PURE__ */
|
|
4724
|
+
const renderMenuContent = () => /* @__PURE__ */ jsxs18(Fragment2, { children: [
|
|
4725
|
+
field.searchable !== false && /* @__PURE__ */ jsxs18(Fragment2, { children: [
|
|
4726
|
+
/* @__PURE__ */ jsx34(
|
|
4776
4727
|
Input,
|
|
4777
4728
|
{
|
|
4778
4729
|
ref: inputRef,
|
|
@@ -4785,7 +4736,7 @@ function SelectOptionsPopover({
|
|
|
4785
4736
|
placeholder: context.i18n.placeholders.searchField(
|
|
4786
4737
|
field.label || ""
|
|
4787
4738
|
),
|
|
4788
|
-
className:
|
|
4739
|
+
className: cn33(
|
|
4789
4740
|
"h-8 rounded-none border-0 border-input bg-transparent! px-2 text-sm shadow-none",
|
|
4790
4741
|
"focus-visible:border-border focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
4791
4742
|
open && "placeholder:text-foreground"
|
|
@@ -4833,24 +4784,24 @@ function SelectOptionsPopover({
|
|
|
4833
4784
|
}
|
|
4834
4785
|
}
|
|
4835
4786
|
),
|
|
4836
|
-
/* @__PURE__ */
|
|
4787
|
+
/* @__PURE__ */ jsx34(DropdownMenuSeparator, {})
|
|
4837
4788
|
] }),
|
|
4838
|
-
/* @__PURE__ */
|
|
4789
|
+
/* @__PURE__ */ jsx34("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx34(
|
|
4839
4790
|
"div",
|
|
4840
4791
|
{
|
|
4841
4792
|
className: "flex max-h-[min(var(--available-height),24rem)] w-full scroll-pt-2 scroll-pb-2 flex-col overscroll-contain",
|
|
4842
4793
|
role: "listbox",
|
|
4843
4794
|
id: `${baseId}-listbox`,
|
|
4844
|
-
children: isAsync && loading && allFilteredOptions.length === 0 ? /* @__PURE__ */
|
|
4795
|
+
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
4796
|
options: allFilteredOptions,
|
|
4846
4797
|
highlightedIndex,
|
|
4847
4798
|
renderOption: renderOptionItem
|
|
4848
|
-
}) : /* @__PURE__ */
|
|
4849
|
-
filteredSelectedOptions.length > 0 && /* @__PURE__ */
|
|
4799
|
+
}) : /* @__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: [
|
|
4800
|
+
filteredSelectedOptions.length > 0 && /* @__PURE__ */ jsx34(DropdownMenuGroup, { className: "px-1", children: filteredSelectedOptions.map(
|
|
4850
4801
|
(option, index) => renderOptionItem(option, index)
|
|
4851
4802
|
) }),
|
|
4852
|
-
filteredSelectedOptions.length > 0 && filteredUnselectedOptions.length > 0 && /* @__PURE__ */
|
|
4853
|
-
filteredUnselectedOptions.length > 0 && /* @__PURE__ */
|
|
4803
|
+
filteredSelectedOptions.length > 0 && filteredUnselectedOptions.length > 0 && /* @__PURE__ */ jsx34(DropdownMenuSeparator, { className: "mx-0" }),
|
|
4804
|
+
filteredUnselectedOptions.length > 0 && /* @__PURE__ */ jsx34(DropdownMenuGroup, { className: "px-1", children: filteredUnselectedOptions.map(
|
|
4854
4805
|
(option, index) => renderOptionItem(
|
|
4855
4806
|
option,
|
|
4856
4807
|
index + filteredSelectedOptions.length
|
|
@@ -4861,9 +4812,9 @@ function SelectOptionsPopover({
|
|
|
4861
4812
|
) })
|
|
4862
4813
|
] });
|
|
4863
4814
|
if (inline) {
|
|
4864
|
-
return /* @__PURE__ */
|
|
4815
|
+
return /* @__PURE__ */ jsx34("div", { className: "w-full", children: renderMenuContent() });
|
|
4865
4816
|
}
|
|
4866
|
-
return /* @__PURE__ */
|
|
4817
|
+
return /* @__PURE__ */ jsxs18(
|
|
4867
4818
|
DropdownMenu,
|
|
4868
4819
|
{
|
|
4869
4820
|
open,
|
|
@@ -4874,23 +4825,23 @@ function SelectOptionsPopover({
|
|
|
4874
4825
|
}
|
|
4875
4826
|
},
|
|
4876
4827
|
children: [
|
|
4877
|
-
/* @__PURE__ */
|
|
4828
|
+
/* @__PURE__ */ jsx34(
|
|
4878
4829
|
DropdownMenuTrigger,
|
|
4879
4830
|
{
|
|
4880
|
-
render: /* @__PURE__ */
|
|
4831
|
+
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
4832
|
values,
|
|
4882
4833
|
isAsync ? resolveSelected(values) : field.options || []
|
|
4883
|
-
) : /* @__PURE__ */
|
|
4884
|
-
selectedOptions.length > 0 && /* @__PURE__ */
|
|
4834
|
+
) : /* @__PURE__ */ jsxs18(Fragment2, { children: [
|
|
4835
|
+
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
4836
|
selectedOptions.length === 1 ? selectedOptions[0].label : selectedOptions.length > 1 ? `${selectedOptions.length} ${context.i18n.selectedCount}` : context.i18n.select
|
|
4886
4837
|
] }) }) })
|
|
4887
4838
|
}
|
|
4888
4839
|
),
|
|
4889
|
-
/* @__PURE__ */
|
|
4840
|
+
/* @__PURE__ */ jsx34(
|
|
4890
4841
|
DropdownMenuContent,
|
|
4891
4842
|
{
|
|
4892
4843
|
align: "start",
|
|
4893
|
-
className:
|
|
4844
|
+
className: cn33("w-50 px-0", field.className),
|
|
4894
4845
|
children: renderMenuContent()
|
|
4895
4846
|
}
|
|
4896
4847
|
)
|
|
@@ -4909,10 +4860,10 @@ function FilterValueSelector({
|
|
|
4909
4860
|
return null;
|
|
4910
4861
|
}
|
|
4911
4862
|
if (field.customRenderer) {
|
|
4912
|
-
return /* @__PURE__ */
|
|
4863
|
+
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
4864
|
}
|
|
4914
4865
|
if (field.type === "text") {
|
|
4915
|
-
return /* @__PURE__ */
|
|
4866
|
+
return /* @__PURE__ */ jsx34(
|
|
4916
4867
|
FilterInput,
|
|
4917
4868
|
{
|
|
4918
4869
|
type: "text",
|
|
@@ -4921,15 +4872,15 @@ function FilterValueSelector({
|
|
|
4921
4872
|
placeholder: field.placeholder,
|
|
4922
4873
|
pattern: field.pattern,
|
|
4923
4874
|
field,
|
|
4924
|
-
className:
|
|
4875
|
+
className: cn33("w-36", field.className),
|
|
4925
4876
|
autoFocus
|
|
4926
4877
|
}
|
|
4927
4878
|
);
|
|
4928
4879
|
}
|
|
4929
4880
|
if (field.type === "select" || field.type === "multiselect") {
|
|
4930
|
-
return /* @__PURE__ */
|
|
4881
|
+
return /* @__PURE__ */ jsx34(SelectOptionsPopover, { field, values, onChange });
|
|
4931
4882
|
}
|
|
4932
|
-
return /* @__PURE__ */
|
|
4883
|
+
return /* @__PURE__ */ jsx34(SelectOptionsPopover, { field, values, onChange });
|
|
4933
4884
|
}
|
|
4934
4885
|
var FiltersContent = ({
|
|
4935
4886
|
filters,
|
|
@@ -4961,10 +4912,10 @@ var FiltersContent = ({
|
|
|
4961
4912
|
},
|
|
4962
4913
|
[filters, onChange]
|
|
4963
4914
|
);
|
|
4964
|
-
return /* @__PURE__ */
|
|
4915
|
+
return /* @__PURE__ */ jsx34(
|
|
4965
4916
|
"div",
|
|
4966
4917
|
{
|
|
4967
|
-
className:
|
|
4918
|
+
className: cn33(
|
|
4968
4919
|
filtersContainerVariants({
|
|
4969
4920
|
variant: context.variant,
|
|
4970
4921
|
size: context.size
|
|
@@ -4974,16 +4925,16 @@ var FiltersContent = ({
|
|
|
4974
4925
|
children: filters.map((filter) => {
|
|
4975
4926
|
const field = fieldsMap[filter.field];
|
|
4976
4927
|
if (!field) return null;
|
|
4977
|
-
return /* @__PURE__ */
|
|
4928
|
+
return /* @__PURE__ */ jsxs18(
|
|
4978
4929
|
ButtonGroup,
|
|
4979
4930
|
{
|
|
4980
4931
|
className: "",
|
|
4981
4932
|
children: [
|
|
4982
|
-
/* @__PURE__ */
|
|
4933
|
+
/* @__PURE__ */ jsxs18(ButtonGroupText, { children: [
|
|
4983
4934
|
field.icon && field.icon,
|
|
4984
4935
|
field.label
|
|
4985
4936
|
] }),
|
|
4986
|
-
/* @__PURE__ */
|
|
4937
|
+
/* @__PURE__ */ jsx34(
|
|
4987
4938
|
FilterOperatorDropdown,
|
|
4988
4939
|
{
|
|
4989
4940
|
field,
|
|
@@ -4992,7 +4943,7 @@ var FiltersContent = ({
|
|
|
4992
4943
|
onChange: (operator) => updateFilter(filter.id, { operator })
|
|
4993
4944
|
}
|
|
4994
4945
|
),
|
|
4995
|
-
/* @__PURE__ */
|
|
4946
|
+
/* @__PURE__ */ jsx34(
|
|
4996
4947
|
FilterValueSelector,
|
|
4997
4948
|
{
|
|
4998
4949
|
field,
|
|
@@ -5002,7 +4953,7 @@ var FiltersContent = ({
|
|
|
5002
4953
|
autoFocus: false
|
|
5003
4954
|
}
|
|
5004
4955
|
),
|
|
5005
|
-
/* @__PURE__ */
|
|
4956
|
+
/* @__PURE__ */ jsx34(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
|
|
5006
4957
|
]
|
|
5007
4958
|
},
|
|
5008
4959
|
filter.id
|
|
@@ -5080,7 +5031,7 @@ function FilterSubmenuContent({
|
|
|
5080
5031
|
const isSelected = currentValues.includes(option.value);
|
|
5081
5032
|
const isHighlighted = highlightedIndex === index;
|
|
5082
5033
|
const itemId = `${baseId}-item-${index}`;
|
|
5083
|
-
return /* @__PURE__ */
|
|
5034
|
+
return /* @__PURE__ */ jsxs18(
|
|
5084
5035
|
DropdownMenuCheckboxItem,
|
|
5085
5036
|
{
|
|
5086
5037
|
id: itemId,
|
|
@@ -5089,7 +5040,7 @@ function FilterSubmenuContent({
|
|
|
5089
5040
|
"data-highlighted": isHighlighted || void 0,
|
|
5090
5041
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
5091
5042
|
checked: isSelected,
|
|
5092
|
-
className:
|
|
5043
|
+
className: cn33(
|
|
5093
5044
|
"data-highlighted:bg-accent data-highlighted:text-accent-foreground",
|
|
5094
5045
|
option.className
|
|
5095
5046
|
),
|
|
@@ -5099,7 +5050,7 @@ function FilterSubmenuContent({
|
|
|
5099
5050
|
onCheckedChange: () => onToggle(option.value, isSelected),
|
|
5100
5051
|
children: [
|
|
5101
5052
|
option.icon && option.icon,
|
|
5102
|
-
/* @__PURE__ */
|
|
5053
|
+
/* @__PURE__ */ jsx34("span", { className: "truncate", children: option.label })
|
|
5103
5054
|
]
|
|
5104
5055
|
},
|
|
5105
5056
|
String(option.value)
|
|
@@ -5110,9 +5061,9 @@ function FilterSubmenuContent({
|
|
|
5110
5061
|
setHighlightedIndex(0);
|
|
5111
5062
|
}
|
|
5112
5063
|
}, [isActive, filteredOptions.length]);
|
|
5113
|
-
return /* @__PURE__ */
|
|
5114
|
-
field.searchable !== false && /* @__PURE__ */
|
|
5115
|
-
/* @__PURE__ */
|
|
5064
|
+
return /* @__PURE__ */ jsxs18("div", { className: "flex flex-col", onMouseEnter: onActive, children: [
|
|
5065
|
+
field.searchable !== false && /* @__PURE__ */ jsxs18(Fragment2, { children: [
|
|
5066
|
+
/* @__PURE__ */ jsx34(
|
|
5116
5067
|
Input,
|
|
5117
5068
|
{
|
|
5118
5069
|
ref: inputRef,
|
|
@@ -5123,7 +5074,7 @@ function FilterSubmenuContent({
|
|
|
5123
5074
|
"aria-controls": `${baseId}-listbox`,
|
|
5124
5075
|
"aria-activedescendant": highlightedIndex >= 0 ? `${baseId}-item-${highlightedIndex}` : void 0,
|
|
5125
5076
|
placeholder: i18n.placeholders.searchField(field.label || ""),
|
|
5126
|
-
className:
|
|
5077
|
+
className: cn33(
|
|
5127
5078
|
"h-8 rounded-none border-0 bg-transparent! px-2 text-sm shadow-none",
|
|
5128
5079
|
"focus-visible:border-border focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
5129
5080
|
isActive && "placeholder:text-foreground"
|
|
@@ -5175,9 +5126,9 @@ function FilterSubmenuContent({
|
|
|
5175
5126
|
}
|
|
5176
5127
|
}
|
|
5177
5128
|
),
|
|
5178
|
-
/* @__PURE__ */
|
|
5129
|
+
/* @__PURE__ */ jsx34(DropdownMenuSeparator, {})
|
|
5179
5130
|
] }),
|
|
5180
|
-
/* @__PURE__ */
|
|
5131
|
+
/* @__PURE__ */ jsx34("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx34(
|
|
5181
5132
|
"div",
|
|
5182
5133
|
{
|
|
5183
5134
|
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 +5173,11 @@ function FilterSubmenuContent({
|
|
|
5222
5173
|
e.stopPropagation();
|
|
5223
5174
|
}
|
|
5224
5175
|
},
|
|
5225
|
-
children: isAsync && loading && filteredOptions.length === 0 ? /* @__PURE__ */
|
|
5176
|
+
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
5177
|
options: filteredOptions,
|
|
5227
5178
|
highlightedIndex,
|
|
5228
5179
|
renderOption: renderOptionItem
|
|
5229
|
-
}) : /* @__PURE__ */
|
|
5180
|
+
}) : /* @__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
5181
|
(option, index) => renderOptionItem(option, index)
|
|
5231
5182
|
) }) })
|
|
5232
5183
|
}
|
|
@@ -5373,8 +5324,8 @@ function Filters({
|
|
|
5373
5324
|
}
|
|
5374
5325
|
}, [addFilterOpen, filteredFields.length]);
|
|
5375
5326
|
const triggerButton = useRender4({
|
|
5376
|
-
render: trigger ?? /* @__PURE__ */
|
|
5377
|
-
/* @__PURE__ */
|
|
5327
|
+
render: trigger ?? /* @__PURE__ */ jsxs18(Button, { variant: "outline", children: [
|
|
5328
|
+
/* @__PURE__ */ jsx34(PlusIcon, {}),
|
|
5378
5329
|
mergedI18n.addFilter
|
|
5379
5330
|
] }),
|
|
5380
5331
|
defaultTagName: "button"
|
|
@@ -5391,12 +5342,12 @@ function Filters({
|
|
|
5391
5342
|
}),
|
|
5392
5343
|
[variant, size, radius, mergedI18n, className, trigger, allowMultiple]
|
|
5393
5344
|
);
|
|
5394
|
-
return /* @__PURE__ */
|
|
5345
|
+
return /* @__PURE__ */ jsx34(FilterContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs18(
|
|
5395
5346
|
"div",
|
|
5396
5347
|
{
|
|
5397
|
-
className:
|
|
5348
|
+
className: cn33(filtersContainerVariants({ variant, size }), className),
|
|
5398
5349
|
children: [
|
|
5399
|
-
selectableFields.length > 0 && /* @__PURE__ */
|
|
5350
|
+
selectableFields.length > 0 && /* @__PURE__ */ jsxs18(
|
|
5400
5351
|
DropdownMenu,
|
|
5401
5352
|
{
|
|
5402
5353
|
open: addFilterOpen,
|
|
@@ -5410,16 +5361,16 @@ function Filters({
|
|
|
5410
5361
|
}
|
|
5411
5362
|
},
|
|
5412
5363
|
children: [
|
|
5413
|
-
/* @__PURE__ */
|
|
5414
|
-
/* @__PURE__ */
|
|
5364
|
+
/* @__PURE__ */ jsx34(DropdownMenuTrigger, { render: triggerButton }),
|
|
5365
|
+
/* @__PURE__ */ jsxs18(
|
|
5415
5366
|
DropdownMenuContent,
|
|
5416
5367
|
{
|
|
5417
|
-
className:
|
|
5368
|
+
className: cn33("w-55", menuPopupClassName),
|
|
5418
5369
|
align: "start",
|
|
5419
5370
|
children: [
|
|
5420
|
-
showSearchInput && /* @__PURE__ */
|
|
5421
|
-
/* @__PURE__ */
|
|
5422
|
-
/* @__PURE__ */
|
|
5371
|
+
showSearchInput && /* @__PURE__ */ jsxs18(Fragment2, { children: [
|
|
5372
|
+
/* @__PURE__ */ jsxs18("div", { className: "relative", children: [
|
|
5373
|
+
/* @__PURE__ */ jsx34(
|
|
5423
5374
|
Input,
|
|
5424
5375
|
{
|
|
5425
5376
|
ref: rootInputRef,
|
|
@@ -5427,7 +5378,7 @@ function Filters({
|
|
|
5427
5378
|
"aria-controls": `${rootId}-listbox`,
|
|
5428
5379
|
"aria-activedescendant": highlightedIndex >= 0 ? `${rootId}-item-${highlightedIndex}` : void 0,
|
|
5429
5380
|
placeholder: mergedI18n.searchFields,
|
|
5430
|
-
className:
|
|
5381
|
+
className: cn33(
|
|
5431
5382
|
"h-8 rounded-none border-0 bg-transparent! px-2 text-sm shadow-none",
|
|
5432
5383
|
"focus-visible:border-border focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
5433
5384
|
activeMenu === "root" && "placeholder:text-foreground"
|
|
@@ -5491,20 +5442,20 @@ function Filters({
|
|
|
5491
5442
|
}
|
|
5492
5443
|
}
|
|
5493
5444
|
),
|
|
5494
|
-
enableShortcut && shortcutLabel && /* @__PURE__ */
|
|
5445
|
+
enableShortcut && shortcutLabel && /* @__PURE__ */ jsx34(Kbd, { className: "absolute top-1/2 right-2 -translate-y-1/2 border bg-background", children: shortcutLabel })
|
|
5495
5446
|
] }),
|
|
5496
|
-
/* @__PURE__ */
|
|
5447
|
+
/* @__PURE__ */ jsx34(DropdownMenuSeparator, {})
|
|
5497
5448
|
] }),
|
|
5498
|
-
/* @__PURE__ */
|
|
5449
|
+
/* @__PURE__ */ jsx34("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx34(
|
|
5499
5450
|
"div",
|
|
5500
5451
|
{
|
|
5501
5452
|
className: "flex max-h-[min(var(--available-height),24rem)] w-full scroll-pt-2 scroll-pb-2 flex-col overscroll-contain",
|
|
5502
5453
|
role: "listbox",
|
|
5503
5454
|
id: `${rootId}-listbox`,
|
|
5504
5455
|
onMouseEnter: () => setActiveMenu("root"),
|
|
5505
|
-
children: /* @__PURE__ */
|
|
5456
|
+
children: /* @__PURE__ */ jsx34(ScrollArea, { className: "**:data-[slot=scroll-area-scrollbar]:m-0", children: (() => {
|
|
5506
5457
|
if (filteredFields.length === 0) {
|
|
5507
|
-
return /* @__PURE__ */
|
|
5458
|
+
return /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: mergedI18n.noFieldsFound });
|
|
5508
5459
|
}
|
|
5509
5460
|
return filteredFields.map((field, index) => {
|
|
5510
5461
|
const isHighlighted = highlightedIndex === index;
|
|
@@ -5516,7 +5467,7 @@ function Filters({
|
|
|
5516
5467
|
const sessionFilterId = sessionFilterIds[fieldKey];
|
|
5517
5468
|
const sessionFilter = sessionFilterId ? filters.find((f) => f.id === sessionFilterId) : null;
|
|
5518
5469
|
const currentValues = sessionFilter?.values || [];
|
|
5519
|
-
return /* @__PURE__ */
|
|
5470
|
+
return /* @__PURE__ */ jsxs18(
|
|
5520
5471
|
DropdownMenuSub,
|
|
5521
5472
|
{
|
|
5522
5473
|
open: openSubMenu === fieldKey,
|
|
@@ -5531,7 +5482,7 @@ function Filters({
|
|
|
5531
5482
|
}
|
|
5532
5483
|
},
|
|
5533
5484
|
children: [
|
|
5534
|
-
/* @__PURE__ */
|
|
5485
|
+
/* @__PURE__ */ jsxs18(
|
|
5535
5486
|
DropdownMenuSubTrigger,
|
|
5536
5487
|
{
|
|
5537
5488
|
id: itemId,
|
|
@@ -5545,16 +5496,16 @@ function Filters({
|
|
|
5545
5496
|
className: "data-highlighted:bg-accent data-highlighted:text-accent-foreground data-popup-open:bg-accent data-popup-open:text-accent-foreground",
|
|
5546
5497
|
children: [
|
|
5547
5498
|
field.icon,
|
|
5548
|
-
/* @__PURE__ */
|
|
5499
|
+
/* @__PURE__ */ jsx34("span", { children: field.label })
|
|
5549
5500
|
]
|
|
5550
5501
|
}
|
|
5551
5502
|
),
|
|
5552
|
-
/* @__PURE__ */
|
|
5503
|
+
/* @__PURE__ */ jsx34(
|
|
5553
5504
|
DropdownMenuSubContent,
|
|
5554
5505
|
{
|
|
5555
5506
|
className: "w-50",
|
|
5556
5507
|
side: "right",
|
|
5557
|
-
children: /* @__PURE__ */
|
|
5508
|
+
children: /* @__PURE__ */ jsx34(
|
|
5558
5509
|
FilterSubmenuContent,
|
|
5559
5510
|
{
|
|
5560
5511
|
field,
|
|
@@ -5627,7 +5578,7 @@ function Filters({
|
|
|
5627
5578
|
fieldKey
|
|
5628
5579
|
);
|
|
5629
5580
|
}
|
|
5630
|
-
return /* @__PURE__ */
|
|
5581
|
+
return /* @__PURE__ */ jsxs18(
|
|
5631
5582
|
DropdownMenuItem,
|
|
5632
5583
|
{
|
|
5633
5584
|
id: itemId,
|
|
@@ -5639,7 +5590,7 @@ function Filters({
|
|
|
5639
5590
|
className: "data-highlighted:bg-accent data-highlighted:text-accent-foreground",
|
|
5640
5591
|
children: [
|
|
5641
5592
|
field.icon,
|
|
5642
|
-
/* @__PURE__ */
|
|
5593
|
+
/* @__PURE__ */ jsx34("span", { children: field.label })
|
|
5643
5594
|
]
|
|
5644
5595
|
},
|
|
5645
5596
|
field.key
|
|
@@ -5657,16 +5608,16 @@ function Filters({
|
|
|
5657
5608
|
filters.map((filter) => {
|
|
5658
5609
|
const field = fieldsMap[filter.field];
|
|
5659
5610
|
if (!field) return null;
|
|
5660
|
-
return /* @__PURE__ */
|
|
5611
|
+
return /* @__PURE__ */ jsxs18(
|
|
5661
5612
|
ButtonGroup,
|
|
5662
5613
|
{
|
|
5663
5614
|
className: "",
|
|
5664
5615
|
children: [
|
|
5665
|
-
/* @__PURE__ */
|
|
5616
|
+
/* @__PURE__ */ jsxs18(ButtonGroupText, { className: "bg-background dark:bg-input/30", children: [
|
|
5666
5617
|
field.icon && field.icon,
|
|
5667
5618
|
field.label
|
|
5668
5619
|
] }),
|
|
5669
|
-
/* @__PURE__ */
|
|
5620
|
+
/* @__PURE__ */ jsx34(
|
|
5670
5621
|
FilterOperatorDropdown,
|
|
5671
5622
|
{
|
|
5672
5623
|
field,
|
|
@@ -5675,7 +5626,7 @@ function Filters({
|
|
|
5675
5626
|
onChange: (operator) => updateFilter(filter.id, { operator })
|
|
5676
5627
|
}
|
|
5677
5628
|
),
|
|
5678
|
-
/* @__PURE__ */
|
|
5629
|
+
/* @__PURE__ */ jsx34(
|
|
5679
5630
|
FilterValueSelector,
|
|
5680
5631
|
{
|
|
5681
5632
|
field,
|
|
@@ -5685,7 +5636,7 @@ function Filters({
|
|
|
5685
5636
|
autoFocus: filter.id === lastAddedFilterId
|
|
5686
5637
|
}
|
|
5687
5638
|
),
|
|
5688
|
-
/* @__PURE__ */
|
|
5639
|
+
/* @__PURE__ */ jsx34(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
|
|
5689
5640
|
]
|
|
5690
5641
|
},
|
|
5691
5642
|
filter.id
|
|
@@ -5711,8 +5662,8 @@ var createFilterGroup = (id, label, fields, initialFilters = []) => ({
|
|
|
5711
5662
|
// src/ui/image.tsx
|
|
5712
5663
|
import NextImage from "next/image";
|
|
5713
5664
|
import { useCallback as useCallback3, useState as useState6 } from "react";
|
|
5714
|
-
import { cn as
|
|
5715
|
-
import { jsx as
|
|
5665
|
+
import { cn as cn34 } from "cn";
|
|
5666
|
+
import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5716
5667
|
function srcValue(src) {
|
|
5717
5668
|
if (!src) return null;
|
|
5718
5669
|
if (typeof src === "string") return src;
|
|
@@ -5732,7 +5683,7 @@ function Image({
|
|
|
5732
5683
|
onLoad,
|
|
5733
5684
|
onError,
|
|
5734
5685
|
children,
|
|
5735
|
-
fallback = /* @__PURE__ */
|
|
5686
|
+
fallback = /* @__PURE__ */ jsx35(JellyMini, { mood: "curious", className: "size-full p-4" }),
|
|
5736
5687
|
...props
|
|
5737
5688
|
}) {
|
|
5738
5689
|
const currentSrc = srcValue(src);
|
|
@@ -5752,9 +5703,9 @@ function Image({
|
|
|
5752
5703
|
if (!currentSrc) return;
|
|
5753
5704
|
setFailedSrc(currentSrc);
|
|
5754
5705
|
}, [currentSrc]);
|
|
5755
|
-
return /* @__PURE__ */
|
|
5756
|
-
showSkeleton && !loaded && !failed && hasSource && /* @__PURE__ */
|
|
5757
|
-
hasSource && !failed ? /* @__PURE__ */
|
|
5706
|
+
return /* @__PURE__ */ jsxs19("section", { className: cn34("relative block overflow-hidden", wrapper), children: [
|
|
5707
|
+
showSkeleton && !loaded && !failed && hasSource && /* @__PURE__ */ jsx35(Skeleton, { className: "absolute inset-0 size-full" }),
|
|
5708
|
+
hasSource && !failed ? /* @__PURE__ */ jsx35(
|
|
5758
5709
|
NextImage,
|
|
5759
5710
|
{
|
|
5760
5711
|
...props,
|
|
@@ -5764,7 +5715,7 @@ function Image({
|
|
|
5764
5715
|
loading: imageLoading,
|
|
5765
5716
|
preload: shouldPreload,
|
|
5766
5717
|
fetchPriority: fetchPriority ?? (imageLoading === "eager" ? "high" : void 0),
|
|
5767
|
-
className:
|
|
5718
|
+
className: cn34(
|
|
5768
5719
|
"transition-opacity duration-200",
|
|
5769
5720
|
loaded ? "opacity-100" : "opacity-0",
|
|
5770
5721
|
className
|
|
@@ -5786,34 +5737,34 @@ function Image({
|
|
|
5786
5737
|
// src/ui/input-otp.tsx
|
|
5787
5738
|
import * as React11 from "react";
|
|
5788
5739
|
import { OTPInput, OTPInputContext, REGEXP_ONLY_DIGITS } from "input-otp";
|
|
5789
|
-
import { cn as
|
|
5740
|
+
import { cn as cn35 } from "cn";
|
|
5790
5741
|
import { MinusIcon } from "lucide-react";
|
|
5791
|
-
import { jsx as
|
|
5742
|
+
import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5792
5743
|
function InputOTP({
|
|
5793
5744
|
className,
|
|
5794
5745
|
containerClassName,
|
|
5795
5746
|
...props
|
|
5796
5747
|
}) {
|
|
5797
|
-
return /* @__PURE__ */
|
|
5748
|
+
return /* @__PURE__ */ jsx36(
|
|
5798
5749
|
OTPInput,
|
|
5799
5750
|
{
|
|
5800
5751
|
"data-slot": "input-otp",
|
|
5801
|
-
containerClassName:
|
|
5752
|
+
containerClassName: cn35(
|
|
5802
5753
|
"cn-input-otp flex items-center has-disabled:opacity-50",
|
|
5803
5754
|
containerClassName
|
|
5804
5755
|
),
|
|
5805
5756
|
spellCheck: false,
|
|
5806
|
-
className:
|
|
5757
|
+
className: cn35("disabled:cursor-not-allowed", className),
|
|
5807
5758
|
...props
|
|
5808
5759
|
}
|
|
5809
5760
|
);
|
|
5810
5761
|
}
|
|
5811
5762
|
function InputOTPGroup({ className, ...props }) {
|
|
5812
|
-
return /* @__PURE__ */
|
|
5763
|
+
return /* @__PURE__ */ jsx36(
|
|
5813
5764
|
"div",
|
|
5814
5765
|
{
|
|
5815
5766
|
"data-slot": "input-otp-group",
|
|
5816
|
-
className:
|
|
5767
|
+
className: cn35(
|
|
5817
5768
|
"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
5769
|
className
|
|
5819
5770
|
),
|
|
@@ -5828,32 +5779,32 @@ function InputOTPSlot({
|
|
|
5828
5779
|
}) {
|
|
5829
5780
|
const inputOTPContext = React11.useContext(OTPInputContext);
|
|
5830
5781
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
5831
|
-
return /* @__PURE__ */
|
|
5782
|
+
return /* @__PURE__ */ jsxs20(
|
|
5832
5783
|
"div",
|
|
5833
5784
|
{
|
|
5834
5785
|
"data-slot": "input-otp-slot",
|
|
5835
5786
|
"data-active": isActive,
|
|
5836
|
-
className:
|
|
5837
|
-
"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
|
|
5787
|
+
className: cn35(
|
|
5788
|
+
"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 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 motion-reduce:transition-none dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40",
|
|
5838
5789
|
className
|
|
5839
5790
|
),
|
|
5840
5791
|
...props,
|
|
5841
5792
|
children: [
|
|
5842
5793
|
char,
|
|
5843
|
-
hasFakeCaret && /* @__PURE__ */
|
|
5794
|
+
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
5795
|
]
|
|
5845
5796
|
}
|
|
5846
5797
|
);
|
|
5847
5798
|
}
|
|
5848
5799
|
function InputOTPSeparator({ ...props }) {
|
|
5849
|
-
return /* @__PURE__ */
|
|
5800
|
+
return /* @__PURE__ */ jsx36(
|
|
5850
5801
|
"div",
|
|
5851
5802
|
{
|
|
5852
5803
|
"data-slot": "input-otp-separator",
|
|
5853
5804
|
className: "flex items-center [&_svg:not([class*='size-'])]:size-4",
|
|
5854
5805
|
role: "separator",
|
|
5855
5806
|
...props,
|
|
5856
|
-
children: /* @__PURE__ */
|
|
5807
|
+
children: /* @__PURE__ */ jsx36(MinusIcon, {})
|
|
5857
5808
|
}
|
|
5858
5809
|
);
|
|
5859
5810
|
}
|
|
@@ -5862,15 +5813,15 @@ function InputOTPSeparator({ ...props }) {
|
|
|
5862
5813
|
import { mergeProps as mergeProps4 } from "@base-ui/react/merge-props";
|
|
5863
5814
|
import { useRender as useRender5 } from "@base-ui/react/use-render";
|
|
5864
5815
|
import { cva as cva9 } from "class-variance-authority";
|
|
5865
|
-
import { cn as
|
|
5866
|
-
import { jsx as
|
|
5816
|
+
import { cn as cn36 } from "cn";
|
|
5817
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
5867
5818
|
function ItemGroup({ className, ...props }) {
|
|
5868
|
-
return /* @__PURE__ */
|
|
5819
|
+
return /* @__PURE__ */ jsx37(
|
|
5869
5820
|
"div",
|
|
5870
5821
|
{
|
|
5871
5822
|
role: "list",
|
|
5872
5823
|
"data-slot": "item-group",
|
|
5873
|
-
className:
|
|
5824
|
+
className: cn36(
|
|
5874
5825
|
"group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",
|
|
5875
5826
|
className
|
|
5876
5827
|
),
|
|
@@ -5882,12 +5833,12 @@ function ItemSeparator({
|
|
|
5882
5833
|
className,
|
|
5883
5834
|
...props
|
|
5884
5835
|
}) {
|
|
5885
|
-
return /* @__PURE__ */
|
|
5836
|
+
return /* @__PURE__ */ jsx37(
|
|
5886
5837
|
Separator,
|
|
5887
5838
|
{
|
|
5888
5839
|
"data-slot": "item-separator",
|
|
5889
5840
|
orientation: "horizontal",
|
|
5890
|
-
className:
|
|
5841
|
+
className: cn36("my-2", className),
|
|
5891
5842
|
...props
|
|
5892
5843
|
}
|
|
5893
5844
|
);
|
|
@@ -5924,7 +5875,7 @@ function Item({
|
|
|
5924
5875
|
defaultTagName: "div",
|
|
5925
5876
|
props: mergeProps4(
|
|
5926
5877
|
{
|
|
5927
|
-
className:
|
|
5878
|
+
className: cn36(itemVariants({ variant, size, className }))
|
|
5928
5879
|
},
|
|
5929
5880
|
props
|
|
5930
5881
|
),
|
|
@@ -5956,22 +5907,22 @@ function ItemMedia({
|
|
|
5956
5907
|
variant = "default",
|
|
5957
5908
|
...props
|
|
5958
5909
|
}) {
|
|
5959
|
-
return /* @__PURE__ */
|
|
5910
|
+
return /* @__PURE__ */ jsx37(
|
|
5960
5911
|
"div",
|
|
5961
5912
|
{
|
|
5962
5913
|
"data-slot": "item-media",
|
|
5963
5914
|
"data-variant": variant,
|
|
5964
|
-
className:
|
|
5915
|
+
className: cn36(itemMediaVariants({ variant, className })),
|
|
5965
5916
|
...props
|
|
5966
5917
|
}
|
|
5967
5918
|
);
|
|
5968
5919
|
}
|
|
5969
5920
|
function ItemContent({ className, ...props }) {
|
|
5970
|
-
return /* @__PURE__ */
|
|
5921
|
+
return /* @__PURE__ */ jsx37(
|
|
5971
5922
|
"div",
|
|
5972
5923
|
{
|
|
5973
5924
|
"data-slot": "item-content",
|
|
5974
|
-
className:
|
|
5925
|
+
className: cn36(
|
|
5975
5926
|
"flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",
|
|
5976
5927
|
className
|
|
5977
5928
|
),
|
|
@@ -5980,11 +5931,11 @@ function ItemContent({ className, ...props }) {
|
|
|
5980
5931
|
);
|
|
5981
5932
|
}
|
|
5982
5933
|
function ItemTitle({ className, ...props }) {
|
|
5983
|
-
return /* @__PURE__ */
|
|
5934
|
+
return /* @__PURE__ */ jsx37(
|
|
5984
5935
|
"div",
|
|
5985
5936
|
{
|
|
5986
5937
|
"data-slot": "item-title",
|
|
5987
|
-
className:
|
|
5938
|
+
className: cn36(
|
|
5988
5939
|
"line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",
|
|
5989
5940
|
className
|
|
5990
5941
|
),
|
|
@@ -5993,11 +5944,11 @@ function ItemTitle({ className, ...props }) {
|
|
|
5993
5944
|
);
|
|
5994
5945
|
}
|
|
5995
5946
|
function ItemDescription({ className, ...props }) {
|
|
5996
|
-
return /* @__PURE__ */
|
|
5947
|
+
return /* @__PURE__ */ jsx37(
|
|
5997
5948
|
"p",
|
|
5998
5949
|
{
|
|
5999
5950
|
"data-slot": "item-description",
|
|
6000
|
-
className:
|
|
5951
|
+
className: cn36(
|
|
6001
5952
|
"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
5953
|
className
|
|
6003
5954
|
),
|
|
@@ -6006,21 +5957,21 @@ function ItemDescription({ className, ...props }) {
|
|
|
6006
5957
|
);
|
|
6007
5958
|
}
|
|
6008
5959
|
function ItemActions({ className, ...props }) {
|
|
6009
|
-
return /* @__PURE__ */
|
|
5960
|
+
return /* @__PURE__ */ jsx37(
|
|
6010
5961
|
"div",
|
|
6011
5962
|
{
|
|
6012
5963
|
"data-slot": "item-actions",
|
|
6013
|
-
className:
|
|
5964
|
+
className: cn36("flex items-center gap-2", className),
|
|
6014
5965
|
...props
|
|
6015
5966
|
}
|
|
6016
5967
|
);
|
|
6017
5968
|
}
|
|
6018
5969
|
function ItemHeader({ className, ...props }) {
|
|
6019
|
-
return /* @__PURE__ */
|
|
5970
|
+
return /* @__PURE__ */ jsx37(
|
|
6020
5971
|
"div",
|
|
6021
5972
|
{
|
|
6022
5973
|
"data-slot": "item-header",
|
|
6023
|
-
className:
|
|
5974
|
+
className: cn36(
|
|
6024
5975
|
"flex basis-full items-center justify-between gap-2",
|
|
6025
5976
|
className
|
|
6026
5977
|
),
|
|
@@ -6029,11 +5980,11 @@ function ItemHeader({ className, ...props }) {
|
|
|
6029
5980
|
);
|
|
6030
5981
|
}
|
|
6031
5982
|
function ItemFooter({ className, ...props }) {
|
|
6032
|
-
return /* @__PURE__ */
|
|
5983
|
+
return /* @__PURE__ */ jsx37(
|
|
6033
5984
|
"div",
|
|
6034
5985
|
{
|
|
6035
5986
|
"data-slot": "item-footer",
|
|
6036
|
-
className:
|
|
5987
|
+
className: cn36(
|
|
6037
5988
|
"flex basis-full items-center justify-between gap-2",
|
|
6038
5989
|
className
|
|
6039
5990
|
),
|
|
@@ -6048,19 +5999,19 @@ import {
|
|
|
6048
5999
|
JellyBlobMascot
|
|
6049
6000
|
} from "feral-blob";
|
|
6050
6001
|
import * as React12 from "react";
|
|
6051
|
-
import { cn as
|
|
6002
|
+
import { cn as cn37 } from "cn";
|
|
6052
6003
|
import {
|
|
6053
6004
|
BlobSpeech as BlobSpeech2,
|
|
6054
6005
|
JellyBlobMascot as JellyBlobMascot2,
|
|
6055
6006
|
JellyBlobMascotDemo
|
|
6056
6007
|
} from "feral-blob";
|
|
6057
|
-
import { jsx as
|
|
6008
|
+
import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
6058
6009
|
function JellyBlob({ ...props }) {
|
|
6059
|
-
return /* @__PURE__ */
|
|
6010
|
+
return /* @__PURE__ */ jsx38("span", { className: "inline-block", children: /* @__PURE__ */ jsx38(
|
|
6060
6011
|
JellyBlobMascot,
|
|
6061
6012
|
{
|
|
6062
6013
|
...props,
|
|
6063
|
-
className:
|
|
6014
|
+
className: cn37("h-auto w-full", props.className)
|
|
6064
6015
|
}
|
|
6065
6016
|
) });
|
|
6066
6017
|
}
|
|
@@ -6086,15 +6037,15 @@ function JellyMini({
|
|
|
6086
6037
|
...props
|
|
6087
6038
|
}) {
|
|
6088
6039
|
const { mounted } = useMounted();
|
|
6089
|
-
return /* @__PURE__ */
|
|
6040
|
+
return /* @__PURE__ */ jsx38(
|
|
6090
6041
|
"span",
|
|
6091
6042
|
{
|
|
6092
6043
|
"aria-hidden": "true",
|
|
6093
|
-
className:
|
|
6044
|
+
className: cn37(
|
|
6094
6045
|
"inline-flex size-5 shrink-0 items-center justify-center select-none",
|
|
6095
6046
|
className
|
|
6096
6047
|
),
|
|
6097
|
-
children: mounted ? /* @__PURE__ */
|
|
6048
|
+
children: mounted ? /* @__PURE__ */ jsx38(
|
|
6098
6049
|
JellyBlobMascot,
|
|
6099
6050
|
{
|
|
6100
6051
|
...props,
|
|
@@ -6136,14 +6087,14 @@ function JellyAction({
|
|
|
6136
6087
|
...props
|
|
6137
6088
|
}) {
|
|
6138
6089
|
const preview = useJellyMood();
|
|
6139
|
-
return /* @__PURE__ */
|
|
6090
|
+
return /* @__PURE__ */ jsx38(Button, { ...props, ...withPreviewHandlers(preview, { ...props, mood }) });
|
|
6140
6091
|
}
|
|
6141
6092
|
function JellyLink({
|
|
6142
6093
|
mood,
|
|
6143
6094
|
...props
|
|
6144
6095
|
}) {
|
|
6145
6096
|
const preview = useJellyMood();
|
|
6146
|
-
return /* @__PURE__ */
|
|
6097
|
+
return /* @__PURE__ */ jsx38("a", { ...props, ...withPreviewHandlers(preview, { ...props, mood }) });
|
|
6147
6098
|
}
|
|
6148
6099
|
function JellyMascotProvider({
|
|
6149
6100
|
mood = "neutral",
|
|
@@ -6165,7 +6116,7 @@ function JellyMascotProvider({
|
|
|
6165
6116
|
blobProps,
|
|
6166
6117
|
setPreview: setPreviewMood
|
|
6167
6118
|
};
|
|
6168
|
-
return /* @__PURE__ */
|
|
6119
|
+
return /* @__PURE__ */ jsx38(JellyMascotContext.Provider, { value, children });
|
|
6169
6120
|
}
|
|
6170
6121
|
var SIZE_WRAPPER = {
|
|
6171
6122
|
sm: "w-20",
|
|
@@ -6179,24 +6130,24 @@ function JellyMascotFace({
|
|
|
6179
6130
|
}) {
|
|
6180
6131
|
const mascot = React12.useContext(JellyMascotContext);
|
|
6181
6132
|
if (!mascot) return null;
|
|
6182
|
-
return /* @__PURE__ */
|
|
6133
|
+
return /* @__PURE__ */ jsxs21(
|
|
6183
6134
|
"div",
|
|
6184
6135
|
{
|
|
6185
6136
|
"aria-hidden": "true",
|
|
6186
|
-
className:
|
|
6137
|
+
className: cn37(
|
|
6187
6138
|
"flex flex-col items-center select-none",
|
|
6188
6139
|
SIZE_WRAPPER[size],
|
|
6189
6140
|
className
|
|
6190
6141
|
),
|
|
6191
6142
|
children: [
|
|
6192
|
-
mascot.speech ? /* @__PURE__ */
|
|
6143
|
+
mascot.speech ? /* @__PURE__ */ jsx38(
|
|
6193
6144
|
BlobSpeech,
|
|
6194
6145
|
{
|
|
6195
6146
|
mood: mascot.mood,
|
|
6196
6147
|
messages: { [mascot.mood]: mascot.speech }
|
|
6197
6148
|
}
|
|
6198
6149
|
) : null,
|
|
6199
|
-
mascot.mounted ? /* @__PURE__ */
|
|
6150
|
+
mascot.mounted ? /* @__PURE__ */ jsx38(
|
|
6200
6151
|
JellyBlobMascot,
|
|
6201
6152
|
{
|
|
6202
6153
|
...mascot.blobProps,
|
|
@@ -6216,14 +6167,14 @@ function JellyMascot({
|
|
|
6216
6167
|
...config
|
|
6217
6168
|
}) {
|
|
6218
6169
|
const existing = React12.useContext(JellyMascotContext);
|
|
6219
|
-
if (existing) return /* @__PURE__ */
|
|
6220
|
-
return /* @__PURE__ */
|
|
6170
|
+
if (existing) return /* @__PURE__ */ jsx38(JellyMascotFace, { size, className });
|
|
6171
|
+
return /* @__PURE__ */ jsx38(JellyMascotProvider, { ...config, children: /* @__PURE__ */ jsx38(JellyMascotFace, { size, className }) });
|
|
6221
6172
|
}
|
|
6222
6173
|
function JellyGroup({
|
|
6223
6174
|
children,
|
|
6224
6175
|
...config
|
|
6225
6176
|
}) {
|
|
6226
|
-
return /* @__PURE__ */
|
|
6177
|
+
return /* @__PURE__ */ jsx38(JellyMascotProvider, { ...config, children });
|
|
6227
6178
|
}
|
|
6228
6179
|
function JellyEmpty({
|
|
6229
6180
|
title,
|
|
@@ -6233,25 +6184,25 @@ function JellyEmpty({
|
|
|
6233
6184
|
className,
|
|
6234
6185
|
...config
|
|
6235
6186
|
}) {
|
|
6236
|
-
return /* @__PURE__ */
|
|
6237
|
-
/* @__PURE__ */
|
|
6238
|
-
/* @__PURE__ */
|
|
6239
|
-
title ? /* @__PURE__ */
|
|
6240
|
-
description ? /* @__PURE__ */
|
|
6187
|
+
return /* @__PURE__ */ jsx38(JellyMascotProvider, { ...config, children: /* @__PURE__ */ jsxs21(Empty, { className: cn37("gap-4", className), children: [
|
|
6188
|
+
/* @__PURE__ */ jsxs21(EmptyHeader, { className: "gap-2", children: [
|
|
6189
|
+
/* @__PURE__ */ jsx38(JellyMascotFace, { size }),
|
|
6190
|
+
title ? /* @__PURE__ */ jsx38(EmptyTitle, { className: "text-base font-semibold sm:text-lg", children: title }) : null,
|
|
6191
|
+
description ? /* @__PURE__ */ jsx38(EmptyDescription, { className: "max-w-sm", children: description }) : null
|
|
6241
6192
|
] }),
|
|
6242
|
-
actions ? /* @__PURE__ */
|
|
6193
|
+
actions ? /* @__PURE__ */ jsx38(EmptyContent, { children: actions }) : null
|
|
6243
6194
|
] }) });
|
|
6244
6195
|
}
|
|
6245
6196
|
|
|
6246
6197
|
// src/ui/message.tsx
|
|
6247
|
-
import { cn as
|
|
6248
|
-
import { jsx as
|
|
6198
|
+
import { cn as cn38 } from "cn";
|
|
6199
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
6249
6200
|
function MessageGroup({ className, ...props }) {
|
|
6250
|
-
return /* @__PURE__ */
|
|
6201
|
+
return /* @__PURE__ */ jsx39(
|
|
6251
6202
|
"div",
|
|
6252
6203
|
{
|
|
6253
6204
|
"data-slot": "message-group",
|
|
6254
|
-
className:
|
|
6205
|
+
className: cn38("flex min-w-0 flex-col gap-2", className),
|
|
6255
6206
|
...props
|
|
6256
6207
|
}
|
|
6257
6208
|
);
|
|
@@ -6261,12 +6212,12 @@ function Message({
|
|
|
6261
6212
|
align = "start",
|
|
6262
6213
|
...props
|
|
6263
6214
|
}) {
|
|
6264
|
-
return /* @__PURE__ */
|
|
6215
|
+
return /* @__PURE__ */ jsx39(
|
|
6265
6216
|
"div",
|
|
6266
6217
|
{
|
|
6267
6218
|
"data-slot": "message",
|
|
6268
6219
|
"data-align": align,
|
|
6269
|
-
className:
|
|
6220
|
+
className: cn38(
|
|
6270
6221
|
"group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse",
|
|
6271
6222
|
className
|
|
6272
6223
|
),
|
|
@@ -6275,11 +6226,11 @@ function Message({
|
|
|
6275
6226
|
);
|
|
6276
6227
|
}
|
|
6277
6228
|
function MessageAvatar({ className, ...props }) {
|
|
6278
|
-
return /* @__PURE__ */
|
|
6229
|
+
return /* @__PURE__ */ jsx39(
|
|
6279
6230
|
"div",
|
|
6280
6231
|
{
|
|
6281
6232
|
"data-slot": "message-avatar",
|
|
6282
|
-
className:
|
|
6233
|
+
className: cn38(
|
|
6283
6234
|
"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
6235
|
className
|
|
6285
6236
|
),
|
|
@@ -6288,11 +6239,11 @@ function MessageAvatar({ className, ...props }) {
|
|
|
6288
6239
|
);
|
|
6289
6240
|
}
|
|
6290
6241
|
function MessageContent({ className, ...props }) {
|
|
6291
|
-
return /* @__PURE__ */
|
|
6242
|
+
return /* @__PURE__ */ jsx39(
|
|
6292
6243
|
"div",
|
|
6293
6244
|
{
|
|
6294
6245
|
"data-slot": "message-content",
|
|
6295
|
-
className:
|
|
6246
|
+
className: cn38(
|
|
6296
6247
|
"flex w-full min-w-0 flex-col gap-2.5 wrap-break-word group-data-[align=end]/message:*:data-slot:self-end",
|
|
6297
6248
|
className
|
|
6298
6249
|
),
|
|
@@ -6301,11 +6252,11 @@ function MessageContent({ className, ...props }) {
|
|
|
6301
6252
|
);
|
|
6302
6253
|
}
|
|
6303
6254
|
function MessageHeader({ className, ...props }) {
|
|
6304
|
-
return /* @__PURE__ */
|
|
6255
|
+
return /* @__PURE__ */ jsx39(
|
|
6305
6256
|
"div",
|
|
6306
6257
|
{
|
|
6307
6258
|
"data-slot": "message-header",
|
|
6308
|
-
className:
|
|
6259
|
+
className: cn38(
|
|
6309
6260
|
"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
6261
|
className
|
|
6311
6262
|
),
|
|
@@ -6314,11 +6265,11 @@ function MessageHeader({ className, ...props }) {
|
|
|
6314
6265
|
);
|
|
6315
6266
|
}
|
|
6316
6267
|
function MessageFooter({ className, ...props }) {
|
|
6317
|
-
return /* @__PURE__ */
|
|
6268
|
+
return /* @__PURE__ */ jsx39(
|
|
6318
6269
|
"div",
|
|
6319
6270
|
{
|
|
6320
6271
|
"data-slot": "message-footer",
|
|
6321
|
-
className:
|
|
6272
|
+
className: cn38(
|
|
6322
6273
|
"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
6274
|
className
|
|
6324
6275
|
),
|
|
@@ -6334,21 +6285,21 @@ import {
|
|
|
6334
6285
|
useMessageScrollerScrollable,
|
|
6335
6286
|
useMessageScrollerVisibility
|
|
6336
6287
|
} from "@shadcn/react/message-scroller";
|
|
6337
|
-
import { cn as
|
|
6288
|
+
import { cn as cn39 } from "cn";
|
|
6338
6289
|
import { ArrowDownIcon } from "lucide-react";
|
|
6339
|
-
import { Fragment as Fragment3, jsx as
|
|
6290
|
+
import { Fragment as Fragment3, jsx as jsx40, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
6340
6291
|
function MessageScrollerProvider(props) {
|
|
6341
|
-
return /* @__PURE__ */
|
|
6292
|
+
return /* @__PURE__ */ jsx40(MessageScrollerPrimitive.Provider, { ...props });
|
|
6342
6293
|
}
|
|
6343
6294
|
function MessageScroller({
|
|
6344
6295
|
className,
|
|
6345
6296
|
...props
|
|
6346
6297
|
}) {
|
|
6347
|
-
return /* @__PURE__ */
|
|
6298
|
+
return /* @__PURE__ */ jsx40(
|
|
6348
6299
|
MessageScrollerPrimitive.Root,
|
|
6349
6300
|
{
|
|
6350
6301
|
"data-slot": "message-scroller",
|
|
6351
|
-
className:
|
|
6302
|
+
className: cn39(
|
|
6352
6303
|
"group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden",
|
|
6353
6304
|
className
|
|
6354
6305
|
),
|
|
@@ -6360,11 +6311,11 @@ function MessageScrollerViewport({
|
|
|
6360
6311
|
className,
|
|
6361
6312
|
...props
|
|
6362
6313
|
}) {
|
|
6363
|
-
return /* @__PURE__ */
|
|
6314
|
+
return /* @__PURE__ */ jsx40(
|
|
6364
6315
|
MessageScrollerPrimitive.Viewport,
|
|
6365
6316
|
{
|
|
6366
6317
|
"data-slot": "message-scroller-viewport",
|
|
6367
|
-
className:
|
|
6318
|
+
className: cn39(
|
|
6368
6319
|
"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
6320
|
className
|
|
6370
6321
|
),
|
|
@@ -6376,11 +6327,11 @@ function MessageScrollerContent({
|
|
|
6376
6327
|
className,
|
|
6377
6328
|
...props
|
|
6378
6329
|
}) {
|
|
6379
|
-
return /* @__PURE__ */
|
|
6330
|
+
return /* @__PURE__ */ jsx40(
|
|
6380
6331
|
MessageScrollerPrimitive.Content,
|
|
6381
6332
|
{
|
|
6382
6333
|
"data-slot": "message-scroller-content",
|
|
6383
|
-
className:
|
|
6334
|
+
className: cn39("flex h-max min-h-full flex-col gap-6", className),
|
|
6384
6335
|
...props
|
|
6385
6336
|
}
|
|
6386
6337
|
);
|
|
@@ -6390,12 +6341,12 @@ function MessageScrollerItem({
|
|
|
6390
6341
|
scrollAnchor = false,
|
|
6391
6342
|
...props
|
|
6392
6343
|
}) {
|
|
6393
|
-
return /* @__PURE__ */
|
|
6344
|
+
return /* @__PURE__ */ jsx40(
|
|
6394
6345
|
MessageScrollerPrimitive.Item,
|
|
6395
6346
|
{
|
|
6396
6347
|
"data-slot": "message-scroller-item",
|
|
6397
6348
|
scrollAnchor,
|
|
6398
|
-
className:
|
|
6349
|
+
className: cn39(
|
|
6399
6350
|
"min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]",
|
|
6400
6351
|
className
|
|
6401
6352
|
),
|
|
@@ -6412,7 +6363,7 @@ function MessageScrollerButton({
|
|
|
6412
6363
|
size = "icon-sm",
|
|
6413
6364
|
...props
|
|
6414
6365
|
}) {
|
|
6415
|
-
return /* @__PURE__ */
|
|
6366
|
+
return /* @__PURE__ */ jsx40(
|
|
6416
6367
|
MessageScrollerPrimitive.Button,
|
|
6417
6368
|
{
|
|
6418
6369
|
"data-slot": "message-scroller-button",
|
|
@@ -6420,22 +6371,22 @@ function MessageScrollerButton({
|
|
|
6420
6371
|
"data-variant": variant,
|
|
6421
6372
|
"data-size": size,
|
|
6422
6373
|
direction,
|
|
6423
|
-
className:
|
|
6374
|
+
className: cn39(
|
|
6424
6375
|
"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
6376
|
className
|
|
6426
6377
|
),
|
|
6427
|
-
render: render ?? /* @__PURE__ */
|
|
6378
|
+
render: render ?? /* @__PURE__ */ jsx40(Button, { variant, size }),
|
|
6428
6379
|
...props,
|
|
6429
|
-
children: children ?? /* @__PURE__ */
|
|
6430
|
-
/* @__PURE__ */
|
|
6431
|
-
/* @__PURE__ */
|
|
6380
|
+
children: children ?? /* @__PURE__ */ jsxs22(Fragment3, { children: [
|
|
6381
|
+
/* @__PURE__ */ jsx40(ArrowDownIcon, {}),
|
|
6382
|
+
/* @__PURE__ */ jsx40("span", { className: "sr-only", children: direction === "end" ? "Scroll to end" : "Scroll to start" })
|
|
6432
6383
|
] })
|
|
6433
6384
|
}
|
|
6434
6385
|
);
|
|
6435
6386
|
}
|
|
6436
6387
|
|
|
6437
6388
|
// src/ui/numberstepper.tsx
|
|
6438
|
-
import { cn as
|
|
6389
|
+
import { cn as cn40 } from "cn";
|
|
6439
6390
|
import { AnimatePresence as AnimatePresence2, motion as motion6, useReducedMotion } from "motion/react";
|
|
6440
6391
|
import {
|
|
6441
6392
|
forwardRef as forwardRef3,
|
|
@@ -6445,7 +6396,7 @@ import {
|
|
|
6445
6396
|
useRef as useRef4,
|
|
6446
6397
|
useState as useState8
|
|
6447
6398
|
} from "react";
|
|
6448
|
-
import { jsx as
|
|
6399
|
+
import { jsx as jsx41, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
6449
6400
|
var EASE_OUT = [0.23, 1, 0.32, 1];
|
|
6450
6401
|
var ROLL = { duration: 0.18, ease: EASE_OUT };
|
|
6451
6402
|
var SLIDE = { type: "spring", visualDuration: 0.2, bounce: 0 };
|
|
@@ -6499,15 +6450,15 @@ function RollingNumber({
|
|
|
6499
6450
|
}) {
|
|
6500
6451
|
const direction = useDirection(value);
|
|
6501
6452
|
const chars = [...format(value)];
|
|
6502
|
-
return /* @__PURE__ */
|
|
6453
|
+
return /* @__PURE__ */ jsx41(
|
|
6503
6454
|
"span",
|
|
6504
6455
|
{
|
|
6505
6456
|
"aria-hidden": true,
|
|
6506
|
-
className:
|
|
6507
|
-
children: /* @__PURE__ */
|
|
6457
|
+
className: cn40("relative inline-flex tabular-nums", className),
|
|
6458
|
+
children: /* @__PURE__ */ jsx41(AnimatePresence2, { mode: "popLayout", initial: false, custom: direction, children: chars.map((char, index) => {
|
|
6508
6459
|
const place = chars.length - index;
|
|
6509
6460
|
const digit = /\d/.test(char);
|
|
6510
|
-
return /* @__PURE__ */
|
|
6461
|
+
return /* @__PURE__ */ jsx41(Place, { digit, children: digit ? /* @__PURE__ */ jsx41(Digit, { char, direction }) : char }, digit ? `d${place}` : `s${place}${char}`);
|
|
6511
6462
|
}) })
|
|
6512
6463
|
}
|
|
6513
6464
|
);
|
|
@@ -6517,7 +6468,7 @@ function Place({
|
|
|
6517
6468
|
children
|
|
6518
6469
|
}) {
|
|
6519
6470
|
const reduceMotion = useReducedMotion();
|
|
6520
|
-
return /* @__PURE__ */
|
|
6471
|
+
return /* @__PURE__ */ jsx41(
|
|
6521
6472
|
motion6.span,
|
|
6522
6473
|
{
|
|
6523
6474
|
layout: reduceMotion ? false : "position",
|
|
@@ -6529,7 +6480,7 @@ function Place({
|
|
|
6529
6480
|
transition: { duration: 0.1 }
|
|
6530
6481
|
},
|
|
6531
6482
|
transition: { ...ROLL, layout: SLIDE },
|
|
6532
|
-
className:
|
|
6483
|
+
className: cn40("inline-grid", digit && "overflow-hidden"),
|
|
6533
6484
|
children
|
|
6534
6485
|
}
|
|
6535
6486
|
);
|
|
@@ -6537,7 +6488,7 @@ function Place({
|
|
|
6537
6488
|
function Digit({ char, direction }) {
|
|
6538
6489
|
const reduceMotion = useReducedMotion();
|
|
6539
6490
|
const offset = (value) => reduceMotion ? "0%" : `${value * 100}%`;
|
|
6540
|
-
return /* @__PURE__ */
|
|
6491
|
+
return /* @__PURE__ */ jsx41(AnimatePresence2, { initial: false, custom: direction, children: /* @__PURE__ */ jsx41(
|
|
6541
6492
|
motion6.span,
|
|
6542
6493
|
{
|
|
6543
6494
|
custom: direction,
|
|
@@ -6661,7 +6612,7 @@ var NumberStepper = forwardRef3(
|
|
|
6661
6612
|
if (Number.isNaN(parsed)) return;
|
|
6662
6613
|
setTo(parsed, parsed > latest.current.value ? 1 : -1);
|
|
6663
6614
|
};
|
|
6664
|
-
const button = (delta, atLimit, name, path) => /* @__PURE__ */
|
|
6615
|
+
const button = (delta, atLimit, name, path) => /* @__PURE__ */ jsx41(
|
|
6665
6616
|
"button",
|
|
6666
6617
|
{
|
|
6667
6618
|
type: "button",
|
|
@@ -6685,13 +6636,13 @@ var NumberStepper = forwardRef3(
|
|
|
6685
6636
|
stepBy(delta);
|
|
6686
6637
|
}
|
|
6687
6638
|
},
|
|
6688
|
-
className:
|
|
6639
|
+
className: cn40(
|
|
6689
6640
|
"flex shrink-0 touch-manipulation items-center justify-center rounded-full text-foreground outline-hidden select-none",
|
|
6690
6641
|
styles.button,
|
|
6691
6642
|
"transition-[scale,opacity,background-color] duration-150 ease-out hover:bg-foreground/6 active:scale-[0.96] motion-reduce:transition-[opacity,background-color]",
|
|
6692
6643
|
(disabled || atLimit) && "opacity-35 hover:bg-transparent"
|
|
6693
6644
|
),
|
|
6694
|
-
children: /* @__PURE__ */
|
|
6645
|
+
children: /* @__PURE__ */ jsx41(
|
|
6695
6646
|
"svg",
|
|
6696
6647
|
{
|
|
6697
6648
|
viewBox: "0 0 16 16",
|
|
@@ -6701,17 +6652,18 @@ var NumberStepper = forwardRef3(
|
|
|
6701
6652
|
stroke: "currentColor",
|
|
6702
6653
|
strokeWidth: 1.5,
|
|
6703
6654
|
strokeLinecap: "round",
|
|
6704
|
-
children: /* @__PURE__ */
|
|
6655
|
+
children: /* @__PURE__ */ jsx41("path", { d: path })
|
|
6705
6656
|
}
|
|
6706
6657
|
)
|
|
6707
6658
|
}
|
|
6708
6659
|
);
|
|
6709
6660
|
const editing = draft !== null;
|
|
6710
6661
|
const styles = sizeStyles[size];
|
|
6711
|
-
return /* @__PURE__ */
|
|
6662
|
+
return /* @__PURE__ */ jsxs23(
|
|
6712
6663
|
"div",
|
|
6713
6664
|
{
|
|
6714
|
-
|
|
6665
|
+
"data-slot": "input-group",
|
|
6666
|
+
className: cn40(
|
|
6715
6667
|
"shadow-raised inline-flex items-center rounded-full border",
|
|
6716
6668
|
disabled && "opacity-50",
|
|
6717
6669
|
styles.container,
|
|
@@ -6719,18 +6671,19 @@ var NumberStepper = forwardRef3(
|
|
|
6719
6671
|
),
|
|
6720
6672
|
children: [
|
|
6721
6673
|
button(-step, value <= min, "Decrease", "M3.5 8h9"),
|
|
6722
|
-
/* @__PURE__ */
|
|
6674
|
+
/* @__PURE__ */ jsxs23(
|
|
6723
6675
|
"span",
|
|
6724
6676
|
{
|
|
6725
6677
|
ref: valueRef,
|
|
6726
|
-
className:
|
|
6678
|
+
className: cn40("relative grid place-items-center", styles.value),
|
|
6727
6679
|
children: [
|
|
6728
|
-
/* @__PURE__ */
|
|
6680
|
+
/* @__PURE__ */ jsx41(
|
|
6729
6681
|
"input",
|
|
6730
6682
|
{
|
|
6731
6683
|
ref,
|
|
6732
6684
|
id,
|
|
6733
6685
|
disabled,
|
|
6686
|
+
"data-slot": "input-group-control",
|
|
6734
6687
|
"data-no-ring": true,
|
|
6735
6688
|
role: "spinbutton",
|
|
6736
6689
|
"aria-label": label,
|
|
@@ -6775,18 +6728,18 @@ var NumberStepper = forwardRef3(
|
|
|
6775
6728
|
setDraft(null);
|
|
6776
6729
|
}
|
|
6777
6730
|
},
|
|
6778
|
-
className:
|
|
6731
|
+
className: cn40(
|
|
6779
6732
|
"col-start-1 row-start-1 w-full bg-transparent text-center font-medium tabular-nums caret-foreground outline-hidden",
|
|
6780
6733
|
styles.text,
|
|
6781
6734
|
editing ? "text-foreground" : "text-transparent"
|
|
6782
6735
|
)
|
|
6783
6736
|
}
|
|
6784
6737
|
),
|
|
6785
|
-
!editing && /* @__PURE__ */
|
|
6738
|
+
!editing && /* @__PURE__ */ jsx41(
|
|
6786
6739
|
RollingNumber,
|
|
6787
6740
|
{
|
|
6788
6741
|
value,
|
|
6789
|
-
className:
|
|
6742
|
+
className: cn40(
|
|
6790
6743
|
"pointer-events-none col-start-1 row-start-1 font-medium text-foreground",
|
|
6791
6744
|
styles.text
|
|
6792
6745
|
)
|
|
@@ -6803,7 +6756,7 @@ var NumberStepper = forwardRef3(
|
|
|
6803
6756
|
);
|
|
6804
6757
|
|
|
6805
6758
|
// src/ui/otp.tsx
|
|
6806
|
-
import { cn as
|
|
6759
|
+
import { cn as cn41 } from "cn";
|
|
6807
6760
|
import {
|
|
6808
6761
|
AnimatePresence as AnimatePresence3,
|
|
6809
6762
|
animate,
|
|
@@ -6811,7 +6764,7 @@ import {
|
|
|
6811
6764
|
useReducedMotion as useReducedMotion2
|
|
6812
6765
|
} from "motion/react";
|
|
6813
6766
|
import { Fragment as Fragment4, useEffect as useEffect7, useId as useId4, useRef as useRef5, useState as useState9 } from "react";
|
|
6814
|
-
import { jsx as
|
|
6767
|
+
import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
6815
6768
|
var EASE_OUT2 = [0.16, 1, 0.3, 1];
|
|
6816
6769
|
var EASE_IN_OUT = [0.77, 0, 0.175, 1];
|
|
6817
6770
|
var EASE_DRAWER = [0.32, 0.72, 0, 1];
|
|
@@ -6976,8 +6929,8 @@ function OTPInput2({
|
|
|
6976
6929
|
const showSuccess = status === "success";
|
|
6977
6930
|
const activeIndex = focused ? active : -1;
|
|
6978
6931
|
const message = showSuccess ? successMessage : status === "error" ? errorMessage : hint;
|
|
6979
|
-
return /* @__PURE__ */
|
|
6980
|
-
label ? /* @__PURE__ */
|
|
6932
|
+
return /* @__PURE__ */ jsxs24("div", { className: cn41("inline-flex flex-col gap-2", className), children: [
|
|
6933
|
+
label ? /* @__PURE__ */ jsx42(
|
|
6981
6934
|
"label",
|
|
6982
6935
|
{
|
|
6983
6936
|
htmlFor: `${uid}-input`,
|
|
@@ -6985,7 +6938,7 @@ function OTPInput2({
|
|
|
6985
6938
|
children: label
|
|
6986
6939
|
}
|
|
6987
6940
|
) : null,
|
|
6988
|
-
/* @__PURE__ */
|
|
6941
|
+
/* @__PURE__ */ jsxs24(
|
|
6989
6942
|
"div",
|
|
6990
6943
|
{
|
|
6991
6944
|
className: "relative inline-flex w-max",
|
|
@@ -6998,7 +6951,7 @@ function OTPInput2({
|
|
|
6998
6951
|
inputRef.current?.focus();
|
|
6999
6952
|
},
|
|
7000
6953
|
children: [
|
|
7001
|
-
/* @__PURE__ */
|
|
6954
|
+
/* @__PURE__ */ jsx42(
|
|
7002
6955
|
"input",
|
|
7003
6956
|
{
|
|
7004
6957
|
ref: inputRef,
|
|
@@ -7025,24 +6978,24 @@ function OTPInput2({
|
|
|
7025
6978
|
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
6979
|
}
|
|
7027
6980
|
),
|
|
7028
|
-
/* @__PURE__ */
|
|
6981
|
+
/* @__PURE__ */ jsx42("div", { ref: slotsRef, className: "flex items-center gap-3", children: Array.from({ length }, (_, i) => {
|
|
7029
6982
|
const char = slots[i] ?? "";
|
|
7030
6983
|
const isActive = i === activeIndex;
|
|
7031
|
-
return /* @__PURE__ */
|
|
7032
|
-
/* @__PURE__ */
|
|
6984
|
+
return /* @__PURE__ */ jsxs24(Fragment4, { children: [
|
|
6985
|
+
/* @__PURE__ */ jsxs24(
|
|
7033
6986
|
"div",
|
|
7034
6987
|
{
|
|
7035
6988
|
"data-otp-slot": true,
|
|
7036
6989
|
"data-active": isActive,
|
|
7037
6990
|
"data-filled": char !== "",
|
|
7038
|
-
className:
|
|
6991
|
+
className: cn41(
|
|
7039
6992
|
"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
6993
|
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
|
-
isActive && !showSuccess && status !== "error" && "border-
|
|
6994
|
+
isActive && !showSuccess && status !== "error" && "border-2 border-brand ring-0",
|
|
7042
6995
|
disabled && "opacity-50"
|
|
7043
6996
|
),
|
|
7044
6997
|
children: [
|
|
7045
|
-
isActive && !showSuccess ? /* @__PURE__ */
|
|
6998
|
+
isActive && !showSuccess ? /* @__PURE__ */ jsx42(
|
|
7046
6999
|
motion7.span,
|
|
7047
7000
|
{
|
|
7048
7001
|
"aria-hidden": true,
|
|
@@ -7052,13 +7005,13 @@ function OTPInput2({
|
|
|
7052
7005
|
repeat: Number.POSITIVE_INFINITY,
|
|
7053
7006
|
ease: "linear"
|
|
7054
7007
|
},
|
|
7055
|
-
className:
|
|
7056
|
-
"
|
|
7008
|
+
className: cn41(
|
|
7009
|
+
"pointer-events-none absolute top-1/2 h-6 w-px -translate-y-1/2 bg-brand",
|
|
7057
7010
|
char ? "right-3" : "left-1/2 -translate-x-1/2"
|
|
7058
7011
|
)
|
|
7059
7012
|
}
|
|
7060
7013
|
) : null,
|
|
7061
|
-
/* @__PURE__ */
|
|
7014
|
+
/* @__PURE__ */ jsx42(AnimatePresence3, { initial: false, children: char ? /* @__PURE__ */ jsx42(
|
|
7062
7015
|
motion7.span,
|
|
7063
7016
|
{
|
|
7064
7017
|
initial: reduce ? {
|
|
@@ -7096,10 +7049,10 @@ function OTPInput2({
|
|
|
7096
7049
|
]
|
|
7097
7050
|
}
|
|
7098
7051
|
),
|
|
7099
|
-
i === 2 ? /* @__PURE__ */
|
|
7052
|
+
i === 2 ? /* @__PURE__ */ jsx42("span", { "aria-hidden": "true", className: "h-0.5 w-4 bg-primary" }) : null
|
|
7100
7053
|
] }, `${uid}-${i}`);
|
|
7101
7054
|
}) }),
|
|
7102
|
-
/* @__PURE__ */
|
|
7055
|
+
/* @__PURE__ */ jsx42(AnimatePresence3, { children: showSuccess ? /* @__PURE__ */ jsx42(
|
|
7103
7056
|
motion7.span,
|
|
7104
7057
|
{
|
|
7105
7058
|
initial: reduce ? {
|
|
@@ -7129,7 +7082,7 @@ function OTPInput2({
|
|
|
7129
7082
|
},
|
|
7130
7083
|
className: "pointer-events-none absolute top-1/2 -right-7 -translate-y-1/2 text-emerald-500",
|
|
7131
7084
|
"aria-hidden": true,
|
|
7132
|
-
children: /* @__PURE__ */
|
|
7085
|
+
children: /* @__PURE__ */ jsxs24(
|
|
7133
7086
|
"svg",
|
|
7134
7087
|
{
|
|
7135
7088
|
width: "20",
|
|
@@ -7141,8 +7094,8 @@ function OTPInput2({
|
|
|
7141
7094
|
strokeLinecap: "round",
|
|
7142
7095
|
strokeLinejoin: "round",
|
|
7143
7096
|
children: [
|
|
7144
|
-
/* @__PURE__ */
|
|
7145
|
-
/* @__PURE__ */
|
|
7097
|
+
/* @__PURE__ */ jsx42("title", { children: "Verified" }),
|
|
7098
|
+
/* @__PURE__ */ jsx42(
|
|
7146
7099
|
motion7.path,
|
|
7147
7100
|
{
|
|
7148
7101
|
d: "M5 13l4 4L19 7",
|
|
@@ -7171,11 +7124,11 @@ function OTPInput2({
|
|
|
7171
7124
|
]
|
|
7172
7125
|
}
|
|
7173
7126
|
),
|
|
7174
|
-
message ? /* @__PURE__ */
|
|
7127
|
+
message ? /* @__PURE__ */ jsx42(
|
|
7175
7128
|
"p",
|
|
7176
7129
|
{
|
|
7177
7130
|
"aria-live": "polite",
|
|
7178
|
-
className:
|
|
7131
|
+
className: cn41(
|
|
7179
7132
|
"text-sm",
|
|
7180
7133
|
showSuccess ? "text-emerald-500" : status === "error" ? "text-destructive" : "text-muted-foreground"
|
|
7181
7134
|
),
|
|
@@ -7194,13 +7147,13 @@ function toSlots(raw, length) {
|
|
|
7194
7147
|
|
|
7195
7148
|
// src/ui/popover.tsx
|
|
7196
7149
|
import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
7197
|
-
import { cn as
|
|
7198
|
-
import { jsx as
|
|
7150
|
+
import { cn as cn42 } from "cn";
|
|
7151
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
7199
7152
|
function Popover({ ...props }) {
|
|
7200
|
-
return /* @__PURE__ */
|
|
7153
|
+
return /* @__PURE__ */ jsx43(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
7201
7154
|
}
|
|
7202
7155
|
function PopoverTrigger({ ...props }) {
|
|
7203
|
-
return /* @__PURE__ */
|
|
7156
|
+
return /* @__PURE__ */ jsx43(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
7204
7157
|
}
|
|
7205
7158
|
function PopoverContent({
|
|
7206
7159
|
className,
|
|
@@ -7210,7 +7163,7 @@ function PopoverContent({
|
|
|
7210
7163
|
sideOffset = 4,
|
|
7211
7164
|
...props
|
|
7212
7165
|
}) {
|
|
7213
|
-
return /* @__PURE__ */
|
|
7166
|
+
return /* @__PURE__ */ jsx43(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx43(
|
|
7214
7167
|
PopoverPrimitive.Positioner,
|
|
7215
7168
|
{
|
|
7216
7169
|
align,
|
|
@@ -7218,11 +7171,11 @@ function PopoverContent({
|
|
|
7218
7171
|
side,
|
|
7219
7172
|
sideOffset,
|
|
7220
7173
|
className: "isolate z-50",
|
|
7221
|
-
children: /* @__PURE__ */
|
|
7174
|
+
children: /* @__PURE__ */ jsx43(
|
|
7222
7175
|
PopoverPrimitive.Popup,
|
|
7223
7176
|
{
|
|
7224
7177
|
"data-slot": "popover-content",
|
|
7225
|
-
className:
|
|
7178
|
+
className: cn42(
|
|
7226
7179
|
"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
7180
|
className
|
|
7228
7181
|
),
|
|
@@ -7233,21 +7186,21 @@ function PopoverContent({
|
|
|
7233
7186
|
) });
|
|
7234
7187
|
}
|
|
7235
7188
|
function PopoverHeader({ className, ...props }) {
|
|
7236
|
-
return /* @__PURE__ */
|
|
7189
|
+
return /* @__PURE__ */ jsx43(
|
|
7237
7190
|
"div",
|
|
7238
7191
|
{
|
|
7239
7192
|
"data-slot": "popover-header",
|
|
7240
|
-
className:
|
|
7193
|
+
className: cn42("flex flex-col gap-0.5 text-sm", className),
|
|
7241
7194
|
...props
|
|
7242
7195
|
}
|
|
7243
7196
|
);
|
|
7244
7197
|
}
|
|
7245
7198
|
function PopoverTitle({ className, ...props }) {
|
|
7246
|
-
return /* @__PURE__ */
|
|
7199
|
+
return /* @__PURE__ */ jsx43(
|
|
7247
7200
|
PopoverPrimitive.Title,
|
|
7248
7201
|
{
|
|
7249
7202
|
"data-slot": "popover-title",
|
|
7250
|
-
className:
|
|
7203
|
+
className: cn42("font-medium", className),
|
|
7251
7204
|
...props
|
|
7252
7205
|
}
|
|
7253
7206
|
);
|
|
@@ -7256,11 +7209,11 @@ function PopoverDescription({
|
|
|
7256
7209
|
className,
|
|
7257
7210
|
...props
|
|
7258
7211
|
}) {
|
|
7259
|
-
return /* @__PURE__ */
|
|
7212
|
+
return /* @__PURE__ */ jsx43(
|
|
7260
7213
|
PopoverPrimitive.Description,
|
|
7261
7214
|
{
|
|
7262
7215
|
"data-slot": "popover-description",
|
|
7263
|
-
className:
|
|
7216
|
+
className: cn42("text-muted-foreground", className),
|
|
7264
7217
|
...props
|
|
7265
7218
|
}
|
|
7266
7219
|
);
|
|
@@ -7270,11 +7223,11 @@ function PopoverDescription({
|
|
|
7270
7223
|
import { NumberField } from "@base-ui/react/number-field";
|
|
7271
7224
|
import { Minus, Plus } from "@gravity-ui/icons";
|
|
7272
7225
|
import * as React13 from "react";
|
|
7273
|
-
import { jsx as
|
|
7226
|
+
import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
7274
7227
|
var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref) {
|
|
7275
7228
|
const id = React13.useId();
|
|
7276
|
-
return /* @__PURE__ */
|
|
7277
|
-
/* @__PURE__ */
|
|
7229
|
+
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: [
|
|
7230
|
+
/* @__PURE__ */ jsx44(
|
|
7278
7231
|
NumberField.Decrement,
|
|
7279
7232
|
{
|
|
7280
7233
|
className: buttonVariants({
|
|
@@ -7282,10 +7235,10 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
|
|
|
7282
7235
|
size: "icon-sm",
|
|
7283
7236
|
className: "rounded-full! border-border!"
|
|
7284
7237
|
}),
|
|
7285
|
-
children: /* @__PURE__ */
|
|
7238
|
+
children: /* @__PURE__ */ jsx44(Minus, {})
|
|
7286
7239
|
}
|
|
7287
7240
|
),
|
|
7288
|
-
/* @__PURE__ */
|
|
7241
|
+
/* @__PURE__ */ jsx44(
|
|
7289
7242
|
NumberField.Input,
|
|
7290
7243
|
{
|
|
7291
7244
|
ref,
|
|
@@ -7293,7 +7246,7 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
|
|
|
7293
7246
|
"data-no-ring": true
|
|
7294
7247
|
}
|
|
7295
7248
|
),
|
|
7296
|
-
/* @__PURE__ */
|
|
7249
|
+
/* @__PURE__ */ jsx44(
|
|
7297
7250
|
NumberField.Increment,
|
|
7298
7251
|
{
|
|
7299
7252
|
className: buttonVariants({
|
|
@@ -7301,7 +7254,7 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
|
|
|
7301
7254
|
size: "icon-sm",
|
|
7302
7255
|
className: "rounded-full! border-border!"
|
|
7303
7256
|
}),
|
|
7304
|
-
children: /* @__PURE__ */
|
|
7257
|
+
children: /* @__PURE__ */ jsx44(Plus, {})
|
|
7305
7258
|
}
|
|
7306
7259
|
)
|
|
7307
7260
|
] }) });
|
|
@@ -7310,34 +7263,34 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
|
|
|
7310
7263
|
// src/ui/radio-group.tsx
|
|
7311
7264
|
import { Radio as RadioPrimitive } from "@base-ui/react/radio";
|
|
7312
7265
|
import { RadioGroup as RadioGroupPrimitive } from "@base-ui/react/radio-group";
|
|
7313
|
-
import { cn as
|
|
7314
|
-
import { jsx as
|
|
7266
|
+
import { cn as cn43 } from "cn";
|
|
7267
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
7315
7268
|
function RadioGroup({ className, ...props }) {
|
|
7316
|
-
return /* @__PURE__ */
|
|
7269
|
+
return /* @__PURE__ */ jsx45(
|
|
7317
7270
|
RadioGroupPrimitive,
|
|
7318
7271
|
{
|
|
7319
7272
|
"data-slot": "radio-group",
|
|
7320
|
-
className:
|
|
7273
|
+
className: cn43("grid w-full gap-2", className),
|
|
7321
7274
|
...props
|
|
7322
7275
|
}
|
|
7323
7276
|
);
|
|
7324
7277
|
}
|
|
7325
7278
|
function RadioGroupItem({ className, ...props }) {
|
|
7326
|
-
return /* @__PURE__ */
|
|
7279
|
+
return /* @__PURE__ */ jsx45(
|
|
7327
7280
|
RadioPrimitive.Root,
|
|
7328
7281
|
{
|
|
7329
7282
|
"data-slot": "radio-group-item",
|
|
7330
|
-
className:
|
|
7283
|
+
className: cn43(
|
|
7331
7284
|
"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
7285
|
className
|
|
7333
7286
|
),
|
|
7334
7287
|
...props,
|
|
7335
|
-
children: /* @__PURE__ */
|
|
7288
|
+
children: /* @__PURE__ */ jsx45(
|
|
7336
7289
|
RadioPrimitive.Indicator,
|
|
7337
7290
|
{
|
|
7338
7291
|
"data-slot": "radio-group-indicator",
|
|
7339
7292
|
className: "flex size-4 items-center justify-center",
|
|
7340
|
-
children: /* @__PURE__ */
|
|
7293
|
+
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
7294
|
}
|
|
7342
7295
|
)
|
|
7343
7296
|
}
|
|
@@ -7345,18 +7298,18 @@ function RadioGroupItem({ className, ...props }) {
|
|
|
7345
7298
|
}
|
|
7346
7299
|
|
|
7347
7300
|
// src/ui/resizable.tsx
|
|
7348
|
-
import { cn as
|
|
7301
|
+
import { cn as cn44 } from "cn";
|
|
7349
7302
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
7350
|
-
import { jsx as
|
|
7303
|
+
import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
7351
7304
|
function ResizablePanelGroup({
|
|
7352
7305
|
className,
|
|
7353
7306
|
...props
|
|
7354
7307
|
}) {
|
|
7355
|
-
return /* @__PURE__ */
|
|
7308
|
+
return /* @__PURE__ */ jsx46(
|
|
7356
7309
|
ResizablePrimitive.Group,
|
|
7357
7310
|
{
|
|
7358
7311
|
"data-slot": "resizable-panel-group",
|
|
7359
|
-
className:
|
|
7312
|
+
className: cn44(
|
|
7360
7313
|
"flex h-full w-full aria-[orientation=vertical]:flex-col",
|
|
7361
7314
|
className
|
|
7362
7315
|
),
|
|
@@ -7365,26 +7318,26 @@ function ResizablePanelGroup({
|
|
|
7365
7318
|
);
|
|
7366
7319
|
}
|
|
7367
7320
|
function ResizablePanel({ ...props }) {
|
|
7368
|
-
return /* @__PURE__ */
|
|
7321
|
+
return /* @__PURE__ */ jsx46(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
|
|
7369
7322
|
}
|
|
7370
7323
|
function ResizableHandle({
|
|
7371
7324
|
withHandle,
|
|
7372
7325
|
className,
|
|
7373
7326
|
...props
|
|
7374
7327
|
}) {
|
|
7375
|
-
return /* @__PURE__ */
|
|
7328
|
+
return /* @__PURE__ */ jsx46(
|
|
7376
7329
|
ResizablePrimitive.Separator,
|
|
7377
7330
|
{
|
|
7378
7331
|
"data-slot": "resizable-handle",
|
|
7379
|
-
className:
|
|
7332
|
+
className: cn44(
|
|
7380
7333
|
"relative mx-0.5 flex w-px items-center justify-center",
|
|
7381
7334
|
className
|
|
7382
7335
|
),
|
|
7383
7336
|
...props,
|
|
7384
|
-
children: withHandle && /* @__PURE__ */
|
|
7385
|
-
/* @__PURE__ */
|
|
7386
|
-
/* @__PURE__ */
|
|
7387
|
-
/* @__PURE__ */
|
|
7337
|
+
children: withHandle && /* @__PURE__ */ jsxs26("div", { className: "flex cursor-col-resize flex-col gap-[4px]", children: [
|
|
7338
|
+
/* @__PURE__ */ jsx46("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
|
|
7339
|
+
/* @__PURE__ */ jsx46("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
|
|
7340
|
+
/* @__PURE__ */ jsx46("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" })
|
|
7388
7341
|
] })
|
|
7389
7342
|
}
|
|
7390
7343
|
);
|
|
@@ -7392,26 +7345,26 @@ function ResizableHandle({
|
|
|
7392
7345
|
|
|
7393
7346
|
// src/ui/select.tsx
|
|
7394
7347
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
7395
|
-
import { cn as
|
|
7348
|
+
import { cn as cn45 } from "cn";
|
|
7396
7349
|
import { Check as Check3, ChevronDown as ChevronDown3, ChevronUp as ChevronUp2 } from "@gravity-ui/icons";
|
|
7397
|
-
import { jsx as
|
|
7350
|
+
import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
7398
7351
|
var Select = SelectPrimitive.Root;
|
|
7399
7352
|
function SelectGroup({ className, ...props }) {
|
|
7400
|
-
return /* @__PURE__ */
|
|
7353
|
+
return /* @__PURE__ */ jsx47(
|
|
7401
7354
|
SelectPrimitive.Group,
|
|
7402
7355
|
{
|
|
7403
7356
|
"data-slot": "select-group",
|
|
7404
|
-
className:
|
|
7357
|
+
className: cn45("scroll-my-1 p-1", className),
|
|
7405
7358
|
...props
|
|
7406
7359
|
}
|
|
7407
7360
|
);
|
|
7408
7361
|
}
|
|
7409
7362
|
function SelectValue({ className, ...props }) {
|
|
7410
|
-
return /* @__PURE__ */
|
|
7363
|
+
return /* @__PURE__ */ jsx47(
|
|
7411
7364
|
SelectPrimitive.Value,
|
|
7412
7365
|
{
|
|
7413
7366
|
"data-slot": "select-value",
|
|
7414
|
-
className:
|
|
7367
|
+
className: cn45("flex flex-1 text-left", className),
|
|
7415
7368
|
...props
|
|
7416
7369
|
}
|
|
7417
7370
|
);
|
|
@@ -7422,22 +7375,22 @@ function SelectTrigger({
|
|
|
7422
7375
|
children,
|
|
7423
7376
|
...props
|
|
7424
7377
|
}) {
|
|
7425
|
-
return /* @__PURE__ */
|
|
7378
|
+
return /* @__PURE__ */ jsxs27(
|
|
7426
7379
|
SelectPrimitive.Trigger,
|
|
7427
7380
|
{
|
|
7428
7381
|
"data-slot": "select-trigger",
|
|
7429
7382
|
"data-size": size,
|
|
7430
|
-
className:
|
|
7383
|
+
className: cn45(
|
|
7431
7384
|
"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
7385
|
className
|
|
7433
7386
|
),
|
|
7434
7387
|
...props,
|
|
7435
7388
|
children: [
|
|
7436
7389
|
children,
|
|
7437
|
-
/* @__PURE__ */
|
|
7390
|
+
/* @__PURE__ */ jsx47(
|
|
7438
7391
|
SelectPrimitive.Icon,
|
|
7439
7392
|
{
|
|
7440
|
-
render: /* @__PURE__ */
|
|
7393
|
+
render: /* @__PURE__ */ jsx47(ChevronDown3, { className: "pointer-events-none size-4 text-muted-foreground" })
|
|
7441
7394
|
}
|
|
7442
7395
|
)
|
|
7443
7396
|
]
|
|
@@ -7454,7 +7407,7 @@ function SelectContent({
|
|
|
7454
7407
|
alignItemWithTrigger = true,
|
|
7455
7408
|
...props
|
|
7456
7409
|
}) {
|
|
7457
|
-
return /* @__PURE__ */
|
|
7410
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx47(
|
|
7458
7411
|
SelectPrimitive.Positioner,
|
|
7459
7412
|
{
|
|
7460
7413
|
side,
|
|
@@ -7463,20 +7416,20 @@ function SelectContent({
|
|
|
7463
7416
|
alignOffset,
|
|
7464
7417
|
alignItemWithTrigger,
|
|
7465
7418
|
className: "isolate z-50",
|
|
7466
|
-
children: /* @__PURE__ */
|
|
7419
|
+
children: /* @__PURE__ */ jsxs27(
|
|
7467
7420
|
SelectPrimitive.Popup,
|
|
7468
7421
|
{
|
|
7469
7422
|
"data-slot": "select-content",
|
|
7470
7423
|
"data-align-trigger": alignItemWithTrigger,
|
|
7471
|
-
className:
|
|
7424
|
+
className: cn45(
|
|
7472
7425
|
"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
7426
|
className
|
|
7474
7427
|
),
|
|
7475
7428
|
...props,
|
|
7476
7429
|
children: [
|
|
7477
|
-
/* @__PURE__ */
|
|
7478
|
-
/* @__PURE__ */
|
|
7479
|
-
/* @__PURE__ */
|
|
7430
|
+
/* @__PURE__ */ jsx47(SelectScrollUpButton, {}),
|
|
7431
|
+
/* @__PURE__ */ jsx47(SelectPrimitive.List, { className: "p-1", children }),
|
|
7432
|
+
/* @__PURE__ */ jsx47(SelectScrollDownButton, {})
|
|
7480
7433
|
]
|
|
7481
7434
|
}
|
|
7482
7435
|
)
|
|
@@ -7487,11 +7440,11 @@ function SelectLabel({
|
|
|
7487
7440
|
className,
|
|
7488
7441
|
...props
|
|
7489
7442
|
}) {
|
|
7490
|
-
return /* @__PURE__ */
|
|
7443
|
+
return /* @__PURE__ */ jsx47(
|
|
7491
7444
|
SelectPrimitive.GroupLabel,
|
|
7492
7445
|
{
|
|
7493
7446
|
"data-slot": "select-label",
|
|
7494
|
-
className:
|
|
7447
|
+
className: cn45("px-1.5 py-1 text-xs text-muted-foreground", className),
|
|
7495
7448
|
...props
|
|
7496
7449
|
}
|
|
7497
7450
|
);
|
|
@@ -7501,22 +7454,22 @@ function SelectItem({
|
|
|
7501
7454
|
children,
|
|
7502
7455
|
...props
|
|
7503
7456
|
}) {
|
|
7504
|
-
return /* @__PURE__ */
|
|
7457
|
+
return /* @__PURE__ */ jsxs27(
|
|
7505
7458
|
SelectPrimitive.Item,
|
|
7506
7459
|
{
|
|
7507
7460
|
"data-slot": "select-item",
|
|
7508
|
-
className:
|
|
7461
|
+
className: cn45(
|
|
7509
7462
|
"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
7463
|
className
|
|
7511
7464
|
),
|
|
7512
7465
|
...props,
|
|
7513
7466
|
children: [
|
|
7514
|
-
/* @__PURE__ */
|
|
7515
|
-
/* @__PURE__ */
|
|
7467
|
+
/* @__PURE__ */ jsx47(SelectPrimitive.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
|
|
7468
|
+
/* @__PURE__ */ jsx47(
|
|
7516
7469
|
SelectPrimitive.ItemIndicator,
|
|
7517
7470
|
{
|
|
7518
|
-
render: /* @__PURE__ */
|
|
7519
|
-
children: /* @__PURE__ */
|
|
7471
|
+
render: /* @__PURE__ */ jsx47("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
7472
|
+
children: /* @__PURE__ */ jsx47(Check3, { className: "pointer-events-none" })
|
|
7520
7473
|
}
|
|
7521
7474
|
)
|
|
7522
7475
|
]
|
|
@@ -7527,11 +7480,11 @@ function SelectSeparator({
|
|
|
7527
7480
|
className,
|
|
7528
7481
|
...props
|
|
7529
7482
|
}) {
|
|
7530
|
-
return /* @__PURE__ */
|
|
7483
|
+
return /* @__PURE__ */ jsx47(
|
|
7531
7484
|
SelectPrimitive.Separator,
|
|
7532
7485
|
{
|
|
7533
7486
|
"data-slot": "select-separator",
|
|
7534
|
-
className:
|
|
7487
|
+
className: cn45("pointer-events-none -mx-1 my-1 h-px bg-border", className),
|
|
7535
7488
|
...props
|
|
7536
7489
|
}
|
|
7537
7490
|
);
|
|
@@ -7540,16 +7493,16 @@ function SelectScrollUpButton({
|
|
|
7540
7493
|
className,
|
|
7541
7494
|
...props
|
|
7542
7495
|
}) {
|
|
7543
|
-
return /* @__PURE__ */
|
|
7496
|
+
return /* @__PURE__ */ jsx47(
|
|
7544
7497
|
SelectPrimitive.ScrollUpArrow,
|
|
7545
7498
|
{
|
|
7546
7499
|
"data-slot": "select-scroll-up-button",
|
|
7547
|
-
className:
|
|
7500
|
+
className: cn45(
|
|
7548
7501
|
"top-0 z-10 flex w-full cursor-default items-center justify-center bg-background py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
7549
7502
|
className
|
|
7550
7503
|
),
|
|
7551
7504
|
...props,
|
|
7552
|
-
children: /* @__PURE__ */
|
|
7505
|
+
children: /* @__PURE__ */ jsx47(ChevronUp2, {})
|
|
7553
7506
|
}
|
|
7554
7507
|
);
|
|
7555
7508
|
}
|
|
@@ -7557,16 +7510,16 @@ function SelectScrollDownButton({
|
|
|
7557
7510
|
className,
|
|
7558
7511
|
...props
|
|
7559
7512
|
}) {
|
|
7560
|
-
return /* @__PURE__ */
|
|
7513
|
+
return /* @__PURE__ */ jsx47(
|
|
7561
7514
|
SelectPrimitive.ScrollDownArrow,
|
|
7562
7515
|
{
|
|
7563
7516
|
"data-slot": "select-scroll-down-button",
|
|
7564
|
-
className:
|
|
7517
|
+
className: cn45(
|
|
7565
7518
|
"bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-background py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
7566
7519
|
className
|
|
7567
7520
|
),
|
|
7568
7521
|
...props,
|
|
7569
|
-
children: /* @__PURE__ */
|
|
7522
|
+
children: /* @__PURE__ */ jsx47(ChevronDown3, {})
|
|
7570
7523
|
}
|
|
7571
7524
|
);
|
|
7572
7525
|
}
|
|
@@ -7576,8 +7529,8 @@ import {
|
|
|
7576
7529
|
forwardRef as forwardRef5,
|
|
7577
7530
|
useLayoutEffect as useLayoutEffect2
|
|
7578
7531
|
} from "react";
|
|
7579
|
-
import { cn as
|
|
7580
|
-
import { jsx as
|
|
7532
|
+
import { cn as cn46 } from "cn";
|
|
7533
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
7581
7534
|
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
7535
|
var STYLE_ID = "iconiq-skeleton-styles";
|
|
7583
7536
|
var SKELETON_CSS = `
|
|
@@ -7698,10 +7651,10 @@ var Skeleton = forwardRef5(function Skeleton2({
|
|
|
7698
7651
|
...style,
|
|
7699
7652
|
"--iconiq-skeleton-duration": `${variantDuration}s`
|
|
7700
7653
|
} : style;
|
|
7701
|
-
return /* @__PURE__ */
|
|
7654
|
+
return /* @__PURE__ */ jsx48(
|
|
7702
7655
|
"div",
|
|
7703
7656
|
{
|
|
7704
|
-
className:
|
|
7657
|
+
className: cn46(
|
|
7705
7658
|
componentThemeClassName,
|
|
7706
7659
|
"iconiq-skeleton-surface relative block h-4 w-full overflow-hidden",
|
|
7707
7660
|
showFade && "iconiq-skeleton-fade-root",
|
|
@@ -7712,7 +7665,7 @@ var Skeleton = forwardRef5(function Skeleton2({
|
|
|
7712
7665
|
style: animatedStyle,
|
|
7713
7666
|
...resolveSkeletonA11yProps({ animate: animate2, decorative, label }),
|
|
7714
7667
|
...props,
|
|
7715
|
-
children: showShimmer ? /* @__PURE__ */
|
|
7668
|
+
children: showShimmer ? /* @__PURE__ */ jsx48(
|
|
7716
7669
|
"span",
|
|
7717
7670
|
{
|
|
7718
7671
|
"aria-hidden": "true",
|
|
@@ -7727,10 +7680,10 @@ function SkeletonAvatar({
|
|
|
7727
7680
|
className,
|
|
7728
7681
|
...props
|
|
7729
7682
|
}) {
|
|
7730
|
-
return /* @__PURE__ */
|
|
7683
|
+
return /* @__PURE__ */ jsx48(
|
|
7731
7684
|
Skeleton,
|
|
7732
7685
|
{
|
|
7733
|
-
className:
|
|
7686
|
+
className: cn46("size-10", className),
|
|
7734
7687
|
decorative: true,
|
|
7735
7688
|
rounded: "full",
|
|
7736
7689
|
...props
|
|
@@ -7738,16 +7691,16 @@ function SkeletonAvatar({
|
|
|
7738
7691
|
);
|
|
7739
7692
|
}
|
|
7740
7693
|
function SkeletonText({ className, ...props }) {
|
|
7741
|
-
return /* @__PURE__ */
|
|
7694
|
+
return /* @__PURE__ */ jsx48(Skeleton, { className: cn46("h-3", className), decorative: true, ...props });
|
|
7742
7695
|
}
|
|
7743
7696
|
function SkeletonButton({
|
|
7744
7697
|
className,
|
|
7745
7698
|
...props
|
|
7746
7699
|
}) {
|
|
7747
|
-
return /* @__PURE__ */
|
|
7700
|
+
return /* @__PURE__ */ jsx48(
|
|
7748
7701
|
Skeleton,
|
|
7749
7702
|
{
|
|
7750
|
-
className:
|
|
7703
|
+
className: cn46("h-9 w-24", className),
|
|
7751
7704
|
decorative: true,
|
|
7752
7705
|
rounded: "lg",
|
|
7753
7706
|
...props
|
|
@@ -7759,11 +7712,11 @@ var ShimmerSkeleton = Skeleton;
|
|
|
7759
7712
|
// src/ui/sonner.tsx
|
|
7760
7713
|
import { GooeyToaster } from "goey-toast";
|
|
7761
7714
|
import { useTheme as useTheme2 } from "next-themes";
|
|
7762
|
-
import { jsx as
|
|
7715
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
7763
7716
|
var Toaster = ({ closeButton = "top-left", ...props }) => {
|
|
7764
7717
|
const { theme = "system" } = useTheme2();
|
|
7765
7718
|
const toasterTheme = theme === "dark" ? "dark" : "light";
|
|
7766
|
-
return /* @__PURE__ */
|
|
7719
|
+
return /* @__PURE__ */ jsx49(
|
|
7767
7720
|
GooeyToaster,
|
|
7768
7721
|
{
|
|
7769
7722
|
theme: toasterTheme,
|
|
@@ -7805,7 +7758,6 @@ import {
|
|
|
7805
7758
|
import { CSS } from "@dnd-kit/utilities";
|
|
7806
7759
|
import * as React16 from "react";
|
|
7807
7760
|
import * as ReactDOM from "react-dom";
|
|
7808
|
-
import { cn as cn48 } from "cn";
|
|
7809
7761
|
|
|
7810
7762
|
// src/hooks/use-isomorphic-layout-effect.ts
|
|
7811
7763
|
import * as React14 from "react";
|
|
@@ -7850,7 +7802,8 @@ function useComposedRefs(...refs) {
|
|
|
7850
7802
|
}
|
|
7851
7803
|
|
|
7852
7804
|
// src/ui/sortable.tsx
|
|
7853
|
-
import {
|
|
7805
|
+
import { cn as cn47 } from "cn";
|
|
7806
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
7854
7807
|
var orientationConfig = {
|
|
7855
7808
|
vertical: {
|
|
7856
7809
|
modifiers: [restrictToVerticalAxis, restrictToParentElement],
|
|
@@ -8035,11 +7988,11 @@ function Sortable(props) {
|
|
|
8035
7988
|
flatCursor
|
|
8036
7989
|
]
|
|
8037
7990
|
);
|
|
8038
|
-
return /* @__PURE__ */
|
|
7991
|
+
return /* @__PURE__ */ jsx50(
|
|
8039
7992
|
SortableRootContext.Provider,
|
|
8040
7993
|
{
|
|
8041
7994
|
value: contextValue,
|
|
8042
|
-
children: /* @__PURE__ */
|
|
7995
|
+
children: /* @__PURE__ */ jsx50(
|
|
8043
7996
|
DndContext,
|
|
8044
7997
|
{
|
|
8045
7998
|
collisionDetection: collisionDetection ?? config.collisionDetection,
|
|
@@ -8088,7 +8041,7 @@ function SortableContent(props) {
|
|
|
8088
8041
|
},
|
|
8089
8042
|
enabled: !withoutSlot
|
|
8090
8043
|
});
|
|
8091
|
-
return /* @__PURE__ */
|
|
8044
|
+
return /* @__PURE__ */ jsx50(SortableContentContext.Provider, { value: true, children: /* @__PURE__ */ jsx50(
|
|
8092
8045
|
SortableContext,
|
|
8093
8046
|
{
|
|
8094
8047
|
items: context.items,
|
|
@@ -8172,7 +8125,7 @@ function SortableItem(props) {
|
|
|
8172
8125
|
id,
|
|
8173
8126
|
ref: composedRef,
|
|
8174
8127
|
style: composedStyle,
|
|
8175
|
-
className:
|
|
8128
|
+
className: cn47(
|
|
8176
8129
|
"focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
8177
8130
|
{
|
|
8178
8131
|
"touch-none select-none": asHandle,
|
|
@@ -8195,7 +8148,7 @@ function SortableItem(props) {
|
|
|
8195
8148
|
...isDragging && { dragging: "" }
|
|
8196
8149
|
}
|
|
8197
8150
|
});
|
|
8198
|
-
return /* @__PURE__ */
|
|
8151
|
+
return /* @__PURE__ */ jsx50(SortableItemContext.Provider, { value: itemContext, children: element });
|
|
8199
8152
|
}
|
|
8200
8153
|
function SortableItemHandle(props) {
|
|
8201
8154
|
const { disabled, className, render, ref, ...itemHandleProps } = props;
|
|
@@ -8220,7 +8173,7 @@ function SortableItemHandle(props) {
|
|
|
8220
8173
|
"aria-controls": itemContext.id,
|
|
8221
8174
|
ref: composedRef,
|
|
8222
8175
|
disabled: isDisabled,
|
|
8223
|
-
className:
|
|
8176
|
+
className: cn47(
|
|
8224
8177
|
"select-none disabled:pointer-events-none disabled:opacity-50",
|
|
8225
8178
|
context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
|
|
8226
8179
|
className
|
|
@@ -8255,20 +8208,57 @@ function SortableOverlay(props) {
|
|
|
8255
8208
|
const container = containerProp ?? (mounted ? globalThis.document?.body : null);
|
|
8256
8209
|
if (!container) return null;
|
|
8257
8210
|
return ReactDOM.createPortal(
|
|
8258
|
-
/* @__PURE__ */
|
|
8211
|
+
/* @__PURE__ */ jsx50(
|
|
8259
8212
|
DragOverlay,
|
|
8260
8213
|
{
|
|
8261
8214
|
dropAnimation,
|
|
8262
8215
|
modifiers: context.modifiers,
|
|
8263
|
-
className:
|
|
8216
|
+
className: cn47(!context.flatCursor && "cursor-grabbing"),
|
|
8264
8217
|
...overlayProps,
|
|
8265
|
-
children: /* @__PURE__ */
|
|
8218
|
+
children: /* @__PURE__ */ jsx50(SortableOverlayContext.Provider, { value: true, children: context.activeId ? typeof children === "function" ? children({ value: context.activeId }) : children : null })
|
|
8266
8219
|
}
|
|
8267
8220
|
),
|
|
8268
8221
|
container
|
|
8269
8222
|
);
|
|
8270
8223
|
}
|
|
8271
8224
|
|
|
8225
|
+
// src/ui/swipe-actions.tsx
|
|
8226
|
+
import * as SwipeActionsPrimitive from "@ncdai/react-swipe-actions";
|
|
8227
|
+
import { cn as cn48 } from "cn";
|
|
8228
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
8229
|
+
var SwipeRoot2 = SwipeActionsPrimitive.SwipeRoot;
|
|
8230
|
+
var SwipeItem2 = SwipeActionsPrimitive.SwipeItem;
|
|
8231
|
+
var SwipeActions2 = SwipeActionsPrimitive.SwipeActions;
|
|
8232
|
+
function SwipeAction2({
|
|
8233
|
+
className,
|
|
8234
|
+
children,
|
|
8235
|
+
...props
|
|
8236
|
+
}) {
|
|
8237
|
+
return /* @__PURE__ */ jsx51(
|
|
8238
|
+
SwipeActionsPrimitive.SwipeAction,
|
|
8239
|
+
{
|
|
8240
|
+
className: cn48(
|
|
8241
|
+
"bg-secondary text-xs font-medium whitespace-nowrap text-secondary-foreground select-none focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-foreground data-armed:brightness-90 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
8242
|
+
className
|
|
8243
|
+
),
|
|
8244
|
+
...props,
|
|
8245
|
+
children: /* @__PURE__ */ jsx51(SwipeActionsPrimitive.SwipeActionContent, { className: "min-w-20 flex-col items-center justify-center gap-1.5 px-4", children })
|
|
8246
|
+
}
|
|
8247
|
+
);
|
|
8248
|
+
}
|
|
8249
|
+
function SwipeContent2({
|
|
8250
|
+
className,
|
|
8251
|
+
...props
|
|
8252
|
+
}) {
|
|
8253
|
+
return /* @__PURE__ */ jsx51(
|
|
8254
|
+
SwipeActionsPrimitive.SwipeContent,
|
|
8255
|
+
{
|
|
8256
|
+
className: cn48("data-dragging:cursor-grabbing", className),
|
|
8257
|
+
...props
|
|
8258
|
+
}
|
|
8259
|
+
);
|
|
8260
|
+
}
|
|
8261
|
+
|
|
8272
8262
|
// src/ui/switch.tsx
|
|
8273
8263
|
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
8274
8264
|
import { cn as cn49 } from "cn";
|
|
@@ -8304,7 +8294,7 @@ import { cn as cn50 } from "cn";
|
|
|
8304
8294
|
import { motion as motion8, useReducedMotion as useReducedMotion3 } from "motion/react";
|
|
8305
8295
|
import { useTheme as useTheme3 } from "next-themes";
|
|
8306
8296
|
import { useId as useId7 } from "react";
|
|
8307
|
-
import { jsx as jsx53, jsxs as
|
|
8297
|
+
import { jsx as jsx53, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
8308
8298
|
var MORPH = { type: "spring", visualDuration: 0.4, bounce: 0 };
|
|
8309
8299
|
var RAY_STAGGER = 0.018;
|
|
8310
8300
|
var EASE_OUT3 = [0.23, 1, 0.32, 1];
|
|
@@ -8353,7 +8343,7 @@ function ThemeToggle({
|
|
|
8353
8343
|
size === "lg" && "size-9",
|
|
8354
8344
|
className
|
|
8355
8345
|
),
|
|
8356
|
-
children: /* @__PURE__ */
|
|
8346
|
+
children: /* @__PURE__ */ jsxs28(
|
|
8357
8347
|
motion8.svg,
|
|
8358
8348
|
{
|
|
8359
8349
|
"aria-hidden": true,
|
|
@@ -8363,7 +8353,7 @@ function ThemeToggle({
|
|
|
8363
8353
|
animate: { rotate: dark ? MOON_TILT : 0 },
|
|
8364
8354
|
transition: morph,
|
|
8365
8355
|
children: [
|
|
8366
|
-
/* @__PURE__ */ jsx53("defs", { children: /* @__PURE__ */
|
|
8356
|
+
/* @__PURE__ */ jsx53("defs", { children: /* @__PURE__ */ jsxs28(
|
|
8367
8357
|
"mask",
|
|
8368
8358
|
{
|
|
8369
8359
|
id: maskId,
|
|
@@ -8688,11 +8678,16 @@ export {
|
|
|
8688
8678
|
SortableItem,
|
|
8689
8679
|
SortableItemHandle,
|
|
8690
8680
|
SortableOverlay,
|
|
8681
|
+
SwipeAction2 as SwipeAction,
|
|
8682
|
+
SwipeActions2 as SwipeActions,
|
|
8683
|
+
SwipeContent2 as SwipeContent,
|
|
8684
|
+
SwipeItem2 as SwipeItem,
|
|
8685
|
+
SwipeRoot2 as SwipeRoot,
|
|
8691
8686
|
Switch,
|
|
8692
8687
|
Textarea,
|
|
8693
8688
|
ThemeToggle,
|
|
8694
8689
|
Toaster,
|
|
8695
|
-
|
|
8690
|
+
Tooltip,
|
|
8696
8691
|
TooltipContent,
|
|
8697
8692
|
TooltipProvider,
|
|
8698
8693
|
TooltipTrigger,
|