@slipstream-ui/core 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +135 -15
- package/dist/index.d.ts +135 -15
- package/dist/index.js +923 -710
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +922 -710
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +7 -1
- package/dist/manifests/alert.manifest.json +1 -1
- package/dist/manifests/announcement-bar.manifest.json +1 -1
- package/dist/manifests/app-shell.manifest.json +1 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +1 -1
- package/dist/manifests/auth-layout.manifest.json +19 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +13 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +130 -0
- package/dist/manifests/breadcrumb.manifest.json +1 -1
- package/dist/manifests/button-group.manifest.json +1 -1
- package/dist/manifests/button.manifest.json +1 -1
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +1 -1
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +48 -2
- package/dist/manifests/empty-state.manifest.json +1 -1
- package/dist/manifests/entity-card.manifest.json +1 -1
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +36 -4
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +7 -1
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +1 -1
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +1 -1
- package/dist/manifests/site-header.manifest.json +1 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +1 -1
- package/dist/manifests/stepper.manifest.json +1 -1
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +1 -1
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +1 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +1 -1
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/accordion/Accordion.d.ts +17 -1
- package/dist/src/components/accordion/Accordion.js +5 -1
- package/dist/src/components/accordion/Accordion.js.map +1 -1
- package/dist/src/components/accordion/Accordion.mjs +5 -1
- package/dist/src/components/accordion/Accordion.mjs.map +1 -1
- package/dist/src/components/auth-layout/AuthLayout.d.ts +14 -2
- package/dist/src/components/auth-layout/AuthLayout.js +10 -2
- package/dist/src/components/auth-layout/AuthLayout.js.map +1 -1
- package/dist/src/components/auth-layout/AuthLayout.mjs +10 -2
- package/dist/src/components/auth-layout/AuthLayout.mjs.map +1 -1
- package/dist/src/components/badge/Badge.d.ts +2 -0
- package/dist/src/components/badge/Badge.js +9 -3
- package/dist/src/components/badge/Badge.js.map +1 -1
- package/dist/src/components/badge/Badge.mjs +9 -3
- package/dist/src/components/badge/Badge.mjs.map +1 -1
- package/dist/src/components/bottom-nav/BottomNav.d.ts +36 -0
- package/dist/src/components/bottom-nav/BottomNav.js +90 -0
- package/dist/src/components/bottom-nav/BottomNav.js.map +1 -0
- package/dist/src/components/bottom-nav/BottomNav.mjs +66 -0
- package/dist/src/components/bottom-nav/BottomNav.mjs.map +1 -0
- package/dist/src/components/bottom-nav/index.d.ts +1 -0
- package/dist/src/components/bottom-nav/index.js +23 -0
- package/dist/src/components/bottom-nav/index.js.map +1 -0
- package/dist/src/components/bottom-nav/index.mjs +2 -0
- package/dist/src/components/bottom-nav/index.mjs.map +1 -0
- package/dist/src/components/drawer/Drawer.d.ts +25 -2
- package/dist/src/components/drawer/Drawer.js +97 -6
- package/dist/src/components/drawer/Drawer.js.map +1 -1
- package/dist/src/components/drawer/Drawer.mjs +97 -6
- package/dist/src/components/drawer/Drawer.mjs.map +1 -1
- package/dist/src/components/empty-state/EmptyState.d.ts +13 -4
- package/dist/src/components/empty-state/EmptyState.js +13 -1
- package/dist/src/components/empty-state/EmptyState.js.map +1 -1
- package/dist/src/components/empty-state/EmptyState.mjs +13 -1
- package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
- package/dist/src/components/metric-card/MetricCard.d.ts +23 -4
- package/dist/src/components/metric-card/MetricCard.js +32 -5
- package/dist/src/components/metric-card/MetricCard.js.map +1 -1
- package/dist/src/components/metric-card/MetricCard.mjs +32 -5
- package/dist/src/components/metric-card/MetricCard.mjs.map +1 -1
- package/dist/src/components/page-header/PageHeader.d.ts +4 -0
- package/dist/src/components/page-header/PageHeader.js +3 -2
- package/dist/src/components/page-header/PageHeader.js.map +1 -1
- package/dist/src/components/page-header/PageHeader.mjs +3 -2
- package/dist/src/components/page-header/PageHeader.mjs.map +1 -1
- package/dist/src/components/separator/Separator.d.ts +3 -3
- package/dist/src/index.d.ts +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/components/accordion/Accordion.test.tsx +31 -0
- package/src/components/accordion/Accordion.tsx +27 -2
- package/src/components/auth-layout/AuthLayout.test.tsx +36 -0
- package/src/components/auth-layout/AuthLayout.tsx +20 -3
- package/src/components/badge/Badge.test.tsx +7 -0
- package/src/components/badge/Badge.tsx +8 -2
- package/src/components/bottom-nav/BottomNav.test.tsx +48 -0
- package/src/components/bottom-nav/BottomNav.tsx +117 -0
- package/src/components/bottom-nav/index.ts +1 -0
- package/src/components/drawer/Drawer.test.tsx +86 -1
- package/src/components/drawer/Drawer.tsx +135 -7
- package/src/components/empty-state/EmptyState.test.tsx +26 -1
- package/src/components/empty-state/EmptyState.tsx +40 -3
- package/src/components/metric-card/MetricCard.test.tsx +32 -0
- package/src/components/metric-card/MetricCard.tsx +45 -7
- package/src/components/page-header/PageHeader.test.tsx +13 -0
- package/src/components/page-header/PageHeader.tsx +5 -2
- package/src/index.ts +1 -0
- package/src/manifests/accordion.manifest.json +7 -1
- package/src/manifests/alert.manifest.json +1 -1
- package/src/manifests/announcement-bar.manifest.json +1 -1
- package/src/manifests/app-shell.manifest.json +1 -1
- package/src/manifests/applied-filters.manifest.json +1 -1
- package/src/manifests/article-card.manifest.json +1 -1
- package/src/manifests/auth-layout.manifest.json +19 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +13 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +130 -0
- package/src/manifests/breadcrumb.manifest.json +1 -1
- package/src/manifests/button-group.manifest.json +1 -1
- package/src/manifests/button.manifest.json +1 -1
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +1 -1
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +48 -2
- package/src/manifests/empty-state.manifest.json +1 -1
- package/src/manifests/entity-card.manifest.json +1 -1
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +36 -4
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +7 -1
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +1 -1
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +1 -1
- package/src/manifests/site-header.manifest.json +1 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +1 -1
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +1 -1
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +1 -1
- package/src/manifests/tooltip.manifest.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,6 +48,7 @@ __export(index_exports, {
|
|
|
48
48
|
AvatarImage: () => AvatarImage,
|
|
49
49
|
Badge: () => Badge,
|
|
50
50
|
Block: () => Block,
|
|
51
|
+
BottomNav: () => BottomNav,
|
|
51
52
|
Breadcrumb: () => Breadcrumb,
|
|
52
53
|
Button: () => Button,
|
|
53
54
|
ButtonGroup: () => ButtonGroup,
|
|
@@ -300,6 +301,13 @@ var sizeClasses = {
|
|
|
300
301
|
top: sideHeights,
|
|
301
302
|
bottom: sideHeights
|
|
302
303
|
};
|
|
304
|
+
var sizePx = {
|
|
305
|
+
sm: 288,
|
|
306
|
+
md: 384,
|
|
307
|
+
lg: 512,
|
|
308
|
+
xl: 640,
|
|
309
|
+
"2xl": 768
|
|
310
|
+
};
|
|
303
311
|
function extentStyle(value) {
|
|
304
312
|
if (value === void 0) return void 0;
|
|
305
313
|
return typeof value === "number" ? `${value}px` : value;
|
|
@@ -319,6 +327,7 @@ var slideOut = {
|
|
|
319
327
|
function Drawer({
|
|
320
328
|
open,
|
|
321
329
|
onOpenChange,
|
|
330
|
+
onClose,
|
|
322
331
|
title,
|
|
323
332
|
description,
|
|
324
333
|
children,
|
|
@@ -326,6 +335,12 @@ function Drawer({
|
|
|
326
335
|
size = "md",
|
|
327
336
|
width,
|
|
328
337
|
height,
|
|
338
|
+
resizable = false,
|
|
339
|
+
minWidth = 240,
|
|
340
|
+
maxWidth = 960,
|
|
341
|
+
defaultWidth,
|
|
342
|
+
onWidthChange,
|
|
343
|
+
resizeLabel = "Resize drawer",
|
|
329
344
|
closeOnBackdrop = true,
|
|
330
345
|
showClose = true,
|
|
331
346
|
closeLabel = "Close drawer",
|
|
@@ -339,6 +354,65 @@ function Drawer({
|
|
|
339
354
|
const descriptionId = React3.useId();
|
|
340
355
|
const { present, exiting } = usePresence(open, animate);
|
|
341
356
|
const isTopLayer = useModalLayer(open);
|
|
357
|
+
const requestClose = React3.useCallback(() => {
|
|
358
|
+
if (onOpenChange) onOpenChange(false);
|
|
359
|
+
else onClose?.();
|
|
360
|
+
}, [onOpenChange, onClose]);
|
|
361
|
+
const isVerticalSide = side === "top" || side === "bottom";
|
|
362
|
+
const canResize = resizable && !isVerticalSide;
|
|
363
|
+
const clampWidth = React3.useCallback(
|
|
364
|
+
(next) => Math.min(maxWidth, Math.max(minWidth, Math.round(next))),
|
|
365
|
+
[minWidth, maxWidth]
|
|
366
|
+
);
|
|
367
|
+
const [resizedWidth, setResizedWidth] = React3.useState(null);
|
|
368
|
+
const initialWidth = clampWidth(
|
|
369
|
+
defaultWidth ?? (typeof width === "number" ? width : sizePx[size])
|
|
370
|
+
);
|
|
371
|
+
const resizeWidth = resizedWidth ?? initialWidth;
|
|
372
|
+
const widthRef = React3.useRef(resizeWidth);
|
|
373
|
+
widthRef.current = resizeWidth;
|
|
374
|
+
const onWidthChangeRef = React3.useRef(onWidthChange);
|
|
375
|
+
onWidthChangeRef.current = onWidthChange;
|
|
376
|
+
const commitWidth = (next) => {
|
|
377
|
+
const clamped = clampWidth(next);
|
|
378
|
+
setResizedWidth(clamped);
|
|
379
|
+
onWidthChangeRef.current?.(clamped);
|
|
380
|
+
};
|
|
381
|
+
const onResizePointerDown = (event) => {
|
|
382
|
+
if (event.button !== 0) return;
|
|
383
|
+
event.preventDefault();
|
|
384
|
+
const startX = event.clientX;
|
|
385
|
+
const startWidth = resizeWidth;
|
|
386
|
+
const onMove = (moveEvent) => {
|
|
387
|
+
const delta = side === "right" ? startX - moveEvent.clientX : moveEvent.clientX - startX;
|
|
388
|
+
setResizedWidth(clampWidth(startWidth + delta));
|
|
389
|
+
};
|
|
390
|
+
const onUp = () => {
|
|
391
|
+
window.removeEventListener("pointermove", onMove);
|
|
392
|
+
window.removeEventListener("pointerup", onUp);
|
|
393
|
+
onWidthChangeRef.current?.(widthRef.current);
|
|
394
|
+
};
|
|
395
|
+
window.addEventListener("pointermove", onMove);
|
|
396
|
+
window.addEventListener("pointerup", onUp);
|
|
397
|
+
};
|
|
398
|
+
const onResizeKeyDown = (event) => {
|
|
399
|
+
const step = event.shiftKey ? 64 : 16;
|
|
400
|
+
const grow = side === "right" ? "ArrowLeft" : "ArrowRight";
|
|
401
|
+
const shrink = side === "right" ? "ArrowRight" : "ArrowLeft";
|
|
402
|
+
if (event.key === grow) {
|
|
403
|
+
event.preventDefault();
|
|
404
|
+
commitWidth(resizeWidth + step);
|
|
405
|
+
} else if (event.key === shrink) {
|
|
406
|
+
event.preventDefault();
|
|
407
|
+
commitWidth(resizeWidth - step);
|
|
408
|
+
} else if (event.key === "Home") {
|
|
409
|
+
event.preventDefault();
|
|
410
|
+
commitWidth(minWidth);
|
|
411
|
+
} else if (event.key === "End") {
|
|
412
|
+
event.preventDefault();
|
|
413
|
+
commitWidth(maxWidth);
|
|
414
|
+
}
|
|
415
|
+
};
|
|
342
416
|
React3.useEffect(() => {
|
|
343
417
|
if (open) {
|
|
344
418
|
previouslyFocused.current = document.activeElement;
|
|
@@ -359,7 +433,7 @@ function Drawer({
|
|
|
359
433
|
if (event.key === "Escape") {
|
|
360
434
|
if (!isTopLayer()) return;
|
|
361
435
|
event.stopPropagation();
|
|
362
|
-
|
|
436
|
+
requestClose();
|
|
363
437
|
return;
|
|
364
438
|
}
|
|
365
439
|
if (event.key !== "Tab") return;
|
|
@@ -383,10 +457,9 @@ function Drawer({
|
|
|
383
457
|
};
|
|
384
458
|
document.addEventListener("keydown", onKeyDown);
|
|
385
459
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
386
|
-
}, [open,
|
|
460
|
+
}, [open, requestClose, isTopLayer]);
|
|
387
461
|
if (!present || typeof document === "undefined") return null;
|
|
388
|
-
const
|
|
389
|
-
const customExtent = isVerticalSide ? extentStyle(height) : extentStyle(width);
|
|
462
|
+
const customExtent = canResize ? `${resizeWidth}px` : isVerticalSide ? extentStyle(height) : extentStyle(width);
|
|
390
463
|
const motion = animate ? cn(
|
|
391
464
|
"duration-200 motion-reduce:animate-none",
|
|
392
465
|
exiting ? `animate-out ${slideOut[side]}` : `animate-in ${slideIn[side]}`
|
|
@@ -397,7 +470,7 @@ function Drawer({
|
|
|
397
470
|
{
|
|
398
471
|
className: "fixed inset-0 z-50",
|
|
399
472
|
onMouseDown: (event) => {
|
|
400
|
-
if (closeOnBackdrop && event.target === event.currentTarget)
|
|
473
|
+
if (closeOnBackdrop && event.target === event.currentTarget) requestClose();
|
|
401
474
|
},
|
|
402
475
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
403
476
|
"div",
|
|
@@ -417,6 +490,25 @@ function Drawer({
|
|
|
417
490
|
),
|
|
418
491
|
style: customExtent ? { [isVerticalSide ? "height" : "width"]: customExtent } : void 0,
|
|
419
492
|
children: [
|
|
493
|
+
canResize && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
494
|
+
"div",
|
|
495
|
+
{
|
|
496
|
+
role: "separator",
|
|
497
|
+
"aria-orientation": "vertical",
|
|
498
|
+
"aria-label": resizeLabel,
|
|
499
|
+
"aria-valuenow": resizeWidth,
|
|
500
|
+
"aria-valuemin": minWidth,
|
|
501
|
+
"aria-valuemax": maxWidth,
|
|
502
|
+
tabIndex: 0,
|
|
503
|
+
onPointerDown: onResizePointerDown,
|
|
504
|
+
onKeyDown: onResizeKeyDown,
|
|
505
|
+
className: cn(
|
|
506
|
+
"absolute inset-y-0 z-10 w-2 cursor-col-resize touch-none rounded-sm bg-transparent",
|
|
507
|
+
"hover:bg-primary/20 focus-visible:bg-primary/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
508
|
+
side === "right" ? "-left-1" : "-right-1"
|
|
509
|
+
)
|
|
510
|
+
}
|
|
511
|
+
),
|
|
420
512
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-start justify-between gap-4 border-b border-border px-5 py-4", children: [
|
|
421
513
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
422
514
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { id: titleId, className: "text-base font-semibold leading-tight", children: title }),
|
|
@@ -426,7 +518,7 @@ function Drawer({
|
|
|
426
518
|
"button",
|
|
427
519
|
{
|
|
428
520
|
type: "button",
|
|
429
|
-
onClick:
|
|
521
|
+
onClick: requestClose,
|
|
430
522
|
"aria-label": closeLabel,
|
|
431
523
|
className: "-me-1 rounded p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
432
524
|
children: "\u2715"
|
|
@@ -901,26 +993,95 @@ var badgeVariants = (0, import_class_variance_authority2.cva)(
|
|
|
901
993
|
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
902
994
|
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
903
995
|
outline: "text-foreground"
|
|
996
|
+
},
|
|
997
|
+
size: {
|
|
998
|
+
sm: "px-2 py-0 text-[11px]",
|
|
999
|
+
md: "px-2.5 py-0.5 text-xs",
|
|
1000
|
+
lg: "px-3 py-1 text-sm"
|
|
904
1001
|
}
|
|
905
1002
|
},
|
|
906
1003
|
defaultVariants: {
|
|
907
|
-
variant: "default"
|
|
1004
|
+
variant: "default",
|
|
1005
|
+
size: "md"
|
|
908
1006
|
}
|
|
909
1007
|
}
|
|
910
1008
|
);
|
|
911
1009
|
var Badge = React11.forwardRef(
|
|
912
|
-
({ className, variant, asChild = false, ...props }, ref) => {
|
|
1010
|
+
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
913
1011
|
const Comp = asChild ? import_react_slot2.Slot : "span";
|
|
914
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Comp, { ref, className: cn(badgeVariants({ variant }), className), ...props });
|
|
1012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Comp, { ref, className: cn(badgeVariants({ variant, size }), className), ...props });
|
|
915
1013
|
}
|
|
916
1014
|
);
|
|
917
1015
|
Badge.displayName = "Badge";
|
|
918
1016
|
|
|
1017
|
+
// src/components/bottom-nav/BottomNav.tsx
|
|
1018
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1019
|
+
var tabClass = "relative flex min-h-14 w-full flex-col items-center justify-center gap-0.5 px-2 py-2 text-[11px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset";
|
|
1020
|
+
function BottomNav({
|
|
1021
|
+
items,
|
|
1022
|
+
linkComponent,
|
|
1023
|
+
linkHrefProp = "href",
|
|
1024
|
+
label = "Primary",
|
|
1025
|
+
fixed = true,
|
|
1026
|
+
mobileOnly = true,
|
|
1027
|
+
className,
|
|
1028
|
+
...props
|
|
1029
|
+
}) {
|
|
1030
|
+
const LinkEl = linkComponent ?? "a";
|
|
1031
|
+
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
1032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1033
|
+
"nav",
|
|
1034
|
+
{
|
|
1035
|
+
"aria-label": label,
|
|
1036
|
+
className: cn(
|
|
1037
|
+
"w-full border-t border-border bg-background pb-[env(safe-area-inset-bottom)]",
|
|
1038
|
+
fixed && "fixed inset-x-0 bottom-0 z-40",
|
|
1039
|
+
mobileOnly && "md:hidden",
|
|
1040
|
+
className
|
|
1041
|
+
),
|
|
1042
|
+
...props,
|
|
1043
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1044
|
+
"ul",
|
|
1045
|
+
{
|
|
1046
|
+
className: "mx-auto grid w-full max-w-lg",
|
|
1047
|
+
style: { gridTemplateColumns: `repeat(${Math.max(items.length, 1)}, minmax(0, 1fr))` },
|
|
1048
|
+
children: items.map((item) => {
|
|
1049
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
|
|
1050
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { "aria-hidden": "true", className: "[&_svg]:size-5", children: item.icon }),
|
|
1051
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: item.label }),
|
|
1052
|
+
item.badge != null && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "absolute right-1/4 top-1 rounded-full bg-primary px-1.5 text-[10px] font-semibold leading-4 text-primary-foreground", children: item.badge })
|
|
1053
|
+
] });
|
|
1054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("li", { children: item.disabled ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1055
|
+
"span",
|
|
1056
|
+
{
|
|
1057
|
+
"aria-disabled": "true",
|
|
1058
|
+
className: cn(tabClass, "text-muted-foreground opacity-50"),
|
|
1059
|
+
children: content
|
|
1060
|
+
}
|
|
1061
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1062
|
+
LinkEl,
|
|
1063
|
+
{
|
|
1064
|
+
...destination(item.href),
|
|
1065
|
+
"aria-current": item.active ? "page" : void 0,
|
|
1066
|
+
className: cn(
|
|
1067
|
+
tabClass,
|
|
1068
|
+
item.active ? "text-primary" : "text-muted-foreground hover:text-foreground"
|
|
1069
|
+
),
|
|
1070
|
+
children: content
|
|
1071
|
+
}
|
|
1072
|
+
) }, item.href);
|
|
1073
|
+
})
|
|
1074
|
+
}
|
|
1075
|
+
)
|
|
1076
|
+
}
|
|
1077
|
+
);
|
|
1078
|
+
}
|
|
1079
|
+
|
|
919
1080
|
// src/components/avatar/Avatar.tsx
|
|
920
1081
|
var React12 = __toESM(require("react"));
|
|
921
1082
|
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"));
|
|
922
|
-
var
|
|
923
|
-
var Avatar = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1083
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1084
|
+
var Avatar = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
924
1085
|
AvatarPrimitive.Root,
|
|
925
1086
|
{
|
|
926
1087
|
ref,
|
|
@@ -932,7 +1093,7 @@ var Avatar = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
932
1093
|
}
|
|
933
1094
|
));
|
|
934
1095
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
935
|
-
var AvatarImage = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1096
|
+
var AvatarImage = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
936
1097
|
AvatarPrimitive.Image,
|
|
937
1098
|
{
|
|
938
1099
|
ref,
|
|
@@ -941,7 +1102,7 @@ var AvatarImage = React12.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
941
1102
|
}
|
|
942
1103
|
));
|
|
943
1104
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
944
|
-
var AvatarFallback = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1105
|
+
var AvatarFallback = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
945
1106
|
AvatarPrimitive.Fallback,
|
|
946
1107
|
{
|
|
947
1108
|
ref,
|
|
@@ -956,7 +1117,7 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
|
956
1117
|
|
|
957
1118
|
// src/components/spinner/Spinner.tsx
|
|
958
1119
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
959
|
-
var
|
|
1120
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
960
1121
|
var spinnerVariants = (0, import_class_variance_authority3.cva)(
|
|
961
1122
|
"inline-block animate-spin rounded-full border-2 border-current border-t-transparent text-muted-foreground motion-reduce:animate-none",
|
|
962
1123
|
{
|
|
@@ -973,20 +1134,20 @@ var spinnerVariants = (0, import_class_variance_authority3.cva)(
|
|
|
973
1134
|
}
|
|
974
1135
|
);
|
|
975
1136
|
function Spinner({ className, size, label = "Loading...", ...props }) {
|
|
976
|
-
return /* @__PURE__ */ (0,
|
|
1137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
977
1138
|
"span",
|
|
978
1139
|
{
|
|
979
1140
|
role: "status",
|
|
980
1141
|
className: cn(spinnerVariants({ size }), className),
|
|
981
1142
|
...props,
|
|
982
|
-
children: /* @__PURE__ */ (0,
|
|
1143
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "sr-only", children: label })
|
|
983
1144
|
}
|
|
984
1145
|
);
|
|
985
1146
|
}
|
|
986
1147
|
|
|
987
1148
|
// src/components/toast/Toast.tsx
|
|
988
1149
|
var React13 = __toESM(require("react"));
|
|
989
|
-
var
|
|
1150
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
990
1151
|
var ToastContext = React13.createContext(null);
|
|
991
1152
|
var DEFAULT_DURATION = 5e3;
|
|
992
1153
|
function ToastProvider({ children, label = "Notifications" }) {
|
|
@@ -1023,9 +1184,9 @@ function ToastProvider({ children, label = "Notifications" }) {
|
|
|
1023
1184
|
};
|
|
1024
1185
|
}, []);
|
|
1025
1186
|
const value = React13.useMemo(() => ({ toasts: toasts2, toast: toast2, dismiss: dismiss2 }), [toasts2, toast2, dismiss2]);
|
|
1026
|
-
return /* @__PURE__ */ (0,
|
|
1187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(ToastContext.Provider, { value, children: [
|
|
1027
1188
|
children,
|
|
1028
|
-
/* @__PURE__ */ (0,
|
|
1189
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ToastRegion, { toasts: toasts2, onDismiss: dismiss2, label })
|
|
1029
1190
|
] });
|
|
1030
1191
|
}
|
|
1031
1192
|
function useToast() {
|
|
@@ -1038,18 +1199,18 @@ function ToastRegion({
|
|
|
1038
1199
|
onDismiss,
|
|
1039
1200
|
label
|
|
1040
1201
|
}) {
|
|
1041
|
-
return /* @__PURE__ */ (0,
|
|
1202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1042
1203
|
"ol",
|
|
1043
1204
|
{
|
|
1044
1205
|
"aria-label": label,
|
|
1045
1206
|
className: "fixed bottom-4 right-4 z-50 flex w-full max-w-sm flex-col gap-2",
|
|
1046
|
-
children: toasts2.map((entry) => /* @__PURE__ */ (0,
|
|
1047
|
-
/* @__PURE__ */ (0,
|
|
1048
|
-
/* @__PURE__ */ (0,
|
|
1049
|
-
/* @__PURE__ */ (0,
|
|
1050
|
-
entry.description && /* @__PURE__ */ (0,
|
|
1207
|
+
children: toasts2.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("li", { className: "rounded-lg border border-border bg-card p-4 shadow-lg", children: [
|
|
1208
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { role: "status", className: "flex items-start justify-between gap-3", children: [
|
|
1209
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { children: [
|
|
1210
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-sm font-semibold", children: entry.title }),
|
|
1211
|
+
entry.description && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "mt-1 text-sm text-muted-foreground", children: entry.description })
|
|
1051
1212
|
] }),
|
|
1052
|
-
/* @__PURE__ */ (0,
|
|
1213
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1053
1214
|
"button",
|
|
1054
1215
|
{
|
|
1055
1216
|
type: "button",
|
|
@@ -1060,7 +1221,7 @@ function ToastRegion({
|
|
|
1060
1221
|
}
|
|
1061
1222
|
)
|
|
1062
1223
|
] }),
|
|
1063
|
-
entry.action && /* @__PURE__ */ (0,
|
|
1224
|
+
entry.action && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1064
1225
|
"button",
|
|
1065
1226
|
{
|
|
1066
1227
|
type: "button",
|
|
@@ -1142,7 +1303,7 @@ function getToastServerSnapshot() {
|
|
|
1142
1303
|
}
|
|
1143
1304
|
|
|
1144
1305
|
// src/components/toast/Toaster.tsx
|
|
1145
|
-
var
|
|
1306
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1146
1307
|
var positionClasses = {
|
|
1147
1308
|
"top-left": "left-4 top-4 items-start",
|
|
1148
1309
|
"top-center": "left-1/2 top-4 -translate-x-1/2 items-center",
|
|
@@ -1167,26 +1328,26 @@ var dotClasses = {
|
|
|
1167
1328
|
};
|
|
1168
1329
|
function Toaster({ position = "bottom-right", label = "Notifications", dismissLabel = "Dismiss notification", richColors = false }) {
|
|
1169
1330
|
const entries = React14.useSyncExternalStore(subscribeToToasts, getToastSnapshot, getToastServerSnapshot);
|
|
1170
|
-
return /* @__PURE__ */ (0,
|
|
1331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1171
1332
|
"ol",
|
|
1172
1333
|
{
|
|
1173
1334
|
"aria-label": label,
|
|
1174
1335
|
className: cn("fixed z-[60] flex w-full max-w-sm flex-col gap-2", positionClasses[position]),
|
|
1175
1336
|
children: entries.map((entry) => {
|
|
1176
1337
|
const variant = entry.variant ?? "default";
|
|
1177
|
-
return /* @__PURE__ */ (0,
|
|
1338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1178
1339
|
"li",
|
|
1179
1340
|
{
|
|
1180
1341
|
className: cn(
|
|
1181
1342
|
"rounded-lg border p-4 shadow-lg",
|
|
1182
1343
|
richColors ? richClasses[variant] : "border-border bg-card"
|
|
1183
1344
|
),
|
|
1184
|
-
children: /* @__PURE__ */ (0,
|
|
1185
|
-
/* @__PURE__ */ (0,
|
|
1186
|
-
/* @__PURE__ */ (0,
|
|
1187
|
-
/* @__PURE__ */ (0,
|
|
1188
|
-
entry.description && /* @__PURE__ */ (0,
|
|
1189
|
-
entry.action && /* @__PURE__ */ (0,
|
|
1345
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { role: "status", className: "flex items-start gap-3", children: [
|
|
1346
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { "aria-hidden": "true", className: cn("mt-1 h-2 w-2 shrink-0 rounded-full", dotClasses[variant]) }),
|
|
1347
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
1348
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-sm font-semibold", children: entry.title }),
|
|
1349
|
+
entry.description && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "mt-1 text-sm text-muted-foreground", children: entry.description }),
|
|
1350
|
+
entry.action && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1190
1351
|
"button",
|
|
1191
1352
|
{
|
|
1192
1353
|
type: "button",
|
|
@@ -1199,7 +1360,7 @@ function Toaster({ position = "bottom-right", label = "Notifications", dismissLa
|
|
|
1199
1360
|
}
|
|
1200
1361
|
)
|
|
1201
1362
|
] }),
|
|
1202
|
-
/* @__PURE__ */ (0,
|
|
1363
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1203
1364
|
"button",
|
|
1204
1365
|
{
|
|
1205
1366
|
type: "button",
|
|
@@ -1222,7 +1383,7 @@ function Toaster({ position = "bottom-right", label = "Notifications", dismissLa
|
|
|
1222
1383
|
// src/components/dialog/Dialog.tsx
|
|
1223
1384
|
var React15 = __toESM(require("react"));
|
|
1224
1385
|
var import_react_dom2 = require("react-dom");
|
|
1225
|
-
var
|
|
1386
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1226
1387
|
var FOCUSABLE2 = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1227
1388
|
var sizeClasses2 = {
|
|
1228
1389
|
sm: "max-w-sm",
|
|
@@ -1233,21 +1394,21 @@ var sizeClasses2 = {
|
|
|
1233
1394
|
};
|
|
1234
1395
|
var DialogIdsContext = React15.createContext(null);
|
|
1235
1396
|
function DialogHeader({ className, ...props }) {
|
|
1236
|
-
return /* @__PURE__ */ (0,
|
|
1397
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: cn("flex items-start justify-between gap-4", className), ...props });
|
|
1237
1398
|
}
|
|
1238
1399
|
function DialogTitle({ className, ...props }) {
|
|
1239
1400
|
const ids = React15.useContext(DialogIdsContext);
|
|
1240
|
-
return /* @__PURE__ */ (0,
|
|
1401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h2", { id: ids?.titleId, className: cn("text-lg font-semibold", className), ...props });
|
|
1241
1402
|
}
|
|
1242
1403
|
function DialogDescription({ className, ...props }) {
|
|
1243
1404
|
const ids = React15.useContext(DialogIdsContext);
|
|
1244
|
-
return /* @__PURE__ */ (0,
|
|
1405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { id: ids?.descriptionId, className: cn("mt-2 text-sm text-muted-foreground", className), ...props });
|
|
1245
1406
|
}
|
|
1246
1407
|
function DialogBody({ className, ...props }) {
|
|
1247
|
-
return /* @__PURE__ */ (0,
|
|
1408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: cn("mt-4", className), ...props });
|
|
1248
1409
|
}
|
|
1249
1410
|
function DialogFooter({ className, ...props }) {
|
|
1250
|
-
return /* @__PURE__ */ (0,
|
|
1411
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: cn("mt-6 flex items-center justify-end gap-2", className), ...props });
|
|
1251
1412
|
}
|
|
1252
1413
|
function Dialog({
|
|
1253
1414
|
open,
|
|
@@ -1321,14 +1482,14 @@ function Dialog({
|
|
|
1321
1482
|
exiting ? "animate-out fade-out-0 zoom-out-95" : "animate-in fade-in-0 zoom-in-95"
|
|
1322
1483
|
) : void 0;
|
|
1323
1484
|
return (0, import_react_dom2.createPortal)(
|
|
1324
|
-
/* @__PURE__ */ (0,
|
|
1485
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1325
1486
|
"div",
|
|
1326
1487
|
{
|
|
1327
1488
|
className: cn("fixed inset-0 z-50 flex items-center justify-center bg-background/80 p-4", motion),
|
|
1328
1489
|
onMouseDown: (event) => {
|
|
1329
1490
|
if (closeOnBackdrop && event.target === event.currentTarget) onOpenChange(false);
|
|
1330
1491
|
},
|
|
1331
|
-
children: /* @__PURE__ */ (0,
|
|
1492
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1332
1493
|
"div",
|
|
1333
1494
|
{
|
|
1334
1495
|
ref: dialogRef,
|
|
@@ -1343,13 +1504,13 @@ function Dialog({
|
|
|
1343
1504
|
sizeClasses2[size],
|
|
1344
1505
|
motion
|
|
1345
1506
|
),
|
|
1346
|
-
children: /* @__PURE__ */ (0,
|
|
1347
|
-
header ?? /* @__PURE__ */ (0,
|
|
1348
|
-
/* @__PURE__ */ (0,
|
|
1349
|
-
title && /* @__PURE__ */ (0,
|
|
1350
|
-
description && /* @__PURE__ */ (0,
|
|
1507
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(DialogIdsContext.Provider, { value: { titleId, descriptionId }, children: [
|
|
1508
|
+
header ?? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(DialogHeader, { children: [
|
|
1509
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "min-w-0", children: [
|
|
1510
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogTitle, { children: title }),
|
|
1511
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogDescription, { children: description })
|
|
1351
1512
|
] }),
|
|
1352
|
-
showClose && /* @__PURE__ */ (0,
|
|
1513
|
+
showClose && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1353
1514
|
"button",
|
|
1354
1515
|
{
|
|
1355
1516
|
type: "button",
|
|
@@ -1360,7 +1521,7 @@ function Dialog({
|
|
|
1360
1521
|
}
|
|
1361
1522
|
)
|
|
1362
1523
|
] }),
|
|
1363
|
-
/* @__PURE__ */ (0,
|
|
1524
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1364
1525
|
"div",
|
|
1365
1526
|
{
|
|
1366
1527
|
className: cn(
|
|
@@ -1371,7 +1532,7 @@ function Dialog({
|
|
|
1371
1532
|
children
|
|
1372
1533
|
}
|
|
1373
1534
|
),
|
|
1374
|
-
footer && /* @__PURE__ */ (0,
|
|
1535
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogFooter, { children: footer })
|
|
1375
1536
|
] })
|
|
1376
1537
|
}
|
|
1377
1538
|
)
|
|
@@ -1383,25 +1544,25 @@ function Dialog({
|
|
|
1383
1544
|
|
|
1384
1545
|
// src/components/table-card/TableCard.tsx
|
|
1385
1546
|
var React16 = __toESM(require("react"));
|
|
1386
|
-
var
|
|
1547
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1387
1548
|
var TableCard = React16.forwardRef(function TableCard2({ title, description, actions, toolbar, children, footer, flush = true, className, ...props }, ref) {
|
|
1388
|
-
return /* @__PURE__ */ (0,
|
|
1549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
1389
1550
|
"div",
|
|
1390
1551
|
{
|
|
1391
1552
|
ref,
|
|
1392
1553
|
className: cn("overflow-hidden rounded-xl border border-border bg-card text-card-foreground", className),
|
|
1393
1554
|
...props,
|
|
1394
1555
|
children: [
|
|
1395
|
-
(title || description || actions) && /* @__PURE__ */ (0,
|
|
1396
|
-
/* @__PURE__ */ (0,
|
|
1397
|
-
title && /* @__PURE__ */ (0,
|
|
1398
|
-
description && /* @__PURE__ */ (0,
|
|
1556
|
+
(title || description || actions) && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex flex-wrap items-start justify-between gap-3 border-b border-border px-4 py-3", children: [
|
|
1557
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "min-w-0", children: [
|
|
1558
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h2", { className: "text-sm font-semibold", children: title }),
|
|
1559
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "mt-0.5 text-sm text-muted-foreground", children: description })
|
|
1399
1560
|
] }),
|
|
1400
|
-
actions && /* @__PURE__ */ (0,
|
|
1561
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
1401
1562
|
] }),
|
|
1402
|
-
toolbar && /* @__PURE__ */ (0,
|
|
1403
|
-
/* @__PURE__ */ (0,
|
|
1404
|
-
footer && /* @__PURE__ */ (0,
|
|
1563
|
+
toolbar && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "border-b border-border px-4 py-2", children: toolbar }),
|
|
1564
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: cn(flush ? "overflow-x-auto" : "p-4"), children }),
|
|
1565
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "border-t border-border px-4 py-3", children: footer })
|
|
1405
1566
|
]
|
|
1406
1567
|
}
|
|
1407
1568
|
);
|
|
@@ -1410,7 +1571,7 @@ var TableCard = React16.forwardRef(function TableCard2({ title, description, act
|
|
|
1410
1571
|
// src/components/select-menu/SelectMenu.tsx
|
|
1411
1572
|
var React17 = __toESM(require("react"));
|
|
1412
1573
|
var import_react_dom3 = require("react-dom");
|
|
1413
|
-
var
|
|
1574
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1414
1575
|
function useOutsideClose(open, close, refs) {
|
|
1415
1576
|
React17.useEffect(() => {
|
|
1416
1577
|
if (!open) return;
|
|
@@ -1571,7 +1732,7 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1571
1732
|
}
|
|
1572
1733
|
};
|
|
1573
1734
|
const selectedItems = items.filter((item) => selectedValues.includes(item.value));
|
|
1574
|
-
const triggerContent = renderValue ? renderValue(selectedItems) : selectedItems.length === 0 ? /* @__PURE__ */ (0,
|
|
1735
|
+
const triggerContent = renderValue ? renderValue(selectedItems) : selectedItems.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-muted-foreground", children: placeholder }) : multiple ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "truncate", children: selectedItems.length === 1 ? selectedItems[0].label : `${selectedItems.length} selected` }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "truncate", children: selectedItems[0].label });
|
|
1575
1736
|
const activeOptionId = activeIndex >= 0 ? `${listboxId}-option-${activeIndex}` : void 0;
|
|
1576
1737
|
const rows = React17.useMemo(() => {
|
|
1577
1738
|
const out = [];
|
|
@@ -1585,10 +1746,10 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1585
1746
|
});
|
|
1586
1747
|
return out;
|
|
1587
1748
|
}, [items]);
|
|
1588
|
-
return /* @__PURE__ */ (0,
|
|
1589
|
-
/* @__PURE__ */ (0,
|
|
1590
|
-
name && selectedValues.map((selected) => /* @__PURE__ */ (0,
|
|
1591
|
-
/* @__PURE__ */ (0,
|
|
1749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
|
|
1750
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { id: labelId, className: "sr-only", children: typeof buttonProps["aria-label"] === "string" ? buttonProps["aria-label"] : "Select" }),
|
|
1751
|
+
name && selectedValues.map((selected) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("input", { type: "hidden", name, value: selected }, selected)),
|
|
1752
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1592
1753
|
"button",
|
|
1593
1754
|
{
|
|
1594
1755
|
ref: setTriggerRef,
|
|
@@ -1610,13 +1771,13 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1610
1771
|
),
|
|
1611
1772
|
...buttonProps,
|
|
1612
1773
|
children: [
|
|
1613
|
-
/* @__PURE__ */ (0,
|
|
1614
|
-
/* @__PURE__ */ (0,
|
|
1774
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "min-w-0 flex-1", children: triggerContent }),
|
|
1775
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u25BE" })
|
|
1615
1776
|
]
|
|
1616
1777
|
}
|
|
1617
1778
|
),
|
|
1618
1779
|
open && position && (0, import_react_dom3.createPortal)(
|
|
1619
|
-
/* @__PURE__ */ (0,
|
|
1780
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1620
1781
|
"div",
|
|
1621
1782
|
{
|
|
1622
1783
|
ref: listRef,
|
|
@@ -1633,8 +1794,8 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1633
1794
|
zIndex: 50
|
|
1634
1795
|
},
|
|
1635
1796
|
className: "max-h-64 overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1636
|
-
children: items.length === 0 ? /* @__PURE__ */ (0,
|
|
1637
|
-
(row, rowIndex) => row.heading ? /* @__PURE__ */ (0,
|
|
1797
|
+
children: items.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { role: "presentation", className: "px-3 py-2 text-sm text-muted-foreground", children: emptyText }) : rows.map(
|
|
1798
|
+
(row, rowIndex) => row.heading ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1638
1799
|
"p",
|
|
1639
1800
|
{
|
|
1640
1801
|
role: "presentation",
|
|
@@ -1642,7 +1803,7 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1642
1803
|
children: row.heading
|
|
1643
1804
|
},
|
|
1644
1805
|
`heading-${row.heading}-${rowIndex}`
|
|
1645
|
-
) : /* @__PURE__ */ (0,
|
|
1806
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1646
1807
|
"div",
|
|
1647
1808
|
{
|
|
1648
1809
|
id: `${listboxId}-option-${row.index}`,
|
|
@@ -1660,13 +1821,13 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1660
1821
|
children: renderItem ? renderItem(row.item, {
|
|
1661
1822
|
selected: selectedValues.includes(row.item.value),
|
|
1662
1823
|
active: row.index === activeIndex
|
|
1663
|
-
}) : /* @__PURE__ */ (0,
|
|
1664
|
-
row.item.icon && /* @__PURE__ */ (0,
|
|
1665
|
-
/* @__PURE__ */ (0,
|
|
1666
|
-
/* @__PURE__ */ (0,
|
|
1667
|
-
row.item.description && /* @__PURE__ */ (0,
|
|
1824
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
|
|
1825
|
+
row.item.icon && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "mt-0.5 shrink-0 [&_svg]:size-4", children: row.item.icon }),
|
|
1826
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { className: "min-w-0 flex-1", children: [
|
|
1827
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "block", children: row.item.label }),
|
|
1828
|
+
row.item.description && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: row.item.description })
|
|
1668
1829
|
] }),
|
|
1669
|
-
multiple && selectedValues.includes(row.item.value) && /* @__PURE__ */ (0,
|
|
1830
|
+
multiple && selectedValues.includes(row.item.value) && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", className: "ml-auto text-primary", children: "\u2713" })
|
|
1670
1831
|
] })
|
|
1671
1832
|
},
|
|
1672
1833
|
row.item.value
|
|
@@ -1804,7 +1965,7 @@ function useCombobox({
|
|
|
1804
1965
|
}
|
|
1805
1966
|
|
|
1806
1967
|
// src/components/search/Search.tsx
|
|
1807
|
-
var
|
|
1968
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1808
1969
|
function Search({
|
|
1809
1970
|
options,
|
|
1810
1971
|
value,
|
|
@@ -1847,8 +2008,8 @@ function Search({
|
|
|
1847
2008
|
onValueChange?.(item.value);
|
|
1848
2009
|
combobox.setOpen(false);
|
|
1849
2010
|
};
|
|
1850
|
-
return /* @__PURE__ */ (0,
|
|
1851
|
-
/* @__PURE__ */ (0,
|
|
2011
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { ref: combobox.anchorRef, className: cn("relative w-full", className), children: [
|
|
2012
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1852
2013
|
Input,
|
|
1853
2014
|
{
|
|
1854
2015
|
id,
|
|
@@ -1872,7 +2033,7 @@ function Search({
|
|
|
1872
2033
|
}
|
|
1873
2034
|
),
|
|
1874
2035
|
combobox.ready && (0, import_react_dom4.createPortal)(
|
|
1875
|
-
/* @__PURE__ */ (0,
|
|
2036
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1876
2037
|
"ul",
|
|
1877
2038
|
{
|
|
1878
2039
|
id: combobox.listboxId,
|
|
@@ -1886,7 +2047,7 @@ function Search({
|
|
|
1886
2047
|
zIndex: 50
|
|
1887
2048
|
},
|
|
1888
2049
|
className: "max-h-64 overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1889
|
-
children: filtered.length === 0 ? /* @__PURE__ */ (0,
|
|
2050
|
+
children: filtered.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("li", { role: "presentation", className: "px-3 py-2 text-sm text-muted-foreground", children: emptyText }) : filtered.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1890
2051
|
"li",
|
|
1891
2052
|
{
|
|
1892
2053
|
id: combobox.optionId(index),
|
|
@@ -1900,8 +2061,8 @@ function Search({
|
|
|
1900
2061
|
combobox.activeIndex === index ? "bg-accent text-accent-foreground" : "hover:bg-accent/60"
|
|
1901
2062
|
),
|
|
1902
2063
|
children: [
|
|
1903
|
-
/* @__PURE__ */ (0,
|
|
1904
|
-
option.description && /* @__PURE__ */ (0,
|
|
2064
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "block", children: option.label }),
|
|
2065
|
+
option.description && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "block text-xs text-muted-foreground", children: option.description })
|
|
1905
2066
|
]
|
|
1906
2067
|
},
|
|
1907
2068
|
option.value
|
|
@@ -1916,7 +2077,7 @@ function Search({
|
|
|
1916
2077
|
// src/components/autocomplete/Autocomplete.tsx
|
|
1917
2078
|
var React20 = __toESM(require("react"));
|
|
1918
2079
|
var import_react_dom5 = require("react-dom");
|
|
1919
|
-
var
|
|
2080
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1920
2081
|
function normalize(entry) {
|
|
1921
2082
|
if (typeof entry === "string") return { value: entry, label: entry };
|
|
1922
2083
|
return { value: entry.value, label: entry.label ?? entry.value, group: entry.group, description: entry.description };
|
|
@@ -1997,8 +2158,8 @@ function Autocomplete({
|
|
|
1997
2158
|
});
|
|
1998
2159
|
return out;
|
|
1999
2160
|
}, [items]);
|
|
2000
|
-
return /* @__PURE__ */ (0,
|
|
2001
|
-
/* @__PURE__ */ (0,
|
|
2161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { ref: combobox.anchorRef, className: cn("relative w-full", className), children: [
|
|
2162
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2002
2163
|
Input,
|
|
2003
2164
|
{
|
|
2004
2165
|
id,
|
|
@@ -2024,7 +2185,7 @@ function Autocomplete({
|
|
|
2024
2185
|
...combobox.inputProps
|
|
2025
2186
|
}
|
|
2026
2187
|
),
|
|
2027
|
-
clearable && current && /* @__PURE__ */ (0,
|
|
2188
|
+
clearable && current && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2028
2189
|
"button",
|
|
2029
2190
|
{
|
|
2030
2191
|
type: "button",
|
|
@@ -2039,7 +2200,7 @@ function Autocomplete({
|
|
|
2039
2200
|
}
|
|
2040
2201
|
),
|
|
2041
2202
|
combobox.ready && (0, import_react_dom5.createPortal)(
|
|
2042
|
-
/* @__PURE__ */ (0,
|
|
2203
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2043
2204
|
"ul",
|
|
2044
2205
|
{
|
|
2045
2206
|
id: combobox.listboxId,
|
|
@@ -2054,8 +2215,8 @@ function Autocomplete({
|
|
|
2054
2215
|
zIndex: 50
|
|
2055
2216
|
},
|
|
2056
2217
|
className: "max-h-60 overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md",
|
|
2057
|
-
children: loading && items.length === 0 ? /* @__PURE__ */ (0,
|
|
2058
|
-
(entry, rowIndex) => entry.heading ? /* @__PURE__ */ (0,
|
|
2218
|
+
children: loading && items.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("li", { role: "presentation", className: "px-3 py-2 text-sm text-muted-foreground", children: loadingText ?? "Loading\u2026" }) : items.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("li", { role: "presentation", className: "px-3 py-2 text-sm text-muted-foreground", children: emptyText ?? "No suggestions" }) : grouped.map(
|
|
2219
|
+
(entry, rowIndex) => entry.heading ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2059
2220
|
"li",
|
|
2060
2221
|
{
|
|
2061
2222
|
role: "presentation",
|
|
@@ -2063,7 +2224,7 @@ function Autocomplete({
|
|
|
2063
2224
|
children: entry.heading
|
|
2064
2225
|
},
|
|
2065
2226
|
`group-${entry.heading}-${rowIndex}`
|
|
2066
|
-
) : /* @__PURE__ */ (0,
|
|
2227
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2067
2228
|
"li",
|
|
2068
2229
|
{
|
|
2069
2230
|
id: combobox.optionId(entry.index),
|
|
@@ -2076,9 +2237,9 @@ function Autocomplete({
|
|
|
2076
2237
|
"cursor-pointer rounded-sm px-3 py-1.5 text-sm outline-none",
|
|
2077
2238
|
combobox.activeIndex === entry.index ? "bg-accent text-accent-foreground" : "hover:bg-accent/60"
|
|
2078
2239
|
),
|
|
2079
|
-
children: renderOption ? renderOption(entry.option, { active: combobox.activeIndex === entry.index }) : /* @__PURE__ */ (0,
|
|
2080
|
-
/* @__PURE__ */ (0,
|
|
2081
|
-
entry.option.description && /* @__PURE__ */ (0,
|
|
2240
|
+
children: renderOption ? renderOption(entry.option, { active: combobox.activeIndex === entry.index }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
|
|
2241
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "block", children: entry.option.label }),
|
|
2242
|
+
entry.option.description && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: entry.option.description })
|
|
2082
2243
|
] })
|
|
2083
2244
|
},
|
|
2084
2245
|
entry.option.value
|
|
@@ -2093,9 +2254,9 @@ function Autocomplete({
|
|
|
2093
2254
|
|
|
2094
2255
|
// src/components/checkbox/Checkbox.tsx
|
|
2095
2256
|
var React21 = __toESM(require("react"));
|
|
2096
|
-
var
|
|
2257
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2097
2258
|
var Checkbox = React21.forwardRef(
|
|
2098
|
-
({ className, checked, onCheckedChange, onChange, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2259
|
+
({ className, checked, onCheckedChange, onChange, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2099
2260
|
"input",
|
|
2100
2261
|
{
|
|
2101
2262
|
type: "checkbox",
|
|
@@ -2120,7 +2281,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
2120
2281
|
|
|
2121
2282
|
// src/components/checkbox/CheckboxGroup.tsx
|
|
2122
2283
|
var React22 = __toESM(require("react"));
|
|
2123
|
-
var
|
|
2284
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2124
2285
|
var CheckboxGroupContext = React22.createContext({
|
|
2125
2286
|
name: "",
|
|
2126
2287
|
values: [],
|
|
@@ -2136,10 +2297,10 @@ var CheckboxGroup = React22.forwardRef(
|
|
|
2136
2297
|
if (value === void 0) setInternalValue(updated);
|
|
2137
2298
|
onValueChange?.(updated);
|
|
2138
2299
|
};
|
|
2139
|
-
return /* @__PURE__ */ (0,
|
|
2140
|
-
legend && /* @__PURE__ */ (0,
|
|
2141
|
-
/* @__PURE__ */ (0,
|
|
2142
|
-
error && /* @__PURE__ */ (0,
|
|
2300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("fieldset", { ref, className: cn(orientation === "vertical" ? "space-y-2" : "flex flex-row flex-wrap gap-x-4 gap-y-2", className), children: [
|
|
2301
|
+
legend && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("legend", { className: "text-sm font-medium", children: legend }),
|
|
2302
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CheckboxGroupContext.Provider, { value: { name, values: currentValue, toggle }, children }),
|
|
2303
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { role: "alert", className: "text-xs text-destructive", children: error })
|
|
2143
2304
|
] });
|
|
2144
2305
|
}
|
|
2145
2306
|
);
|
|
@@ -2149,8 +2310,8 @@ var CheckboxGroupItem = React22.forwardRef(
|
|
|
2149
2310
|
const group = React22.useContext(CheckboxGroupContext);
|
|
2150
2311
|
const generatedId = React22.useId();
|
|
2151
2312
|
const inputId = id ?? generatedId;
|
|
2152
|
-
return /* @__PURE__ */ (0,
|
|
2153
|
-
/* @__PURE__ */ (0,
|
|
2313
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
2314
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2154
2315
|
Checkbox,
|
|
2155
2316
|
{
|
|
2156
2317
|
ref,
|
|
@@ -2163,7 +2324,7 @@ var CheckboxGroupItem = React22.forwardRef(
|
|
|
2163
2324
|
...props
|
|
2164
2325
|
}
|
|
2165
2326
|
),
|
|
2166
|
-
label && /* @__PURE__ */ (0,
|
|
2327
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2167
2328
|
"label",
|
|
2168
2329
|
{
|
|
2169
2330
|
htmlFor: inputId,
|
|
@@ -2178,9 +2339,9 @@ CheckboxGroupItem.displayName = "CheckboxGroupItem";
|
|
|
2178
2339
|
|
|
2179
2340
|
// src/components/radio/Radio.tsx
|
|
2180
2341
|
var React23 = __toESM(require("react"));
|
|
2181
|
-
var
|
|
2342
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2182
2343
|
var Radio = React23.forwardRef(
|
|
2183
|
-
({ className, checked, onCheckedChange, onChange, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2344
|
+
({ className, checked, onCheckedChange, onChange, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2184
2345
|
"input",
|
|
2185
2346
|
{
|
|
2186
2347
|
type: "radio",
|
|
@@ -2210,7 +2371,7 @@ var RadioGroup = React23.forwardRef(
|
|
|
2210
2371
|
if (value === void 0) setInternalValue(next);
|
|
2211
2372
|
onValueChange?.(next);
|
|
2212
2373
|
};
|
|
2213
|
-
return /* @__PURE__ */ (0,
|
|
2374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
2214
2375
|
"fieldset",
|
|
2215
2376
|
{
|
|
2216
2377
|
ref,
|
|
@@ -2219,9 +2380,9 @@ var RadioGroup = React23.forwardRef(
|
|
|
2219
2380
|
className
|
|
2220
2381
|
),
|
|
2221
2382
|
children: [
|
|
2222
|
-
legend && /* @__PURE__ */ (0,
|
|
2223
|
-
/* @__PURE__ */ (0,
|
|
2224
|
-
error && /* @__PURE__ */ (0,
|
|
2383
|
+
legend && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("legend", { className: "text-sm font-medium", children: legend }),
|
|
2384
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(RadioGroupContext.Provider, { value: { name, value: currentValue, onChange: handleChange }, children }),
|
|
2385
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { role: "alert", className: "text-xs text-destructive", children: error })
|
|
2225
2386
|
]
|
|
2226
2387
|
}
|
|
2227
2388
|
);
|
|
@@ -2239,8 +2400,8 @@ var RadioGroupItem = React23.forwardRef(
|
|
|
2239
2400
|
const group = React23.useContext(RadioGroupContext);
|
|
2240
2401
|
const generatedId = React23.useId();
|
|
2241
2402
|
const inputId = id ?? generatedId;
|
|
2242
|
-
return /* @__PURE__ */ (0,
|
|
2243
|
-
/* @__PURE__ */ (0,
|
|
2403
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
2404
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2244
2405
|
Radio,
|
|
2245
2406
|
{
|
|
2246
2407
|
ref,
|
|
@@ -2253,7 +2414,7 @@ var RadioGroupItem = React23.forwardRef(
|
|
|
2253
2414
|
...props
|
|
2254
2415
|
}
|
|
2255
2416
|
),
|
|
2256
|
-
label && /* @__PURE__ */ (0,
|
|
2417
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("label", { htmlFor: inputId, className: "text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", children: label })
|
|
2257
2418
|
] });
|
|
2258
2419
|
}
|
|
2259
2420
|
);
|
|
@@ -2261,13 +2422,13 @@ RadioGroupItem.displayName = "RadioGroupItem";
|
|
|
2261
2422
|
|
|
2262
2423
|
// src/components/radio/RadioCard.tsx
|
|
2263
2424
|
var React24 = __toESM(require("react"));
|
|
2264
|
-
var
|
|
2425
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2265
2426
|
var RadioCard = React24.forwardRef(
|
|
2266
2427
|
({ value, title, description, children, rounded = true, disabled, className, id }, ref) => {
|
|
2267
2428
|
const group = React24.useContext(RadioGroupContext);
|
|
2268
2429
|
const generatedId = React24.useId();
|
|
2269
2430
|
const inputId = id ?? generatedId;
|
|
2270
|
-
return /* @__PURE__ */ (0,
|
|
2431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2271
2432
|
"label",
|
|
2272
2433
|
{
|
|
2273
2434
|
ref,
|
|
@@ -2283,7 +2444,7 @@ var RadioCard = React24.forwardRef(
|
|
|
2283
2444
|
className
|
|
2284
2445
|
),
|
|
2285
2446
|
children: [
|
|
2286
|
-
/* @__PURE__ */ (0,
|
|
2447
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2287
2448
|
Radio,
|
|
2288
2449
|
{
|
|
2289
2450
|
id: inputId,
|
|
@@ -2294,8 +2455,8 @@ var RadioCard = React24.forwardRef(
|
|
|
2294
2455
|
className: "sr-only"
|
|
2295
2456
|
}
|
|
2296
2457
|
),
|
|
2297
|
-
title && /* @__PURE__ */ (0,
|
|
2298
|
-
description && /* @__PURE__ */ (0,
|
|
2458
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-sm font-medium leading-none", children: title }),
|
|
2459
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-sm text-muted-foreground", children: description }),
|
|
2299
2460
|
children
|
|
2300
2461
|
]
|
|
2301
2462
|
}
|
|
@@ -2306,9 +2467,9 @@ RadioCard.displayName = "RadioCard";
|
|
|
2306
2467
|
|
|
2307
2468
|
// src/components/label/Label.tsx
|
|
2308
2469
|
var React25 = __toESM(require("react"));
|
|
2309
|
-
var
|
|
2470
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
2310
2471
|
var Label = React25.forwardRef(
|
|
2311
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2472
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2312
2473
|
"label",
|
|
2313
2474
|
{
|
|
2314
2475
|
ref,
|
|
@@ -2324,19 +2485,19 @@ Label.displayName = "Label";
|
|
|
2324
2485
|
|
|
2325
2486
|
// src/components/fieldset/Fieldset.tsx
|
|
2326
2487
|
var React26 = __toESM(require("react"));
|
|
2327
|
-
var
|
|
2488
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2328
2489
|
var Fieldset = React26.forwardRef(
|
|
2329
|
-
({ legend, description, error, className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2490
|
+
({ legend, description, error, className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
2330
2491
|
"fieldset",
|
|
2331
2492
|
{
|
|
2332
2493
|
ref,
|
|
2333
2494
|
className: cn("m-0 flex min-w-0 flex-col gap-1.5 border-0 p-0", className),
|
|
2334
2495
|
...props,
|
|
2335
2496
|
children: [
|
|
2336
|
-
legend && /* @__PURE__ */ (0,
|
|
2337
|
-
description && /* @__PURE__ */ (0,
|
|
2497
|
+
legend && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("legend", { className: "p-0 text-sm font-medium leading-none", children: legend }),
|
|
2498
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "text-xs text-muted-foreground", children: description }),
|
|
2338
2499
|
children,
|
|
2339
|
-
error && /* @__PURE__ */ (0,
|
|
2500
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { role: "alert", className: "text-xs text-destructive", children: error })
|
|
2340
2501
|
]
|
|
2341
2502
|
}
|
|
2342
2503
|
)
|
|
@@ -2349,7 +2510,7 @@ var React28 = __toESM(require("react"));
|
|
|
2349
2510
|
// src/components/tooltip/Tooltip.tsx
|
|
2350
2511
|
var React27 = __toESM(require("react"));
|
|
2351
2512
|
var import_react_dom6 = require("react-dom");
|
|
2352
|
-
var
|
|
2513
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
2353
2514
|
var GAP = 8;
|
|
2354
2515
|
var Tooltip = React27.forwardRef(
|
|
2355
2516
|
({ content, side = "top", delay = 300, className, children }, ref) => {
|
|
@@ -2390,7 +2551,7 @@ var Tooltip = React27.forwardRef(
|
|
|
2390
2551
|
const trigger = React27.cloneElement(children, {
|
|
2391
2552
|
"aria-describedby": open ? id : void 0
|
|
2392
2553
|
});
|
|
2393
|
-
return /* @__PURE__ */ (0,
|
|
2554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
2394
2555
|
"div",
|
|
2395
2556
|
{
|
|
2396
2557
|
ref: (node) => {
|
|
@@ -2412,7 +2573,7 @@ var Tooltip = React27.forwardRef(
|
|
|
2412
2573
|
children: [
|
|
2413
2574
|
trigger,
|
|
2414
2575
|
open && pos && typeof document !== "undefined" && (0, import_react_dom6.createPortal)(
|
|
2415
|
-
/* @__PURE__ */ (0,
|
|
2576
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2416
2577
|
"div",
|
|
2417
2578
|
{
|
|
2418
2579
|
id,
|
|
@@ -2432,7 +2593,7 @@ var Tooltip = React27.forwardRef(
|
|
|
2432
2593
|
Tooltip.displayName = "Tooltip";
|
|
2433
2594
|
|
|
2434
2595
|
// src/components/form-field/FormField.tsx
|
|
2435
|
-
var
|
|
2596
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2436
2597
|
var FormField = ({
|
|
2437
2598
|
id,
|
|
2438
2599
|
label,
|
|
@@ -2457,41 +2618,41 @@ var FormField = ({
|
|
|
2457
2618
|
...error ? { "aria-invalid": true } : {}
|
|
2458
2619
|
});
|
|
2459
2620
|
}
|
|
2460
|
-
const labelNode = /* @__PURE__ */ (0,
|
|
2621
|
+
const labelNode = /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Label, { htmlFor: id, className: labelHidden ? "sr-only" : void 0, children: [
|
|
2461
2622
|
label,
|
|
2462
|
-
required && /* @__PURE__ */ (0,
|
|
2623
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
|
|
2463
2624
|
" ",
|
|
2464
|
-
/* @__PURE__ */ (0,
|
|
2625
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { "aria-hidden": "true", className: "ml-0.5 text-destructive", children: "*" })
|
|
2465
2626
|
] })
|
|
2466
2627
|
] });
|
|
2467
|
-
const tooltipNode = tooltip ? /* @__PURE__ */ (0,
|
|
2628
|
+
const tooltipNode = tooltip ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Tooltip, { content: tooltip, side: "top", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2468
2629
|
"button",
|
|
2469
2630
|
{
|
|
2470
2631
|
type: "button",
|
|
2471
2632
|
"aria-label": `${label} information`,
|
|
2472
2633
|
className: "ml-1 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
2473
|
-
children: /* @__PURE__ */ (0,
|
|
2634
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("path", { d: "M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM8 7a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 7Zm0-2.25a.9.9 0 1 1 0 1.8.9.9 0 0 1 0-1.8Z" }) })
|
|
2474
2635
|
}
|
|
2475
2636
|
) }) : null;
|
|
2476
|
-
const hintOrError = error ? /* @__PURE__ */ (0,
|
|
2637
|
+
const hintOrError = error ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { id: errorId, role: "alert", className: "text-xs text-destructive", children: error }) : hint ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { id: hintId, className: "text-xs text-muted-foreground", children: hint }) : null;
|
|
2477
2638
|
if (labelPlacement === "left") {
|
|
2478
|
-
return /* @__PURE__ */ (0,
|
|
2479
|
-
/* @__PURE__ */ (0,
|
|
2639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cn("flex min-w-0 flex-col gap-1.5", className), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
2640
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex w-40 shrink-0 items-center gap-1 pt-2", children: [
|
|
2480
2641
|
labelNode,
|
|
2481
2642
|
tooltipNode
|
|
2482
2643
|
] }),
|
|
2483
|
-
/* @__PURE__ */ (0,
|
|
2484
|
-
/* @__PURE__ */ (0,
|
|
2485
|
-
/* @__PURE__ */ (0,
|
|
2486
|
-
trailing && /* @__PURE__ */ (0,
|
|
2644
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
|
|
2645
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
2646
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "min-w-0 flex-1", children: control }),
|
|
2647
|
+
trailing && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "shrink-0 text-xs text-muted-foreground", children: trailing })
|
|
2487
2648
|
] }),
|
|
2488
2649
|
hintOrError
|
|
2489
2650
|
] })
|
|
2490
2651
|
] }) });
|
|
2491
2652
|
}
|
|
2492
|
-
return /* @__PURE__ */ (0,
|
|
2493
|
-
/* @__PURE__ */ (0,
|
|
2494
|
-
/* @__PURE__ */ (0,
|
|
2653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: cn("flex min-w-0 flex-col gap-1.5", className), children: [
|
|
2654
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2655
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: "flex min-w-0 items-center", children: [
|
|
2495
2656
|
labelNode,
|
|
2496
2657
|
tooltipNode
|
|
2497
2658
|
] }),
|
|
@@ -2505,11 +2666,11 @@ FormField.displayName = "FormField";
|
|
|
2505
2666
|
|
|
2506
2667
|
// src/components/form/Form.tsx
|
|
2507
2668
|
var React29 = __toESM(require("react"));
|
|
2508
|
-
var
|
|
2669
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2509
2670
|
var Form = React29.forwardRef(
|
|
2510
2671
|
({ variant = "default", gap, className, style, ...props }, ref) => {
|
|
2511
2672
|
const gapResolved = resolveGap(gap ?? "md");
|
|
2512
|
-
return /* @__PURE__ */ (0,
|
|
2673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2513
2674
|
"form",
|
|
2514
2675
|
{
|
|
2515
2676
|
ref,
|
|
@@ -2530,7 +2691,7 @@ Form.displayName = "Form";
|
|
|
2530
2691
|
|
|
2531
2692
|
// src/components/form-layout/FormLayout.tsx
|
|
2532
2693
|
var React30 = __toESM(require("react"));
|
|
2533
|
-
var
|
|
2694
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2534
2695
|
var GRID_COLUMNS = {
|
|
2535
2696
|
1: "grid-cols-1",
|
|
2536
2697
|
2: "grid-cols-2",
|
|
@@ -2552,7 +2713,7 @@ var FormLayout = React30.forwardRef(
|
|
|
2552
2713
|
}, ref) => {
|
|
2553
2714
|
const Tag = as;
|
|
2554
2715
|
const gapResolved = resolveGap(gap ?? "md");
|
|
2555
|
-
return /* @__PURE__ */ (0,
|
|
2716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2556
2717
|
Tag,
|
|
2557
2718
|
{
|
|
2558
2719
|
ref,
|
|
@@ -2567,8 +2728,8 @@ var FormLayout = React30.forwardRef(
|
|
|
2567
2728
|
style: { ...gapResolved.style, ...style },
|
|
2568
2729
|
...props,
|
|
2569
2730
|
children: [
|
|
2570
|
-
legend && as === "fieldset" && /* @__PURE__ */ (0,
|
|
2571
|
-
description && as === "fieldset" && /* @__PURE__ */ (0,
|
|
2731
|
+
legend && as === "fieldset" && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("legend", { className: "col-span-full p-0 text-sm font-medium leading-none", children: legend }),
|
|
2732
|
+
description && as === "fieldset" && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "col-span-full text-xs text-muted-foreground", children: description }),
|
|
2572
2733
|
children
|
|
2573
2734
|
]
|
|
2574
2735
|
}
|
|
@@ -2579,7 +2740,7 @@ FormLayout.displayName = "FormLayout";
|
|
|
2579
2740
|
|
|
2580
2741
|
// src/components/switch/Switch.tsx
|
|
2581
2742
|
var React31 = __toESM(require("react"));
|
|
2582
|
-
var
|
|
2743
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2583
2744
|
var Switch = React31.forwardRef(
|
|
2584
2745
|
({ className, checked, defaultChecked, onCheckedChange, disabled, name, value, ...props }, ref) => {
|
|
2585
2746
|
const [internalChecked, setInternalChecked] = React31.useState(defaultChecked ?? false);
|
|
@@ -2588,8 +2749,8 @@ var Switch = React31.forwardRef(
|
|
|
2588
2749
|
if (checked === void 0) setInternalChecked((prev) => !prev);
|
|
2589
2750
|
onCheckedChange?.(!isOn);
|
|
2590
2751
|
};
|
|
2591
|
-
return /* @__PURE__ */ (0,
|
|
2592
|
-
name && /* @__PURE__ */ (0,
|
|
2752
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
|
2753
|
+
name && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2593
2754
|
"input",
|
|
2594
2755
|
{
|
|
2595
2756
|
type: "checkbox",
|
|
@@ -2600,7 +2761,7 @@ var Switch = React31.forwardRef(
|
|
|
2600
2761
|
hidden: true
|
|
2601
2762
|
}
|
|
2602
2763
|
),
|
|
2603
|
-
/* @__PURE__ */ (0,
|
|
2764
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2604
2765
|
"button",
|
|
2605
2766
|
{
|
|
2606
2767
|
type: "button",
|
|
@@ -2617,7 +2778,7 @@ var Switch = React31.forwardRef(
|
|
|
2617
2778
|
className
|
|
2618
2779
|
),
|
|
2619
2780
|
...props,
|
|
2620
|
-
children: /* @__PURE__ */ (0,
|
|
2781
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2621
2782
|
"span",
|
|
2622
2783
|
{
|
|
2623
2784
|
"aria-hidden": "true",
|
|
@@ -2637,7 +2798,7 @@ Switch.displayName = "Switch";
|
|
|
2637
2798
|
// src/components/separator/Separator.tsx
|
|
2638
2799
|
var React32 = __toESM(require("react"));
|
|
2639
2800
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
2640
|
-
var
|
|
2801
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2641
2802
|
var separatorVariants = (0, import_class_variance_authority4.cva)("shrink-0 bg-border", {
|
|
2642
2803
|
variants: {
|
|
2643
2804
|
orientation: {
|
|
@@ -2650,7 +2811,7 @@ var separatorVariants = (0, import_class_variance_authority4.cva)("shrink-0 bg-b
|
|
|
2650
2811
|
}
|
|
2651
2812
|
});
|
|
2652
2813
|
var Separator = React32.forwardRef(
|
|
2653
|
-
({ className, orientation, label, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2814
|
+
({ className, orientation, label, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2654
2815
|
"div",
|
|
2655
2816
|
{
|
|
2656
2817
|
ref,
|
|
@@ -2667,7 +2828,7 @@ var Divider = Separator;
|
|
|
2667
2828
|
|
|
2668
2829
|
// src/components/skeleton/Skeleton.tsx
|
|
2669
2830
|
var React33 = __toESM(require("react"));
|
|
2670
|
-
var
|
|
2831
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2671
2832
|
var roundedClasses = {
|
|
2672
2833
|
none: "rounded-none",
|
|
2673
2834
|
sm: "rounded-sm",
|
|
@@ -2676,7 +2837,7 @@ var roundedClasses = {
|
|
|
2676
2837
|
full: "rounded-full"
|
|
2677
2838
|
};
|
|
2678
2839
|
var Skeleton = React33.forwardRef(
|
|
2679
|
-
({ className, height, width, rounded = "md", label, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2840
|
+
({ className, height, width, rounded = "md", label, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2680
2841
|
"div",
|
|
2681
2842
|
{
|
|
2682
2843
|
ref,
|
|
@@ -2691,7 +2852,7 @@ var Skeleton = React33.forwardRef(
|
|
|
2691
2852
|
),
|
|
2692
2853
|
...props,
|
|
2693
2854
|
children: [
|
|
2694
|
-
label ? /* @__PURE__ */ (0,
|
|
2855
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "sr-only", children: label }) : null,
|
|
2695
2856
|
children
|
|
2696
2857
|
]
|
|
2697
2858
|
}
|
|
@@ -2701,12 +2862,12 @@ Skeleton.displayName = "Skeleton";
|
|
|
2701
2862
|
|
|
2702
2863
|
// src/components/progress/Progress.tsx
|
|
2703
2864
|
var React34 = __toESM(require("react"));
|
|
2704
|
-
var
|
|
2865
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2705
2866
|
var Progress = React34.forwardRef(
|
|
2706
2867
|
({ className, value = 0, max = 100, label, indicatorClassName, indicatorStyle, ...props }, ref) => {
|
|
2707
2868
|
const clamped = Math.min(Math.max(value, 0), max);
|
|
2708
2869
|
const percent = max > 0 ? clamped / max * 100 : 0;
|
|
2709
|
-
return /* @__PURE__ */ (0,
|
|
2870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2710
2871
|
"div",
|
|
2711
2872
|
{
|
|
2712
2873
|
ref,
|
|
@@ -2717,7 +2878,7 @@ var Progress = React34.forwardRef(
|
|
|
2717
2878
|
"aria-label": label,
|
|
2718
2879
|
className: cn("relative h-2 w-full overflow-hidden rounded-full bg-muted", className),
|
|
2719
2880
|
...props,
|
|
2720
|
-
children: /* @__PURE__ */ (0,
|
|
2881
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2721
2882
|
"div",
|
|
2722
2883
|
{
|
|
2723
2884
|
className: cn(
|
|
@@ -2736,7 +2897,7 @@ Progress.displayName = "Progress";
|
|
|
2736
2897
|
// src/components/tabs/Tabs.tsx
|
|
2737
2898
|
var React35 = __toESM(require("react"));
|
|
2738
2899
|
var import_class_variance_authority5 = require("class-variance-authority");
|
|
2739
|
-
var
|
|
2900
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2740
2901
|
var TabsContext = React35.createContext({
|
|
2741
2902
|
value: "",
|
|
2742
2903
|
setValue: () => {
|
|
@@ -2792,7 +2953,7 @@ var Tabs = React35.forwardRef(
|
|
|
2792
2953
|
}),
|
|
2793
2954
|
[current, setValue, baseId, variant, size, panels, registerPanel, unregisterPanel]
|
|
2794
2955
|
);
|
|
2795
|
-
return /* @__PURE__ */ (0,
|
|
2956
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ref, className, "data-value": current, "data-variant": variant, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TabsContext.Provider, { value: contextValue, children }) });
|
|
2796
2957
|
}
|
|
2797
2958
|
);
|
|
2798
2959
|
Tabs.displayName = "Tabs";
|
|
@@ -2817,7 +2978,7 @@ var tabsListVariants = (0, import_class_variance_authority5.cva)("inline-flex it
|
|
|
2817
2978
|
var TabsList = React35.forwardRef(
|
|
2818
2979
|
({ className, ...props }, ref) => {
|
|
2819
2980
|
const ctx = React35.useContext(TabsContext);
|
|
2820
|
-
return /* @__PURE__ */ (0,
|
|
2981
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2821
2982
|
"div",
|
|
2822
2983
|
{
|
|
2823
2984
|
ref,
|
|
@@ -2869,7 +3030,7 @@ var TabsTrigger = React35.forwardRef(
|
|
|
2869
3030
|
target.click();
|
|
2870
3031
|
};
|
|
2871
3032
|
const siblingTabs = (button) => Array.from(button.parentElement?.querySelectorAll('[role="tab"]') ?? []);
|
|
2872
|
-
return /* @__PURE__ */ (0,
|
|
3033
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2873
3034
|
"button",
|
|
2874
3035
|
{
|
|
2875
3036
|
ref,
|
|
@@ -2924,7 +3085,7 @@ var TabsContent = React35.forwardRef(
|
|
|
2924
3085
|
registerPanel(value);
|
|
2925
3086
|
return () => unregisterPanel(value);
|
|
2926
3087
|
}, [registerPanel, unregisterPanel, value]);
|
|
2927
|
-
return /* @__PURE__ */ (0,
|
|
3088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2928
3089
|
"div",
|
|
2929
3090
|
{
|
|
2930
3091
|
ref,
|
|
@@ -2948,7 +3109,7 @@ TabsContent.displayName = "TabsContent";
|
|
|
2948
3109
|
// src/components/link-tabs/LinkTabs.tsx
|
|
2949
3110
|
var React36 = __toESM(require("react"));
|
|
2950
3111
|
var import_class_variance_authority6 = require("class-variance-authority");
|
|
2951
|
-
var
|
|
3112
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2952
3113
|
var listVariants = (0, import_class_variance_authority6.cva)("inline-flex items-center", {
|
|
2953
3114
|
variants: {
|
|
2954
3115
|
variant: {
|
|
@@ -3000,14 +3161,14 @@ var LinkTabs = React36.forwardRef(function LinkTabs2({
|
|
|
3000
3161
|
...props
|
|
3001
3162
|
}, ref) {
|
|
3002
3163
|
const Link3 = linkComponent ?? "a";
|
|
3003
|
-
return /* @__PURE__ */ (0,
|
|
3164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("nav", { ref, "aria-label": label, className: cn(listVariants({ variant, size }), className), ...props, children: items.map((item) => {
|
|
3004
3165
|
const active = isActive(item, activeHref);
|
|
3005
|
-
const content = /* @__PURE__ */ (0,
|
|
3166
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
3006
3167
|
item.icon,
|
|
3007
3168
|
item.label
|
|
3008
3169
|
] });
|
|
3009
3170
|
if (item.disabled) {
|
|
3010
|
-
return /* @__PURE__ */ (0,
|
|
3171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3011
3172
|
"span",
|
|
3012
3173
|
{
|
|
3013
3174
|
"aria-disabled": "true",
|
|
@@ -3018,7 +3179,7 @@ var LinkTabs = React36.forwardRef(function LinkTabs2({
|
|
|
3018
3179
|
item.href
|
|
3019
3180
|
);
|
|
3020
3181
|
}
|
|
3021
|
-
return /* @__PURE__ */ (0,
|
|
3182
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3022
3183
|
Link3,
|
|
3023
3184
|
{
|
|
3024
3185
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -3035,11 +3196,11 @@ LinkTabs.displayName = "LinkTabs";
|
|
|
3035
3196
|
|
|
3036
3197
|
// src/components/theme-toggle/ThemeToggle.tsx
|
|
3037
3198
|
var React37 = __toESM(require("react"));
|
|
3038
|
-
var
|
|
3199
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3039
3200
|
var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChange, labels, size = "md", className, ...props }, ref) {
|
|
3040
3201
|
const next = theme === "dark" ? "light" : "dark";
|
|
3041
3202
|
const label = next === "dark" ? labels?.toDark ?? "Switch to dark theme" : labels?.toLight ?? "Switch to light theme";
|
|
3042
|
-
return /* @__PURE__ */ (0,
|
|
3203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3043
3204
|
"button",
|
|
3044
3205
|
{
|
|
3045
3206
|
ref,
|
|
@@ -3055,7 +3216,7 @@ var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChang
|
|
|
3055
3216
|
className
|
|
3056
3217
|
),
|
|
3057
3218
|
...props,
|
|
3058
|
-
children: theme === "dark" ? /* @__PURE__ */ (0,
|
|
3219
|
+
children: theme === "dark" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
3059
3220
|
"svg",
|
|
3060
3221
|
{
|
|
3061
3222
|
viewBox: "0 0 24 24",
|
|
@@ -3067,11 +3228,11 @@ var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChang
|
|
|
3067
3228
|
strokeLinejoin: "round",
|
|
3068
3229
|
"aria-hidden": "true",
|
|
3069
3230
|
children: [
|
|
3070
|
-
/* @__PURE__ */ (0,
|
|
3071
|
-
/* @__PURE__ */ (0,
|
|
3231
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("circle", { cx: "12", cy: "12", r: "4" }),
|
|
3232
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { d: "M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41" })
|
|
3072
3233
|
]
|
|
3073
3234
|
}
|
|
3074
|
-
) : /* @__PURE__ */ (0,
|
|
3235
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3075
3236
|
"svg",
|
|
3076
3237
|
{
|
|
3077
3238
|
viewBox: "0 0 24 24",
|
|
@@ -3082,7 +3243,7 @@ var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChang
|
|
|
3082
3243
|
strokeLinecap: "round",
|
|
3083
3244
|
strokeLinejoin: "round",
|
|
3084
3245
|
"aria-hidden": "true",
|
|
3085
|
-
children: /* @__PURE__ */ (0,
|
|
3246
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z" })
|
|
3086
3247
|
}
|
|
3087
3248
|
)
|
|
3088
3249
|
}
|
|
@@ -3093,11 +3254,11 @@ ThemeToggle.displayName = "ThemeToggle";
|
|
|
3093
3254
|
// src/components/card/Card.tsx
|
|
3094
3255
|
var React38 = __toESM(require("react"));
|
|
3095
3256
|
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
3096
|
-
var
|
|
3257
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3097
3258
|
var Card = React38.forwardRef(
|
|
3098
3259
|
({ className, asChild = false, ...props }, ref) => {
|
|
3099
3260
|
const Comp = asChild ? import_react_slot3.Slot : "div";
|
|
3100
|
-
return /* @__PURE__ */ (0,
|
|
3261
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3101
3262
|
Comp,
|
|
3102
3263
|
{
|
|
3103
3264
|
ref,
|
|
@@ -3109,11 +3270,11 @@ var Card = React38.forwardRef(
|
|
|
3109
3270
|
);
|
|
3110
3271
|
Card.displayName = "Card";
|
|
3111
3272
|
var CardHeader = React38.forwardRef(
|
|
3112
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3273
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
3113
3274
|
);
|
|
3114
3275
|
CardHeader.displayName = "CardHeader";
|
|
3115
3276
|
var CardTitle = React38.forwardRef(
|
|
3116
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3277
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3117
3278
|
"h3",
|
|
3118
3279
|
{
|
|
3119
3280
|
ref,
|
|
@@ -3124,21 +3285,21 @@ var CardTitle = React38.forwardRef(
|
|
|
3124
3285
|
);
|
|
3125
3286
|
CardTitle.displayName = "CardTitle";
|
|
3126
3287
|
var CardDescription = React38.forwardRef(
|
|
3127
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3288
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
3128
3289
|
);
|
|
3129
3290
|
CardDescription.displayName = "CardDescription";
|
|
3130
3291
|
var CardContent = React38.forwardRef(
|
|
3131
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3292
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
3132
3293
|
);
|
|
3133
3294
|
CardContent.displayName = "CardContent";
|
|
3134
3295
|
var CardFooter = React38.forwardRef(
|
|
3135
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3296
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
3136
3297
|
);
|
|
3137
3298
|
CardFooter.displayName = "CardFooter";
|
|
3138
3299
|
|
|
3139
3300
|
// src/components/confirm-dialog/ConfirmDialog.tsx
|
|
3140
3301
|
var React39 = __toESM(require("react"));
|
|
3141
|
-
var
|
|
3302
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3142
3303
|
function ConfirmDialog({
|
|
3143
3304
|
open,
|
|
3144
3305
|
onOpenChange,
|
|
@@ -3161,7 +3322,7 @@ function ConfirmDialog({
|
|
|
3161
3322
|
setPending(false);
|
|
3162
3323
|
}
|
|
3163
3324
|
};
|
|
3164
|
-
return /* @__PURE__ */ (0,
|
|
3325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3165
3326
|
Dialog,
|
|
3166
3327
|
{
|
|
3167
3328
|
open,
|
|
@@ -3172,9 +3333,9 @@ function ConfirmDialog({
|
|
|
3172
3333
|
title,
|
|
3173
3334
|
description,
|
|
3174
3335
|
size: "sm",
|
|
3175
|
-
footer: /* @__PURE__ */ (0,
|
|
3176
|
-
/* @__PURE__ */ (0,
|
|
3177
|
-
/* @__PURE__ */ (0,
|
|
3336
|
+
footer: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(DialogFooter, { children: [
|
|
3337
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Button, { variant: "ghost", onClick: () => onOpenChange(false), disabled: pending, children: cancelLabel }),
|
|
3338
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3178
3339
|
Button,
|
|
3179
3340
|
{
|
|
3180
3341
|
variant: destructive ? "destructive" : "default",
|
|
@@ -3191,7 +3352,7 @@ function ConfirmDialog({
|
|
|
3191
3352
|
|
|
3192
3353
|
// src/components/table-of-contents/TableOfContents.tsx
|
|
3193
3354
|
var React40 = __toESM(require("react"));
|
|
3194
|
-
var
|
|
3355
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3195
3356
|
function TableOfContents({
|
|
3196
3357
|
headings,
|
|
3197
3358
|
activeId,
|
|
@@ -3203,17 +3364,17 @@ function TableOfContents({
|
|
|
3203
3364
|
className,
|
|
3204
3365
|
...props
|
|
3205
3366
|
}) {
|
|
3206
|
-
return /* @__PURE__ */ (0,
|
|
3367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
3207
3368
|
"nav",
|
|
3208
3369
|
{
|
|
3209
3370
|
"aria-label": ariaLabel ?? label,
|
|
3210
3371
|
className: cn("text-sm", sticky && "sticky top-20 max-h-[calc(100vh-6rem)] overflow-y-auto", className),
|
|
3211
3372
|
...props,
|
|
3212
3373
|
children: [
|
|
3213
|
-
/* @__PURE__ */ (0,
|
|
3214
|
-
/* @__PURE__ */ (0,
|
|
3374
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: cn("mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground", labelClassName), children: label }),
|
|
3375
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("ul", { className: "space-y-1 border-l border-border", children: headings.map((heading) => {
|
|
3215
3376
|
const active = heading.id === activeId;
|
|
3216
|
-
return /* @__PURE__ */ (0,
|
|
3377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("li", { style: { paddingLeft: `${(heading.level - 2) * 0.75}rem` }, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3217
3378
|
"a",
|
|
3218
3379
|
{
|
|
3219
3380
|
href: `#${heading.id}`,
|
|
@@ -3266,14 +3427,14 @@ function useScrollSpy(ids, options) {
|
|
|
3266
3427
|
|
|
3267
3428
|
// src/components/prose/Prose.tsx
|
|
3268
3429
|
var React41 = __toESM(require("react"));
|
|
3269
|
-
var
|
|
3430
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3270
3431
|
var sizeClasses3 = {
|
|
3271
3432
|
sm: "text-sm [&_h2]:text-xl [&_h3]:text-lg",
|
|
3272
3433
|
md: "text-base [&_h2]:text-2xl [&_h3]:text-xl",
|
|
3273
3434
|
lg: "text-lg [&_h2]:text-3xl [&_h3]:text-2xl"
|
|
3274
3435
|
};
|
|
3275
3436
|
var Prose = React41.forwardRef(function Prose2({ size = "md", className, ...props }, ref) {
|
|
3276
|
-
return /* @__PURE__ */ (0,
|
|
3437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3277
3438
|
"div",
|
|
3278
3439
|
{
|
|
3279
3440
|
ref,
|
|
@@ -3312,7 +3473,7 @@ var Prose = React41.forwardRef(function Prose2({ size = "md", className, ...prop
|
|
|
3312
3473
|
});
|
|
3313
3474
|
|
|
3314
3475
|
// src/components/site-footer/SiteFooter.tsx
|
|
3315
|
-
var
|
|
3476
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3316
3477
|
function isActive2(itemHref, activeHref, match) {
|
|
3317
3478
|
if (!activeHref) return false;
|
|
3318
3479
|
if (itemHref === activeHref) return true;
|
|
@@ -3333,17 +3494,17 @@ function SiteFooter({
|
|
|
3333
3494
|
}) {
|
|
3334
3495
|
const Link3 = linkComponent ?? "a";
|
|
3335
3496
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
3336
|
-
return /* @__PURE__ */ (0,
|
|
3337
|
-
/* @__PURE__ */ (0,
|
|
3338
|
-
/* @__PURE__ */ (0,
|
|
3497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("footer", { className: cn("border-t border-border bg-muted/30", className), ...props, children: [
|
|
3498
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "mx-auto grid w-full max-w-7xl gap-8 px-4 py-12 sm:grid-cols-2 sm:px-6 lg:grid-cols-4", children: [
|
|
3499
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "min-w-0", children: [
|
|
3339
3500
|
brand,
|
|
3340
|
-
tagline && /* @__PURE__ */ (0,
|
|
3501
|
+
tagline && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "mt-3 max-w-56 text-sm text-muted-foreground", children: tagline })
|
|
3341
3502
|
] }),
|
|
3342
|
-
columns.map((column) => /* @__PURE__ */ (0,
|
|
3343
|
-
/* @__PURE__ */ (0,
|
|
3344
|
-
/* @__PURE__ */ (0,
|
|
3503
|
+
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { children: [
|
|
3504
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("h2", { className: "mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: column.title }),
|
|
3505
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("ul", { className: "m-0 list-none space-y-2 p-0 text-sm", children: column.links.map((link) => {
|
|
3345
3506
|
const active = isActive2(link.href, activeHref, match);
|
|
3346
|
-
return /* @__PURE__ */ (0,
|
|
3507
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3347
3508
|
Link3,
|
|
3348
3509
|
{
|
|
3349
3510
|
...destination(link.href),
|
|
@@ -3359,13 +3520,13 @@ function SiteFooter({
|
|
|
3359
3520
|
}) })
|
|
3360
3521
|
] }, column.title))
|
|
3361
3522
|
] }),
|
|
3362
|
-
legal && /* @__PURE__ */ (0,
|
|
3523
|
+
legal && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "border-t border-border", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "mx-auto flex w-full max-w-7xl flex-wrap items-center justify-between gap-2 px-4 py-4 text-xs text-muted-foreground sm:px-6", children: legal }) })
|
|
3363
3524
|
] });
|
|
3364
3525
|
}
|
|
3365
3526
|
|
|
3366
3527
|
// src/components/site-header/SiteHeader.tsx
|
|
3367
3528
|
var React42 = __toESM(require("react"));
|
|
3368
|
-
var
|
|
3529
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3369
3530
|
function isActive3(itemHref, activeHref, match) {
|
|
3370
3531
|
if (!activeHref) return false;
|
|
3371
3532
|
if (itemHref === activeHref) return true;
|
|
@@ -3399,7 +3560,7 @@ function SiteHeader({
|
|
|
3399
3560
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
3400
3561
|
const navLink = (item, extra) => {
|
|
3401
3562
|
const active = isActive3(item.href, activeHref, match);
|
|
3402
|
-
return /* @__PURE__ */ (0,
|
|
3563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3403
3564
|
Link3,
|
|
3404
3565
|
{
|
|
3405
3566
|
...destination(item.href),
|
|
@@ -3416,8 +3577,8 @@ function SiteHeader({
|
|
|
3416
3577
|
item.href
|
|
3417
3578
|
);
|
|
3418
3579
|
};
|
|
3419
|
-
return /* @__PURE__ */ (0,
|
|
3420
|
-
/* @__PURE__ */ (0,
|
|
3580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
3581
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3421
3582
|
"header",
|
|
3422
3583
|
{
|
|
3423
3584
|
className: cn(
|
|
@@ -3426,14 +3587,14 @@ function SiteHeader({
|
|
|
3426
3587
|
className
|
|
3427
3588
|
),
|
|
3428
3589
|
...props,
|
|
3429
|
-
children: /* @__PURE__ */ (0,
|
|
3590
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
3430
3591
|
"nav",
|
|
3431
3592
|
{
|
|
3432
3593
|
"aria-label": navLabel,
|
|
3433
3594
|
className: cn("mx-auto flex h-14 w-full max-w-7xl items-center justify-between gap-4 px-4 sm:px-6", navClassName),
|
|
3434
3595
|
children: [
|
|
3435
|
-
/* @__PURE__ */ (0,
|
|
3436
|
-
/* @__PURE__ */ (0,
|
|
3596
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex min-w-0 items-center gap-6", children: [
|
|
3597
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3437
3598
|
Link3,
|
|
3438
3599
|
{
|
|
3439
3600
|
...destination("/"),
|
|
@@ -3442,11 +3603,11 @@ function SiteHeader({
|
|
|
3442
3603
|
children: brand
|
|
3443
3604
|
}
|
|
3444
3605
|
),
|
|
3445
|
-
/* @__PURE__ */ (0,
|
|
3606
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: cn("hidden items-center gap-5", desktopBreakpoint === "lg" ? "lg:flex" : "md:flex"), children: items.map((item) => navLink(item)) })
|
|
3446
3607
|
] }),
|
|
3447
|
-
/* @__PURE__ */ (0,
|
|
3608
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
3448
3609
|
actions,
|
|
3449
|
-
showMobileTrigger && /* @__PURE__ */ (0,
|
|
3610
|
+
showMobileTrigger && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3450
3611
|
"button",
|
|
3451
3612
|
{
|
|
3452
3613
|
type: "button",
|
|
@@ -3459,7 +3620,7 @@ function SiteHeader({
|
|
|
3459
3620
|
"rounded-md border border-border p-2 text-muted-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3460
3621
|
desktopBreakpoint === "lg" ? "lg:hidden" : "md:hidden"
|
|
3461
3622
|
),
|
|
3462
|
-
children: /* @__PURE__ */ (0,
|
|
3623
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3463
3624
|
"svg",
|
|
3464
3625
|
{
|
|
3465
3626
|
"aria-hidden": "true",
|
|
@@ -3469,7 +3630,7 @@ function SiteHeader({
|
|
|
3469
3630
|
stroke: "currentColor",
|
|
3470
3631
|
strokeWidth: "2",
|
|
3471
3632
|
strokeLinecap: "round",
|
|
3472
|
-
children: mobileOpen ? /* @__PURE__ */ (0,
|
|
3633
|
+
children: mobileOpen ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M6 6l12 12M18 6L6 18" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M4 7h16M4 12h16M4 17h16" })
|
|
3473
3634
|
}
|
|
3474
3635
|
)
|
|
3475
3636
|
}
|
|
@@ -3480,7 +3641,7 @@ function SiteHeader({
|
|
|
3480
3641
|
)
|
|
3481
3642
|
}
|
|
3482
3643
|
),
|
|
3483
|
-
showMobileTrigger && /* @__PURE__ */ (0,
|
|
3644
|
+
showMobileTrigger && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
3484
3645
|
Drawer,
|
|
3485
3646
|
{
|
|
3486
3647
|
open: mobileOpen,
|
|
@@ -3490,8 +3651,8 @@ function SiteHeader({
|
|
|
3490
3651
|
size: "sm",
|
|
3491
3652
|
animate: true,
|
|
3492
3653
|
children: [
|
|
3493
|
-
/* @__PURE__ */ (0,
|
|
3494
|
-
(mobileActions ?? actions) && /* @__PURE__ */ (0,
|
|
3654
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("nav", { id: menuId, "aria-label": mobileNavLabel, className: "flex flex-col gap-1", children: items.map((item) => navLink(item, "mobile")) }),
|
|
3655
|
+
(mobileActions ?? actions) && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "mt-4 border-t border-border pt-4", children: mobileActions ?? actions })
|
|
3495
3656
|
]
|
|
3496
3657
|
}
|
|
3497
3658
|
)
|
|
@@ -3500,7 +3661,7 @@ function SiteHeader({
|
|
|
3500
3661
|
|
|
3501
3662
|
// src/components/accordion/Accordion.tsx
|
|
3502
3663
|
var React43 = __toESM(require("react"));
|
|
3503
|
-
var
|
|
3664
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3504
3665
|
var AccordionContext = React43.createContext({
|
|
3505
3666
|
openItems: /* @__PURE__ */ new Set(),
|
|
3506
3667
|
toggle: () => {
|
|
@@ -3515,6 +3676,7 @@ var Accordion = React43.forwardRef(
|
|
|
3515
3676
|
collapsible = true,
|
|
3516
3677
|
variant = "default",
|
|
3517
3678
|
gap,
|
|
3679
|
+
items,
|
|
3518
3680
|
className,
|
|
3519
3681
|
style,
|
|
3520
3682
|
children
|
|
@@ -3530,7 +3692,7 @@ var Accordion = React43.forwardRef(
|
|
|
3530
3692
|
[current, collapsible, value, onValueChange]
|
|
3531
3693
|
);
|
|
3532
3694
|
const gapResolved = resolveGap(gap);
|
|
3533
|
-
return /* @__PURE__ */ (0,
|
|
3695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3534
3696
|
"div",
|
|
3535
3697
|
{
|
|
3536
3698
|
ref,
|
|
@@ -3543,14 +3705,17 @@ var Accordion = React43.forwardRef(
|
|
|
3543
3705
|
className
|
|
3544
3706
|
),
|
|
3545
3707
|
style: { ...gapResolved.style, ...style },
|
|
3546
|
-
children: /* @__PURE__ */ (0,
|
|
3708
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AccordionContext.Provider, { value: { openItems: new Set(current), toggle, collapsible }, children: items ? items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(AccordionItem, { id: item.id, children: [
|
|
3709
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AccordionTrigger, { disabled: item.disabled, children: item.title }),
|
|
3710
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AccordionContent, { children: item.content })
|
|
3711
|
+
] }, item.id)) : children })
|
|
3547
3712
|
}
|
|
3548
3713
|
);
|
|
3549
3714
|
}
|
|
3550
3715
|
);
|
|
3551
3716
|
Accordion.displayName = "Accordion";
|
|
3552
3717
|
var AccordionItem = React43.forwardRef(
|
|
3553
|
-
({ id, className, children }, ref) => /* @__PURE__ */ (0,
|
|
3718
|
+
({ id, className, children }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { ref, "data-accordion-item": id, className, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AccordionItemContext.Provider, { value: { id }, children }) })
|
|
3554
3719
|
);
|
|
3555
3720
|
AccordionItem.displayName = "AccordionItem";
|
|
3556
3721
|
var AccordionItemContext = React43.createContext({ id: "" });
|
|
@@ -3561,7 +3726,7 @@ var AccordionTrigger = React43.forwardRef(
|
|
|
3561
3726
|
const open = openItems.has(id);
|
|
3562
3727
|
const panelId = `${id}-panel`;
|
|
3563
3728
|
const triggerId = `${id}-trigger`;
|
|
3564
|
-
return /* @__PURE__ */ (0,
|
|
3729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
3565
3730
|
"button",
|
|
3566
3731
|
{
|
|
3567
3732
|
ref,
|
|
@@ -3580,7 +3745,7 @@ var AccordionTrigger = React43.forwardRef(
|
|
|
3580
3745
|
...props,
|
|
3581
3746
|
children: [
|
|
3582
3747
|
children,
|
|
3583
|
-
icon ?? /* @__PURE__ */ (0,
|
|
3748
|
+
icon ?? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3584
3749
|
"svg",
|
|
3585
3750
|
{
|
|
3586
3751
|
"aria-hidden": "true",
|
|
@@ -3590,7 +3755,7 @@ var AccordionTrigger = React43.forwardRef(
|
|
|
3590
3755
|
strokeWidth: "2",
|
|
3591
3756
|
strokeLinecap: "round",
|
|
3592
3757
|
className: cn("h-4 w-4 shrink-0 transition-transform duration-200", open && "rotate-180"),
|
|
3593
|
-
children: /* @__PURE__ */ (0,
|
|
3758
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("polyline", { points: "6 9 12 15 18 9" })
|
|
3594
3759
|
}
|
|
3595
3760
|
)
|
|
3596
3761
|
]
|
|
@@ -3624,7 +3789,7 @@ var AccordionContent = React43.forwardRef(
|
|
|
3624
3789
|
cancelAnimationFrame(second);
|
|
3625
3790
|
};
|
|
3626
3791
|
}, [open]);
|
|
3627
|
-
return /* @__PURE__ */ (0,
|
|
3792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3628
3793
|
"div",
|
|
3629
3794
|
{
|
|
3630
3795
|
ref,
|
|
@@ -3643,7 +3808,7 @@ var AccordionContent = React43.forwardRef(
|
|
|
3643
3808
|
className
|
|
3644
3809
|
),
|
|
3645
3810
|
...props,
|
|
3646
|
-
children: /* @__PURE__ */ (0,
|
|
3811
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "px-4 pb-3 text-sm text-muted-foreground", children }) })
|
|
3647
3812
|
}
|
|
3648
3813
|
);
|
|
3649
3814
|
}
|
|
@@ -3652,9 +3817,9 @@ AccordionContent.displayName = "AccordionContent";
|
|
|
3652
3817
|
|
|
3653
3818
|
// src/components/table/Table.tsx
|
|
3654
3819
|
var React44 = __toESM(require("react"));
|
|
3655
|
-
var
|
|
3820
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3656
3821
|
var Table = React44.forwardRef(
|
|
3657
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3822
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3658
3823
|
"table",
|
|
3659
3824
|
{
|
|
3660
3825
|
ref,
|
|
@@ -3665,15 +3830,15 @@ var Table = React44.forwardRef(
|
|
|
3665
3830
|
);
|
|
3666
3831
|
Table.displayName = "Table";
|
|
3667
3832
|
var TableHeader = React44.forwardRef(
|
|
3668
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3833
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props })
|
|
3669
3834
|
);
|
|
3670
3835
|
TableHeader.displayName = "TableHeader";
|
|
3671
3836
|
var TableBody = React44.forwardRef(
|
|
3672
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3837
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props })
|
|
3673
3838
|
);
|
|
3674
3839
|
TableBody.displayName = "TableBody";
|
|
3675
3840
|
var TableFooter = React44.forwardRef(
|
|
3676
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3841
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3677
3842
|
"tfoot",
|
|
3678
3843
|
{
|
|
3679
3844
|
ref,
|
|
@@ -3684,7 +3849,7 @@ var TableFooter = React44.forwardRef(
|
|
|
3684
3849
|
);
|
|
3685
3850
|
TableFooter.displayName = "TableFooter";
|
|
3686
3851
|
var TableRow = React44.forwardRef(
|
|
3687
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3852
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3688
3853
|
"tr",
|
|
3689
3854
|
{
|
|
3690
3855
|
ref,
|
|
@@ -3698,7 +3863,7 @@ var TableRow = React44.forwardRef(
|
|
|
3698
3863
|
);
|
|
3699
3864
|
TableRow.displayName = "TableRow";
|
|
3700
3865
|
var TableHead = React44.forwardRef(
|
|
3701
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3866
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3702
3867
|
"th",
|
|
3703
3868
|
{
|
|
3704
3869
|
ref,
|
|
@@ -3713,11 +3878,11 @@ var TableHead = React44.forwardRef(
|
|
|
3713
3878
|
);
|
|
3714
3879
|
TableHead.displayName = "TableHead";
|
|
3715
3880
|
var TableCell = React44.forwardRef(
|
|
3716
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3881
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("td", { ref, className: cn("px-3 py-2 align-middle", className), ...props })
|
|
3717
3882
|
);
|
|
3718
3883
|
TableCell.displayName = "TableCell";
|
|
3719
3884
|
var TableCaption = React44.forwardRef(
|
|
3720
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3885
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("caption", { ref, className: cn("mt-3 text-xs text-muted-foreground", className), ...props })
|
|
3721
3886
|
);
|
|
3722
3887
|
TableCaption.displayName = "TableCaption";
|
|
3723
3888
|
|
|
@@ -3726,7 +3891,7 @@ var React46 = __toESM(require("react"));
|
|
|
3726
3891
|
|
|
3727
3892
|
// src/components/pagination/Pagination.tsx
|
|
3728
3893
|
var React45 = __toESM(require("react"));
|
|
3729
|
-
var
|
|
3894
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3730
3895
|
var controlClass = "inline-flex h-8 items-center rounded-md border border-border px-2.5 text-sm transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50";
|
|
3731
3896
|
var controlDisabledClass = "pointer-events-none opacity-50";
|
|
3732
3897
|
var pageClass = "inline-flex h-8 w-8 items-center justify-center rounded-md border text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";
|
|
@@ -3779,11 +3944,11 @@ var Pagination = React45.forwardRef(
|
|
|
3779
3944
|
if (linkMode) {
|
|
3780
3945
|
const href = hrefFor(target);
|
|
3781
3946
|
if (disabled || href === void 0) {
|
|
3782
|
-
return /* @__PURE__ */ (0,
|
|
3947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { "aria-label": label, "aria-disabled": "true", className: cn(controlClass, controlDisabledClass), children: content });
|
|
3783
3948
|
}
|
|
3784
|
-
return /* @__PURE__ */ (0,
|
|
3949
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(LinkEl, { ...destination(href), "aria-label": label, className: controlClass, children: content });
|
|
3785
3950
|
}
|
|
3786
|
-
return /* @__PURE__ */ (0,
|
|
3951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3787
3952
|
"button",
|
|
3788
3953
|
{
|
|
3789
3954
|
type: "button",
|
|
@@ -3802,11 +3967,11 @@ var Pagination = React45.forwardRef(
|
|
|
3802
3967
|
if (linkMode) {
|
|
3803
3968
|
const href = hrefFor(entry);
|
|
3804
3969
|
if (isCurrent || href === void 0) {
|
|
3805
|
-
return /* @__PURE__ */ (0,
|
|
3970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { "aria-current": "page", "aria-label": label, className: classes, children: entry }, entry);
|
|
3806
3971
|
}
|
|
3807
|
-
return /* @__PURE__ */ (0,
|
|
3972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(LinkEl, { ...destination(href), "aria-label": label, className: classes, children: entry }, entry);
|
|
3808
3973
|
}
|
|
3809
|
-
return /* @__PURE__ */ (0,
|
|
3974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3810
3975
|
"button",
|
|
3811
3976
|
{
|
|
3812
3977
|
type: "button",
|
|
@@ -3819,7 +3984,7 @@ var Pagination = React45.forwardRef(
|
|
|
3819
3984
|
entry
|
|
3820
3985
|
);
|
|
3821
3986
|
};
|
|
3822
|
-
const nav = /* @__PURE__ */ (0,
|
|
3987
|
+
const nav = /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
3823
3988
|
"nav",
|
|
3824
3989
|
{
|
|
3825
3990
|
ref,
|
|
@@ -3830,7 +3995,7 @@ var Pagination = React45.forwardRef(
|
|
|
3830
3995
|
withFirst && step(1, labels?.first ?? "First page", icons?.first ?? "\xAB", page <= 1),
|
|
3831
3996
|
step(page - 1, labels?.previous ?? "Previous page", icons?.previous ?? "<", page <= 1),
|
|
3832
3997
|
pages.map(
|
|
3833
|
-
(entry, index) => entry === "ellipsis" ? /* @__PURE__ */ (0,
|
|
3998
|
+
(entry, index) => entry === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3834
3999
|
"span",
|
|
3835
4000
|
{
|
|
3836
4001
|
"aria-hidden": "true",
|
|
@@ -3846,8 +4011,8 @@ var Pagination = React45.forwardRef(
|
|
|
3846
4011
|
}
|
|
3847
4012
|
);
|
|
3848
4013
|
if (!summaryEnabled) return nav;
|
|
3849
|
-
return /* @__PURE__ */ (0,
|
|
3850
|
-
/* @__PURE__ */ (0,
|
|
4014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: cn("flex flex-wrap items-center justify-between gap-3", className), children: [
|
|
4015
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-sm text-muted-foreground", children: rangeStart !== void 0 && rangeEnd !== void 0 && total !== void 0 ? `Showing ${rangeStart}\u2013${rangeEnd} of ${total} ${itemLabel}` : `Page ${page} of ${pageCount}` }),
|
|
3851
4016
|
nav
|
|
3852
4017
|
] });
|
|
3853
4018
|
}
|
|
@@ -3855,7 +4020,7 @@ var Pagination = React45.forwardRef(
|
|
|
3855
4020
|
Pagination.displayName = "Pagination";
|
|
3856
4021
|
|
|
3857
4022
|
// src/components/data-table/DataTable.tsx
|
|
3858
|
-
var
|
|
4023
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3859
4024
|
function compareValues(a, b) {
|
|
3860
4025
|
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
3861
4026
|
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
@@ -3963,22 +4128,22 @@ function DataTable({
|
|
|
3963
4128
|
return String(raw);
|
|
3964
4129
|
};
|
|
3965
4130
|
const alignClass = (align) => align === "right" ? "text-right" : align === "center" ? "text-center" : "text-left";
|
|
3966
|
-
return /* @__PURE__ */ (0,
|
|
3967
|
-
selectionEnabled && selectedIds.length > 0 && bulkActions && /* @__PURE__ */ (0,
|
|
3968
|
-
/* @__PURE__ */ (0,
|
|
4131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: cn("w-full space-y-3", className), children: [
|
|
4132
|
+
selectionEnabled && selectedIds.length > 0 && bulkActions && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-2 rounded-lg border border-border bg-muted/40 px-3 py-2 text-sm", children: [
|
|
4133
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("span", { className: "font-medium", children: [
|
|
3969
4134
|
selectedIds.length,
|
|
3970
4135
|
" selected"
|
|
3971
4136
|
] }),
|
|
3972
|
-
/* @__PURE__ */ (0,
|
|
4137
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex flex-wrap items-center gap-2", children: bulkActions })
|
|
3973
4138
|
] }),
|
|
3974
|
-
/* @__PURE__ */ (0,
|
|
4139
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "w-full overflow-x-auto rounded-lg border border-border", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
3975
4140
|
"table",
|
|
3976
4141
|
{
|
|
3977
4142
|
className: cn("w-full caption-bottom", density === "compact" ? "text-xs" : "text-sm"),
|
|
3978
4143
|
children: [
|
|
3979
|
-
caption && /* @__PURE__ */ (0,
|
|
3980
|
-
/* @__PURE__ */ (0,
|
|
3981
|
-
selectionEnabled && /* @__PURE__ */ (0,
|
|
4144
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("caption", { className: "px-3 py-2 text-left text-xs text-muted-foreground", children: caption }),
|
|
4145
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("thead", { className: cn("bg-muted/50", stickyHeader && "sticky top-0 z-10 bg-background"), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("tr", { children: [
|
|
4146
|
+
selectionEnabled && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("th", { scope: "col", className: "w-10 border-b border-border px-3 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3982
4147
|
Checkbox,
|
|
3983
4148
|
{
|
|
3984
4149
|
"aria-label": selectAllLabel,
|
|
@@ -3992,7 +4157,7 @@ function DataTable({
|
|
|
3992
4157
|
columns.map((column) => {
|
|
3993
4158
|
const isSorted = sort?.key === column.key;
|
|
3994
4159
|
const ariaSort = !column.sortable ? void 0 : isSorted ? sort.dir === "asc" ? "ascending" : "descending" : "none";
|
|
3995
|
-
return /* @__PURE__ */ (0,
|
|
4160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3996
4161
|
"th",
|
|
3997
4162
|
{
|
|
3998
4163
|
scope: "col",
|
|
@@ -4002,7 +4167,7 @@ function DataTable({
|
|
|
4002
4167
|
alignClass(column.align),
|
|
4003
4168
|
column.className
|
|
4004
4169
|
),
|
|
4005
|
-
children: column.sortable ? /* @__PURE__ */ (0,
|
|
4170
|
+
children: column.sortable ? /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4006
4171
|
"button",
|
|
4007
4172
|
{
|
|
4008
4173
|
type: "button",
|
|
@@ -4010,7 +4175,7 @@ function DataTable({
|
|
|
4010
4175
|
className: "inline-flex items-center gap-1 rounded px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4011
4176
|
children: [
|
|
4012
4177
|
column.header,
|
|
4013
|
-
/* @__PURE__ */ (0,
|
|
4178
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { "aria-hidden": "true", className: "text-[10px] text-muted-foreground", children: renderSortIcon ? renderSortIcon(isSorted ? sort.dir === "asc" ? "asc" : "desc" : "none") : isSorted ? sort.dir === "asc" ? "\u25B2" : "\u25BC" : "\u2195" })
|
|
4014
4179
|
]
|
|
4015
4180
|
}
|
|
4016
4181
|
) : column.header
|
|
@@ -4019,20 +4184,20 @@ function DataTable({
|
|
|
4019
4184
|
);
|
|
4020
4185
|
})
|
|
4021
4186
|
] }) }),
|
|
4022
|
-
/* @__PURE__ */ (0,
|
|
4187
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("tbody", { "aria-busy": loading || void 0, children: loading ? Array.from(
|
|
4023
4188
|
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
4024
|
-
(_, skeletonRow) => /* @__PURE__ */ (0,
|
|
4025
|
-
selectionEnabled && /* @__PURE__ */ (0,
|
|
4026
|
-
columns.map((column) => /* @__PURE__ */ (0,
|
|
4189
|
+
(_, skeletonRow) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("tr", { children: [
|
|
4190
|
+
selectionEnabled && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Skeleton, { className: "h-4 w-4" }) }),
|
|
4191
|
+
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Skeleton, { className: density === "compact" ? "h-3 w-full" : "h-4 w-full" }) }, column.key))
|
|
4027
4192
|
] }, `skeleton-${skeletonRow}`)
|
|
4028
|
-
) : visible.length === 0 ? /* @__PURE__ */ (0,
|
|
4193
|
+
) : visible.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4029
4194
|
"td",
|
|
4030
4195
|
{
|
|
4031
4196
|
colSpan: columns.length + (selectionEnabled ? 1 : 0),
|
|
4032
4197
|
className: "px-3 py-8 text-center text-sm text-muted-foreground",
|
|
4033
4198
|
children: emptyMessage
|
|
4034
4199
|
}
|
|
4035
|
-
) }) : visible.map((row, index) => /* @__PURE__ */ (0,
|
|
4200
|
+
) }) : visible.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4036
4201
|
"tr",
|
|
4037
4202
|
{
|
|
4038
4203
|
tabIndex: onRowClick ? 0 : void 0,
|
|
@@ -4049,12 +4214,12 @@ function DataTable({
|
|
|
4049
4214
|
onRowClick && "cursor-pointer transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring"
|
|
4050
4215
|
),
|
|
4051
4216
|
children: [
|
|
4052
|
-
selectionEnabled && /* @__PURE__ */ (0,
|
|
4217
|
+
selectionEnabled && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4053
4218
|
"td",
|
|
4054
4219
|
{
|
|
4055
4220
|
className: cn("align-middle", density === "compact" ? "px-2 py-1" : "px-3 py-2"),
|
|
4056
4221
|
onClick: (event) => event.stopPropagation(),
|
|
4057
|
-
children: /* @__PURE__ */ (0,
|
|
4222
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4058
4223
|
Checkbox,
|
|
4059
4224
|
{
|
|
4060
4225
|
"aria-label": `Select row ${rowId(row)}`,
|
|
@@ -4065,7 +4230,7 @@ function DataTable({
|
|
|
4065
4230
|
)
|
|
4066
4231
|
}
|
|
4067
4232
|
),
|
|
4068
|
-
columns.map((column) => /* @__PURE__ */ (0,
|
|
4233
|
+
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4069
4234
|
"td",
|
|
4070
4235
|
{
|
|
4071
4236
|
className: cn(
|
|
@@ -4074,7 +4239,7 @@ function DataTable({
|
|
|
4074
4239
|
alignClass(column.align),
|
|
4075
4240
|
column.className
|
|
4076
4241
|
),
|
|
4077
|
-
children: column.onClick ? /* @__PURE__ */ (0,
|
|
4242
|
+
children: column.onClick ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4078
4243
|
"button",
|
|
4079
4244
|
{
|
|
4080
4245
|
type: "button",
|
|
@@ -4093,8 +4258,8 @@ function DataTable({
|
|
|
4093
4258
|
]
|
|
4094
4259
|
}
|
|
4095
4260
|
) }),
|
|
4096
|
-
pageSize && pageCount > 1 && /* @__PURE__ */ (0,
|
|
4097
|
-
/* @__PURE__ */ (0,
|
|
4261
|
+
pageSize && pageCount > 1 && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-x-4 gap-y-2", children: [
|
|
4262
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4098
4263
|
"p",
|
|
4099
4264
|
{
|
|
4100
4265
|
className: "min-h-8 leading-none text-xs text-muted-foreground",
|
|
@@ -4109,16 +4274,16 @@ function DataTable({
|
|
|
4109
4274
|
]
|
|
4110
4275
|
}
|
|
4111
4276
|
),
|
|
4112
|
-
/* @__PURE__ */ (0,
|
|
4277
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Pagination, { page: safePage, pageCount, onPageChange: setPage })
|
|
4113
4278
|
] })
|
|
4114
4279
|
] });
|
|
4115
4280
|
}
|
|
4116
4281
|
|
|
4117
4282
|
// src/components/list/List.tsx
|
|
4118
4283
|
var React47 = __toESM(require("react"));
|
|
4119
|
-
var
|
|
4284
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4120
4285
|
var List = React47.forwardRef(
|
|
4121
|
-
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4286
|
+
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4122
4287
|
"ul",
|
|
4123
4288
|
{
|
|
4124
4289
|
ref,
|
|
@@ -4144,15 +4309,15 @@ var ListItem = React47.forwardRef(
|
|
|
4144
4309
|
disabled && "opacity-50",
|
|
4145
4310
|
className
|
|
4146
4311
|
);
|
|
4147
|
-
const body = /* @__PURE__ */ (0,
|
|
4148
|
-
leading && /* @__PURE__ */ (0,
|
|
4149
|
-
/* @__PURE__ */ (0,
|
|
4150
|
-
/* @__PURE__ */ (0,
|
|
4151
|
-
description && /* @__PURE__ */ (0,
|
|
4312
|
+
const body = /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
4313
|
+
leading && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "flex shrink-0 items-center", children: leading }),
|
|
4314
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { className: "min-w-0 flex-1", children: [
|
|
4315
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "block truncate", children }),
|
|
4316
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: description })
|
|
4152
4317
|
] }),
|
|
4153
|
-
trailing && /* @__PURE__ */ (0,
|
|
4318
|
+
trailing && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "flex shrink-0 items-center text-xs text-muted-foreground", children: trailing })
|
|
4154
4319
|
] });
|
|
4155
|
-
return /* @__PURE__ */ (0,
|
|
4320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("li", { ref, ...props, children: onClick ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("button", { type: "button", onClick, disabled, className: cn(padding, rowClass), children: body }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: cn(padding, rowClass), children: body }) });
|
|
4156
4321
|
}
|
|
4157
4322
|
);
|
|
4158
4323
|
ListItem.displayName = "ListItem";
|
|
@@ -4161,7 +4326,7 @@ ListItem.displayName = "ListItem";
|
|
|
4161
4326
|
var React48 = __toESM(require("react"));
|
|
4162
4327
|
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
4163
4328
|
var import_class_variance_authority7 = require("class-variance-authority");
|
|
4164
|
-
var
|
|
4329
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4165
4330
|
var linkVariants = (0, import_class_variance_authority7.cva)("inline-flex items-center gap-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background rounded-sm", {
|
|
4166
4331
|
variants: {
|
|
4167
4332
|
variant: {
|
|
@@ -4180,7 +4345,7 @@ var Link = React48.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4180
4345
|
const isExternal = external ?? isAbsolute;
|
|
4181
4346
|
const Comp = asChild ? import_react_slot4.Slot : "a";
|
|
4182
4347
|
if (asChild) {
|
|
4183
|
-
return /* @__PURE__ */ (0,
|
|
4348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4184
4349
|
Comp,
|
|
4185
4350
|
{
|
|
4186
4351
|
ref,
|
|
@@ -4192,7 +4357,7 @@ var Link = React48.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4192
4357
|
}
|
|
4193
4358
|
);
|
|
4194
4359
|
}
|
|
4195
|
-
return /* @__PURE__ */ (0,
|
|
4360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
4196
4361
|
Comp,
|
|
4197
4362
|
{
|
|
4198
4363
|
ref,
|
|
@@ -4202,9 +4367,9 @@ var Link = React48.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4202
4367
|
...props,
|
|
4203
4368
|
children: [
|
|
4204
4369
|
children,
|
|
4205
|
-
isExternal && variant !== "muted" && /* @__PURE__ */ (0,
|
|
4206
|
-
/* @__PURE__ */ (0,
|
|
4207
|
-
/* @__PURE__ */ (0,
|
|
4370
|
+
isExternal && variant !== "muted" && /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
|
|
4371
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { "aria-hidden": "true", className: "text-[0.75em]", children: "\u2197" }),
|
|
4372
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "sr-only", children: "(opens in a new tab)" })
|
|
4208
4373
|
] })
|
|
4209
4374
|
]
|
|
4210
4375
|
}
|
|
@@ -4213,7 +4378,7 @@ var Link = React48.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4213
4378
|
|
|
4214
4379
|
// src/components/text/Text.tsx
|
|
4215
4380
|
var React49 = __toESM(require("react"));
|
|
4216
|
-
var
|
|
4381
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4217
4382
|
var sizeClasses4 = {
|
|
4218
4383
|
xs: "text-xs",
|
|
4219
4384
|
sm: "text-sm",
|
|
@@ -4230,7 +4395,7 @@ var weightClasses = {
|
|
|
4230
4395
|
var Text = React49.forwardRef(
|
|
4231
4396
|
({ inline, size = "base", weight, muted, className, ...props }, ref) => {
|
|
4232
4397
|
const Tag = inline ? "span" : "p";
|
|
4233
|
-
return /* @__PURE__ */ (0,
|
|
4398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
4234
4399
|
Tag,
|
|
4235
4400
|
{
|
|
4236
4401
|
ref,
|
|
@@ -4250,7 +4415,7 @@ Text.displayName = "Text";
|
|
|
4250
4415
|
|
|
4251
4416
|
// src/components/heading/Heading.tsx
|
|
4252
4417
|
var React50 = __toESM(require("react"));
|
|
4253
|
-
var
|
|
4418
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4254
4419
|
var levelClasses = {
|
|
4255
4420
|
1: "text-4xl",
|
|
4256
4421
|
2: "text-3xl",
|
|
@@ -4270,7 +4435,7 @@ var sizeClasses5 = {
|
|
|
4270
4435
|
var Heading = React50.forwardRef(
|
|
4271
4436
|
({ level, size, muted, className, ...props }, ref) => {
|
|
4272
4437
|
const Tag = `h${level}`;
|
|
4273
|
-
return /* @__PURE__ */ (0,
|
|
4438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4274
4439
|
Tag,
|
|
4275
4440
|
{
|
|
4276
4441
|
ref,
|
|
@@ -4289,7 +4454,18 @@ Heading.displayName = "Heading";
|
|
|
4289
4454
|
|
|
4290
4455
|
// src/components/empty-state/EmptyState.tsx
|
|
4291
4456
|
var React51 = __toESM(require("react"));
|
|
4292
|
-
var
|
|
4457
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4458
|
+
function isActionObject(value) {
|
|
4459
|
+
return typeof value === "object" && value !== null && !React51.isValidElement(value) && "label" in value;
|
|
4460
|
+
}
|
|
4461
|
+
function renderAction(action) {
|
|
4462
|
+
if (!isActionObject(action)) return action;
|
|
4463
|
+
const { label, onClick, href, variant } = action;
|
|
4464
|
+
if (href) {
|
|
4465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Button, { variant, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("a", { href, children: label }) });
|
|
4466
|
+
}
|
|
4467
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Button, { variant, onClick, children: label });
|
|
4468
|
+
}
|
|
4293
4469
|
var EmptyState = React51.forwardRef(function EmptyState2({
|
|
4294
4470
|
icon,
|
|
4295
4471
|
title,
|
|
@@ -4303,8 +4479,8 @@ var EmptyState = React51.forwardRef(function EmptyState2({
|
|
|
4303
4479
|
children,
|
|
4304
4480
|
...props
|
|
4305
4481
|
}, ref) {
|
|
4306
|
-
const primaryAction = action ?? actions;
|
|
4307
|
-
return /* @__PURE__ */ (0,
|
|
4482
|
+
const primaryAction = renderAction(action) ?? actions;
|
|
4483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
4308
4484
|
"div",
|
|
4309
4485
|
{
|
|
4310
4486
|
ref,
|
|
@@ -4315,11 +4491,11 @@ var EmptyState = React51.forwardRef(function EmptyState2({
|
|
|
4315
4491
|
),
|
|
4316
4492
|
...props,
|
|
4317
4493
|
children: [
|
|
4318
|
-
icon && /* @__PURE__ */ (0,
|
|
4319
|
-
/* @__PURE__ */ (0,
|
|
4320
|
-
description && /* @__PURE__ */ (0,
|
|
4494
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "text-muted-foreground [&_svg]:size-8", children: icon }),
|
|
4495
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Title, { className: cn("font-semibold", size === "md" ? "text-base" : "text-sm"), children: title }),
|
|
4496
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "max-w-sm text-sm text-muted-foreground", children: description }),
|
|
4321
4497
|
children,
|
|
4322
|
-
(primaryAction || secondaryAction) && /* @__PURE__ */ (0,
|
|
4498
|
+
(primaryAction || secondaryAction) && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "mt-1 flex flex-wrap items-center justify-center gap-2", children: [
|
|
4323
4499
|
primaryAction,
|
|
4324
4500
|
secondaryAction
|
|
4325
4501
|
] })
|
|
@@ -4330,25 +4506,26 @@ var EmptyState = React51.forwardRef(function EmptyState2({
|
|
|
4330
4506
|
|
|
4331
4507
|
// src/components/page-header/PageHeader.tsx
|
|
4332
4508
|
var React52 = __toESM(require("react"));
|
|
4333
|
-
var
|
|
4509
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4334
4510
|
var sizeClasses6 = {
|
|
4335
4511
|
sm: "text-xl",
|
|
4336
4512
|
md: "text-2xl",
|
|
4337
4513
|
lg: "text-3xl",
|
|
4338
4514
|
hero: "text-4xl sm:text-5xl lg:text-[3.4rem] lg:leading-[1.1]"
|
|
4339
4515
|
};
|
|
4340
|
-
var PageHeader = React52.forwardRef(function PageHeader2({ title, description, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
/* @__PURE__ */ (0,
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4516
|
+
var PageHeader = React52.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
4517
|
+
const supporting = description ?? subtitle;
|
|
4518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { ref, className: cn("flex flex-col gap-2", align === "center" && "items-center text-center", className), ...props, children: [
|
|
4519
|
+
breadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "text-sm text-muted-foreground", children: breadcrumbs }),
|
|
4520
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: cn("text-xs font-medium uppercase tracking-wide text-primary", eyebrowClassName), children: eyebrow }),
|
|
4521
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: cn("flex w-full flex-wrap items-start justify-between gap-3", align === "center" && "justify-center"), children: [
|
|
4522
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4523
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("h1", { className: cn("font-semibold tracking-tight", sizeClasses6[size], titleClassName), children: title }),
|
|
4524
|
+
supporting && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: cn("mt-2 max-w-2xl text-base text-muted-foreground", descriptionClassName), children: supporting })
|
|
4348
4525
|
] }),
|
|
4349
|
-
actions && /* @__PURE__ */ (0,
|
|
4526
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
4350
4527
|
] }),
|
|
4351
|
-
children && /* @__PURE__ */ (0,
|
|
4528
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mt-2", children })
|
|
4352
4529
|
] });
|
|
4353
4530
|
});
|
|
4354
4531
|
|
|
@@ -4369,7 +4546,7 @@ function documentHead({
|
|
|
4369
4546
|
|
|
4370
4547
|
// src/components/section-heading/SectionHeading.tsx
|
|
4371
4548
|
var React53 = __toESM(require("react"));
|
|
4372
|
-
var
|
|
4549
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4373
4550
|
var sizeClasses7 = {
|
|
4374
4551
|
sm: "text-lg",
|
|
4375
4552
|
md: "text-2xl",
|
|
@@ -4377,7 +4554,7 @@ var sizeClasses7 = {
|
|
|
4377
4554
|
};
|
|
4378
4555
|
var SectionHeading = React53.forwardRef(function SectionHeading2({ title, description, eyebrow, actions, level = 2, align = "left", size = "md", titleClassName, descriptionClassName, eyebrowClassName, className, ...props }, ref) {
|
|
4379
4556
|
const Heading2 = `h${level}`;
|
|
4380
|
-
return /* @__PURE__ */ (0,
|
|
4557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
4381
4558
|
"div",
|
|
4382
4559
|
{
|
|
4383
4560
|
ref,
|
|
@@ -4388,12 +4565,12 @@ var SectionHeading = React53.forwardRef(function SectionHeading2({ title, descri
|
|
|
4388
4565
|
),
|
|
4389
4566
|
...props,
|
|
4390
4567
|
children: [
|
|
4391
|
-
/* @__PURE__ */ (0,
|
|
4392
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
4393
|
-
/* @__PURE__ */ (0,
|
|
4394
|
-
description && /* @__PURE__ */ (0,
|
|
4568
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4569
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: cn("mb-1 text-xs font-medium uppercase tracking-wide text-primary", eyebrowClassName), children: eyebrow }),
|
|
4570
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Heading2, { className: cn("font-semibold tracking-tight", sizeClasses7[size], titleClassName), children: title }),
|
|
4571
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: cn("mt-2 max-w-2xl text-muted-foreground", align === "center" ? "mx-auto" : "", descriptionClassName), children: description })
|
|
4395
4572
|
] }),
|
|
4396
|
-
actions && /* @__PURE__ */ (0,
|
|
4573
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
4397
4574
|
]
|
|
4398
4575
|
}
|
|
4399
4576
|
);
|
|
@@ -4401,39 +4578,66 @@ var SectionHeading = React53.forwardRef(function SectionHeading2({ title, descri
|
|
|
4401
4578
|
|
|
4402
4579
|
// src/components/metric-card/MetricCard.tsx
|
|
4403
4580
|
var React54 = __toESM(require("react"));
|
|
4404
|
-
var
|
|
4581
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4405
4582
|
var trendClasses = {
|
|
4406
4583
|
up: "text-success",
|
|
4407
4584
|
down: "text-destructive",
|
|
4408
4585
|
flat: "text-muted-foreground"
|
|
4409
4586
|
};
|
|
4587
|
+
var toneClasses = {
|
|
4588
|
+
default: "",
|
|
4589
|
+
success: "text-success",
|
|
4590
|
+
warning: "text-warning-ink",
|
|
4591
|
+
destructive: "text-destructive"
|
|
4592
|
+
};
|
|
4410
4593
|
var trendGlyph = { up: "\u2191", down: "\u2193", flat: "\u2192" };
|
|
4411
|
-
var MetricCard = React54.forwardRef(function MetricCard2({ label, value, hint, delta, trend = "flat", icon, className, ...props }, ref) {
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4594
|
+
var MetricCard = React54.forwardRef(function MetricCard2({ label, value, hint, title, description, delta, trend = "flat", tone = "default", loading = false, icon, className, ...props }, ref) {
|
|
4595
|
+
const heading = label ?? title;
|
|
4596
|
+
const supporting = hint ?? description;
|
|
4597
|
+
if (loading) {
|
|
4598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
4599
|
+
"div",
|
|
4600
|
+
{
|
|
4601
|
+
ref,
|
|
4602
|
+
"aria-busy": "true",
|
|
4603
|
+
className: cn("rounded-xl border border-border bg-card p-5", className),
|
|
4604
|
+
...props,
|
|
4605
|
+
children: [
|
|
4606
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4607
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
4608
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4609
|
+
] }),
|
|
4610
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { "aria-hidden": "true", className: "mt-3 block h-7 w-24 animate-pulse rounded-md bg-muted" }),
|
|
4611
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "sr-only", children: "Loading" })
|
|
4612
|
+
]
|
|
4613
|
+
}
|
|
4614
|
+
);
|
|
4615
|
+
}
|
|
4616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { ref, className: cn("rounded-xl border border-border bg-card p-5", className), ...props, children: [
|
|
4617
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4618
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
4619
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4416
4620
|
] }),
|
|
4417
|
-
/* @__PURE__ */ (0,
|
|
4418
|
-
(delta ||
|
|
4419
|
-
delta && /* @__PURE__ */ (0,
|
|
4420
|
-
/* @__PURE__ */ (0,
|
|
4621
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: cn("mt-2 text-2xl font-semibold tabular-nums", toneClasses[tone]), children: value }),
|
|
4622
|
+
(delta || supporting) && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("p", { className: "mt-1 flex items-center gap-2 text-sm", children: [
|
|
4623
|
+
delta && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("span", { className: cn("font-medium tabular-nums", trendClasses[trend]), children: [
|
|
4624
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { "aria-hidden": "true", children: trendGlyph[trend] }),
|
|
4421
4625
|
" ",
|
|
4422
4626
|
delta
|
|
4423
4627
|
] }),
|
|
4424
|
-
|
|
4628
|
+
supporting && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-muted-foreground", children: supporting })
|
|
4425
4629
|
] })
|
|
4426
4630
|
] });
|
|
4427
4631
|
});
|
|
4428
4632
|
|
|
4429
4633
|
// src/components/password-input/PasswordInput.tsx
|
|
4430
4634
|
var React55 = __toESM(require("react"));
|
|
4431
|
-
var
|
|
4635
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4432
4636
|
var PasswordInput = React55.forwardRef(function PasswordInput2({ className, showLabel = "Show password", hideLabel = "Hide password", ...props }, ref) {
|
|
4433
4637
|
const [visible, setVisible] = React55.useState(false);
|
|
4434
|
-
return /* @__PURE__ */ (0,
|
|
4435
|
-
/* @__PURE__ */ (0,
|
|
4436
|
-
/* @__PURE__ */ (0,
|
|
4638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: cn("relative flex items-center", className), children: [
|
|
4639
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Input, { ref, type: visible ? "text" : "password", className: "pr-24", ...props }),
|
|
4640
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
4437
4641
|
Button,
|
|
4438
4642
|
{
|
|
4439
4643
|
type: "button",
|
|
@@ -4451,7 +4655,7 @@ var PasswordInput = React55.forwardRef(function PasswordInput2({ className, show
|
|
|
4451
4655
|
|
|
4452
4656
|
// src/components/auth-layout/AuthLayout.tsx
|
|
4453
4657
|
var React56 = __toESM(require("react"));
|
|
4454
|
-
var
|
|
4658
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4455
4659
|
var sizeClasses8 = {
|
|
4456
4660
|
sm: "max-w-sm",
|
|
4457
4661
|
md: "max-w-md",
|
|
@@ -4460,58 +4664,66 @@ var sizeClasses8 = {
|
|
|
4460
4664
|
var AuthLayout = React56.forwardRef(function AuthLayout2({
|
|
4461
4665
|
title,
|
|
4462
4666
|
description,
|
|
4667
|
+
subtitle,
|
|
4463
4668
|
brand,
|
|
4669
|
+
logo,
|
|
4464
4670
|
footer,
|
|
4465
4671
|
children,
|
|
4466
4672
|
size = "md",
|
|
4467
4673
|
variant = "centered",
|
|
4468
4674
|
aside,
|
|
4675
|
+
maxWidth,
|
|
4469
4676
|
className,
|
|
4470
4677
|
...props
|
|
4471
4678
|
}, ref) {
|
|
4472
4679
|
const split = variant === "split" && aside != null;
|
|
4473
|
-
const
|
|
4680
|
+
const supporting = description ?? subtitle;
|
|
4681
|
+
const mark = brand ?? logo;
|
|
4682
|
+
const widthStyle = maxWidth === void 0 ? void 0 : { maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth };
|
|
4683
|
+
const form = /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
4474
4684
|
"div",
|
|
4475
4685
|
{
|
|
4476
4686
|
className: cn(
|
|
4477
4687
|
"flex w-full flex-col",
|
|
4478
4688
|
split ? sizeClasses8[size] : "items-center"
|
|
4479
4689
|
),
|
|
4690
|
+
style: widthStyle,
|
|
4480
4691
|
children: [
|
|
4481
|
-
|
|
4482
|
-
/* @__PURE__ */ (0,
|
|
4692
|
+
mark && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "mb-6", children: mark }),
|
|
4693
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
4483
4694
|
"div",
|
|
4484
4695
|
{
|
|
4485
4696
|
className: cn(
|
|
4486
4697
|
"w-full rounded-xl border border-border bg-card p-6 shadow-sm sm:p-8",
|
|
4487
4698
|
!split && sizeClasses8[size]
|
|
4488
4699
|
),
|
|
4700
|
+
style: widthStyle,
|
|
4489
4701
|
children: [
|
|
4490
|
-
/* @__PURE__ */ (0,
|
|
4491
|
-
|
|
4492
|
-
/* @__PURE__ */ (0,
|
|
4702
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h1", { className: "text-xl font-semibold tracking-tight", children: title }),
|
|
4703
|
+
supporting && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "mt-1 text-sm text-muted-foreground", children: supporting }),
|
|
4704
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "mt-6", children })
|
|
4493
4705
|
]
|
|
4494
4706
|
}
|
|
4495
4707
|
),
|
|
4496
|
-
footer && /* @__PURE__ */ (0,
|
|
4708
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "mt-6 text-center text-sm text-muted-foreground", children: footer })
|
|
4497
4709
|
]
|
|
4498
4710
|
}
|
|
4499
4711
|
);
|
|
4500
4712
|
if (split) {
|
|
4501
|
-
return /* @__PURE__ */ (0,
|
|
4713
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
4502
4714
|
"div",
|
|
4503
4715
|
{
|
|
4504
4716
|
ref,
|
|
4505
4717
|
className: cn("min-h-screen bg-muted/30 px-4 py-12 lg:px-8", className),
|
|
4506
4718
|
...props,
|
|
4507
|
-
children: /* @__PURE__ */ (0,
|
|
4719
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "mx-auto grid min-h-[calc(100vh-6rem)] w-full max-w-6xl items-center gap-10 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.1fr)]", children: [
|
|
4508
4720
|
form,
|
|
4509
|
-
/* @__PURE__ */ (0,
|
|
4721
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("aside", { className: "w-full", children: aside })
|
|
4510
4722
|
] })
|
|
4511
4723
|
}
|
|
4512
4724
|
);
|
|
4513
4725
|
}
|
|
4514
|
-
return /* @__PURE__ */ (0,
|
|
4726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
4515
4727
|
"div",
|
|
4516
4728
|
{
|
|
4517
4729
|
ref,
|
|
@@ -4527,7 +4739,7 @@ var AuthLayout = React56.forwardRef(function AuthLayout2({
|
|
|
4527
4739
|
|
|
4528
4740
|
// src/components/filter-bar/FilterBar.tsx
|
|
4529
4741
|
var React57 = __toESM(require("react"));
|
|
4530
|
-
var
|
|
4742
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4531
4743
|
var FilterBar = React57.forwardRef(function FilterBar2({
|
|
4532
4744
|
searchValue,
|
|
4533
4745
|
onSearchChange,
|
|
@@ -4543,7 +4755,7 @@ var FilterBar = React57.forwardRef(function FilterBar2({
|
|
|
4543
4755
|
children,
|
|
4544
4756
|
...props
|
|
4545
4757
|
}, ref) {
|
|
4546
|
-
return /* @__PURE__ */ (0,
|
|
4758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
4547
4759
|
"div",
|
|
4548
4760
|
{
|
|
4549
4761
|
ref,
|
|
@@ -4554,7 +4766,7 @@ var FilterBar = React57.forwardRef(function FilterBar2({
|
|
|
4554
4766
|
),
|
|
4555
4767
|
...props,
|
|
4556
4768
|
children: [
|
|
4557
|
-
onSearchChange !== void 0 && /* @__PURE__ */ (0,
|
|
4769
|
+
onSearchChange !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4558
4770
|
Input,
|
|
4559
4771
|
{
|
|
4560
4772
|
type: "search",
|
|
@@ -4565,21 +4777,21 @@ var FilterBar = React57.forwardRef(function FilterBar2({
|
|
|
4565
4777
|
className: "h-9 w-full min-w-40 flex-1 sm:w-auto"
|
|
4566
4778
|
}
|
|
4567
4779
|
),
|
|
4568
|
-
/* @__PURE__ */ (0,
|
|
4569
|
-
onOpenFilters && /* @__PURE__ */ (0,
|
|
4780
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex flex-wrap items-center gap-2", children }),
|
|
4781
|
+
onOpenFilters && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Button, { type: "button", variant: "outline", size: "sm", onClick: onOpenFilters, children: [
|
|
4570
4782
|
filtersLabel,
|
|
4571
4783
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
4572
4784
|
] }),
|
|
4573
|
-
onReset && /* @__PURE__ */ (0,
|
|
4785
|
+
onReset && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, children: [
|
|
4574
4786
|
"Reset",
|
|
4575
4787
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
4576
4788
|
] }),
|
|
4577
|
-
resultsCount !== void 0 && /* @__PURE__ */ (0,
|
|
4789
|
+
resultsCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { className: "ml-auto text-sm text-muted-foreground", children: [
|
|
4578
4790
|
resultsCount,
|
|
4579
4791
|
" ",
|
|
4580
4792
|
resultsLabel
|
|
4581
4793
|
] }),
|
|
4582
|
-
trailing && /* @__PURE__ */ (0,
|
|
4794
|
+
trailing && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: cn("flex items-center gap-2", resultsCount === void 0 && "ml-auto"), children: trailing })
|
|
4583
4795
|
]
|
|
4584
4796
|
}
|
|
4585
4797
|
);
|
|
@@ -4587,7 +4799,7 @@ var FilterBar = React57.forwardRef(function FilterBar2({
|
|
|
4587
4799
|
|
|
4588
4800
|
// src/components/date-picker/DatePicker.tsx
|
|
4589
4801
|
var React58 = __toESM(require("react"));
|
|
4590
|
-
var
|
|
4802
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4591
4803
|
var DatePicker = React58.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
4592
4804
|
const [internal, setInternal] = React58.useState(defaultValue ?? "");
|
|
4593
4805
|
const current = value ?? internal;
|
|
@@ -4595,8 +4807,8 @@ var DatePicker = React58.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
4595
4807
|
if (value === void 0) setInternal(next);
|
|
4596
4808
|
onValueChange?.(next);
|
|
4597
4809
|
};
|
|
4598
|
-
return /* @__PURE__ */ (0,
|
|
4599
|
-
/* @__PURE__ */ (0,
|
|
4810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: cn("relative flex items-center", className), children: [
|
|
4811
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4600
4812
|
Input,
|
|
4601
4813
|
{
|
|
4602
4814
|
ref,
|
|
@@ -4610,7 +4822,7 @@ var DatePicker = React58.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
4610
4822
|
...props
|
|
4611
4823
|
}
|
|
4612
4824
|
),
|
|
4613
|
-
clearable && current && /* @__PURE__ */ (0,
|
|
4825
|
+
clearable && current && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4614
4826
|
"button",
|
|
4615
4827
|
{
|
|
4616
4828
|
type: "button",
|
|
@@ -4625,7 +4837,7 @@ var DatePicker = React58.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
4625
4837
|
|
|
4626
4838
|
// src/components/time-picker/TimePicker.tsx
|
|
4627
4839
|
var React59 = __toESM(require("react"));
|
|
4628
|
-
var
|
|
4840
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4629
4841
|
var TimePicker = React59.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
4630
4842
|
const [internal, setInternal] = React59.useState(defaultValue ?? "");
|
|
4631
4843
|
const current = value ?? internal;
|
|
@@ -4633,8 +4845,8 @@ var TimePicker = React59.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
4633
4845
|
if (value === void 0) setInternal(next);
|
|
4634
4846
|
onValueChange?.(next);
|
|
4635
4847
|
};
|
|
4636
|
-
return /* @__PURE__ */ (0,
|
|
4637
|
-
/* @__PURE__ */ (0,
|
|
4848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: cn("relative flex items-center", className), children: [
|
|
4849
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4638
4850
|
Input,
|
|
4639
4851
|
{
|
|
4640
4852
|
ref,
|
|
@@ -4648,7 +4860,7 @@ var TimePicker = React59.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
4648
4860
|
...props
|
|
4649
4861
|
}
|
|
4650
4862
|
),
|
|
4651
|
-
clearable && current && /* @__PURE__ */ (0,
|
|
4863
|
+
clearable && current && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4652
4864
|
"button",
|
|
4653
4865
|
{
|
|
4654
4866
|
type: "button",
|
|
@@ -4663,7 +4875,7 @@ var TimePicker = React59.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
4663
4875
|
|
|
4664
4876
|
// src/components/stepper/Stepper.tsx
|
|
4665
4877
|
var React60 = __toESM(require("react"));
|
|
4666
|
-
var
|
|
4878
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4667
4879
|
var Stepper = React60.forwardRef(function Stepper2({
|
|
4668
4880
|
steps,
|
|
4669
4881
|
current,
|
|
@@ -4686,7 +4898,7 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4686
4898
|
const verticalTitlePad = size === "sm" ? "pt-0.5" : "pt-1";
|
|
4687
4899
|
const connectorTop = variant === "dots" ? size === "sm" ? "mt-1" : "mt-[5px]" : size === "sm" ? "mt-3" : "mt-3.5";
|
|
4688
4900
|
const focusClass = "rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background";
|
|
4689
|
-
return /* @__PURE__ */ (0,
|
|
4901
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4690
4902
|
"ol",
|
|
4691
4903
|
{
|
|
4692
4904
|
ref,
|
|
@@ -4700,7 +4912,7 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4700
4912
|
const isLast = index === steps.length - 1;
|
|
4701
4913
|
const titleCentered = alignTitles === "center" && !step.description;
|
|
4702
4914
|
const below = !vertical && labelPlacement === "below";
|
|
4703
|
-
const marker = /* @__PURE__ */ (0,
|
|
4915
|
+
const marker = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4704
4916
|
"span",
|
|
4705
4917
|
{
|
|
4706
4918
|
"aria-hidden": "true",
|
|
@@ -4722,8 +4934,8 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4722
4934
|
children: variant === "numbered" ? state === "complete" ? "\u2713" : index + 1 : null
|
|
4723
4935
|
}
|
|
4724
4936
|
);
|
|
4725
|
-
const label = /* @__PURE__ */ (0,
|
|
4726
|
-
/* @__PURE__ */ (0,
|
|
4937
|
+
const label = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("span", { className: "min-w-0", children: [
|
|
4938
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4727
4939
|
"span",
|
|
4728
4940
|
{
|
|
4729
4941
|
className: cn(
|
|
@@ -4735,7 +4947,7 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4735
4947
|
children: step.label
|
|
4736
4948
|
}
|
|
4737
4949
|
),
|
|
4738
|
-
step.description && /* @__PURE__ */ (0,
|
|
4950
|
+
step.description && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4739
4951
|
"span",
|
|
4740
4952
|
{
|
|
4741
4953
|
className: cn(
|
|
@@ -4746,9 +4958,9 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4746
4958
|
children: step.description
|
|
4747
4959
|
}
|
|
4748
4960
|
),
|
|
4749
|
-
/* @__PURE__ */ (0,
|
|
4961
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "sr-only", children: state === "complete" ? " (completed)" : state === "current" ? " (current step)" : " (upcoming)" })
|
|
4750
4962
|
] });
|
|
4751
|
-
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ (0,
|
|
4963
|
+
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4752
4964
|
"button",
|
|
4753
4965
|
{
|
|
4754
4966
|
type: "button",
|
|
@@ -4757,29 +4969,29 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4757
4969
|
className: cn(rowClassName, focusClass),
|
|
4758
4970
|
children
|
|
4759
4971
|
}
|
|
4760
|
-
) : /* @__PURE__ */ (0,
|
|
4972
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
4761
4973
|
if (vertical) {
|
|
4762
|
-
return /* @__PURE__ */ (0,
|
|
4763
|
-
/* @__PURE__ */ (0,
|
|
4764
|
-
/* @__PURE__ */ (0,
|
|
4974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("li", { className: "flex", children: renderRow(
|
|
4975
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
|
4976
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex flex-col items-center", children: [
|
|
4765
4977
|
marker,
|
|
4766
|
-
!isLast && /* @__PURE__ */ (0,
|
|
4978
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { "aria-hidden": "true", className: "my-1 w-px flex-1 rounded-full bg-border" })
|
|
4767
4979
|
] }),
|
|
4768
|
-
/* @__PURE__ */ (0,
|
|
4980
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: cn("min-w-0 pb-6", titleCentered && verticalTitlePad), children: label })
|
|
4769
4981
|
] }),
|
|
4770
4982
|
"flex w-full items-stretch gap-3 text-left"
|
|
4771
4983
|
) }, step.label);
|
|
4772
4984
|
}
|
|
4773
4985
|
if (below) {
|
|
4774
|
-
return /* @__PURE__ */ (0,
|
|
4986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("li", { className: "flex min-w-0 flex-1 items-start gap-2", children: [
|
|
4775
4987
|
renderRow(
|
|
4776
|
-
/* @__PURE__ */ (0,
|
|
4988
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
|
4777
4989
|
marker,
|
|
4778
4990
|
label
|
|
4779
4991
|
] }),
|
|
4780
4992
|
"flex min-w-0 flex-1 flex-col items-center gap-2 text-center"
|
|
4781
4993
|
),
|
|
4782
|
-
!isLast && /* @__PURE__ */ (0,
|
|
4994
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4783
4995
|
"span",
|
|
4784
4996
|
{
|
|
4785
4997
|
"aria-hidden": "true",
|
|
@@ -4788,15 +5000,15 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4788
5000
|
)
|
|
4789
5001
|
] }, step.label);
|
|
4790
5002
|
}
|
|
4791
|
-
return /* @__PURE__ */ (0,
|
|
5003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("li", { className: "flex min-w-0 items-start gap-2", children: [
|
|
4792
5004
|
renderRow(
|
|
4793
|
-
/* @__PURE__ */ (0,
|
|
5005
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
|
4794
5006
|
marker,
|
|
4795
5007
|
label
|
|
4796
5008
|
] }),
|
|
4797
5009
|
cn("flex min-w-0 text-left", gapClass, titleCentered ? "items-center" : "items-start")
|
|
4798
5010
|
),
|
|
4799
|
-
!isLast && /* @__PURE__ */ (0,
|
|
5011
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4800
5012
|
"span",
|
|
4801
5013
|
{
|
|
4802
5014
|
"aria-hidden": "true",
|
|
@@ -4811,7 +5023,7 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4811
5023
|
|
|
4812
5024
|
// src/components/file-upload/FileUpload.tsx
|
|
4813
5025
|
var React61 = __toESM(require("react"));
|
|
4814
|
-
var
|
|
5026
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4815
5027
|
function formatSize(bytes) {
|
|
4816
5028
|
if (bytes < 1024) return `${bytes} B`;
|
|
4817
5029
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -4848,8 +5060,8 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4848
5060
|
const list = Array.from(incoming);
|
|
4849
5061
|
commit(multiple ? [...current, ...list] : list.slice(0, 1));
|
|
4850
5062
|
};
|
|
4851
|
-
return /* @__PURE__ */ (0,
|
|
4852
|
-
/* @__PURE__ */ (0,
|
|
5063
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: cn("flex flex-col gap-3", className), children: [
|
|
5064
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4853
5065
|
"div",
|
|
4854
5066
|
{
|
|
4855
5067
|
onDragOver: (event) => {
|
|
@@ -4870,9 +5082,9 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4870
5082
|
disabled && "opacity-50"
|
|
4871
5083
|
),
|
|
4872
5084
|
children: [
|
|
4873
|
-
/* @__PURE__ */ (0,
|
|
5085
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
4874
5086
|
label,
|
|
4875
|
-
/* @__PURE__ */ (0,
|
|
5087
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4876
5088
|
"input",
|
|
4877
5089
|
{
|
|
4878
5090
|
ref,
|
|
@@ -4890,15 +5102,15 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4890
5102
|
}
|
|
4891
5103
|
)
|
|
4892
5104
|
] }),
|
|
4893
|
-
/* @__PURE__ */ (0,
|
|
5105
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "mt-1 text-xs text-muted-foreground", children: hint ?? (accept ? `Accepted: ${accept}` : "Any file type") })
|
|
4894
5106
|
]
|
|
4895
5107
|
}
|
|
4896
5108
|
),
|
|
4897
|
-
current.length > 0 && /* @__PURE__ */ (0,
|
|
4898
|
-
/* @__PURE__ */ (0,
|
|
4899
|
-
/* @__PURE__ */ (0,
|
|
4900
|
-
/* @__PURE__ */ (0,
|
|
4901
|
-
progress?.[file.name] !== void 0 && /* @__PURE__ */ (0,
|
|
5109
|
+
current.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("ul", { "aria-label": selectedFilesLabel, className: "space-y-2", children: current.map((file) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("li", { className: "flex items-center justify-between gap-3 rounded-md border border-border px-3 py-2", children: [
|
|
5110
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "min-w-0", children: [
|
|
5111
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "truncate text-sm", children: file.name }),
|
|
5112
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-xs text-muted-foreground", children: formatSize(file.size) }),
|
|
5113
|
+
progress?.[file.name] !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4902
5114
|
"div",
|
|
4903
5115
|
{
|
|
4904
5116
|
role: "progressbar",
|
|
@@ -4907,11 +5119,11 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4907
5119
|
"aria-valuemax": 100,
|
|
4908
5120
|
"aria-label": uploadingLabel(file),
|
|
4909
5121
|
className: "mt-1 h-1.5 w-40 overflow-hidden rounded-full bg-muted",
|
|
4910
|
-
children: /* @__PURE__ */ (0,
|
|
5122
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "h-full bg-primary", style: { width: `${progress[file.name]}%` } })
|
|
4911
5123
|
}
|
|
4912
5124
|
)
|
|
4913
5125
|
] }),
|
|
4914
|
-
/* @__PURE__ */ (0,
|
|
5126
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4915
5127
|
"button",
|
|
4916
5128
|
{
|
|
4917
5129
|
type: "button",
|
|
@@ -4927,11 +5139,11 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4927
5139
|
|
|
4928
5140
|
// src/components/timeline/Timeline.tsx
|
|
4929
5141
|
var React62 = __toESM(require("react"));
|
|
4930
|
-
var
|
|
5142
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4931
5143
|
var Timeline = React62.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
4932
|
-
return /* @__PURE__ */ (0,
|
|
4933
|
-
/* @__PURE__ */ (0,
|
|
4934
|
-
/* @__PURE__ */ (0,
|
|
5144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("ol", { ref, className: cn("relative flex flex-col gap-6", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("li", { className: "relative flex gap-4", children: [
|
|
5145
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex flex-col items-center", children: [
|
|
5146
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4935
5147
|
"span",
|
|
4936
5148
|
{
|
|
4937
5149
|
"aria-hidden": "true",
|
|
@@ -4941,24 +5153,24 @@ var Timeline = React62.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
4941
5153
|
)
|
|
4942
5154
|
}
|
|
4943
5155
|
),
|
|
4944
|
-
index < items.length - 1 && /* @__PURE__ */ (0,
|
|
5156
|
+
index < items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { "aria-hidden": "true", className: "mt-1 w-px flex-1 bg-border" })
|
|
4945
5157
|
] }),
|
|
4946
|
-
/* @__PURE__ */ (0,
|
|
4947
|
-
item.period && /* @__PURE__ */ (0,
|
|
4948
|
-
/* @__PURE__ */ (0,
|
|
4949
|
-
item.description && /* @__PURE__ */ (0,
|
|
4950
|
-
item.icon && /* @__PURE__ */ (0,
|
|
5158
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "min-w-0 pb-1", children: [
|
|
5159
|
+
item.period && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
|
|
5160
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
|
|
5161
|
+
item.description && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "mt-1 text-sm text-muted-foreground", children: item.description }),
|
|
5162
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "mt-1 text-muted-foreground [&_svg]:size-4", children: item.icon })
|
|
4951
5163
|
] })
|
|
4952
5164
|
] }, `${item.title}-${index}`)) });
|
|
4953
5165
|
});
|
|
4954
5166
|
|
|
4955
5167
|
// src/components/block/Block.tsx
|
|
4956
5168
|
var React63 = __toESM(require("react"));
|
|
4957
|
-
var
|
|
5169
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4958
5170
|
var Block = React63.forwardRef(
|
|
4959
5171
|
({ as = "div", inline, muted, className, ...props }, ref) => {
|
|
4960
5172
|
const Tag = inline ? "span" : as;
|
|
4961
|
-
return /* @__PURE__ */ (0,
|
|
5173
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4962
5174
|
Tag,
|
|
4963
5175
|
{
|
|
4964
5176
|
ref,
|
|
@@ -4972,7 +5184,7 @@ Block.displayName = "Block";
|
|
|
4972
5184
|
|
|
4973
5185
|
// src/components/flex/Flex.tsx
|
|
4974
5186
|
var React64 = __toESM(require("react"));
|
|
4975
|
-
var
|
|
5187
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
4976
5188
|
var justifyClasses = {
|
|
4977
5189
|
start: "justify-start",
|
|
4978
5190
|
center: "justify-center",
|
|
@@ -4992,7 +5204,7 @@ var Flex = React64.forwardRef(
|
|
|
4992
5204
|
({ direction = "row", align, justify, wrap, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
4993
5205
|
const Tag = as;
|
|
4994
5206
|
const gapResolved = resolveGap(gap);
|
|
4995
|
-
return /* @__PURE__ */ (0,
|
|
5207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4996
5208
|
Tag,
|
|
4997
5209
|
{
|
|
4998
5210
|
ref,
|
|
@@ -5027,7 +5239,7 @@ var FlexItem = React64.forwardRef(
|
|
|
5027
5239
|
...shrink === false ? { flexShrink: 0 } : typeof shrink === "string" && shrink ? { flexShrink: Number(shrink) || shrink } : {},
|
|
5028
5240
|
...basis ? { flexBasis: basis } : {}
|
|
5029
5241
|
};
|
|
5030
|
-
return /* @__PURE__ */ (0,
|
|
5242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
5031
5243
|
Tag,
|
|
5032
5244
|
{
|
|
5033
5245
|
ref,
|
|
@@ -5042,7 +5254,7 @@ FlexItem.displayName = "FlexItem";
|
|
|
5042
5254
|
|
|
5043
5255
|
// src/components/grid/Grid.tsx
|
|
5044
5256
|
var React65 = __toESM(require("react"));
|
|
5045
|
-
var
|
|
5257
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5046
5258
|
var BASE_COLS = {
|
|
5047
5259
|
1: "grid-cols-1",
|
|
5048
5260
|
2: "grid-cols-2",
|
|
@@ -5111,7 +5323,7 @@ var Grid = React65.forwardRef(
|
|
|
5111
5323
|
({ cols, smCols, mdCols, lgCols, minCol, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
5112
5324
|
const Tag = as;
|
|
5113
5325
|
const gapResolved = resolveGap(gap);
|
|
5114
|
-
return /* @__PURE__ */ (0,
|
|
5326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5115
5327
|
Tag,
|
|
5116
5328
|
{
|
|
5117
5329
|
ref,
|
|
@@ -5138,7 +5350,7 @@ Grid.displayName = "Grid";
|
|
|
5138
5350
|
var GridItem = React65.forwardRef(
|
|
5139
5351
|
({ span, smSpan, mdSpan, lgSpan, as = "div", className, ...props }, ref) => {
|
|
5140
5352
|
const Tag = as;
|
|
5141
|
-
return /* @__PURE__ */ (0,
|
|
5353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5142
5354
|
Tag,
|
|
5143
5355
|
{
|
|
5144
5356
|
ref,
|
|
@@ -5158,7 +5370,7 @@ GridItem.displayName = "GridItem";
|
|
|
5158
5370
|
|
|
5159
5371
|
// src/components/container/Container.tsx
|
|
5160
5372
|
var React66 = __toESM(require("react"));
|
|
5161
|
-
var
|
|
5373
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5162
5374
|
var widthClasses = {
|
|
5163
5375
|
sm: "max-w-3xl",
|
|
5164
5376
|
md: "max-w-5xl",
|
|
@@ -5174,7 +5386,7 @@ var paddingClasses = {
|
|
|
5174
5386
|
};
|
|
5175
5387
|
var Container = React66.forwardRef(function Container2({ width = "lg", padding = "md", as = "div", className, ...props }, ref) {
|
|
5176
5388
|
const Tag = as;
|
|
5177
|
-
return /* @__PURE__ */ (0,
|
|
5389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5178
5390
|
Tag,
|
|
5179
5391
|
{
|
|
5180
5392
|
ref,
|
|
@@ -5186,8 +5398,8 @@ var Container = React66.forwardRef(function Container2({ width = "lg", padding =
|
|
|
5186
5398
|
|
|
5187
5399
|
// src/components/section/Section.tsx
|
|
5188
5400
|
var React67 = __toESM(require("react"));
|
|
5189
|
-
var
|
|
5190
|
-
var
|
|
5401
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5402
|
+
var toneClasses2 = {
|
|
5191
5403
|
default: "bg-background text-foreground",
|
|
5192
5404
|
muted: "bg-muted/40 text-foreground",
|
|
5193
5405
|
subtle: "bg-secondary/50 text-secondary-foreground",
|
|
@@ -5240,22 +5452,22 @@ var Section = React67.forwardRef(function Section2({
|
|
|
5240
5452
|
}, ref) {
|
|
5241
5453
|
const Tag = as;
|
|
5242
5454
|
const toneStyle = tone === "inverse" ? inverseVars : tone === "brand" ? brandVars : void 0;
|
|
5243
|
-
return /* @__PURE__ */ (0,
|
|
5455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5244
5456
|
Tag,
|
|
5245
5457
|
{
|
|
5246
5458
|
ref,
|
|
5247
5459
|
"data-tone": tone === "default" ? void 0 : tone,
|
|
5248
|
-
className: cn("w-full",
|
|
5460
|
+
className: cn("w-full", toneClasses2[tone], paddingClasses2[padding], className),
|
|
5249
5461
|
style: { ...toneStyle, ...style },
|
|
5250
5462
|
...props,
|
|
5251
|
-
children: container ? /* @__PURE__ */ (0,
|
|
5463
|
+
children: container ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Container, { width, className: containerClassName, children }) : children
|
|
5252
5464
|
}
|
|
5253
5465
|
);
|
|
5254
5466
|
});
|
|
5255
5467
|
|
|
5256
5468
|
// src/components/hero/Hero.tsx
|
|
5257
5469
|
var React68 = __toESM(require("react"));
|
|
5258
|
-
var
|
|
5470
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
5259
5471
|
var titleSizes = {
|
|
5260
5472
|
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
5261
5473
|
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
@@ -5286,7 +5498,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5286
5498
|
const Heading2 = `h${level}`;
|
|
5287
5499
|
const centered = layout === "centered" || align === "center";
|
|
5288
5500
|
const overlay = layout === "overlay";
|
|
5289
|
-
const copy = /* @__PURE__ */ (0,
|
|
5501
|
+
const copy = /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
5290
5502
|
"div",
|
|
5291
5503
|
{
|
|
5292
5504
|
className: cn(
|
|
@@ -5295,7 +5507,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5295
5507
|
overlay && "max-w-2xl"
|
|
5296
5508
|
),
|
|
5297
5509
|
children: [
|
|
5298
|
-
badge && /* @__PURE__ */ (0,
|
|
5510
|
+
badge && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
5299
5511
|
"div",
|
|
5300
5512
|
{
|
|
5301
5513
|
className: cn(
|
|
@@ -5306,7 +5518,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5306
5518
|
children: badge
|
|
5307
5519
|
}
|
|
5308
5520
|
),
|
|
5309
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
5521
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
5310
5522
|
"p",
|
|
5311
5523
|
{
|
|
5312
5524
|
className: cn(
|
|
@@ -5317,7 +5529,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5317
5529
|
children: eyebrow
|
|
5318
5530
|
}
|
|
5319
5531
|
),
|
|
5320
|
-
/* @__PURE__ */ (0,
|
|
5532
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
5321
5533
|
Heading2,
|
|
5322
5534
|
{
|
|
5323
5535
|
className: cn(
|
|
@@ -5329,7 +5541,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5329
5541
|
children: title
|
|
5330
5542
|
}
|
|
5331
5543
|
),
|
|
5332
|
-
description && /* @__PURE__ */ (0,
|
|
5544
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
5333
5545
|
"p",
|
|
5334
5546
|
{
|
|
5335
5547
|
className: cn(
|
|
@@ -5341,7 +5553,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5341
5553
|
children: description
|
|
5342
5554
|
}
|
|
5343
5555
|
),
|
|
5344
|
-
actions && /* @__PURE__ */ (0,
|
|
5556
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
5345
5557
|
"div",
|
|
5346
5558
|
{
|
|
5347
5559
|
className: cn(
|
|
@@ -5355,7 +5567,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5355
5567
|
}
|
|
5356
5568
|
);
|
|
5357
5569
|
if (overlay) {
|
|
5358
|
-
return /* @__PURE__ */ (0,
|
|
5570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
5359
5571
|
Tag,
|
|
5360
5572
|
{
|
|
5361
5573
|
ref,
|
|
@@ -5365,7 +5577,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5365
5577
|
),
|
|
5366
5578
|
...props,
|
|
5367
5579
|
children: [
|
|
5368
|
-
media && /* @__PURE__ */ (0,
|
|
5580
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
5369
5581
|
"div",
|
|
5370
5582
|
{
|
|
5371
5583
|
className: cn(
|
|
@@ -5375,20 +5587,20 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5375
5587
|
children: media
|
|
5376
5588
|
}
|
|
5377
5589
|
),
|
|
5378
|
-
/* @__PURE__ */ (0,
|
|
5379
|
-
/* @__PURE__ */ (0,
|
|
5590
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { "aria-hidden": "true", className: "absolute inset-0 -z-10 bg-foreground/60" }),
|
|
5591
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "relative w-full px-4 sm:px-6 lg:px-10", children: copy })
|
|
5380
5592
|
]
|
|
5381
5593
|
}
|
|
5382
5594
|
);
|
|
5383
5595
|
}
|
|
5384
5596
|
if (layout === "centered") {
|
|
5385
|
-
return /* @__PURE__ */ (0,
|
|
5597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
5386
5598
|
copy,
|
|
5387
|
-
media && /* @__PURE__ */ (0,
|
|
5599
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
5388
5600
|
] });
|
|
5389
5601
|
}
|
|
5390
5602
|
if (layout === "stacked") {
|
|
5391
|
-
return /* @__PURE__ */ (0,
|
|
5603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
5392
5604
|
Tag,
|
|
5393
5605
|
{
|
|
5394
5606
|
ref,
|
|
@@ -5396,20 +5608,20 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5396
5608
|
...props,
|
|
5397
5609
|
children: [
|
|
5398
5610
|
copy,
|
|
5399
|
-
media && /* @__PURE__ */ (0,
|
|
5611
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: cn("min-w-0 w-full", mediaClassName), children: media })
|
|
5400
5612
|
]
|
|
5401
5613
|
}
|
|
5402
5614
|
);
|
|
5403
5615
|
}
|
|
5404
|
-
return /* @__PURE__ */ (0,
|
|
5616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
5405
5617
|
Tag,
|
|
5406
5618
|
{
|
|
5407
5619
|
ref,
|
|
5408
5620
|
className: cn("grid w-full items-center gap-10 lg:grid-cols-2 lg:gap-16 xl:gap-20", className),
|
|
5409
5621
|
...props,
|
|
5410
5622
|
children: [
|
|
5411
|
-
/* @__PURE__ */ (0,
|
|
5412
|
-
media && /* @__PURE__ */ (0,
|
|
5623
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: cn(mediaPosition === "left" && "lg:order-2"), children: copy }),
|
|
5624
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1", mediaClassName), children: media })
|
|
5413
5625
|
]
|
|
5414
5626
|
}
|
|
5415
5627
|
);
|
|
@@ -5417,7 +5629,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5417
5629
|
|
|
5418
5630
|
// src/components/stat-band/StatBand.tsx
|
|
5419
5631
|
var React69 = __toESM(require("react"));
|
|
5420
|
-
var
|
|
5632
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
5421
5633
|
var columnClasses = {
|
|
5422
5634
|
2: "sm:grid-cols-2",
|
|
5423
5635
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -5429,7 +5641,7 @@ var valueClasses = {
|
|
|
5429
5641
|
lg: "text-4xl sm:text-5xl"
|
|
5430
5642
|
};
|
|
5431
5643
|
var StatBand = React69.forwardRef(function StatBand2({ items, columns = 3, align = "center", size = "md", divided = true, className, ...props }, ref) {
|
|
5432
|
-
return /* @__PURE__ */ (0,
|
|
5644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5433
5645
|
"dl",
|
|
5434
5646
|
{
|
|
5435
5647
|
ref,
|
|
@@ -5440,7 +5652,7 @@ var StatBand = React69.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
5440
5652
|
className
|
|
5441
5653
|
),
|
|
5442
5654
|
...props,
|
|
5443
|
-
children: items.map((item) => /* @__PURE__ */ (0,
|
|
5655
|
+
children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
5444
5656
|
"div",
|
|
5445
5657
|
{
|
|
5446
5658
|
className: cn(
|
|
@@ -5448,11 +5660,11 @@ var StatBand = React69.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
5448
5660
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
5449
5661
|
),
|
|
5450
5662
|
children: [
|
|
5451
|
-
/* @__PURE__ */ (0,
|
|
5663
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("dt", { className: "order-2 text-sm font-medium text-muted-foreground", children: [
|
|
5452
5664
|
item.label,
|
|
5453
|
-
item.hint && /* @__PURE__ */ (0,
|
|
5665
|
+
item.hint && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "mt-1 block text-xs font-normal", children: item.hint })
|
|
5454
5666
|
] }),
|
|
5455
|
-
/* @__PURE__ */ (0,
|
|
5667
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("dd", { className: cn("order-1 m-0 font-semibold tracking-tight tabular-nums", valueClasses[size]), children: item.value })
|
|
5456
5668
|
]
|
|
5457
5669
|
},
|
|
5458
5670
|
item.label
|
|
@@ -5463,7 +5675,7 @@ var StatBand = React69.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
5463
5675
|
|
|
5464
5676
|
// src/components/cta-section/CTASection.tsx
|
|
5465
5677
|
var React70 = __toESM(require("react"));
|
|
5466
|
-
var
|
|
5678
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
5467
5679
|
var sizePadding = {
|
|
5468
5680
|
sm: "md",
|
|
5469
5681
|
md: "lg",
|
|
@@ -5481,7 +5693,7 @@ var CTASection = React70.forwardRef(function CTASection2({
|
|
|
5481
5693
|
className,
|
|
5482
5694
|
...props
|
|
5483
5695
|
}, ref) {
|
|
5484
|
-
return /* @__PURE__ */ (0,
|
|
5696
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
5485
5697
|
Section,
|
|
5486
5698
|
{
|
|
5487
5699
|
ref,
|
|
@@ -5490,7 +5702,7 @@ var CTASection = React70.forwardRef(function CTASection2({
|
|
|
5490
5702
|
width,
|
|
5491
5703
|
className,
|
|
5492
5704
|
...props,
|
|
5493
|
-
children: /* @__PURE__ */ (0,
|
|
5705
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
5494
5706
|
"div",
|
|
5495
5707
|
{
|
|
5496
5708
|
className: cn(
|
|
@@ -5498,10 +5710,10 @@ var CTASection = React70.forwardRef(function CTASection2({
|
|
|
5498
5710
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
5499
5711
|
),
|
|
5500
5712
|
children: [
|
|
5501
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
5502
|
-
/* @__PURE__ */ (0,
|
|
5503
|
-
description && /* @__PURE__ */ (0,
|
|
5504
|
-
actions && /* @__PURE__ */ (0,
|
|
5713
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary", children: eyebrow }),
|
|
5714
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("h2", { className: "max-w-3xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl", children: title }),
|
|
5715
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: cn("max-w-2xl text-base leading-relaxed text-muted-foreground sm:text-lg"), children: description }),
|
|
5716
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: cn("mt-2 flex flex-wrap items-center gap-3", align === "center" && "justify-center"), children: actions })
|
|
5505
5717
|
]
|
|
5506
5718
|
}
|
|
5507
5719
|
)
|
|
@@ -5511,9 +5723,9 @@ var CTASection = React70.forwardRef(function CTASection2({
|
|
|
5511
5723
|
|
|
5512
5724
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
5513
5725
|
var React71 = __toESM(require("react"));
|
|
5514
|
-
var
|
|
5726
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
5515
5727
|
function CheckMark() {
|
|
5516
|
-
return /* @__PURE__ */ (0,
|
|
5728
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5517
5729
|
"svg",
|
|
5518
5730
|
{
|
|
5519
5731
|
"aria-hidden": "true",
|
|
@@ -5524,12 +5736,12 @@ function CheckMark() {
|
|
|
5524
5736
|
strokeLinecap: "round",
|
|
5525
5737
|
strokeLinejoin: "round",
|
|
5526
5738
|
className: "mx-auto h-5 w-5 text-success",
|
|
5527
|
-
children: /* @__PURE__ */ (0,
|
|
5739
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { d: "m4 10.5 4 4 8-9" })
|
|
5528
5740
|
}
|
|
5529
5741
|
);
|
|
5530
5742
|
}
|
|
5531
5743
|
function DashMark() {
|
|
5532
|
-
return /* @__PURE__ */ (0,
|
|
5744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5533
5745
|
"svg",
|
|
5534
5746
|
{
|
|
5535
5747
|
"aria-hidden": "true",
|
|
@@ -5539,7 +5751,7 @@ function DashMark() {
|
|
|
5539
5751
|
strokeWidth: "2.2",
|
|
5540
5752
|
strokeLinecap: "round",
|
|
5541
5753
|
className: "mx-auto h-5 w-5 text-muted-foreground/60",
|
|
5542
|
-
children: /* @__PURE__ */ (0,
|
|
5754
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { d: "M5 10h10" })
|
|
5543
5755
|
}
|
|
5544
5756
|
);
|
|
5545
5757
|
}
|
|
@@ -5555,11 +5767,11 @@ var ComparisonTable = React71.forwardRef(
|
|
|
5555
5767
|
}, ref) {
|
|
5556
5768
|
const yes = valueLabels?.yes ?? "Included";
|
|
5557
5769
|
const no = valueLabels?.no ?? "Not included";
|
|
5558
|
-
return /* @__PURE__ */ (0,
|
|
5559
|
-
/* @__PURE__ */ (0,
|
|
5560
|
-
/* @__PURE__ */ (0,
|
|
5561
|
-
/* @__PURE__ */ (0,
|
|
5562
|
-
columns.map((column) => /* @__PURE__ */ (0,
|
|
5770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "w-full overflow-x-auto rounded-xl border border-border bg-card", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("table", { ref, className: cn("w-full border-collapse text-sm", className), ...props, children: [
|
|
5771
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("caption", { className: "sr-only", children: caption }),
|
|
5772
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("tr", { className: "border-b border-border", children: [
|
|
5773
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("th", { scope: "col", className: "min-w-48 px-5 py-4 text-left font-medium text-muted-foreground", children: featureLabel }),
|
|
5774
|
+
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5563
5775
|
"th",
|
|
5564
5776
|
{
|
|
5565
5777
|
scope: "col",
|
|
@@ -5572,21 +5784,21 @@ var ComparisonTable = React71.forwardRef(
|
|
|
5572
5784
|
column.label
|
|
5573
5785
|
))
|
|
5574
5786
|
] }) }),
|
|
5575
|
-
/* @__PURE__ */ (0,
|
|
5576
|
-
/* @__PURE__ */ (0,
|
|
5787
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("tbody", { children: rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("tr", { className: "border-b border-border last:border-b-0", children: [
|
|
5788
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("th", { scope: "row", className: "px-5 py-4 text-left font-medium", children: [
|
|
5577
5789
|
row.feature,
|
|
5578
|
-
row.hint && /* @__PURE__ */ (0,
|
|
5790
|
+
row.hint && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "mt-1 block text-xs font-normal text-muted-foreground", children: row.hint })
|
|
5579
5791
|
] }),
|
|
5580
5792
|
columns.map((column, index) => {
|
|
5581
5793
|
const value = row.values[index];
|
|
5582
|
-
return /* @__PURE__ */ (0,
|
|
5794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5583
5795
|
"td",
|
|
5584
5796
|
{
|
|
5585
5797
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
5586
|
-
children: typeof value === "boolean" ? /* @__PURE__ */ (0,
|
|
5587
|
-
value ? /* @__PURE__ */ (0,
|
|
5588
|
-
/* @__PURE__ */ (0,
|
|
5589
|
-
] }) : /* @__PURE__ */ (0,
|
|
5798
|
+
children: typeof value === "boolean" ? /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
|
|
5799
|
+
value ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(CheckMark, {}) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(DashMark, {}),
|
|
5800
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "sr-only", children: value ? yes : no })
|
|
5801
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { children: value ?? "" })
|
|
5590
5802
|
},
|
|
5591
5803
|
`${row.feature}-${column.label}`
|
|
5592
5804
|
);
|
|
@@ -5598,7 +5810,7 @@ var ComparisonTable = React71.forwardRef(
|
|
|
5598
5810
|
|
|
5599
5811
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
5600
5812
|
var React72 = __toESM(require("react"));
|
|
5601
|
-
var
|
|
5813
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
5602
5814
|
var columnClasses2 = {
|
|
5603
5815
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
5604
5816
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -5627,8 +5839,8 @@ var LogoCloud = React72.forwardRef(function LogoCloud2({
|
|
|
5627
5839
|
sizeClasses9[size],
|
|
5628
5840
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
5629
5841
|
);
|
|
5630
|
-
return /* @__PURE__ */ (0,
|
|
5631
|
-
caption && /* @__PURE__ */ (0,
|
|
5842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
5843
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
5632
5844
|
"p",
|
|
5633
5845
|
{
|
|
5634
5846
|
className: cn(
|
|
@@ -5638,12 +5850,12 @@ var LogoCloud = React72.forwardRef(function LogoCloud2({
|
|
|
5638
5850
|
children: caption
|
|
5639
5851
|
}
|
|
5640
5852
|
),
|
|
5641
|
-
/* @__PURE__ */ (0,
|
|
5642
|
-
const content = /* @__PURE__ */ (0,
|
|
5643
|
-
/* @__PURE__ */ (0,
|
|
5644
|
-
/* @__PURE__ */ (0,
|
|
5853
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("ul", { className: cn("grid items-center gap-x-8 gap-y-6", columnClasses2[columns], align === "center" && "justify-items-center"), children: items.map((item) => {
|
|
5854
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_jsx_runtime72.Fragment, { children: [
|
|
5855
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: logoClass, "aria-hidden": "true", children: item.logo }),
|
|
5856
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "sr-only", children: item.name })
|
|
5645
5857
|
] });
|
|
5646
|
-
return /* @__PURE__ */ (0,
|
|
5858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("li", { className: cn("min-w-0", align === "center" ? "justify-self-center" : "justify-self-start"), children: item.href ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
5647
5859
|
Link3,
|
|
5648
5860
|
{
|
|
5649
5861
|
href: item.href,
|
|
@@ -5657,7 +5869,7 @@ var LogoCloud = React72.forwardRef(function LogoCloud2({
|
|
|
5657
5869
|
|
|
5658
5870
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
5659
5871
|
var React73 = __toESM(require("react"));
|
|
5660
|
-
var
|
|
5872
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
5661
5873
|
var columnClasses3 = {
|
|
5662
5874
|
2: "sm:grid-cols-2",
|
|
5663
5875
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -5670,22 +5882,22 @@ var FeatureGrid = React73.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
5670
5882
|
variant === "card" && "border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
|
|
5671
5883
|
align === "center" && "items-center text-center"
|
|
5672
5884
|
);
|
|
5673
|
-
const content = (feature) => /* @__PURE__ */ (0,
|
|
5674
|
-
feature.icon && /* @__PURE__ */ (0,
|
|
5675
|
-
/* @__PURE__ */ (0,
|
|
5676
|
-
feature.description && /* @__PURE__ */ (0,
|
|
5677
|
-
feature.href && feature.actionLabel && /* @__PURE__ */ (0,
|
|
5885
|
+
const content = (feature) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
|
|
5886
|
+
feature.icon && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary [&_svg]:size-5", children: feature.icon }),
|
|
5887
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
5888
|
+
feature.description && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
5889
|
+
feature.href && feature.actionLabel && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("span", { className: "mt-auto pt-2 text-sm font-medium text-primary", children: [
|
|
5678
5890
|
feature.actionLabel,
|
|
5679
5891
|
" ",
|
|
5680
|
-
/* @__PURE__ */ (0,
|
|
5892
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { "aria-hidden": "true", children: "\u2192" })
|
|
5681
5893
|
] })
|
|
5682
5894
|
] });
|
|
5683
|
-
return /* @__PURE__ */ (0,
|
|
5895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("ul", { ref, className: cn("grid gap-6", columnClasses3[columns], className), ...props, children: features.map((feature) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("li", { className: "min-w-0", children: feature.href ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Link3, { href: feature.href, className: cn(cardClass, "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"), children: content(feature) }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: cardClass, children: content(feature) }) }, feature.title)) });
|
|
5684
5896
|
});
|
|
5685
5897
|
|
|
5686
5898
|
// src/components/feature-row/FeatureRow.tsx
|
|
5687
5899
|
var React74 = __toESM(require("react"));
|
|
5688
|
-
var
|
|
5900
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
5689
5901
|
var titleSizes2 = {
|
|
5690
5902
|
md: "text-3xl",
|
|
5691
5903
|
lg: "text-3xl sm:text-4xl"
|
|
@@ -5703,20 +5915,20 @@ var FeatureRow = React74.forwardRef(function FeatureRow2({
|
|
|
5703
5915
|
...props
|
|
5704
5916
|
}, ref) {
|
|
5705
5917
|
const Heading2 = `h${level}`;
|
|
5706
|
-
return /* @__PURE__ */ (0,
|
|
5918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
5707
5919
|
"div",
|
|
5708
5920
|
{
|
|
5709
5921
|
ref,
|
|
5710
5922
|
className: cn("grid items-center gap-10 lg:grid-cols-2 lg:gap-16", className),
|
|
5711
5923
|
...props,
|
|
5712
5924
|
children: [
|
|
5713
|
-
/* @__PURE__ */ (0,
|
|
5714
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
5715
|
-
/* @__PURE__ */ (0,
|
|
5716
|
-
description && /* @__PURE__ */ (0,
|
|
5717
|
-
actions && /* @__PURE__ */ (0,
|
|
5925
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
5926
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary", children: eyebrow }),
|
|
5927
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
5928
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
5929
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "mt-7 flex flex-wrap items-center gap-3", children: actions })
|
|
5718
5930
|
] }),
|
|
5719
|
-
/* @__PURE__ */ (0,
|
|
5931
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1"), children: media })
|
|
5720
5932
|
]
|
|
5721
5933
|
}
|
|
5722
5934
|
);
|
|
@@ -5724,14 +5936,14 @@ var FeatureRow = React74.forwardRef(function FeatureRow2({
|
|
|
5724
5936
|
|
|
5725
5937
|
// src/components/testimonial/Testimonial.tsx
|
|
5726
5938
|
var React75 = __toESM(require("react"));
|
|
5727
|
-
var
|
|
5939
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
5728
5940
|
var quoteSizes = {
|
|
5729
5941
|
sm: "text-base",
|
|
5730
5942
|
md: "text-lg",
|
|
5731
5943
|
lg: "text-xl sm:text-2xl"
|
|
5732
5944
|
};
|
|
5733
5945
|
var Testimonial = React75.forwardRef(function Testimonial2({ quote, name, role, company, avatar, logo, variant = "card", size = "md", className, ...props }, ref) {
|
|
5734
|
-
return /* @__PURE__ */ (0,
|
|
5946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
5735
5947
|
"figure",
|
|
5736
5948
|
{
|
|
5737
5949
|
ref,
|
|
@@ -5742,17 +5954,17 @@ var Testimonial = React75.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
5742
5954
|
),
|
|
5743
5955
|
...props,
|
|
5744
5956
|
children: [
|
|
5745
|
-
logo && /* @__PURE__ */ (0,
|
|
5746
|
-
/* @__PURE__ */ (0,
|
|
5957
|
+
logo && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "flex items-center", children: logo }),
|
|
5958
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("p", { children: [
|
|
5747
5959
|
"\u201C",
|
|
5748
5960
|
quote,
|
|
5749
5961
|
"\u201D"
|
|
5750
5962
|
] }) }),
|
|
5751
|
-
/* @__PURE__ */ (0,
|
|
5752
|
-
avatar && /* @__PURE__ */ (0,
|
|
5753
|
-
/* @__PURE__ */ (0,
|
|
5754
|
-
/* @__PURE__ */ (0,
|
|
5755
|
-
(role || company) && /* @__PURE__ */ (0,
|
|
5963
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("figcaption", { className: "flex items-center gap-3", children: [
|
|
5964
|
+
avatar && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "shrink-0", children: avatar }),
|
|
5965
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "min-w-0", children: [
|
|
5966
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "text-sm font-semibold", children: name }),
|
|
5967
|
+
(role || company) && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "text-xs text-muted-foreground", children: [role, company].filter(Boolean).join(", ") })
|
|
5756
5968
|
] })
|
|
5757
5969
|
] })
|
|
5758
5970
|
]
|
|
@@ -5762,22 +5974,22 @@ var Testimonial = React75.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
5762
5974
|
|
|
5763
5975
|
// src/components/process-steps/ProcessSteps.tsx
|
|
5764
5976
|
var React76 = __toESM(require("react"));
|
|
5765
|
-
var
|
|
5977
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
5766
5978
|
var columnClasses4 = {
|
|
5767
5979
|
2: "sm:grid-cols-2",
|
|
5768
5980
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
5769
5981
|
4: "sm:grid-cols-2 lg:grid-cols-4"
|
|
5770
5982
|
};
|
|
5771
5983
|
var ProcessSteps = React76.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", className, ...props }, ref) {
|
|
5772
|
-
return /* @__PURE__ */ (0,
|
|
5984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
5773
5985
|
"li",
|
|
5774
5986
|
{
|
|
5775
5987
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
5776
5988
|
children: [
|
|
5777
|
-
/* @__PURE__ */ (0,
|
|
5778
|
-
/* @__PURE__ */ (0,
|
|
5779
|
-
/* @__PURE__ */ (0,
|
|
5780
|
-
step.description && /* @__PURE__ */ (0,
|
|
5989
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 text-sm font-semibold text-primary [&_svg]:size-5", children: step.icon ?? (numbered ? String(index + 1).padStart(2, "0") : null) }),
|
|
5990
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "min-w-0", children: [
|
|
5991
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("h3", { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
5992
|
+
step.description && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
5781
5993
|
] })
|
|
5782
5994
|
]
|
|
5783
5995
|
},
|
|
@@ -5787,7 +5999,7 @@ var ProcessSteps = React76.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
5787
5999
|
|
|
5788
6000
|
// src/components/article-card/ArticleCard.tsx
|
|
5789
6001
|
var React77 = __toESM(require("react"));
|
|
5790
|
-
var
|
|
6002
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
5791
6003
|
var ArticleCard = React77.forwardRef(function ArticleCard2({
|
|
5792
6004
|
title,
|
|
5793
6005
|
description,
|
|
@@ -5802,7 +6014,7 @@ var ArticleCard = React77.forwardRef(function ArticleCard2({
|
|
|
5802
6014
|
}, ref) {
|
|
5803
6015
|
const Link3 = linkComponent ?? "a";
|
|
5804
6016
|
const compact = variant === "compact";
|
|
5805
|
-
return /* @__PURE__ */ (0,
|
|
6017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
5806
6018
|
Link3,
|
|
5807
6019
|
{
|
|
5808
6020
|
href,
|
|
@@ -5811,12 +6023,12 @@ var ArticleCard = React77.forwardRef(function ArticleCard2({
|
|
|
5811
6023
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
5812
6024
|
),
|
|
5813
6025
|
children: [
|
|
5814
|
-
media && !compact && /* @__PURE__ */ (0,
|
|
5815
|
-
/* @__PURE__ */ (0,
|
|
5816
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
5817
|
-
/* @__PURE__ */ (0,
|
|
5818
|
-
description && /* @__PURE__ */ (0,
|
|
5819
|
-
meta && /* @__PURE__ */ (0,
|
|
6026
|
+
media && !compact && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "aspect-[16/10] w-full overflow-hidden bg-muted [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: media }),
|
|
6027
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: cn("flex flex-1 flex-col gap-2", compact ? "p-4" : "p-5"), children: [
|
|
6028
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary", children: eyebrow }),
|
|
6029
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("h3", { className: cn("font-semibold tracking-tight transition-colors group-hover:text-primary", compact ? "text-base" : "text-lg"), children: title }),
|
|
6030
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6031
|
+
meta && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "mt-auto pt-2 text-xs text-muted-foreground", children: meta })
|
|
5820
6032
|
] })
|
|
5821
6033
|
]
|
|
5822
6034
|
}
|
|
@@ -5825,7 +6037,7 @@ var ArticleCard = React77.forwardRef(function ArticleCard2({
|
|
|
5825
6037
|
|
|
5826
6038
|
// src/components/newsletter/Newsletter.tsx
|
|
5827
6039
|
var React78 = __toESM(require("react"));
|
|
5828
|
-
var
|
|
6040
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
5829
6041
|
var Newsletter = React78.forwardRef(function Newsletter2({
|
|
5830
6042
|
title,
|
|
5831
6043
|
description,
|
|
@@ -5857,13 +6069,13 @@ var Newsletter = React78.forwardRef(function Newsletter2({
|
|
|
5857
6069
|
setStatus("error");
|
|
5858
6070
|
}
|
|
5859
6071
|
};
|
|
5860
|
-
return /* @__PURE__ */ (0,
|
|
5861
|
-
/* @__PURE__ */ (0,
|
|
5862
|
-
description && /* @__PURE__ */ (0,
|
|
5863
|
-
/* @__PURE__ */ (0,
|
|
5864
|
-
/* @__PURE__ */ (0,
|
|
5865
|
-
/* @__PURE__ */ (0,
|
|
5866
|
-
/* @__PURE__ */ (0,
|
|
6072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "w-full", children: [
|
|
6073
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Heading2, { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
6074
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6075
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("form", { ref, onSubmit: handleSubmit, className: cn("mt-5", className), ...props, children: [
|
|
6076
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: cn("flex gap-2", layout === "inline" ? "flex-col sm:flex-row" : "flex-col"), children: [
|
|
6077
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("label", { htmlFor: id, className: "sr-only", children: label }),
|
|
6078
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
5867
6079
|
Input,
|
|
5868
6080
|
{
|
|
5869
6081
|
id,
|
|
@@ -5878,12 +6090,12 @@ var Newsletter = React78.forwardRef(function Newsletter2({
|
|
|
5878
6090
|
className: "sm:flex-1"
|
|
5879
6091
|
}
|
|
5880
6092
|
),
|
|
5881
|
-
/* @__PURE__ */ (0,
|
|
6093
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
5882
6094
|
] }),
|
|
5883
|
-
consent && /* @__PURE__ */ (0,
|
|
5884
|
-
/* @__PURE__ */ (0,
|
|
5885
|
-
status === "success" && /* @__PURE__ */ (0,
|
|
5886
|
-
status === "error" && /* @__PURE__ */ (0,
|
|
6095
|
+
consent && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "mt-3 text-xs leading-relaxed text-muted-foreground", children: consent }),
|
|
6096
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { "aria-live": "polite", className: "mt-2 min-h-5 text-sm", children: [
|
|
6097
|
+
status === "success" && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-success", children: successMessage }),
|
|
6098
|
+
status === "error" && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { role: "alert", className: "text-destructive", children: errorMessage })
|
|
5887
6099
|
] })
|
|
5888
6100
|
] })
|
|
5889
6101
|
] });
|
|
@@ -5891,26 +6103,26 @@ var Newsletter = React78.forwardRef(function Newsletter2({
|
|
|
5891
6103
|
|
|
5892
6104
|
// src/components/contact-strip/ContactStrip.tsx
|
|
5893
6105
|
var React79 = __toESM(require("react"));
|
|
5894
|
-
var
|
|
6106
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
5895
6107
|
var columnClasses5 = {
|
|
5896
6108
|
2: "sm:grid-cols-2",
|
|
5897
6109
|
3: "sm:grid-cols-3"
|
|
5898
6110
|
};
|
|
5899
6111
|
var ContactStrip = React79.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
5900
6112
|
const Link3 = linkComponent ?? "a";
|
|
5901
|
-
return /* @__PURE__ */ (0,
|
|
5902
|
-
item.icon && /* @__PURE__ */ (0,
|
|
5903
|
-
/* @__PURE__ */ (0,
|
|
5904
|
-
/* @__PURE__ */ (0,
|
|
5905
|
-
item.href ? /* @__PURE__ */ (0,
|
|
6113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("ul", { ref, className: cn("grid gap-6", columnClasses5[columns], className), ...props, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("li", { className: cn("flex min-w-0 items-start gap-3", align === "center" && "justify-center text-center"), children: [
|
|
6114
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary [&_svg]:size-4", children: item.icon }),
|
|
6115
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "min-w-0", children: [
|
|
6116
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
6117
|
+
item.href ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Link3, { href: item.href, className: "mt-0.5 block break-words text-sm font-medium text-primary underline-offset-4 hover:underline", children: item.value }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
5906
6118
|
] })
|
|
5907
6119
|
] }, item.label)) });
|
|
5908
6120
|
});
|
|
5909
6121
|
|
|
5910
6122
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
5911
6123
|
var React80 = __toESM(require("react"));
|
|
5912
|
-
var
|
|
5913
|
-
var
|
|
6124
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
6125
|
+
var toneClasses3 = {
|
|
5914
6126
|
muted: "bg-muted text-foreground",
|
|
5915
6127
|
brand: "bg-primary text-primary-foreground",
|
|
5916
6128
|
inverse: "bg-inverse text-inverse-foreground"
|
|
@@ -5935,7 +6147,7 @@ var AnnouncementBar = React80.forwardRef(
|
|
|
5935
6147
|
setDismissed(true);
|
|
5936
6148
|
onDismiss?.();
|
|
5937
6149
|
};
|
|
5938
|
-
return /* @__PURE__ */ (0,
|
|
6150
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
5939
6151
|
"div",
|
|
5940
6152
|
{
|
|
5941
6153
|
ref,
|
|
@@ -5943,14 +6155,14 @@ var AnnouncementBar = React80.forwardRef(
|
|
|
5943
6155
|
"aria-label": "Announcement",
|
|
5944
6156
|
className: cn(
|
|
5945
6157
|
"w-full border-b border-border/60",
|
|
5946
|
-
|
|
6158
|
+
toneClasses3[tone],
|
|
5947
6159
|
sticky && "sticky top-0 z-30",
|
|
5948
6160
|
className
|
|
5949
6161
|
),
|
|
5950
6162
|
...props,
|
|
5951
|
-
children: /* @__PURE__ */ (0,
|
|
5952
|
-
/* @__PURE__ */ (0,
|
|
5953
|
-
href && actionLabel && /* @__PURE__ */ (0,
|
|
6163
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "mx-auto flex w-full max-w-7xl items-center justify-center gap-3 px-4 py-2 text-sm sm:px-6", children: [
|
|
6164
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "min-w-0 text-center", children: message }),
|
|
6165
|
+
href && actionLabel && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
5954
6166
|
Link3,
|
|
5955
6167
|
{
|
|
5956
6168
|
href,
|
|
@@ -5958,14 +6170,14 @@ var AnnouncementBar = React80.forwardRef(
|
|
|
5958
6170
|
children: actionLabel
|
|
5959
6171
|
}
|
|
5960
6172
|
),
|
|
5961
|
-
dismissible && /* @__PURE__ */ (0,
|
|
6173
|
+
dismissible && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
5962
6174
|
"button",
|
|
5963
6175
|
{
|
|
5964
6176
|
type: "button",
|
|
5965
6177
|
onClick: dismiss2,
|
|
5966
6178
|
"aria-label": "Dismiss announcement",
|
|
5967
6179
|
className: "shrink-0 rounded p-1 opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current",
|
|
5968
|
-
children: /* @__PURE__ */ (0,
|
|
6180
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
5969
6181
|
}
|
|
5970
6182
|
)
|
|
5971
6183
|
] })
|
|
@@ -5976,7 +6188,7 @@ var AnnouncementBar = React80.forwardRef(
|
|
|
5976
6188
|
|
|
5977
6189
|
// src/components/deal-card/DealCard.tsx
|
|
5978
6190
|
var React81 = __toESM(require("react"));
|
|
5979
|
-
var
|
|
6191
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
5980
6192
|
var statusConfig = {
|
|
5981
6193
|
available: { label: "Available", variant: "success" },
|
|
5982
6194
|
"under-nda": { label: "Under NDA", variant: "info" },
|
|
@@ -6004,29 +6216,29 @@ var DealCard = React81.forwardRef(function DealCard2({
|
|
|
6004
6216
|
}, ref) {
|
|
6005
6217
|
const Link3 = linkComponent ?? "a";
|
|
6006
6218
|
const statusInfo = statusConfig[status];
|
|
6007
|
-
return /* @__PURE__ */ (0,
|
|
6008
|
-
/* @__PURE__ */ (0,
|
|
6009
|
-
/* @__PURE__ */ (0,
|
|
6010
|
-
/* @__PURE__ */ (0,
|
|
6011
|
-
/* @__PURE__ */ (0,
|
|
6219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
6220
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
6221
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6222
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary", children: sector }),
|
|
6223
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
6012
6224
|
] }),
|
|
6013
|
-
/* @__PURE__ */ (0,
|
|
6014
|
-
location && /* @__PURE__ */ (0,
|
|
6225
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Link3, { href, className: "rounded-sm hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
6226
|
+
location && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "text-xs text-muted-foreground", children: location })
|
|
6015
6227
|
] }),
|
|
6016
|
-
/* @__PURE__ */ (0,
|
|
6017
|
-
description && /* @__PURE__ */ (0,
|
|
6018
|
-
/* @__PURE__ */ (0,
|
|
6019
|
-
/* @__PURE__ */ (0,
|
|
6020
|
-
/* @__PURE__ */ (0,
|
|
6228
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
6229
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6230
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("dl", { className: "mt-4 grid grid-cols-3 gap-3", children: metrics.map((metric) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "min-w-0", children: [
|
|
6231
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("dt", { className: "text-xs text-muted-foreground", children: metric.label }),
|
|
6232
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: metric.value })
|
|
6021
6233
|
] }, metric.label)) }),
|
|
6022
|
-
(ndaAvailable || cimAvailable) && /* @__PURE__ */ (0,
|
|
6023
|
-
ndaAvailable && /* @__PURE__ */ (0,
|
|
6024
|
-
cimAvailable && /* @__PURE__ */ (0,
|
|
6234
|
+
(ndaAvailable || cimAvailable) && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "mt-4 flex flex-wrap gap-1.5", children: [
|
|
6235
|
+
ndaAvailable && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Badge, { variant: "info", children: "NDA available" }),
|
|
6236
|
+
cimAvailable && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Badge, { variant: "secondary", children: "CIM available" })
|
|
6025
6237
|
] })
|
|
6026
6238
|
] }),
|
|
6027
|
-
/* @__PURE__ */ (0,
|
|
6028
|
-
onRequestAccess && /* @__PURE__ */ (0,
|
|
6029
|
-
onSave && /* @__PURE__ */ (0,
|
|
6239
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
6240
|
+
onRequestAccess && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Button, { type: "button", size: "sm", onClick: onRequestAccess, children: requestLabel }),
|
|
6241
|
+
onSave && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
6030
6242
|
Button,
|
|
6031
6243
|
{
|
|
6032
6244
|
type: "button",
|
|
@@ -6044,7 +6256,7 @@ var DealCard = React81.forwardRef(function DealCard2({
|
|
|
6044
6256
|
|
|
6045
6257
|
// src/components/entity-card/EntityCard.tsx
|
|
6046
6258
|
var React82 = __toESM(require("react"));
|
|
6047
|
-
var
|
|
6259
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
6048
6260
|
function initials(name) {
|
|
6049
6261
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
6050
6262
|
}
|
|
@@ -6063,25 +6275,25 @@ var EntityCard = React82.forwardRef(function EntityCard2({
|
|
|
6063
6275
|
...props
|
|
6064
6276
|
}, ref) {
|
|
6065
6277
|
const Link3 = linkComponent ?? "a";
|
|
6066
|
-
return /* @__PURE__ */ (0,
|
|
6067
|
-
/* @__PURE__ */ (0,
|
|
6068
|
-
/* @__PURE__ */ (0,
|
|
6069
|
-
/* @__PURE__ */ (0,
|
|
6070
|
-
/* @__PURE__ */ (0,
|
|
6071
|
-
/* @__PURE__ */ (0,
|
|
6072
|
-
location && /* @__PURE__ */ (0,
|
|
6278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(Card, { ref, className: cn("flex h-full flex-col", className), ...props, children: [
|
|
6279
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
6280
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Avatar, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(AvatarFallback, { children: initials(name) }) }) }),
|
|
6281
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
6282
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("h3", { className: "truncate text-base font-semibold tracking-tight", children: href ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Link3, { href, className: "rounded-sm hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: name }) : name }),
|
|
6283
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
6284
|
+
location && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
6073
6285
|
] })
|
|
6074
6286
|
] }),
|
|
6075
|
-
/* @__PURE__ */ (0,
|
|
6076
|
-
description && /* @__PURE__ */ (0,
|
|
6077
|
-
tags && tags.length > 0 && /* @__PURE__ */ (0,
|
|
6078
|
-
stats && stats.length > 0 && /* @__PURE__ */ (0,
|
|
6079
|
-
/* @__PURE__ */ (0,
|
|
6080
|
-
/* @__PURE__ */ (0,
|
|
6287
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
6288
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6289
|
+
tags && tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "mt-3 flex flex-wrap gap-1.5", children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Badge, { variant: "secondary", children: tag }, tag)) }),
|
|
6290
|
+
stats && stats.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("dl", { className: "mt-4 grid grid-cols-2 gap-3", children: stats.map((stat) => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "min-w-0", children: [
|
|
6291
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("dt", { className: "text-xs text-muted-foreground", children: stat.label }),
|
|
6292
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
|
|
6081
6293
|
] }, stat.label)) })
|
|
6082
6294
|
] }),
|
|
6083
|
-
(href || actions) && /* @__PURE__ */ (0,
|
|
6084
|
-
href && /* @__PURE__ */ (0,
|
|
6295
|
+
(href || actions) && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
6296
|
+
href && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
6085
6297
|
Link3,
|
|
6086
6298
|
{
|
|
6087
6299
|
href,
|
|
@@ -6089,7 +6301,7 @@ var EntityCard = React82.forwardRef(function EntityCard2({
|
|
|
6089
6301
|
children: "View profile"
|
|
6090
6302
|
}
|
|
6091
6303
|
),
|
|
6092
|
-
actions && /* @__PURE__ */ (0,
|
|
6304
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "ml-auto flex items-center gap-2", children: actions })
|
|
6093
6305
|
] })
|
|
6094
6306
|
] });
|
|
6095
6307
|
});
|
|
@@ -6097,7 +6309,7 @@ var ProfileCard = EntityCard;
|
|
|
6097
6309
|
|
|
6098
6310
|
// src/components/tombstone-card/TombstoneCard.tsx
|
|
6099
6311
|
var React83 = __toESM(require("react"));
|
|
6100
|
-
var
|
|
6312
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
6101
6313
|
var statusConfig2 = {
|
|
6102
6314
|
archived: { label: "Archived", variant: "secondary" },
|
|
6103
6315
|
unavailable: { label: "Unavailable", variant: "warning" },
|
|
@@ -6116,20 +6328,20 @@ var TombstoneCard = React83.forwardRef(function TombstoneCard2({
|
|
|
6116
6328
|
}, ref) {
|
|
6117
6329
|
const Link3 = linkComponent ?? "a";
|
|
6118
6330
|
const statusInfo = statusConfig2[status];
|
|
6119
|
-
return /* @__PURE__ */ (0,
|
|
6331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
6120
6332
|
Card,
|
|
6121
6333
|
{
|
|
6122
6334
|
ref,
|
|
6123
6335
|
className: cn("flex h-full flex-col border-dashed bg-muted/30 shadow-none", className),
|
|
6124
6336
|
...props,
|
|
6125
|
-
children: /* @__PURE__ */ (0,
|
|
6126
|
-
/* @__PURE__ */ (0,
|
|
6127
|
-
logo && /* @__PURE__ */ (0,
|
|
6128
|
-
/* @__PURE__ */ (0,
|
|
6337
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(CardContent, { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
6338
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6339
|
+
logo && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "min-w-0 opacity-70", children: logo }),
|
|
6340
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
6129
6341
|
] }),
|
|
6130
|
-
/* @__PURE__ */ (0,
|
|
6131
|
-
reason && /* @__PURE__ */ (0,
|
|
6132
|
-
href && /* @__PURE__ */ (0,
|
|
6342
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("h3", { className: "text-base font-semibold tracking-tight text-foreground/80", children: title }),
|
|
6343
|
+
reason && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "text-sm leading-relaxed text-muted-foreground", children: reason }),
|
|
6344
|
+
href && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
6133
6345
|
Link3,
|
|
6134
6346
|
{
|
|
6135
6347
|
href,
|
|
@@ -6144,7 +6356,7 @@ var TombstoneCard = React83.forwardRef(function TombstoneCard2({
|
|
|
6144
6356
|
|
|
6145
6357
|
// src/components/document-card/DocumentCard.tsx
|
|
6146
6358
|
var React84 = __toESM(require("react"));
|
|
6147
|
-
var
|
|
6359
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
6148
6360
|
var statusConfig3 = {
|
|
6149
6361
|
available: { label: "Available", variant: "success" },
|
|
6150
6362
|
restricted: { label: "Restricted", variant: "warning" },
|
|
@@ -6164,14 +6376,14 @@ var DocumentCard = React84.forwardRef(function DocumentCard2({
|
|
|
6164
6376
|
}, ref) {
|
|
6165
6377
|
const statusInfo = statusConfig3[status];
|
|
6166
6378
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
6167
|
-
return /* @__PURE__ */ (0,
|
|
6168
|
-
/* @__PURE__ */ (0,
|
|
6169
|
-
/* @__PURE__ */ (0,
|
|
6170
|
-
/* @__PURE__ */ (0,
|
|
6171
|
-
meta && /* @__PURE__ */ (0,
|
|
6379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(CardContent, { className: "flex items-center gap-3 p-4", children: [
|
|
6380
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary [&_svg]:size-5", children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-wide", children: fileType }) }),
|
|
6381
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
6382
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "truncate text-sm font-medium", children: name }),
|
|
6383
|
+
meta && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
6172
6384
|
] }),
|
|
6173
|
-
/* @__PURE__ */ (0,
|
|
6174
|
-
onDownload && /* @__PURE__ */ (0,
|
|
6385
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Badge, { variant: statusInfo.variant, children: statusInfo.label }),
|
|
6386
|
+
onDownload && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
6175
6387
|
Button,
|
|
6176
6388
|
{
|
|
6177
6389
|
type: "button",
|
|
@@ -6188,7 +6400,7 @@ var DocumentCard = React84.forwardRef(function DocumentCard2({
|
|
|
6188
6400
|
|
|
6189
6401
|
// src/components/load-more/LoadMore.tsx
|
|
6190
6402
|
var React85 = __toESM(require("react"));
|
|
6191
|
-
var
|
|
6403
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
6192
6404
|
var LoadMore = React85.forwardRef(function LoadMore2({
|
|
6193
6405
|
hasMore,
|
|
6194
6406
|
onLoadMore,
|
|
@@ -6199,12 +6411,12 @@ var LoadMore = React85.forwardRef(function LoadMore2({
|
|
|
6199
6411
|
className,
|
|
6200
6412
|
...props
|
|
6201
6413
|
}, ref) {
|
|
6202
|
-
return /* @__PURE__ */ (0,
|
|
6414
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { ref, "aria-live": "polite", className: cn("flex w-full justify-center py-4", className), ...props, children: hasMore ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Button, { type: "button", variant: "outline", onClick: onLoadMore, loading, children: loading ? loadingLabel : loadLabel }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { role: "status", className: "text-sm text-muted-foreground", children: endLabel }) });
|
|
6203
6415
|
});
|
|
6204
6416
|
|
|
6205
6417
|
// src/components/segmented-control/SegmentedControl.tsx
|
|
6206
6418
|
var React86 = __toESM(require("react"));
|
|
6207
|
-
var
|
|
6419
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
6208
6420
|
var sizeClasses10 = {
|
|
6209
6421
|
sm: "h-8 px-2.5 text-xs",
|
|
6210
6422
|
md: "h-9 px-3 text-sm",
|
|
@@ -6279,7 +6491,7 @@ var SegmentedControl = React86.forwardRef(
|
|
|
6279
6491
|
moveFocus("last");
|
|
6280
6492
|
}
|
|
6281
6493
|
};
|
|
6282
|
-
return /* @__PURE__ */ (0,
|
|
6494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
6283
6495
|
"div",
|
|
6284
6496
|
{
|
|
6285
6497
|
ref,
|
|
@@ -6295,7 +6507,7 @@ var SegmentedControl = React86.forwardRef(
|
|
|
6295
6507
|
const active = multiple ? Array.isArray(selected) && selected.includes(option.value) : selected === option.value;
|
|
6296
6508
|
const firstEnabled = options.findIndex((entry) => !entry.disabled);
|
|
6297
6509
|
const focusable = multiple || active || !selected && index === firstEnabled;
|
|
6298
|
-
return /* @__PURE__ */ (0,
|
|
6510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
6299
6511
|
"button",
|
|
6300
6512
|
{
|
|
6301
6513
|
ref: (node) => {
|
|
@@ -6318,8 +6530,8 @@ var SegmentedControl = React86.forwardRef(
|
|
|
6318
6530
|
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
6319
6531
|
),
|
|
6320
6532
|
children: [
|
|
6321
|
-
option.icon && /* @__PURE__ */ (0,
|
|
6322
|
-
/* @__PURE__ */ (0,
|
|
6533
|
+
option.icon && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
6534
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "truncate", children: option.label })
|
|
6323
6535
|
]
|
|
6324
6536
|
},
|
|
6325
6537
|
option.value
|
|
@@ -6332,7 +6544,7 @@ var SegmentedControl = React86.forwardRef(
|
|
|
6332
6544
|
|
|
6333
6545
|
// src/components/range-slider/RangeSlider.tsx
|
|
6334
6546
|
var React87 = __toESM(require("react"));
|
|
6335
|
-
var
|
|
6547
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
6336
6548
|
var rangeInputClass = cn(
|
|
6337
6549
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
6338
6550
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
@@ -6372,21 +6584,21 @@ var RangeSlider = React87.forwardRef(function RangeSlider2({
|
|
|
6372
6584
|
const span = max - min || 1;
|
|
6373
6585
|
const lowPercent = (low - min) / span * 100;
|
|
6374
6586
|
const highPercent = (high - min) / span * 100;
|
|
6375
|
-
return /* @__PURE__ */ (0,
|
|
6376
|
-
showValues && /* @__PURE__ */ (0,
|
|
6377
|
-
/* @__PURE__ */ (0,
|
|
6378
|
-
/* @__PURE__ */ (0,
|
|
6587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6588
|
+
showValues && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "mb-2 flex items-center justify-between text-sm font-medium tabular-nums", children: [
|
|
6589
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: formatValue(low) }),
|
|
6590
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: formatValue(high) })
|
|
6379
6591
|
] }),
|
|
6380
|
-
/* @__PURE__ */ (0,
|
|
6381
|
-
/* @__PURE__ */ (0,
|
|
6382
|
-
/* @__PURE__ */ (0,
|
|
6592
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "relative h-6 w-full", children: [
|
|
6593
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-muted" }),
|
|
6594
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6383
6595
|
"div",
|
|
6384
6596
|
{
|
|
6385
6597
|
className: "absolute top-1/2 h-1 -translate-y-1/2 rounded-full bg-primary",
|
|
6386
6598
|
style: { left: `${lowPercent}%`, right: `${100 - highPercent}%` }
|
|
6387
6599
|
}
|
|
6388
6600
|
),
|
|
6389
|
-
/* @__PURE__ */ (0,
|
|
6601
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6390
6602
|
"input",
|
|
6391
6603
|
{
|
|
6392
6604
|
type: "range",
|
|
@@ -6401,7 +6613,7 @@ var RangeSlider = React87.forwardRef(function RangeSlider2({
|
|
|
6401
6613
|
className: cn(rangeInputClass, "z-10")
|
|
6402
6614
|
}
|
|
6403
6615
|
),
|
|
6404
|
-
/* @__PURE__ */ (0,
|
|
6616
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6405
6617
|
"input",
|
|
6406
6618
|
{
|
|
6407
6619
|
type: "range",
|
|
@@ -6422,7 +6634,7 @@ var RangeSlider = React87.forwardRef(function RangeSlider2({
|
|
|
6422
6634
|
|
|
6423
6635
|
// src/components/filter-chips/FilterChips.tsx
|
|
6424
6636
|
var React88 = __toESM(require("react"));
|
|
6425
|
-
var
|
|
6637
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
6426
6638
|
var FilterChips = React88.forwardRef(function FilterChips2({
|
|
6427
6639
|
filters,
|
|
6428
6640
|
onClearAll,
|
|
@@ -6433,9 +6645,9 @@ var FilterChips = React88.forwardRef(function FilterChips2({
|
|
|
6433
6645
|
...props
|
|
6434
6646
|
}, ref) {
|
|
6435
6647
|
if (filters.length === 0) {
|
|
6436
|
-
return emptyLabel ? /* @__PURE__ */ (0,
|
|
6648
|
+
return emptyLabel ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
6437
6649
|
}
|
|
6438
|
-
return /* @__PURE__ */ (0,
|
|
6650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
6439
6651
|
"div",
|
|
6440
6652
|
{
|
|
6441
6653
|
ref,
|
|
@@ -6444,34 +6656,34 @@ var FilterChips = React88.forwardRef(function FilterChips2({
|
|
|
6444
6656
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
6445
6657
|
...props,
|
|
6446
6658
|
children: [
|
|
6447
|
-
filters.map((filter) => /* @__PURE__ */ (0,
|
|
6659
|
+
filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
6448
6660
|
"span",
|
|
6449
6661
|
{
|
|
6450
6662
|
className: "inline-flex max-w-full items-center gap-1.5 rounded-full border border-border bg-muted/60 py-1 pl-3 pr-1 text-sm",
|
|
6451
6663
|
children: [
|
|
6452
|
-
/* @__PURE__ */ (0,
|
|
6453
|
-
/* @__PURE__ */ (0,
|
|
6664
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("span", { className: "truncate", children: [
|
|
6665
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("span", { className: "text-muted-foreground", children: [
|
|
6454
6666
|
filter.label,
|
|
6455
6667
|
":"
|
|
6456
6668
|
] }),
|
|
6457
6669
|
" ",
|
|
6458
|
-
/* @__PURE__ */ (0,
|
|
6670
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "font-medium", children: filter.value ?? "Any" })
|
|
6459
6671
|
] }),
|
|
6460
|
-
filter.onRemove && /* @__PURE__ */ (0,
|
|
6672
|
+
filter.onRemove && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
6461
6673
|
"button",
|
|
6462
6674
|
{
|
|
6463
6675
|
type: "button",
|
|
6464
6676
|
onClick: filter.onRemove,
|
|
6465
6677
|
"aria-label": `Remove ${filter.label}${filter.value ? `: ${filter.value}` : ""}`,
|
|
6466
6678
|
className: "rounded-full p-1 text-muted-foreground transition-colors hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
6467
|
-
children: /* @__PURE__ */ (0,
|
|
6679
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
6468
6680
|
}
|
|
6469
6681
|
)
|
|
6470
6682
|
]
|
|
6471
6683
|
},
|
|
6472
6684
|
filter.key
|
|
6473
6685
|
)),
|
|
6474
|
-
onClearAll && /* @__PURE__ */ (0,
|
|
6686
|
+
onClearAll && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
6475
6687
|
"button",
|
|
6476
6688
|
{
|
|
6477
6689
|
type: "button",
|
|
@@ -6491,7 +6703,7 @@ var React90 = __toESM(require("react"));
|
|
|
6491
6703
|
// src/components/popover/Popover.tsx
|
|
6492
6704
|
var React89 = __toESM(require("react"));
|
|
6493
6705
|
var import_react_dom7 = require("react-dom");
|
|
6494
|
-
var
|
|
6706
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
6495
6707
|
var PopoverContext = React89.createContext({
|
|
6496
6708
|
open: false,
|
|
6497
6709
|
setOpen: () => {
|
|
@@ -6522,7 +6734,7 @@ var Popover = React89.forwardRef(
|
|
|
6522
6734
|
},
|
|
6523
6735
|
[open, onOpenChange]
|
|
6524
6736
|
);
|
|
6525
|
-
return /* @__PURE__ */ (0,
|
|
6737
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
6526
6738
|
PopoverContext.Provider,
|
|
6527
6739
|
{
|
|
6528
6740
|
value: { open: current, setOpen, triggerId, contentId, wrapperRef },
|
|
@@ -6535,7 +6747,7 @@ Popover.displayName = "Popover";
|
|
|
6535
6747
|
var PopoverTrigger = React89.forwardRef(
|
|
6536
6748
|
({ className, children, onClick, ...props }, ref) => {
|
|
6537
6749
|
const { open, setOpen, triggerId, contentId } = React89.useContext(PopoverContext);
|
|
6538
|
-
return /* @__PURE__ */ (0,
|
|
6750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
6539
6751
|
"button",
|
|
6540
6752
|
{
|
|
6541
6753
|
ref,
|
|
@@ -6600,7 +6812,7 @@ var PopoverContent = React89.forwardRef(
|
|
|
6600
6812
|
}, [open, pos]);
|
|
6601
6813
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
6602
6814
|
return (0, import_react_dom7.createPortal)(
|
|
6603
|
-
/* @__PURE__ */ (0,
|
|
6815
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
6604
6816
|
"div",
|
|
6605
6817
|
{
|
|
6606
6818
|
ref: (node) => {
|
|
@@ -6635,7 +6847,7 @@ var PopoverContent = React89.forwardRef(
|
|
|
6635
6847
|
PopoverContent.displayName = "PopoverContent";
|
|
6636
6848
|
|
|
6637
6849
|
// src/components/multi-select/MultiSelect.tsx
|
|
6638
|
-
var
|
|
6850
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
6639
6851
|
var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
6640
6852
|
options,
|
|
6641
6853
|
value,
|
|
@@ -6680,16 +6892,16 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6680
6892
|
}, [filtered]);
|
|
6681
6893
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
6682
6894
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
6683
|
-
return /* @__PURE__ */ (0,
|
|
6684
|
-
label && /* @__PURE__ */ (0,
|
|
6685
|
-
visibleChips.length > 0 && /* @__PURE__ */ (0,
|
|
6686
|
-
visibleChips.map((option) => /* @__PURE__ */ (0,
|
|
6895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { ref, className: cn("flex flex-col gap-2", className), ...props, children: [
|
|
6896
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { id: labelId, className: "text-sm font-medium", children: label }),
|
|
6897
|
+
visibleChips.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
6898
|
+
visibleChips.map((option) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
6687
6899
|
"span",
|
|
6688
6900
|
{
|
|
6689
6901
|
className: "inline-flex max-w-full items-center gap-1 rounded-full border border-border bg-muted/60 py-0.5 pl-2.5 pr-1 text-xs",
|
|
6690
6902
|
children: [
|
|
6691
|
-
/* @__PURE__ */ (0,
|
|
6692
|
-
/* @__PURE__ */ (0,
|
|
6903
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "truncate", children: option.label }),
|
|
6904
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
6693
6905
|
"button",
|
|
6694
6906
|
{
|
|
6695
6907
|
type: "button",
|
|
@@ -6697,26 +6909,26 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6697
6909
|
disabled,
|
|
6698
6910
|
"aria-label": `Remove ${option.label}`,
|
|
6699
6911
|
className: "rounded-full p-1 text-muted-foreground hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none",
|
|
6700
|
-
children: /* @__PURE__ */ (0,
|
|
6912
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
6701
6913
|
}
|
|
6702
6914
|
)
|
|
6703
6915
|
]
|
|
6704
6916
|
},
|
|
6705
6917
|
option.value
|
|
6706
6918
|
)),
|
|
6707
|
-
hiddenCount > 0 && /* @__PURE__ */ (0,
|
|
6919
|
+
hiddenCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("span", { className: "self-center text-xs text-muted-foreground", children: [
|
|
6708
6920
|
"+",
|
|
6709
6921
|
hiddenCount,
|
|
6710
6922
|
" more"
|
|
6711
6923
|
] })
|
|
6712
6924
|
] }),
|
|
6713
|
-
/* @__PURE__ */ (0,
|
|
6714
|
-
/* @__PURE__ */ (0,
|
|
6715
|
-
/* @__PURE__ */ (0,
|
|
6716
|
-
/* @__PURE__ */ (0,
|
|
6925
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
6926
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(PopoverTrigger, { "aria-labelledby": label ? labelId : void 0, disabled, className: "w-full justify-between", children: [
|
|
6927
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { children: selected.length > 0 ? `${selected.length} selected` : triggerLabel }),
|
|
6928
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2304" })
|
|
6717
6929
|
] }),
|
|
6718
|
-
/* @__PURE__ */ (0,
|
|
6719
|
-
/* @__PURE__ */ (0,
|
|
6930
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(PopoverContent, { className: "w-80 p-0", children: [
|
|
6931
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
6720
6932
|
Input,
|
|
6721
6933
|
{
|
|
6722
6934
|
type: "search",
|
|
@@ -6727,9 +6939,9 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6727
6939
|
autoFocus: true
|
|
6728
6940
|
}
|
|
6729
6941
|
) }),
|
|
6730
|
-
/* @__PURE__ */ (0,
|
|
6731
|
-
heading && /* @__PURE__ */ (0,
|
|
6732
|
-
/* @__PURE__ */ (0,
|
|
6942
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "max-h-64 overflow-y-auto p-1", children: groups.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "px-3 py-3 text-sm text-muted-foreground", children: emptyText }) : groups.map(({ option, heading }) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(React90.Fragment, { children: [
|
|
6943
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "px-3 pb-1 pt-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: heading }),
|
|
6944
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
6733
6945
|
"label",
|
|
6734
6946
|
{
|
|
6735
6947
|
className: cn(
|
|
@@ -6737,7 +6949,7 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6737
6949
|
option.disabled && "cursor-not-allowed opacity-50"
|
|
6738
6950
|
),
|
|
6739
6951
|
children: [
|
|
6740
|
-
/* @__PURE__ */ (0,
|
|
6952
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
6741
6953
|
Checkbox,
|
|
6742
6954
|
{
|
|
6743
6955
|
checked: selected.includes(option.value),
|
|
@@ -6746,16 +6958,16 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6746
6958
|
className: "mt-0.5"
|
|
6747
6959
|
}
|
|
6748
6960
|
),
|
|
6749
|
-
/* @__PURE__ */ (0,
|
|
6750
|
-
/* @__PURE__ */ (0,
|
|
6751
|
-
option.description && /* @__PURE__ */ (0,
|
|
6961
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("span", { className: "min-w-0", children: [
|
|
6962
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "block", children: option.label }),
|
|
6963
|
+
option.description && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: option.description })
|
|
6752
6964
|
] })
|
|
6753
6965
|
]
|
|
6754
6966
|
}
|
|
6755
6967
|
)
|
|
6756
6968
|
] }, option.value)) }),
|
|
6757
|
-
/* @__PURE__ */ (0,
|
|
6758
|
-
/* @__PURE__ */ (0,
|
|
6969
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex items-center justify-between gap-2 border-t border-border p-2", children: [
|
|
6970
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
6759
6971
|
Button,
|
|
6760
6972
|
{
|
|
6761
6973
|
type: "button",
|
|
@@ -6765,7 +6977,7 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6765
6977
|
children: "Select all"
|
|
6766
6978
|
}
|
|
6767
6979
|
),
|
|
6768
|
-
/* @__PURE__ */ (0,
|
|
6980
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => commit([]), children: "Clear" })
|
|
6769
6981
|
] })
|
|
6770
6982
|
] })
|
|
6771
6983
|
] })
|
|
@@ -6774,7 +6986,7 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6774
6986
|
|
|
6775
6987
|
// src/components/filter-panel/FilterPanel.tsx
|
|
6776
6988
|
var React91 = __toESM(require("react"));
|
|
6777
|
-
var
|
|
6989
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
6778
6990
|
var FilterPanel = React91.forwardRef(function FilterPanel2({
|
|
6779
6991
|
sections,
|
|
6780
6992
|
title = "Filters",
|
|
@@ -6801,15 +7013,15 @@ var FilterPanel = React91.forwardRef(function FilterPanel2({
|
|
|
6801
7013
|
(current) => current.includes(section.title) ? current.filter((title2) => title2 !== section.title) : [...current, section.title]
|
|
6802
7014
|
);
|
|
6803
7015
|
};
|
|
6804
|
-
return /* @__PURE__ */ (0,
|
|
6805
|
-
(title || description) && /* @__PURE__ */ (0,
|
|
6806
|
-
title && /* @__PURE__ */ (0,
|
|
6807
|
-
description && /* @__PURE__ */ (0,
|
|
7016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
7017
|
+
(title || description) && /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "border-b border-border px-4 py-3", children: [
|
|
7018
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("h2", { className: "text-sm font-semibold", children: title }),
|
|
7019
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
6808
7020
|
] }),
|
|
6809
|
-
/* @__PURE__ */ (0,
|
|
7021
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "divide-y divide-border", children: sections.map((section) => {
|
|
6810
7022
|
const expanded = isOpen(section);
|
|
6811
|
-
return /* @__PURE__ */ (0,
|
|
6812
|
-
/* @__PURE__ */ (0,
|
|
7023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "px-4 py-3", children: [
|
|
7024
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("h3", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
6813
7025
|
"button",
|
|
6814
7026
|
{
|
|
6815
7027
|
type: "button",
|
|
@@ -6822,28 +7034,28 @@ var FilterPanel = React91.forwardRef(function FilterPanel2({
|
|
|
6822
7034
|
collapsible && "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6823
7035
|
),
|
|
6824
7036
|
children: [
|
|
6825
|
-
/* @__PURE__ */ (0,
|
|
7037
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("span", { children: [
|
|
6826
7038
|
section.title,
|
|
6827
|
-
section.description && /* @__PURE__ */ (0,
|
|
7039
|
+
section.description && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "mt-0.5 block text-xs font-normal text-muted-foreground", children: section.description })
|
|
6828
7040
|
] }),
|
|
6829
|
-
collapsible && /* @__PURE__ */ (0,
|
|
7041
|
+
collapsible && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { "aria-hidden": "true", className: cn("text-muted-foreground transition-transform", expanded && "rotate-180"), children: "\u2304" })
|
|
6830
7042
|
]
|
|
6831
7043
|
}
|
|
6832
7044
|
) }),
|
|
6833
|
-
expanded && /* @__PURE__ */ (0,
|
|
7045
|
+
expanded && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { id: `filter-section-${section.title.replace(/\s+/g, "-").toLowerCase()}`, className: "mt-3", children: section.content })
|
|
6834
7046
|
] }, section.title);
|
|
6835
7047
|
}) }),
|
|
6836
|
-
(onReset || onApply || actions) && /* @__PURE__ */ (0,
|
|
7048
|
+
(onReset || onApply || actions) && /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
6837
7049
|
actions,
|
|
6838
|
-
onReset && /* @__PURE__ */ (0,
|
|
6839
|
-
onApply && /* @__PURE__ */ (0,
|
|
7050
|
+
onReset && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, className: "ml-auto", children: resetLabel }),
|
|
7051
|
+
onApply && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Button, { type: "button", size: "sm", onClick: onApply, children: applyLabel })
|
|
6840
7052
|
] })
|
|
6841
7053
|
] });
|
|
6842
7054
|
});
|
|
6843
7055
|
|
|
6844
7056
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
6845
7057
|
var React92 = __toESM(require("react"));
|
|
6846
|
-
var
|
|
7058
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
6847
7059
|
var DEFAULT_PRESETS = [
|
|
6848
7060
|
{ label: "7 days", days: 7 },
|
|
6849
7061
|
{ label: "30 days", days: 30 },
|
|
@@ -6895,8 +7107,8 @@ var DateRangePicker = React92.forwardRef(
|
|
|
6895
7107
|
}
|
|
6896
7108
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
6897
7109
|
};
|
|
6898
|
-
return /* @__PURE__ */ (0,
|
|
6899
|
-
showPresets && presets.length > 0 && /* @__PURE__ */ (0,
|
|
7110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { ref, className: cn("flex flex-col gap-3", className), ...props, children: [
|
|
7111
|
+
showPresets && presets.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "flex flex-wrap gap-2", children: presets.map((preset) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6900
7112
|
Button,
|
|
6901
7113
|
{
|
|
6902
7114
|
type: "button",
|
|
@@ -6908,10 +7120,10 @@ var DateRangePicker = React92.forwardRef(
|
|
|
6908
7120
|
},
|
|
6909
7121
|
preset.label
|
|
6910
7122
|
)) }),
|
|
6911
|
-
/* @__PURE__ */ (0,
|
|
6912
|
-
/* @__PURE__ */ (0,
|
|
6913
|
-
/* @__PURE__ */ (0,
|
|
6914
|
-
/* @__PURE__ */ (0,
|
|
7123
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
7124
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { children: [
|
|
7125
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
7126
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6915
7127
|
DatePicker,
|
|
6916
7128
|
{
|
|
6917
7129
|
id: startId,
|
|
@@ -6923,9 +7135,9 @@ var DateRangePicker = React92.forwardRef(
|
|
|
6923
7135
|
}
|
|
6924
7136
|
)
|
|
6925
7137
|
] }),
|
|
6926
|
-
/* @__PURE__ */ (0,
|
|
6927
|
-
/* @__PURE__ */ (0,
|
|
6928
|
-
/* @__PURE__ */ (0,
|
|
7138
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { children: [
|
|
7139
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
7140
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6929
7141
|
DatePicker,
|
|
6930
7142
|
{
|
|
6931
7143
|
id: endId,
|
|
@@ -6944,7 +7156,7 @@ var DateRangePicker = React92.forwardRef(
|
|
|
6944
7156
|
|
|
6945
7157
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
6946
7158
|
var React93 = __toESM(require("react"));
|
|
6947
|
-
var
|
|
7159
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
6948
7160
|
var AppliedFilters = React93.forwardRef(
|
|
6949
7161
|
function AppliedFilters2({
|
|
6950
7162
|
filters,
|
|
@@ -6958,9 +7170,9 @@ var AppliedFilters = React93.forwardRef(
|
|
|
6958
7170
|
}, ref) {
|
|
6959
7171
|
const summary = label ?? `${filters.length} active`;
|
|
6960
7172
|
if (filters.length === 0) {
|
|
6961
|
-
return emptyLabel ? /* @__PURE__ */ (0,
|
|
7173
|
+
return emptyLabel ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
6962
7174
|
}
|
|
6963
|
-
return /* @__PURE__ */ (0,
|
|
7175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
6964
7176
|
"div",
|
|
6965
7177
|
{
|
|
6966
7178
|
ref,
|
|
@@ -6968,9 +7180,9 @@ var AppliedFilters = React93.forwardRef(
|
|
|
6968
7180
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
6969
7181
|
...props,
|
|
6970
7182
|
children: [
|
|
6971
|
-
/* @__PURE__ */ (0,
|
|
6972
|
-
/* @__PURE__ */ (0,
|
|
6973
|
-
onEdit && /* @__PURE__ */ (0,
|
|
7183
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: summary }),
|
|
7184
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(FilterChips, { filters, onClearAll }),
|
|
7185
|
+
onEdit && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: onEdit, children: editLabel })
|
|
6974
7186
|
]
|
|
6975
7187
|
}
|
|
6976
7188
|
);
|
|
@@ -6981,7 +7193,7 @@ var AppliedFilters = React93.forwardRef(
|
|
|
6981
7193
|
var React94 = __toESM(require("react"));
|
|
6982
7194
|
var import_react_dom8 = require("react-dom");
|
|
6983
7195
|
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
6984
|
-
var
|
|
7196
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
6985
7197
|
var MenuContext = React94.createContext({
|
|
6986
7198
|
open: false,
|
|
6987
7199
|
setOpen: () => {
|
|
@@ -7013,7 +7225,7 @@ var Menu = React94.forwardRef(
|
|
|
7013
7225
|
},
|
|
7014
7226
|
[open, onOpenChange]
|
|
7015
7227
|
);
|
|
7016
|
-
return /* @__PURE__ */ (0,
|
|
7228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7017
7229
|
MenuContext.Provider,
|
|
7018
7230
|
{
|
|
7019
7231
|
value: { open: current, setOpen, activeIndex, setActiveIndex, wrapperRef },
|
|
@@ -7026,7 +7238,7 @@ Menu.displayName = "Menu";
|
|
|
7026
7238
|
var MenuTrigger = React94.forwardRef(
|
|
7027
7239
|
({ className, children, ...props }, ref) => {
|
|
7028
7240
|
const { open, setOpen } = React94.useContext(MenuContext);
|
|
7029
|
-
return /* @__PURE__ */ (0,
|
|
7241
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7030
7242
|
"button",
|
|
7031
7243
|
{
|
|
7032
7244
|
ref,
|
|
@@ -7116,7 +7328,7 @@ var MenuContent = React94.forwardRef(
|
|
|
7116
7328
|
};
|
|
7117
7329
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
7118
7330
|
return (0, import_react_dom8.createPortal)(
|
|
7119
|
-
/* @__PURE__ */ (0,
|
|
7331
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7120
7332
|
"div",
|
|
7121
7333
|
{
|
|
7122
7334
|
ref: (node) => {
|
|
@@ -7145,7 +7357,7 @@ var MenuItem = React94.forwardRef(
|
|
|
7145
7357
|
const { setOpen } = React94.useContext(MenuContext);
|
|
7146
7358
|
const Comp = asChild ? import_react_slot5.Slot : "button";
|
|
7147
7359
|
const typeProp = asChild ? {} : { type: "button" };
|
|
7148
|
-
return /* @__PURE__ */ (0,
|
|
7360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7149
7361
|
Comp,
|
|
7150
7362
|
{
|
|
7151
7363
|
ref,
|
|
@@ -7168,11 +7380,11 @@ var MenuItem = React94.forwardRef(
|
|
|
7168
7380
|
);
|
|
7169
7381
|
MenuItem.displayName = "MenuItem";
|
|
7170
7382
|
var MenuSeparator = React94.forwardRef(
|
|
7171
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
7383
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { ref, role: "separator", className: cn("-mx-1 my-1 h-px bg-border", className), ...props })
|
|
7172
7384
|
);
|
|
7173
7385
|
MenuSeparator.displayName = "MenuSeparator";
|
|
7174
7386
|
var MenuLabel = React94.forwardRef(
|
|
7175
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
7387
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7176
7388
|
"div",
|
|
7177
7389
|
{
|
|
7178
7390
|
ref,
|
|
@@ -7186,7 +7398,7 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
7186
7398
|
// src/components/alert/Alert.tsx
|
|
7187
7399
|
var React95 = __toESM(require("react"));
|
|
7188
7400
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
7189
|
-
var
|
|
7401
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
7190
7402
|
var alertVariants = (0, import_class_variance_authority8.cva)(
|
|
7191
7403
|
"relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
|
|
7192
7404
|
{
|
|
@@ -7207,7 +7419,7 @@ var alertVariants = (0, import_class_variance_authority8.cva)(
|
|
|
7207
7419
|
}
|
|
7208
7420
|
);
|
|
7209
7421
|
var Alert = React95.forwardRef(
|
|
7210
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */ (0,
|
|
7422
|
+
({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7211
7423
|
"div",
|
|
7212
7424
|
{
|
|
7213
7425
|
ref,
|
|
@@ -7219,7 +7431,7 @@ var Alert = React95.forwardRef(
|
|
|
7219
7431
|
);
|
|
7220
7432
|
Alert.displayName = "Alert";
|
|
7221
7433
|
var AlertTitle = React95.forwardRef(
|
|
7222
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
7434
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7223
7435
|
"h5",
|
|
7224
7436
|
{
|
|
7225
7437
|
ref,
|
|
@@ -7230,7 +7442,7 @@ var AlertTitle = React95.forwardRef(
|
|
|
7230
7442
|
);
|
|
7231
7443
|
AlertTitle.displayName = "AlertTitle";
|
|
7232
7444
|
var AlertDescription = React95.forwardRef(
|
|
7233
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
7445
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7234
7446
|
"div",
|
|
7235
7447
|
{
|
|
7236
7448
|
ref,
|
|
@@ -7243,22 +7455,22 @@ AlertDescription.displayName = "AlertDescription";
|
|
|
7243
7455
|
|
|
7244
7456
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
7245
7457
|
var React96 = __toESM(require("react"));
|
|
7246
|
-
var
|
|
7458
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
7247
7459
|
var Breadcrumb = React96.forwardRef(
|
|
7248
7460
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
7249
7461
|
const LinkEl = linkComponent ?? "a";
|
|
7250
|
-
return /* @__PURE__ */ (0,
|
|
7462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7251
7463
|
"nav",
|
|
7252
7464
|
{
|
|
7253
7465
|
ref,
|
|
7254
7466
|
"aria-label": label,
|
|
7255
7467
|
className: cn("flex items-center space-x-1.5 text-sm text-muted-foreground", className),
|
|
7256
7468
|
...props,
|
|
7257
|
-
children: /* @__PURE__ */ (0,
|
|
7469
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("ol", { className: "flex flex-wrap items-center space-x-1.5", children: items.map((item, index) => {
|
|
7258
7470
|
const isLast = index === items.length - 1;
|
|
7259
|
-
return /* @__PURE__ */ (0,
|
|
7260
|
-
index > 0 && /* @__PURE__ */ (0,
|
|
7261
|
-
item.href && !isLast ? /* @__PURE__ */ (0,
|
|
7471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("li", { className: cn("flex items-center space-x-1.5", truncateCurrent && isLast && "min-w-0"), children: [
|
|
7472
|
+
index > 0 && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { "aria-hidden": "true", className: "text-muted-foreground/50", children: separator }),
|
|
7473
|
+
item.href && !isLast ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7262
7474
|
LinkEl,
|
|
7263
7475
|
{
|
|
7264
7476
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -7269,7 +7481,7 @@ var Breadcrumb = React96.forwardRef(
|
|
|
7269
7481
|
} : void 0,
|
|
7270
7482
|
children: item.label
|
|
7271
7483
|
}
|
|
7272
|
-
) : /* @__PURE__ */ (0,
|
|
7484
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7273
7485
|
"span",
|
|
7274
7486
|
{
|
|
7275
7487
|
"aria-current": isLast ? "page" : void 0,
|
|
@@ -7305,6 +7517,7 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
7305
7517
|
AvatarImage,
|
|
7306
7518
|
Badge,
|
|
7307
7519
|
Block,
|
|
7520
|
+
BottomNav,
|
|
7308
7521
|
Breadcrumb,
|
|
7309
7522
|
Button,
|
|
7310
7523
|
ButtonGroup,
|