@alexgorbatchev/shadcn 0.0.17 → 0.0.19
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 +11 -7
- package/dist/{chunk-hhvp5352.js → chunk-0jb0xgdb.js} +1 -1
- package/dist/{chunk-yn3e9w1j.js → chunk-0q6mg89k.js} +1 -1
- package/dist/{chunk-jy6nfnbx.js → chunk-0zwxgwr4.js} +2 -2
- package/dist/{chunk-3esarnmt.js → chunk-155c0btb.js} +1 -1
- package/dist/{chunk-tsekdy3w.js → chunk-1tgrhacr.js} +12 -3
- package/dist/{chunk-7g39g3h8.js → chunk-2e4fnx0e.js} +1 -1
- package/dist/{chunk-0yqwq0ev.js → chunk-2qxy1r5y.js} +8 -8
- package/dist/{chunk-299wvwy8.js → chunk-38kwkd1a.js} +2 -2
- package/dist/{chunk-xvs5y4v7.js → chunk-45kmek5e.js} +1 -1
- package/dist/{chunk-rrd9fsz6.js → chunk-6wvtsf2m.js} +4 -4
- package/dist/{chunk-zhnwybhq.js → chunk-717ggspf.js} +1 -1
- package/dist/{chunk-5h7vkgvz.js → chunk-82cw4kcg.js} +1 -1
- package/dist/{chunk-1hbge1cb.js → chunk-82vfgkjv.js} +1 -1
- package/dist/{chunk-r9mng3ws.js → chunk-8x8yxf6x.js} +1 -1
- package/dist/{chunk-j5wk4ffj.js → chunk-aewjmzt9.js} +1 -1
- package/dist/{chunk-ets9h67e.js → chunk-akaezred.js} +2 -2
- package/dist/{chunk-34ndz1gf.js → chunk-c6b2cfw4.js} +1 -1
- package/dist/{chunk-fq8taatb.js → chunk-c900175p.js} +1 -1
- package/dist/{chunk-dnja1pz5.js → chunk-cre60717.js} +1 -1
- package/dist/{chunk-jwajmmfb.js → chunk-dppmqr99.js} +1 -1
- package/dist/{chunk-0xrvhezs.js → chunk-f73en61v.js} +1 -1
- package/dist/{chunk-5ntb7p4q.js → chunk-f8758vjx.js} +38 -18
- package/dist/{chunk-avrh238b.js → chunk-fyb0b7bp.js} +1 -1
- package/dist/{chunk-1apg76a7.js → chunk-g7v9cqyg.js} +1 -1
- package/dist/{chunk-22678d2t.js → chunk-h46mdagy.js} +1 -1
- package/dist/{chunk-dd53t01w.js → chunk-k4vvp62d.js} +1 -1
- package/dist/{chunk-q9qm7skj.js → chunk-k89xxj12.js} +4 -4
- package/dist/{chunk-a6e11wj6.js → chunk-kc4mmrwk.js} +1 -1
- package/dist/{chunk-3hvpcsb4.js → chunk-qw7229kj.js} +1 -1
- package/dist/{chunk-ha24sd50.js → chunk-r3artnc9.js} +1 -1
- package/dist/{chunk-wwfj7ga3.js → chunk-r4fr62ca.js} +1 -1
- package/dist/{chunk-erpzgt57.js → chunk-s3b87adw.js} +1 -1
- package/dist/chunk-v4yqjvzd.js +114 -0
- package/dist/{chunk-fh3nme7f.js → chunk-vpj3vk7v.js} +1 -1
- package/dist/{chunk-4gby2v61.js → chunk-waat2ksf.js} +1 -1
- package/dist/{chunk-gknaq8ep.js → chunk-wxncy44f.js} +1 -1
- package/dist/{chunk-jxwfkmdh.js → chunk-x82x81th.js} +3 -3
- package/dist/{chunk-9zyam2cn.js → chunk-z5d2zpnj.js} +1 -1
- package/dist/{chunk-h77yk9sn.js → chunk-zhdp6qrb.js} +1 -1
- package/dist/components/ButtonLink.d.ts +12 -0
- package/dist/components/Card.d.ts +6 -2
- package/dist/components/DensityProvider.d.ts +9 -4
- package/dist/components/assistant-ui/elements/BackgroundInbox.js +2 -2
- package/dist/components/assistant-ui/elements/Chart.js +2 -2
- package/dist/components/assistant-ui/elements/CodeDiff.js +2 -2
- package/dist/components/assistant-ui/elements/CommandPalette.js +3 -3
- package/dist/components/assistant-ui/elements/DataTable.js +2 -2
- package/dist/components/assistant-ui/elements/EditMessage.js +2 -2
- package/dist/components/assistant-ui/elements/ElicitationForm.js +2 -2
- package/dist/components/assistant-ui/elements/FeedbackDialog.js +2 -2
- package/dist/components/assistant-ui/elements/FileTree.js +2 -2
- package/dist/components/assistant-ui/elements/FlowGraph.js +2 -2
- package/dist/components/assistant-ui/elements/GenerativeUi.js +4 -4
- package/dist/components/assistant-ui/elements/Image.js +2 -2
- package/dist/components/assistant-ui/elements/ImageGallery.js +2 -2
- package/dist/components/assistant-ui/elements/McpServerPanel.js +2 -2
- package/dist/components/assistant-ui/elements/MermaidDiagram.js +3 -3
- package/dist/components/assistant-ui/elements/MermaidZoom.js +2 -2
- package/dist/components/assistant-ui/elements/ModelPicker.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelector.js +9 -9
- package/dist/components/assistant-ui/elements/ModelSelectorContent.js +8 -8
- package/dist/components/assistant-ui/elements/ModelSelectorEmpty.js +3 -3
- package/dist/components/assistant-ui/elements/ModelSelectorFocusAnchor.js +3 -3
- package/dist/components/assistant-ui/elements/ModelSelectorGroup.js +3 -3
- package/dist/components/assistant-ui/elements/ModelSelectorItem.js +3 -3
- package/dist/components/assistant-ui/elements/ModelSelectorList.js +5 -5
- package/dist/components/assistant-ui/elements/ModelSelectorSearch.js +3 -3
- package/dist/components/assistant-ui/elements/ModelSelectorSeparator.js +3 -3
- package/dist/components/assistant-ui/index.js +29 -29
- package/dist/components/assistant-ui/native/AssistantModal.js +6 -6
- package/dist/components/assistant-ui/native/AssistantSidebar.js +5 -5
- package/dist/components/assistant-ui/native/AttachmentPreview.js +2 -2
- package/dist/components/assistant-ui/native/McpConfigDialog.js +2 -2
- package/dist/components/assistant-ui/native/MermaidDiagram.js +4 -4
- package/dist/components/assistant-ui/native/ModelSelector.js +11 -11
- package/dist/components/assistant-ui/native/Thread.d.ts +9 -3
- package/dist/components/assistant-ui/native/Thread.js +4 -4
- package/dist/components/assistant-ui/native/ThreadList.js +1 -1
- package/dist/components/assistant-ui/native/ThreadListSidebar.js +3 -3
- package/dist/components/assistant-ui/native/index.js +23 -23
- package/dist/components/command/index.js +2 -2
- package/dist/hooks/useCardSpotlight.d.ts +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +384 -342
- package/dist/theme.css +92 -16
- package/package.json +3 -3
- package/dist/chunk-fqekyjkh.js +0 -65
package/dist/index.js
CHANGED
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
DialogFooter2,
|
|
78
78
|
DialogTitle2,
|
|
79
79
|
DialogDescription2
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-717ggspf.js";
|
|
81
81
|
import {
|
|
82
82
|
Slider2
|
|
83
83
|
} from "./chunk-644cnngf.js";
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
CardAction2,
|
|
106
106
|
CardContent2,
|
|
107
107
|
CardFooter2
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-v4yqjvzd.js";
|
|
109
109
|
import {
|
|
110
110
|
InputGroup2,
|
|
111
111
|
InputGroupAddon2,
|
|
@@ -221,13 +221,45 @@ import {
|
|
|
221
221
|
SidebarMenuSub2,
|
|
222
222
|
SidebarMenuSubItem2,
|
|
223
223
|
SidebarMenuSubButton2
|
|
224
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-45kmek5e.js";
|
|
225
|
+
// src/components/ButtonLink.tsx
|
|
226
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
227
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
228
|
+
import { jsx } from "react/jsx-runtime";
|
|
229
|
+
function ButtonLink({
|
|
230
|
+
density,
|
|
231
|
+
className,
|
|
232
|
+
variant = "default",
|
|
233
|
+
size = "default",
|
|
234
|
+
align = "center",
|
|
235
|
+
truncate = false,
|
|
236
|
+
fullWidth = false,
|
|
237
|
+
render,
|
|
238
|
+
children,
|
|
239
|
+
...props
|
|
240
|
+
}) {
|
|
241
|
+
return useRender({
|
|
242
|
+
defaultTagName: "a",
|
|
243
|
+
props: mergeProps({
|
|
244
|
+
className: cn2(buttonVariants2({ variant, size, align, truncate, fullWidth }), className),
|
|
245
|
+
children: truncate ? /* @__PURE__ */ jsx("span", {
|
|
246
|
+
className: "min-w-0 truncate",
|
|
247
|
+
children
|
|
248
|
+
}) : children
|
|
249
|
+
}, props),
|
|
250
|
+
render,
|
|
251
|
+
state: {
|
|
252
|
+
slot: "button-link",
|
|
253
|
+
density
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
}
|
|
225
257
|
// src/components/Accordion.tsx
|
|
226
258
|
import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
|
|
227
259
|
import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
228
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
260
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
229
261
|
function Accordion({ density, className, ...props }) {
|
|
230
|
-
return /* @__PURE__ */
|
|
262
|
+
return /* @__PURE__ */ jsx2(AccordionPrimitive.Root, {
|
|
231
263
|
"data-density": density,
|
|
232
264
|
"data-slot": "accordion",
|
|
233
265
|
className: (state) => cn2("flex w-full flex-col", typeof className === "function" ? className(state) : className),
|
|
@@ -235,7 +267,7 @@ function Accordion({ density, className, ...props }) {
|
|
|
235
267
|
});
|
|
236
268
|
}
|
|
237
269
|
function AccordionItem({ density, className, ...props }) {
|
|
238
|
-
return /* @__PURE__ */
|
|
270
|
+
return /* @__PURE__ */ jsx2(AccordionPrimitive.Item, {
|
|
239
271
|
"data-density": density,
|
|
240
272
|
"data-slot": "accordion-item",
|
|
241
273
|
className: (state) => cn2("not-last:border-b", typeof className === "function" ? className(state) : className),
|
|
@@ -243,7 +275,7 @@ function AccordionItem({ density, className, ...props }) {
|
|
|
243
275
|
});
|
|
244
276
|
}
|
|
245
277
|
function AccordionTrigger({ density, className, children, ...props }) {
|
|
246
|
-
return /* @__PURE__ */
|
|
278
|
+
return /* @__PURE__ */ jsx2(AccordionPrimitive.Header, {
|
|
247
279
|
className: "flex",
|
|
248
280
|
children: /* @__PURE__ */ jsxs(AccordionPrimitive.Trigger, {
|
|
249
281
|
"data-density": density,
|
|
@@ -252,11 +284,11 @@ function AccordionTrigger({ density, className, children, ...props }) {
|
|
|
252
284
|
...props,
|
|
253
285
|
children: [
|
|
254
286
|
children,
|
|
255
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ jsx2(ChevronDownIcon, {
|
|
256
288
|
"data-slot": "accordion-trigger-icon",
|
|
257
289
|
className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"
|
|
258
290
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ jsx2(ChevronUpIcon, {
|
|
260
292
|
"data-slot": "accordion-trigger-icon",
|
|
261
293
|
className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline"
|
|
262
294
|
})
|
|
@@ -265,12 +297,12 @@ function AccordionTrigger({ density, className, children, ...props }) {
|
|
|
265
297
|
});
|
|
266
298
|
}
|
|
267
299
|
function AccordionContent({ density, className, children, ...props }) {
|
|
268
|
-
return /* @__PURE__ */
|
|
300
|
+
return /* @__PURE__ */ jsx2(AccordionPrimitive.Panel, {
|
|
269
301
|
"data-density": density,
|
|
270
302
|
"data-slot": "accordion-content",
|
|
271
303
|
className: (state) => cn2("h-(--accordion-panel-height) overflow-hidden text-sm transition-[height] duration-200 ease-out data-ending-style:h-0 data-starting-style:h-0", typeof className === "function" ? className(state) : className),
|
|
272
304
|
...props,
|
|
273
|
-
children: /* @__PURE__ */
|
|
305
|
+
children: /* @__PURE__ */ jsx2("div", {
|
|
274
306
|
className: "pt-0 pb-2.5 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",
|
|
275
307
|
children
|
|
276
308
|
})
|
|
@@ -280,10 +312,10 @@ function AccordionContent({ density, className, children, ...props }) {
|
|
|
280
312
|
import { useDirection } from "@base-ui/react/direction-provider";
|
|
281
313
|
import { Combobox as ComboboxPrimitive } from "@base-ui/react/combobox";
|
|
282
314
|
import { ChevronDownIcon as ChevronDownIcon2, XIcon, CheckIcon } from "lucide-react";
|
|
283
|
-
import { jsx as
|
|
315
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
284
316
|
var Combobox = ComboboxPrimitive.Root;
|
|
285
317
|
function ComboboxValue({ ...props }) {
|
|
286
|
-
return /* @__PURE__ */
|
|
318
|
+
return /* @__PURE__ */ jsx3(ComboboxPrimitive.Value, {
|
|
287
319
|
...props
|
|
288
320
|
});
|
|
289
321
|
}
|
|
@@ -295,23 +327,23 @@ function ComboboxTrigger({ density, className, children, ...props }) {
|
|
|
295
327
|
...props,
|
|
296
328
|
children: [
|
|
297
329
|
children,
|
|
298
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ jsx3(ChevronDownIcon2, {
|
|
299
331
|
className: "pointer-events-none size-4 text-muted-foreground"
|
|
300
332
|
})
|
|
301
333
|
]
|
|
302
334
|
});
|
|
303
335
|
}
|
|
304
336
|
function ComboboxClear({ density, className, ...props }) {
|
|
305
|
-
return /* @__PURE__ */
|
|
337
|
+
return /* @__PURE__ */ jsx3(ComboboxPrimitive.Clear, {
|
|
306
338
|
"data-density": density,
|
|
307
339
|
"data-slot": "combobox-clear",
|
|
308
|
-
render: /* @__PURE__ */
|
|
340
|
+
render: /* @__PURE__ */ jsx3(InputGroupButton2, {
|
|
309
341
|
variant: "ghost",
|
|
310
342
|
size: "icon-xs"
|
|
311
343
|
}),
|
|
312
344
|
className: (state) => cn2(typeof className === "function" ? className(state) : className),
|
|
313
345
|
...props,
|
|
314
|
-
children: /* @__PURE__ */
|
|
346
|
+
children: /* @__PURE__ */ jsx3(XIcon, {
|
|
315
347
|
className: "pointer-events-none"
|
|
316
348
|
})
|
|
317
349
|
});
|
|
@@ -332,26 +364,26 @@ function ComboboxInput({
|
|
|
332
364
|
density,
|
|
333
365
|
className: cn2("w-auto", frameClassName),
|
|
334
366
|
children: [
|
|
335
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ jsx3(ComboboxPrimitive.Input, {
|
|
336
368
|
disabled,
|
|
337
369
|
className,
|
|
338
|
-
render: /* @__PURE__ */
|
|
370
|
+
render: /* @__PURE__ */ jsx3(InputGroupInput2, {}),
|
|
339
371
|
...props
|
|
340
372
|
}),
|
|
341
373
|
/* @__PURE__ */ jsxs2(InputGroupAddon2, {
|
|
342
374
|
align: "inline-end",
|
|
343
375
|
children: [
|
|
344
|
-
showTrigger && /* @__PURE__ */
|
|
376
|
+
showTrigger && /* @__PURE__ */ jsx3(InputGroupButton2, {
|
|
345
377
|
size: "icon-xs",
|
|
346
378
|
variant: "ghost",
|
|
347
|
-
render: /* @__PURE__ */
|
|
379
|
+
render: /* @__PURE__ */ jsx3(ComboboxTrigger, {}),
|
|
348
380
|
"aria-label": triggerLabel,
|
|
349
381
|
"data-density": density,
|
|
350
382
|
"data-slot": "input-group-button",
|
|
351
383
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
352
384
|
disabled
|
|
353
385
|
}),
|
|
354
|
-
showClear && /* @__PURE__ */
|
|
386
|
+
showClear && /* @__PURE__ */ jsx3(ComboboxClear, {
|
|
355
387
|
disabled,
|
|
356
388
|
"aria-label": clearLabel
|
|
357
389
|
})
|
|
@@ -374,16 +406,16 @@ function ComboboxContent({
|
|
|
374
406
|
const resolvedDensity = useDensity(density);
|
|
375
407
|
const direction = useDirection();
|
|
376
408
|
const container = usePortalContainer2();
|
|
377
|
-
return /* @__PURE__ */
|
|
409
|
+
return /* @__PURE__ */ jsx3(ComboboxPrimitive.Portal, {
|
|
378
410
|
container,
|
|
379
|
-
children: /* @__PURE__ */
|
|
411
|
+
children: /* @__PURE__ */ jsx3(ComboboxPrimitive.Positioner, {
|
|
380
412
|
side,
|
|
381
413
|
sideOffset,
|
|
382
414
|
align,
|
|
383
415
|
alignOffset,
|
|
384
416
|
anchor,
|
|
385
417
|
className: "isolate ",
|
|
386
|
-
children: /* @__PURE__ */
|
|
418
|
+
children: /* @__PURE__ */ jsx3(ComboboxPrimitive.Popup, {
|
|
387
419
|
dir: direction,
|
|
388
420
|
"data-density": resolvedDensity,
|
|
389
421
|
"data-slot": "combobox-content",
|
|
@@ -395,7 +427,7 @@ function ComboboxContent({
|
|
|
395
427
|
});
|
|
396
428
|
}
|
|
397
429
|
function ComboboxList({ density, className, ...props }) {
|
|
398
|
-
return /* @__PURE__ */
|
|
430
|
+
return /* @__PURE__ */ jsx3(ComboboxPrimitive.List, {
|
|
399
431
|
"data-density": density,
|
|
400
432
|
"data-slot": "combobox-list",
|
|
401
433
|
className: (state) => cn2("no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0", typeof className === "function" ? className(state) : className),
|
|
@@ -410,11 +442,11 @@ function ComboboxItem({ density, className, children, ...props }) {
|
|
|
410
442
|
...props,
|
|
411
443
|
children: [
|
|
412
444
|
children,
|
|
413
|
-
/* @__PURE__ */
|
|
414
|
-
render: /* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ jsx3(ComboboxPrimitive.ItemIndicator, {
|
|
446
|
+
render: /* @__PURE__ */ jsx3("span", {
|
|
415
447
|
className: "pointer-events-none absolute end-2 flex size-4 items-center justify-center"
|
|
416
448
|
}),
|
|
417
|
-
children: /* @__PURE__ */
|
|
449
|
+
children: /* @__PURE__ */ jsx3(CheckIcon, {
|
|
418
450
|
className: "pointer-events-none"
|
|
419
451
|
})
|
|
420
452
|
})
|
|
@@ -422,7 +454,7 @@ function ComboboxItem({ density, className, children, ...props }) {
|
|
|
422
454
|
});
|
|
423
455
|
}
|
|
424
456
|
function ComboboxGroup({ density, className, ...props }) {
|
|
425
|
-
return /* @__PURE__ */
|
|
457
|
+
return /* @__PURE__ */ jsx3(ComboboxPrimitive.Group, {
|
|
426
458
|
"data-density": density,
|
|
427
459
|
"data-slot": "combobox-group",
|
|
428
460
|
className: (state) => cn2(typeof className === "function" ? className(state) : className),
|
|
@@ -430,7 +462,7 @@ function ComboboxGroup({ density, className, ...props }) {
|
|
|
430
462
|
});
|
|
431
463
|
}
|
|
432
464
|
function ComboboxLabel({ density, className, ...props }) {
|
|
433
|
-
return /* @__PURE__ */
|
|
465
|
+
return /* @__PURE__ */ jsx3(ComboboxPrimitive.GroupLabel, {
|
|
434
466
|
"data-density": density,
|
|
435
467
|
"data-slot": "combobox-label",
|
|
436
468
|
className: (state) => cn2("px-2 py-1.5 text-xs text-muted-foreground", typeof className === "function" ? className(state) : className),
|
|
@@ -438,12 +470,12 @@ function ComboboxLabel({ density, className, ...props }) {
|
|
|
438
470
|
});
|
|
439
471
|
}
|
|
440
472
|
function ComboboxCollection({ ...props }) {
|
|
441
|
-
return /* @__PURE__ */
|
|
473
|
+
return /* @__PURE__ */ jsx3(ComboboxPrimitive.Collection, {
|
|
442
474
|
...props
|
|
443
475
|
});
|
|
444
476
|
}
|
|
445
477
|
function ComboboxEmpty({ density, className, ...props }) {
|
|
446
|
-
return /* @__PURE__ */
|
|
478
|
+
return /* @__PURE__ */ jsx3(ComboboxPrimitive.Empty, {
|
|
447
479
|
"data-density": density,
|
|
448
480
|
"data-slot": "combobox-empty",
|
|
449
481
|
className: (state) => cn2("flex w-full justify-center py-2 empty:p-0 text-center text-sm text-muted-foreground", typeof className === "function" ? className(state) : className),
|
|
@@ -451,7 +483,7 @@ function ComboboxEmpty({ density, className, ...props }) {
|
|
|
451
483
|
});
|
|
452
484
|
}
|
|
453
485
|
function ComboboxSeparator({ density, className, ...props }) {
|
|
454
|
-
return /* @__PURE__ */
|
|
486
|
+
return /* @__PURE__ */ jsx3(ComboboxPrimitive.Separator, {
|
|
455
487
|
"data-density": density,
|
|
456
488
|
"data-slot": "combobox-separator",
|
|
457
489
|
className: (state) => cn2("-mx-1 my-1 h-px bg-border", typeof className === "function" ? className(state) : className),
|
|
@@ -459,7 +491,7 @@ function ComboboxSeparator({ density, className, ...props }) {
|
|
|
459
491
|
});
|
|
460
492
|
}
|
|
461
493
|
function ComboboxChips({ density, className, ...props }) {
|
|
462
|
-
return /* @__PURE__ */
|
|
494
|
+
return /* @__PURE__ */ jsx3(ComboboxPrimitive.Chips, {
|
|
463
495
|
"data-density": density,
|
|
464
496
|
"data-slot": "combobox-chips",
|
|
465
497
|
className: (state) => cn2("flex min-h-control flex-wrap items-center gap-1 rounded-sm border border-input bg-transparent bg-clip-padding px-control-x py-px text-sm transition-colors focus-within:border-ring focus-within:ring-1 focus-within:ring-ring has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive has-data-[slot=combobox-chip]:px-1", typeof className === "function" ? className(state) : className),
|
|
@@ -474,15 +506,15 @@ function ComboboxChip({ density, className, children, showRemove = true, ...prop
|
|
|
474
506
|
...props,
|
|
475
507
|
children: [
|
|
476
508
|
children,
|
|
477
|
-
showRemove && /* @__PURE__ */
|
|
478
|
-
render: /* @__PURE__ */
|
|
509
|
+
showRemove && /* @__PURE__ */ jsx3(ComboboxPrimitive.ChipRemove, {
|
|
510
|
+
render: /* @__PURE__ */ jsx3(Button2, {
|
|
479
511
|
variant: "ghost",
|
|
480
512
|
size: "icon-xs"
|
|
481
513
|
}),
|
|
482
514
|
className: "size-tag -ms-1 opacity-50 hover:opacity-100",
|
|
483
515
|
"data-slot": "combobox-chip-remove",
|
|
484
516
|
"aria-label": "Remove item",
|
|
485
|
-
children: /* @__PURE__ */
|
|
517
|
+
children: /* @__PURE__ */ jsx3(XIcon, {
|
|
486
518
|
className: "pointer-events-none"
|
|
487
519
|
})
|
|
488
520
|
})
|
|
@@ -490,7 +522,7 @@ function ComboboxChip({ density, className, children, showRemove = true, ...prop
|
|
|
490
522
|
});
|
|
491
523
|
}
|
|
492
524
|
function ComboboxChipsInput({ density, className, ...props }) {
|
|
493
|
-
return /* @__PURE__ */
|
|
525
|
+
return /* @__PURE__ */ jsx3(ComboboxPrimitive.Input, {
|
|
494
526
|
"data-density": density,
|
|
495
527
|
"data-slot": "combobox-chip-input",
|
|
496
528
|
className: (state) => cn2("h-tag min-w-16 flex-1 py-0 text-sm leading-none outline-none", typeof className === "function" ? className(state) : className),
|
|
@@ -500,9 +532,9 @@ function ComboboxChipsInput({ density, className, ...props }) {
|
|
|
500
532
|
// src/components/Tabs.tsx
|
|
501
533
|
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
502
534
|
import { cva } from "class-variance-authority";
|
|
503
|
-
import { jsx as
|
|
535
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
504
536
|
function Tabs({ density, className, orientation = "horizontal", ...props }) {
|
|
505
|
-
return /* @__PURE__ */
|
|
537
|
+
return /* @__PURE__ */ jsx4(TabsPrimitive.Root, {
|
|
506
538
|
"data-density": density,
|
|
507
539
|
"data-slot": "tabs",
|
|
508
540
|
orientation,
|
|
@@ -522,7 +554,7 @@ var tabsListVariants = cva("group/tabs-list inline-flex w-fit items-center justi
|
|
|
522
554
|
}
|
|
523
555
|
});
|
|
524
556
|
function TabsList({ density, className, variant = "default", ...props }) {
|
|
525
|
-
return /* @__PURE__ */
|
|
557
|
+
return /* @__PURE__ */ jsx4(TabsPrimitive.List, {
|
|
526
558
|
"data-density": density,
|
|
527
559
|
"data-slot": "tabs-list",
|
|
528
560
|
"data-variant": variant,
|
|
@@ -531,7 +563,7 @@ function TabsList({ density, className, variant = "default", ...props }) {
|
|
|
531
563
|
});
|
|
532
564
|
}
|
|
533
565
|
function TabsTrigger({ density, className, ...props }) {
|
|
534
|
-
return /* @__PURE__ */
|
|
566
|
+
return /* @__PURE__ */ jsx4(TabsPrimitive.Tab, {
|
|
535
567
|
"data-density": density,
|
|
536
568
|
"data-slot": "tabs-trigger",
|
|
537
569
|
className: (state) => cn2("relative inline-flex h-full flex-1 items-center justify-center gap-control-gap rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-colors group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pe-1 has-data-[icon=inline-start]:ps-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:bg-background data-active:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-end-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", typeof className === "function" ? className(state) : className),
|
|
@@ -539,7 +571,7 @@ function TabsTrigger({ density, className, ...props }) {
|
|
|
539
571
|
});
|
|
540
572
|
}
|
|
541
573
|
function TabsContent({ density, className, ...props }) {
|
|
542
|
-
return /* @__PURE__ */
|
|
574
|
+
return /* @__PURE__ */ jsx4(TabsPrimitive.Panel, {
|
|
543
575
|
"data-density": density,
|
|
544
576
|
"data-slot": "tabs-content",
|
|
545
577
|
className: (state) => cn2("flex-1 text-sm outline-none", typeof className === "function" ? className(state) : className),
|
|
@@ -555,17 +587,17 @@ import { createContext } from "react";
|
|
|
555
587
|
var DragDropContext = createContext(null);
|
|
556
588
|
|
|
557
589
|
// src/components/DragDropPreview.tsx
|
|
558
|
-
import { jsx as
|
|
590
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
559
591
|
function DragDropPreview({ labels, maxItems = 5 }) {
|
|
560
592
|
const limit = Math.max(1, Math.floor(maxItems));
|
|
561
593
|
return /* @__PURE__ */ jsxs3("div", {
|
|
562
594
|
"data-slot": "drag-drop-preview",
|
|
563
595
|
className: "flex w-max max-w-64 flex-col items-start gap-1",
|
|
564
596
|
children: [
|
|
565
|
-
labels.slice(0, limit).map((label, index) => /* @__PURE__ */
|
|
597
|
+
labels.slice(0, limit).map((label, index) => /* @__PURE__ */ jsx5(Badge2, {
|
|
566
598
|
variant: "secondary",
|
|
567
599
|
density: "compact",
|
|
568
|
-
children: /* @__PURE__ */
|
|
600
|
+
children: /* @__PURE__ */ jsx5("span", {
|
|
569
601
|
className: "max-w-60 truncate",
|
|
570
602
|
children: label
|
|
571
603
|
})
|
|
@@ -584,7 +616,7 @@ function DragDropPreview({ labels, maxItems = 5 }) {
|
|
|
584
616
|
}
|
|
585
617
|
|
|
586
618
|
// src/components/DragDropProvider.tsx
|
|
587
|
-
import { jsx as
|
|
619
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
588
620
|
function DragDropProvider({ children, maxPreviewItems = 5 }) {
|
|
589
621
|
const [active, setActive] = useState(null);
|
|
590
622
|
const [over, setOver] = useState(null);
|
|
@@ -619,16 +651,16 @@ function DragDropProvider({ children, maxPreviewItems = 5 }) {
|
|
|
619
651
|
value: { active, over, start, end, enter, leave },
|
|
620
652
|
children: [
|
|
621
653
|
children,
|
|
622
|
-
/* @__PURE__ */
|
|
654
|
+
/* @__PURE__ */ jsx6("div", {
|
|
623
655
|
ref: preview,
|
|
624
656
|
"aria-hidden": "true",
|
|
625
657
|
className: "pointer-events-none fixed -left-[10000px] top-0 w-max",
|
|
626
|
-
children: /* @__PURE__ */
|
|
658
|
+
children: /* @__PURE__ */ jsx6(DragDropPreview, {
|
|
627
659
|
labels: active?.labels ?? [],
|
|
628
660
|
maxItems: maxPreviewItems
|
|
629
661
|
})
|
|
630
662
|
}),
|
|
631
|
-
/* @__PURE__ */
|
|
663
|
+
/* @__PURE__ */ jsx6("span", {
|
|
632
664
|
role: "status",
|
|
633
665
|
"aria-label": "Drag status",
|
|
634
666
|
className: "sr-only",
|
|
@@ -638,8 +670,8 @@ function DragDropProvider({ children, maxPreviewItems = 5 }) {
|
|
|
638
670
|
});
|
|
639
671
|
}
|
|
640
672
|
// src/components/DragSource.tsx
|
|
641
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
642
|
-
import { mergeProps } from "@base-ui/react/merge-props";
|
|
673
|
+
import { useRender as useRender2 } from "@base-ui/react/use-render";
|
|
674
|
+
import { mergeProps as mergeProps2 } from "@base-ui/react/merge-props";
|
|
643
675
|
|
|
644
676
|
// src/hooks/useDragSource.ts
|
|
645
677
|
import { useId } from "react";
|
|
@@ -693,16 +725,16 @@ function DragSource({
|
|
|
693
725
|
...props
|
|
694
726
|
}) {
|
|
695
727
|
const source = useDragSource({ type, data, labels, effectAllowed, disabled });
|
|
696
|
-
return
|
|
728
|
+
return useRender2({
|
|
697
729
|
defaultTagName: "div",
|
|
698
730
|
render,
|
|
699
|
-
props:
|
|
731
|
+
props: mergeProps2(props, source.props),
|
|
700
732
|
state: { slot: "drag-source", dragging: source.isDragging }
|
|
701
733
|
});
|
|
702
734
|
}
|
|
703
735
|
// src/components/DropTarget.tsx
|
|
704
|
-
import { useRender as
|
|
705
|
-
import { mergeProps as
|
|
736
|
+
import { useRender as useRender3 } from "@base-ui/react/use-render";
|
|
737
|
+
import { mergeProps as mergeProps3 } from "@base-ui/react/merge-props";
|
|
706
738
|
|
|
707
739
|
// src/hooks/useDropTarget.ts
|
|
708
740
|
import { useId as useId2, useState as useState2 } from "react";
|
|
@@ -770,29 +802,29 @@ function DropTarget({
|
|
|
770
802
|
...props
|
|
771
803
|
}) {
|
|
772
804
|
const target = useDropTarget({ accept, canDrop, getDropEffect, onDrop });
|
|
773
|
-
return
|
|
805
|
+
return useRender3({
|
|
774
806
|
defaultTagName: "div",
|
|
775
807
|
render,
|
|
776
|
-
props:
|
|
808
|
+
props: mergeProps3(props, target.props),
|
|
777
809
|
state: { slot: "drop-target", over: target.isOver, effect: target.effect }
|
|
778
810
|
});
|
|
779
811
|
}
|
|
780
812
|
// src/components/EmptyState.tsx
|
|
781
|
-
import { jsx as
|
|
813
|
+
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
782
814
|
function EmptyState({ title, description, children }) {
|
|
783
815
|
return /* @__PURE__ */ jsxs5(Empty2, {
|
|
784
816
|
children: [
|
|
785
817
|
/* @__PURE__ */ jsxs5(EmptyHeader2, {
|
|
786
818
|
children: [
|
|
787
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ jsx7(EmptyTitle2, {
|
|
788
820
|
children: title
|
|
789
821
|
}),
|
|
790
|
-
/* @__PURE__ */
|
|
822
|
+
/* @__PURE__ */ jsx7(EmptyDescription2, {
|
|
791
823
|
children: description
|
|
792
824
|
})
|
|
793
825
|
]
|
|
794
826
|
}),
|
|
795
|
-
children && /* @__PURE__ */
|
|
827
|
+
children && /* @__PURE__ */ jsx7(EmptyContent2, {
|
|
796
828
|
children
|
|
797
829
|
})
|
|
798
830
|
]
|
|
@@ -800,11 +832,11 @@ function EmptyState({ title, description, children }) {
|
|
|
800
832
|
}
|
|
801
833
|
// src/components/PageMessage.tsx
|
|
802
834
|
import { useId as useId3 } from "react";
|
|
803
|
-
import { jsx as
|
|
835
|
+
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
804
836
|
function PageMessage({ title, description, children }) {
|
|
805
837
|
const titleId = useId3();
|
|
806
838
|
const descriptionId = useId3();
|
|
807
|
-
return /* @__PURE__ */
|
|
839
|
+
return /* @__PURE__ */ jsx8("main", {
|
|
808
840
|
"aria-labelledby": titleId,
|
|
809
841
|
"aria-describedby": description == null ? undefined : descriptionId,
|
|
810
842
|
className: "grid min-h-dvh w-full place-items-center bg-background text-foreground",
|
|
@@ -812,19 +844,19 @@ function PageMessage({ title, description, children }) {
|
|
|
812
844
|
children: [
|
|
813
845
|
/* @__PURE__ */ jsxs6(EmptyHeader2, {
|
|
814
846
|
children: [
|
|
815
|
-
/* @__PURE__ */
|
|
816
|
-
children: /* @__PURE__ */
|
|
847
|
+
/* @__PURE__ */ jsx8(EmptyTitle2, {
|
|
848
|
+
children: /* @__PURE__ */ jsx8("h1", {
|
|
817
849
|
id: titleId,
|
|
818
850
|
children: title
|
|
819
851
|
})
|
|
820
852
|
}),
|
|
821
|
-
description != null && /* @__PURE__ */
|
|
853
|
+
description != null && /* @__PURE__ */ jsx8(EmptyDescription2, {
|
|
822
854
|
id: descriptionId,
|
|
823
855
|
children: description
|
|
824
856
|
})
|
|
825
857
|
]
|
|
826
858
|
}),
|
|
827
|
-
children != null && /* @__PURE__ */
|
|
859
|
+
children != null && /* @__PURE__ */ jsx8(EmptyContent2, {
|
|
828
860
|
children
|
|
829
861
|
})
|
|
830
862
|
]
|
|
@@ -832,9 +864,9 @@ function PageMessage({ title, description, children }) {
|
|
|
832
864
|
});
|
|
833
865
|
}
|
|
834
866
|
// src/components/JsonViewer.tsx
|
|
835
|
-
import { jsx as
|
|
867
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
836
868
|
function JsonViewer({ value, label = "JSON", rows = 12 }) {
|
|
837
|
-
return /* @__PURE__ */
|
|
869
|
+
return /* @__PURE__ */ jsx9(Textarea2, {
|
|
838
870
|
readOnly: true,
|
|
839
871
|
rows,
|
|
840
872
|
"aria-label": label,
|
|
@@ -844,23 +876,23 @@ function JsonViewer({ value, label = "JSON", rows = 12 }) {
|
|
|
844
876
|
// src/components/AlertDialog.tsx
|
|
845
877
|
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
846
878
|
import { useDirection as useDirection3 } from "@base-ui/react/direction-provider";
|
|
847
|
-
import { jsx as
|
|
879
|
+
import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
848
880
|
"use client";
|
|
849
881
|
function AlertDialog({ ...props }) {
|
|
850
|
-
return /* @__PURE__ */
|
|
882
|
+
return /* @__PURE__ */ jsx10(AlertDialogPrimitive.Root, {
|
|
851
883
|
"data-slot": "alert-dialog",
|
|
852
884
|
...props
|
|
853
885
|
});
|
|
854
886
|
}
|
|
855
887
|
function AlertDialogTrigger({ ...props }) {
|
|
856
|
-
return /* @__PURE__ */
|
|
888
|
+
return /* @__PURE__ */ jsx10(AlertDialogPrimitive.Trigger, {
|
|
857
889
|
"data-slot": "alert-dialog-trigger",
|
|
858
890
|
...props
|
|
859
891
|
});
|
|
860
892
|
}
|
|
861
893
|
function AlertDialogPortal({ container, ...props }) {
|
|
862
894
|
const resolvedContainer = usePortalContainer2(container);
|
|
863
|
-
return /* @__PURE__ */
|
|
895
|
+
return /* @__PURE__ */ jsx10(AlertDialogPrimitive.Portal, {
|
|
864
896
|
"data-slot": "alert-dialog-portal",
|
|
865
897
|
container: resolvedContainer,
|
|
866
898
|
...props
|
|
@@ -868,7 +900,7 @@ function AlertDialogPortal({ container, ...props }) {
|
|
|
868
900
|
}
|
|
869
901
|
function AlertDialogOverlay({ density, className, ...props }) {
|
|
870
902
|
const resolvedDensity = useDensity(density);
|
|
871
|
-
return /* @__PURE__ */
|
|
903
|
+
return /* @__PURE__ */ jsx10(AlertDialogPrimitive.Backdrop, {
|
|
872
904
|
"data-density": resolvedDensity,
|
|
873
905
|
"data-slot": "alert-dialog-overlay",
|
|
874
906
|
className: (state) => cn2("fixed inset-0 isolate bg-backdrop duration-120 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none", typeof className === "function" ? className(state) : className),
|
|
@@ -880,8 +912,8 @@ function AlertDialogContent({ density, className, size = "default", ...props })
|
|
|
880
912
|
const direction = useDirection3();
|
|
881
913
|
return /* @__PURE__ */ jsxs7(AlertDialogPortal, {
|
|
882
914
|
children: [
|
|
883
|
-
/* @__PURE__ */
|
|
884
|
-
/* @__PURE__ */
|
|
915
|
+
/* @__PURE__ */ jsx10(AlertDialogOverlay, {}),
|
|
916
|
+
/* @__PURE__ */ jsx10(AlertDialogPrimitive.Popup, {
|
|
885
917
|
dir: direction,
|
|
886
918
|
"data-density": resolvedDensity,
|
|
887
919
|
"data-slot": "alert-dialog-content",
|
|
@@ -893,7 +925,7 @@ function AlertDialogContent({ density, className, size = "default", ...props })
|
|
|
893
925
|
});
|
|
894
926
|
}
|
|
895
927
|
function AlertDialogHeader({ density, className, ...props }) {
|
|
896
|
-
return /* @__PURE__ */
|
|
928
|
+
return /* @__PURE__ */ jsx10("div", {
|
|
897
929
|
"data-density": density,
|
|
898
930
|
"data-slot": "alert-dialog-header",
|
|
899
931
|
className: cn2("grid grid-rows-[auto_1fr] place-items-center gap-control-gap text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className),
|
|
@@ -901,7 +933,7 @@ function AlertDialogHeader({ density, className, ...props }) {
|
|
|
901
933
|
});
|
|
902
934
|
}
|
|
903
935
|
function AlertDialogFooter({ density, className, ...props }) {
|
|
904
|
-
return /* @__PURE__ */
|
|
936
|
+
return /* @__PURE__ */ jsx10("div", {
|
|
905
937
|
"data-density": density,
|
|
906
938
|
"data-slot": "alert-dialog-footer",
|
|
907
939
|
className: cn2("-mx-panel -mb-panel flex flex-col-reverse gap-2 rounded-b-md border-t bg-muted/50 p-panel group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", className),
|
|
@@ -909,7 +941,7 @@ function AlertDialogFooter({ density, className, ...props }) {
|
|
|
909
941
|
});
|
|
910
942
|
}
|
|
911
943
|
function AlertDialogMedia({ density, className, ...props }) {
|
|
912
|
-
return /* @__PURE__ */
|
|
944
|
+
return /* @__PURE__ */ jsx10("div", {
|
|
913
945
|
"data-density": density,
|
|
914
946
|
"data-slot": "alert-dialog-media",
|
|
915
947
|
className: cn2("mb-2 inline-flex size-10 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-control-xs", className),
|
|
@@ -917,7 +949,7 @@ function AlertDialogMedia({ density, className, ...props }) {
|
|
|
917
949
|
});
|
|
918
950
|
}
|
|
919
951
|
function AlertDialogTitle({ density, className, ...props }) {
|
|
920
|
-
return /* @__PURE__ */
|
|
952
|
+
return /* @__PURE__ */ jsx10(AlertDialogPrimitive.Title, {
|
|
921
953
|
"data-density": density,
|
|
922
954
|
"data-slot": "alert-dialog-title",
|
|
923
955
|
className: (state) => cn2("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", typeof className === "function" ? className(state) : className),
|
|
@@ -925,7 +957,7 @@ function AlertDialogTitle({ density, className, ...props }) {
|
|
|
925
957
|
});
|
|
926
958
|
}
|
|
927
959
|
function AlertDialogDescription({ density, className, ...props }) {
|
|
928
|
-
return /* @__PURE__ */
|
|
960
|
+
return /* @__PURE__ */ jsx10(AlertDialogPrimitive.Description, {
|
|
929
961
|
"data-density": density,
|
|
930
962
|
"data-slot": "alert-dialog-description",
|
|
931
963
|
className: (state) => cn2("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", typeof className === "function" ? className(state) : className),
|
|
@@ -933,7 +965,7 @@ function AlertDialogDescription({ density, className, ...props }) {
|
|
|
933
965
|
});
|
|
934
966
|
}
|
|
935
967
|
function AlertDialogAction({ density, className, ...props }) {
|
|
936
|
-
return /* @__PURE__ */
|
|
968
|
+
return /* @__PURE__ */ jsx10(Button2, {
|
|
937
969
|
"data-density": density,
|
|
938
970
|
"data-slot": "alert-dialog-action",
|
|
939
971
|
className,
|
|
@@ -947,11 +979,11 @@ function AlertDialogCancel({
|
|
|
947
979
|
size = "default",
|
|
948
980
|
...props
|
|
949
981
|
}) {
|
|
950
|
-
return /* @__PURE__ */
|
|
982
|
+
return /* @__PURE__ */ jsx10(AlertDialogPrimitive.Close, {
|
|
951
983
|
"data-density": density,
|
|
952
984
|
"data-slot": "alert-dialog-cancel",
|
|
953
985
|
className,
|
|
954
|
-
render: /* @__PURE__ */
|
|
986
|
+
render: /* @__PURE__ */ jsx10(Button2, {
|
|
955
987
|
variant,
|
|
956
988
|
size
|
|
957
989
|
}),
|
|
@@ -962,11 +994,11 @@ function AlertDialogCancel({
|
|
|
962
994
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
963
995
|
import { useDirection as useDirection4 } from "@base-ui/react/direction-provider";
|
|
964
996
|
import { ChevronDownIcon as ChevronDownIcon3, CheckIcon as CheckIcon2, ChevronUpIcon as ChevronUpIcon2 } from "lucide-react";
|
|
965
|
-
import { jsx as
|
|
997
|
+
import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
966
998
|
"use client";
|
|
967
999
|
var Select = SelectPrimitive.Root;
|
|
968
1000
|
function SelectGroup({ density, className, ...props }) {
|
|
969
|
-
return /* @__PURE__ */
|
|
1001
|
+
return /* @__PURE__ */ jsx11(SelectPrimitive.Group, {
|
|
970
1002
|
"data-density": density,
|
|
971
1003
|
"data-slot": "select-group",
|
|
972
1004
|
className: (state) => cn2("scroll-my-1 p-1", typeof className === "function" ? className(state) : className),
|
|
@@ -974,7 +1006,7 @@ function SelectGroup({ density, className, ...props }) {
|
|
|
974
1006
|
});
|
|
975
1007
|
}
|
|
976
1008
|
function SelectValue({ density, className, ...props }) {
|
|
977
|
-
return /* @__PURE__ */
|
|
1009
|
+
return /* @__PURE__ */ jsx11(SelectPrimitive.Value, {
|
|
978
1010
|
"data-density": density,
|
|
979
1011
|
"data-slot": "select-value",
|
|
980
1012
|
className: (state) => cn2("flex flex-1 text-start", typeof className === "function" ? className(state) : className),
|
|
@@ -990,8 +1022,8 @@ function SelectTrigger({ density, className, size = "default", children, ...prop
|
|
|
990
1022
|
...props,
|
|
991
1023
|
children: [
|
|
992
1024
|
children,
|
|
993
|
-
/* @__PURE__ */
|
|
994
|
-
render: /* @__PURE__ */
|
|
1025
|
+
/* @__PURE__ */ jsx11(SelectPrimitive.Icon, {
|
|
1026
|
+
render: /* @__PURE__ */ jsx11(ChevronDownIcon3, {
|
|
995
1027
|
className: "pointer-events-none size-4 text-muted-foreground"
|
|
996
1028
|
})
|
|
997
1029
|
})
|
|
@@ -1012,9 +1044,9 @@ function SelectContent({
|
|
|
1012
1044
|
const resolvedDensity = useDensity(density);
|
|
1013
1045
|
const direction = useDirection4();
|
|
1014
1046
|
const container = usePortalContainer2();
|
|
1015
|
-
return /* @__PURE__ */
|
|
1047
|
+
return /* @__PURE__ */ jsx11(SelectPrimitive.Portal, {
|
|
1016
1048
|
container,
|
|
1017
|
-
children: /* @__PURE__ */
|
|
1049
|
+
children: /* @__PURE__ */ jsx11(SelectPrimitive.Positioner, {
|
|
1018
1050
|
side,
|
|
1019
1051
|
sideOffset,
|
|
1020
1052
|
align,
|
|
@@ -1029,18 +1061,18 @@ function SelectContent({
|
|
|
1029
1061
|
className: (state) => cn2("relative isolate max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground border border-frame-edge shadow-frame duration-120 data-[align-trigger=true]:animate-none data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 motion-reduce:animate-none", typeof className === "function" ? className(state) : className),
|
|
1030
1062
|
...props,
|
|
1031
1063
|
children: [
|
|
1032
|
-
/* @__PURE__ */
|
|
1033
|
-
/* @__PURE__ */
|
|
1064
|
+
/* @__PURE__ */ jsx11(SelectScrollUpButton, {}),
|
|
1065
|
+
/* @__PURE__ */ jsx11(SelectPrimitive.List, {
|
|
1034
1066
|
children
|
|
1035
1067
|
}),
|
|
1036
|
-
/* @__PURE__ */
|
|
1068
|
+
/* @__PURE__ */ jsx11(SelectScrollDownButton, {})
|
|
1037
1069
|
]
|
|
1038
1070
|
})
|
|
1039
1071
|
})
|
|
1040
1072
|
});
|
|
1041
1073
|
}
|
|
1042
1074
|
function SelectLabel({ density, className, ...props }) {
|
|
1043
|
-
return /* @__PURE__ */
|
|
1075
|
+
return /* @__PURE__ */ jsx11(SelectPrimitive.GroupLabel, {
|
|
1044
1076
|
"data-density": density,
|
|
1045
1077
|
"data-slot": "select-label",
|
|
1046
1078
|
className: (state) => cn2("px-1.5 py-1 text-xs text-muted-foreground", typeof className === "function" ? className(state) : className),
|
|
@@ -1054,15 +1086,15 @@ function SelectItem({ density, className, children, ...props }) {
|
|
|
1054
1086
|
className: (state) => cn2("relative flex w-full cursor-default items-center gap-control-gap rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", typeof className === "function" ? className(state) : className),
|
|
1055
1087
|
...props,
|
|
1056
1088
|
children: [
|
|
1057
|
-
/* @__PURE__ */
|
|
1089
|
+
/* @__PURE__ */ jsx11(SelectPrimitive.ItemText, {
|
|
1058
1090
|
className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
|
|
1059
1091
|
children
|
|
1060
1092
|
}),
|
|
1061
|
-
/* @__PURE__ */
|
|
1062
|
-
render: /* @__PURE__ */
|
|
1093
|
+
/* @__PURE__ */ jsx11(SelectPrimitive.ItemIndicator, {
|
|
1094
|
+
render: /* @__PURE__ */ jsx11("span", {
|
|
1063
1095
|
className: "pointer-events-none absolute end-2 flex size-4 items-center justify-center"
|
|
1064
1096
|
}),
|
|
1065
|
-
children: /* @__PURE__ */
|
|
1097
|
+
children: /* @__PURE__ */ jsx11(CheckIcon2, {
|
|
1066
1098
|
className: "pointer-events-none"
|
|
1067
1099
|
})
|
|
1068
1100
|
})
|
|
@@ -1070,7 +1102,7 @@ function SelectItem({ density, className, children, ...props }) {
|
|
|
1070
1102
|
});
|
|
1071
1103
|
}
|
|
1072
1104
|
function SelectSeparator({ density, className, ...props }) {
|
|
1073
|
-
return /* @__PURE__ */
|
|
1105
|
+
return /* @__PURE__ */ jsx11(SelectPrimitive.Separator, {
|
|
1074
1106
|
"data-density": density,
|
|
1075
1107
|
"data-slot": "select-separator",
|
|
1076
1108
|
className: (state) => cn2("pointer-events-none -mx-1 my-1 h-px bg-border", typeof className === "function" ? className(state) : className),
|
|
@@ -1078,39 +1110,48 @@ function SelectSeparator({ density, className, ...props }) {
|
|
|
1078
1110
|
});
|
|
1079
1111
|
}
|
|
1080
1112
|
function SelectScrollUpButton({ density, className, ...props }) {
|
|
1081
|
-
return /* @__PURE__ */
|
|
1113
|
+
return /* @__PURE__ */ jsx11(SelectPrimitive.ScrollUpArrow, {
|
|
1082
1114
|
"data-density": density,
|
|
1083
1115
|
"data-slot": "select-scroll-up-button",
|
|
1084
1116
|
className: (state) => cn2("top-0 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
|
|
1085
1117
|
...props,
|
|
1086
|
-
children: /* @__PURE__ */
|
|
1118
|
+
children: /* @__PURE__ */ jsx11(ChevronUpIcon2, {})
|
|
1087
1119
|
});
|
|
1088
1120
|
}
|
|
1089
1121
|
function SelectScrollDownButton({ density, className, ...props }) {
|
|
1090
|
-
return /* @__PURE__ */
|
|
1122
|
+
return /* @__PURE__ */ jsx11(SelectPrimitive.ScrollDownArrow, {
|
|
1091
1123
|
"data-density": density,
|
|
1092
1124
|
"data-slot": "select-scroll-down-button",
|
|
1093
1125
|
className: (state) => cn2("bottom-0 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
|
|
1094
1126
|
...props,
|
|
1095
|
-
children: /* @__PURE__ */
|
|
1127
|
+
children: /* @__PURE__ */ jsx11(ChevronDownIcon3, {})
|
|
1096
1128
|
});
|
|
1097
1129
|
}
|
|
1098
1130
|
// src/components/DensityProvider.tsx
|
|
1099
|
-
import {
|
|
1100
|
-
|
|
1101
|
-
|
|
1131
|
+
import { mergeProps as mergeProps4 } from "@base-ui/react/merge-props";
|
|
1132
|
+
import { useRender as useRender4 } from "@base-ui/react/use-render";
|
|
1133
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1134
|
+
function DensityProvider({
|
|
1135
|
+
density = "comfortable",
|
|
1136
|
+
className,
|
|
1137
|
+
render,
|
|
1138
|
+
...props
|
|
1139
|
+
}) {
|
|
1140
|
+
const element = useRender4({
|
|
1141
|
+
defaultTagName: "div",
|
|
1142
|
+
props: mergeProps4({ className: cn2("font-sans text-base leading-(--ag-leading)", className) }, props),
|
|
1143
|
+
render,
|
|
1144
|
+
state: { slot: "density-provider", density }
|
|
1145
|
+
});
|
|
1146
|
+
return /* @__PURE__ */ jsx12(DensityContext.Provider, {
|
|
1102
1147
|
value: density,
|
|
1103
|
-
children:
|
|
1104
|
-
"data-density": density,
|
|
1105
|
-
className: "font-sans text-base leading-(--ag-leading)",
|
|
1106
|
-
children
|
|
1107
|
-
})
|
|
1148
|
+
children: element
|
|
1108
1149
|
});
|
|
1109
1150
|
}
|
|
1110
1151
|
// src/components/ThemeProvider.tsx
|
|
1111
1152
|
import { useMemo } from "react";
|
|
1112
1153
|
import { useIsomorphicLayoutEffect, useTernaryDarkMode } from "usehooks-ts";
|
|
1113
|
-
import { jsx as
|
|
1154
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1114
1155
|
function StoredThemeProvider({
|
|
1115
1156
|
children,
|
|
1116
1157
|
defaultTheme = "system",
|
|
@@ -1121,7 +1162,7 @@ function StoredThemeProvider({
|
|
|
1121
1162
|
defaultValue: defaultTheme,
|
|
1122
1163
|
localStorageKey: storageKey
|
|
1123
1164
|
});
|
|
1124
|
-
return /* @__PURE__ */
|
|
1165
|
+
return /* @__PURE__ */ jsx13(ThemePalette, {
|
|
1125
1166
|
theme: forcedTheme ?? ternaryDarkMode,
|
|
1126
1167
|
resolvedTheme: forcedTheme ?? (isDarkMode ? "dark" : "light"),
|
|
1127
1168
|
setTheme: setTernaryDarkMode,
|
|
@@ -1139,7 +1180,7 @@ function ThemePalette({
|
|
|
1139
1180
|
document.documentElement.style.colorScheme = resolvedTheme;
|
|
1140
1181
|
}, [resolvedTheme]);
|
|
1141
1182
|
const value = useMemo(() => ({ theme, resolvedTheme, setTheme }), [theme, resolvedTheme, setTheme]);
|
|
1142
|
-
return /* @__PURE__ */
|
|
1183
|
+
return /* @__PURE__ */ jsx13(ThemeContext.Provider, {
|
|
1143
1184
|
value,
|
|
1144
1185
|
children
|
|
1145
1186
|
});
|
|
@@ -1152,7 +1193,7 @@ function ControlledThemeProvider({
|
|
|
1152
1193
|
const isDark = useMediaQuery("(prefers-color-scheme: dark)");
|
|
1153
1194
|
const { theme, setTheme } = controlledTheme;
|
|
1154
1195
|
const resolvedTheme = forcedTheme ?? (theme === "system" ? isDark ? "dark" : "light" : theme);
|
|
1155
|
-
return /* @__PURE__ */
|
|
1196
|
+
return /* @__PURE__ */ jsx13(ThemePalette, {
|
|
1156
1197
|
theme: forcedTheme ?? theme,
|
|
1157
1198
|
resolvedTheme,
|
|
1158
1199
|
setTheme,
|
|
@@ -1161,11 +1202,11 @@ function ControlledThemeProvider({
|
|
|
1161
1202
|
}
|
|
1162
1203
|
function ThemeProvider(props) {
|
|
1163
1204
|
if (props.controlledTheme)
|
|
1164
|
-
return /* @__PURE__ */
|
|
1205
|
+
return /* @__PURE__ */ jsx13(ControlledThemeProvider, {
|
|
1165
1206
|
...props,
|
|
1166
1207
|
controlledTheme: props.controlledTheme
|
|
1167
1208
|
});
|
|
1168
|
-
return /* @__PURE__ */
|
|
1209
|
+
return /* @__PURE__ */ jsx13(StoredThemeProvider, {
|
|
1169
1210
|
...props
|
|
1170
1211
|
});
|
|
1171
1212
|
}
|
|
@@ -1175,9 +1216,9 @@ function useComboboxAnchor() {
|
|
|
1175
1216
|
return useRef2(null);
|
|
1176
1217
|
}
|
|
1177
1218
|
// src/components/AspectRatio.tsx
|
|
1178
|
-
import { jsx as
|
|
1219
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1179
1220
|
function AspectRatio({ ratio, className, style, ...props }) {
|
|
1180
|
-
return /* @__PURE__ */
|
|
1221
|
+
return /* @__PURE__ */ jsx14("div", {
|
|
1181
1222
|
"data-slot": "aspect-ratio",
|
|
1182
1223
|
className: cn2("relative", className),
|
|
1183
1224
|
style: { aspectRatio: ratio, ...style },
|
|
@@ -1186,11 +1227,11 @@ function AspectRatio({ ratio, className, style, ...props }) {
|
|
|
1186
1227
|
}
|
|
1187
1228
|
// src/components/Breadcrumb.tsx
|
|
1188
1229
|
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
1189
|
-
import { mergeProps as
|
|
1190
|
-
import { useRender as
|
|
1191
|
-
import { jsx as
|
|
1230
|
+
import { mergeProps as mergeProps5 } from "@base-ui/react/merge-props";
|
|
1231
|
+
import { useRender as useRender5 } from "@base-ui/react/use-render";
|
|
1232
|
+
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1192
1233
|
function Breadcrumb({ density, className, ...props }) {
|
|
1193
|
-
return /* @__PURE__ */
|
|
1234
|
+
return /* @__PURE__ */ jsx15("nav", {
|
|
1194
1235
|
"aria-label": "breadcrumb",
|
|
1195
1236
|
"data-density": density,
|
|
1196
1237
|
"data-slot": "breadcrumb",
|
|
@@ -1199,7 +1240,7 @@ function Breadcrumb({ density, className, ...props }) {
|
|
|
1199
1240
|
});
|
|
1200
1241
|
}
|
|
1201
1242
|
function BreadcrumbList({ density, className, ...props }) {
|
|
1202
|
-
return /* @__PURE__ */
|
|
1243
|
+
return /* @__PURE__ */ jsx15("ol", {
|
|
1203
1244
|
"data-density": density,
|
|
1204
1245
|
"data-slot": "breadcrumb-list",
|
|
1205
1246
|
className: cn2("flex flex-wrap items-center gap-control-gap text-sm wrap-break-word text-muted-foreground", className),
|
|
@@ -1207,7 +1248,7 @@ function BreadcrumbList({ density, className, ...props }) {
|
|
|
1207
1248
|
});
|
|
1208
1249
|
}
|
|
1209
1250
|
function BreadcrumbItem({ density, className, ...props }) {
|
|
1210
|
-
return /* @__PURE__ */
|
|
1251
|
+
return /* @__PURE__ */ jsx15("li", {
|
|
1211
1252
|
"data-density": density,
|
|
1212
1253
|
"data-slot": "breadcrumb-item",
|
|
1213
1254
|
className: cn2("inline-flex items-center gap-1", className),
|
|
@@ -1215,9 +1256,9 @@ function BreadcrumbItem({ density, className, ...props }) {
|
|
|
1215
1256
|
});
|
|
1216
1257
|
}
|
|
1217
1258
|
function BreadcrumbLink({ density, className, render, ...props }) {
|
|
1218
|
-
return
|
|
1259
|
+
return useRender5({
|
|
1219
1260
|
defaultTagName: "a",
|
|
1220
|
-
props:
|
|
1261
|
+
props: mergeProps5({
|
|
1221
1262
|
className: cn2("transition-colors hover:text-foreground", className)
|
|
1222
1263
|
}, props),
|
|
1223
1264
|
render,
|
|
@@ -1228,7 +1269,7 @@ function BreadcrumbLink({ density, className, render, ...props }) {
|
|
|
1228
1269
|
});
|
|
1229
1270
|
}
|
|
1230
1271
|
function BreadcrumbPage({ density, className, ...props }) {
|
|
1231
|
-
return /* @__PURE__ */
|
|
1272
|
+
return /* @__PURE__ */ jsx15("span", {
|
|
1232
1273
|
"data-density": density,
|
|
1233
1274
|
"data-slot": "breadcrumb-page",
|
|
1234
1275
|
role: "link",
|
|
@@ -1239,14 +1280,14 @@ function BreadcrumbPage({ density, className, ...props }) {
|
|
|
1239
1280
|
});
|
|
1240
1281
|
}
|
|
1241
1282
|
function BreadcrumbSeparator({ density, children, className, ...props }) {
|
|
1242
|
-
return /* @__PURE__ */
|
|
1283
|
+
return /* @__PURE__ */ jsx15("li", {
|
|
1243
1284
|
"data-density": density,
|
|
1244
1285
|
"data-slot": "breadcrumb-separator",
|
|
1245
1286
|
role: "presentation",
|
|
1246
1287
|
"aria-hidden": "true",
|
|
1247
1288
|
className: cn2("[&>svg]:size-3.5", className),
|
|
1248
1289
|
...props,
|
|
1249
|
-
children: children ?? /* @__PURE__ */
|
|
1290
|
+
children: children ?? /* @__PURE__ */ jsx15(ChevronRightIcon, {
|
|
1250
1291
|
className: "rtl:rotate-180"
|
|
1251
1292
|
})
|
|
1252
1293
|
});
|
|
@@ -1260,8 +1301,8 @@ function BreadcrumbEllipsis({ density, className, ...props }) {
|
|
|
1260
1301
|
className: cn2("flex size-5 items-center justify-center [&>svg]:size-4", className),
|
|
1261
1302
|
...props,
|
|
1262
1303
|
children: [
|
|
1263
|
-
/* @__PURE__ */
|
|
1264
|
-
/* @__PURE__ */
|
|
1304
|
+
/* @__PURE__ */ jsx15(MoreHorizontalIcon, {}),
|
|
1305
|
+
/* @__PURE__ */ jsx15("span", {
|
|
1265
1306
|
className: "sr-only",
|
|
1266
1307
|
children: "More"
|
|
1267
1308
|
})
|
|
@@ -1269,10 +1310,10 @@ function BreadcrumbEllipsis({ density, className, ...props }) {
|
|
|
1269
1310
|
});
|
|
1270
1311
|
}
|
|
1271
1312
|
// src/components/ButtonGroup.tsx
|
|
1272
|
-
import { mergeProps as
|
|
1273
|
-
import { useRender as
|
|
1313
|
+
import { mergeProps as mergeProps6 } from "@base-ui/react/merge-props";
|
|
1314
|
+
import { useRender as useRender6 } from "@base-ui/react/use-render";
|
|
1274
1315
|
import { cva as cva2 } from "class-variance-authority";
|
|
1275
|
-
import { jsx as
|
|
1316
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1276
1317
|
var buttonGroupVariants = cva2("flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-e-sm [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
1277
1318
|
variants: {
|
|
1278
1319
|
orientation: {
|
|
@@ -1285,7 +1326,7 @@ var buttonGroupVariants = cva2("flex w-fit items-stretch *:focus-visible:relativ
|
|
|
1285
1326
|
}
|
|
1286
1327
|
});
|
|
1287
1328
|
function ButtonGroup({ density, className, orientation, ...props }) {
|
|
1288
|
-
return /* @__PURE__ */
|
|
1329
|
+
return /* @__PURE__ */ jsx16("div", {
|
|
1289
1330
|
role: "group",
|
|
1290
1331
|
"data-density": density,
|
|
1291
1332
|
"data-slot": "button-group",
|
|
@@ -1295,9 +1336,9 @@ function ButtonGroup({ density, className, orientation, ...props }) {
|
|
|
1295
1336
|
});
|
|
1296
1337
|
}
|
|
1297
1338
|
function ButtonGroupText({ density, className, render, ...props }) {
|
|
1298
|
-
return
|
|
1339
|
+
return useRender6({
|
|
1299
1340
|
defaultTagName: "div",
|
|
1300
|
-
props:
|
|
1341
|
+
props: mergeProps6({
|
|
1301
1342
|
className: cn2("flex items-center gap-2 rounded-sm border bg-muted px-control-x text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className)
|
|
1302
1343
|
}, props),
|
|
1303
1344
|
render,
|
|
@@ -1313,7 +1354,7 @@ function ButtonGroupSeparator({
|
|
|
1313
1354
|
orientation = "vertical",
|
|
1314
1355
|
...props
|
|
1315
1356
|
}) {
|
|
1316
|
-
return /* @__PURE__ */
|
|
1357
|
+
return /* @__PURE__ */ jsx16(Separator2, {
|
|
1317
1358
|
"data-density": density,
|
|
1318
1359
|
"data-slot": "button-group-separator",
|
|
1319
1360
|
orientation,
|
|
@@ -1323,7 +1364,7 @@ function ButtonGroupSeparator({
|
|
|
1323
1364
|
}
|
|
1324
1365
|
// src/components/NativeSelect.tsx
|
|
1325
1366
|
import { ChevronDownIcon as ChevronDownIcon4 } from "lucide-react";
|
|
1326
|
-
import { jsx as
|
|
1367
|
+
import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1327
1368
|
function NativeSelect({
|
|
1328
1369
|
density,
|
|
1329
1370
|
className,
|
|
@@ -1338,14 +1379,14 @@ function NativeSelect({
|
|
|
1338
1379
|
"data-slot": "native-select-wrapper",
|
|
1339
1380
|
"data-size": size,
|
|
1340
1381
|
children: [
|
|
1341
|
-
/* @__PURE__ */
|
|
1382
|
+
/* @__PURE__ */ jsx17("select", {
|
|
1342
1383
|
dir,
|
|
1343
1384
|
"data-slot": "native-select",
|
|
1344
1385
|
"data-size": size,
|
|
1345
1386
|
className: "h-control w-full min-w-0 appearance-none rounded-sm border border-input bg-secondary py-1 pe-8 ps-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive data-[size=sm]:h-control-sm data-[size=sm]:rounded-sm data-[size=sm]:py-0.5",
|
|
1346
1387
|
...props
|
|
1347
1388
|
}),
|
|
1348
|
-
/* @__PURE__ */
|
|
1389
|
+
/* @__PURE__ */ jsx17(ChevronDownIcon4, {
|
|
1349
1390
|
className: "pointer-events-none absolute top-1/2 end-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none",
|
|
1350
1391
|
"aria-hidden": "true",
|
|
1351
1392
|
"data-slot": "native-select-icon"
|
|
@@ -1354,7 +1395,7 @@ function NativeSelect({
|
|
|
1354
1395
|
});
|
|
1355
1396
|
}
|
|
1356
1397
|
function NativeSelectOption({ density, className, ...props }) {
|
|
1357
|
-
return /* @__PURE__ */
|
|
1398
|
+
return /* @__PURE__ */ jsx17("option", {
|
|
1358
1399
|
"data-density": density,
|
|
1359
1400
|
"data-slot": "native-select-option",
|
|
1360
1401
|
className: cn2("bg-[Canvas] text-[CanvasText]", className),
|
|
@@ -1362,7 +1403,7 @@ function NativeSelectOption({ density, className, ...props }) {
|
|
|
1362
1403
|
});
|
|
1363
1404
|
}
|
|
1364
1405
|
function NativeSelectOptGroup({ density, className, ...props }) {
|
|
1365
|
-
return /* @__PURE__ */
|
|
1406
|
+
return /* @__PURE__ */ jsx17("optgroup", {
|
|
1366
1407
|
"data-density": density,
|
|
1367
1408
|
"data-slot": "native-select-optgroup",
|
|
1368
1409
|
className: cn2("bg-[Canvas] text-[CanvasText]", className),
|
|
@@ -1370,12 +1411,12 @@ function NativeSelectOptGroup({ density, className, ...props }) {
|
|
|
1370
1411
|
});
|
|
1371
1412
|
}
|
|
1372
1413
|
// src/components/Item.tsx
|
|
1373
|
-
import { mergeProps as
|
|
1374
|
-
import { useRender as
|
|
1414
|
+
import { mergeProps as mergeProps7 } from "@base-ui/react/merge-props";
|
|
1415
|
+
import { useRender as useRender7 } from "@base-ui/react/use-render";
|
|
1375
1416
|
import { cva as cva3 } from "class-variance-authority";
|
|
1376
|
-
import { jsx as
|
|
1417
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1377
1418
|
function ItemGroup({ density, className, ...props }) {
|
|
1378
|
-
return /* @__PURE__ */
|
|
1419
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1379
1420
|
role: "list",
|
|
1380
1421
|
"data-density": density,
|
|
1381
1422
|
"data-slot": "item-group",
|
|
@@ -1384,7 +1425,7 @@ function ItemGroup({ density, className, ...props }) {
|
|
|
1384
1425
|
});
|
|
1385
1426
|
}
|
|
1386
1427
|
function ItemSeparator({ density, className, ...props }) {
|
|
1387
|
-
return /* @__PURE__ */
|
|
1428
|
+
return /* @__PURE__ */ jsx18(Separator2, {
|
|
1388
1429
|
"data-density": density,
|
|
1389
1430
|
"data-slot": "item-separator",
|
|
1390
1431
|
orientation: "horizontal",
|
|
@@ -1418,9 +1459,9 @@ function Item({
|
|
|
1418
1459
|
render,
|
|
1419
1460
|
...props
|
|
1420
1461
|
}) {
|
|
1421
|
-
return
|
|
1462
|
+
return useRender7({
|
|
1422
1463
|
defaultTagName: "div",
|
|
1423
|
-
props:
|
|
1464
|
+
props: mergeProps7({
|
|
1424
1465
|
className: cn2(itemVariants({ variant, size, className }))
|
|
1425
1466
|
}, props),
|
|
1426
1467
|
render,
|
|
@@ -1445,7 +1486,7 @@ var itemMediaVariants = cva3("flex shrink-0 items-center justify-center gap-2 gr
|
|
|
1445
1486
|
}
|
|
1446
1487
|
});
|
|
1447
1488
|
function ItemMedia({ density, className, variant = "default", ...props }) {
|
|
1448
|
-
return /* @__PURE__ */
|
|
1489
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1449
1490
|
"data-density": density,
|
|
1450
1491
|
"data-slot": "item-media",
|
|
1451
1492
|
"data-variant": variant,
|
|
@@ -1454,7 +1495,7 @@ function ItemMedia({ density, className, variant = "default", ...props }) {
|
|
|
1454
1495
|
});
|
|
1455
1496
|
}
|
|
1456
1497
|
function ItemContent({ density, className, ...props }) {
|
|
1457
|
-
return /* @__PURE__ */
|
|
1498
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1458
1499
|
"data-density": density,
|
|
1459
1500
|
"data-slot": "item-content",
|
|
1460
1501
|
className: cn2("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none", className),
|
|
@@ -1462,7 +1503,7 @@ function ItemContent({ density, className, ...props }) {
|
|
|
1462
1503
|
});
|
|
1463
1504
|
}
|
|
1464
1505
|
function ItemTitle({ density, className, ...props }) {
|
|
1465
|
-
return /* @__PURE__ */
|
|
1506
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1466
1507
|
"data-density": density,
|
|
1467
1508
|
"data-slot": "item-title",
|
|
1468
1509
|
className: cn2("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4", className),
|
|
@@ -1470,7 +1511,7 @@ function ItemTitle({ density, className, ...props }) {
|
|
|
1470
1511
|
});
|
|
1471
1512
|
}
|
|
1472
1513
|
function ItemDescription({ density, className, ...props }) {
|
|
1473
|
-
return /* @__PURE__ */
|
|
1514
|
+
return /* @__PURE__ */ jsx18("p", {
|
|
1474
1515
|
"data-density": density,
|
|
1475
1516
|
"data-slot": "item-description",
|
|
1476
1517
|
className: cn2("line-clamp-2 text-start 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", className),
|
|
@@ -1478,7 +1519,7 @@ function ItemDescription({ density, className, ...props }) {
|
|
|
1478
1519
|
});
|
|
1479
1520
|
}
|
|
1480
1521
|
function ItemActions({ density, className, ...props }) {
|
|
1481
|
-
return /* @__PURE__ */
|
|
1522
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1482
1523
|
"data-density": density,
|
|
1483
1524
|
"data-slot": "item-actions",
|
|
1484
1525
|
className: cn2("flex items-center gap-2", className),
|
|
@@ -1486,7 +1527,7 @@ function ItemActions({ density, className, ...props }) {
|
|
|
1486
1527
|
});
|
|
1487
1528
|
}
|
|
1488
1529
|
function ItemHeader({ density, className, ...props }) {
|
|
1489
|
-
return /* @__PURE__ */
|
|
1530
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1490
1531
|
"data-density": density,
|
|
1491
1532
|
"data-slot": "item-header",
|
|
1492
1533
|
className: cn2("flex basis-full items-center justify-between gap-2", className),
|
|
@@ -1494,7 +1535,7 @@ function ItemHeader({ density, className, ...props }) {
|
|
|
1494
1535
|
});
|
|
1495
1536
|
}
|
|
1496
1537
|
function ItemFooter({ density, className, ...props }) {
|
|
1497
|
-
return /* @__PURE__ */
|
|
1538
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1498
1539
|
"data-density": density,
|
|
1499
1540
|
"data-slot": "item-footer",
|
|
1500
1541
|
className: cn2("flex basis-full items-center justify-between gap-2", className),
|
|
@@ -1503,9 +1544,9 @@ function ItemFooter({ density, className, ...props }) {
|
|
|
1503
1544
|
}
|
|
1504
1545
|
// src/components/Pagination.tsx
|
|
1505
1546
|
import { ChevronLeftIcon, ChevronRightIcon as ChevronRightIcon2, MoreHorizontalIcon as MoreHorizontalIcon2 } from "lucide-react";
|
|
1506
|
-
import { jsx as
|
|
1547
|
+
import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1507
1548
|
function Pagination({ density, className, ...props }) {
|
|
1508
|
-
return /* @__PURE__ */
|
|
1549
|
+
return /* @__PURE__ */ jsx19("nav", {
|
|
1509
1550
|
role: "navigation",
|
|
1510
1551
|
"aria-label": "pagination",
|
|
1511
1552
|
"data-density": density,
|
|
@@ -1515,7 +1556,7 @@ function Pagination({ density, className, ...props }) {
|
|
|
1515
1556
|
});
|
|
1516
1557
|
}
|
|
1517
1558
|
function PaginationContent({ density, className, ...props }) {
|
|
1518
|
-
return /* @__PURE__ */
|
|
1559
|
+
return /* @__PURE__ */ jsx19("ul", {
|
|
1519
1560
|
"data-density": density,
|
|
1520
1561
|
"data-slot": "pagination-content",
|
|
1521
1562
|
className: cn2("flex items-center gap-0.5", className),
|
|
@@ -1523,7 +1564,7 @@ function PaginationContent({ density, className, ...props }) {
|
|
|
1523
1564
|
});
|
|
1524
1565
|
}
|
|
1525
1566
|
function PaginationItem({ ...props }) {
|
|
1526
|
-
return /* @__PURE__ */
|
|
1567
|
+
return /* @__PURE__ */ jsx19("li", {
|
|
1527
1568
|
"data-slot": "pagination-item",
|
|
1528
1569
|
...props
|
|
1529
1570
|
});
|
|
@@ -1535,7 +1576,7 @@ function PaginationLink({
|
|
|
1535
1576
|
size = "icon",
|
|
1536
1577
|
...props
|
|
1537
1578
|
}) {
|
|
1538
|
-
return /* @__PURE__ */
|
|
1579
|
+
return /* @__PURE__ */ jsx19("a", {
|
|
1539
1580
|
"data-density": density,
|
|
1540
1581
|
className: cn2(buttonVariants2({ variant: isActive ? "outline" : "ghost", size }), className),
|
|
1541
1582
|
"aria-current": isActive ? "page" : undefined,
|
|
@@ -1557,11 +1598,11 @@ function PaginationPrevious({
|
|
|
1557
1598
|
className: cn2("ps-1.5!", className),
|
|
1558
1599
|
...props,
|
|
1559
1600
|
children: [
|
|
1560
|
-
/* @__PURE__ */
|
|
1601
|
+
/* @__PURE__ */ jsx19(ChevronLeftIcon, {
|
|
1561
1602
|
"data-icon": "inline-start",
|
|
1562
1603
|
className: "rtl:rotate-180"
|
|
1563
1604
|
}),
|
|
1564
|
-
/* @__PURE__ */
|
|
1605
|
+
/* @__PURE__ */ jsx19("span", {
|
|
1565
1606
|
className: "hidden sm:block",
|
|
1566
1607
|
children: text
|
|
1567
1608
|
})
|
|
@@ -1576,11 +1617,11 @@ function PaginationNext({ density, className, text = "Next", ...props }) {
|
|
|
1576
1617
|
className: cn2("pe-1.5!", className),
|
|
1577
1618
|
...props,
|
|
1578
1619
|
children: [
|
|
1579
|
-
/* @__PURE__ */
|
|
1620
|
+
/* @__PURE__ */ jsx19("span", {
|
|
1580
1621
|
className: "hidden sm:block",
|
|
1581
1622
|
children: text
|
|
1582
1623
|
}),
|
|
1583
|
-
/* @__PURE__ */
|
|
1624
|
+
/* @__PURE__ */ jsx19(ChevronRightIcon2, {
|
|
1584
1625
|
"data-icon": "inline-end",
|
|
1585
1626
|
className: "rtl:rotate-180"
|
|
1586
1627
|
})
|
|
@@ -1595,8 +1636,8 @@ function PaginationEllipsis({ density, className, ...props }) {
|
|
|
1595
1636
|
className: cn2("flex size-control items-center justify-center [&_svg:not([class*='size-'])]:size-4", className),
|
|
1596
1637
|
...props,
|
|
1597
1638
|
children: [
|
|
1598
|
-
/* @__PURE__ */
|
|
1599
|
-
/* @__PURE__ */
|
|
1639
|
+
/* @__PURE__ */ jsx19(MoreHorizontalIcon2, {}),
|
|
1640
|
+
/* @__PURE__ */ jsx19("span", {
|
|
1600
1641
|
className: "sr-only",
|
|
1601
1642
|
children: "More pages"
|
|
1602
1643
|
})
|
|
@@ -1605,12 +1646,12 @@ function PaginationEllipsis({ density, className, ...props }) {
|
|
|
1605
1646
|
}
|
|
1606
1647
|
// src/components/ScrollArea.tsx
|
|
1607
1648
|
import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
|
|
1608
|
-
import { jsx as
|
|
1649
|
+
import { jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1609
1650
|
function ScrollArea({
|
|
1610
1651
|
density,
|
|
1611
1652
|
className,
|
|
1612
1653
|
children,
|
|
1613
|
-
scrollbars = /* @__PURE__ */
|
|
1654
|
+
scrollbars = /* @__PURE__ */ jsx20(ScrollBar, {}),
|
|
1614
1655
|
...props
|
|
1615
1656
|
}) {
|
|
1616
1657
|
return /* @__PURE__ */ jsxs12(ScrollAreaPrimitive.Root, {
|
|
@@ -1619,25 +1660,25 @@ function ScrollArea({
|
|
|
1619
1660
|
className: (state) => cn2("relative", typeof className === "function" ? className(state) : className),
|
|
1620
1661
|
...props,
|
|
1621
1662
|
children: [
|
|
1622
|
-
/* @__PURE__ */
|
|
1663
|
+
/* @__PURE__ */ jsx20(ScrollAreaPrimitive.Viewport, {
|
|
1623
1664
|
"data-slot": "scroll-area-viewport",
|
|
1624
1665
|
className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-1",
|
|
1625
1666
|
children
|
|
1626
1667
|
}),
|
|
1627
1668
|
scrollbars,
|
|
1628
|
-
/* @__PURE__ */
|
|
1669
|
+
/* @__PURE__ */ jsx20(ScrollAreaPrimitive.Corner, {})
|
|
1629
1670
|
]
|
|
1630
1671
|
});
|
|
1631
1672
|
}
|
|
1632
1673
|
function ScrollBar({ density, className, orientation = "vertical", ...props }) {
|
|
1633
|
-
return /* @__PURE__ */
|
|
1674
|
+
return /* @__PURE__ */ jsx20(ScrollAreaPrimitive.Scrollbar, {
|
|
1634
1675
|
"data-density": density,
|
|
1635
1676
|
"data-slot": "scroll-area-scrollbar",
|
|
1636
1677
|
"data-orientation": orientation,
|
|
1637
1678
|
orientation,
|
|
1638
1679
|
className: (state) => cn2("flex touch-none p-px transition-colors select-none data-[orientation=horizontal]:h-2.5 data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:border-t data-[orientation=horizontal]:border-t-transparent data-[orientation=vertical]:w-2.5 data-[orientation=vertical]:border-s data-[orientation=vertical]:border-s-transparent", typeof className === "function" ? className(state) : className),
|
|
1639
1680
|
...props,
|
|
1640
|
-
children: /* @__PURE__ */
|
|
1681
|
+
children: /* @__PURE__ */ jsx20(ScrollAreaPrimitive.Thumb, {
|
|
1641
1682
|
"data-slot": "scroll-area-thumb",
|
|
1642
1683
|
className: "relative flex-1 rounded-full bg-border"
|
|
1643
1684
|
})
|
|
@@ -1662,7 +1703,7 @@ function useDrawer() {
|
|
|
1662
1703
|
|
|
1663
1704
|
// src/components/Drawer.tsx
|
|
1664
1705
|
import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
|
|
1665
|
-
import { jsx as
|
|
1706
|
+
import { jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1666
1707
|
function Drawer({
|
|
1667
1708
|
modal = true,
|
|
1668
1709
|
showSwipeHandle = false,
|
|
@@ -1672,9 +1713,9 @@ function Drawer({
|
|
|
1672
1713
|
}) {
|
|
1673
1714
|
const hasSnapPoints = snapPoints != null && snapPoints.length > 0;
|
|
1674
1715
|
const contextValue = useMemo2(() => ({ hasSnapPoints, modal, showSwipeHandle, swipeDirection }), [hasSnapPoints, modal, showSwipeHandle, swipeDirection]);
|
|
1675
|
-
return /* @__PURE__ */
|
|
1716
|
+
return /* @__PURE__ */ jsx21(DrawerContext.Provider, {
|
|
1676
1717
|
value: contextValue,
|
|
1677
|
-
children: /* @__PURE__ */
|
|
1718
|
+
children: /* @__PURE__ */ jsx21(DrawerPrimitive.Root, {
|
|
1678
1719
|
"data-slot": "drawer",
|
|
1679
1720
|
modal,
|
|
1680
1721
|
snapPoints,
|
|
@@ -1684,28 +1725,28 @@ function Drawer({
|
|
|
1684
1725
|
});
|
|
1685
1726
|
}
|
|
1686
1727
|
function DrawerTrigger({ ...props }) {
|
|
1687
|
-
return /* @__PURE__ */
|
|
1728
|
+
return /* @__PURE__ */ jsx21(DrawerPrimitive.Trigger, {
|
|
1688
1729
|
"data-slot": "drawer-trigger",
|
|
1689
1730
|
...props
|
|
1690
1731
|
});
|
|
1691
1732
|
}
|
|
1692
1733
|
function DrawerPortal({ container, ...props }) {
|
|
1693
1734
|
const resolvedContainer = usePortalContainer2(container);
|
|
1694
|
-
return /* @__PURE__ */
|
|
1735
|
+
return /* @__PURE__ */ jsx21(DrawerPrimitive.Portal, {
|
|
1695
1736
|
"data-slot": "drawer-portal",
|
|
1696
1737
|
container: resolvedContainer,
|
|
1697
1738
|
...props
|
|
1698
1739
|
});
|
|
1699
1740
|
}
|
|
1700
1741
|
function DrawerClose({ ...props }) {
|
|
1701
|
-
return /* @__PURE__ */
|
|
1742
|
+
return /* @__PURE__ */ jsx21(DrawerPrimitive.Close, {
|
|
1702
1743
|
"data-slot": "drawer-close",
|
|
1703
1744
|
...props
|
|
1704
1745
|
});
|
|
1705
1746
|
}
|
|
1706
1747
|
function DrawerOverlay({ density, className, ...props }) {
|
|
1707
1748
|
const resolvedDensity = useDensity(density);
|
|
1708
|
-
return /* @__PURE__ */
|
|
1749
|
+
return /* @__PURE__ */ jsx21(DrawerPrimitive.Backdrop, {
|
|
1709
1750
|
"data-density": resolvedDensity,
|
|
1710
1751
|
"data-slot": "drawer-overlay",
|
|
1711
1752
|
className: (state) => cn2("fixed inset-0 min-h-dvh bg-backdrop opacity-[max(var(--drawer-overlay-min-opacity,0),calc(1-var(--drawer-swipe-progress)))] transition-opacity duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] select-none data-ending-style:pointer-events-none data-ending-style:opacity-0 data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-snap-points:[--drawer-overlay-min-opacity:0.5] data-starting-style:opacity-0 data-swiping:duration-0 supports-[-webkit-touch-callout:none]:absolute", typeof className === "function" ? className(state) : className),
|
|
@@ -1713,7 +1754,7 @@ function DrawerOverlay({ density, className, ...props }) {
|
|
|
1713
1754
|
});
|
|
1714
1755
|
}
|
|
1715
1756
|
function DrawerSwipeHandle({ density, className, ...props }) {
|
|
1716
|
-
return /* @__PURE__ */
|
|
1757
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1717
1758
|
"data-density": density,
|
|
1718
1759
|
"data-slot": "drawer-swipe-handle",
|
|
1719
1760
|
"aria-hidden": "true",
|
|
@@ -1729,10 +1770,10 @@ function DrawerContent({ density, className, children, ...props }) {
|
|
|
1729
1770
|
return /* @__PURE__ */ jsxs13(DrawerPortal, {
|
|
1730
1771
|
"data-slot": "drawer-portal",
|
|
1731
1772
|
children: [
|
|
1732
|
-
modal === true && /* @__PURE__ */
|
|
1773
|
+
modal === true && /* @__PURE__ */ jsx21(DrawerOverlay, {
|
|
1733
1774
|
"data-snap-points": hasSnapPoints ? "" : undefined
|
|
1734
1775
|
}),
|
|
1735
|
-
/* @__PURE__ */
|
|
1776
|
+
/* @__PURE__ */ jsx21(DrawerPrimitive.Viewport, {
|
|
1736
1777
|
dir: direction,
|
|
1737
1778
|
"data-slot": "drawer-viewport",
|
|
1738
1779
|
"data-modal": modal,
|
|
@@ -1745,8 +1786,8 @@ function DrawerContent({ density, className, children, ...props }) {
|
|
|
1745
1786
|
className: (state) => cn2("group/drawer-popup pointer-events-auto fixed m-(--drawer-inset,0px) flex h-(--drawer-content-height) max-h-(--drawer-content-max-height,none) min-h-0 w-(--drawer-content-width,auto) transform-[translate3d(var(--translate-x,0px),var(--translate-y,0px),0)] flex-col border border-frame-edge shadow-frame bg-popover text-sm text-popover-foreground transition-[transform,height,opacity,filter] duration-450 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform outline-none select-none [interpolate-size:allow-keywords] data-[swipe-direction=down]:rounded-t-md data-[swipe-direction=down]:border-t data-[swipe-direction=left]:rounded-r-md data-[swipe-direction=left]:border-r data-[swipe-direction=right]:rounded-l-md data-[swipe-direction=right]:border-l data-[swipe-direction=up]:rounded-b-md data-[swipe-direction=up]:border-b", "data-nested-drawer-open:overflow-hidden data-nested-drawer-open:brightness-95", "after:pointer-events-none after:absolute after:bg-(--drawer-bleed-background,var(--color-popover)) data-[swipe-axis=x]:after:inset-y-0 data-[swipe-axis=x]:after:w-(--bleed) data-[swipe-axis=y]:after:inset-x-0 data-[swipe-axis=y]:after:h-(--bleed) data-[swipe-direction=down]:after:top-full data-[swipe-direction=left]:after:right-full data-[swipe-direction=right]:after:left-full data-[swipe-direction=up]:after:bottom-full", "[--drawer-content-height:var(--drawer-height,auto)] data-[swipe-axis=x]:[--drawer-content-width:75%] data-[swipe-axis=y]:[--drawer-content-max-height:calc(100dvh-6rem)] data-[swipe-axis=y]:data-snap-points:[--drawer-content-height:100dvh] data-[swipe-axis=x]:sm:[--drawer-content-width:24rem]", "[--bleed:3rem] [--peek:1rem] [--stack-height:var(--drawer-frontmost-height,var(--drawer-height,0px))] [--stack-peek-offset:max(0px,calc((var(--nested-drawers)-var(--stack-progress))*var(--peek)))] [--stack-progress:clamp(0,var(--drawer-swipe-progress),1)] [--stack-shrink:0]", "data-ending-style:transform-(--closed-transform) data-ending-style:opacity-[0.9999] data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-nested-drawer-swiping:duration-0 data-ending-style:data-nested-drawer-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-starting-style:transform-(--closed-transform) data-swiping:duration-0 data-ending-style:data-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)]", "data-[swipe-axis=y]:inset-x-0 data-[swipe-axis=y]:data-nested-drawer-open:h-(--stack-height)", "data-[swipe-axis=x]:inset-y-0 data-[swipe-axis=x]:flex-row", "data-[swipe-direction=down]:bottom-0 data-[swipe-direction=down]:origin-bottom data-[swipe-direction=down]:[--closed-transform:translate3d(0,calc(100%+var(--drawer-inset,0px)+2px),0)] data-[swipe-direction=down]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)-var(--stack-peek-offset)-(var(--stack-shrink)*var(--stack-height)))]", "data-[swipe-direction=up]:top-0 data-[swipe-direction=up]:origin-top data-[swipe-direction=up]:[--closed-transform:translate3d(0,calc(-100%-var(--drawer-inset,0px)-2px),0)] data-[swipe-direction=up]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)+var(--stack-peek-offset)+(var(--stack-shrink)*var(--stack-height)))]", "data-[swipe-direction=left]:left-0 data-[swipe-direction=left]:origin-left data-[swipe-direction=left]:[--closed-transform:translate3d(calc(-100%-var(--drawer-inset,0px)-2px),0,0)] data-[swipe-direction=left]:[--translate-x:calc(var(--drawer-swipe-movement-x)+var(--stack-peek-offset)+(var(--stack-shrink)*100%))]", "data-[swipe-direction=right]:right-0 data-[swipe-direction=right]:origin-right data-[swipe-direction=right]:[--closed-transform:translate3d(calc(100%+var(--drawer-inset,0px)+2px),0,0)] data-[swipe-direction=right]:[--translate-x:calc(var(--drawer-swipe-movement-x)-var(--stack-peek-offset)-(var(--stack-shrink)*100%))]", typeof className === "function" ? className(state) : className),
|
|
1746
1787
|
...props,
|
|
1747
1788
|
children: [
|
|
1748
|
-
showSwipeHandle && /* @__PURE__ */
|
|
1749
|
-
/* @__PURE__ */
|
|
1789
|
+
showSwipeHandle && /* @__PURE__ */ jsx21(DrawerSwipeHandle, {}),
|
|
1790
|
+
/* @__PURE__ */ jsx21(DrawerPrimitive.Content, {
|
|
1750
1791
|
"data-slot": "drawer-content",
|
|
1751
1792
|
className: "flex min-h-0 flex-1 flex-col overflow-hidden overscroll-contain rounded-[inherit] transition-opacity duration-300 ease-out select-text group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-drawer-swiping/drawer-popup:opacity-100 group-data-swiping/drawer-popup:select-none",
|
|
1752
1793
|
children
|
|
@@ -1758,7 +1799,7 @@ function DrawerContent({ density, className, children, ...props }) {
|
|
|
1758
1799
|
});
|
|
1759
1800
|
}
|
|
1760
1801
|
function DrawerHeader({ density, className, ...props }) {
|
|
1761
|
-
return /* @__PURE__ */
|
|
1802
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1762
1803
|
"data-density": density,
|
|
1763
1804
|
"data-slot": "drawer-header",
|
|
1764
1805
|
className: cn2("flex shrink-0 flex-col gap-0.5 p-panel pb-0 group-data-[swipe-axis=y]/drawer-popup:text-center md:gap-0.5 md:text-start md:group-data-[swipe-axis=y]/drawer-popup:text-start", className),
|
|
@@ -1766,7 +1807,7 @@ function DrawerHeader({ density, className, ...props }) {
|
|
|
1766
1807
|
});
|
|
1767
1808
|
}
|
|
1768
1809
|
function DrawerFooter({ density, className, ...props }) {
|
|
1769
|
-
return /* @__PURE__ */
|
|
1810
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1770
1811
|
"data-density": density,
|
|
1771
1812
|
"data-slot": "drawer-footer",
|
|
1772
1813
|
className: cn2("mt-auto flex shrink-0 flex-col gap-2 p-panel pt-0", className),
|
|
@@ -1774,7 +1815,7 @@ function DrawerFooter({ density, className, ...props }) {
|
|
|
1774
1815
|
});
|
|
1775
1816
|
}
|
|
1776
1817
|
function DrawerTitle({ density, className, ...props }) {
|
|
1777
|
-
return /* @__PURE__ */
|
|
1818
|
+
return /* @__PURE__ */ jsx21(DrawerPrimitive.Title, {
|
|
1778
1819
|
"data-density": density,
|
|
1779
1820
|
"data-slot": "drawer-title",
|
|
1780
1821
|
className: (state) => cn2(" text-base font-medium text-foreground", typeof className === "function" ? className(state) : className),
|
|
@@ -1782,7 +1823,7 @@ function DrawerTitle({ density, className, ...props }) {
|
|
|
1782
1823
|
});
|
|
1783
1824
|
}
|
|
1784
1825
|
function DrawerDescription({ density, className, ...props }) {
|
|
1785
|
-
return /* @__PURE__ */
|
|
1826
|
+
return /* @__PURE__ */ jsx21(DrawerPrimitive.Description, {
|
|
1786
1827
|
"data-density": density,
|
|
1787
1828
|
"data-slot": "drawer-description",
|
|
1788
1829
|
className: (state) => cn2("text-sm text-balance text-muted-foreground", typeof className === "function" ? className(state) : className),
|
|
@@ -1793,23 +1834,23 @@ function DrawerDescription({ density, className, ...props }) {
|
|
|
1793
1834
|
import { ChevronRightIcon as ChevronRightIcon3, CheckIcon as CheckIcon3 } from "lucide-react";
|
|
1794
1835
|
import { useDirection as useDirection5 } from "@base-ui/react/direction-provider";
|
|
1795
1836
|
import { ContextMenu as ContextMenuPrimitive } from "@base-ui/react/context-menu";
|
|
1796
|
-
import { jsx as
|
|
1837
|
+
import { jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1797
1838
|
function ContextMenu({ ...props }) {
|
|
1798
|
-
return /* @__PURE__ */
|
|
1839
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.Root, {
|
|
1799
1840
|
"data-slot": "context-menu",
|
|
1800
1841
|
...props
|
|
1801
1842
|
});
|
|
1802
1843
|
}
|
|
1803
1844
|
function ContextMenuPortal({ container, ...props }) {
|
|
1804
1845
|
const resolvedContainer = usePortalContainer2(container);
|
|
1805
|
-
return /* @__PURE__ */
|
|
1846
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.Portal, {
|
|
1806
1847
|
"data-slot": "context-menu-portal",
|
|
1807
1848
|
container: resolvedContainer,
|
|
1808
1849
|
...props
|
|
1809
1850
|
});
|
|
1810
1851
|
}
|
|
1811
1852
|
function ContextMenuTrigger({ density, className, ...props }) {
|
|
1812
|
-
return /* @__PURE__ */
|
|
1853
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.Trigger, {
|
|
1813
1854
|
"data-density": density,
|
|
1814
1855
|
"data-slot": "context-menu-trigger",
|
|
1815
1856
|
className: (state) => cn2("select-none", typeof className === "function" ? className(state) : className),
|
|
@@ -1827,15 +1868,15 @@ function ContextMenuContent({
|
|
|
1827
1868
|
}) {
|
|
1828
1869
|
const resolvedDensity = useDensity(density);
|
|
1829
1870
|
const direction = useDirection5();
|
|
1830
|
-
return /* @__PURE__ */
|
|
1831
|
-
children: /* @__PURE__ */
|
|
1871
|
+
return /* @__PURE__ */ jsx22(ContextMenuPortal, {
|
|
1872
|
+
children: /* @__PURE__ */ jsx22(ContextMenuPrimitive.Positioner, {
|
|
1832
1873
|
dir: direction,
|
|
1833
1874
|
className: "isolate outline-none",
|
|
1834
1875
|
align,
|
|
1835
1876
|
alignOffset,
|
|
1836
1877
|
side,
|
|
1837
1878
|
sideOffset,
|
|
1838
|
-
children: /* @__PURE__ */
|
|
1879
|
+
children: /* @__PURE__ */ jsx22(ContextMenuPrimitive.Popup, {
|
|
1839
1880
|
dir: direction,
|
|
1840
1881
|
"data-density": resolvedDensity,
|
|
1841
1882
|
"data-slot": "context-menu-content",
|
|
@@ -1846,13 +1887,13 @@ function ContextMenuContent({
|
|
|
1846
1887
|
});
|
|
1847
1888
|
}
|
|
1848
1889
|
function ContextMenuGroup({ ...props }) {
|
|
1849
|
-
return /* @__PURE__ */
|
|
1890
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.Group, {
|
|
1850
1891
|
"data-slot": "context-menu-group",
|
|
1851
1892
|
...props
|
|
1852
1893
|
});
|
|
1853
1894
|
}
|
|
1854
1895
|
function ContextMenuLabel({ density, className, inset, ...props }) {
|
|
1855
|
-
return /* @__PURE__ */
|
|
1896
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.GroupLabel, {
|
|
1856
1897
|
"data-density": density,
|
|
1857
1898
|
"data-slot": "context-menu-label",
|
|
1858
1899
|
"data-inset": inset,
|
|
@@ -1861,7 +1902,7 @@ function ContextMenuLabel({ density, className, inset, ...props }) {
|
|
|
1861
1902
|
});
|
|
1862
1903
|
}
|
|
1863
1904
|
function ContextMenuItem({ density, className, inset, variant = "default", ...props }) {
|
|
1864
|
-
return /* @__PURE__ */
|
|
1905
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.Item, {
|
|
1865
1906
|
"data-density": density,
|
|
1866
1907
|
"data-slot": "context-menu-item",
|
|
1867
1908
|
"data-inset": inset,
|
|
@@ -1871,7 +1912,7 @@ function ContextMenuItem({ density, className, inset, variant = "default", ...pr
|
|
|
1871
1912
|
});
|
|
1872
1913
|
}
|
|
1873
1914
|
function ContextMenuSub({ ...props }) {
|
|
1874
|
-
return /* @__PURE__ */
|
|
1915
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.SubmenuRoot, {
|
|
1875
1916
|
"data-slot": "context-menu-sub",
|
|
1876
1917
|
...props
|
|
1877
1918
|
});
|
|
@@ -1885,14 +1926,14 @@ function ContextMenuSubTrigger({ density, className, inset, children, ...props }
|
|
|
1885
1926
|
...props,
|
|
1886
1927
|
children: [
|
|
1887
1928
|
children,
|
|
1888
|
-
/* @__PURE__ */
|
|
1929
|
+
/* @__PURE__ */ jsx22(ChevronRightIcon3, {
|
|
1889
1930
|
className: "rtl:rotate-180 ms-auto"
|
|
1890
1931
|
})
|
|
1891
1932
|
]
|
|
1892
1933
|
});
|
|
1893
1934
|
}
|
|
1894
1935
|
function ContextMenuSubContent({ ...props }) {
|
|
1895
|
-
return /* @__PURE__ */
|
|
1936
|
+
return /* @__PURE__ */ jsx22(ContextMenuContent, {
|
|
1896
1937
|
"data-slot": "context-menu-sub-content",
|
|
1897
1938
|
className: " shadow-frame border border-frame-edge",
|
|
1898
1939
|
side: "inline-end",
|
|
@@ -1915,10 +1956,10 @@ function ContextMenuCheckboxItem({
|
|
|
1915
1956
|
checked,
|
|
1916
1957
|
...props,
|
|
1917
1958
|
children: [
|
|
1918
|
-
/* @__PURE__ */
|
|
1959
|
+
/* @__PURE__ */ jsx22("span", {
|
|
1919
1960
|
className: "pointer-events-none absolute end-2",
|
|
1920
|
-
children: /* @__PURE__ */
|
|
1921
|
-
children: /* @__PURE__ */
|
|
1961
|
+
children: /* @__PURE__ */ jsx22(ContextMenuPrimitive.CheckboxItemIndicator, {
|
|
1962
|
+
children: /* @__PURE__ */ jsx22(CheckIcon3, {})
|
|
1922
1963
|
})
|
|
1923
1964
|
}),
|
|
1924
1965
|
children
|
|
@@ -1926,7 +1967,7 @@ function ContextMenuCheckboxItem({
|
|
|
1926
1967
|
});
|
|
1927
1968
|
}
|
|
1928
1969
|
function ContextMenuRadioGroup({ ...props }) {
|
|
1929
|
-
return /* @__PURE__ */
|
|
1970
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.RadioGroup, {
|
|
1930
1971
|
"data-slot": "context-menu-radio-group",
|
|
1931
1972
|
...props
|
|
1932
1973
|
});
|
|
@@ -1939,10 +1980,10 @@ function ContextMenuRadioItem({ density, className, children, inset, ...props })
|
|
|
1939
1980
|
className: (state) => cn2("relative flex cursor-default items-center gap-control-gap rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
|
|
1940
1981
|
...props,
|
|
1941
1982
|
children: [
|
|
1942
|
-
/* @__PURE__ */
|
|
1983
|
+
/* @__PURE__ */ jsx22("span", {
|
|
1943
1984
|
className: "pointer-events-none absolute end-2",
|
|
1944
|
-
children: /* @__PURE__ */
|
|
1945
|
-
children: /* @__PURE__ */
|
|
1985
|
+
children: /* @__PURE__ */ jsx22(ContextMenuPrimitive.RadioItemIndicator, {
|
|
1986
|
+
children: /* @__PURE__ */ jsx22(CheckIcon3, {})
|
|
1946
1987
|
})
|
|
1947
1988
|
}),
|
|
1948
1989
|
children
|
|
@@ -1950,7 +1991,7 @@ function ContextMenuRadioItem({ density, className, children, inset, ...props })
|
|
|
1950
1991
|
});
|
|
1951
1992
|
}
|
|
1952
1993
|
function ContextMenuSeparator({ density, className, ...props }) {
|
|
1953
|
-
return /* @__PURE__ */
|
|
1994
|
+
return /* @__PURE__ */ jsx22(ContextMenuPrimitive.Separator, {
|
|
1954
1995
|
"data-density": density,
|
|
1955
1996
|
"data-slot": "context-menu-separator",
|
|
1956
1997
|
className: (state) => cn2("-mx-1 my-1 h-px bg-border", typeof className === "function" ? className(state) : className),
|
|
@@ -1958,7 +1999,7 @@ function ContextMenuSeparator({ density, className, ...props }) {
|
|
|
1958
1999
|
});
|
|
1959
2000
|
}
|
|
1960
2001
|
function ContextMenuShortcut({ density, className, ...props }) {
|
|
1961
|
-
return /* @__PURE__ */
|
|
2002
|
+
return /* @__PURE__ */ jsx22("span", {
|
|
1962
2003
|
"data-density": density,
|
|
1963
2004
|
"data-slot": "context-menu-shortcut",
|
|
1964
2005
|
className: cn2("ms-auto text-xs tracking-widest text-muted-foreground group-focus/context-menu-item:text-accent-foreground", className),
|
|
@@ -1969,9 +2010,9 @@ function ContextMenuShortcut({ density, className, ...props }) {
|
|
|
1969
2010
|
import { CheckIcon as CheckIcon4 } from "lucide-react";
|
|
1970
2011
|
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
1971
2012
|
import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar";
|
|
1972
|
-
import { jsx as
|
|
2013
|
+
import { jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1973
2014
|
function Menubar({ density, className, ...props }) {
|
|
1974
|
-
return /* @__PURE__ */
|
|
2015
|
+
return /* @__PURE__ */ jsx23(MenubarPrimitive, {
|
|
1975
2016
|
"data-density": density,
|
|
1976
2017
|
"data-slot": "menubar",
|
|
1977
2018
|
className: (state) => cn2("flex h-control items-center gap-0.5 rounded-sm border p-px", typeof className === "function" ? className(state) : className),
|
|
@@ -1979,25 +2020,25 @@ function Menubar({ density, className, ...props }) {
|
|
|
1979
2020
|
});
|
|
1980
2021
|
}
|
|
1981
2022
|
function MenubarMenu({ ...props }) {
|
|
1982
|
-
return /* @__PURE__ */
|
|
2023
|
+
return /* @__PURE__ */ jsx23(DropdownMenu2, {
|
|
1983
2024
|
"data-slot": "menubar-menu",
|
|
1984
2025
|
...props
|
|
1985
2026
|
});
|
|
1986
2027
|
}
|
|
1987
2028
|
function MenubarGroup({ ...props }) {
|
|
1988
|
-
return /* @__PURE__ */
|
|
2029
|
+
return /* @__PURE__ */ jsx23(DropdownMenuGroup2, {
|
|
1989
2030
|
"data-slot": "menubar-group",
|
|
1990
2031
|
...props
|
|
1991
2032
|
});
|
|
1992
2033
|
}
|
|
1993
2034
|
function MenubarPortal({ ...props }) {
|
|
1994
|
-
return /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ jsx23(DropdownMenuPortal2, {
|
|
1995
2036
|
"data-slot": "menubar-portal",
|
|
1996
2037
|
...props
|
|
1997
2038
|
});
|
|
1998
2039
|
}
|
|
1999
2040
|
function MenubarTrigger({ density, className, ...props }) {
|
|
2000
|
-
return /* @__PURE__ */
|
|
2041
|
+
return /* @__PURE__ */ jsx23(DropdownMenuTrigger2, {
|
|
2001
2042
|
"data-density": density,
|
|
2002
2043
|
"data-slot": "menubar-trigger",
|
|
2003
2044
|
className: (state) => cn2("flex h-full items-center rounded-sm px-control-x text-sm leading-none font-medium outline-hidden select-none hover:bg-muted aria-expanded:bg-muted", typeof className === "function" ? className(state) : className),
|
|
@@ -2012,7 +2053,7 @@ function MenubarContent({
|
|
|
2012
2053
|
sideOffset = 8,
|
|
2013
2054
|
...props
|
|
2014
2055
|
}) {
|
|
2015
|
-
return /* @__PURE__ */
|
|
2056
|
+
return /* @__PURE__ */ jsx23(DropdownMenuContent2, {
|
|
2016
2057
|
density,
|
|
2017
2058
|
"data-slot": "menubar-content",
|
|
2018
2059
|
align,
|
|
@@ -2023,7 +2064,7 @@ function MenubarContent({
|
|
|
2023
2064
|
});
|
|
2024
2065
|
}
|
|
2025
2066
|
function MenubarItem({ density, className, inset, variant = "default", ...props }) {
|
|
2026
|
-
return /* @__PURE__ */
|
|
2067
|
+
return /* @__PURE__ */ jsx23(DropdownMenuItem2, {
|
|
2027
2068
|
density,
|
|
2028
2069
|
"data-slot": "menubar-item",
|
|
2029
2070
|
inset,
|
|
@@ -2048,10 +2089,10 @@ function MenubarCheckboxItem({
|
|
|
2048
2089
|
checked,
|
|
2049
2090
|
...props,
|
|
2050
2091
|
children: [
|
|
2051
|
-
/* @__PURE__ */
|
|
2092
|
+
/* @__PURE__ */ jsx23("span", {
|
|
2052
2093
|
className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
2053
|
-
children: /* @__PURE__ */
|
|
2054
|
-
children: /* @__PURE__ */
|
|
2094
|
+
children: /* @__PURE__ */ jsx23(MenuPrimitive.CheckboxItemIndicator, {
|
|
2095
|
+
children: /* @__PURE__ */ jsx23(CheckIcon4, {})
|
|
2055
2096
|
})
|
|
2056
2097
|
}),
|
|
2057
2098
|
children
|
|
@@ -2059,7 +2100,7 @@ function MenubarCheckboxItem({
|
|
|
2059
2100
|
});
|
|
2060
2101
|
}
|
|
2061
2102
|
function MenubarRadioGroup({ ...props }) {
|
|
2062
|
-
return /* @__PURE__ */
|
|
2103
|
+
return /* @__PURE__ */ jsx23(DropdownMenuRadioGroup2, {
|
|
2063
2104
|
"data-slot": "menubar-radio-group",
|
|
2064
2105
|
...props
|
|
2065
2106
|
});
|
|
@@ -2072,10 +2113,10 @@ function MenubarRadioItem({ density, className, children, inset, ...props }) {
|
|
|
2072
2113
|
className: (state) => cn2("relative flex cursor-default items-center gap-control-gap rounded-md py-1 pe-1.5 ps-7 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
|
|
2073
2114
|
...props,
|
|
2074
2115
|
children: [
|
|
2075
|
-
/* @__PURE__ */
|
|
2116
|
+
/* @__PURE__ */ jsx23("span", {
|
|
2076
2117
|
className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
2077
|
-
children: /* @__PURE__ */
|
|
2078
|
-
children: /* @__PURE__ */
|
|
2118
|
+
children: /* @__PURE__ */ jsx23(MenuPrimitive.RadioItemIndicator, {
|
|
2119
|
+
children: /* @__PURE__ */ jsx23(CheckIcon4, {})
|
|
2079
2120
|
})
|
|
2080
2121
|
}),
|
|
2081
2122
|
children
|
|
@@ -2083,7 +2124,7 @@ function MenubarRadioItem({ density, className, children, inset, ...props }) {
|
|
|
2083
2124
|
});
|
|
2084
2125
|
}
|
|
2085
2126
|
function MenubarLabel({ density, className, inset, ...props }) {
|
|
2086
|
-
return /* @__PURE__ */
|
|
2127
|
+
return /* @__PURE__ */ jsx23(DropdownMenuLabel2, {
|
|
2087
2128
|
density,
|
|
2088
2129
|
"data-slot": "menubar-label",
|
|
2089
2130
|
inset,
|
|
@@ -2092,7 +2133,7 @@ function MenubarLabel({ density, className, inset, ...props }) {
|
|
|
2092
2133
|
});
|
|
2093
2134
|
}
|
|
2094
2135
|
function MenubarSeparator({ density, className, ...props }) {
|
|
2095
|
-
return /* @__PURE__ */
|
|
2136
|
+
return /* @__PURE__ */ jsx23(DropdownMenuSeparator2, {
|
|
2096
2137
|
density,
|
|
2097
2138
|
"data-slot": "menubar-separator",
|
|
2098
2139
|
className: (state) => cn2("-mx-1 my-1 h-px bg-border", typeof className === "function" ? className(state) : className),
|
|
@@ -2100,7 +2141,7 @@ function MenubarSeparator({ density, className, ...props }) {
|
|
|
2100
2141
|
});
|
|
2101
2142
|
}
|
|
2102
2143
|
function MenubarShortcut({ density, className, ...props }) {
|
|
2103
|
-
return /* @__PURE__ */
|
|
2144
|
+
return /* @__PURE__ */ jsx23(DropdownMenuShortcut2, {
|
|
2104
2145
|
"data-density": density,
|
|
2105
2146
|
"data-slot": "menubar-shortcut",
|
|
2106
2147
|
className: cn2("ms-auto text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground", className),
|
|
@@ -2108,13 +2149,13 @@ function MenubarShortcut({ density, className, ...props }) {
|
|
|
2108
2149
|
});
|
|
2109
2150
|
}
|
|
2110
2151
|
function MenubarSub({ ...props }) {
|
|
2111
|
-
return /* @__PURE__ */
|
|
2152
|
+
return /* @__PURE__ */ jsx23(DropdownMenuSub2, {
|
|
2112
2153
|
"data-slot": "menubar-sub",
|
|
2113
2154
|
...props
|
|
2114
2155
|
});
|
|
2115
2156
|
}
|
|
2116
2157
|
function MenubarSubTrigger({ density, className, inset, ...props }) {
|
|
2117
|
-
return /* @__PURE__ */
|
|
2158
|
+
return /* @__PURE__ */ jsx23(DropdownMenuSubTrigger2, {
|
|
2118
2159
|
density,
|
|
2119
2160
|
"data-slot": "menubar-sub-trigger",
|
|
2120
2161
|
inset,
|
|
@@ -2123,7 +2164,7 @@ function MenubarSubTrigger({ density, className, inset, ...props }) {
|
|
|
2123
2164
|
});
|
|
2124
2165
|
}
|
|
2125
2166
|
function MenubarSubContent({ density, className, ...props }) {
|
|
2126
|
-
return /* @__PURE__ */
|
|
2167
|
+
return /* @__PURE__ */ jsx23(DropdownMenuSubContent2, {
|
|
2127
2168
|
density,
|
|
2128
2169
|
"data-slot": "menubar-sub-content",
|
|
2129
2170
|
className: (state) => cn2(" min-w-32 rounded-sm bg-popover p-1 text-popover-foreground shadow-frame border border-frame-edge border border-frame-edge shadow-frame duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 ", typeof className === "function" ? className(state) : className),
|
|
@@ -2134,7 +2175,7 @@ function MenubarSubContent({ density, className, ...props }) {
|
|
|
2134
2175
|
import { ChevronDownIcon as ChevronDownIcon5 } from "lucide-react";
|
|
2135
2176
|
import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
|
|
2136
2177
|
import { cva as cva4 } from "class-variance-authority";
|
|
2137
|
-
import { jsx as
|
|
2178
|
+
import { jsx as jsx24, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2138
2179
|
function NavigationMenu({
|
|
2139
2180
|
density,
|
|
2140
2181
|
align = "start",
|
|
@@ -2150,7 +2191,7 @@ function NavigationMenu({
|
|
|
2150
2191
|
...props,
|
|
2151
2192
|
children: [
|
|
2152
2193
|
children,
|
|
2153
|
-
/* @__PURE__ */
|
|
2194
|
+
/* @__PURE__ */ jsx24(NavigationMenuPositioner, {
|
|
2154
2195
|
density: resolvedDensity,
|
|
2155
2196
|
align
|
|
2156
2197
|
})
|
|
@@ -2158,7 +2199,7 @@ function NavigationMenu({
|
|
|
2158
2199
|
});
|
|
2159
2200
|
}
|
|
2160
2201
|
function NavigationMenuList({ density, className, ...props }) {
|
|
2161
|
-
return /* @__PURE__ */
|
|
2202
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.List, {
|
|
2162
2203
|
"data-density": density,
|
|
2163
2204
|
"data-slot": "navigation-menu-list",
|
|
2164
2205
|
className: (state) => cn2("group flex flex-1 list-none items-center justify-center gap-0", typeof className === "function" ? className(state) : className),
|
|
@@ -2166,7 +2207,7 @@ function NavigationMenuList({ density, className, ...props }) {
|
|
|
2166
2207
|
});
|
|
2167
2208
|
}
|
|
2168
2209
|
function NavigationMenuItem({ density, className, ...props }) {
|
|
2169
|
-
return /* @__PURE__ */
|
|
2210
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Item, {
|
|
2170
2211
|
"data-density": density,
|
|
2171
2212
|
"data-slot": "navigation-menu-item",
|
|
2172
2213
|
className: (state) => cn2("relative", typeof className === "function" ? className(state) : className),
|
|
@@ -2183,12 +2224,12 @@ function NavigationMenuTrigger({ density, className, children, ...props }) {
|
|
|
2183
2224
|
children: [
|
|
2184
2225
|
children,
|
|
2185
2226
|
" ",
|
|
2186
|
-
/* @__PURE__ */
|
|
2227
|
+
/* @__PURE__ */ jsx24(NavigationMenuIndicator, {})
|
|
2187
2228
|
]
|
|
2188
2229
|
});
|
|
2189
2230
|
}
|
|
2190
2231
|
function NavigationMenuContent({ density, className, ...props }) {
|
|
2191
|
-
return /* @__PURE__ */
|
|
2232
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Content, {
|
|
2192
2233
|
"data-density": density,
|
|
2193
2234
|
"data-slot": "navigation-menu-content",
|
|
2194
2235
|
className: (state) => cn2("data-ending-style:data-activation-direction=left:translate-x-[50%] data-ending-style:data-activation-direction=right:translate-x-[-50%] data-starting-style:data-activation-direction=left:translate-x-[-50%] data-starting-style:data-activation-direction=right:translate-x-[50%] h-full w-auto p-1 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-ending-style:opacity-0 data-starting-style:opacity-0 ", typeof className === "function" ? className(state) : className),
|
|
@@ -2207,9 +2248,9 @@ function NavigationMenuPositioner({
|
|
|
2207
2248
|
const resolvedDensity = useDensity(density);
|
|
2208
2249
|
const direction = useDirection2();
|
|
2209
2250
|
const container = usePortalContainer2();
|
|
2210
|
-
return /* @__PURE__ */
|
|
2251
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Portal, {
|
|
2211
2252
|
container,
|
|
2212
|
-
children: /* @__PURE__ */
|
|
2253
|
+
children: /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Positioner, {
|
|
2213
2254
|
dir: direction,
|
|
2214
2255
|
side,
|
|
2215
2256
|
sideOffset,
|
|
@@ -2217,11 +2258,11 @@ function NavigationMenuPositioner({
|
|
|
2217
2258
|
alignOffset,
|
|
2218
2259
|
className: (state) => cn2("isolate h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0", typeof className === "function" ? className(state) : className),
|
|
2219
2260
|
...props,
|
|
2220
|
-
children: /* @__PURE__ */
|
|
2261
|
+
children: /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Popup, {
|
|
2221
2262
|
"data-density": resolvedDensity,
|
|
2222
2263
|
"data-slot": "navigation-menu-popup",
|
|
2223
2264
|
className: "data-[ending-style]:easing-[ease] xs:w-(--popup-width) relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-sm bg-popover text-popover-foreground border border-frame-edge shadow-frame transition-[opacity,transform,width,height,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:opacity-0",
|
|
2224
|
-
children: /* @__PURE__ */
|
|
2265
|
+
children: /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Viewport, {
|
|
2225
2266
|
className: "relative size-full overflow-hidden"
|
|
2226
2267
|
})
|
|
2227
2268
|
})
|
|
@@ -2229,7 +2270,7 @@ function NavigationMenuPositioner({
|
|
|
2229
2270
|
});
|
|
2230
2271
|
}
|
|
2231
2272
|
function NavigationMenuLink({ density, className, ...props }) {
|
|
2232
|
-
return /* @__PURE__ */
|
|
2273
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Link, {
|
|
2233
2274
|
"data-density": density,
|
|
2234
2275
|
"data-slot": "navigation-menu-link",
|
|
2235
2276
|
className: (state) => cn2("flex items-center gap-2 rounded-sm p-2 text-sm transition-colors outline-none hover:bg-muted focus:bg-muted focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
|
|
@@ -2242,26 +2283,26 @@ function NavigationMenuIndicator({
|
|
|
2242
2283
|
children,
|
|
2243
2284
|
...props
|
|
2244
2285
|
}) {
|
|
2245
|
-
return /* @__PURE__ */
|
|
2286
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Icon, {
|
|
2246
2287
|
"data-density": density,
|
|
2247
2288
|
"data-slot": "navigation-menu-indicator",
|
|
2248
2289
|
className: (state) => cn2("ms-1 inline-flex size-3 shrink-0 items-center justify-center transition-transform duration-120 data-popup-open:rotate-180 [&_svg]:size-full", typeof className === "function" ? className(state) : className),
|
|
2249
2290
|
...props,
|
|
2250
|
-
children: children ?? /* @__PURE__ */
|
|
2291
|
+
children: children ?? /* @__PURE__ */ jsx24(ChevronDownIcon5, {})
|
|
2251
2292
|
});
|
|
2252
2293
|
}
|
|
2253
2294
|
// src/components/Toast.tsx
|
|
2254
2295
|
import { Toast as ToastPrimitive } from "@base-ui/react/toast";
|
|
2255
2296
|
import { CircleCheckIcon, InfoIcon, TriangleAlertIcon, OctagonXIcon, LoaderCircleIcon, XIcon as XIcon2 } from "lucide-react";
|
|
2256
|
-
import { jsx as
|
|
2297
|
+
import { jsx as jsx25, jsxs as jsxs17, Fragment } from "react/jsx-runtime";
|
|
2257
2298
|
function ToastProvider(props) {
|
|
2258
|
-
return /* @__PURE__ */
|
|
2299
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Provider, {
|
|
2259
2300
|
...props
|
|
2260
2301
|
});
|
|
2261
2302
|
}
|
|
2262
2303
|
function ToastPortal({ container, ...props }) {
|
|
2263
2304
|
const resolvedContainer = usePortalContainer2(container);
|
|
2264
|
-
return /* @__PURE__ */
|
|
2305
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Portal, {
|
|
2265
2306
|
"data-slot": "toast-portal",
|
|
2266
2307
|
container: resolvedContainer,
|
|
2267
2308
|
...props
|
|
@@ -2270,7 +2311,7 @@ function ToastPortal({ container, ...props }) {
|
|
|
2270
2311
|
function ToastViewport({ density, dir, className, ...props }) {
|
|
2271
2312
|
const resolvedDensity = useDensity(density);
|
|
2272
2313
|
const inheritedDirection = useDirection2();
|
|
2273
|
-
return /* @__PURE__ */
|
|
2314
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Viewport, {
|
|
2274
2315
|
dir: dir ?? inheritedDirection,
|
|
2275
2316
|
"data-density": resolvedDensity,
|
|
2276
2317
|
"data-slot": "toast-viewport",
|
|
@@ -2279,7 +2320,7 @@ function ToastViewport({ density, dir, className, ...props }) {
|
|
|
2279
2320
|
});
|
|
2280
2321
|
}
|
|
2281
2322
|
function Toast({ density, className, ...props }) {
|
|
2282
|
-
return /* @__PURE__ */
|
|
2323
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Root, {
|
|
2283
2324
|
"data-density": density,
|
|
2284
2325
|
"data-slot": "toast",
|
|
2285
2326
|
className: (state) => cn2("group/toast pointer-events-auto absolute right-0 bottom-0 w-full rounded-md border border-frame-edge bg-popover text-popover-foreground shadow-frame outline-none select-none focus-visible:ring-1 focus-visible:ring-ring [--offset-y:calc(var(--toast-offset-y)*-1-var(--toast-index)*var(--spacing-panel))] [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--offset-y)+var(--toast-swipe-movement-y)))] transition-[transform,opacity] duration-120 ease-out data-limited:opacity-0 data-starting-style:opacity-0 data-ending-style:opacity-0 motion-reduce:transition-none", typeof className === "function" ? className(state) : className),
|
|
@@ -2287,21 +2328,21 @@ function Toast({ density, className, ...props }) {
|
|
|
2287
2328
|
});
|
|
2288
2329
|
}
|
|
2289
2330
|
function ToastContent({ className, ...props }) {
|
|
2290
|
-
return /* @__PURE__ */
|
|
2331
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Content, {
|
|
2291
2332
|
"data-slot": "toast-content",
|
|
2292
2333
|
className: (state) => cn2("flex items-center gap-control-gap p-panel", typeof className === "function" ? className(state) : className),
|
|
2293
2334
|
...props
|
|
2294
2335
|
});
|
|
2295
2336
|
}
|
|
2296
2337
|
function ToastTitle({ className, ...props }) {
|
|
2297
|
-
return /* @__PURE__ */
|
|
2338
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Title, {
|
|
2298
2339
|
"data-slot": "toast-title",
|
|
2299
2340
|
className: (state) => cn2("text-sm font-medium", typeof className === "function" ? className(state) : className),
|
|
2300
2341
|
...props
|
|
2301
2342
|
});
|
|
2302
2343
|
}
|
|
2303
2344
|
function ToastDescription({ className, ...props }) {
|
|
2304
|
-
return /* @__PURE__ */
|
|
2345
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Description, {
|
|
2305
2346
|
"data-slot": "toast-description",
|
|
2306
2347
|
className: (state) => cn2("text-sm text-muted-foreground", typeof className === "function" ? className(state) : className),
|
|
2307
2348
|
...props
|
|
@@ -2309,13 +2350,13 @@ function ToastDescription({ className, ...props }) {
|
|
|
2309
2350
|
}
|
|
2310
2351
|
function ToastAction({
|
|
2311
2352
|
className,
|
|
2312
|
-
render = /* @__PURE__ */
|
|
2353
|
+
render = /* @__PURE__ */ jsx25(Button2, {
|
|
2313
2354
|
variant: "outline",
|
|
2314
2355
|
size: "sm"
|
|
2315
2356
|
}),
|
|
2316
2357
|
...props
|
|
2317
2358
|
}) {
|
|
2318
|
-
return /* @__PURE__ */
|
|
2359
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Action, {
|
|
2319
2360
|
"data-slot": "toast-action",
|
|
2320
2361
|
render,
|
|
2321
2362
|
className: (state) => cn2("shrink-0", typeof className === "function" ? className(state) : className),
|
|
@@ -2325,19 +2366,19 @@ function ToastAction({
|
|
|
2325
2366
|
function ToastClose({
|
|
2326
2367
|
className,
|
|
2327
2368
|
children,
|
|
2328
|
-
render = /* @__PURE__ */
|
|
2369
|
+
render = /* @__PURE__ */ jsx25(Button2, {
|
|
2329
2370
|
variant: "ghost",
|
|
2330
2371
|
size: "icon-sm"
|
|
2331
2372
|
}),
|
|
2332
2373
|
...props
|
|
2333
2374
|
}) {
|
|
2334
|
-
return /* @__PURE__ */
|
|
2375
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Close, {
|
|
2335
2376
|
"data-slot": "toast-close",
|
|
2336
2377
|
"aria-label": "Close toast",
|
|
2337
2378
|
render,
|
|
2338
2379
|
className: (state) => cn2("relative shrink-0 text-muted-foreground hover:text-foreground", typeof className === "function" ? className(state) : className),
|
|
2339
2380
|
...props,
|
|
2340
|
-
children: children ?? /* @__PURE__ */
|
|
2381
|
+
children: children ?? /* @__PURE__ */ jsx25(XIcon2, {
|
|
2341
2382
|
"aria-hidden": "true"
|
|
2342
2383
|
})
|
|
2343
2384
|
});
|
|
@@ -2345,24 +2386,24 @@ function ToastClose({
|
|
|
2345
2386
|
function ToastIcon({ type }) {
|
|
2346
2387
|
switch (type) {
|
|
2347
2388
|
case "success":
|
|
2348
|
-
return /* @__PURE__ */
|
|
2389
|
+
return /* @__PURE__ */ jsx25(CircleCheckIcon, {
|
|
2349
2390
|
"aria-hidden": "true"
|
|
2350
2391
|
});
|
|
2351
2392
|
case "info":
|
|
2352
|
-
return /* @__PURE__ */
|
|
2393
|
+
return /* @__PURE__ */ jsx25(InfoIcon, {
|
|
2353
2394
|
"aria-hidden": "true"
|
|
2354
2395
|
});
|
|
2355
2396
|
case "warning":
|
|
2356
|
-
return /* @__PURE__ */
|
|
2397
|
+
return /* @__PURE__ */ jsx25(TriangleAlertIcon, {
|
|
2357
2398
|
"aria-hidden": "true"
|
|
2358
2399
|
});
|
|
2359
2400
|
case "error":
|
|
2360
|
-
return /* @__PURE__ */
|
|
2401
|
+
return /* @__PURE__ */ jsx25(OctagonXIcon, {
|
|
2361
2402
|
"aria-hidden": "true",
|
|
2362
2403
|
className: "text-destructive"
|
|
2363
2404
|
});
|
|
2364
2405
|
case "loading":
|
|
2365
|
-
return /* @__PURE__ */
|
|
2406
|
+
return /* @__PURE__ */ jsx25(LoaderCircleIcon, {
|
|
2366
2407
|
"aria-hidden": "true",
|
|
2367
2408
|
className: "animate-spin motion-reduce:animate-none"
|
|
2368
2409
|
});
|
|
@@ -2372,27 +2413,27 @@ function ToastIcon({ type }) {
|
|
|
2372
2413
|
}
|
|
2373
2414
|
function ToastList() {
|
|
2374
2415
|
const { toasts } = ToastPrimitive.useToastManager();
|
|
2375
|
-
return /* @__PURE__ */
|
|
2376
|
-
children: toasts.map((toastItem) => /* @__PURE__ */
|
|
2416
|
+
return /* @__PURE__ */ jsx25(Fragment, {
|
|
2417
|
+
children: toasts.map((toastItem) => /* @__PURE__ */ jsx25(Toast, {
|
|
2377
2418
|
toast: toastItem,
|
|
2378
2419
|
children: /* @__PURE__ */ jsxs17(ToastContent, {
|
|
2379
2420
|
children: [
|
|
2380
|
-
/* @__PURE__ */
|
|
2421
|
+
/* @__PURE__ */ jsx25("span", {
|
|
2381
2422
|
"data-slot": "toast-icon",
|
|
2382
2423
|
className: "shrink-0 empty:hidden [&_svg]:size-4",
|
|
2383
|
-
children: /* @__PURE__ */
|
|
2424
|
+
children: /* @__PURE__ */ jsx25(ToastIcon, {
|
|
2384
2425
|
type: toastItem.type
|
|
2385
2426
|
})
|
|
2386
2427
|
}),
|
|
2387
2428
|
/* @__PURE__ */ jsxs17("div", {
|
|
2388
2429
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
2389
2430
|
children: [
|
|
2390
|
-
/* @__PURE__ */
|
|
2391
|
-
/* @__PURE__ */
|
|
2431
|
+
/* @__PURE__ */ jsx25(ToastTitle, {}),
|
|
2432
|
+
/* @__PURE__ */ jsx25(ToastDescription, {})
|
|
2392
2433
|
]
|
|
2393
2434
|
}),
|
|
2394
|
-
/* @__PURE__ */
|
|
2395
|
-
/* @__PURE__ */
|
|
2435
|
+
/* @__PURE__ */ jsx25(ToastAction, {}),
|
|
2436
|
+
/* @__PURE__ */ jsx25(ToastClose, {})
|
|
2396
2437
|
]
|
|
2397
2438
|
})
|
|
2398
2439
|
}, toastItem.id))
|
|
@@ -2403,10 +2444,10 @@ function ToastToaster({ children, density, ...props }) {
|
|
|
2403
2444
|
...props,
|
|
2404
2445
|
children: [
|
|
2405
2446
|
children,
|
|
2406
|
-
/* @__PURE__ */
|
|
2407
|
-
children: /* @__PURE__ */
|
|
2447
|
+
/* @__PURE__ */ jsx25(ToastPortal, {
|
|
2448
|
+
children: /* @__PURE__ */ jsx25(ToastViewport, {
|
|
2408
2449
|
density,
|
|
2409
|
-
children: /* @__PURE__ */
|
|
2450
|
+
children: /* @__PURE__ */ jsx25(ToastList, {})
|
|
2410
2451
|
})
|
|
2411
2452
|
})
|
|
2412
2453
|
]
|
|
@@ -2419,10 +2460,10 @@ function useToastManager() {
|
|
|
2419
2460
|
return Toast2.useToastManager();
|
|
2420
2461
|
}
|
|
2421
2462
|
// src/components/Marker.tsx
|
|
2422
|
-
import { mergeProps as
|
|
2423
|
-
import { useRender as
|
|
2463
|
+
import { mergeProps as mergeProps8 } from "@base-ui/react/merge-props";
|
|
2464
|
+
import { useRender as useRender8 } from "@base-ui/react/use-render";
|
|
2424
2465
|
import { cva as cva5 } from "class-variance-authority";
|
|
2425
|
-
import { jsx as
|
|
2466
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2426
2467
|
var markerVariants = cva5("group/marker relative flex min-h-4 w-full items-center gap-control-gap text-start text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3 [a]:hover:text-foreground [&:is(a,button)]:outline-none [&:is(a,button)]:focus-visible:outline-1 [&:is(a,button)]:focus-visible:outline-ring", {
|
|
2427
2468
|
variants: {
|
|
2428
2469
|
variant: {
|
|
@@ -2433,15 +2474,15 @@ var markerVariants = cva5("group/marker relative flex min-h-4 w-full items-cente
|
|
|
2433
2474
|
}
|
|
2434
2475
|
});
|
|
2435
2476
|
function Marker({ density, className, variant = "default", render, ...props }) {
|
|
2436
|
-
return
|
|
2477
|
+
return useRender8({
|
|
2437
2478
|
defaultTagName: "div",
|
|
2438
|
-
props:
|
|
2479
|
+
props: mergeProps8({ className: cn2(markerVariants({ variant, className })) }, props),
|
|
2439
2480
|
render,
|
|
2440
2481
|
state: { slot: "marker", variant, density }
|
|
2441
2482
|
});
|
|
2442
2483
|
}
|
|
2443
2484
|
function MarkerIcon({ density, className, ...props }) {
|
|
2444
|
-
return /* @__PURE__ */
|
|
2485
|
+
return /* @__PURE__ */ jsx26("span", {
|
|
2445
2486
|
"data-density": density,
|
|
2446
2487
|
"data-slot": "marker-icon",
|
|
2447
2488
|
"aria-hidden": "true",
|
|
@@ -2450,7 +2491,7 @@ function MarkerIcon({ density, className, ...props }) {
|
|
|
2450
2491
|
});
|
|
2451
2492
|
}
|
|
2452
2493
|
function MarkerContent({ density, className, ...props }) {
|
|
2453
|
-
return /* @__PURE__ */
|
|
2494
|
+
return /* @__PURE__ */ jsx26("span", {
|
|
2454
2495
|
"data-density": density,
|
|
2455
2496
|
"data-slot": "marker-content",
|
|
2456
2497
|
className: cn2("min-w-0 wrap-break-word group-data-[variant=separator]/marker:text-center [&>a]:underline [&>a]:underline-offset-3 [&>a:hover]:text-foreground", className),
|
|
@@ -2458,12 +2499,12 @@ function MarkerContent({ density, className, ...props }) {
|
|
|
2458
2499
|
});
|
|
2459
2500
|
}
|
|
2460
2501
|
// src/components/Bubble.tsx
|
|
2461
|
-
import { mergeProps as
|
|
2462
|
-
import { useRender as
|
|
2502
|
+
import { mergeProps as mergeProps9 } from "@base-ui/react/merge-props";
|
|
2503
|
+
import { useRender as useRender9 } from "@base-ui/react/use-render";
|
|
2463
2504
|
import { cva as cva6 } from "class-variance-authority";
|
|
2464
|
-
import { jsx as
|
|
2505
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2465
2506
|
function BubbleGroup({ density, className, ...props }) {
|
|
2466
|
-
return /* @__PURE__ */
|
|
2507
|
+
return /* @__PURE__ */ jsx27("div", {
|
|
2467
2508
|
"data-density": density,
|
|
2468
2509
|
"data-slot": "bubble-group",
|
|
2469
2510
|
className: cn2("flex min-w-0 flex-col gap-control-gap", className),
|
|
@@ -2485,7 +2526,7 @@ var bubbleVariants = cva6("group/bubble relative flex w-fit max-w-[80%] min-w-0
|
|
|
2485
2526
|
defaultVariants: { variant: "default" }
|
|
2486
2527
|
});
|
|
2487
2528
|
function Bubble({ density, variant = "default", align = "start", className, ...props }) {
|
|
2488
|
-
return /* @__PURE__ */
|
|
2529
|
+
return /* @__PURE__ */ jsx27("div", {
|
|
2489
2530
|
"data-density": density,
|
|
2490
2531
|
"data-slot": "bubble",
|
|
2491
2532
|
"data-variant": variant,
|
|
@@ -2495,9 +2536,9 @@ function Bubble({ density, variant = "default", align = "start", className, ...p
|
|
|
2495
2536
|
});
|
|
2496
2537
|
}
|
|
2497
2538
|
function BubbleContent({ density, className, render, ...props }) {
|
|
2498
|
-
return
|
|
2539
|
+
return useRender9({
|
|
2499
2540
|
defaultTagName: "div",
|
|
2500
|
-
props:
|
|
2541
|
+
props: mergeProps9({
|
|
2501
2542
|
className: cn2("w-fit max-w-full min-w-0 overflow-hidden rounded-sm border border-transparent px-control-x py-control-gap text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [&:is(button)]:text-start [&:is(button,a)]:transition-colors motion-reduce:transition-none [&:is(button,a)]:outline-none [&:is(button,a)]:focus-visible:border-ring [&:is(button,a)]:focus-visible:ring-1 [&:is(button,a)]:focus-visible:ring-ring", className)
|
|
2502
2543
|
}, props),
|
|
2503
2544
|
render,
|
|
@@ -2518,7 +2559,7 @@ function BubbleReactions({
|
|
|
2518
2559
|
className,
|
|
2519
2560
|
...props
|
|
2520
2561
|
}) {
|
|
2521
|
-
return /* @__PURE__ */
|
|
2562
|
+
return /* @__PURE__ */ jsx27("div", {
|
|
2522
2563
|
"data-density": density,
|
|
2523
2564
|
"data-slot": "bubble-reactions",
|
|
2524
2565
|
"data-align": align,
|
|
@@ -2529,16 +2570,16 @@ function BubbleReactions({
|
|
|
2529
2570
|
}
|
|
2530
2571
|
// src/components/Message.tsx
|
|
2531
2572
|
import { useContext as useContext3, useLayoutEffect, useMemo as useMemo3, useRef as useRef3, useState as useState3 } from "react";
|
|
2532
|
-
import { useRender as
|
|
2573
|
+
import { useRender as useRender10 } from "@base-ui/react/use-render";
|
|
2533
2574
|
|
|
2534
2575
|
// src/message/MessageContext.ts
|
|
2535
2576
|
import { createContext as createContext3 } from "react";
|
|
2536
2577
|
var MessageContext = createContext3(null);
|
|
2537
2578
|
|
|
2538
2579
|
// src/components/Message.tsx
|
|
2539
|
-
import { jsx as
|
|
2580
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2540
2581
|
function MessageGroup({ density, className, ...props }) {
|
|
2541
|
-
return /* @__PURE__ */
|
|
2582
|
+
return /* @__PURE__ */ jsx28("div", {
|
|
2542
2583
|
"data-density": density,
|
|
2543
2584
|
"data-slot": "message-group",
|
|
2544
2585
|
className: cn2("flex min-w-0 flex-col gap-control-gap", className),
|
|
@@ -2549,9 +2590,9 @@ function Message({ density, className, align = "start", style, ...props }) {
|
|
|
2549
2590
|
const [footerOffset, setFooterOffset] = useState3(0);
|
|
2550
2591
|
const context = useMemo3(() => ({ setFooterOffset }), []);
|
|
2551
2592
|
const messageStyle = { ...style, "--message-footer-offset": `${footerOffset}px` };
|
|
2552
|
-
return /* @__PURE__ */
|
|
2593
|
+
return /* @__PURE__ */ jsx28(MessageContext.Provider, {
|
|
2553
2594
|
value: context,
|
|
2554
|
-
children: /* @__PURE__ */
|
|
2595
|
+
children: /* @__PURE__ */ jsx28("div", {
|
|
2555
2596
|
"data-density": density,
|
|
2556
2597
|
"data-slot": "message",
|
|
2557
2598
|
"data-align": align,
|
|
@@ -2562,7 +2603,7 @@ function Message({ density, className, align = "start", style, ...props }) {
|
|
|
2562
2603
|
});
|
|
2563
2604
|
}
|
|
2564
2605
|
function MessageAvatar({ density, className, ...props }) {
|
|
2565
|
-
return /* @__PURE__ */
|
|
2606
|
+
return /* @__PURE__ */ jsx28("div", {
|
|
2566
2607
|
"data-density": density,
|
|
2567
2608
|
"data-slot": "message-avatar",
|
|
2568
2609
|
className: cn2("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-(--message-footer-offset)", className),
|
|
@@ -2570,7 +2611,7 @@ function MessageAvatar({ density, className, ...props }) {
|
|
|
2570
2611
|
});
|
|
2571
2612
|
}
|
|
2572
2613
|
function MessageContent({ density, className, ...props }) {
|
|
2573
|
-
return /* @__PURE__ */
|
|
2614
|
+
return /* @__PURE__ */ jsx28("div", {
|
|
2574
2615
|
"data-density": density,
|
|
2575
2616
|
"data-slot": "message-content",
|
|
2576
2617
|
className: cn2("flex w-full min-w-0 flex-col gap-control-gap wrap-break-word group-data-[align=end]/message:[&>[data-slot]:not([data-slot=message-header])]:self-end", className),
|
|
@@ -2578,7 +2619,7 @@ function MessageContent({ density, className, ...props }) {
|
|
|
2578
2619
|
});
|
|
2579
2620
|
}
|
|
2580
2621
|
function MessageHeader({ density, className, ...props }) {
|
|
2581
|
-
return /* @__PURE__ */
|
|
2622
|
+
return /* @__PURE__ */ jsx28("div", {
|
|
2582
2623
|
"data-density": density,
|
|
2583
2624
|
"data-slot": "message-header",
|
|
2584
2625
|
className: cn2("flex max-w-full min-w-0 items-center px-control-x text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0", className),
|
|
@@ -2606,7 +2647,7 @@ function MessageFooter({ density, className, ...props }) {
|
|
|
2606
2647
|
context.setFooterOffset(0);
|
|
2607
2648
|
};
|
|
2608
2649
|
}, [context]);
|
|
2609
|
-
return
|
|
2650
|
+
return useRender10({
|
|
2610
2651
|
defaultTagName: "div",
|
|
2611
2652
|
ref: footerRef,
|
|
2612
2653
|
state: { slot: "message-footer", density },
|
|
@@ -2617,10 +2658,10 @@ function MessageFooter({ density, className, ...props }) {
|
|
|
2617
2658
|
});
|
|
2618
2659
|
}
|
|
2619
2660
|
// src/components/Attachment.tsx
|
|
2620
|
-
import { mergeProps as
|
|
2621
|
-
import { useRender as
|
|
2661
|
+
import { mergeProps as mergeProps10 } from "@base-ui/react/merge-props";
|
|
2662
|
+
import { useRender as useRender11 } from "@base-ui/react/use-render";
|
|
2622
2663
|
import { cva as cva7 } from "class-variance-authority";
|
|
2623
|
-
import { jsx as
|
|
2664
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
2624
2665
|
var attachmentVariants = cva7("group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-md border bg-card text-card-foreground transition-colors motion-reduce:transition-none focus-within:ring-1 focus-within:ring-ring has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive data-[state=idle]:border-dashed", {
|
|
2625
2666
|
variants: {
|
|
2626
2667
|
size: {
|
|
@@ -2642,7 +2683,7 @@ function Attachment({
|
|
|
2642
2683
|
orientation = "horizontal",
|
|
2643
2684
|
...props
|
|
2644
2685
|
}) {
|
|
2645
|
-
return /* @__PURE__ */
|
|
2686
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2646
2687
|
"data-slot": "attachment",
|
|
2647
2688
|
"data-density": density,
|
|
2648
2689
|
"data-state": state,
|
|
@@ -2662,7 +2703,7 @@ var attachmentMediaVariants = cva7("relative flex aspect-square w-10 shrink-0 it
|
|
|
2662
2703
|
defaultVariants: { variant: "icon" }
|
|
2663
2704
|
});
|
|
2664
2705
|
function AttachmentMedia({ density, className, variant = "icon", ...props }) {
|
|
2665
|
-
return /* @__PURE__ */
|
|
2706
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2666
2707
|
"data-slot": "attachment-media",
|
|
2667
2708
|
"data-density": density,
|
|
2668
2709
|
"data-variant": variant,
|
|
@@ -2671,7 +2712,7 @@ function AttachmentMedia({ density, className, variant = "icon", ...props }) {
|
|
|
2671
2712
|
});
|
|
2672
2713
|
}
|
|
2673
2714
|
function AttachmentContent({ density, className, ...props }) {
|
|
2674
|
-
return /* @__PURE__ */
|
|
2715
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2675
2716
|
"data-slot": "attachment-content",
|
|
2676
2717
|
"data-density": density,
|
|
2677
2718
|
className: cn2("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className),
|
|
@@ -2679,7 +2720,7 @@ function AttachmentContent({ density, className, ...props }) {
|
|
|
2679
2720
|
});
|
|
2680
2721
|
}
|
|
2681
2722
|
function AttachmentTitle({ density, className, ...props }) {
|
|
2682
|
-
return /* @__PURE__ */
|
|
2723
|
+
return /* @__PURE__ */ jsx29("span", {
|
|
2683
2724
|
"data-slot": "attachment-title",
|
|
2684
2725
|
"data-density": density,
|
|
2685
2726
|
className: cn2("block max-w-full min-w-0 truncate font-medium group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer", className),
|
|
@@ -2687,7 +2728,7 @@ function AttachmentTitle({ density, className, ...props }) {
|
|
|
2687
2728
|
});
|
|
2688
2729
|
}
|
|
2689
2730
|
function AttachmentDescription({ density, className, ...props }) {
|
|
2690
|
-
return /* @__PURE__ */
|
|
2731
|
+
return /* @__PURE__ */ jsx29("span", {
|
|
2691
2732
|
"data-slot": "attachment-description",
|
|
2692
2733
|
"data-density": density,
|
|
2693
2734
|
className: cn2("mt-0.5 block max-w-full min-w-0 truncate text-xs text-muted-foreground group-data-[state=error]/attachment:text-destructive", className),
|
|
@@ -2695,7 +2736,7 @@ function AttachmentDescription({ density, className, ...props }) {
|
|
|
2695
2736
|
});
|
|
2696
2737
|
}
|
|
2697
2738
|
function AttachmentActions({ density, className, ...props }) {
|
|
2698
|
-
return /* @__PURE__ */
|
|
2739
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2699
2740
|
"data-slot": "attachment-actions",
|
|
2700
2741
|
"data-density": density,
|
|
2701
2742
|
className: cn2("relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:end-3 group-data-[orientation=vertical]/attachment:gap-1", className),
|
|
@@ -2708,7 +2749,7 @@ function AttachmentAction({
|
|
|
2708
2749
|
size = "icon-xs",
|
|
2709
2750
|
...props
|
|
2710
2751
|
}) {
|
|
2711
|
-
return /* @__PURE__ */
|
|
2752
|
+
return /* @__PURE__ */ jsx29(Button2, {
|
|
2712
2753
|
"data-slot": "attachment-action",
|
|
2713
2754
|
variant,
|
|
2714
2755
|
size,
|
|
@@ -2717,15 +2758,15 @@ function AttachmentAction({
|
|
|
2717
2758
|
});
|
|
2718
2759
|
}
|
|
2719
2760
|
function AttachmentTrigger({ density, className, render, type, ...props }) {
|
|
2720
|
-
return
|
|
2761
|
+
return useRender11({
|
|
2721
2762
|
defaultTagName: "button",
|
|
2722
|
-
props:
|
|
2763
|
+
props: mergeProps10({ type: render ? type : type ?? "button", className: cn2("absolute inset-0 z-10 outline-none", className) }, props),
|
|
2723
2764
|
render,
|
|
2724
2765
|
state: { slot: "attachment-trigger", density }
|
|
2725
2766
|
});
|
|
2726
2767
|
}
|
|
2727
2768
|
function AttachmentGroup({ density, className, ...props }) {
|
|
2728
|
-
return /* @__PURE__ */
|
|
2769
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2729
2770
|
"data-slot": "attachment-group",
|
|
2730
2771
|
"data-density": density,
|
|
2731
2772
|
className: cn2("flex min-w-0 scroll-fade-x snap-x snap-mandatory scroll-px-1 no-scrollbar gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", className),
|
|
@@ -2734,7 +2775,7 @@ function AttachmentGroup({ density, className, ...props }) {
|
|
|
2734
2775
|
}
|
|
2735
2776
|
// src/components/InlineEdit.tsx
|
|
2736
2777
|
import { useEffect as useEffect2, useRef as useRef4, useState as useState4 } from "react";
|
|
2737
|
-
import { jsx as
|
|
2778
|
+
import { jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2738
2779
|
function InlineEdit({
|
|
2739
2780
|
label,
|
|
2740
2781
|
value,
|
|
@@ -2776,7 +2817,7 @@ function InlineEdit({
|
|
|
2776
2817
|
save();
|
|
2777
2818
|
},
|
|
2778
2819
|
children: [
|
|
2779
|
-
/* @__PURE__ */
|
|
2820
|
+
/* @__PURE__ */ jsx30(Input2, {
|
|
2780
2821
|
ref: input,
|
|
2781
2822
|
density,
|
|
2782
2823
|
"aria-label": label,
|
|
@@ -2797,7 +2838,7 @@ function InlineEdit({
|
|
|
2797
2838
|
}
|
|
2798
2839
|
}
|
|
2799
2840
|
}),
|
|
2800
|
-
error && /* @__PURE__ */
|
|
2841
|
+
error && /* @__PURE__ */ jsx30("p", {
|
|
2801
2842
|
role: "alert",
|
|
2802
2843
|
className: "text-xs text-destructive",
|
|
2803
2844
|
children: error
|
|
@@ -2809,28 +2850,28 @@ function InlineEdit({
|
|
|
2809
2850
|
import { Radio } from "@base-ui/react/radio";
|
|
2810
2851
|
import { RadioGroup } from "@base-ui/react/radio-group";
|
|
2811
2852
|
import { StarIcon, CircleOffIcon } from "lucide-react";
|
|
2812
|
-
import { jsx as
|
|
2853
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2813
2854
|
function StarRating({ label, value, disabled, density, onValueChange }) {
|
|
2814
|
-
return /* @__PURE__ */
|
|
2855
|
+
return /* @__PURE__ */ jsx31(RadioGroup, {
|
|
2815
2856
|
"aria-label": label,
|
|
2816
2857
|
value,
|
|
2817
2858
|
disabled,
|
|
2818
2859
|
"data-density": density,
|
|
2819
2860
|
className: "inline-flex w-fit shrink-0 items-center gap-0.5",
|
|
2820
2861
|
onValueChange,
|
|
2821
|
-
children: [1, 2, 3, 4, 5, 0].map((star) => /* @__PURE__ */
|
|
2862
|
+
children: [1, 2, 3, 4, 5, 0].map((star) => /* @__PURE__ */ jsx31(Radio.Root, {
|
|
2822
2863
|
value: star,
|
|
2823
2864
|
nativeButton: true,
|
|
2824
|
-
render: /* @__PURE__ */
|
|
2865
|
+
render: /* @__PURE__ */ jsx31("button", {
|
|
2825
2866
|
type: "button"
|
|
2826
2867
|
}),
|
|
2827
2868
|
"aria-label": star === 0 ? "Unrated" : `${star} ${star === 1 ? "star" : "stars"}`,
|
|
2828
2869
|
title: star === 0 ? "Clear rating" : `${star} stars`,
|
|
2829
2870
|
className: "inline-flex size-5 shrink-0 items-center justify-center rounded-sm text-muted-foreground outline-none hover:text-primary focus-visible:ring-1 focus-visible:ring-ring data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
2830
|
-
children: star === 0 ? /* @__PURE__ */
|
|
2871
|
+
children: star === 0 ? /* @__PURE__ */ jsx31(CircleOffIcon, {
|
|
2831
2872
|
"aria-hidden": "true",
|
|
2832
2873
|
className: "size-3"
|
|
2833
|
-
}) : /* @__PURE__ */
|
|
2874
|
+
}) : /* @__PURE__ */ jsx31(StarIcon, {
|
|
2834
2875
|
"aria-hidden": "true",
|
|
2835
2876
|
className: star <= value ? "size-3.5 fill-primary text-primary" : "size-3.5"
|
|
2836
2877
|
})
|
|
@@ -2839,7 +2880,7 @@ function StarRating({ label, value, disabled, density, onValueChange }) {
|
|
|
2839
2880
|
}
|
|
2840
2881
|
// src/components/ConfirmationDialog.tsx
|
|
2841
2882
|
import { useState as useState5 } from "react";
|
|
2842
|
-
import { jsx as
|
|
2883
|
+
import { jsx as jsx32, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2843
2884
|
function ConfirmationDialog({
|
|
2844
2885
|
open,
|
|
2845
2886
|
title,
|
|
@@ -2850,7 +2891,7 @@ function ConfirmationDialog({
|
|
|
2850
2891
|
}) {
|
|
2851
2892
|
const [isPending, setPending] = useState5(false);
|
|
2852
2893
|
const [error, setError] = useState5("");
|
|
2853
|
-
return /* @__PURE__ */
|
|
2894
|
+
return /* @__PURE__ */ jsx32(AlertDialog, {
|
|
2854
2895
|
open,
|
|
2855
2896
|
onOpenChange: (next) => {
|
|
2856
2897
|
if (!isPending) {
|
|
@@ -2862,27 +2903,27 @@ function ConfirmationDialog({
|
|
|
2862
2903
|
children: [
|
|
2863
2904
|
/* @__PURE__ */ jsxs19(AlertDialogHeader, {
|
|
2864
2905
|
children: [
|
|
2865
|
-
/* @__PURE__ */
|
|
2906
|
+
/* @__PURE__ */ jsx32(AlertDialogTitle, {
|
|
2866
2907
|
children: title
|
|
2867
2908
|
}),
|
|
2868
|
-
/* @__PURE__ */
|
|
2909
|
+
/* @__PURE__ */ jsx32(AlertDialogDescription, {
|
|
2869
2910
|
children: description
|
|
2870
2911
|
})
|
|
2871
2912
|
]
|
|
2872
2913
|
}),
|
|
2873
|
-
error && /* @__PURE__ */
|
|
2914
|
+
error && /* @__PURE__ */ jsx32(Alert2, {
|
|
2874
2915
|
variant: "destructive",
|
|
2875
|
-
children: /* @__PURE__ */
|
|
2916
|
+
children: /* @__PURE__ */ jsx32(AlertDescription2, {
|
|
2876
2917
|
children: error
|
|
2877
2918
|
})
|
|
2878
2919
|
}),
|
|
2879
2920
|
/* @__PURE__ */ jsxs19(AlertDialogFooter, {
|
|
2880
2921
|
children: [
|
|
2881
|
-
/* @__PURE__ */
|
|
2922
|
+
/* @__PURE__ */ jsx32(AlertDialogCancel, {
|
|
2882
2923
|
disabled: isPending,
|
|
2883
2924
|
children: "Cancel"
|
|
2884
2925
|
}),
|
|
2885
|
-
/* @__PURE__ */
|
|
2926
|
+
/* @__PURE__ */ jsx32(Button2, {
|
|
2886
2927
|
variant: "destructive",
|
|
2887
2928
|
disabled: isPending,
|
|
2888
2929
|
onClick: async () => {
|
|
@@ -2926,7 +2967,7 @@ function useObjectURL(file) {
|
|
|
2926
2967
|
}
|
|
2927
2968
|
|
|
2928
2969
|
// src/components/ImagePicker.tsx
|
|
2929
|
-
import { jsx as
|
|
2970
|
+
import { jsx as jsx33, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2930
2971
|
function ImagePicker({ src, file, label, disabled, onFileChange, onClear }) {
|
|
2931
2972
|
const input = useRef5(null);
|
|
2932
2973
|
const preview = useObjectURL(file);
|
|
@@ -2939,19 +2980,19 @@ function ImagePicker({ src, file, label, disabled, onFileChange, onClear }) {
|
|
|
2939
2980
|
size: "preview",
|
|
2940
2981
|
shape: "square",
|
|
2941
2982
|
children: [
|
|
2942
|
-
/* @__PURE__ */
|
|
2983
|
+
/* @__PURE__ */ jsx33(AvatarImage2, {
|
|
2943
2984
|
src: image,
|
|
2944
2985
|
alt: label
|
|
2945
2986
|
}),
|
|
2946
|
-
/* @__PURE__ */
|
|
2947
|
-
children: /* @__PURE__ */
|
|
2987
|
+
/* @__PURE__ */ jsx33(AvatarFallback2, {
|
|
2988
|
+
children: /* @__PURE__ */ jsx33(ImageIcon, {
|
|
2948
2989
|
className: "size-12",
|
|
2949
2990
|
"aria-hidden": "true"
|
|
2950
2991
|
})
|
|
2951
2992
|
})
|
|
2952
2993
|
]
|
|
2953
2994
|
}),
|
|
2954
|
-
/* @__PURE__ */
|
|
2995
|
+
/* @__PURE__ */ jsx33("input", {
|
|
2955
2996
|
ref: input,
|
|
2956
2997
|
hidden: true,
|
|
2957
2998
|
type: "file",
|
|
@@ -2974,13 +3015,13 @@ function ImagePicker({ src, file, label, disabled, onFileChange, onClear }) {
|
|
|
2974
3015
|
disabled,
|
|
2975
3016
|
onClick: () => input.current?.click(),
|
|
2976
3017
|
children: [
|
|
2977
|
-
/* @__PURE__ */
|
|
3018
|
+
/* @__PURE__ */ jsx33(UploadIcon, {
|
|
2978
3019
|
"data-icon": "inline-start"
|
|
2979
3020
|
}),
|
|
2980
3021
|
"Upload image"
|
|
2981
3022
|
]
|
|
2982
3023
|
}),
|
|
2983
|
-
/* @__PURE__ */
|
|
3024
|
+
/* @__PURE__ */ jsx33(Button2, {
|
|
2984
3025
|
type: "button",
|
|
2985
3026
|
variant: "outline",
|
|
2986
3027
|
disabled: disabled || !image,
|
|
@@ -2993,9 +3034,9 @@ function ImagePicker({ src, file, label, disabled, onFileChange, onClear }) {
|
|
|
2993
3034
|
});
|
|
2994
3035
|
}
|
|
2995
3036
|
// src/components/PortalProvider.tsx
|
|
2996
|
-
import { jsx as
|
|
3037
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2997
3038
|
function PortalProvider({ container, children }) {
|
|
2998
|
-
return /* @__PURE__ */
|
|
3039
|
+
return /* @__PURE__ */ jsx34(PortalContext.Provider, {
|
|
2999
3040
|
value: container,
|
|
3000
3041
|
children
|
|
3001
3042
|
});
|
|
@@ -3053,6 +3094,7 @@ export {
|
|
|
3053
3094
|
ButtonGroup,
|
|
3054
3095
|
ButtonGroupSeparator,
|
|
3055
3096
|
ButtonGroupText,
|
|
3097
|
+
ButtonLink,
|
|
3056
3098
|
Card2 as Card,
|
|
3057
3099
|
CardAction2 as CardAction,
|
|
3058
3100
|
CardContent2 as CardContent,
|