@slipstream-ui/core 0.11.9 → 0.11.10
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 +117 -2
- package/dist/index.d.ts +117 -2
- package/dist/index.js +1084 -827
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1082 -827
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +1 -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 +1 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +1 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +1 -1
- 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/calendar.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/cover-image.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-popover.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 +1 -1
- 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/image.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-toolbar.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/media-card.manifest.json +161 -0
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/month-schedule.manifest.json +217 -0
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +1 -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/media-card/MediaCard.d.ts +61 -0
- package/dist/src/components/media-card/MediaCard.js +88 -0
- package/dist/src/components/media-card/MediaCard.js.map +1 -0
- package/dist/src/components/media-card/MediaCard.mjs +54 -0
- package/dist/src/components/media-card/MediaCard.mjs.map +1 -0
- package/dist/src/components/media-card/index.d.ts +1 -0
- package/dist/src/components/media-card/index.js +23 -0
- package/dist/src/components/media-card/index.js.map +1 -0
- package/dist/src/components/media-card/index.mjs +2 -0
- package/dist/src/components/media-card/index.mjs.map +1 -0
- package/dist/src/components/month-schedule/MonthSchedule.d.ts +56 -0
- package/dist/src/components/month-schedule/MonthSchedule.js +245 -0
- package/dist/src/components/month-schedule/MonthSchedule.js.map +1 -0
- package/dist/src/components/month-schedule/MonthSchedule.mjs +219 -0
- package/dist/src/components/month-schedule/MonthSchedule.mjs.map +1 -0
- package/dist/src/components/month-schedule/index.d.ts +1 -0
- package/dist/src/components/month-schedule/index.js +23 -0
- package/dist/src/components/month-schedule/index.js.map +1 -0
- package/dist/src/components/month-schedule/index.mjs +2 -0
- package/dist/src/components/month-schedule/index.mjs.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/media-card/MediaCard.test.tsx +97 -0
- package/src/components/media-card/MediaCard.tsx +116 -0
- package/src/components/media-card/index.ts +1 -0
- package/src/components/month-schedule/MonthSchedule.test.tsx +137 -0
- package/src/components/month-schedule/MonthSchedule.tsx +332 -0
- package/src/components/month-schedule/index.ts +1 -0
- package/src/index.ts +2 -0
- package/src/manifests/accordion.manifest.json +1 -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 +1 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +1 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +1 -1
- 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/calendar.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/cover-image.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-popover.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 +1 -1
- 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/image.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-toolbar.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/media-card.manifest.json +161 -0
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/month-schedule.manifest.json +217 -0
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +1 -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.mjs
CHANGED
|
@@ -3433,14 +3433,218 @@ function partsOf(key) {
|
|
|
3433
3433
|
return { year: parts?.year ?? 1970, month: parts?.month ?? 0 };
|
|
3434
3434
|
}
|
|
3435
3435
|
|
|
3436
|
-
// src/components/
|
|
3436
|
+
// src/components/month-schedule/MonthSchedule.tsx
|
|
3437
3437
|
import * as React39 from "react";
|
|
3438
|
+
import { jsx as jsx38, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3439
|
+
var TYPE_TONES = [
|
|
3440
|
+
"outline-info",
|
|
3441
|
+
"outline-success",
|
|
3442
|
+
"outline-warning",
|
|
3443
|
+
"outline-danger",
|
|
3444
|
+
"outline"
|
|
3445
|
+
];
|
|
3446
|
+
function typeTone(type, legend) {
|
|
3447
|
+
if (!type) return "outline";
|
|
3448
|
+
const index = legend?.findIndex((item) => item.type === type) ?? -1;
|
|
3449
|
+
if (index >= 0) return TYPE_TONES[index % TYPE_TONES.length];
|
|
3450
|
+
let hash = 0;
|
|
3451
|
+
for (let i = 0; i < type.length; i += 1) hash = hash * 31 + type.charCodeAt(i) >>> 0;
|
|
3452
|
+
return TYPE_TONES[hash % TYPE_TONES.length];
|
|
3453
|
+
}
|
|
3454
|
+
function monthOf(key) {
|
|
3455
|
+
const parts = parseDateKey(`${key}-01`);
|
|
3456
|
+
return { year: parts?.year ?? 1970, month: parts?.month ?? 0 };
|
|
3457
|
+
}
|
|
3458
|
+
function shiftMonth(monthKey, delta) {
|
|
3459
|
+
const { year, month } = monthOf(monthKey);
|
|
3460
|
+
const shifted = addMonths(`${year}-${String(month + 1).padStart(2, "0")}-01`, delta);
|
|
3461
|
+
return shifted.slice(0, 7);
|
|
3462
|
+
}
|
|
3463
|
+
function MonthSchedule({
|
|
3464
|
+
events,
|
|
3465
|
+
getDate,
|
|
3466
|
+
getLabel,
|
|
3467
|
+
getType,
|
|
3468
|
+
getHref,
|
|
3469
|
+
month,
|
|
3470
|
+
defaultMonth,
|
|
3471
|
+
onMonthChange,
|
|
3472
|
+
today,
|
|
3473
|
+
locale = "en-US",
|
|
3474
|
+
weekStartsOn = 0,
|
|
3475
|
+
maxPerDay = 3,
|
|
3476
|
+
legend,
|
|
3477
|
+
agendaBreakpoint = "md",
|
|
3478
|
+
linkComponent,
|
|
3479
|
+
linkHrefProp = "href",
|
|
3480
|
+
"aria-label": ariaLabel,
|
|
3481
|
+
className
|
|
3482
|
+
}) {
|
|
3483
|
+
const resolvedToday = today ?? todayKey();
|
|
3484
|
+
const Link3 = linkComponent ?? "a";
|
|
3485
|
+
const [internalMonth, setInternalMonth] = React39.useState(
|
|
3486
|
+
() => month ?? defaultMonth ?? resolvedToday.slice(0, 7)
|
|
3487
|
+
);
|
|
3488
|
+
const activeMonth = month ?? internalMonth;
|
|
3489
|
+
const { year, month: monthIndex } = monthOf(activeMonth);
|
|
3490
|
+
const byDay = React39.useMemo(() => {
|
|
3491
|
+
const map = /* @__PURE__ */ new Map();
|
|
3492
|
+
for (const event of events) {
|
|
3493
|
+
const key = getDate(event);
|
|
3494
|
+
const list = map.get(key);
|
|
3495
|
+
if (list) list.push(event);
|
|
3496
|
+
else map.set(key, [event]);
|
|
3497
|
+
}
|
|
3498
|
+
for (const list of map.values()) {
|
|
3499
|
+
list.sort((a, b) => getLabel(a).localeCompare(getLabel(b)));
|
|
3500
|
+
}
|
|
3501
|
+
return map;
|
|
3502
|
+
}, [events, getDate, getLabel]);
|
|
3503
|
+
const weeks = React39.useMemo(
|
|
3504
|
+
() => calendarWeeks(year, monthIndex, weekStartsOn),
|
|
3505
|
+
[year, monthIndex, weekStartsOn]
|
|
3506
|
+
);
|
|
3507
|
+
const weekdays = React39.useMemo(
|
|
3508
|
+
() => weekdayLabels(locale, weekStartsOn),
|
|
3509
|
+
[locale, weekStartsOn]
|
|
3510
|
+
);
|
|
3511
|
+
const monthName = monthLabel(year, monthIndex, locale);
|
|
3512
|
+
const agendaDays = React39.useMemo(
|
|
3513
|
+
() => [...byDay.keys()].filter((key) => key.startsWith(activeMonth)).sort().map((key) => ({ key, items: byDay.get(key) ?? [] })),
|
|
3514
|
+
[byDay, activeMonth]
|
|
3515
|
+
);
|
|
3516
|
+
const page = (delta) => {
|
|
3517
|
+
const next = shiftMonth(activeMonth, delta);
|
|
3518
|
+
if (month === void 0) setInternalMonth(next);
|
|
3519
|
+
onMonthChange?.(next);
|
|
3520
|
+
};
|
|
3521
|
+
const renderEvent = (event, key) => {
|
|
3522
|
+
const label = getLabel(event);
|
|
3523
|
+
const type = getType?.(event);
|
|
3524
|
+
const tone = typeTone(type, legend);
|
|
3525
|
+
const href = getHref?.(event);
|
|
3526
|
+
const chip = /* @__PURE__ */ jsx38(Badge, { variant: tone, size: "sm", className: "max-w-full truncate", children: label });
|
|
3527
|
+
if (!href) return /* @__PURE__ */ jsx38("span", { children: chip }, key);
|
|
3528
|
+
const destination = linkHrefProp === "to" ? { to: href } : { href };
|
|
3529
|
+
return /* @__PURE__ */ jsx38(
|
|
3530
|
+
Link3,
|
|
3531
|
+
{
|
|
3532
|
+
...destination,
|
|
3533
|
+
className: "block max-w-full rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3534
|
+
children: chip
|
|
3535
|
+
},
|
|
3536
|
+
key
|
|
3537
|
+
);
|
|
3538
|
+
};
|
|
3539
|
+
const gridHidden = agendaBreakpoint === "sm" ? "hidden sm:block" : "hidden md:block";
|
|
3540
|
+
const agendaHidden = agendaBreakpoint === "sm" ? "sm:hidden" : "md:hidden";
|
|
3541
|
+
return /* @__PURE__ */ jsxs26("div", { className: cn("w-full select-none", className), children: [
|
|
3542
|
+
/* @__PURE__ */ jsxs26("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
3543
|
+
/* @__PURE__ */ jsx38(
|
|
3544
|
+
Button,
|
|
3545
|
+
{
|
|
3546
|
+
type: "button",
|
|
3547
|
+
variant: "ghost",
|
|
3548
|
+
size: "icon",
|
|
3549
|
+
"aria-label": "Previous month",
|
|
3550
|
+
onClick: () => page(-1),
|
|
3551
|
+
children: "\u2039"
|
|
3552
|
+
}
|
|
3553
|
+
),
|
|
3554
|
+
/* @__PURE__ */ jsx38("div", { "aria-live": "polite", className: "text-sm font-semibold text-foreground", children: monthName }),
|
|
3555
|
+
/* @__PURE__ */ jsx38(
|
|
3556
|
+
Button,
|
|
3557
|
+
{
|
|
3558
|
+
type: "button",
|
|
3559
|
+
variant: "ghost",
|
|
3560
|
+
size: "icon",
|
|
3561
|
+
"aria-label": "Next month",
|
|
3562
|
+
onClick: () => page(1),
|
|
3563
|
+
children: "\u203A"
|
|
3564
|
+
}
|
|
3565
|
+
)
|
|
3566
|
+
] }),
|
|
3567
|
+
/* @__PURE__ */ jsxs26(
|
|
3568
|
+
"div",
|
|
3569
|
+
{
|
|
3570
|
+
role: "grid",
|
|
3571
|
+
"aria-label": ariaLabel ?? monthName,
|
|
3572
|
+
className: cn("flex flex-col gap-1", gridHidden),
|
|
3573
|
+
children: [
|
|
3574
|
+
/* @__PURE__ */ jsx38("div", { role: "row", className: "grid grid-cols-7 gap-1 text-center text-xs text-muted-foreground", children: weekdays.map((weekday) => /* @__PURE__ */ jsx38("span", { role: "columnheader", "aria-label": weekday, className: "py-1", children: weekday }, weekday)) }),
|
|
3575
|
+
weeks.map((week) => /* @__PURE__ */ jsx38("div", { role: "row", className: "grid grid-cols-7 gap-1", children: week.map((day) => {
|
|
3576
|
+
const dayEvents = byDay.get(day.key) ?? [];
|
|
3577
|
+
const visible = dayEvents.slice(0, maxPerDay);
|
|
3578
|
+
const overflow = dayEvents.length - visible.length;
|
|
3579
|
+
const isToday = day.key === resolvedToday;
|
|
3580
|
+
return /* @__PURE__ */ jsxs26(
|
|
3581
|
+
"div",
|
|
3582
|
+
{
|
|
3583
|
+
role: "gridcell",
|
|
3584
|
+
"aria-current": isToday ? "date" : void 0,
|
|
3585
|
+
className: cn(
|
|
3586
|
+
"flex min-h-16 flex-col gap-0.5 rounded-md border border-transparent p-1",
|
|
3587
|
+
!day.inMonth && "opacity-50",
|
|
3588
|
+
isToday && "border-primary/40 bg-primary/5"
|
|
3589
|
+
),
|
|
3590
|
+
children: [
|
|
3591
|
+
/* @__PURE__ */ jsx38(
|
|
3592
|
+
"span",
|
|
3593
|
+
{
|
|
3594
|
+
className: cn(
|
|
3595
|
+
"self-start px-1 text-xs tabular-nums",
|
|
3596
|
+
isToday ? "font-semibold text-primary-ink" : "text-muted-foreground"
|
|
3597
|
+
),
|
|
3598
|
+
children: day.day
|
|
3599
|
+
}
|
|
3600
|
+
),
|
|
3601
|
+
visible.map(
|
|
3602
|
+
(event, index) => renderEvent(event, `${day.key}-${index}-${getLabel(event)}`)
|
|
3603
|
+
),
|
|
3604
|
+
overflow > 0 && /* @__PURE__ */ jsxs26("span", { className: "px-1 text-[11px] text-muted-foreground", children: [
|
|
3605
|
+
"+",
|
|
3606
|
+
overflow,
|
|
3607
|
+
" more"
|
|
3608
|
+
] })
|
|
3609
|
+
]
|
|
3610
|
+
},
|
|
3611
|
+
day.key
|
|
3612
|
+
);
|
|
3613
|
+
}) }, week[0]?.key))
|
|
3614
|
+
]
|
|
3615
|
+
}
|
|
3616
|
+
),
|
|
3617
|
+
/* @__PURE__ */ jsx38("div", { className: cn("flex flex-col gap-3", agendaHidden), children: agendaDays.length === 0 ? /* @__PURE__ */ jsx38("p", { className: "py-6 text-center text-sm text-muted-foreground", children: "No events this month." }) : agendaDays.map(({ key, items }) => /* @__PURE__ */ jsxs26("section", { "aria-label": formatDateLabel(key, locale), children: [
|
|
3618
|
+
/* @__PURE__ */ jsx38("h3", { className: "mb-1 text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: formatDateLabel(key, locale) }),
|
|
3619
|
+
/* @__PURE__ */ jsx38("ul", { className: "flex flex-col gap-1", children: items.map((event, index) => {
|
|
3620
|
+
const label = getLabel(event);
|
|
3621
|
+
const type = getType?.(event);
|
|
3622
|
+
const tone = typeTone(type, legend);
|
|
3623
|
+
const href = getHref?.(event);
|
|
3624
|
+
const row = /* @__PURE__ */ jsx38(Badge, { variant: tone, size: "sm", className: "max-w-full truncate", children: label });
|
|
3625
|
+
return /* @__PURE__ */ jsx38("li", { children: href ? /* @__PURE__ */ jsx38(
|
|
3626
|
+
Link3,
|
|
3627
|
+
{
|
|
3628
|
+
...linkHrefProp === "to" ? { to: href } : { href },
|
|
3629
|
+
className: "block max-w-full rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3630
|
+
children: row
|
|
3631
|
+
}
|
|
3632
|
+
) : row }, `${key}-${index}-${label}`);
|
|
3633
|
+
}) })
|
|
3634
|
+
] }, key)) }),
|
|
3635
|
+
legend && legend.length > 0 && /* @__PURE__ */ jsx38("ul", { className: "mt-3 flex flex-wrap gap-x-4 gap-y-1", "aria-label": "Event types", children: legend.map((item) => /* @__PURE__ */ jsx38("li", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: /* @__PURE__ */ jsx38(Badge, { variant: typeTone(item.type, legend), size: "sm", children: item.label }) }, item.type)) })
|
|
3636
|
+
] });
|
|
3637
|
+
}
|
|
3638
|
+
MonthSchedule.displayName = "MonthSchedule";
|
|
3639
|
+
|
|
3640
|
+
// src/components/card/Card.tsx
|
|
3641
|
+
import * as React40 from "react";
|
|
3438
3642
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
3439
|
-
import { jsx as
|
|
3440
|
-
var Card =
|
|
3643
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3644
|
+
var Card = React40.forwardRef(
|
|
3441
3645
|
({ className, asChild = false, ...props }, ref) => {
|
|
3442
3646
|
const Comp = asChild ? Slot3 : "div";
|
|
3443
|
-
return /* @__PURE__ */
|
|
3647
|
+
return /* @__PURE__ */ jsx39(
|
|
3444
3648
|
Comp,
|
|
3445
3649
|
{
|
|
3446
3650
|
ref,
|
|
@@ -3451,12 +3655,12 @@ var Card = React39.forwardRef(
|
|
|
3451
3655
|
}
|
|
3452
3656
|
);
|
|
3453
3657
|
Card.displayName = "Card";
|
|
3454
|
-
var CardHeader =
|
|
3455
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3658
|
+
var CardHeader = React40.forwardRef(
|
|
3659
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx39("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
3456
3660
|
);
|
|
3457
3661
|
CardHeader.displayName = "CardHeader";
|
|
3458
|
-
var CardTitle =
|
|
3459
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3662
|
+
var CardTitle = React40.forwardRef(
|
|
3663
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
3460
3664
|
"h3",
|
|
3461
3665
|
{
|
|
3462
3666
|
ref,
|
|
@@ -3466,22 +3670,22 @@ var CardTitle = React39.forwardRef(
|
|
|
3466
3670
|
)
|
|
3467
3671
|
);
|
|
3468
3672
|
CardTitle.displayName = "CardTitle";
|
|
3469
|
-
var CardDescription =
|
|
3470
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3673
|
+
var CardDescription = React40.forwardRef(
|
|
3674
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx39("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
3471
3675
|
);
|
|
3472
3676
|
CardDescription.displayName = "CardDescription";
|
|
3473
|
-
var CardContent =
|
|
3474
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3677
|
+
var CardContent = React40.forwardRef(
|
|
3678
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx39("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
3475
3679
|
);
|
|
3476
3680
|
CardContent.displayName = "CardContent";
|
|
3477
|
-
var CardFooter =
|
|
3478
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3681
|
+
var CardFooter = React40.forwardRef(
|
|
3682
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx39("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
3479
3683
|
);
|
|
3480
3684
|
CardFooter.displayName = "CardFooter";
|
|
3481
3685
|
|
|
3482
3686
|
// src/components/confirm-dialog/ConfirmDialog.tsx
|
|
3483
|
-
import * as
|
|
3484
|
-
import { jsx as
|
|
3687
|
+
import * as React41 from "react";
|
|
3688
|
+
import { jsx as jsx40, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3485
3689
|
function ConfirmDialog({
|
|
3486
3690
|
open,
|
|
3487
3691
|
onOpenChange,
|
|
@@ -3494,7 +3698,7 @@ function ConfirmDialog({
|
|
|
3494
3698
|
closeOnConfirm = true,
|
|
3495
3699
|
children
|
|
3496
3700
|
}) {
|
|
3497
|
-
const [pending, setPending] =
|
|
3701
|
+
const [pending, setPending] = React41.useState(false);
|
|
3498
3702
|
const handleConfirm = async () => {
|
|
3499
3703
|
try {
|
|
3500
3704
|
setPending(true);
|
|
@@ -3504,7 +3708,7 @@ function ConfirmDialog({
|
|
|
3504
3708
|
setPending(false);
|
|
3505
3709
|
}
|
|
3506
3710
|
};
|
|
3507
|
-
return /* @__PURE__ */
|
|
3711
|
+
return /* @__PURE__ */ jsx40(
|
|
3508
3712
|
Dialog,
|
|
3509
3713
|
{
|
|
3510
3714
|
open,
|
|
@@ -3515,9 +3719,9 @@ function ConfirmDialog({
|
|
|
3515
3719
|
title,
|
|
3516
3720
|
description,
|
|
3517
3721
|
size: "sm",
|
|
3518
|
-
footer: /* @__PURE__ */
|
|
3519
|
-
/* @__PURE__ */
|
|
3520
|
-
/* @__PURE__ */
|
|
3722
|
+
footer: /* @__PURE__ */ jsxs27(DialogFooter, { children: [
|
|
3723
|
+
/* @__PURE__ */ jsx40(Button, { variant: "ghost", onClick: () => onOpenChange(false), disabled: pending, children: cancelLabel }),
|
|
3724
|
+
/* @__PURE__ */ jsx40(
|
|
3521
3725
|
Button,
|
|
3522
3726
|
{
|
|
3523
3727
|
variant: destructive ? "destructive" : "default",
|
|
@@ -3533,8 +3737,8 @@ function ConfirmDialog({
|
|
|
3533
3737
|
}
|
|
3534
3738
|
|
|
3535
3739
|
// src/components/table-of-contents/TableOfContents.tsx
|
|
3536
|
-
import * as
|
|
3537
|
-
import { jsx as
|
|
3740
|
+
import * as React42 from "react";
|
|
3741
|
+
import { jsx as jsx41, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3538
3742
|
function TableOfContents({
|
|
3539
3743
|
headings,
|
|
3540
3744
|
activeId,
|
|
@@ -3546,17 +3750,17 @@ function TableOfContents({
|
|
|
3546
3750
|
className,
|
|
3547
3751
|
...props
|
|
3548
3752
|
}) {
|
|
3549
|
-
return /* @__PURE__ */
|
|
3753
|
+
return /* @__PURE__ */ jsxs28(
|
|
3550
3754
|
"nav",
|
|
3551
3755
|
{
|
|
3552
3756
|
"aria-label": ariaLabel ?? label,
|
|
3553
3757
|
className: cn("text-sm", sticky && "sticky top-20 max-h-[calc(100vh-6rem)] overflow-y-auto", className),
|
|
3554
3758
|
...props,
|
|
3555
3759
|
children: [
|
|
3556
|
-
/* @__PURE__ */
|
|
3557
|
-
/* @__PURE__ */
|
|
3760
|
+
/* @__PURE__ */ jsx41("p", { className: cn("mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground", labelClassName), children: label }),
|
|
3761
|
+
/* @__PURE__ */ jsx41("ul", { className: "space-y-1 border-l border-border", children: headings.map((heading) => {
|
|
3558
3762
|
const active = heading.id === activeId;
|
|
3559
|
-
return /* @__PURE__ */
|
|
3763
|
+
return /* @__PURE__ */ jsx41("li", { style: { paddingLeft: `${(heading.level - 2) * 0.75}rem` }, children: /* @__PURE__ */ jsx41(
|
|
3560
3764
|
"a",
|
|
3561
3765
|
{
|
|
3562
3766
|
href: `#${heading.id}`,
|
|
@@ -3575,10 +3779,10 @@ function TableOfContents({
|
|
|
3575
3779
|
);
|
|
3576
3780
|
}
|
|
3577
3781
|
function useScrollSpy(ids, options) {
|
|
3578
|
-
const [activeId, setActiveId] =
|
|
3782
|
+
const [activeId, setActiveId] = React42.useState();
|
|
3579
3783
|
const idKey = ids.join("|");
|
|
3580
3784
|
const rootMargin = options?.rootMargin ?? "0px 0px -70% 0px";
|
|
3581
|
-
|
|
3785
|
+
React42.useEffect(() => {
|
|
3582
3786
|
if (idKey.length === 0 || typeof IntersectionObserver === "undefined") return;
|
|
3583
3787
|
const elements = idKey.split("|").map((id) => document.getElementById(id)).filter((element) => element !== null);
|
|
3584
3788
|
if (elements.length === 0) return;
|
|
@@ -3593,7 +3797,7 @@ function useScrollSpy(ids, options) {
|
|
|
3593
3797
|
elements.forEach((element) => observer.observe(element));
|
|
3594
3798
|
return () => observer.disconnect();
|
|
3595
3799
|
}, [idKey, rootMargin]);
|
|
3596
|
-
|
|
3800
|
+
React42.useEffect(() => {
|
|
3597
3801
|
if (typeof window === "undefined") return;
|
|
3598
3802
|
const ids2 = idKey.split("|").filter(Boolean);
|
|
3599
3803
|
const syncFromHash = () => {
|
|
@@ -3608,15 +3812,15 @@ function useScrollSpy(ids, options) {
|
|
|
3608
3812
|
}
|
|
3609
3813
|
|
|
3610
3814
|
// src/components/prose/Prose.tsx
|
|
3611
|
-
import * as
|
|
3612
|
-
import { jsx as
|
|
3815
|
+
import * as React43 from "react";
|
|
3816
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3613
3817
|
var sizeClasses3 = {
|
|
3614
3818
|
sm: "text-sm [&_h2]:text-xl [&_h3]:text-lg",
|
|
3615
3819
|
md: "text-base [&_h2]:text-2xl [&_h3]:text-xl",
|
|
3616
3820
|
lg: "text-lg [&_h2]:text-3xl [&_h3]:text-2xl"
|
|
3617
3821
|
};
|
|
3618
|
-
var Prose =
|
|
3619
|
-
return /* @__PURE__ */
|
|
3822
|
+
var Prose = React43.forwardRef(function Prose2({ size = "md", className, ...props }, ref) {
|
|
3823
|
+
return /* @__PURE__ */ jsx42(
|
|
3620
3824
|
"div",
|
|
3621
3825
|
{
|
|
3622
3826
|
ref,
|
|
@@ -3655,7 +3859,7 @@ var Prose = React42.forwardRef(function Prose2({ size = "md", className, ...prop
|
|
|
3655
3859
|
});
|
|
3656
3860
|
|
|
3657
3861
|
// src/components/site-footer/SiteFooter.tsx
|
|
3658
|
-
import { jsx as
|
|
3862
|
+
import { jsx as jsx43, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3659
3863
|
function isActive2(itemHref, activeHref, match) {
|
|
3660
3864
|
if (!activeHref) return false;
|
|
3661
3865
|
if (itemHref === activeHref) return true;
|
|
@@ -3677,18 +3881,18 @@ function SiteFooter({
|
|
|
3677
3881
|
}) {
|
|
3678
3882
|
const Link3 = linkComponent ?? "a";
|
|
3679
3883
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
3680
|
-
return /* @__PURE__ */
|
|
3681
|
-
/* @__PURE__ */
|
|
3682
|
-
/* @__PURE__ */
|
|
3884
|
+
return /* @__PURE__ */ jsxs29("footer", { className: cn("border-t border-border bg-muted/30", className), ...props, children: [
|
|
3885
|
+
/* @__PURE__ */ jsxs29("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: [
|
|
3886
|
+
/* @__PURE__ */ jsxs29("div", { className: "min-w-0", children: [
|
|
3683
3887
|
brand,
|
|
3684
|
-
tagline && /* @__PURE__ */
|
|
3685
|
-
contact && /* @__PURE__ */
|
|
3888
|
+
tagline && /* @__PURE__ */ jsx43("p", { className: "mt-3 max-w-56 text-sm text-muted-foreground", children: tagline }),
|
|
3889
|
+
contact && /* @__PURE__ */ jsx43("div", { className: "mt-3 max-w-56 text-sm text-muted-foreground", children: contact })
|
|
3686
3890
|
] }),
|
|
3687
|
-
columns.map((column) => /* @__PURE__ */
|
|
3688
|
-
/* @__PURE__ */
|
|
3689
|
-
/* @__PURE__ */
|
|
3891
|
+
columns.map((column) => /* @__PURE__ */ jsxs29("div", { children: [
|
|
3892
|
+
/* @__PURE__ */ jsx43("h2", { className: "mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: column.title }),
|
|
3893
|
+
/* @__PURE__ */ jsx43("ul", { className: "m-0 list-none space-y-2 p-0 text-sm", children: column.links.map((link) => {
|
|
3690
3894
|
const active = isActive2(link.href, activeHref, match);
|
|
3691
|
-
return /* @__PURE__ */
|
|
3895
|
+
return /* @__PURE__ */ jsx43("li", { children: /* @__PURE__ */ jsx43(
|
|
3692
3896
|
Link3,
|
|
3693
3897
|
{
|
|
3694
3898
|
...destination(link.href),
|
|
@@ -3704,13 +3908,13 @@ function SiteFooter({
|
|
|
3704
3908
|
}) })
|
|
3705
3909
|
] }, column.title))
|
|
3706
3910
|
] }),
|
|
3707
|
-
legal && /* @__PURE__ */
|
|
3911
|
+
legal && /* @__PURE__ */ jsx43("div", { className: "border-t border-border", children: /* @__PURE__ */ jsx43("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 }) })
|
|
3708
3912
|
] });
|
|
3709
3913
|
}
|
|
3710
3914
|
|
|
3711
3915
|
// src/components/site-header/SiteHeader.tsx
|
|
3712
|
-
import * as
|
|
3713
|
-
import { Fragment as Fragment8, jsx as
|
|
3916
|
+
import * as React44 from "react";
|
|
3917
|
+
import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3714
3918
|
function isActive3(itemHref, activeHref, match) {
|
|
3715
3919
|
if (!activeHref) return false;
|
|
3716
3920
|
if (itemHref === activeHref) return true;
|
|
@@ -3718,7 +3922,7 @@ function isActive3(itemHref, activeHref, match) {
|
|
|
3718
3922
|
return activeHref === itemHref || activeHref.startsWith(itemHref.endsWith("/") ? itemHref : `${itemHref}/`);
|
|
3719
3923
|
}
|
|
3720
3924
|
function Caret() {
|
|
3721
|
-
return /* @__PURE__ */
|
|
3925
|
+
return /* @__PURE__ */ jsx44(
|
|
3722
3926
|
"svg",
|
|
3723
3927
|
{
|
|
3724
3928
|
"aria-hidden": "true",
|
|
@@ -3729,7 +3933,7 @@ function Caret() {
|
|
|
3729
3933
|
strokeWidth: "1.75",
|
|
3730
3934
|
strokeLinecap: "round",
|
|
3731
3935
|
strokeLinejoin: "round",
|
|
3732
|
-
children: /* @__PURE__ */
|
|
3936
|
+
children: /* @__PURE__ */ jsx44("path", { d: "m2.5 4.5 3.5 3.5 3.5-3.5" })
|
|
3733
3937
|
}
|
|
3734
3938
|
);
|
|
3735
3939
|
}
|
|
@@ -3756,14 +3960,14 @@ function SiteHeader({
|
|
|
3756
3960
|
className,
|
|
3757
3961
|
...props
|
|
3758
3962
|
}) {
|
|
3759
|
-
const [mobileOpen, setMobileOpen] =
|
|
3760
|
-
const [openMenu, setOpenMenu] =
|
|
3761
|
-
const pendingFocus =
|
|
3762
|
-
const generatedId =
|
|
3963
|
+
const [mobileOpen, setMobileOpen] = React44.useState(false);
|
|
3964
|
+
const [openMenu, setOpenMenu] = React44.useState(null);
|
|
3965
|
+
const pendingFocus = React44.useRef(null);
|
|
3966
|
+
const generatedId = React44.useId();
|
|
3763
3967
|
const menuId = `${generatedId}-menu`;
|
|
3764
3968
|
const Link3 = linkComponent ?? "a";
|
|
3765
3969
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
3766
|
-
|
|
3970
|
+
React44.useEffect(() => {
|
|
3767
3971
|
if (!openMenu) return;
|
|
3768
3972
|
const onKey = (event) => {
|
|
3769
3973
|
if (event.key === "Escape") setOpenMenu(null);
|
|
@@ -3780,7 +3984,7 @@ function SiteHeader({
|
|
|
3780
3984
|
document.removeEventListener("pointerdown", onPointer);
|
|
3781
3985
|
};
|
|
3782
3986
|
}, [openMenu]);
|
|
3783
|
-
|
|
3987
|
+
React44.useEffect(() => {
|
|
3784
3988
|
if (!openMenu || !pendingFocus.current) return;
|
|
3785
3989
|
const panel = document.getElementById(pendingFocus.current);
|
|
3786
3990
|
pendingFocus.current = null;
|
|
@@ -3788,7 +3992,7 @@ function SiteHeader({
|
|
|
3788
3992
|
}, [openMenu]);
|
|
3789
3993
|
const navLink = (item, extra) => {
|
|
3790
3994
|
const active = isActive3(item.href, activeHref, match);
|
|
3791
|
-
return /* @__PURE__ */
|
|
3995
|
+
return /* @__PURE__ */ jsx44(
|
|
3792
3996
|
Link3,
|
|
3793
3997
|
{
|
|
3794
3998
|
...destination(item.href),
|
|
@@ -3802,17 +4006,17 @@ function SiteHeader({
|
|
|
3802
4006
|
!extra && "text-sm hover:text-foreground",
|
|
3803
4007
|
!extra && (active ? "font-medium text-foreground" : "text-muted-foreground")
|
|
3804
4008
|
),
|
|
3805
|
-
children: extra === "panel" ? /* @__PURE__ */
|
|
3806
|
-
/* @__PURE__ */
|
|
3807
|
-
item.description && /* @__PURE__ */
|
|
4009
|
+
children: extra === "panel" ? /* @__PURE__ */ jsxs30(Fragment8, { children: [
|
|
4010
|
+
/* @__PURE__ */ jsx44("span", { className: "block text-sm font-medium", children: item.label }),
|
|
4011
|
+
item.description && /* @__PURE__ */ jsx44("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: item.description })
|
|
3808
4012
|
] }) : item.label
|
|
3809
4013
|
},
|
|
3810
4014
|
item.href
|
|
3811
4015
|
);
|
|
3812
4016
|
};
|
|
3813
4017
|
const hasColumns = (item) => Array.isArray(item.columns) && item.columns.length > 0;
|
|
3814
|
-
return /* @__PURE__ */
|
|
3815
|
-
/* @__PURE__ */
|
|
4018
|
+
return /* @__PURE__ */ jsxs30(Fragment8, { children: [
|
|
4019
|
+
/* @__PURE__ */ jsx44(
|
|
3816
4020
|
"header",
|
|
3817
4021
|
{
|
|
3818
4022
|
className: cn(
|
|
@@ -3821,7 +4025,7 @@ function SiteHeader({
|
|
|
3821
4025
|
className
|
|
3822
4026
|
),
|
|
3823
4027
|
...props,
|
|
3824
|
-
children: /* @__PURE__ */
|
|
4028
|
+
children: /* @__PURE__ */ jsxs30(
|
|
3825
4029
|
"nav",
|
|
3826
4030
|
{
|
|
3827
4031
|
"aria-label": navLabel,
|
|
@@ -3830,8 +4034,8 @@ function SiteHeader({
|
|
|
3830
4034
|
navClassName
|
|
3831
4035
|
),
|
|
3832
4036
|
children: [
|
|
3833
|
-
/* @__PURE__ */
|
|
3834
|
-
/* @__PURE__ */
|
|
4037
|
+
/* @__PURE__ */ jsxs30("div", { className: "flex min-w-0 items-center gap-6", children: [
|
|
4038
|
+
/* @__PURE__ */ jsx44(
|
|
3835
4039
|
Link3,
|
|
3836
4040
|
{
|
|
3837
4041
|
...destination("/"),
|
|
@@ -3840,7 +4044,7 @@ function SiteHeader({
|
|
|
3840
4044
|
children: brand
|
|
3841
4045
|
}
|
|
3842
4046
|
),
|
|
3843
|
-
/* @__PURE__ */
|
|
4047
|
+
/* @__PURE__ */ jsx44(
|
|
3844
4048
|
"ul",
|
|
3845
4049
|
{
|
|
3846
4050
|
className: cn(
|
|
@@ -3849,11 +4053,11 @@ function SiteHeader({
|
|
|
3849
4053
|
),
|
|
3850
4054
|
children: items.map((item) => {
|
|
3851
4055
|
if (!hasColumns(item)) {
|
|
3852
|
-
return /* @__PURE__ */
|
|
4056
|
+
return /* @__PURE__ */ jsx44("li", { children: navLink(item) }, item.href);
|
|
3853
4057
|
}
|
|
3854
4058
|
const panelId = `${generatedId}-panel-${item.label.replace(/\s+/g, "-").toLowerCase()}`;
|
|
3855
4059
|
const open = openMenu === item.label;
|
|
3856
|
-
return /* @__PURE__ */
|
|
4060
|
+
return /* @__PURE__ */ jsxs30(
|
|
3857
4061
|
"li",
|
|
3858
4062
|
{
|
|
3859
4063
|
"data-site-nav-item": true,
|
|
@@ -3867,7 +4071,7 @@ function SiteHeader({
|
|
|
3867
4071
|
}
|
|
3868
4072
|
},
|
|
3869
4073
|
children: [
|
|
3870
|
-
/* @__PURE__ */
|
|
4074
|
+
/* @__PURE__ */ jsxs30(
|
|
3871
4075
|
"button",
|
|
3872
4076
|
{
|
|
3873
4077
|
type: "button",
|
|
@@ -3891,11 +4095,11 @@ function SiteHeader({
|
|
|
3891
4095
|
),
|
|
3892
4096
|
children: [
|
|
3893
4097
|
item.label,
|
|
3894
|
-
/* @__PURE__ */
|
|
4098
|
+
/* @__PURE__ */ jsx44(Caret, {})
|
|
3895
4099
|
]
|
|
3896
4100
|
}
|
|
3897
4101
|
),
|
|
3898
|
-
/* @__PURE__ */
|
|
4102
|
+
/* @__PURE__ */ jsx44(
|
|
3899
4103
|
"div",
|
|
3900
4104
|
{
|
|
3901
4105
|
id: panelId,
|
|
@@ -3905,9 +4109,9 @@ function SiteHeader({
|
|
|
3905
4109
|
item.columns.length > 1 ? "grid-cols-2" : "grid-cols-1",
|
|
3906
4110
|
"min-w-[22rem]"
|
|
3907
4111
|
),
|
|
3908
|
-
children: item.columns.map((column, index) => /* @__PURE__ */
|
|
3909
|
-
column.heading && /* @__PURE__ */
|
|
3910
|
-
/* @__PURE__ */
|
|
4112
|
+
children: item.columns.map((column, index) => /* @__PURE__ */ jsxs30("div", { className: "min-w-40", children: [
|
|
4113
|
+
column.heading && /* @__PURE__ */ jsx44("p", { className: "mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: column.heading }),
|
|
4114
|
+
/* @__PURE__ */ jsx44("ul", { className: "flex flex-col gap-0.5", children: column.items.map((link) => /* @__PURE__ */ jsx44("li", { children: navLink(link, "panel") }, `${column.heading ?? index}-${link.href}-${link.label}`)) })
|
|
3911
4115
|
] }, column.heading ?? index))
|
|
3912
4116
|
}
|
|
3913
4117
|
)
|
|
@@ -3919,9 +4123,9 @@ function SiteHeader({
|
|
|
3919
4123
|
}
|
|
3920
4124
|
)
|
|
3921
4125
|
] }),
|
|
3922
|
-
/* @__PURE__ */
|
|
4126
|
+
/* @__PURE__ */ jsxs30("div", { className: "flex items-center gap-2", children: [
|
|
3923
4127
|
actions,
|
|
3924
|
-
showMobileTrigger && /* @__PURE__ */
|
|
4128
|
+
showMobileTrigger && /* @__PURE__ */ jsx44(
|
|
3925
4129
|
"button",
|
|
3926
4130
|
{
|
|
3927
4131
|
type: "button",
|
|
@@ -3934,7 +4138,7 @@ function SiteHeader({
|
|
|
3934
4138
|
"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",
|
|
3935
4139
|
desktopBreakpoint === "lg" ? "lg:hidden" : "md:hidden"
|
|
3936
4140
|
),
|
|
3937
|
-
children: /* @__PURE__ */
|
|
4141
|
+
children: /* @__PURE__ */ jsx44(
|
|
3938
4142
|
"svg",
|
|
3939
4143
|
{
|
|
3940
4144
|
"aria-hidden": "true",
|
|
@@ -3944,7 +4148,7 @@ function SiteHeader({
|
|
|
3944
4148
|
stroke: "currentColor",
|
|
3945
4149
|
strokeWidth: "2",
|
|
3946
4150
|
strokeLinecap: "round",
|
|
3947
|
-
children: mobileOpen ? /* @__PURE__ */
|
|
4151
|
+
children: mobileOpen ? /* @__PURE__ */ jsx44("path", { d: "M6 6l12 12M18 6L6 18" }) : /* @__PURE__ */ jsx44("path", { d: "M4 7h16M4 12h16M4 17h16" })
|
|
3948
4152
|
}
|
|
3949
4153
|
)
|
|
3950
4154
|
}
|
|
@@ -3955,7 +4159,7 @@ function SiteHeader({
|
|
|
3955
4159
|
)
|
|
3956
4160
|
}
|
|
3957
4161
|
),
|
|
3958
|
-
showMobileTrigger && /* @__PURE__ */
|
|
4162
|
+
showMobileTrigger && /* @__PURE__ */ jsxs30(
|
|
3959
4163
|
Drawer,
|
|
3960
4164
|
{
|
|
3961
4165
|
open: mobileOpen,
|
|
@@ -3966,16 +4170,16 @@ function SiteHeader({
|
|
|
3966
4170
|
size: "sm",
|
|
3967
4171
|
animate: true,
|
|
3968
4172
|
children: [
|
|
3969
|
-
/* @__PURE__ */
|
|
3970
|
-
(item) => hasColumns(item) ? /* @__PURE__ */
|
|
3971
|
-
/* @__PURE__ */
|
|
3972
|
-
/* @__PURE__ */
|
|
3973
|
-
column.heading && /* @__PURE__ */
|
|
3974
|
-
/* @__PURE__ */
|
|
4173
|
+
/* @__PURE__ */ jsx44("nav", { id: menuId, "aria-label": mobileNavLabel, className: "flex flex-col gap-1", children: items.map(
|
|
4174
|
+
(item) => hasColumns(item) ? /* @__PURE__ */ jsxs30("details", { className: "rounded-md", children: [
|
|
4175
|
+
/* @__PURE__ */ jsx44("summary", { className: "cursor-pointer rounded-md px-3 py-2 text-base font-medium hover:bg-accent", children: item.label }),
|
|
4176
|
+
/* @__PURE__ */ jsx44("div", { className: "mt-1 flex flex-col gap-2 pb-2", children: item.columns.map((column, index) => /* @__PURE__ */ jsxs30("div", { className: "px-3", children: [
|
|
4177
|
+
column.heading && /* @__PURE__ */ jsx44("p", { className: "mb-1 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: column.heading }),
|
|
4178
|
+
/* @__PURE__ */ jsx44("ul", { className: "flex flex-col gap-1", children: column.items.map((link) => /* @__PURE__ */ jsx44("li", { children: navLink(link, "mobile") }, `${column.heading ?? index}-${link.href}-${link.label}`)) })
|
|
3975
4179
|
] }, column.heading ?? index)) })
|
|
3976
4180
|
] }, item.label) : navLink(item, "mobile")
|
|
3977
4181
|
) }),
|
|
3978
|
-
(mobileActions ?? actions) && /* @__PURE__ */
|
|
4182
|
+
(mobileActions ?? actions) && /* @__PURE__ */ jsx44("div", { className: "mt-4 border-t border-border pt-4", children: mobileActions ?? actions })
|
|
3979
4183
|
]
|
|
3980
4184
|
}
|
|
3981
4185
|
)
|
|
@@ -3983,15 +4187,15 @@ function SiteHeader({
|
|
|
3983
4187
|
}
|
|
3984
4188
|
|
|
3985
4189
|
// src/components/accordion/Accordion.tsx
|
|
3986
|
-
import * as
|
|
3987
|
-
import { jsx as
|
|
3988
|
-
var AccordionContext =
|
|
4190
|
+
import * as React45 from "react";
|
|
4191
|
+
import { jsx as jsx45, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4192
|
+
var AccordionContext = React45.createContext({
|
|
3989
4193
|
openItems: /* @__PURE__ */ new Set(),
|
|
3990
4194
|
toggle: () => {
|
|
3991
4195
|
},
|
|
3992
4196
|
collapsible: true
|
|
3993
4197
|
});
|
|
3994
|
-
var Accordion =
|
|
4198
|
+
var Accordion = React45.forwardRef(
|
|
3995
4199
|
({
|
|
3996
4200
|
value,
|
|
3997
4201
|
defaultValue = [],
|
|
@@ -4004,9 +4208,9 @@ var Accordion = React44.forwardRef(
|
|
|
4004
4208
|
style,
|
|
4005
4209
|
children
|
|
4006
4210
|
}, ref) => {
|
|
4007
|
-
const [internalOpen, setInternalOpen] =
|
|
4211
|
+
const [internalOpen, setInternalOpen] = React45.useState(defaultValue);
|
|
4008
4212
|
const current = value ?? internalOpen;
|
|
4009
|
-
const toggle =
|
|
4213
|
+
const toggle = React45.useCallback(
|
|
4010
4214
|
(id) => {
|
|
4011
4215
|
const next = current.includes(id) ? current.filter((item) => item !== id) : collapsible ? [id] : [...current, id];
|
|
4012
4216
|
if (value === void 0) setInternalOpen(next);
|
|
@@ -4015,7 +4219,7 @@ var Accordion = React44.forwardRef(
|
|
|
4015
4219
|
[current, collapsible, value, onValueChange]
|
|
4016
4220
|
);
|
|
4017
4221
|
const gapResolved = resolveGap(gap);
|
|
4018
|
-
return /* @__PURE__ */
|
|
4222
|
+
return /* @__PURE__ */ jsx45(
|
|
4019
4223
|
"div",
|
|
4020
4224
|
{
|
|
4021
4225
|
ref,
|
|
@@ -4028,28 +4232,28 @@ var Accordion = React44.forwardRef(
|
|
|
4028
4232
|
className
|
|
4029
4233
|
),
|
|
4030
4234
|
style: { ...gapResolved.style, ...style },
|
|
4031
|
-
children: /* @__PURE__ */
|
|
4032
|
-
/* @__PURE__ */
|
|
4033
|
-
/* @__PURE__ */
|
|
4235
|
+
children: /* @__PURE__ */ jsx45(AccordionContext.Provider, { value: { openItems: new Set(current), toggle, collapsible }, children: items ? items.map((item) => /* @__PURE__ */ jsxs31(AccordionItem, { id: item.id, children: [
|
|
4236
|
+
/* @__PURE__ */ jsx45(AccordionTrigger, { disabled: item.disabled, children: item.title }),
|
|
4237
|
+
/* @__PURE__ */ jsx45(AccordionContent, { children: item.content })
|
|
4034
4238
|
] }, item.id)) : children })
|
|
4035
4239
|
}
|
|
4036
4240
|
);
|
|
4037
4241
|
}
|
|
4038
4242
|
);
|
|
4039
4243
|
Accordion.displayName = "Accordion";
|
|
4040
|
-
var AccordionItem =
|
|
4041
|
-
({ id, className, children }, ref) => /* @__PURE__ */
|
|
4244
|
+
var AccordionItem = React45.forwardRef(
|
|
4245
|
+
({ id, className, children }, ref) => /* @__PURE__ */ jsx45("div", { ref, "data-accordion-item": id, className, children: /* @__PURE__ */ jsx45(AccordionItemContext.Provider, { value: { id }, children }) })
|
|
4042
4246
|
);
|
|
4043
4247
|
AccordionItem.displayName = "AccordionItem";
|
|
4044
|
-
var AccordionItemContext =
|
|
4045
|
-
var AccordionTrigger =
|
|
4248
|
+
var AccordionItemContext = React45.createContext({ id: "" });
|
|
4249
|
+
var AccordionTrigger = React45.forwardRef(
|
|
4046
4250
|
({ className, children, icon, ...props }, ref) => {
|
|
4047
|
-
const { id } =
|
|
4048
|
-
const { openItems, toggle } =
|
|
4251
|
+
const { id } = React45.useContext(AccordionItemContext);
|
|
4252
|
+
const { openItems, toggle } = React45.useContext(AccordionContext);
|
|
4049
4253
|
const open = openItems.has(id);
|
|
4050
4254
|
const panelId = `${id}-panel`;
|
|
4051
4255
|
const triggerId = `${id}-trigger`;
|
|
4052
|
-
return /* @__PURE__ */
|
|
4256
|
+
return /* @__PURE__ */ jsxs31(
|
|
4053
4257
|
"button",
|
|
4054
4258
|
{
|
|
4055
4259
|
ref,
|
|
@@ -4068,7 +4272,7 @@ var AccordionTrigger = React44.forwardRef(
|
|
|
4068
4272
|
...props,
|
|
4069
4273
|
children: [
|
|
4070
4274
|
children,
|
|
4071
|
-
icon ?? /* @__PURE__ */
|
|
4275
|
+
icon ?? /* @__PURE__ */ jsx45(
|
|
4072
4276
|
"svg",
|
|
4073
4277
|
{
|
|
4074
4278
|
"aria-hidden": "true",
|
|
@@ -4078,7 +4282,7 @@ var AccordionTrigger = React44.forwardRef(
|
|
|
4078
4282
|
strokeWidth: "2",
|
|
4079
4283
|
strokeLinecap: "round",
|
|
4080
4284
|
className: cn("h-4 w-4 shrink-0 transition-transform duration-200", open && "rotate-180"),
|
|
4081
|
-
children: /* @__PURE__ */
|
|
4285
|
+
children: /* @__PURE__ */ jsx45("polyline", { points: "6 9 12 15 18 9" })
|
|
4082
4286
|
}
|
|
4083
4287
|
)
|
|
4084
4288
|
]
|
|
@@ -4087,14 +4291,14 @@ var AccordionTrigger = React44.forwardRef(
|
|
|
4087
4291
|
}
|
|
4088
4292
|
);
|
|
4089
4293
|
AccordionTrigger.displayName = "AccordionTrigger";
|
|
4090
|
-
var AccordionContent =
|
|
4294
|
+
var AccordionContent = React45.forwardRef(
|
|
4091
4295
|
({ className, children, ...props }, ref) => {
|
|
4092
|
-
const { id } =
|
|
4093
|
-
const { openItems } =
|
|
4296
|
+
const { id } = React45.useContext(AccordionItemContext);
|
|
4297
|
+
const { openItems } = React45.useContext(AccordionContext);
|
|
4094
4298
|
const open = openItems.has(id);
|
|
4095
|
-
const [mounted, setMounted] =
|
|
4096
|
-
const [expanded, setExpanded] =
|
|
4097
|
-
|
|
4299
|
+
const [mounted, setMounted] = React45.useState(open);
|
|
4300
|
+
const [expanded, setExpanded] = React45.useState(open);
|
|
4301
|
+
React45.useEffect(() => {
|
|
4098
4302
|
const reduce = typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
4099
4303
|
if (open) {
|
|
4100
4304
|
setMounted(true);
|
|
@@ -4119,7 +4323,7 @@ var AccordionContent = React44.forwardRef(
|
|
|
4119
4323
|
const timer = setTimeout(() => setMounted(false), 320);
|
|
4120
4324
|
return () => clearTimeout(timer);
|
|
4121
4325
|
}, [open]);
|
|
4122
|
-
return /* @__PURE__ */
|
|
4326
|
+
return /* @__PURE__ */ jsx45(
|
|
4123
4327
|
"div",
|
|
4124
4328
|
{
|
|
4125
4329
|
ref,
|
|
@@ -4138,7 +4342,7 @@ var AccordionContent = React44.forwardRef(
|
|
|
4138
4342
|
className
|
|
4139
4343
|
),
|
|
4140
4344
|
...props,
|
|
4141
|
-
children: /* @__PURE__ */
|
|
4345
|
+
children: /* @__PURE__ */ jsx45("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx45("div", { className: "px-4 pb-3 text-sm text-muted-foreground", children }) })
|
|
4142
4346
|
}
|
|
4143
4347
|
);
|
|
4144
4348
|
}
|
|
@@ -4146,10 +4350,10 @@ var AccordionContent = React44.forwardRef(
|
|
|
4146
4350
|
AccordionContent.displayName = "AccordionContent";
|
|
4147
4351
|
|
|
4148
4352
|
// src/components/table/Table.tsx
|
|
4149
|
-
import * as
|
|
4150
|
-
import { jsx as
|
|
4151
|
-
var Table =
|
|
4152
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
4353
|
+
import * as React46 from "react";
|
|
4354
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
4355
|
+
var Table = React46.forwardRef(
|
|
4356
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx46("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx46(
|
|
4153
4357
|
"table",
|
|
4154
4358
|
{
|
|
4155
4359
|
ref,
|
|
@@ -4159,16 +4363,16 @@ var Table = React45.forwardRef(
|
|
|
4159
4363
|
) })
|
|
4160
4364
|
);
|
|
4161
4365
|
Table.displayName = "Table";
|
|
4162
|
-
var TableHeader =
|
|
4163
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
4366
|
+
var TableHeader = React46.forwardRef(
|
|
4367
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx46("thead", { ref, className: cn("[&_tr]:border-b", className), ...props })
|
|
4164
4368
|
);
|
|
4165
4369
|
TableHeader.displayName = "TableHeader";
|
|
4166
|
-
var TableBody =
|
|
4167
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
4370
|
+
var TableBody = React46.forwardRef(
|
|
4371
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx46("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props })
|
|
4168
4372
|
);
|
|
4169
4373
|
TableBody.displayName = "TableBody";
|
|
4170
|
-
var TableFooter =
|
|
4171
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
4374
|
+
var TableFooter = React46.forwardRef(
|
|
4375
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
4172
4376
|
"tfoot",
|
|
4173
4377
|
{
|
|
4174
4378
|
ref,
|
|
@@ -4178,8 +4382,8 @@ var TableFooter = React45.forwardRef(
|
|
|
4178
4382
|
)
|
|
4179
4383
|
);
|
|
4180
4384
|
TableFooter.displayName = "TableFooter";
|
|
4181
|
-
var TableRow =
|
|
4182
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
4385
|
+
var TableRow = React46.forwardRef(
|
|
4386
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
4183
4387
|
"tr",
|
|
4184
4388
|
{
|
|
4185
4389
|
ref,
|
|
@@ -4192,8 +4396,8 @@ var TableRow = React45.forwardRef(
|
|
|
4192
4396
|
)
|
|
4193
4397
|
);
|
|
4194
4398
|
TableRow.displayName = "TableRow";
|
|
4195
|
-
var TableHead =
|
|
4196
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
4399
|
+
var TableHead = React46.forwardRef(
|
|
4400
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
4197
4401
|
"th",
|
|
4198
4402
|
{
|
|
4199
4403
|
ref,
|
|
@@ -4207,27 +4411,27 @@ var TableHead = React45.forwardRef(
|
|
|
4207
4411
|
)
|
|
4208
4412
|
);
|
|
4209
4413
|
TableHead.displayName = "TableHead";
|
|
4210
|
-
var TableCell =
|
|
4211
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
4414
|
+
var TableCell = React46.forwardRef(
|
|
4415
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx46("td", { ref, className: cn("px-3 py-2 align-middle", className), ...props })
|
|
4212
4416
|
);
|
|
4213
4417
|
TableCell.displayName = "TableCell";
|
|
4214
|
-
var TableCaption =
|
|
4215
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
4418
|
+
var TableCaption = React46.forwardRef(
|
|
4419
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx46("caption", { ref, className: cn("mt-3 text-xs text-muted-foreground", className), ...props })
|
|
4216
4420
|
);
|
|
4217
4421
|
TableCaption.displayName = "TableCaption";
|
|
4218
4422
|
|
|
4219
4423
|
// src/components/data-table/DataTable.tsx
|
|
4220
|
-
import * as
|
|
4424
|
+
import * as React48 from "react";
|
|
4221
4425
|
|
|
4222
4426
|
// src/components/pagination/Pagination.tsx
|
|
4223
|
-
import * as
|
|
4224
|
-
import { jsx as
|
|
4427
|
+
import * as React47 from "react";
|
|
4428
|
+
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4225
4429
|
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";
|
|
4226
4430
|
var controlDisabledClass = "pointer-events-none opacity-50";
|
|
4227
4431
|
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";
|
|
4228
4432
|
var pageActiveClass = "border-primary bg-primary text-primary-foreground font-medium";
|
|
4229
4433
|
var pageIdleClass = "border-border hover:bg-muted";
|
|
4230
|
-
var Pagination =
|
|
4434
|
+
var Pagination = React47.forwardRef(
|
|
4231
4435
|
({
|
|
4232
4436
|
page: pageProp,
|
|
4233
4437
|
pageCount: pageCountProp,
|
|
@@ -4274,11 +4478,11 @@ var Pagination = React46.forwardRef(
|
|
|
4274
4478
|
if (linkMode) {
|
|
4275
4479
|
const href = hrefFor(target);
|
|
4276
4480
|
if (disabled || href === void 0) {
|
|
4277
|
-
return /* @__PURE__ */
|
|
4481
|
+
return /* @__PURE__ */ jsx47("span", { "aria-label": label, "aria-disabled": "true", className: cn(controlClass, controlDisabledClass), children: content });
|
|
4278
4482
|
}
|
|
4279
|
-
return /* @__PURE__ */
|
|
4483
|
+
return /* @__PURE__ */ jsx47(LinkEl, { ...destination(href), "aria-label": label, className: controlClass, children: content });
|
|
4280
4484
|
}
|
|
4281
|
-
return /* @__PURE__ */
|
|
4485
|
+
return /* @__PURE__ */ jsx47(
|
|
4282
4486
|
"button",
|
|
4283
4487
|
{
|
|
4284
4488
|
type: "button",
|
|
@@ -4297,11 +4501,11 @@ var Pagination = React46.forwardRef(
|
|
|
4297
4501
|
if (linkMode) {
|
|
4298
4502
|
const href = hrefFor(entry);
|
|
4299
4503
|
if (isCurrent || href === void 0) {
|
|
4300
|
-
return /* @__PURE__ */
|
|
4504
|
+
return /* @__PURE__ */ jsx47("span", { "aria-current": "page", "aria-label": label, className: classes, children: entry }, entry);
|
|
4301
4505
|
}
|
|
4302
|
-
return /* @__PURE__ */
|
|
4506
|
+
return /* @__PURE__ */ jsx47(LinkEl, { ...destination(href), "aria-label": label, className: classes, children: entry }, entry);
|
|
4303
4507
|
}
|
|
4304
|
-
return /* @__PURE__ */
|
|
4508
|
+
return /* @__PURE__ */ jsx47(
|
|
4305
4509
|
"button",
|
|
4306
4510
|
{
|
|
4307
4511
|
type: "button",
|
|
@@ -4314,7 +4518,7 @@ var Pagination = React46.forwardRef(
|
|
|
4314
4518
|
entry
|
|
4315
4519
|
);
|
|
4316
4520
|
};
|
|
4317
|
-
const nav = /* @__PURE__ */
|
|
4521
|
+
const nav = /* @__PURE__ */ jsxs32(
|
|
4318
4522
|
"nav",
|
|
4319
4523
|
{
|
|
4320
4524
|
ref,
|
|
@@ -4325,7 +4529,7 @@ var Pagination = React46.forwardRef(
|
|
|
4325
4529
|
withFirst && step(1, labels?.first ?? "First page", icons?.first ?? "\xAB", page <= 1),
|
|
4326
4530
|
step(page - 1, labels?.previous ?? "Previous page", icons?.previous ?? "<", page <= 1),
|
|
4327
4531
|
pages.map(
|
|
4328
|
-
(entry, index) => entry === "ellipsis" ? /* @__PURE__ */
|
|
4532
|
+
(entry, index) => entry === "ellipsis" ? /* @__PURE__ */ jsx47(
|
|
4329
4533
|
"span",
|
|
4330
4534
|
{
|
|
4331
4535
|
"aria-hidden": "true",
|
|
@@ -4341,8 +4545,8 @@ var Pagination = React46.forwardRef(
|
|
|
4341
4545
|
}
|
|
4342
4546
|
);
|
|
4343
4547
|
if (!summaryEnabled) return nav;
|
|
4344
|
-
return /* @__PURE__ */
|
|
4345
|
-
/* @__PURE__ */
|
|
4548
|
+
return /* @__PURE__ */ jsxs32("div", { className: cn("flex flex-wrap items-center justify-between gap-3", className), children: [
|
|
4549
|
+
/* @__PURE__ */ jsx47("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}` }),
|
|
4346
4550
|
nav
|
|
4347
4551
|
] });
|
|
4348
4552
|
}
|
|
@@ -4350,7 +4554,7 @@ var Pagination = React46.forwardRef(
|
|
|
4350
4554
|
Pagination.displayName = "Pagination";
|
|
4351
4555
|
|
|
4352
4556
|
// src/components/data-table/DataTable.tsx
|
|
4353
|
-
import { jsx as
|
|
4557
|
+
import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4354
4558
|
var cardBreakpointClasses = {
|
|
4355
4559
|
sm: { table: "max-sm:hidden", cards: "sm:hidden" },
|
|
4356
4560
|
md: { table: "max-md:hidden", cards: "md:hidden" },
|
|
@@ -4397,9 +4601,9 @@ function DataTable({
|
|
|
4397
4601
|
loadingRows,
|
|
4398
4602
|
className
|
|
4399
4603
|
}) {
|
|
4400
|
-
const [internalSort, setInternalSort] =
|
|
4401
|
-
const [internalPage, setInternalPage] =
|
|
4402
|
-
const sort =
|
|
4604
|
+
const [internalSort, setInternalSort] = React48.useState(defaultSort);
|
|
4605
|
+
const [internalPage, setInternalPage] = React48.useState(1);
|
|
4606
|
+
const sort = React48.useMemo(() => {
|
|
4403
4607
|
if (sortKey !== void 0) {
|
|
4404
4608
|
return sortKey === null ? null : { key: sortKey, dir: sortDir ?? "asc" };
|
|
4405
4609
|
}
|
|
@@ -4416,7 +4620,7 @@ function DataTable({
|
|
|
4416
4620
|
if (page === void 0) setInternalPage(next);
|
|
4417
4621
|
onPageChange?.(next);
|
|
4418
4622
|
};
|
|
4419
|
-
const sorted =
|
|
4623
|
+
const sorted = React48.useMemo(() => {
|
|
4420
4624
|
if (!sort) return data;
|
|
4421
4625
|
const column = columns.find((c) => c.key === sort.key);
|
|
4422
4626
|
if (!column) return data;
|
|
@@ -4436,10 +4640,10 @@ function DataTable({
|
|
|
4436
4640
|
const pageCount = pageCountProp ?? computedPageCount;
|
|
4437
4641
|
const safePage = Math.min(currentPage, pageCount || 1);
|
|
4438
4642
|
const visible = manualPagination ? data : pageSize ? sorted.slice((safePage - 1) * pageSize, safePage * pageSize) : sorted;
|
|
4439
|
-
const [internalSelected, setInternalSelected] =
|
|
4643
|
+
const [internalSelected, setInternalSelected] = React48.useState([]);
|
|
4440
4644
|
const selectionEnabled = selectedRowIds !== void 0 || onSelectedRowIdsChange !== void 0;
|
|
4441
4645
|
const selectedIds = selectedRowIds ?? internalSelected;
|
|
4442
|
-
const selectedSet =
|
|
4646
|
+
const selectedSet = React48.useMemo(() => new Set(selectedIds), [selectedIds]);
|
|
4443
4647
|
const selectableVisible = isRowSelectable ? visible.filter(isRowSelectable) : visible;
|
|
4444
4648
|
const allSelected = selectableVisible.length > 0 && selectableVisible.every((row) => selectedSet.has(rowId(row)));
|
|
4445
4649
|
const someSelected = selectableVisible.some((row) => selectedSet.has(rowId(row)));
|
|
@@ -4472,7 +4676,7 @@ function DataTable({
|
|
|
4472
4676
|
const cardCell = (row, column, index) => {
|
|
4473
4677
|
const value = cellValue(row, column, index);
|
|
4474
4678
|
if (column.onClick) {
|
|
4475
|
-
return /* @__PURE__ */
|
|
4679
|
+
return /* @__PURE__ */ jsx48(
|
|
4476
4680
|
"button",
|
|
4477
4681
|
{
|
|
4478
4682
|
type: "button",
|
|
@@ -4484,23 +4688,23 @@ function DataTable({
|
|
|
4484
4688
|
}
|
|
4485
4689
|
return value;
|
|
4486
4690
|
};
|
|
4487
|
-
return /* @__PURE__ */
|
|
4488
|
-
selectionEnabled && selectedIds.length > 0 && bulkActions && /* @__PURE__ */
|
|
4489
|
-
/* @__PURE__ */
|
|
4490
|
-
/* @__PURE__ */
|
|
4691
|
+
return /* @__PURE__ */ jsxs33("div", { className: cn("w-full space-y-3", className), children: [
|
|
4692
|
+
selectionEnabled && selectedIds.length > 0 && bulkActions && /* @__PURE__ */ jsxs33("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: [
|
|
4693
|
+
/* @__PURE__ */ jsx48("span", { className: "font-medium", children: selectedLabel.replace("{count}", String(selectedIds.length)) }),
|
|
4694
|
+
/* @__PURE__ */ jsx48("div", { className: "flex flex-wrap items-center gap-2", children: bulkActions })
|
|
4491
4695
|
] }),
|
|
4492
|
-
/* @__PURE__ */
|
|
4696
|
+
/* @__PURE__ */ jsx48(
|
|
4493
4697
|
"div",
|
|
4494
4698
|
{
|
|
4495
4699
|
className: cn("w-full overflow-x-auto rounded-lg border border-border", cardClasses?.table),
|
|
4496
|
-
children: /* @__PURE__ */
|
|
4700
|
+
children: /* @__PURE__ */ jsxs33(
|
|
4497
4701
|
"table",
|
|
4498
4702
|
{
|
|
4499
4703
|
className: cn("w-full caption-bottom", density === "compact" ? "text-xs" : "text-sm"),
|
|
4500
4704
|
children: [
|
|
4501
|
-
caption && /* @__PURE__ */
|
|
4502
|
-
/* @__PURE__ */
|
|
4503
|
-
selectionEnabled && /* @__PURE__ */
|
|
4705
|
+
caption && /* @__PURE__ */ jsx48("caption", { className: "px-3 py-2 text-left text-xs text-muted-foreground", children: caption }),
|
|
4706
|
+
/* @__PURE__ */ jsx48("thead", { className: cn("bg-muted/50", stickyHeader && "sticky top-0 z-10 bg-background"), children: /* @__PURE__ */ jsxs33("tr", { children: [
|
|
4707
|
+
selectionEnabled && /* @__PURE__ */ jsx48("th", { scope: "col", className: "w-10 border-b border-border px-3 py-2", children: /* @__PURE__ */ jsx48(
|
|
4504
4708
|
Checkbox,
|
|
4505
4709
|
{
|
|
4506
4710
|
"aria-label": selectAllLabel,
|
|
@@ -4514,7 +4718,7 @@ function DataTable({
|
|
|
4514
4718
|
columns.map((column) => {
|
|
4515
4719
|
const isSorted = sort?.key === column.key;
|
|
4516
4720
|
const ariaSort = !column.sortable ? void 0 : isSorted ? sort.dir === "asc" ? "ascending" : "descending" : "none";
|
|
4517
|
-
return /* @__PURE__ */
|
|
4721
|
+
return /* @__PURE__ */ jsx48(
|
|
4518
4722
|
"th",
|
|
4519
4723
|
{
|
|
4520
4724
|
scope: "col",
|
|
@@ -4524,7 +4728,7 @@ function DataTable({
|
|
|
4524
4728
|
alignClass(column.align),
|
|
4525
4729
|
column.className
|
|
4526
4730
|
),
|
|
4527
|
-
children: column.sortable ? /* @__PURE__ */
|
|
4731
|
+
children: column.sortable ? /* @__PURE__ */ jsxs33(
|
|
4528
4732
|
"button",
|
|
4529
4733
|
{
|
|
4530
4734
|
type: "button",
|
|
@@ -4532,7 +4736,7 @@ function DataTable({
|
|
|
4532
4736
|
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",
|
|
4533
4737
|
children: [
|
|
4534
4738
|
column.header,
|
|
4535
|
-
/* @__PURE__ */
|
|
4739
|
+
/* @__PURE__ */ jsx48("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" })
|
|
4536
4740
|
]
|
|
4537
4741
|
}
|
|
4538
4742
|
) : column.header
|
|
@@ -4541,20 +4745,20 @@ function DataTable({
|
|
|
4541
4745
|
);
|
|
4542
4746
|
})
|
|
4543
4747
|
] }) }),
|
|
4544
|
-
/* @__PURE__ */
|
|
4748
|
+
/* @__PURE__ */ jsx48("tbody", { "aria-busy": loading || void 0, children: loading ? Array.from(
|
|
4545
4749
|
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
4546
|
-
(_, skeletonRow) => /* @__PURE__ */
|
|
4547
|
-
selectionEnabled && /* @__PURE__ */
|
|
4548
|
-
columns.map((column) => /* @__PURE__ */
|
|
4750
|
+
(_, skeletonRow) => /* @__PURE__ */ jsxs33("tr", { children: [
|
|
4751
|
+
selectionEnabled && /* @__PURE__ */ jsx48("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ jsx48(Skeleton, { className: "h-4 w-4" }) }),
|
|
4752
|
+
columns.map((column) => /* @__PURE__ */ jsx48("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ jsx48(Skeleton, { className: density === "compact" ? "h-3 w-full" : "h-4 w-full" }) }, column.key))
|
|
4549
4753
|
] }, `skeleton-${skeletonRow}`)
|
|
4550
|
-
) : visible.length === 0 ? /* @__PURE__ */
|
|
4754
|
+
) : visible.length === 0 ? /* @__PURE__ */ jsx48("tr", { children: /* @__PURE__ */ jsx48(
|
|
4551
4755
|
"td",
|
|
4552
4756
|
{
|
|
4553
4757
|
colSpan: columns.length + (selectionEnabled ? 1 : 0),
|
|
4554
4758
|
className: "px-3 py-8 text-center text-sm text-muted-foreground",
|
|
4555
4759
|
children: emptyMessage
|
|
4556
4760
|
}
|
|
4557
|
-
) }) : visible.map((row, index) => /* @__PURE__ */
|
|
4761
|
+
) }) : visible.map((row, index) => /* @__PURE__ */ jsxs33(
|
|
4558
4762
|
"tr",
|
|
4559
4763
|
{
|
|
4560
4764
|
tabIndex: onRowClick ? 0 : void 0,
|
|
@@ -4571,12 +4775,12 @@ function DataTable({
|
|
|
4571
4775
|
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"
|
|
4572
4776
|
),
|
|
4573
4777
|
children: [
|
|
4574
|
-
selectionEnabled && /* @__PURE__ */
|
|
4778
|
+
selectionEnabled && /* @__PURE__ */ jsx48(
|
|
4575
4779
|
"td",
|
|
4576
4780
|
{
|
|
4577
4781
|
className: cn("align-middle", density === "compact" ? "px-2 py-1" : "px-3 py-2"),
|
|
4578
4782
|
onClick: (event) => event.stopPropagation(),
|
|
4579
|
-
children: /* @__PURE__ */
|
|
4783
|
+
children: /* @__PURE__ */ jsx48(
|
|
4580
4784
|
Checkbox,
|
|
4581
4785
|
{
|
|
4582
4786
|
"aria-label": `Select row ${rowId(row)}`,
|
|
@@ -4587,7 +4791,7 @@ function DataTable({
|
|
|
4587
4791
|
)
|
|
4588
4792
|
}
|
|
4589
4793
|
),
|
|
4590
|
-
columns.map((column) => /* @__PURE__ */
|
|
4794
|
+
columns.map((column) => /* @__PURE__ */ jsx48(
|
|
4591
4795
|
"td",
|
|
4592
4796
|
{
|
|
4593
4797
|
className: cn(
|
|
@@ -4596,7 +4800,7 @@ function DataTable({
|
|
|
4596
4800
|
alignClass(column.align),
|
|
4597
4801
|
column.className
|
|
4598
4802
|
),
|
|
4599
|
-
children: column.onClick ? /* @__PURE__ */
|
|
4803
|
+
children: column.onClick ? /* @__PURE__ */ jsx48(
|
|
4600
4804
|
"button",
|
|
4601
4805
|
{
|
|
4602
4806
|
type: "button",
|
|
@@ -4617,14 +4821,14 @@ function DataTable({
|
|
|
4617
4821
|
)
|
|
4618
4822
|
}
|
|
4619
4823
|
),
|
|
4620
|
-
cardClasses && /* @__PURE__ */
|
|
4824
|
+
cardClasses && /* @__PURE__ */ jsx48("ul", { "aria-label": caption, "aria-busy": loading || void 0, className: cn("space-y-3", cardClasses.cards), children: loading ? Array.from(
|
|
4621
4825
|
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
4622
|
-
(_, skeletonRow) => /* @__PURE__ */
|
|
4623
|
-
/* @__PURE__ */
|
|
4624
|
-
/* @__PURE__ */
|
|
4625
|
-
/* @__PURE__ */
|
|
4826
|
+
(_, skeletonRow) => /* @__PURE__ */ jsx48("li", { className: "rounded-lg border border-border p-3", children: /* @__PURE__ */ jsxs33("div", { className: "space-y-2", children: [
|
|
4827
|
+
/* @__PURE__ */ jsx48(Skeleton, { className: "h-4 w-1/3" }),
|
|
4828
|
+
/* @__PURE__ */ jsx48(Skeleton, { className: "h-4 w-full" }),
|
|
4829
|
+
/* @__PURE__ */ jsx48(Skeleton, { className: "h-4 w-2/3" })
|
|
4626
4830
|
] }) }, `skeleton-${skeletonRow}`)
|
|
4627
|
-
) : visible.length === 0 ? /* @__PURE__ */
|
|
4831
|
+
) : visible.length === 0 ? /* @__PURE__ */ jsx48("li", { className: "rounded-lg border border-border px-3 py-8 text-center text-sm text-muted-foreground", children: emptyMessage }) : visible.map((row, index) => /* @__PURE__ */ jsx48("li", { children: /* @__PURE__ */ jsxs33(
|
|
4628
4832
|
"div",
|
|
4629
4833
|
{
|
|
4630
4834
|
tabIndex: onRowClick ? 0 : void 0,
|
|
@@ -4640,12 +4844,12 @@ function DataTable({
|
|
|
4640
4844
|
onRowClick && "cursor-pointer transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
4641
4845
|
),
|
|
4642
4846
|
children: [
|
|
4643
|
-
selectionEnabled && /* @__PURE__ */
|
|
4847
|
+
selectionEnabled && /* @__PURE__ */ jsx48(
|
|
4644
4848
|
"div",
|
|
4645
4849
|
{
|
|
4646
4850
|
className: "flex items-center justify-end px-3 pt-2",
|
|
4647
4851
|
onClick: (event) => event.stopPropagation(),
|
|
4648
|
-
children: /* @__PURE__ */
|
|
4852
|
+
children: /* @__PURE__ */ jsx48(
|
|
4649
4853
|
Checkbox,
|
|
4650
4854
|
{
|
|
4651
4855
|
"aria-label": `Select row ${rowId(row)}`,
|
|
@@ -4656,15 +4860,15 @@ function DataTable({
|
|
|
4656
4860
|
)
|
|
4657
4861
|
}
|
|
4658
4862
|
),
|
|
4659
|
-
/* @__PURE__ */
|
|
4660
|
-
/* @__PURE__ */
|
|
4661
|
-
/* @__PURE__ */
|
|
4863
|
+
/* @__PURE__ */ jsx48("dl", { className: "divide-y divide-border", children: columns.map((column) => /* @__PURE__ */ jsxs33("div", { className: "px-3 py-2", children: [
|
|
4864
|
+
/* @__PURE__ */ jsx48("dt", { className: "text-xs font-medium text-muted-foreground", children: column.header }),
|
|
4865
|
+
/* @__PURE__ */ jsx48("dd", { className: cn("mt-0.5 text-sm", alignClass(column.align)), children: cardCell(row, column, index) })
|
|
4662
4866
|
] }, column.key)) })
|
|
4663
4867
|
]
|
|
4664
4868
|
}
|
|
4665
4869
|
) }, rowId(row))) }),
|
|
4666
|
-
pageSize && pageCount > 1 && /* @__PURE__ */
|
|
4667
|
-
/* @__PURE__ */
|
|
4870
|
+
pageSize && pageCount > 1 && /* @__PURE__ */ jsxs33("div", { className: "flex flex-wrap items-center justify-between gap-x-4 gap-y-2", children: [
|
|
4871
|
+
/* @__PURE__ */ jsxs33(
|
|
4668
4872
|
"p",
|
|
4669
4873
|
{
|
|
4670
4874
|
className: "min-h-8 leading-none text-xs text-muted-foreground",
|
|
@@ -4679,17 +4883,17 @@ function DataTable({
|
|
|
4679
4883
|
]
|
|
4680
4884
|
}
|
|
4681
4885
|
),
|
|
4682
|
-
/* @__PURE__ */
|
|
4886
|
+
/* @__PURE__ */ jsx48(Pagination, { page: safePage, pageCount, onPageChange: setPage })
|
|
4683
4887
|
] })
|
|
4684
4888
|
] });
|
|
4685
4889
|
}
|
|
4686
4890
|
|
|
4687
4891
|
// src/components/list/List.tsx
|
|
4688
|
-
import * as
|
|
4689
|
-
import { Fragment as Fragment9, jsx as
|
|
4690
|
-
var ListDensityContext =
|
|
4691
|
-
var List =
|
|
4692
|
-
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */
|
|
4892
|
+
import * as React49 from "react";
|
|
4893
|
+
import { Fragment as Fragment9, jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4894
|
+
var ListDensityContext = React49.createContext("default");
|
|
4895
|
+
var List = React49.forwardRef(
|
|
4896
|
+
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */ jsx49(ListDensityContext.Provider, { value: size, children: /* @__PURE__ */ jsx49(
|
|
4693
4897
|
"ul",
|
|
4694
4898
|
{
|
|
4695
4899
|
ref,
|
|
@@ -4704,9 +4908,9 @@ var List = React48.forwardRef(
|
|
|
4704
4908
|
) })
|
|
4705
4909
|
);
|
|
4706
4910
|
List.displayName = "List";
|
|
4707
|
-
var ListItem =
|
|
4911
|
+
var ListItem = React49.forwardRef(
|
|
4708
4912
|
({ leading, trailing, selected, onClick, description, disabled, className, children, ...props }, ref) => {
|
|
4709
|
-
const density =
|
|
4913
|
+
const density = React49.useContext(ListDensityContext);
|
|
4710
4914
|
const padding = density === "compact" ? "px-3 py-1.5" : "px-3 py-2.5";
|
|
4711
4915
|
const rowClass = cn(
|
|
4712
4916
|
"flex w-full items-center gap-3 text-left text-sm",
|
|
@@ -4715,24 +4919,24 @@ var ListItem = React48.forwardRef(
|
|
|
4715
4919
|
disabled && "opacity-50",
|
|
4716
4920
|
className
|
|
4717
4921
|
);
|
|
4718
|
-
const body = /* @__PURE__ */
|
|
4719
|
-
leading && /* @__PURE__ */
|
|
4720
|
-
/* @__PURE__ */
|
|
4721
|
-
/* @__PURE__ */
|
|
4722
|
-
description && /* @__PURE__ */
|
|
4922
|
+
const body = /* @__PURE__ */ jsxs34(Fragment9, { children: [
|
|
4923
|
+
leading && /* @__PURE__ */ jsx49("span", { className: "flex shrink-0 items-center", children: leading }),
|
|
4924
|
+
/* @__PURE__ */ jsxs34("span", { className: "min-w-0 flex-1", children: [
|
|
4925
|
+
/* @__PURE__ */ jsx49("span", { className: "block truncate", children }),
|
|
4926
|
+
description && /* @__PURE__ */ jsx49("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: description })
|
|
4723
4927
|
] }),
|
|
4724
|
-
trailing && /* @__PURE__ */
|
|
4928
|
+
trailing && /* @__PURE__ */ jsx49("span", { className: "flex shrink-0 items-center text-xs text-muted-foreground", children: trailing })
|
|
4725
4929
|
] });
|
|
4726
|
-
return /* @__PURE__ */
|
|
4930
|
+
return /* @__PURE__ */ jsx49("li", { ref, ...props, children: onClick ? /* @__PURE__ */ jsx49("button", { type: "button", onClick, disabled, className: cn(padding, rowClass), children: body }) : /* @__PURE__ */ jsx49("div", { className: cn(padding, rowClass), children: body }) });
|
|
4727
4931
|
}
|
|
4728
4932
|
);
|
|
4729
4933
|
ListItem.displayName = "ListItem";
|
|
4730
4934
|
|
|
4731
4935
|
// src/components/link/Link.tsx
|
|
4732
|
-
import * as
|
|
4936
|
+
import * as React50 from "react";
|
|
4733
4937
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
4734
4938
|
import { cva as cva7 } from "class-variance-authority";
|
|
4735
|
-
import { Fragment as Fragment10, jsx as
|
|
4939
|
+
import { Fragment as Fragment10, jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4736
4940
|
var linkVariants = cva7("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", {
|
|
4737
4941
|
variants: {
|
|
4738
4942
|
variant: {
|
|
@@ -4746,12 +4950,12 @@ var linkVariants = cva7("inline-flex items-center gap-1 transition-colors focus-
|
|
|
4746
4950
|
defaultVariants: { variant: "default" }
|
|
4747
4951
|
});
|
|
4748
4952
|
var ABSOLUTE = /^https?:\/\//i;
|
|
4749
|
-
var Link =
|
|
4953
|
+
var Link = React50.forwardRef(function Link2({ className, variant, asChild = false, external, target, rel, children, ...props }, ref) {
|
|
4750
4954
|
const isAbsolute = typeof props.href === "string" && ABSOLUTE.test(props.href);
|
|
4751
4955
|
const isExternal = external ?? isAbsolute;
|
|
4752
4956
|
const Comp = asChild ? Slot4 : "a";
|
|
4753
4957
|
if (asChild) {
|
|
4754
|
-
return /* @__PURE__ */
|
|
4958
|
+
return /* @__PURE__ */ jsx50(
|
|
4755
4959
|
Comp,
|
|
4756
4960
|
{
|
|
4757
4961
|
ref,
|
|
@@ -4763,7 +4967,7 @@ var Link = React49.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4763
4967
|
}
|
|
4764
4968
|
);
|
|
4765
4969
|
}
|
|
4766
|
-
return /* @__PURE__ */
|
|
4970
|
+
return /* @__PURE__ */ jsxs35(
|
|
4767
4971
|
Comp,
|
|
4768
4972
|
{
|
|
4769
4973
|
ref,
|
|
@@ -4773,9 +4977,9 @@ var Link = React49.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4773
4977
|
...props,
|
|
4774
4978
|
children: [
|
|
4775
4979
|
children,
|
|
4776
|
-
isExternal && variant !== "muted" && /* @__PURE__ */
|
|
4777
|
-
/* @__PURE__ */
|
|
4778
|
-
/* @__PURE__ */
|
|
4980
|
+
isExternal && variant !== "muted" && /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
4981
|
+
/* @__PURE__ */ jsx50("span", { "aria-hidden": "true", className: "text-[0.75em]", children: "\u2197" }),
|
|
4982
|
+
/* @__PURE__ */ jsx50("span", { className: "sr-only", children: "(opens in a new tab)" })
|
|
4779
4983
|
] })
|
|
4780
4984
|
]
|
|
4781
4985
|
}
|
|
@@ -4783,8 +4987,8 @@ var Link = React49.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4783
4987
|
});
|
|
4784
4988
|
|
|
4785
4989
|
// src/components/image/Image.tsx
|
|
4786
|
-
import * as
|
|
4787
|
-
import { Fragment as Fragment11, jsx as
|
|
4990
|
+
import * as React51 from "react";
|
|
4991
|
+
import { Fragment as Fragment11, jsx as jsx51 } from "react/jsx-runtime";
|
|
4788
4992
|
function Image2({
|
|
4789
4993
|
src,
|
|
4790
4994
|
alt,
|
|
@@ -4798,16 +5002,16 @@ function Image2({
|
|
|
4798
5002
|
sizes,
|
|
4799
5003
|
style
|
|
4800
5004
|
}) {
|
|
4801
|
-
const [stage, setStage] =
|
|
4802
|
-
const [prevUrls, setPrevUrls] =
|
|
5005
|
+
const [stage, setStage] = React51.useState(0);
|
|
5006
|
+
const [prevUrls, setPrevUrls] = React51.useState({ src, fallbackSrc });
|
|
4803
5007
|
if (prevUrls.src !== src || prevUrls.fallbackSrc !== fallbackSrc) {
|
|
4804
5008
|
setPrevUrls({ src, fallbackSrc });
|
|
4805
5009
|
setStage(0);
|
|
4806
5010
|
}
|
|
4807
5011
|
const onError = () => setStage((current2) => current2 === 0 && fallbackSrc ? 1 : 2);
|
|
4808
5012
|
const current = stage === 0 ? src : stage === 1 ? fallbackSrc : null;
|
|
4809
|
-
if (!current || stage === 2) return /* @__PURE__ */
|
|
4810
|
-
return /* @__PURE__ */
|
|
5013
|
+
if (!current || stage === 2) return /* @__PURE__ */ jsx51(Fragment11, { children: fallback ?? null });
|
|
5014
|
+
return /* @__PURE__ */ jsx51(
|
|
4811
5015
|
"img",
|
|
4812
5016
|
{
|
|
4813
5017
|
src: current,
|
|
@@ -4827,7 +5031,7 @@ function Image2({
|
|
|
4827
5031
|
Image2.displayName = "Image";
|
|
4828
5032
|
|
|
4829
5033
|
// src/components/cover-image/CoverImage.tsx
|
|
4830
|
-
import { jsx as
|
|
5034
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
4831
5035
|
var aspectClasses = {
|
|
4832
5036
|
video: "aspect-video",
|
|
4833
5037
|
square: "aspect-square",
|
|
@@ -4862,21 +5066,21 @@ function CoverImage({
|
|
|
4862
5066
|
}) {
|
|
4863
5067
|
const preset = aspectClasses[aspect];
|
|
4864
5068
|
const aspectStyle = preset === void 0 && typeof aspect === "string" ? { aspectRatio: aspect } : void 0;
|
|
4865
|
-
const fallbackNode = fallback ?? /* @__PURE__ */
|
|
5069
|
+
const fallbackNode = fallback ?? /* @__PURE__ */ jsx52(
|
|
4866
5070
|
"div",
|
|
4867
5071
|
{
|
|
4868
5072
|
className: "flex h-full w-full items-center justify-center",
|
|
4869
5073
|
style: seededGradient(seed ?? alt),
|
|
4870
5074
|
"aria-hidden": "true",
|
|
4871
|
-
children: mark && /* @__PURE__ */
|
|
5075
|
+
children: mark && /* @__PURE__ */ jsx52("span", { className: "text-muted-foreground [&_svg]:size-8", children: mark })
|
|
4872
5076
|
}
|
|
4873
5077
|
);
|
|
4874
|
-
return /* @__PURE__ */
|
|
5078
|
+
return /* @__PURE__ */ jsx52(
|
|
4875
5079
|
"div",
|
|
4876
5080
|
{
|
|
4877
5081
|
className: cn("relative overflow-hidden rounded-lg bg-muted", preset, className),
|
|
4878
5082
|
style: aspectStyle,
|
|
4879
|
-
children: src ? /* @__PURE__ */
|
|
5083
|
+
children: src ? /* @__PURE__ */ jsx52(
|
|
4880
5084
|
Image2,
|
|
4881
5085
|
{
|
|
4882
5086
|
src,
|
|
@@ -4893,8 +5097,8 @@ function CoverImage({
|
|
|
4893
5097
|
CoverImage.displayName = "CoverImage";
|
|
4894
5098
|
|
|
4895
5099
|
// src/components/text/Text.tsx
|
|
4896
|
-
import * as
|
|
4897
|
-
import { jsx as
|
|
5100
|
+
import * as React52 from "react";
|
|
5101
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
4898
5102
|
var sizeClasses4 = {
|
|
4899
5103
|
xs: "text-xs",
|
|
4900
5104
|
sm: "text-sm",
|
|
@@ -4908,10 +5112,10 @@ var weightClasses = {
|
|
|
4908
5112
|
semibold: "font-semibold",
|
|
4909
5113
|
bold: "font-bold"
|
|
4910
5114
|
};
|
|
4911
|
-
var Text =
|
|
5115
|
+
var Text = React52.forwardRef(
|
|
4912
5116
|
({ inline, size = "base", weight, muted, className, ...props }, ref) => {
|
|
4913
5117
|
const Tag = inline ? "span" : "p";
|
|
4914
|
-
return /* @__PURE__ */
|
|
5118
|
+
return /* @__PURE__ */ jsx53(
|
|
4915
5119
|
Tag,
|
|
4916
5120
|
{
|
|
4917
5121
|
ref,
|
|
@@ -4930,8 +5134,8 @@ var Text = React51.forwardRef(
|
|
|
4930
5134
|
Text.displayName = "Text";
|
|
4931
5135
|
|
|
4932
5136
|
// src/components/heading/Heading.tsx
|
|
4933
|
-
import * as
|
|
4934
|
-
import { jsx as
|
|
5137
|
+
import * as React53 from "react";
|
|
5138
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
4935
5139
|
var levelClasses = {
|
|
4936
5140
|
1: "text-4xl",
|
|
4937
5141
|
2: "text-3xl",
|
|
@@ -4948,10 +5152,10 @@ var sizeClasses5 = {
|
|
|
4948
5152
|
"2xl": "text-4xl",
|
|
4949
5153
|
"3xl": "text-5xl"
|
|
4950
5154
|
};
|
|
4951
|
-
var Heading =
|
|
5155
|
+
var Heading = React53.forwardRef(
|
|
4952
5156
|
({ level, size, muted, className, ...props }, ref) => {
|
|
4953
5157
|
const Tag = `h${level}`;
|
|
4954
|
-
return /* @__PURE__ */
|
|
5158
|
+
return /* @__PURE__ */ jsx54(
|
|
4955
5159
|
Tag,
|
|
4956
5160
|
{
|
|
4957
5161
|
ref,
|
|
@@ -4969,10 +5173,10 @@ var Heading = React52.forwardRef(
|
|
|
4969
5173
|
Heading.displayName = "Heading";
|
|
4970
5174
|
|
|
4971
5175
|
// src/components/empty-state/EmptyState.tsx
|
|
4972
|
-
import * as
|
|
4973
|
-
import { jsx as
|
|
5176
|
+
import * as React54 from "react";
|
|
5177
|
+
import { jsx as jsx55, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4974
5178
|
function isActionObject(value) {
|
|
4975
|
-
return typeof value === "object" && value !== null && !
|
|
5179
|
+
return typeof value === "object" && value !== null && !React54.isValidElement(value) && "label" in value;
|
|
4976
5180
|
}
|
|
4977
5181
|
function renderAction(action, linkComponent, linkHrefProp = "href") {
|
|
4978
5182
|
if (!isActionObject(action)) return action;
|
|
@@ -4980,11 +5184,11 @@ function renderAction(action, linkComponent, linkHrefProp = "href") {
|
|
|
4980
5184
|
if (href) {
|
|
4981
5185
|
const LinkEl = linkComponent ?? "a";
|
|
4982
5186
|
const destination = linkHrefProp === "to" ? { to: href } : { href };
|
|
4983
|
-
return /* @__PURE__ */
|
|
5187
|
+
return /* @__PURE__ */ jsx55(Button, { variant, asChild: true, children: /* @__PURE__ */ jsx55(LinkEl, { ...destination, children: label }) });
|
|
4984
5188
|
}
|
|
4985
|
-
return /* @__PURE__ */
|
|
5189
|
+
return /* @__PURE__ */ jsx55(Button, { variant, onClick, children: label });
|
|
4986
5190
|
}
|
|
4987
|
-
var EmptyState =
|
|
5191
|
+
var EmptyState = React54.forwardRef(function EmptyState2({
|
|
4988
5192
|
icon,
|
|
4989
5193
|
title,
|
|
4990
5194
|
description,
|
|
@@ -5003,7 +5207,7 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
5003
5207
|
}, ref) {
|
|
5004
5208
|
const primaryAction = renderAction(action, linkComponent, linkHrefProp) ?? actions;
|
|
5005
5209
|
const start = align === "start";
|
|
5006
|
-
return /* @__PURE__ */
|
|
5210
|
+
return /* @__PURE__ */ jsxs36(
|
|
5007
5211
|
"div",
|
|
5008
5212
|
{
|
|
5009
5213
|
ref,
|
|
@@ -5017,11 +5221,11 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
5017
5221
|
),
|
|
5018
5222
|
...props,
|
|
5019
5223
|
children: [
|
|
5020
|
-
icon && /* @__PURE__ */
|
|
5021
|
-
/* @__PURE__ */
|
|
5022
|
-
description && /* @__PURE__ */
|
|
5224
|
+
icon && /* @__PURE__ */ jsx55("div", { className: "text-muted-foreground [&_svg]:size-8", children: icon }),
|
|
5225
|
+
/* @__PURE__ */ jsx55(Title, { className: cn("font-semibold", size === "md" ? "text-base" : "text-sm"), children: title }),
|
|
5226
|
+
description && /* @__PURE__ */ jsx55("p", { className: cn("max-w-sm text-sm text-muted-foreground", start && "max-w-md"), children: description }),
|
|
5023
5227
|
children,
|
|
5024
|
-
(primaryAction || secondaryAction) && /* @__PURE__ */
|
|
5228
|
+
(primaryAction || secondaryAction) && /* @__PURE__ */ jsxs36("div", { className: cn("mt-1 flex flex-wrap items-center gap-2", start ? "justify-start" : "justify-center"), children: [
|
|
5025
5229
|
primaryAction,
|
|
5026
5230
|
secondaryAction
|
|
5027
5231
|
] })
|
|
@@ -5031,27 +5235,27 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
5031
5235
|
});
|
|
5032
5236
|
|
|
5033
5237
|
// src/components/page-header/PageHeader.tsx
|
|
5034
|
-
import * as
|
|
5035
|
-
import { jsx as
|
|
5238
|
+
import * as React55 from "react";
|
|
5239
|
+
import { jsx as jsx56, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
5036
5240
|
var sizeClasses6 = {
|
|
5037
5241
|
sm: "text-xl",
|
|
5038
5242
|
md: "text-2xl",
|
|
5039
5243
|
lg: "text-3xl",
|
|
5040
5244
|
hero: "text-4xl sm:text-5xl lg:text-[3.4rem] lg:leading-[1.1]"
|
|
5041
5245
|
};
|
|
5042
|
-
var PageHeader =
|
|
5246
|
+
var PageHeader = React55.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", as: Heading2 = "h1", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
5043
5247
|
const supporting = description ?? subtitle;
|
|
5044
|
-
return /* @__PURE__ */
|
|
5045
|
-
breadcrumbs && /* @__PURE__ */
|
|
5046
|
-
eyebrow && /* @__PURE__ */
|
|
5047
|
-
/* @__PURE__ */
|
|
5048
|
-
/* @__PURE__ */
|
|
5049
|
-
/* @__PURE__ */
|
|
5050
|
-
supporting && /* @__PURE__ */
|
|
5248
|
+
return /* @__PURE__ */ jsxs37("div", { ref, className: cn("flex flex-col gap-2", align === "center" && "items-center text-center", className), ...props, children: [
|
|
5249
|
+
breadcrumbs && /* @__PURE__ */ jsx56("div", { className: "text-sm text-muted-foreground", children: breadcrumbs }),
|
|
5250
|
+
eyebrow && /* @__PURE__ */ jsx56("div", { className: cn("text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
5251
|
+
/* @__PURE__ */ jsxs37("div", { className: cn("flex w-full flex-wrap items-start justify-between gap-3", align === "center" && "justify-center"), children: [
|
|
5252
|
+
/* @__PURE__ */ jsxs37("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
5253
|
+
/* @__PURE__ */ jsx56(Heading2, { className: cn("font-semibold tracking-tight", sizeClasses6[size], titleClassName), children: title }),
|
|
5254
|
+
supporting && /* @__PURE__ */ jsx56("p", { className: cn("mt-2 max-w-2xl text-base text-muted-foreground", descriptionClassName), children: supporting })
|
|
5051
5255
|
] }),
|
|
5052
|
-
actions && /* @__PURE__ */
|
|
5256
|
+
actions && /* @__PURE__ */ jsx56("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
5053
5257
|
] }),
|
|
5054
|
-
children && /* @__PURE__ */
|
|
5258
|
+
children && /* @__PURE__ */ jsx56("div", { className: "mt-2", children })
|
|
5055
5259
|
] });
|
|
5056
5260
|
});
|
|
5057
5261
|
|
|
@@ -5071,16 +5275,16 @@ function documentHead({
|
|
|
5071
5275
|
}
|
|
5072
5276
|
|
|
5073
5277
|
// src/components/section-heading/SectionHeading.tsx
|
|
5074
|
-
import * as
|
|
5075
|
-
import { jsx as
|
|
5278
|
+
import * as React56 from "react";
|
|
5279
|
+
import { jsx as jsx57, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
5076
5280
|
var sizeClasses7 = {
|
|
5077
5281
|
sm: "text-lg",
|
|
5078
5282
|
md: "text-2xl",
|
|
5079
5283
|
lg: "text-3xl"
|
|
5080
5284
|
};
|
|
5081
|
-
var SectionHeading =
|
|
5285
|
+
var SectionHeading = React56.forwardRef(function SectionHeading2({ title, description, eyebrow, actions, level = 2, align = "left", size = "md", titleClassName, descriptionClassName, eyebrowClassName, className, ...props }, ref) {
|
|
5082
5286
|
const Heading2 = `h${level}`;
|
|
5083
|
-
return /* @__PURE__ */
|
|
5287
|
+
return /* @__PURE__ */ jsxs38(
|
|
5084
5288
|
"div",
|
|
5085
5289
|
{
|
|
5086
5290
|
ref,
|
|
@@ -5091,20 +5295,20 @@ var SectionHeading = React55.forwardRef(function SectionHeading2({ title, descri
|
|
|
5091
5295
|
),
|
|
5092
5296
|
...props,
|
|
5093
5297
|
children: [
|
|
5094
|
-
/* @__PURE__ */
|
|
5095
|
-
eyebrow && /* @__PURE__ */
|
|
5096
|
-
/* @__PURE__ */
|
|
5097
|
-
description && /* @__PURE__ */
|
|
5298
|
+
/* @__PURE__ */ jsxs38("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
5299
|
+
eyebrow && /* @__PURE__ */ jsx57("div", { className: cn("mb-1 text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
5300
|
+
/* @__PURE__ */ jsx57(Heading2, { className: cn("font-semibold tracking-tight", sizeClasses7[size], titleClassName), children: title }),
|
|
5301
|
+
description && /* @__PURE__ */ jsx57("p", { className: cn("mt-2 max-w-2xl text-muted-foreground", align === "center" ? "mx-auto" : "", descriptionClassName), children: description })
|
|
5098
5302
|
] }),
|
|
5099
|
-
actions && /* @__PURE__ */
|
|
5303
|
+
actions && /* @__PURE__ */ jsx57("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
5100
5304
|
]
|
|
5101
5305
|
}
|
|
5102
5306
|
);
|
|
5103
5307
|
});
|
|
5104
5308
|
|
|
5105
5309
|
// src/components/metric-card/MetricCard.tsx
|
|
5106
|
-
import * as
|
|
5107
|
-
import { jsx as
|
|
5310
|
+
import * as React57 from "react";
|
|
5311
|
+
import { jsx as jsx58, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
5108
5312
|
var trendClasses = {
|
|
5109
5313
|
up: "text-success",
|
|
5110
5314
|
down: "text-destructive",
|
|
@@ -5117,11 +5321,11 @@ var toneClasses = {
|
|
|
5117
5321
|
destructive: "text-destructive"
|
|
5118
5322
|
};
|
|
5119
5323
|
var trendGlyph = { up: "\u2191", down: "\u2193", flat: "\u2192" };
|
|
5120
|
-
var MetricCard =
|
|
5324
|
+
var MetricCard = React57.forwardRef(function MetricCard2({ label, value, hint, title, description, delta, trend = "flat", tone = "default", loading = false, icon, className, ...props }, ref) {
|
|
5121
5325
|
const heading = label ?? title;
|
|
5122
5326
|
const supporting = hint ?? description;
|
|
5123
5327
|
if (loading) {
|
|
5124
|
-
return /* @__PURE__ */
|
|
5328
|
+
return /* @__PURE__ */ jsxs39(
|
|
5125
5329
|
"div",
|
|
5126
5330
|
{
|
|
5127
5331
|
ref,
|
|
@@ -5129,41 +5333,41 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
5129
5333
|
className: cn("rounded-xl border border-border bg-card p-5", className),
|
|
5130
5334
|
...props,
|
|
5131
5335
|
children: [
|
|
5132
|
-
/* @__PURE__ */
|
|
5133
|
-
heading && /* @__PURE__ */
|
|
5134
|
-
icon && /* @__PURE__ */
|
|
5336
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex items-start justify-between gap-3", children: [
|
|
5337
|
+
heading && /* @__PURE__ */ jsx58("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
5338
|
+
icon && /* @__PURE__ */ jsx58("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
5135
5339
|
] }),
|
|
5136
|
-
/* @__PURE__ */
|
|
5137
|
-
/* @__PURE__ */
|
|
5340
|
+
/* @__PURE__ */ jsx58("span", { "aria-hidden": "true", className: "mt-3 block h-7 w-24 animate-pulse rounded-md bg-muted" }),
|
|
5341
|
+
/* @__PURE__ */ jsx58("span", { className: "sr-only", children: "Loading" })
|
|
5138
5342
|
]
|
|
5139
5343
|
}
|
|
5140
5344
|
);
|
|
5141
5345
|
}
|
|
5142
|
-
return /* @__PURE__ */
|
|
5143
|
-
/* @__PURE__ */
|
|
5144
|
-
heading && /* @__PURE__ */
|
|
5145
|
-
icon && /* @__PURE__ */
|
|
5346
|
+
return /* @__PURE__ */ jsxs39("div", { ref, className: cn("rounded-xl border border-border bg-card p-5", className), ...props, children: [
|
|
5347
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex items-start justify-between gap-3", children: [
|
|
5348
|
+
heading && /* @__PURE__ */ jsx58("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
5349
|
+
icon && /* @__PURE__ */ jsx58("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
5146
5350
|
] }),
|
|
5147
|
-
/* @__PURE__ */
|
|
5148
|
-
(delta || supporting) && /* @__PURE__ */
|
|
5149
|
-
delta && /* @__PURE__ */
|
|
5150
|
-
/* @__PURE__ */
|
|
5351
|
+
/* @__PURE__ */ jsx58("p", { className: cn("mt-2 text-2xl font-semibold tabular-nums", toneClasses[tone]), children: value }),
|
|
5352
|
+
(delta || supporting) && /* @__PURE__ */ jsxs39("p", { className: "mt-1 flex items-center gap-2 text-sm", children: [
|
|
5353
|
+
delta && /* @__PURE__ */ jsxs39("span", { className: cn("font-medium tabular-nums", trendClasses[trend]), children: [
|
|
5354
|
+
/* @__PURE__ */ jsx58("span", { "aria-hidden": "true", children: trendGlyph[trend] }),
|
|
5151
5355
|
" ",
|
|
5152
5356
|
delta
|
|
5153
5357
|
] }),
|
|
5154
|
-
supporting && /* @__PURE__ */
|
|
5358
|
+
supporting && /* @__PURE__ */ jsx58("span", { className: "text-muted-foreground", children: supporting })
|
|
5155
5359
|
] })
|
|
5156
5360
|
] });
|
|
5157
5361
|
});
|
|
5158
5362
|
|
|
5159
5363
|
// src/components/password-input/PasswordInput.tsx
|
|
5160
|
-
import * as
|
|
5161
|
-
import { jsx as
|
|
5162
|
-
var PasswordInput =
|
|
5163
|
-
const [visible, setVisible] =
|
|
5164
|
-
return /* @__PURE__ */
|
|
5165
|
-
/* @__PURE__ */
|
|
5166
|
-
/* @__PURE__ */
|
|
5364
|
+
import * as React58 from "react";
|
|
5365
|
+
import { jsx as jsx59, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
5366
|
+
var PasswordInput = React58.forwardRef(function PasswordInput2({ className, showLabel = "Show password", hideLabel = "Hide password", ...props }, ref) {
|
|
5367
|
+
const [visible, setVisible] = React58.useState(false);
|
|
5368
|
+
return /* @__PURE__ */ jsxs40("div", { className: cn("relative flex items-center", className), children: [
|
|
5369
|
+
/* @__PURE__ */ jsx59(Input, { ref, type: visible ? "text" : "password", className: "pr-24", ...props }),
|
|
5370
|
+
/* @__PURE__ */ jsx59(
|
|
5167
5371
|
Button,
|
|
5168
5372
|
{
|
|
5169
5373
|
type: "button",
|
|
@@ -5180,14 +5384,14 @@ var PasswordInput = React57.forwardRef(function PasswordInput2({ className, show
|
|
|
5180
5384
|
});
|
|
5181
5385
|
|
|
5182
5386
|
// src/components/auth-layout/AuthLayout.tsx
|
|
5183
|
-
import * as
|
|
5184
|
-
import { jsx as
|
|
5387
|
+
import * as React59 from "react";
|
|
5388
|
+
import { jsx as jsx60, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
5185
5389
|
var sizeClasses8 = {
|
|
5186
5390
|
sm: "max-w-sm",
|
|
5187
5391
|
md: "max-w-md",
|
|
5188
5392
|
lg: "max-w-lg"
|
|
5189
5393
|
};
|
|
5190
|
-
var AuthLayout =
|
|
5394
|
+
var AuthLayout = React59.forwardRef(function AuthLayout2({
|
|
5191
5395
|
title,
|
|
5192
5396
|
description,
|
|
5193
5397
|
subtitle,
|
|
@@ -5206,7 +5410,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5206
5410
|
const supporting = description ?? subtitle;
|
|
5207
5411
|
const mark = brand ?? logo;
|
|
5208
5412
|
const widthStyle = maxWidth === void 0 ? void 0 : { maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth };
|
|
5209
|
-
const form = /* @__PURE__ */
|
|
5413
|
+
const form = /* @__PURE__ */ jsxs41(
|
|
5210
5414
|
"div",
|
|
5211
5415
|
{
|
|
5212
5416
|
className: cn(
|
|
@@ -5215,8 +5419,8 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5215
5419
|
),
|
|
5216
5420
|
style: widthStyle,
|
|
5217
5421
|
children: [
|
|
5218
|
-
mark && /* @__PURE__ */
|
|
5219
|
-
/* @__PURE__ */
|
|
5422
|
+
mark && /* @__PURE__ */ jsx60("div", { className: "mb-6", children: mark }),
|
|
5423
|
+
/* @__PURE__ */ jsxs41(
|
|
5220
5424
|
"div",
|
|
5221
5425
|
{
|
|
5222
5426
|
className: cn(
|
|
@@ -5225,31 +5429,31 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5225
5429
|
),
|
|
5226
5430
|
style: widthStyle,
|
|
5227
5431
|
children: [
|
|
5228
|
-
/* @__PURE__ */
|
|
5229
|
-
supporting && /* @__PURE__ */
|
|
5230
|
-
/* @__PURE__ */
|
|
5432
|
+
/* @__PURE__ */ jsx60("h1", { className: "text-xl font-semibold tracking-tight", children: title }),
|
|
5433
|
+
supporting && /* @__PURE__ */ jsx60("p", { className: "mt-1 text-sm text-muted-foreground", children: supporting }),
|
|
5434
|
+
/* @__PURE__ */ jsx60("div", { className: "mt-6", children })
|
|
5231
5435
|
]
|
|
5232
5436
|
}
|
|
5233
5437
|
),
|
|
5234
|
-
footer && /* @__PURE__ */
|
|
5438
|
+
footer && /* @__PURE__ */ jsx60("div", { className: "mt-6 text-center text-sm text-muted-foreground", children: footer })
|
|
5235
5439
|
]
|
|
5236
5440
|
}
|
|
5237
5441
|
);
|
|
5238
5442
|
if (split) {
|
|
5239
|
-
return /* @__PURE__ */
|
|
5443
|
+
return /* @__PURE__ */ jsx60(
|
|
5240
5444
|
"div",
|
|
5241
5445
|
{
|
|
5242
5446
|
ref,
|
|
5243
5447
|
className: cn("min-h-screen bg-muted/30 px-4 py-12 lg:px-8", className),
|
|
5244
5448
|
...props,
|
|
5245
|
-
children: /* @__PURE__ */
|
|
5449
|
+
children: /* @__PURE__ */ jsxs41("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: [
|
|
5246
5450
|
form,
|
|
5247
|
-
/* @__PURE__ */
|
|
5451
|
+
/* @__PURE__ */ jsx60("aside", { className: "w-full", children: aside })
|
|
5248
5452
|
] })
|
|
5249
5453
|
}
|
|
5250
5454
|
);
|
|
5251
5455
|
}
|
|
5252
|
-
return /* @__PURE__ */
|
|
5456
|
+
return /* @__PURE__ */ jsx60(
|
|
5253
5457
|
"div",
|
|
5254
5458
|
{
|
|
5255
5459
|
ref,
|
|
@@ -5264,9 +5468,9 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5264
5468
|
});
|
|
5265
5469
|
|
|
5266
5470
|
// src/components/filter-bar/FilterBar.tsx
|
|
5267
|
-
import * as
|
|
5268
|
-
import { jsx as
|
|
5269
|
-
var FilterBar =
|
|
5471
|
+
import * as React60 from "react";
|
|
5472
|
+
import { jsx as jsx61, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
5473
|
+
var FilterBar = React60.forwardRef(function FilterBar2({
|
|
5270
5474
|
searchValue,
|
|
5271
5475
|
onSearchChange,
|
|
5272
5476
|
searchPlaceholder = "Search\u2026",
|
|
@@ -5281,7 +5485,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5281
5485
|
children,
|
|
5282
5486
|
...props
|
|
5283
5487
|
}, ref) {
|
|
5284
|
-
return /* @__PURE__ */
|
|
5488
|
+
return /* @__PURE__ */ jsxs42(
|
|
5285
5489
|
"div",
|
|
5286
5490
|
{
|
|
5287
5491
|
ref,
|
|
@@ -5292,7 +5496,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5292
5496
|
),
|
|
5293
5497
|
...props,
|
|
5294
5498
|
children: [
|
|
5295
|
-
onSearchChange !== void 0 && /* @__PURE__ */
|
|
5499
|
+
onSearchChange !== void 0 && /* @__PURE__ */ jsx61(
|
|
5296
5500
|
Input,
|
|
5297
5501
|
{
|
|
5298
5502
|
type: "search",
|
|
@@ -5303,28 +5507,28 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5303
5507
|
className: "h-9 w-full min-w-40 flex-1 sm:w-auto"
|
|
5304
5508
|
}
|
|
5305
5509
|
),
|
|
5306
|
-
/* @__PURE__ */
|
|
5307
|
-
onOpenFilters && /* @__PURE__ */
|
|
5510
|
+
/* @__PURE__ */ jsx61("div", { className: "flex flex-wrap items-center gap-2", children }),
|
|
5511
|
+
onOpenFilters && /* @__PURE__ */ jsxs42(Button, { type: "button", variant: "outline", size: "sm", onClick: onOpenFilters, children: [
|
|
5308
5512
|
filtersLabel,
|
|
5309
5513
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
5310
5514
|
] }),
|
|
5311
|
-
onReset && /* @__PURE__ */
|
|
5515
|
+
onReset && /* @__PURE__ */ jsxs42(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, children: [
|
|
5312
5516
|
"Reset",
|
|
5313
5517
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
5314
5518
|
] }),
|
|
5315
|
-
resultsCount !== void 0 && /* @__PURE__ */
|
|
5519
|
+
resultsCount !== void 0 && /* @__PURE__ */ jsxs42("span", { className: "ml-auto text-sm text-muted-foreground", children: [
|
|
5316
5520
|
resultsCount,
|
|
5317
5521
|
" ",
|
|
5318
5522
|
resultsLabel
|
|
5319
5523
|
] }),
|
|
5320
|
-
trailing && /* @__PURE__ */
|
|
5524
|
+
trailing && /* @__PURE__ */ jsx61("div", { className: cn("flex items-center gap-2", resultsCount === void 0 && "ml-auto"), children: trailing })
|
|
5321
5525
|
]
|
|
5322
5526
|
}
|
|
5323
5527
|
);
|
|
5324
5528
|
});
|
|
5325
5529
|
|
|
5326
5530
|
// src/components/list-toolbar/ListToolbar.tsx
|
|
5327
|
-
import { jsx as
|
|
5531
|
+
import { jsx as jsx62, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
5328
5532
|
var alignClasses = {
|
|
5329
5533
|
between: "justify-between",
|
|
5330
5534
|
start: "justify-start",
|
|
@@ -5342,22 +5546,22 @@ function ListToolbar({
|
|
|
5342
5546
|
...props
|
|
5343
5547
|
}) {
|
|
5344
5548
|
const hasSummary = count !== void 0 || position !== void 0 || note !== void 0;
|
|
5345
|
-
return /* @__PURE__ */
|
|
5549
|
+
return /* @__PURE__ */ jsxs43(
|
|
5346
5550
|
"div",
|
|
5347
5551
|
{
|
|
5348
5552
|
className: cn("flex flex-wrap items-center gap-x-4 gap-y-2 text-sm", alignClasses[align], className),
|
|
5349
5553
|
...props,
|
|
5350
5554
|
children: [
|
|
5351
|
-
hasSummary && /* @__PURE__ */
|
|
5352
|
-
count !== void 0 && /* @__PURE__ */
|
|
5555
|
+
hasSummary && /* @__PURE__ */ jsxs43("p", { className: "flex flex-wrap items-baseline gap-x-2 text-muted-foreground", "aria-live": "polite", children: [
|
|
5556
|
+
count !== void 0 && /* @__PURE__ */ jsxs43("span", { className: "font-medium text-foreground", children: [
|
|
5353
5557
|
count,
|
|
5354
5558
|
" ",
|
|
5355
5559
|
countLabel
|
|
5356
5560
|
] }),
|
|
5357
|
-
position && /* @__PURE__ */
|
|
5358
|
-
note && /* @__PURE__ */
|
|
5561
|
+
position && /* @__PURE__ */ jsx62("span", { children: position }),
|
|
5562
|
+
note && /* @__PURE__ */ jsx62("span", { className: "text-xs", children: note })
|
|
5359
5563
|
] }),
|
|
5360
|
-
children && /* @__PURE__ */
|
|
5564
|
+
children && /* @__PURE__ */ jsx62("div", { className: "flex flex-wrap items-center gap-2", children })
|
|
5361
5565
|
]
|
|
5362
5566
|
}
|
|
5363
5567
|
);
|
|
@@ -5365,17 +5569,17 @@ function ListToolbar({
|
|
|
5365
5569
|
ListToolbar.displayName = "ListToolbar";
|
|
5366
5570
|
|
|
5367
5571
|
// src/components/date-picker/DatePicker.tsx
|
|
5368
|
-
import * as
|
|
5369
|
-
import { jsx as
|
|
5370
|
-
var DatePicker =
|
|
5371
|
-
const [internal, setInternal] =
|
|
5572
|
+
import * as React61 from "react";
|
|
5573
|
+
import { jsx as jsx63, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
5574
|
+
var DatePicker = React61.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
5575
|
+
const [internal, setInternal] = React61.useState(defaultValue ?? "");
|
|
5372
5576
|
const current = value ?? internal;
|
|
5373
5577
|
const commit = (next) => {
|
|
5374
5578
|
if (value === void 0) setInternal(next);
|
|
5375
5579
|
onValueChange?.(next);
|
|
5376
5580
|
};
|
|
5377
|
-
return /* @__PURE__ */
|
|
5378
|
-
/* @__PURE__ */
|
|
5581
|
+
return /* @__PURE__ */ jsxs44("div", { className: cn("relative flex items-center", className), children: [
|
|
5582
|
+
/* @__PURE__ */ jsx63(
|
|
5379
5583
|
Input,
|
|
5380
5584
|
{
|
|
5381
5585
|
ref,
|
|
@@ -5389,7 +5593,7 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5389
5593
|
...props
|
|
5390
5594
|
}
|
|
5391
5595
|
),
|
|
5392
|
-
clearable && current && /* @__PURE__ */
|
|
5596
|
+
clearable && current && /* @__PURE__ */ jsx63(
|
|
5393
5597
|
"button",
|
|
5394
5598
|
{
|
|
5395
5599
|
type: "button",
|
|
@@ -5403,10 +5607,10 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5403
5607
|
});
|
|
5404
5608
|
|
|
5405
5609
|
// src/components/date-picker-popover/DatePickerPopover.tsx
|
|
5406
|
-
import * as
|
|
5610
|
+
import * as React63 from "react";
|
|
5407
5611
|
|
|
5408
5612
|
// src/components/popover/Popover.tsx
|
|
5409
|
-
import * as
|
|
5613
|
+
import * as React62 from "react";
|
|
5410
5614
|
import { createPortal as createPortal7 } from "react-dom";
|
|
5411
5615
|
|
|
5412
5616
|
// src/utils/position.ts
|
|
@@ -5475,8 +5679,8 @@ function computePosition({
|
|
|
5475
5679
|
}
|
|
5476
5680
|
|
|
5477
5681
|
// src/components/popover/Popover.tsx
|
|
5478
|
-
import { jsx as
|
|
5479
|
-
var PopoverContext =
|
|
5682
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
5683
|
+
var PopoverContext = React62.createContext({
|
|
5480
5684
|
open: false,
|
|
5481
5685
|
setOpen: () => {
|
|
5482
5686
|
},
|
|
@@ -5486,16 +5690,16 @@ var PopoverContext = React61.createContext({
|
|
|
5486
5690
|
anchorRef: { current: null },
|
|
5487
5691
|
triggerRef: { current: null }
|
|
5488
5692
|
});
|
|
5489
|
-
var Popover =
|
|
5693
|
+
var Popover = React62.forwardRef(
|
|
5490
5694
|
({ open, onOpenChange, className, children }, ref) => {
|
|
5491
|
-
const [internalOpen, setInternalOpen] =
|
|
5695
|
+
const [internalOpen, setInternalOpen] = React62.useState(false);
|
|
5492
5696
|
const current = open ?? internalOpen;
|
|
5493
|
-
const triggerId =
|
|
5494
|
-
const contentId =
|
|
5495
|
-
const wrapperRef =
|
|
5496
|
-
const anchorRef =
|
|
5497
|
-
const triggerRef =
|
|
5498
|
-
const setRefs =
|
|
5697
|
+
const triggerId = React62.useId();
|
|
5698
|
+
const contentId = React62.useId();
|
|
5699
|
+
const wrapperRef = React62.useRef(null);
|
|
5700
|
+
const anchorRef = React62.useRef(null);
|
|
5701
|
+
const triggerRef = React62.useRef(null);
|
|
5702
|
+
const setRefs = React62.useCallback(
|
|
5499
5703
|
(node) => {
|
|
5500
5704
|
wrapperRef.current = node;
|
|
5501
5705
|
if (typeof ref === "function") ref(node);
|
|
@@ -5503,14 +5707,14 @@ var Popover = React61.forwardRef(
|
|
|
5503
5707
|
},
|
|
5504
5708
|
[ref]
|
|
5505
5709
|
);
|
|
5506
|
-
const setOpen =
|
|
5710
|
+
const setOpen = React62.useCallback(
|
|
5507
5711
|
(next) => {
|
|
5508
5712
|
if (open === void 0) setInternalOpen(next);
|
|
5509
5713
|
onOpenChange?.(next);
|
|
5510
5714
|
},
|
|
5511
5715
|
[open, onOpenChange]
|
|
5512
5716
|
);
|
|
5513
|
-
return /* @__PURE__ */
|
|
5717
|
+
return /* @__PURE__ */ jsx64("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx64(
|
|
5514
5718
|
PopoverContext.Provider,
|
|
5515
5719
|
{
|
|
5516
5720
|
value: { open: current, setOpen, triggerId, contentId, wrapperRef, anchorRef, triggerRef },
|
|
@@ -5520,10 +5724,10 @@ var Popover = React61.forwardRef(
|
|
|
5520
5724
|
}
|
|
5521
5725
|
);
|
|
5522
5726
|
Popover.displayName = "Popover";
|
|
5523
|
-
var PopoverTrigger =
|
|
5727
|
+
var PopoverTrigger = React62.forwardRef(
|
|
5524
5728
|
({ className, children, onClick, id, ...props }, ref) => {
|
|
5525
|
-
const { open, setOpen, triggerId, contentId, triggerRef } =
|
|
5526
|
-
const setRefs =
|
|
5729
|
+
const { open, setOpen, triggerId, contentId, triggerRef } = React62.useContext(PopoverContext);
|
|
5730
|
+
const setRefs = React62.useCallback(
|
|
5527
5731
|
(node) => {
|
|
5528
5732
|
triggerRef.current = node;
|
|
5529
5733
|
if (typeof ref === "function") ref(node);
|
|
@@ -5531,7 +5735,7 @@ var PopoverTrigger = React61.forwardRef(
|
|
|
5531
5735
|
},
|
|
5532
5736
|
[ref, triggerRef]
|
|
5533
5737
|
);
|
|
5534
|
-
return /* @__PURE__ */
|
|
5738
|
+
return /* @__PURE__ */ jsx64(
|
|
5535
5739
|
"button",
|
|
5536
5740
|
{
|
|
5537
5741
|
ref: setRefs,
|
|
@@ -5556,10 +5760,10 @@ var PopoverTrigger = React61.forwardRef(
|
|
|
5556
5760
|
}
|
|
5557
5761
|
);
|
|
5558
5762
|
PopoverTrigger.displayName = "PopoverTrigger";
|
|
5559
|
-
var PopoverAnchor =
|
|
5763
|
+
var PopoverAnchor = React62.forwardRef(
|
|
5560
5764
|
({ className, children, ...props }, ref) => {
|
|
5561
|
-
const { anchorRef } =
|
|
5562
|
-
const setRefs =
|
|
5765
|
+
const { anchorRef } = React62.useContext(PopoverContext);
|
|
5766
|
+
const setRefs = React62.useCallback(
|
|
5563
5767
|
(node) => {
|
|
5564
5768
|
anchorRef.current = node;
|
|
5565
5769
|
if (typeof ref === "function") ref(node);
|
|
@@ -5567,7 +5771,7 @@ var PopoverAnchor = React61.forwardRef(
|
|
|
5567
5771
|
},
|
|
5568
5772
|
[anchorRef, ref]
|
|
5569
5773
|
);
|
|
5570
|
-
return /* @__PURE__ */
|
|
5774
|
+
return /* @__PURE__ */ jsx64("span", { ref: setRefs, className: cn("inline-block", className), ...props, children });
|
|
5571
5775
|
}
|
|
5572
5776
|
);
|
|
5573
5777
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
@@ -5580,7 +5784,7 @@ function rectOf(element) {
|
|
|
5580
5784
|
height: rect.height || element.offsetHeight || 0
|
|
5581
5785
|
};
|
|
5582
5786
|
}
|
|
5583
|
-
var PopoverContent =
|
|
5787
|
+
var PopoverContent = React62.forwardRef(
|
|
5584
5788
|
({
|
|
5585
5789
|
className,
|
|
5586
5790
|
children,
|
|
@@ -5594,12 +5798,12 @@ var PopoverContent = React61.forwardRef(
|
|
|
5594
5798
|
matchTriggerWidth = false,
|
|
5595
5799
|
...props
|
|
5596
5800
|
}, ref) => {
|
|
5597
|
-
const { open, setOpen, contentId, wrapperRef, anchorRef, triggerRef } =
|
|
5801
|
+
const { open, setOpen, contentId, wrapperRef, anchorRef, triggerRef } = React62.useContext(PopoverContext);
|
|
5598
5802
|
const labelledBy = triggerRef.current?.id || void 0;
|
|
5599
|
-
const contentRef =
|
|
5600
|
-
const [pos, setPos] =
|
|
5601
|
-
const [width, setWidth] =
|
|
5602
|
-
const updatePosition =
|
|
5803
|
+
const contentRef = React62.useRef(null);
|
|
5804
|
+
const [pos, setPos] = React62.useState(null);
|
|
5805
|
+
const [width, setWidth] = React62.useState(void 0);
|
|
5806
|
+
const updatePosition = React62.useCallback(() => {
|
|
5603
5807
|
const anchorEl = anchorRef.current ?? wrapperRef.current;
|
|
5604
5808
|
const panel = contentRef.current;
|
|
5605
5809
|
if (!anchorEl || !panel) return;
|
|
@@ -5628,17 +5832,17 @@ var PopoverContent = React61.forwardRef(
|
|
|
5628
5832
|
sideOffset,
|
|
5629
5833
|
wrapperRef
|
|
5630
5834
|
]);
|
|
5631
|
-
|
|
5835
|
+
React62.useLayoutEffect(() => {
|
|
5632
5836
|
if (!open) {
|
|
5633
5837
|
setPos(null);
|
|
5634
5838
|
return;
|
|
5635
5839
|
}
|
|
5636
5840
|
updatePosition();
|
|
5637
5841
|
}, [open, updatePosition]);
|
|
5638
|
-
|
|
5842
|
+
React62.useEffect(() => {
|
|
5639
5843
|
if (open && !pos) updatePosition();
|
|
5640
5844
|
}, [open, pos, updatePosition]);
|
|
5641
|
-
|
|
5845
|
+
React62.useEffect(() => {
|
|
5642
5846
|
if (!open) return;
|
|
5643
5847
|
const onScroll = () => updatePosition();
|
|
5644
5848
|
window.addEventListener("scroll", onScroll, true);
|
|
@@ -5652,7 +5856,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5652
5856
|
observer?.disconnect();
|
|
5653
5857
|
};
|
|
5654
5858
|
}, [open, updatePosition]);
|
|
5655
|
-
|
|
5859
|
+
React62.useEffect(() => {
|
|
5656
5860
|
if (!open) return;
|
|
5657
5861
|
function onPointerDown(event) {
|
|
5658
5862
|
if (!contentRef.current?.contains(event.target)) setOpen(false);
|
|
@@ -5660,14 +5864,14 @@ var PopoverContent = React61.forwardRef(
|
|
|
5660
5864
|
document.addEventListener("pointerdown", onPointerDown);
|
|
5661
5865
|
return () => document.removeEventListener("pointerdown", onPointerDown);
|
|
5662
5866
|
}, [open, setOpen]);
|
|
5663
|
-
|
|
5867
|
+
React62.useEffect(() => {
|
|
5664
5868
|
if (open && pos && contentRef.current) {
|
|
5665
5869
|
contentRef.current.focus();
|
|
5666
5870
|
}
|
|
5667
5871
|
}, [open, pos]);
|
|
5668
5872
|
if (!open || typeof document === "undefined") return null;
|
|
5669
5873
|
return createPortal7(
|
|
5670
|
-
/* @__PURE__ */
|
|
5874
|
+
/* @__PURE__ */ jsx64(
|
|
5671
5875
|
"div",
|
|
5672
5876
|
{
|
|
5673
5877
|
ref: (node) => {
|
|
@@ -5712,8 +5916,8 @@ var PopoverContent = React61.forwardRef(
|
|
|
5712
5916
|
PopoverContent.displayName = "PopoverContent";
|
|
5713
5917
|
|
|
5714
5918
|
// src/components/date-picker-popover/DatePickerPopover.tsx
|
|
5715
|
-
import { Fragment as Fragment12, jsx as
|
|
5716
|
-
var DatePickerPopover =
|
|
5919
|
+
import { Fragment as Fragment12, jsx as jsx65, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
5920
|
+
var DatePickerPopover = React63.forwardRef(
|
|
5717
5921
|
({
|
|
5718
5922
|
value,
|
|
5719
5923
|
onValueChange,
|
|
@@ -5734,9 +5938,9 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5734
5938
|
"aria-describedby": ariaDescribedBy,
|
|
5735
5939
|
"aria-invalid": ariaInvalid
|
|
5736
5940
|
}, ref) => {
|
|
5737
|
-
const [open, setOpen] =
|
|
5738
|
-
const triggerRef =
|
|
5739
|
-
const setTriggerRef =
|
|
5941
|
+
const [open, setOpen] = React63.useState(false);
|
|
5942
|
+
const triggerRef = React63.useRef(null);
|
|
5943
|
+
const setTriggerRef = React63.useCallback(
|
|
5740
5944
|
(node) => {
|
|
5741
5945
|
triggerRef.current = node;
|
|
5742
5946
|
if (typeof ref === "function") ref(node);
|
|
@@ -5745,9 +5949,9 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5745
5949
|
[ref]
|
|
5746
5950
|
);
|
|
5747
5951
|
const label = value ? formatDateLabel(value, locale) : placeholder;
|
|
5748
|
-
return /* @__PURE__ */
|
|
5749
|
-
/* @__PURE__ */
|
|
5750
|
-
/* @__PURE__ */
|
|
5952
|
+
return /* @__PURE__ */ jsxs45(Fragment12, { children: [
|
|
5953
|
+
/* @__PURE__ */ jsxs45(Popover, { open, onOpenChange: setOpen, children: [
|
|
5954
|
+
/* @__PURE__ */ jsx65(
|
|
5751
5955
|
PopoverTrigger,
|
|
5752
5956
|
{
|
|
5753
5957
|
ref: setTriggerRef,
|
|
@@ -5765,7 +5969,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5765
5969
|
children: label
|
|
5766
5970
|
}
|
|
5767
5971
|
),
|
|
5768
|
-
/* @__PURE__ */
|
|
5972
|
+
/* @__PURE__ */ jsx65(PopoverContent, { side, align, matchTriggerWidth: true, className: "w-auto p-3", children: /* @__PURE__ */ jsx65(
|
|
5769
5973
|
Calendar,
|
|
5770
5974
|
{
|
|
5771
5975
|
value,
|
|
@@ -5783,24 +5987,24 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5783
5987
|
}
|
|
5784
5988
|
) })
|
|
5785
5989
|
] }),
|
|
5786
|
-
name ? /* @__PURE__ */
|
|
5990
|
+
name ? /* @__PURE__ */ jsx65("input", { type: "hidden", name, value: value ?? "", required }) : null
|
|
5787
5991
|
] });
|
|
5788
5992
|
}
|
|
5789
5993
|
);
|
|
5790
5994
|
DatePickerPopover.displayName = "DatePickerPopover";
|
|
5791
5995
|
|
|
5792
5996
|
// src/components/time-picker/TimePicker.tsx
|
|
5793
|
-
import * as
|
|
5794
|
-
import { jsx as
|
|
5795
|
-
var TimePicker =
|
|
5796
|
-
const [internal, setInternal] =
|
|
5997
|
+
import * as React64 from "react";
|
|
5998
|
+
import { jsx as jsx66, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
5999
|
+
var TimePicker = React64.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
6000
|
+
const [internal, setInternal] = React64.useState(defaultValue ?? "");
|
|
5797
6001
|
const current = value ?? internal;
|
|
5798
6002
|
const commit = (next) => {
|
|
5799
6003
|
if (value === void 0) setInternal(next);
|
|
5800
6004
|
onValueChange?.(next);
|
|
5801
6005
|
};
|
|
5802
|
-
return /* @__PURE__ */
|
|
5803
|
-
/* @__PURE__ */
|
|
6006
|
+
return /* @__PURE__ */ jsxs46("div", { className: cn("relative flex items-center", className), children: [
|
|
6007
|
+
/* @__PURE__ */ jsx66(
|
|
5804
6008
|
Input,
|
|
5805
6009
|
{
|
|
5806
6010
|
ref,
|
|
@@ -5814,7 +6018,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5814
6018
|
...props
|
|
5815
6019
|
}
|
|
5816
6020
|
),
|
|
5817
|
-
clearable && current && /* @__PURE__ */
|
|
6021
|
+
clearable && current && /* @__PURE__ */ jsx66(
|
|
5818
6022
|
"button",
|
|
5819
6023
|
{
|
|
5820
6024
|
type: "button",
|
|
@@ -5828,9 +6032,9 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5828
6032
|
});
|
|
5829
6033
|
|
|
5830
6034
|
// src/components/stepper/Stepper.tsx
|
|
5831
|
-
import * as
|
|
5832
|
-
import { Fragment as Fragment13, jsx as
|
|
5833
|
-
var Stepper =
|
|
6035
|
+
import * as React65 from "react";
|
|
6036
|
+
import { Fragment as Fragment13, jsx as jsx67, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
6037
|
+
var Stepper = React65.forwardRef(function Stepper2({
|
|
5834
6038
|
steps,
|
|
5835
6039
|
current,
|
|
5836
6040
|
orientation = "horizontal",
|
|
@@ -5853,7 +6057,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5853
6057
|
const verticalTitlePad = size === "sm" ? "pt-0.5" : "pt-1";
|
|
5854
6058
|
const connectorTop = variant === "dots" ? size === "sm" ? "mt-1" : "mt-[5px]" : size === "sm" ? "mt-3" : "mt-3.5";
|
|
5855
6059
|
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";
|
|
5856
|
-
return /* @__PURE__ */
|
|
6060
|
+
return /* @__PURE__ */ jsx67(
|
|
5857
6061
|
"ol",
|
|
5858
6062
|
{
|
|
5859
6063
|
ref,
|
|
@@ -5867,7 +6071,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5867
6071
|
const isLast = index === steps.length - 1;
|
|
5868
6072
|
const titleCentered = alignTitles === "center" && !step.description;
|
|
5869
6073
|
const below = !vertical && labelPlacement === "below";
|
|
5870
|
-
const marker = /* @__PURE__ */
|
|
6074
|
+
const marker = /* @__PURE__ */ jsx67(
|
|
5871
6075
|
"span",
|
|
5872
6076
|
{
|
|
5873
6077
|
"aria-hidden": "true",
|
|
@@ -5889,8 +6093,8 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5889
6093
|
children: variant === "numbered" ? state === "complete" ? "\u2713" : index + 1 : null
|
|
5890
6094
|
}
|
|
5891
6095
|
);
|
|
5892
|
-
const label = /* @__PURE__ */
|
|
5893
|
-
/* @__PURE__ */
|
|
6096
|
+
const label = /* @__PURE__ */ jsxs47("span", { className: "min-w-0", children: [
|
|
6097
|
+
/* @__PURE__ */ jsx67(
|
|
5894
6098
|
"span",
|
|
5895
6099
|
{
|
|
5896
6100
|
className: cn(
|
|
@@ -5902,7 +6106,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5902
6106
|
children: step.label
|
|
5903
6107
|
}
|
|
5904
6108
|
),
|
|
5905
|
-
step.description && /* @__PURE__ */
|
|
6109
|
+
step.description && /* @__PURE__ */ jsx67(
|
|
5906
6110
|
"span",
|
|
5907
6111
|
{
|
|
5908
6112
|
className: cn(
|
|
@@ -5913,9 +6117,9 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5913
6117
|
children: step.description
|
|
5914
6118
|
}
|
|
5915
6119
|
),
|
|
5916
|
-
/* @__PURE__ */
|
|
6120
|
+
/* @__PURE__ */ jsx67("span", { className: "sr-only", children: state === "complete" ? labels?.completed ?? " (completed)" : state === "current" ? labels?.current ?? " (current step)" : labels?.upcoming ?? " (upcoming)" })
|
|
5917
6121
|
] });
|
|
5918
|
-
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */
|
|
6122
|
+
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ jsx67(
|
|
5919
6123
|
"button",
|
|
5920
6124
|
{
|
|
5921
6125
|
type: "button",
|
|
@@ -5924,29 +6128,29 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5924
6128
|
className: cn(rowClassName, focusClass),
|
|
5925
6129
|
children
|
|
5926
6130
|
}
|
|
5927
|
-
) : /* @__PURE__ */
|
|
6131
|
+
) : /* @__PURE__ */ jsx67("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
5928
6132
|
if (vertical) {
|
|
5929
|
-
return /* @__PURE__ */
|
|
5930
|
-
/* @__PURE__ */
|
|
5931
|
-
/* @__PURE__ */
|
|
6133
|
+
return /* @__PURE__ */ jsx67("li", { className: "flex", children: renderRow(
|
|
6134
|
+
/* @__PURE__ */ jsxs47(Fragment13, { children: [
|
|
6135
|
+
/* @__PURE__ */ jsxs47("div", { className: "flex flex-col items-center", children: [
|
|
5932
6136
|
marker,
|
|
5933
|
-
!isLast && /* @__PURE__ */
|
|
6137
|
+
!isLast && /* @__PURE__ */ jsx67("span", { "aria-hidden": "true", className: "my-1 w-px flex-1 rounded-full bg-border" })
|
|
5934
6138
|
] }),
|
|
5935
|
-
/* @__PURE__ */
|
|
6139
|
+
/* @__PURE__ */ jsx67("div", { className: cn("min-w-0 pb-6", titleCentered && verticalTitlePad), children: label })
|
|
5936
6140
|
] }),
|
|
5937
6141
|
"flex w-full items-stretch gap-3 text-left"
|
|
5938
6142
|
) }, step.label);
|
|
5939
6143
|
}
|
|
5940
6144
|
if (below) {
|
|
5941
|
-
return /* @__PURE__ */
|
|
6145
|
+
return /* @__PURE__ */ jsxs47("li", { className: "flex min-w-0 flex-1 items-start gap-2", children: [
|
|
5942
6146
|
renderRow(
|
|
5943
|
-
/* @__PURE__ */
|
|
6147
|
+
/* @__PURE__ */ jsxs47(Fragment13, { children: [
|
|
5944
6148
|
marker,
|
|
5945
6149
|
label
|
|
5946
6150
|
] }),
|
|
5947
6151
|
"flex min-w-0 flex-1 flex-col items-center gap-2 text-center"
|
|
5948
6152
|
),
|
|
5949
|
-
!isLast && /* @__PURE__ */
|
|
6153
|
+
!isLast && /* @__PURE__ */ jsx67(
|
|
5950
6154
|
"span",
|
|
5951
6155
|
{
|
|
5952
6156
|
"aria-hidden": "true",
|
|
@@ -5955,15 +6159,15 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5955
6159
|
)
|
|
5956
6160
|
] }, step.label);
|
|
5957
6161
|
}
|
|
5958
|
-
return /* @__PURE__ */
|
|
6162
|
+
return /* @__PURE__ */ jsxs47("li", { className: "flex min-w-0 items-start gap-2", children: [
|
|
5959
6163
|
renderRow(
|
|
5960
|
-
/* @__PURE__ */
|
|
6164
|
+
/* @__PURE__ */ jsxs47(Fragment13, { children: [
|
|
5961
6165
|
marker,
|
|
5962
6166
|
label
|
|
5963
6167
|
] }),
|
|
5964
6168
|
cn("flex min-w-0 text-left", gapClass, titleCentered ? "items-center" : "items-start")
|
|
5965
6169
|
),
|
|
5966
|
-
!isLast && /* @__PURE__ */
|
|
6170
|
+
!isLast && /* @__PURE__ */ jsx67(
|
|
5967
6171
|
"span",
|
|
5968
6172
|
{
|
|
5969
6173
|
"aria-hidden": "true",
|
|
@@ -5977,14 +6181,14 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5977
6181
|
});
|
|
5978
6182
|
|
|
5979
6183
|
// src/components/file-upload/FileUpload.tsx
|
|
5980
|
-
import * as
|
|
5981
|
-
import { jsx as
|
|
6184
|
+
import * as React66 from "react";
|
|
6185
|
+
import { jsx as jsx68, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
5982
6186
|
function formatSize(bytes) {
|
|
5983
6187
|
if (bytes < 1024) return `${bytes} B`;
|
|
5984
6188
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
5985
6189
|
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
|
5986
6190
|
}
|
|
5987
|
-
var FileUpload =
|
|
6191
|
+
var FileUpload = React66.forwardRef(function FileUpload2({
|
|
5988
6192
|
files,
|
|
5989
6193
|
defaultFiles,
|
|
5990
6194
|
onFilesChange,
|
|
@@ -6001,13 +6205,13 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6001
6205
|
id,
|
|
6002
6206
|
...props
|
|
6003
6207
|
}, ref) {
|
|
6004
|
-
const [internal, setInternal] =
|
|
6005
|
-
const [dragging, setDragging] =
|
|
6208
|
+
const [internal, setInternal] = React66.useState(defaultFiles ?? []);
|
|
6209
|
+
const [dragging, setDragging] = React66.useState(false);
|
|
6006
6210
|
const current = files ?? internal;
|
|
6007
|
-
const generatedId =
|
|
6211
|
+
const generatedId = React66.useId();
|
|
6008
6212
|
const inputId = id ?? generatedId;
|
|
6009
|
-
const fileIds =
|
|
6010
|
-
const nextFileId =
|
|
6213
|
+
const fileIds = React66.useRef(/* @__PURE__ */ new WeakMap());
|
|
6214
|
+
const nextFileId = React66.useRef(0);
|
|
6011
6215
|
const idFor = (file) => {
|
|
6012
6216
|
let fileId = fileIds.current.get(file);
|
|
6013
6217
|
if (!fileId) {
|
|
@@ -6025,8 +6229,8 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6025
6229
|
const list = Array.from(incoming);
|
|
6026
6230
|
commit(multiple ? [...current, ...list] : list.slice(0, 1));
|
|
6027
6231
|
};
|
|
6028
|
-
return /* @__PURE__ */
|
|
6029
|
-
/* @__PURE__ */
|
|
6232
|
+
return /* @__PURE__ */ jsxs48("div", { className: cn("flex flex-col gap-3", className), children: [
|
|
6233
|
+
/* @__PURE__ */ jsxs48(
|
|
6030
6234
|
"div",
|
|
6031
6235
|
{
|
|
6032
6236
|
onDragOver: (event) => {
|
|
@@ -6047,9 +6251,9 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6047
6251
|
disabled && "opacity-50"
|
|
6048
6252
|
),
|
|
6049
6253
|
children: [
|
|
6050
|
-
/* @__PURE__ */
|
|
6254
|
+
/* @__PURE__ */ jsxs48("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
6051
6255
|
label,
|
|
6052
|
-
/* @__PURE__ */
|
|
6256
|
+
/* @__PURE__ */ jsx68(
|
|
6053
6257
|
"input",
|
|
6054
6258
|
{
|
|
6055
6259
|
ref,
|
|
@@ -6067,15 +6271,15 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6067
6271
|
}
|
|
6068
6272
|
)
|
|
6069
6273
|
] }),
|
|
6070
|
-
/* @__PURE__ */
|
|
6274
|
+
/* @__PURE__ */ jsx68("p", { className: "mt-1 text-xs text-muted-foreground", children: hint ?? (accept ? `Accepted: ${accept}` : "Any file type") })
|
|
6071
6275
|
]
|
|
6072
6276
|
}
|
|
6073
6277
|
),
|
|
6074
|
-
current.length > 0 && /* @__PURE__ */
|
|
6075
|
-
/* @__PURE__ */
|
|
6076
|
-
/* @__PURE__ */
|
|
6077
|
-
/* @__PURE__ */
|
|
6078
|
-
progress?.[file.name] !== void 0 && /* @__PURE__ */
|
|
6278
|
+
current.length > 0 && /* @__PURE__ */ jsx68("ul", { "aria-label": selectedFilesLabel, className: "space-y-2", children: current.map((file) => /* @__PURE__ */ jsxs48("li", { className: "flex items-center justify-between gap-3 rounded-md border border-border px-3 py-2", children: [
|
|
6279
|
+
/* @__PURE__ */ jsxs48("div", { className: "min-w-0", children: [
|
|
6280
|
+
/* @__PURE__ */ jsx68("p", { className: "truncate text-sm", children: file.name }),
|
|
6281
|
+
/* @__PURE__ */ jsx68("p", { className: "text-xs text-muted-foreground", children: formatSize(file.size) }),
|
|
6282
|
+
progress?.[file.name] !== void 0 && /* @__PURE__ */ jsx68(
|
|
6079
6283
|
"div",
|
|
6080
6284
|
{
|
|
6081
6285
|
role: "progressbar",
|
|
@@ -6084,11 +6288,11 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6084
6288
|
"aria-valuemax": 100,
|
|
6085
6289
|
"aria-label": uploadingLabel(file),
|
|
6086
6290
|
className: "mt-1 h-1.5 w-40 overflow-hidden rounded-full bg-muted",
|
|
6087
|
-
children: /* @__PURE__ */
|
|
6291
|
+
children: /* @__PURE__ */ jsx68("div", { className: "h-full bg-primary", style: { width: `${progress[file.name]}%` } })
|
|
6088
6292
|
}
|
|
6089
6293
|
)
|
|
6090
6294
|
] }),
|
|
6091
|
-
/* @__PURE__ */
|
|
6295
|
+
/* @__PURE__ */ jsx68(
|
|
6092
6296
|
"button",
|
|
6093
6297
|
{
|
|
6094
6298
|
type: "button",
|
|
@@ -6103,18 +6307,18 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6103
6307
|
});
|
|
6104
6308
|
|
|
6105
6309
|
// src/components/timeline/Timeline.tsx
|
|
6106
|
-
import * as
|
|
6107
|
-
import { jsx as
|
|
6108
|
-
var Timeline =
|
|
6109
|
-
return /* @__PURE__ */
|
|
6110
|
-
index < items.length - 1 && /* @__PURE__ */
|
|
6310
|
+
import * as React67 from "react";
|
|
6311
|
+
import { jsx as jsx69, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
6312
|
+
var Timeline = React67.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
6313
|
+
return /* @__PURE__ */ jsx69("ol", { ref, className: cn("relative flex flex-col gap-6", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs49("li", { className: "relative flex gap-4", children: [
|
|
6314
|
+
index < items.length - 1 && /* @__PURE__ */ jsx69(
|
|
6111
6315
|
"span",
|
|
6112
6316
|
{
|
|
6113
6317
|
"aria-hidden": "true",
|
|
6114
6318
|
className: "absolute left-[5.5px] top-4 -bottom-7 w-px bg-border"
|
|
6115
6319
|
}
|
|
6116
6320
|
),
|
|
6117
|
-
/* @__PURE__ */
|
|
6321
|
+
/* @__PURE__ */ jsx69("div", { className: "relative z-10 flex flex-col items-center", children: /* @__PURE__ */ jsx69(
|
|
6118
6322
|
"span",
|
|
6119
6323
|
{
|
|
6120
6324
|
"aria-hidden": "true",
|
|
@@ -6124,22 +6328,22 @@ var Timeline = React66.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
6124
6328
|
)
|
|
6125
6329
|
}
|
|
6126
6330
|
) }),
|
|
6127
|
-
/* @__PURE__ */
|
|
6128
|
-
item.period && /* @__PURE__ */
|
|
6129
|
-
/* @__PURE__ */
|
|
6130
|
-
item.description && /* @__PURE__ */
|
|
6131
|
-
item.icon && /* @__PURE__ */
|
|
6331
|
+
/* @__PURE__ */ jsxs49("div", { className: "min-w-0 pb-1", children: [
|
|
6332
|
+
item.period && /* @__PURE__ */ jsx69("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
|
|
6333
|
+
/* @__PURE__ */ jsx69("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
|
|
6334
|
+
item.description && /* @__PURE__ */ jsx69("p", { className: "mt-1 text-sm text-muted-foreground", children: item.description }),
|
|
6335
|
+
item.icon && /* @__PURE__ */ jsx69("div", { className: "mt-1 text-muted-foreground [&_svg]:size-4", children: item.icon })
|
|
6132
6336
|
] })
|
|
6133
6337
|
] }, `${item.title}-${index}`)) });
|
|
6134
6338
|
});
|
|
6135
6339
|
|
|
6136
6340
|
// src/components/block/Block.tsx
|
|
6137
|
-
import * as
|
|
6138
|
-
import { jsx as
|
|
6139
|
-
var Block =
|
|
6341
|
+
import * as React68 from "react";
|
|
6342
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
6343
|
+
var Block = React68.forwardRef(
|
|
6140
6344
|
({ as = "div", inline, muted, className, ...props }, ref) => {
|
|
6141
6345
|
const Tag = inline ? "span" : as;
|
|
6142
|
-
return /* @__PURE__ */
|
|
6346
|
+
return /* @__PURE__ */ jsx70(
|
|
6143
6347
|
Tag,
|
|
6144
6348
|
{
|
|
6145
6349
|
ref,
|
|
@@ -6152,8 +6356,8 @@ var Block = React67.forwardRef(
|
|
|
6152
6356
|
Block.displayName = "Block";
|
|
6153
6357
|
|
|
6154
6358
|
// src/components/flex/Flex.tsx
|
|
6155
|
-
import * as
|
|
6156
|
-
import { jsx as
|
|
6359
|
+
import * as React69 from "react";
|
|
6360
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
6157
6361
|
var justifyClasses = {
|
|
6158
6362
|
start: "justify-start",
|
|
6159
6363
|
center: "justify-center",
|
|
@@ -6169,11 +6373,11 @@ var alignClasses2 = {
|
|
|
6169
6373
|
stretch: "items-stretch",
|
|
6170
6374
|
baseline: "items-baseline"
|
|
6171
6375
|
};
|
|
6172
|
-
var Flex =
|
|
6376
|
+
var Flex = React69.forwardRef(
|
|
6173
6377
|
({ direction = "row", align, justify, wrap, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6174
6378
|
const Tag = as;
|
|
6175
6379
|
const gapResolved = resolveGap(gap);
|
|
6176
|
-
return /* @__PURE__ */
|
|
6380
|
+
return /* @__PURE__ */ jsx71(
|
|
6177
6381
|
Tag,
|
|
6178
6382
|
{
|
|
6179
6383
|
ref,
|
|
@@ -6200,7 +6404,7 @@ var selfAlignClasses = {
|
|
|
6200
6404
|
stretch: "self-stretch",
|
|
6201
6405
|
baseline: "self-baseline"
|
|
6202
6406
|
};
|
|
6203
|
-
var FlexItem =
|
|
6407
|
+
var FlexItem = React69.forwardRef(
|
|
6204
6408
|
({ grow, shrink, basis, align, as = "div", className, ...props }, ref) => {
|
|
6205
6409
|
const Tag = as;
|
|
6206
6410
|
const style = {
|
|
@@ -6208,7 +6412,7 @@ var FlexItem = React68.forwardRef(
|
|
|
6208
6412
|
...shrink === false ? { flexShrink: 0 } : typeof shrink === "string" && shrink ? { flexShrink: Number(shrink) || shrink } : {},
|
|
6209
6413
|
...basis ? { flexBasis: basis } : {}
|
|
6210
6414
|
};
|
|
6211
|
-
return /* @__PURE__ */
|
|
6415
|
+
return /* @__PURE__ */ jsx71(
|
|
6212
6416
|
Tag,
|
|
6213
6417
|
{
|
|
6214
6418
|
ref,
|
|
@@ -6222,8 +6426,8 @@ var FlexItem = React68.forwardRef(
|
|
|
6222
6426
|
FlexItem.displayName = "FlexItem";
|
|
6223
6427
|
|
|
6224
6428
|
// src/components/grid/Grid.tsx
|
|
6225
|
-
import * as
|
|
6226
|
-
import { jsx as
|
|
6429
|
+
import * as React70 from "react";
|
|
6430
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
6227
6431
|
var BASE_COLS = {
|
|
6228
6432
|
1: "grid-cols-1",
|
|
6229
6433
|
2: "grid-cols-2",
|
|
@@ -6288,11 +6492,11 @@ var LG_COL_SPAN = {
|
|
|
6288
6492
|
5: "lg:col-span-5",
|
|
6289
6493
|
6: "lg:col-span-6"
|
|
6290
6494
|
};
|
|
6291
|
-
var Grid =
|
|
6495
|
+
var Grid = React70.forwardRef(
|
|
6292
6496
|
({ cols, smCols, mdCols, lgCols, minCol, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6293
6497
|
const Tag = as;
|
|
6294
6498
|
const gapResolved = resolveGap(gap);
|
|
6295
|
-
return /* @__PURE__ */
|
|
6499
|
+
return /* @__PURE__ */ jsx72(
|
|
6296
6500
|
Tag,
|
|
6297
6501
|
{
|
|
6298
6502
|
ref,
|
|
@@ -6316,10 +6520,10 @@ var Grid = React69.forwardRef(
|
|
|
6316
6520
|
}
|
|
6317
6521
|
);
|
|
6318
6522
|
Grid.displayName = "Grid";
|
|
6319
|
-
var GridItem =
|
|
6523
|
+
var GridItem = React70.forwardRef(
|
|
6320
6524
|
({ span, smSpan, mdSpan, lgSpan, as = "div", className, ...props }, ref) => {
|
|
6321
6525
|
const Tag = as;
|
|
6322
|
-
return /* @__PURE__ */
|
|
6526
|
+
return /* @__PURE__ */ jsx72(
|
|
6323
6527
|
Tag,
|
|
6324
6528
|
{
|
|
6325
6529
|
ref,
|
|
@@ -6338,8 +6542,8 @@ var GridItem = React69.forwardRef(
|
|
|
6338
6542
|
GridItem.displayName = "GridItem";
|
|
6339
6543
|
|
|
6340
6544
|
// src/components/container/Container.tsx
|
|
6341
|
-
import * as
|
|
6342
|
-
import { jsx as
|
|
6545
|
+
import * as React71 from "react";
|
|
6546
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
6343
6547
|
var widthClasses = {
|
|
6344
6548
|
sm: "max-w-3xl",
|
|
6345
6549
|
md: "max-w-5xl",
|
|
@@ -6353,9 +6557,9 @@ var paddingClasses = {
|
|
|
6353
6557
|
md: "px-4 sm:px-6",
|
|
6354
6558
|
lg: "px-4 sm:px-6 lg:px-8"
|
|
6355
6559
|
};
|
|
6356
|
-
var Container =
|
|
6560
|
+
var Container = React71.forwardRef(function Container2({ width = "lg", padding = "md", as = "div", className, ...props }, ref) {
|
|
6357
6561
|
const Tag = as;
|
|
6358
|
-
return /* @__PURE__ */
|
|
6562
|
+
return /* @__PURE__ */ jsx73(
|
|
6359
6563
|
Tag,
|
|
6360
6564
|
{
|
|
6361
6565
|
ref,
|
|
@@ -6366,8 +6570,8 @@ var Container = React70.forwardRef(function Container2({ width = "lg", padding =
|
|
|
6366
6570
|
});
|
|
6367
6571
|
|
|
6368
6572
|
// src/components/section/Section.tsx
|
|
6369
|
-
import * as
|
|
6370
|
-
import { jsx as
|
|
6573
|
+
import * as React72 from "react";
|
|
6574
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
6371
6575
|
var toneClasses2 = {
|
|
6372
6576
|
default: "bg-background text-foreground",
|
|
6373
6577
|
muted: "bg-muted/40 text-foreground",
|
|
@@ -6407,7 +6611,7 @@ var brandVars = {
|
|
|
6407
6611
|
"--border": "var(--primary-foreground)",
|
|
6408
6612
|
"--input": "var(--primary-foreground)"
|
|
6409
6613
|
};
|
|
6410
|
-
var Section =
|
|
6614
|
+
var Section = React72.forwardRef(function Section2({
|
|
6411
6615
|
tone = "default",
|
|
6412
6616
|
padding = "md",
|
|
6413
6617
|
width = "lg",
|
|
@@ -6421,7 +6625,7 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6421
6625
|
}, ref) {
|
|
6422
6626
|
const Tag = as;
|
|
6423
6627
|
const toneStyle = tone === "inverse" ? inverseVars : tone === "brand" ? brandVars : void 0;
|
|
6424
|
-
return /* @__PURE__ */
|
|
6628
|
+
return /* @__PURE__ */ jsx74(
|
|
6425
6629
|
Tag,
|
|
6426
6630
|
{
|
|
6427
6631
|
ref,
|
|
@@ -6429,19 +6633,19 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6429
6633
|
className: cn("w-full", toneClasses2[tone], paddingClasses2[padding], className),
|
|
6430
6634
|
style: { ...toneStyle, ...style },
|
|
6431
6635
|
...props,
|
|
6432
|
-
children: container ? /* @__PURE__ */
|
|
6636
|
+
children: container ? /* @__PURE__ */ jsx74(Container, { width, className: containerClassName, children }) : children
|
|
6433
6637
|
}
|
|
6434
6638
|
);
|
|
6435
6639
|
});
|
|
6436
6640
|
|
|
6437
6641
|
// src/components/hero/Hero.tsx
|
|
6438
|
-
import * as
|
|
6439
|
-
import { jsx as
|
|
6642
|
+
import * as React73 from "react";
|
|
6643
|
+
import { jsx as jsx75, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
6440
6644
|
var titleSizes = {
|
|
6441
6645
|
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
6442
6646
|
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
6443
6647
|
};
|
|
6444
|
-
var Hero =
|
|
6648
|
+
var Hero = React73.forwardRef(function Hero2({
|
|
6445
6649
|
title,
|
|
6446
6650
|
description,
|
|
6447
6651
|
eyebrow,
|
|
@@ -6467,7 +6671,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6467
6671
|
const Heading2 = `h${level}`;
|
|
6468
6672
|
const centered = layout === "centered" || align === "center";
|
|
6469
6673
|
const overlay = layout === "overlay";
|
|
6470
|
-
const copy = /* @__PURE__ */
|
|
6674
|
+
const copy = /* @__PURE__ */ jsxs50(
|
|
6471
6675
|
"div",
|
|
6472
6676
|
{
|
|
6473
6677
|
className: cn(
|
|
@@ -6476,7 +6680,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6476
6680
|
overlay && "max-w-2xl"
|
|
6477
6681
|
),
|
|
6478
6682
|
children: [
|
|
6479
|
-
badge && /* @__PURE__ */
|
|
6683
|
+
badge && /* @__PURE__ */ jsx75(
|
|
6480
6684
|
"div",
|
|
6481
6685
|
{
|
|
6482
6686
|
className: cn(
|
|
@@ -6487,7 +6691,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6487
6691
|
children: badge
|
|
6488
6692
|
}
|
|
6489
6693
|
),
|
|
6490
|
-
eyebrow && /* @__PURE__ */
|
|
6694
|
+
eyebrow && /* @__PURE__ */ jsx75(
|
|
6491
6695
|
"p",
|
|
6492
6696
|
{
|
|
6493
6697
|
className: cn(
|
|
@@ -6498,7 +6702,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6498
6702
|
children: eyebrow
|
|
6499
6703
|
}
|
|
6500
6704
|
),
|
|
6501
|
-
/* @__PURE__ */
|
|
6705
|
+
/* @__PURE__ */ jsx75(
|
|
6502
6706
|
Heading2,
|
|
6503
6707
|
{
|
|
6504
6708
|
className: cn(
|
|
@@ -6510,7 +6714,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6510
6714
|
children: title
|
|
6511
6715
|
}
|
|
6512
6716
|
),
|
|
6513
|
-
description && /* @__PURE__ */
|
|
6717
|
+
description && /* @__PURE__ */ jsx75(
|
|
6514
6718
|
"p",
|
|
6515
6719
|
{
|
|
6516
6720
|
className: cn(
|
|
@@ -6522,7 +6726,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6522
6726
|
children: description
|
|
6523
6727
|
}
|
|
6524
6728
|
),
|
|
6525
|
-
actions && /* @__PURE__ */
|
|
6729
|
+
actions && /* @__PURE__ */ jsx75(
|
|
6526
6730
|
"div",
|
|
6527
6731
|
{
|
|
6528
6732
|
className: cn(
|
|
@@ -6536,7 +6740,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6536
6740
|
}
|
|
6537
6741
|
);
|
|
6538
6742
|
if (overlay) {
|
|
6539
|
-
return /* @__PURE__ */
|
|
6743
|
+
return /* @__PURE__ */ jsxs50(
|
|
6540
6744
|
Tag,
|
|
6541
6745
|
{
|
|
6542
6746
|
ref,
|
|
@@ -6546,7 +6750,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6546
6750
|
),
|
|
6547
6751
|
...props,
|
|
6548
6752
|
children: [
|
|
6549
|
-
media && /* @__PURE__ */
|
|
6753
|
+
media && /* @__PURE__ */ jsx75(
|
|
6550
6754
|
"div",
|
|
6551
6755
|
{
|
|
6552
6756
|
className: cn(
|
|
@@ -6556,20 +6760,20 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6556
6760
|
children: media
|
|
6557
6761
|
}
|
|
6558
6762
|
),
|
|
6559
|
-
/* @__PURE__ */
|
|
6560
|
-
/* @__PURE__ */
|
|
6763
|
+
/* @__PURE__ */ jsx75("div", { "aria-hidden": "true", className: "absolute inset-0 -z-10 bg-foreground/60" }),
|
|
6764
|
+
/* @__PURE__ */ jsx75("div", { className: "relative w-full px-4 sm:px-6 lg:px-10", children: copy })
|
|
6561
6765
|
]
|
|
6562
6766
|
}
|
|
6563
6767
|
);
|
|
6564
6768
|
}
|
|
6565
6769
|
if (layout === "centered") {
|
|
6566
|
-
return /* @__PURE__ */
|
|
6770
|
+
return /* @__PURE__ */ jsxs50(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
6567
6771
|
copy,
|
|
6568
|
-
media && /* @__PURE__ */
|
|
6772
|
+
media && /* @__PURE__ */ jsx75("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
6569
6773
|
] });
|
|
6570
6774
|
}
|
|
6571
6775
|
if (layout === "stacked") {
|
|
6572
|
-
return /* @__PURE__ */
|
|
6776
|
+
return /* @__PURE__ */ jsxs50(
|
|
6573
6777
|
Tag,
|
|
6574
6778
|
{
|
|
6575
6779
|
ref,
|
|
@@ -6577,28 +6781,28 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6577
6781
|
...props,
|
|
6578
6782
|
children: [
|
|
6579
6783
|
copy,
|
|
6580
|
-
media && /* @__PURE__ */
|
|
6784
|
+
media && /* @__PURE__ */ jsx75("div", { className: cn("min-w-0 w-full", mediaClassName), children: media })
|
|
6581
6785
|
]
|
|
6582
6786
|
}
|
|
6583
6787
|
);
|
|
6584
6788
|
}
|
|
6585
|
-
return /* @__PURE__ */
|
|
6789
|
+
return /* @__PURE__ */ jsxs50(
|
|
6586
6790
|
Tag,
|
|
6587
6791
|
{
|
|
6588
6792
|
ref,
|
|
6589
6793
|
className: cn("grid w-full items-center gap-10 lg:grid-cols-2 lg:gap-16 xl:gap-20", className),
|
|
6590
6794
|
...props,
|
|
6591
6795
|
children: [
|
|
6592
|
-
/* @__PURE__ */
|
|
6593
|
-
media && /* @__PURE__ */
|
|
6796
|
+
/* @__PURE__ */ jsx75("div", { className: cn(mediaPosition === "left" && "lg:order-2"), children: copy }),
|
|
6797
|
+
media && /* @__PURE__ */ jsx75("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1", mediaClassName), children: media })
|
|
6594
6798
|
]
|
|
6595
6799
|
}
|
|
6596
6800
|
);
|
|
6597
6801
|
});
|
|
6598
6802
|
|
|
6599
6803
|
// src/components/stat-band/StatBand.tsx
|
|
6600
|
-
import * as
|
|
6601
|
-
import { jsx as
|
|
6804
|
+
import * as React74 from "react";
|
|
6805
|
+
import { jsx as jsx76, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
6602
6806
|
var columnClasses = {
|
|
6603
6807
|
2: "sm:grid-cols-2",
|
|
6604
6808
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6614,7 +6818,7 @@ var panelValueClasses = {
|
|
|
6614
6818
|
md: "text-xl sm:text-2xl",
|
|
6615
6819
|
lg: "text-2xl sm:text-3xl"
|
|
6616
6820
|
};
|
|
6617
|
-
var StatBand =
|
|
6821
|
+
var StatBand = React74.forwardRef(function StatBand2({
|
|
6618
6822
|
items,
|
|
6619
6823
|
columns = 3,
|
|
6620
6824
|
align = "center",
|
|
@@ -6626,7 +6830,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6626
6830
|
...props
|
|
6627
6831
|
}, ref) {
|
|
6628
6832
|
const panel = variant === "panel";
|
|
6629
|
-
return /* @__PURE__ */
|
|
6833
|
+
return /* @__PURE__ */ jsx76(
|
|
6630
6834
|
"dl",
|
|
6631
6835
|
{
|
|
6632
6836
|
ref,
|
|
@@ -6638,7 +6842,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6638
6842
|
className
|
|
6639
6843
|
),
|
|
6640
6844
|
...props,
|
|
6641
|
-
children: items.map((item) => /* @__PURE__ */
|
|
6845
|
+
children: items.map((item) => /* @__PURE__ */ jsxs51(
|
|
6642
6846
|
"div",
|
|
6643
6847
|
{
|
|
6644
6848
|
className: cn(
|
|
@@ -6647,7 +6851,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6647
6851
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6648
6852
|
),
|
|
6649
6853
|
children: [
|
|
6650
|
-
/* @__PURE__ */
|
|
6854
|
+
/* @__PURE__ */ jsxs51(
|
|
6651
6855
|
"dt",
|
|
6652
6856
|
{
|
|
6653
6857
|
className: cn(
|
|
@@ -6656,11 +6860,11 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6656
6860
|
),
|
|
6657
6861
|
children: [
|
|
6658
6862
|
item.label,
|
|
6659
|
-
item.hint && /* @__PURE__ */
|
|
6863
|
+
item.hint && /* @__PURE__ */ jsx76("span", { className: cn("mt-1 block font-normal", panel ? "text-xs normal-case tracking-normal" : "text-xs"), children: item.hint })
|
|
6660
6864
|
]
|
|
6661
6865
|
}
|
|
6662
6866
|
),
|
|
6663
|
-
/* @__PURE__ */
|
|
6867
|
+
/* @__PURE__ */ jsx76(
|
|
6664
6868
|
"dd",
|
|
6665
6869
|
{
|
|
6666
6870
|
className: cn(
|
|
@@ -6680,14 +6884,14 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6680
6884
|
});
|
|
6681
6885
|
|
|
6682
6886
|
// src/components/cta-section/CTASection.tsx
|
|
6683
|
-
import * as
|
|
6684
|
-
import { jsx as
|
|
6887
|
+
import * as React75 from "react";
|
|
6888
|
+
import { jsx as jsx77, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
6685
6889
|
var sizePadding = {
|
|
6686
6890
|
sm: "md",
|
|
6687
6891
|
md: "lg",
|
|
6688
6892
|
lg: "xl"
|
|
6689
6893
|
};
|
|
6690
|
-
var CTASection =
|
|
6894
|
+
var CTASection = React75.forwardRef(function CTASection2({
|
|
6691
6895
|
title,
|
|
6692
6896
|
description,
|
|
6693
6897
|
eyebrow,
|
|
@@ -6699,7 +6903,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6699
6903
|
className,
|
|
6700
6904
|
...props
|
|
6701
6905
|
}, ref) {
|
|
6702
|
-
return /* @__PURE__ */
|
|
6906
|
+
return /* @__PURE__ */ jsx77(
|
|
6703
6907
|
Section,
|
|
6704
6908
|
{
|
|
6705
6909
|
ref,
|
|
@@ -6708,7 +6912,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6708
6912
|
width,
|
|
6709
6913
|
className,
|
|
6710
6914
|
...props,
|
|
6711
|
-
children: /* @__PURE__ */
|
|
6915
|
+
children: /* @__PURE__ */ jsxs52(
|
|
6712
6916
|
"div",
|
|
6713
6917
|
{
|
|
6714
6918
|
className: cn(
|
|
@@ -6716,10 +6920,10 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6716
6920
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6717
6921
|
),
|
|
6718
6922
|
children: [
|
|
6719
|
-
eyebrow && /* @__PURE__ */
|
|
6720
|
-
/* @__PURE__ */
|
|
6721
|
-
description && /* @__PURE__ */
|
|
6722
|
-
actions && /* @__PURE__ */
|
|
6923
|
+
eyebrow && /* @__PURE__ */ jsx77("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6924
|
+
/* @__PURE__ */ jsx77("h2", { className: "max-w-3xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl", children: title }),
|
|
6925
|
+
description && /* @__PURE__ */ jsx77("p", { className: cn("max-w-2xl text-base leading-relaxed text-muted-foreground sm:text-lg"), children: description }),
|
|
6926
|
+
actions && /* @__PURE__ */ jsx77("div", { className: cn("mt-2 flex flex-wrap items-center gap-3", align === "center" && "justify-center"), children: actions })
|
|
6723
6927
|
]
|
|
6724
6928
|
}
|
|
6725
6929
|
)
|
|
@@ -6728,10 +6932,10 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6728
6932
|
});
|
|
6729
6933
|
|
|
6730
6934
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
6731
|
-
import * as
|
|
6732
|
-
import { Fragment as Fragment14, jsx as
|
|
6935
|
+
import * as React76 from "react";
|
|
6936
|
+
import { Fragment as Fragment14, jsx as jsx78, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
6733
6937
|
function CheckMark() {
|
|
6734
|
-
return /* @__PURE__ */
|
|
6938
|
+
return /* @__PURE__ */ jsx78(
|
|
6735
6939
|
"svg",
|
|
6736
6940
|
{
|
|
6737
6941
|
"aria-hidden": "true",
|
|
@@ -6742,12 +6946,12 @@ function CheckMark() {
|
|
|
6742
6946
|
strokeLinecap: "round",
|
|
6743
6947
|
strokeLinejoin: "round",
|
|
6744
6948
|
className: "mx-auto h-5 w-5 text-success",
|
|
6745
|
-
children: /* @__PURE__ */
|
|
6949
|
+
children: /* @__PURE__ */ jsx78("path", { d: "m4 10.5 4 4 8-9" })
|
|
6746
6950
|
}
|
|
6747
6951
|
);
|
|
6748
6952
|
}
|
|
6749
6953
|
function DashMark() {
|
|
6750
|
-
return /* @__PURE__ */
|
|
6954
|
+
return /* @__PURE__ */ jsx78(
|
|
6751
6955
|
"svg",
|
|
6752
6956
|
{
|
|
6753
6957
|
"aria-hidden": "true",
|
|
@@ -6757,11 +6961,11 @@ function DashMark() {
|
|
|
6757
6961
|
strokeWidth: "2.2",
|
|
6758
6962
|
strokeLinecap: "round",
|
|
6759
6963
|
className: "mx-auto h-5 w-5 text-muted-foreground/60",
|
|
6760
|
-
children: /* @__PURE__ */
|
|
6964
|
+
children: /* @__PURE__ */ jsx78("path", { d: "M5 10h10" })
|
|
6761
6965
|
}
|
|
6762
6966
|
);
|
|
6763
6967
|
}
|
|
6764
|
-
var ComparisonTable =
|
|
6968
|
+
var ComparisonTable = React76.forwardRef(
|
|
6765
6969
|
function ComparisonTable2({
|
|
6766
6970
|
columns,
|
|
6767
6971
|
rows,
|
|
@@ -6773,11 +6977,11 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6773
6977
|
}, ref) {
|
|
6774
6978
|
const yes = valueLabels?.yes ?? "Included";
|
|
6775
6979
|
const no = valueLabels?.no ?? "Not included";
|
|
6776
|
-
return /* @__PURE__ */
|
|
6777
|
-
/* @__PURE__ */
|
|
6778
|
-
/* @__PURE__ */
|
|
6779
|
-
/* @__PURE__ */
|
|
6780
|
-
columns.map((column) => /* @__PURE__ */
|
|
6980
|
+
return /* @__PURE__ */ jsx78("div", { className: "w-full overflow-x-auto rounded-xl border border-border bg-card", children: /* @__PURE__ */ jsxs53("table", { ref, className: cn("w-full border-collapse text-sm", className), ...props, children: [
|
|
6981
|
+
/* @__PURE__ */ jsx78("caption", { className: "sr-only", children: caption }),
|
|
6982
|
+
/* @__PURE__ */ jsx78("thead", { children: /* @__PURE__ */ jsxs53("tr", { className: "border-b border-border", children: [
|
|
6983
|
+
/* @__PURE__ */ jsx78("th", { scope: "col", className: "min-w-48 px-5 py-4 text-left font-medium text-muted-foreground", children: featureLabel }),
|
|
6984
|
+
columns.map((column) => /* @__PURE__ */ jsx78(
|
|
6781
6985
|
"th",
|
|
6782
6986
|
{
|
|
6783
6987
|
scope: "col",
|
|
@@ -6790,21 +6994,21 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6790
6994
|
column.label
|
|
6791
6995
|
))
|
|
6792
6996
|
] }) }),
|
|
6793
|
-
/* @__PURE__ */
|
|
6794
|
-
/* @__PURE__ */
|
|
6997
|
+
/* @__PURE__ */ jsx78("tbody", { children: rows.map((row) => /* @__PURE__ */ jsxs53("tr", { className: "border-b border-border last:border-b-0", children: [
|
|
6998
|
+
/* @__PURE__ */ jsxs53("th", { scope: "row", className: "px-5 py-4 text-left font-medium", children: [
|
|
6795
6999
|
row.feature,
|
|
6796
|
-
row.hint && /* @__PURE__ */
|
|
7000
|
+
row.hint && /* @__PURE__ */ jsx78("span", { className: "mt-1 block text-xs font-normal text-muted-foreground", children: row.hint })
|
|
6797
7001
|
] }),
|
|
6798
7002
|
columns.map((column, index) => {
|
|
6799
7003
|
const value = row.values[index];
|
|
6800
|
-
return /* @__PURE__ */
|
|
7004
|
+
return /* @__PURE__ */ jsx78(
|
|
6801
7005
|
"td",
|
|
6802
7006
|
{
|
|
6803
7007
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
6804
|
-
children: typeof value === "boolean" ? /* @__PURE__ */
|
|
6805
|
-
value ? /* @__PURE__ */
|
|
6806
|
-
/* @__PURE__ */
|
|
6807
|
-
] }) : /* @__PURE__ */
|
|
7008
|
+
children: typeof value === "boolean" ? /* @__PURE__ */ jsxs53(Fragment14, { children: [
|
|
7009
|
+
value ? /* @__PURE__ */ jsx78(CheckMark, {}) : /* @__PURE__ */ jsx78(DashMark, {}),
|
|
7010
|
+
/* @__PURE__ */ jsx78("span", { className: "sr-only", children: value ? yes : no })
|
|
7011
|
+
] }) : /* @__PURE__ */ jsx78("span", { children: value ?? "" })
|
|
6808
7012
|
},
|
|
6809
7013
|
`${row.feature}-${column.label}`
|
|
6810
7014
|
);
|
|
@@ -6815,8 +7019,8 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6815
7019
|
);
|
|
6816
7020
|
|
|
6817
7021
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
6818
|
-
import * as
|
|
6819
|
-
import { Fragment as Fragment15, jsx as
|
|
7022
|
+
import * as React77 from "react";
|
|
7023
|
+
import { Fragment as Fragment15, jsx as jsx79, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
6820
7024
|
var columnClasses2 = {
|
|
6821
7025
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
6822
7026
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -6828,7 +7032,7 @@ var sizeClasses9 = {
|
|
|
6828
7032
|
md: "h-8",
|
|
6829
7033
|
lg: "h-12"
|
|
6830
7034
|
};
|
|
6831
|
-
var LogoCloud =
|
|
7035
|
+
var LogoCloud = React77.forwardRef(function LogoCloud2({
|
|
6832
7036
|
items,
|
|
6833
7037
|
caption,
|
|
6834
7038
|
columns = 4,
|
|
@@ -6846,8 +7050,8 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6846
7050
|
sizeClasses9[size],
|
|
6847
7051
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
6848
7052
|
);
|
|
6849
|
-
return /* @__PURE__ */
|
|
6850
|
-
caption && /* @__PURE__ */
|
|
7053
|
+
return /* @__PURE__ */ jsxs54("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
7054
|
+
caption && /* @__PURE__ */ jsx79(
|
|
6851
7055
|
"p",
|
|
6852
7056
|
{
|
|
6853
7057
|
className: cn(
|
|
@@ -6857,12 +7061,12 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6857
7061
|
children: caption
|
|
6858
7062
|
}
|
|
6859
7063
|
),
|
|
6860
|
-
/* @__PURE__ */
|
|
6861
|
-
const content = /* @__PURE__ */
|
|
6862
|
-
/* @__PURE__ */
|
|
6863
|
-
/* @__PURE__ */
|
|
7064
|
+
/* @__PURE__ */ jsx79("ul", { className: cn("grid items-center gap-x-8 gap-y-6", columnClasses2[columns], align === "center" && "justify-items-center"), children: items.map((item) => {
|
|
7065
|
+
const content = /* @__PURE__ */ jsxs54(Fragment15, { children: [
|
|
7066
|
+
/* @__PURE__ */ jsx79("span", { className: logoClass, "aria-hidden": "true", children: item.logo }),
|
|
7067
|
+
/* @__PURE__ */ jsx79("span", { className: "sr-only", children: item.name })
|
|
6864
7068
|
] });
|
|
6865
|
-
return /* @__PURE__ */
|
|
7069
|
+
return /* @__PURE__ */ jsx79("li", { className: cn("min-w-0", align === "center" ? "justify-self-center" : "justify-self-start"), children: item.href ? /* @__PURE__ */ jsx79(
|
|
6866
7070
|
Link3,
|
|
6867
7071
|
{
|
|
6868
7072
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -6875,41 +7079,41 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6875
7079
|
});
|
|
6876
7080
|
|
|
6877
7081
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
6878
|
-
import * as
|
|
6879
|
-
import { Fragment as Fragment16, jsx as
|
|
7082
|
+
import * as React78 from "react";
|
|
7083
|
+
import { Fragment as Fragment16, jsx as jsx80, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
6880
7084
|
var columnClasses3 = {
|
|
6881
7085
|
2: "sm:grid-cols-2",
|
|
6882
7086
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
6883
7087
|
4: "sm:grid-cols-2 lg:grid-cols-4"
|
|
6884
7088
|
};
|
|
6885
|
-
var FeatureGrid =
|
|
7089
|
+
var FeatureGrid = React78.forwardRef(function FeatureGrid2({ features, columns = 3, variant = "card", align = "left", linkComponent, className, ...props }, ref) {
|
|
6886
7090
|
const Link3 = linkComponent ?? "a";
|
|
6887
7091
|
const cardClass = cn(
|
|
6888
7092
|
"group flex h-full flex-col gap-3 rounded-xl p-6",
|
|
6889
7093
|
variant === "card" && "border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
|
|
6890
7094
|
align === "center" && "items-center text-center"
|
|
6891
7095
|
);
|
|
6892
|
-
const content = (feature) => /* @__PURE__ */
|
|
6893
|
-
feature.icon && /* @__PURE__ */
|
|
6894
|
-
/* @__PURE__ */
|
|
6895
|
-
feature.description && /* @__PURE__ */
|
|
6896
|
-
feature.href && feature.actionLabel && /* @__PURE__ */
|
|
7096
|
+
const content = (feature) => /* @__PURE__ */ jsxs55(Fragment16, { children: [
|
|
7097
|
+
feature.icon && /* @__PURE__ */ jsx80("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary-ink [&_svg]:size-5", children: feature.icon }),
|
|
7098
|
+
/* @__PURE__ */ jsx80("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
7099
|
+
feature.description && /* @__PURE__ */ jsx80("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
7100
|
+
feature.href && feature.actionLabel && /* @__PURE__ */ jsxs55("span", { className: "mt-auto pt-2 text-sm font-medium text-primary-ink", children: [
|
|
6897
7101
|
feature.actionLabel,
|
|
6898
7102
|
" ",
|
|
6899
|
-
/* @__PURE__ */
|
|
7103
|
+
/* @__PURE__ */ jsx80("span", { "aria-hidden": "true", children: "\u2192" })
|
|
6900
7104
|
] })
|
|
6901
7105
|
] });
|
|
6902
|
-
return /* @__PURE__ */
|
|
7106
|
+
return /* @__PURE__ */ jsx80("ul", { ref, className: cn("grid gap-6", columnClasses3[columns], className), ...props, children: features.map((feature) => /* @__PURE__ */ jsx80("li", { className: "min-w-0", children: feature.href ? /* @__PURE__ */ jsx80(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__ */ jsx80("div", { className: cardClass, children: content(feature) }) }, feature.title)) });
|
|
6903
7107
|
});
|
|
6904
7108
|
|
|
6905
7109
|
// src/components/feature-row/FeatureRow.tsx
|
|
6906
|
-
import * as
|
|
6907
|
-
import { jsx as
|
|
7110
|
+
import * as React79 from "react";
|
|
7111
|
+
import { jsx as jsx81, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
6908
7112
|
var titleSizes2 = {
|
|
6909
7113
|
md: "text-3xl",
|
|
6910
7114
|
lg: "text-3xl sm:text-4xl"
|
|
6911
7115
|
};
|
|
6912
|
-
var FeatureRow =
|
|
7116
|
+
var FeatureRow = React79.forwardRef(function FeatureRow2({
|
|
6913
7117
|
title,
|
|
6914
7118
|
description,
|
|
6915
7119
|
eyebrow,
|
|
@@ -6922,35 +7126,35 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6922
7126
|
...props
|
|
6923
7127
|
}, ref) {
|
|
6924
7128
|
const Heading2 = `h${level}`;
|
|
6925
|
-
return /* @__PURE__ */
|
|
7129
|
+
return /* @__PURE__ */ jsxs56(
|
|
6926
7130
|
"div",
|
|
6927
7131
|
{
|
|
6928
7132
|
ref,
|
|
6929
7133
|
className: cn("grid items-center gap-10 lg:grid-cols-2 lg:gap-16", className),
|
|
6930
7134
|
...props,
|
|
6931
7135
|
children: [
|
|
6932
|
-
/* @__PURE__ */
|
|
6933
|
-
eyebrow && /* @__PURE__ */
|
|
6934
|
-
/* @__PURE__ */
|
|
6935
|
-
description && /* @__PURE__ */
|
|
6936
|
-
actions && /* @__PURE__ */
|
|
7136
|
+
/* @__PURE__ */ jsxs56("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
7137
|
+
eyebrow && /* @__PURE__ */ jsx81("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
7138
|
+
/* @__PURE__ */ jsx81(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
7139
|
+
description && /* @__PURE__ */ jsx81("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
7140
|
+
actions && /* @__PURE__ */ jsx81("div", { className: "mt-7 flex flex-wrap items-center gap-3", children: actions })
|
|
6937
7141
|
] }),
|
|
6938
|
-
/* @__PURE__ */
|
|
7142
|
+
/* @__PURE__ */ jsx81("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1"), children: media })
|
|
6939
7143
|
]
|
|
6940
7144
|
}
|
|
6941
7145
|
);
|
|
6942
7146
|
});
|
|
6943
7147
|
|
|
6944
7148
|
// src/components/testimonial/Testimonial.tsx
|
|
6945
|
-
import * as
|
|
6946
|
-
import { jsx as
|
|
7149
|
+
import * as React80 from "react";
|
|
7150
|
+
import { jsx as jsx82, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
6947
7151
|
var quoteSizes = {
|
|
6948
7152
|
sm: "text-base",
|
|
6949
7153
|
md: "text-lg",
|
|
6950
7154
|
lg: "text-xl sm:text-2xl"
|
|
6951
7155
|
};
|
|
6952
|
-
var Testimonial =
|
|
6953
|
-
return /* @__PURE__ */
|
|
7156
|
+
var Testimonial = React80.forwardRef(function Testimonial2({ quote, name, role, company, avatar, logo, variant = "card", size = "md", className, ...props }, ref) {
|
|
7157
|
+
return /* @__PURE__ */ jsxs57(
|
|
6954
7158
|
"figure",
|
|
6955
7159
|
{
|
|
6956
7160
|
ref,
|
|
@@ -6961,17 +7165,17 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6961
7165
|
),
|
|
6962
7166
|
...props,
|
|
6963
7167
|
children: [
|
|
6964
|
-
logo && /* @__PURE__ */
|
|
6965
|
-
/* @__PURE__ */
|
|
7168
|
+
logo && /* @__PURE__ */ jsx82("div", { className: "flex items-center", children: logo }),
|
|
7169
|
+
/* @__PURE__ */ jsx82("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */ jsxs57("p", { children: [
|
|
6966
7170
|
"\u201C",
|
|
6967
7171
|
quote,
|
|
6968
7172
|
"\u201D"
|
|
6969
7173
|
] }) }),
|
|
6970
|
-
/* @__PURE__ */
|
|
6971
|
-
avatar && /* @__PURE__ */
|
|
6972
|
-
/* @__PURE__ */
|
|
6973
|
-
/* @__PURE__ */
|
|
6974
|
-
(role || company) && /* @__PURE__ */
|
|
7174
|
+
/* @__PURE__ */ jsxs57("figcaption", { className: "flex items-center gap-3", children: [
|
|
7175
|
+
avatar && /* @__PURE__ */ jsx82("div", { className: "shrink-0", children: avatar }),
|
|
7176
|
+
/* @__PURE__ */ jsxs57("div", { className: "min-w-0", children: [
|
|
7177
|
+
/* @__PURE__ */ jsx82("p", { className: "text-sm font-semibold", children: name }),
|
|
7178
|
+
(role || company) && /* @__PURE__ */ jsx82("p", { className: "text-xs text-muted-foreground", children: [role, company].filter(Boolean).join(", ") })
|
|
6975
7179
|
] })
|
|
6976
7180
|
] })
|
|
6977
7181
|
]
|
|
@@ -6980,24 +7184,24 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6980
7184
|
});
|
|
6981
7185
|
|
|
6982
7186
|
// src/components/process-steps/ProcessSteps.tsx
|
|
6983
|
-
import * as
|
|
6984
|
-
import { jsx as
|
|
7187
|
+
import * as React81 from "react";
|
|
7188
|
+
import { jsx as jsx83, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
6985
7189
|
var columnClasses4 = {
|
|
6986
7190
|
2: "sm:grid-cols-2",
|
|
6987
7191
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
6988
7192
|
4: "sm:grid-cols-2 lg:grid-cols-4"
|
|
6989
7193
|
};
|
|
6990
|
-
var ProcessSteps =
|
|
7194
|
+
var ProcessSteps = React81.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", headingLevel = 3, className, ...props }, ref) {
|
|
6991
7195
|
const HeadingTag = { 2: "h2", 3: "h3", 4: "h4" }[headingLevel];
|
|
6992
|
-
return /* @__PURE__ */
|
|
7196
|
+
return /* @__PURE__ */ jsx83("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ jsxs58(
|
|
6993
7197
|
"li",
|
|
6994
7198
|
{
|
|
6995
7199
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
6996
7200
|
children: [
|
|
6997
|
-
/* @__PURE__ */
|
|
6998
|
-
/* @__PURE__ */
|
|
6999
|
-
/* @__PURE__ */
|
|
7000
|
-
step.description && /* @__PURE__ */
|
|
7201
|
+
/* @__PURE__ */ jsx83("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 text-sm font-semibold text-primary-ink [&_svg]:size-5", children: step.icon ?? (numbered ? String(index + 1).padStart(2, "0") : null) }),
|
|
7202
|
+
/* @__PURE__ */ jsxs58("div", { className: "min-w-0", children: [
|
|
7203
|
+
/* @__PURE__ */ jsx83(HeadingTag, { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
7204
|
+
step.description && /* @__PURE__ */ jsx83("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
7001
7205
|
] })
|
|
7002
7206
|
]
|
|
7003
7207
|
},
|
|
@@ -7006,9 +7210,9 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
7006
7210
|
});
|
|
7007
7211
|
|
|
7008
7212
|
// src/components/article-card/ArticleCard.tsx
|
|
7009
|
-
import * as
|
|
7010
|
-
import { jsx as
|
|
7011
|
-
var ArticleCard =
|
|
7213
|
+
import * as React82 from "react";
|
|
7214
|
+
import { jsx as jsx84, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
7215
|
+
var ArticleCard = React82.forwardRef(function ArticleCard2({
|
|
7012
7216
|
title,
|
|
7013
7217
|
description,
|
|
7014
7218
|
href,
|
|
@@ -7022,7 +7226,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
7022
7226
|
}, ref) {
|
|
7023
7227
|
const Link3 = linkComponent ?? "a";
|
|
7024
7228
|
const compact = variant === "compact";
|
|
7025
|
-
return /* @__PURE__ */
|
|
7229
|
+
return /* @__PURE__ */ jsx84("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */ jsxs59(
|
|
7026
7230
|
Link3,
|
|
7027
7231
|
{
|
|
7028
7232
|
href,
|
|
@@ -7031,22 +7235,71 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
7031
7235
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
7032
7236
|
),
|
|
7033
7237
|
children: [
|
|
7034
|
-
media && !compact && /* @__PURE__ */
|
|
7035
|
-
/* @__PURE__ */
|
|
7036
|
-
eyebrow && /* @__PURE__ */
|
|
7037
|
-
/* @__PURE__ */
|
|
7038
|
-
description && /* @__PURE__ */
|
|
7039
|
-
meta && /* @__PURE__ */
|
|
7238
|
+
media && !compact && /* @__PURE__ */ jsx84("div", { className: "aspect-[16/10] w-full overflow-hidden bg-muted [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: media }),
|
|
7239
|
+
/* @__PURE__ */ jsxs59("div", { className: cn("flex flex-1 flex-col gap-2", compact ? "p-4" : "p-5"), children: [
|
|
7240
|
+
eyebrow && /* @__PURE__ */ jsx84("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
7241
|
+
/* @__PURE__ */ jsx84("h3", { className: cn("font-semibold tracking-tight transition-colors group-hover:text-primary-ink", compact ? "text-base" : "text-lg"), children: title }),
|
|
7242
|
+
description && /* @__PURE__ */ jsx84("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7243
|
+
meta && /* @__PURE__ */ jsx84("div", { className: "mt-auto pt-2 text-xs text-muted-foreground", children: meta })
|
|
7040
7244
|
] })
|
|
7041
7245
|
]
|
|
7042
7246
|
}
|
|
7043
7247
|
) });
|
|
7044
7248
|
});
|
|
7045
7249
|
|
|
7250
|
+
// src/components/media-card/MediaCard.tsx
|
|
7251
|
+
import * as React83 from "react";
|
|
7252
|
+
import { Fragment as Fragment17, jsx as jsx85, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
7253
|
+
var MediaCard = React83.forwardRef(function MediaCard2({
|
|
7254
|
+
title,
|
|
7255
|
+
description,
|
|
7256
|
+
href,
|
|
7257
|
+
cover,
|
|
7258
|
+
meta,
|
|
7259
|
+
chips,
|
|
7260
|
+
footer,
|
|
7261
|
+
layout = "vertical",
|
|
7262
|
+
linkComponent,
|
|
7263
|
+
linkHrefProp = "href",
|
|
7264
|
+
className,
|
|
7265
|
+
...props
|
|
7266
|
+
}, ref) {
|
|
7267
|
+
const Link3 = linkComponent ?? "a";
|
|
7268
|
+
const destination = href ? linkHrefProp === "to" ? { to: href } : { href } : void 0;
|
|
7269
|
+
const row = layout === "row";
|
|
7270
|
+
const body = /* @__PURE__ */ jsxs60(Fragment17, { children: [
|
|
7271
|
+
cover && /* @__PURE__ */ jsx85(
|
|
7272
|
+
CoverImage,
|
|
7273
|
+
{
|
|
7274
|
+
...cover,
|
|
7275
|
+
className: cn(
|
|
7276
|
+
row ? "w-36 shrink-0 sm:w-44" : "w-full",
|
|
7277
|
+
!row && "rounded-none border-b border-border"
|
|
7278
|
+
)
|
|
7279
|
+
}
|
|
7280
|
+
),
|
|
7281
|
+
/* @__PURE__ */ jsxs60("div", { className: cn("flex min-w-0 flex-1 flex-col gap-2", row ? "p-4" : "p-5"), children: [
|
|
7282
|
+
chips && chips.length > 0 && /* @__PURE__ */ jsx85("div", { className: "flex flex-wrap gap-1.5", children: chips.map((chip) => /* @__PURE__ */ jsx85(Badge, { variant: chip.variant ?? "outline", size: "sm", dot: chip.dot, children: chip.label }, chip.label)) }),
|
|
7283
|
+
/* @__PURE__ */ jsx85("h3", { className: "font-semibold tracking-tight transition-colors group-hover:text-primary-ink", children: title }),
|
|
7284
|
+
description && /* @__PURE__ */ jsx85("div", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7285
|
+
meta && /* @__PURE__ */ jsx85("div", { className: "text-xs text-muted-foreground", children: meta }),
|
|
7286
|
+
footer && /* @__PURE__ */ jsx85("div", { className: "mt-auto pt-2 text-xs text-muted-foreground", children: footer })
|
|
7287
|
+
] })
|
|
7288
|
+
] });
|
|
7289
|
+
const cardClass = cn(
|
|
7290
|
+
"group flex h-full overflow-hidden rounded-xl border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
|
|
7291
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7292
|
+
row ? "flex-row" : "flex-col",
|
|
7293
|
+
className
|
|
7294
|
+
);
|
|
7295
|
+
return /* @__PURE__ */ jsx85("article", { ref, className: "h-full", ...props, children: href && destination ? /* @__PURE__ */ jsx85(Link3, { ...destination, className: cardClass, children: body }) : /* @__PURE__ */ jsx85("div", { className: cardClass, children: body }) });
|
|
7296
|
+
});
|
|
7297
|
+
MediaCard.displayName = "MediaCard";
|
|
7298
|
+
|
|
7046
7299
|
// src/components/newsletter/Newsletter.tsx
|
|
7047
|
-
import * as
|
|
7048
|
-
import { jsx as
|
|
7049
|
-
var Newsletter =
|
|
7300
|
+
import * as React84 from "react";
|
|
7301
|
+
import { jsx as jsx86, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
7302
|
+
var Newsletter = React84.forwardRef(function Newsletter2({
|
|
7050
7303
|
title,
|
|
7051
7304
|
description,
|
|
7052
7305
|
placeholder = "you@example.com",
|
|
@@ -7061,9 +7314,9 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7061
7314
|
className,
|
|
7062
7315
|
...props
|
|
7063
7316
|
}, ref) {
|
|
7064
|
-
const id =
|
|
7065
|
-
const [email, setEmail] =
|
|
7066
|
-
const [status, setStatus] =
|
|
7317
|
+
const id = React84.useId();
|
|
7318
|
+
const [email, setEmail] = React84.useState("");
|
|
7319
|
+
const [status, setStatus] = React84.useState("idle");
|
|
7067
7320
|
const Heading2 = `h${level}`;
|
|
7068
7321
|
const handleSubmit = async (event) => {
|
|
7069
7322
|
event.preventDefault();
|
|
@@ -7077,13 +7330,13 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7077
7330
|
setStatus("error");
|
|
7078
7331
|
}
|
|
7079
7332
|
};
|
|
7080
|
-
return /* @__PURE__ */
|
|
7081
|
-
/* @__PURE__ */
|
|
7082
|
-
description && /* @__PURE__ */
|
|
7083
|
-
/* @__PURE__ */
|
|
7084
|
-
/* @__PURE__ */
|
|
7085
|
-
/* @__PURE__ */
|
|
7086
|
-
/* @__PURE__ */
|
|
7333
|
+
return /* @__PURE__ */ jsxs61("div", { className: "w-full", children: [
|
|
7334
|
+
/* @__PURE__ */ jsx86(Heading2, { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
7335
|
+
description && /* @__PURE__ */ jsx86("p", { className: "mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7336
|
+
/* @__PURE__ */ jsxs61("form", { ref, onSubmit: handleSubmit, className: cn("mt-5", className), ...props, children: [
|
|
7337
|
+
/* @__PURE__ */ jsxs61("div", { className: cn("flex gap-2", layout === "inline" ? "flex-col sm:flex-row" : "flex-col"), children: [
|
|
7338
|
+
/* @__PURE__ */ jsx86("label", { htmlFor: id, className: "sr-only", children: label }),
|
|
7339
|
+
/* @__PURE__ */ jsx86(
|
|
7087
7340
|
Input,
|
|
7088
7341
|
{
|
|
7089
7342
|
id,
|
|
@@ -7098,44 +7351,44 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7098
7351
|
className: "sm:flex-1"
|
|
7099
7352
|
}
|
|
7100
7353
|
),
|
|
7101
|
-
/* @__PURE__ */
|
|
7354
|
+
/* @__PURE__ */ jsx86(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
7102
7355
|
] }),
|
|
7103
|
-
consent && /* @__PURE__ */
|
|
7104
|
-
/* @__PURE__ */
|
|
7105
|
-
status === "success" && /* @__PURE__ */
|
|
7106
|
-
status === "error" && /* @__PURE__ */
|
|
7356
|
+
consent && /* @__PURE__ */ jsx86("div", { className: "mt-3 text-xs leading-relaxed text-muted-foreground", children: consent }),
|
|
7357
|
+
/* @__PURE__ */ jsxs61("div", { "aria-live": "polite", className: "mt-2 min-h-5 text-sm", children: [
|
|
7358
|
+
status === "success" && /* @__PURE__ */ jsx86("p", { className: "text-success", children: successMessage }),
|
|
7359
|
+
status === "error" && /* @__PURE__ */ jsx86("p", { role: "alert", className: "text-destructive", children: errorMessage })
|
|
7107
7360
|
] })
|
|
7108
7361
|
] })
|
|
7109
7362
|
] });
|
|
7110
7363
|
});
|
|
7111
7364
|
|
|
7112
7365
|
// src/components/contact-strip/ContactStrip.tsx
|
|
7113
|
-
import * as
|
|
7114
|
-
import { jsx as
|
|
7366
|
+
import * as React85 from "react";
|
|
7367
|
+
import { jsx as jsx87, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
7115
7368
|
var columnClasses5 = {
|
|
7116
7369
|
2: "sm:grid-cols-2",
|
|
7117
7370
|
3: "sm:grid-cols-3"
|
|
7118
7371
|
};
|
|
7119
|
-
var ContactStrip =
|
|
7372
|
+
var ContactStrip = React85.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
7120
7373
|
const Link3 = linkComponent ?? "a";
|
|
7121
|
-
return /* @__PURE__ */
|
|
7122
|
-
item.icon && /* @__PURE__ */
|
|
7123
|
-
/* @__PURE__ */
|
|
7124
|
-
/* @__PURE__ */
|
|
7125
|
-
item.href ? /* @__PURE__ */
|
|
7374
|
+
return /* @__PURE__ */ jsx87("ul", { ref, className: cn("grid gap-6", columnClasses5[columns], className), ...props, children: items.map((item) => /* @__PURE__ */ jsxs62("li", { className: cn("flex min-w-0 items-start gap-3", align === "center" && "justify-center text-center"), children: [
|
|
7375
|
+
item.icon && /* @__PURE__ */ jsx87("span", { className: "mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary-ink [&_svg]:size-4", children: item.icon }),
|
|
7376
|
+
/* @__PURE__ */ jsxs62("div", { className: "min-w-0", children: [
|
|
7377
|
+
/* @__PURE__ */ jsx87("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
7378
|
+
item.href ? /* @__PURE__ */ jsx87(Link3, { href: item.href, className: "mt-0.5 block break-words text-sm font-medium text-primary-ink underline-offset-4 hover:underline", children: item.value }) : /* @__PURE__ */ jsx87("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
7126
7379
|
] })
|
|
7127
7380
|
] }, item.label)) });
|
|
7128
7381
|
});
|
|
7129
7382
|
|
|
7130
7383
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
7131
|
-
import * as
|
|
7132
|
-
import { jsx as
|
|
7384
|
+
import * as React86 from "react";
|
|
7385
|
+
import { jsx as jsx88, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
7133
7386
|
var toneClasses3 = {
|
|
7134
7387
|
muted: "bg-muted text-foreground",
|
|
7135
7388
|
brand: "bg-primary text-primary-foreground",
|
|
7136
7389
|
inverse: "bg-inverse text-inverse-foreground"
|
|
7137
7390
|
};
|
|
7138
|
-
var AnnouncementBar =
|
|
7391
|
+
var AnnouncementBar = React86.forwardRef(
|
|
7139
7392
|
function AnnouncementBar2({
|
|
7140
7393
|
message,
|
|
7141
7394
|
href,
|
|
@@ -7148,14 +7401,14 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7148
7401
|
className,
|
|
7149
7402
|
...props
|
|
7150
7403
|
}, ref) {
|
|
7151
|
-
const [dismissed, setDismissed] =
|
|
7404
|
+
const [dismissed, setDismissed] = React86.useState(false);
|
|
7152
7405
|
const Link3 = linkComponent ?? "a";
|
|
7153
7406
|
if (dismissed) return null;
|
|
7154
7407
|
const dismiss2 = () => {
|
|
7155
7408
|
setDismissed(true);
|
|
7156
7409
|
onDismiss?.();
|
|
7157
7410
|
};
|
|
7158
|
-
return /* @__PURE__ */
|
|
7411
|
+
return /* @__PURE__ */ jsx88(
|
|
7159
7412
|
"div",
|
|
7160
7413
|
{
|
|
7161
7414
|
ref,
|
|
@@ -7168,9 +7421,9 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7168
7421
|
className
|
|
7169
7422
|
),
|
|
7170
7423
|
...props,
|
|
7171
|
-
children: /* @__PURE__ */
|
|
7172
|
-
/* @__PURE__ */
|
|
7173
|
-
href && actionLabel && /* @__PURE__ */
|
|
7424
|
+
children: /* @__PURE__ */ jsxs63("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: [
|
|
7425
|
+
/* @__PURE__ */ jsx88("p", { className: "min-w-0 text-center", children: message }),
|
|
7426
|
+
href && actionLabel && /* @__PURE__ */ jsx88(
|
|
7174
7427
|
Link3,
|
|
7175
7428
|
{
|
|
7176
7429
|
href,
|
|
@@ -7178,14 +7431,14 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7178
7431
|
children: actionLabel
|
|
7179
7432
|
}
|
|
7180
7433
|
),
|
|
7181
|
-
dismissible && /* @__PURE__ */
|
|
7434
|
+
dismissible && /* @__PURE__ */ jsx88(
|
|
7182
7435
|
"button",
|
|
7183
7436
|
{
|
|
7184
7437
|
type: "button",
|
|
7185
7438
|
onClick: dismiss2,
|
|
7186
7439
|
"aria-label": "Dismiss announcement",
|
|
7187
7440
|
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",
|
|
7188
|
-
children: /* @__PURE__ */
|
|
7441
|
+
children: /* @__PURE__ */ jsx88("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx88("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7189
7442
|
}
|
|
7190
7443
|
)
|
|
7191
7444
|
] })
|
|
@@ -7195,15 +7448,15 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7195
7448
|
);
|
|
7196
7449
|
|
|
7197
7450
|
// src/components/deal-card/DealCard.tsx
|
|
7198
|
-
import * as
|
|
7199
|
-
import { jsx as
|
|
7451
|
+
import * as React87 from "react";
|
|
7452
|
+
import { jsx as jsx89, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
7200
7453
|
var statusConfig = {
|
|
7201
7454
|
available: { label: "Available", variant: "success" },
|
|
7202
7455
|
"under-nda": { label: "Under NDA", variant: "info" },
|
|
7203
7456
|
closed: { label: "Closed", variant: "secondary" },
|
|
7204
7457
|
draft: { label: "Draft", variant: "outline" }
|
|
7205
7458
|
};
|
|
7206
|
-
var DealCard =
|
|
7459
|
+
var DealCard = React87.forwardRef(function DealCard2({
|
|
7207
7460
|
title,
|
|
7208
7461
|
sector,
|
|
7209
7462
|
location,
|
|
@@ -7224,29 +7477,29 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7224
7477
|
}, ref) {
|
|
7225
7478
|
const Link3 = linkComponent ?? "a";
|
|
7226
7479
|
const statusInfo = statusConfig[status];
|
|
7227
|
-
return /* @__PURE__ */
|
|
7228
|
-
/* @__PURE__ */
|
|
7229
|
-
/* @__PURE__ */
|
|
7230
|
-
/* @__PURE__ */
|
|
7231
|
-
/* @__PURE__ */
|
|
7480
|
+
return /* @__PURE__ */ jsxs64(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
7481
|
+
/* @__PURE__ */ jsxs64(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
7482
|
+
/* @__PURE__ */ jsxs64("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7483
|
+
/* @__PURE__ */ jsx89("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: sector }),
|
|
7484
|
+
/* @__PURE__ */ jsx89(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7232
7485
|
] }),
|
|
7233
|
-
/* @__PURE__ */
|
|
7234
|
-
location && /* @__PURE__ */
|
|
7486
|
+
/* @__PURE__ */ jsx89("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ jsx89(Link3, { href, className: "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
7487
|
+
location && /* @__PURE__ */ jsx89("p", { className: "text-xs text-muted-foreground", children: location })
|
|
7235
7488
|
] }),
|
|
7236
|
-
/* @__PURE__ */
|
|
7237
|
-
description && /* @__PURE__ */
|
|
7238
|
-
/* @__PURE__ */
|
|
7239
|
-
/* @__PURE__ */
|
|
7240
|
-
/* @__PURE__ */
|
|
7489
|
+
/* @__PURE__ */ jsxs64(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7490
|
+
description && /* @__PURE__ */ jsx89("p", { className: "line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7491
|
+
/* @__PURE__ */ jsx89("dl", { className: "mt-4 grid grid-cols-3 gap-3", children: metrics.map((metric) => /* @__PURE__ */ jsxs64("div", { className: "min-w-0", children: [
|
|
7492
|
+
/* @__PURE__ */ jsx89("dt", { className: "text-xs text-muted-foreground", children: metric.label }),
|
|
7493
|
+
/* @__PURE__ */ jsx89("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: metric.value })
|
|
7241
7494
|
] }, metric.label)) }),
|
|
7242
|
-
(ndaAvailable || cimAvailable) && /* @__PURE__ */
|
|
7243
|
-
ndaAvailable && /* @__PURE__ */
|
|
7244
|
-
cimAvailable && /* @__PURE__ */
|
|
7495
|
+
(ndaAvailable || cimAvailable) && /* @__PURE__ */ jsxs64("div", { className: "mt-4 flex flex-wrap gap-1.5", children: [
|
|
7496
|
+
ndaAvailable && /* @__PURE__ */ jsx89(Badge, { variant: "info", children: "NDA available" }),
|
|
7497
|
+
cimAvailable && /* @__PURE__ */ jsx89(Badge, { variant: "secondary", children: "CIM available" })
|
|
7245
7498
|
] })
|
|
7246
7499
|
] }),
|
|
7247
|
-
/* @__PURE__ */
|
|
7248
|
-
onRequestAccess && /* @__PURE__ */
|
|
7249
|
-
onSave && /* @__PURE__ */
|
|
7500
|
+
/* @__PURE__ */ jsxs64(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
7501
|
+
onRequestAccess && /* @__PURE__ */ jsx89(Button, { type: "button", size: "sm", onClick: onRequestAccess, children: requestLabel }),
|
|
7502
|
+
onSave && /* @__PURE__ */ jsx89(
|
|
7250
7503
|
Button,
|
|
7251
7504
|
{
|
|
7252
7505
|
type: "button",
|
|
@@ -7263,12 +7516,12 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7263
7516
|
});
|
|
7264
7517
|
|
|
7265
7518
|
// src/components/entity-card/EntityCard.tsx
|
|
7266
|
-
import * as
|
|
7267
|
-
import { jsx as
|
|
7519
|
+
import * as React88 from "react";
|
|
7520
|
+
import { jsx as jsx90, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
7268
7521
|
function initials(name) {
|
|
7269
7522
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
7270
7523
|
}
|
|
7271
|
-
var EntityCard =
|
|
7524
|
+
var EntityCard = React88.forwardRef(function EntityCard2({
|
|
7272
7525
|
name,
|
|
7273
7526
|
entityType,
|
|
7274
7527
|
location,
|
|
@@ -7286,11 +7539,11 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7286
7539
|
const Link3 = linkComponent ?? "a";
|
|
7287
7540
|
const stretched = Boolean(cardHref);
|
|
7288
7541
|
const nameHref = cardHref ?? href;
|
|
7289
|
-
return /* @__PURE__ */
|
|
7290
|
-
/* @__PURE__ */
|
|
7291
|
-
/* @__PURE__ */
|
|
7292
|
-
/* @__PURE__ */
|
|
7293
|
-
/* @__PURE__ */
|
|
7542
|
+
return /* @__PURE__ */ jsxs65(Card, { ref, className: cn("flex h-full flex-col", stretched && "relative isolate", className), ...props, children: [
|
|
7543
|
+
/* @__PURE__ */ jsxs65(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
7544
|
+
/* @__PURE__ */ jsx90("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ jsx90(Avatar, { children: /* @__PURE__ */ jsx90(AvatarFallback, { children: initials(name) }) }) }),
|
|
7545
|
+
/* @__PURE__ */ jsxs65("div", { className: "min-w-0 flex-1", children: [
|
|
7546
|
+
/* @__PURE__ */ jsx90("h3", { className: "truncate text-base font-semibold tracking-tight", children: nameHref ? /* @__PURE__ */ jsx90(
|
|
7294
7547
|
Link3,
|
|
7295
7548
|
{
|
|
7296
7549
|
href: nameHref,
|
|
@@ -7301,20 +7554,20 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7301
7554
|
children: name
|
|
7302
7555
|
}
|
|
7303
7556
|
) : name }),
|
|
7304
|
-
/* @__PURE__ */
|
|
7305
|
-
location && /* @__PURE__ */
|
|
7557
|
+
/* @__PURE__ */ jsx90("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
7558
|
+
location && /* @__PURE__ */ jsx90("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
7306
7559
|
] })
|
|
7307
7560
|
] }),
|
|
7308
|
-
/* @__PURE__ */
|
|
7309
|
-
description && /* @__PURE__ */
|
|
7310
|
-
tags && tags.length > 0 && /* @__PURE__ */
|
|
7311
|
-
stats && stats.length > 0 && /* @__PURE__ */
|
|
7312
|
-
/* @__PURE__ */
|
|
7313
|
-
/* @__PURE__ */
|
|
7561
|
+
/* @__PURE__ */ jsxs65(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7562
|
+
description && /* @__PURE__ */ jsx90("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7563
|
+
tags && tags.length > 0 && /* @__PURE__ */ jsx90("div", { className: "mt-3 flex flex-wrap gap-1.5", children: tags.map((tag) => /* @__PURE__ */ jsx90(Badge, { variant: "secondary", children: tag }, tag)) }),
|
|
7564
|
+
stats && stats.length > 0 && /* @__PURE__ */ jsx90("dl", { className: "mt-4 grid grid-cols-2 gap-3", children: stats.map((stat) => /* @__PURE__ */ jsxs65("div", { className: "min-w-0", children: [
|
|
7565
|
+
/* @__PURE__ */ jsx90("dt", { className: "text-xs text-muted-foreground", children: stat.label }),
|
|
7566
|
+
/* @__PURE__ */ jsx90("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
|
|
7314
7567
|
] }, stat.label)) })
|
|
7315
7568
|
] }),
|
|
7316
|
-
(href && !stretched || actions) && /* @__PURE__ */
|
|
7317
|
-
href && !stretched && /* @__PURE__ */
|
|
7569
|
+
(href && !stretched || actions) && /* @__PURE__ */ jsxs65(CardFooter, { className: cn("flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", stretched && "relative z-10"), children: [
|
|
7570
|
+
href && !stretched && /* @__PURE__ */ jsx90(
|
|
7318
7571
|
Link3,
|
|
7319
7572
|
{
|
|
7320
7573
|
href,
|
|
@@ -7322,21 +7575,21 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7322
7575
|
children: "View profile"
|
|
7323
7576
|
}
|
|
7324
7577
|
),
|
|
7325
|
-
actions && /* @__PURE__ */
|
|
7578
|
+
actions && /* @__PURE__ */ jsx90("div", { className: "ml-auto flex items-center gap-2", children: actions })
|
|
7326
7579
|
] })
|
|
7327
7580
|
] });
|
|
7328
7581
|
});
|
|
7329
7582
|
var ProfileCard = EntityCard;
|
|
7330
7583
|
|
|
7331
7584
|
// src/components/tombstone-card/TombstoneCard.tsx
|
|
7332
|
-
import * as
|
|
7333
|
-
import { jsx as
|
|
7585
|
+
import * as React89 from "react";
|
|
7586
|
+
import { jsx as jsx91, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
7334
7587
|
var statusConfig2 = {
|
|
7335
7588
|
archived: { label: "Archived", variant: "secondary" },
|
|
7336
7589
|
unavailable: { label: "Unavailable", variant: "warning" },
|
|
7337
7590
|
closed: { label: "Closed", variant: "outline" }
|
|
7338
7591
|
};
|
|
7339
|
-
var TombstoneCard =
|
|
7592
|
+
var TombstoneCard = React89.forwardRef(function TombstoneCard2({
|
|
7340
7593
|
title,
|
|
7341
7594
|
reason,
|
|
7342
7595
|
status = "unavailable",
|
|
@@ -7349,20 +7602,20 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7349
7602
|
}, ref) {
|
|
7350
7603
|
const Link3 = linkComponent ?? "a";
|
|
7351
7604
|
const statusInfo = statusConfig2[status];
|
|
7352
|
-
return /* @__PURE__ */
|
|
7605
|
+
return /* @__PURE__ */ jsx91(
|
|
7353
7606
|
Card,
|
|
7354
7607
|
{
|
|
7355
7608
|
ref,
|
|
7356
7609
|
className: cn("flex h-full flex-col border-dashed bg-muted/30 shadow-none", className),
|
|
7357
7610
|
...props,
|
|
7358
|
-
children: /* @__PURE__ */
|
|
7359
|
-
/* @__PURE__ */
|
|
7360
|
-
logo && /* @__PURE__ */
|
|
7361
|
-
/* @__PURE__ */
|
|
7611
|
+
children: /* @__PURE__ */ jsxs66(CardContent, { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
7612
|
+
/* @__PURE__ */ jsxs66("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7613
|
+
logo && /* @__PURE__ */ jsx91("div", { className: "min-w-0 opacity-70", children: logo }),
|
|
7614
|
+
/* @__PURE__ */ jsx91(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7362
7615
|
] }),
|
|
7363
|
-
/* @__PURE__ */
|
|
7364
|
-
reason && /* @__PURE__ */
|
|
7365
|
-
href && /* @__PURE__ */
|
|
7616
|
+
/* @__PURE__ */ jsx91("h3", { className: "text-base font-semibold tracking-tight text-foreground/80", children: title }),
|
|
7617
|
+
reason && /* @__PURE__ */ jsx91("p", { className: "text-sm leading-relaxed text-muted-foreground", children: reason }),
|
|
7618
|
+
href && /* @__PURE__ */ jsx91(
|
|
7366
7619
|
Link3,
|
|
7367
7620
|
{
|
|
7368
7621
|
href,
|
|
@@ -7376,14 +7629,14 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7376
7629
|
});
|
|
7377
7630
|
|
|
7378
7631
|
// src/components/document-card/DocumentCard.tsx
|
|
7379
|
-
import * as
|
|
7380
|
-
import { jsx as
|
|
7632
|
+
import * as React90 from "react";
|
|
7633
|
+
import { jsx as jsx92, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
7381
7634
|
var statusConfig3 = {
|
|
7382
7635
|
available: { label: "Available", variant: "success" },
|
|
7383
7636
|
restricted: { label: "Restricted", variant: "warning" },
|
|
7384
7637
|
pending: { label: "Pending", variant: "info" }
|
|
7385
7638
|
};
|
|
7386
|
-
var DocumentCard =
|
|
7639
|
+
var DocumentCard = React90.forwardRef(function DocumentCard2({
|
|
7387
7640
|
name,
|
|
7388
7641
|
fileType,
|
|
7389
7642
|
size,
|
|
@@ -7397,14 +7650,14 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7397
7650
|
}, ref) {
|
|
7398
7651
|
const statusInfo = statusConfig3[status];
|
|
7399
7652
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7400
|
-
return /* @__PURE__ */
|
|
7401
|
-
/* @__PURE__ */
|
|
7402
|
-
/* @__PURE__ */
|
|
7403
|
-
/* @__PURE__ */
|
|
7404
|
-
meta && /* @__PURE__ */
|
|
7653
|
+
return /* @__PURE__ */ jsx92(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */ jsxs67(CardContent, { className: "flex items-center gap-3 p-4", children: [
|
|
7654
|
+
/* @__PURE__ */ jsx92("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary-ink [&_svg]:size-5", children: icon ?? /* @__PURE__ */ jsx92("span", { className: "text-[10px] font-bold uppercase tracking-wide", children: fileType }) }),
|
|
7655
|
+
/* @__PURE__ */ jsxs67("div", { className: "min-w-0 flex-1", children: [
|
|
7656
|
+
/* @__PURE__ */ jsx92("p", { className: "truncate text-sm font-medium", children: name }),
|
|
7657
|
+
meta && /* @__PURE__ */ jsx92("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
7405
7658
|
] }),
|
|
7406
|
-
/* @__PURE__ */
|
|
7407
|
-
onDownload && /* @__PURE__ */
|
|
7659
|
+
/* @__PURE__ */ jsx92(Badge, { variant: statusInfo.variant, children: statusInfo.label }),
|
|
7660
|
+
onDownload && /* @__PURE__ */ jsx92(
|
|
7408
7661
|
Button,
|
|
7409
7662
|
{
|
|
7410
7663
|
type: "button",
|
|
@@ -7420,9 +7673,9 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7420
7673
|
});
|
|
7421
7674
|
|
|
7422
7675
|
// src/components/load-more/LoadMore.tsx
|
|
7423
|
-
import * as
|
|
7424
|
-
import { jsx as
|
|
7425
|
-
var LoadMore =
|
|
7676
|
+
import * as React91 from "react";
|
|
7677
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
7678
|
+
var LoadMore = React91.forwardRef(function LoadMore2({
|
|
7426
7679
|
hasMore,
|
|
7427
7680
|
onLoadMore,
|
|
7428
7681
|
loading = false,
|
|
@@ -7432,12 +7685,12 @@ var LoadMore = React89.forwardRef(function LoadMore2({
|
|
|
7432
7685
|
className,
|
|
7433
7686
|
...props
|
|
7434
7687
|
}, ref) {
|
|
7435
|
-
return /* @__PURE__ */
|
|
7688
|
+
return /* @__PURE__ */ jsx93("div", { ref, "aria-live": "polite", className: cn("flex w-full justify-center py-4", className), ...props, children: hasMore ? /* @__PURE__ */ jsx93(Button, { type: "button", variant: "outline", onClick: onLoadMore, loading, children: loading ? loadingLabel : loadLabel }) : /* @__PURE__ */ jsx93("p", { role: "status", className: "text-sm text-muted-foreground", children: endLabel }) });
|
|
7436
7689
|
});
|
|
7437
7690
|
|
|
7438
7691
|
// src/components/segmented-control/SegmentedControl.tsx
|
|
7439
|
-
import * as
|
|
7440
|
-
import { Fragment as
|
|
7692
|
+
import * as React92 from "react";
|
|
7693
|
+
import { Fragment as Fragment18, jsx as jsx94, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
7441
7694
|
var sizeClasses10 = {
|
|
7442
7695
|
sm: "h-8 px-2.5 text-xs",
|
|
7443
7696
|
md: "h-9 px-3 text-sm",
|
|
@@ -7450,7 +7703,7 @@ var fullWidthBreakpoints = {
|
|
|
7450
7703
|
xl: "max-xl",
|
|
7451
7704
|
"2xl": "max-2xl"
|
|
7452
7705
|
};
|
|
7453
|
-
var SegmentedControl =
|
|
7706
|
+
var SegmentedControl = React92.forwardRef(
|
|
7454
7707
|
function SegmentedControl2({
|
|
7455
7708
|
options,
|
|
7456
7709
|
value,
|
|
@@ -7466,7 +7719,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7466
7719
|
...props
|
|
7467
7720
|
}, ref) {
|
|
7468
7721
|
const isControlled = value !== void 0;
|
|
7469
|
-
const [internal, setInternal] =
|
|
7722
|
+
const [internal, setInternal] = React92.useState(
|
|
7470
7723
|
() => multiple ? Array.isArray(defaultValue) ? defaultValue : [] : typeof defaultValue === "string" ? defaultValue : ""
|
|
7471
7724
|
);
|
|
7472
7725
|
const current = isControlled ? value : internal;
|
|
@@ -7475,7 +7728,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7475
7728
|
const linkMode = options.some((option) => option.href !== void 0);
|
|
7476
7729
|
const LinkEl = linkComponent ?? "a";
|
|
7477
7730
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
7478
|
-
const refs =
|
|
7731
|
+
const refs = React92.useRef([]);
|
|
7479
7732
|
const commit = (next) => {
|
|
7480
7733
|
if (!isControlled) setInternal(next);
|
|
7481
7734
|
onValueChange?.(next);
|
|
@@ -7525,7 +7778,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7525
7778
|
moveFocus("last");
|
|
7526
7779
|
}
|
|
7527
7780
|
};
|
|
7528
|
-
return /* @__PURE__ */
|
|
7781
|
+
return /* @__PURE__ */ jsx94(
|
|
7529
7782
|
"div",
|
|
7530
7783
|
{
|
|
7531
7784
|
ref,
|
|
@@ -7551,14 +7804,14 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7551
7804
|
fullWidthBelow && `${fullWidthBelow}:flex-1`,
|
|
7552
7805
|
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
7553
7806
|
);
|
|
7554
|
-
const segmentContent = /* @__PURE__ */
|
|
7555
|
-
option.icon && /* @__PURE__ */
|
|
7556
|
-
/* @__PURE__ */
|
|
7557
|
-
option.hint && /* @__PURE__ */
|
|
7807
|
+
const segmentContent = /* @__PURE__ */ jsxs68(Fragment18, { children: [
|
|
7808
|
+
option.icon && /* @__PURE__ */ jsx94("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
7809
|
+
/* @__PURE__ */ jsx94("span", { className: "truncate", children: option.label }),
|
|
7810
|
+
option.hint && /* @__PURE__ */ jsx94("span", { "aria-hidden": "true", className: "shrink-0 text-[10px] font-normal text-muted-foreground/70", children: option.hint })
|
|
7558
7811
|
] });
|
|
7559
7812
|
if (option.href !== void 0) {
|
|
7560
7813
|
if (option.disabled || active) {
|
|
7561
|
-
return /* @__PURE__ */
|
|
7814
|
+
return /* @__PURE__ */ jsx94(
|
|
7562
7815
|
"span",
|
|
7563
7816
|
{
|
|
7564
7817
|
"aria-current": active ? "page" : void 0,
|
|
@@ -7570,7 +7823,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7570
7823
|
option.value
|
|
7571
7824
|
);
|
|
7572
7825
|
}
|
|
7573
|
-
return /* @__PURE__ */
|
|
7826
|
+
return /* @__PURE__ */ jsx94(
|
|
7574
7827
|
LinkEl,
|
|
7575
7828
|
{
|
|
7576
7829
|
...destination(option.href),
|
|
@@ -7581,7 +7834,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7581
7834
|
option.value
|
|
7582
7835
|
);
|
|
7583
7836
|
}
|
|
7584
|
-
return /* @__PURE__ */
|
|
7837
|
+
return /* @__PURE__ */ jsx94(
|
|
7585
7838
|
"button",
|
|
7586
7839
|
{
|
|
7587
7840
|
ref: (node) => {
|
|
@@ -7609,8 +7862,8 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7609
7862
|
);
|
|
7610
7863
|
|
|
7611
7864
|
// src/components/range-slider/RangeSlider.tsx
|
|
7612
|
-
import * as
|
|
7613
|
-
import { jsx as
|
|
7865
|
+
import * as React93 from "react";
|
|
7866
|
+
import { jsx as jsx95, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
7614
7867
|
var rangeInputClass = cn(
|
|
7615
7868
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
7616
7869
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
@@ -7620,7 +7873,7 @@ var rangeInputClass = cn(
|
|
|
7620
7873
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7621
7874
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
7622
7875
|
);
|
|
7623
|
-
var RangeSlider =
|
|
7876
|
+
var RangeSlider = React93.forwardRef(function RangeSlider2({
|
|
7624
7877
|
value,
|
|
7625
7878
|
defaultValue,
|
|
7626
7879
|
onValueChange,
|
|
@@ -7636,7 +7889,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7636
7889
|
...props
|
|
7637
7890
|
}, ref) {
|
|
7638
7891
|
const clamp2 = (entry) => Math.min(Math.max(entry, min), max);
|
|
7639
|
-
const [internal, setInternal] =
|
|
7892
|
+
const [internal, setInternal] = React93.useState(() => {
|
|
7640
7893
|
const initial = defaultValue ?? [min, max];
|
|
7641
7894
|
return [clamp2(initial[0]), clamp2(initial[1])];
|
|
7642
7895
|
});
|
|
@@ -7650,21 +7903,21 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7650
7903
|
const span = max - min || 1;
|
|
7651
7904
|
const lowPercent = (low - min) / span * 100;
|
|
7652
7905
|
const highPercent = (high - min) / span * 100;
|
|
7653
|
-
return /* @__PURE__ */
|
|
7654
|
-
showValues && /* @__PURE__ */
|
|
7655
|
-
/* @__PURE__ */
|
|
7656
|
-
/* @__PURE__ */
|
|
7906
|
+
return /* @__PURE__ */ jsxs69("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
7907
|
+
showValues && /* @__PURE__ */ jsxs69("div", { className: "mb-2 flex items-center justify-between text-sm font-medium tabular-nums", children: [
|
|
7908
|
+
/* @__PURE__ */ jsx95("span", { children: formatValue(low) }),
|
|
7909
|
+
/* @__PURE__ */ jsx95("span", { children: formatValue(high) })
|
|
7657
7910
|
] }),
|
|
7658
|
-
/* @__PURE__ */
|
|
7659
|
-
/* @__PURE__ */
|
|
7660
|
-
/* @__PURE__ */
|
|
7911
|
+
/* @__PURE__ */ jsxs69("div", { className: "relative h-6 w-full", children: [
|
|
7912
|
+
/* @__PURE__ */ jsx95("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-border" }),
|
|
7913
|
+
/* @__PURE__ */ jsx95(
|
|
7661
7914
|
"div",
|
|
7662
7915
|
{
|
|
7663
7916
|
className: "absolute top-1/2 h-1 -translate-y-1/2 rounded-full bg-primary",
|
|
7664
7917
|
style: { left: `${lowPercent}%`, right: `${100 - highPercent}%` }
|
|
7665
7918
|
}
|
|
7666
7919
|
),
|
|
7667
|
-
/* @__PURE__ */
|
|
7920
|
+
/* @__PURE__ */ jsx95(
|
|
7668
7921
|
"input",
|
|
7669
7922
|
{
|
|
7670
7923
|
type: "range",
|
|
@@ -7679,7 +7932,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7679
7932
|
className: cn(rangeInputClass, "z-10")
|
|
7680
7933
|
}
|
|
7681
7934
|
),
|
|
7682
|
-
/* @__PURE__ */
|
|
7935
|
+
/* @__PURE__ */ jsx95(
|
|
7683
7936
|
"input",
|
|
7684
7937
|
{
|
|
7685
7938
|
type: "range",
|
|
@@ -7699,8 +7952,8 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7699
7952
|
});
|
|
7700
7953
|
|
|
7701
7954
|
// src/components/filter-chips/FilterChips.tsx
|
|
7702
|
-
import * as
|
|
7703
|
-
import { jsx as
|
|
7955
|
+
import * as React94 from "react";
|
|
7956
|
+
import { jsx as jsx96, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
7704
7957
|
var CHIP_SIZES = {
|
|
7705
7958
|
sm: {
|
|
7706
7959
|
chip: "gap-1 py-0.5 pl-2.5 pr-0.5 text-xs",
|
|
@@ -7721,7 +7974,7 @@ var CHIP_SIZES = {
|
|
|
7721
7974
|
clear: "text-base"
|
|
7722
7975
|
}
|
|
7723
7976
|
};
|
|
7724
|
-
var FilterChips =
|
|
7977
|
+
var FilterChips = React94.forwardRef(function FilterChips2({
|
|
7725
7978
|
filters,
|
|
7726
7979
|
size = "md",
|
|
7727
7980
|
onClearAll,
|
|
@@ -7732,10 +7985,10 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7732
7985
|
...props
|
|
7733
7986
|
}, ref) {
|
|
7734
7987
|
if (filters.length === 0) {
|
|
7735
|
-
return emptyLabel ? /* @__PURE__ */
|
|
7988
|
+
return emptyLabel ? /* @__PURE__ */ jsx96("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7736
7989
|
}
|
|
7737
7990
|
const scale = CHIP_SIZES[size];
|
|
7738
|
-
return /* @__PURE__ */
|
|
7991
|
+
return /* @__PURE__ */ jsxs70(
|
|
7739
7992
|
"div",
|
|
7740
7993
|
{
|
|
7741
7994
|
ref,
|
|
@@ -7744,7 +7997,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7744
7997
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
7745
7998
|
...props,
|
|
7746
7999
|
children: [
|
|
7747
|
-
filters.map((filter) => /* @__PURE__ */
|
|
8000
|
+
filters.map((filter) => /* @__PURE__ */ jsxs70(
|
|
7748
8001
|
"span",
|
|
7749
8002
|
{
|
|
7750
8003
|
className: cn(
|
|
@@ -7752,15 +8005,15 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7752
8005
|
scale.chip
|
|
7753
8006
|
),
|
|
7754
8007
|
children: [
|
|
7755
|
-
/* @__PURE__ */
|
|
7756
|
-
/* @__PURE__ */
|
|
8008
|
+
/* @__PURE__ */ jsxs70("span", { className: "truncate", children: [
|
|
8009
|
+
/* @__PURE__ */ jsxs70("span", { className: "text-muted-foreground", children: [
|
|
7757
8010
|
filter.label,
|
|
7758
8011
|
":"
|
|
7759
8012
|
] }),
|
|
7760
8013
|
" ",
|
|
7761
|
-
/* @__PURE__ */
|
|
8014
|
+
/* @__PURE__ */ jsx96("span", { className: "font-medium", children: filter.value ?? "Any" })
|
|
7762
8015
|
] }),
|
|
7763
|
-
filter.onRemove && /* @__PURE__ */
|
|
8016
|
+
filter.onRemove && /* @__PURE__ */ jsx96(
|
|
7764
8017
|
"button",
|
|
7765
8018
|
{
|
|
7766
8019
|
type: "button",
|
|
@@ -7770,14 +8023,14 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7770
8023
|
"rounded-full text-muted-foreground transition-colors hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7771
8024
|
scale.remove
|
|
7772
8025
|
),
|
|
7773
|
-
children: /* @__PURE__ */
|
|
8026
|
+
children: /* @__PURE__ */ jsx96("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: scale.icon, fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx96("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7774
8027
|
}
|
|
7775
8028
|
)
|
|
7776
8029
|
]
|
|
7777
8030
|
},
|
|
7778
8031
|
filter.key
|
|
7779
8032
|
)),
|
|
7780
|
-
onClearAll && /* @__PURE__ */
|
|
8033
|
+
onClearAll && /* @__PURE__ */ jsx96(
|
|
7781
8034
|
"button",
|
|
7782
8035
|
{
|
|
7783
8036
|
type: "button",
|
|
@@ -7795,9 +8048,9 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7795
8048
|
});
|
|
7796
8049
|
|
|
7797
8050
|
// src/components/multi-select/MultiSelect.tsx
|
|
7798
|
-
import * as
|
|
7799
|
-
import { jsx as
|
|
7800
|
-
var MultiSelect =
|
|
8051
|
+
import * as React95 from "react";
|
|
8052
|
+
import { jsx as jsx97, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
8053
|
+
var MultiSelect = React95.forwardRef(function MultiSelect2({
|
|
7801
8054
|
options,
|
|
7802
8055
|
value,
|
|
7803
8056
|
defaultValue,
|
|
@@ -7811,10 +8064,10 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7811
8064
|
className,
|
|
7812
8065
|
...props
|
|
7813
8066
|
}, ref) {
|
|
7814
|
-
const labelId =
|
|
7815
|
-
const [internal, setInternal] =
|
|
7816
|
-
const [query, setQuery] =
|
|
7817
|
-
const [open, setOpen] =
|
|
8067
|
+
const labelId = React95.useId();
|
|
8068
|
+
const [internal, setInternal] = React95.useState(defaultValue ?? []);
|
|
8069
|
+
const [query, setQuery] = React95.useState("");
|
|
8070
|
+
const [open, setOpen] = React95.useState(false);
|
|
7818
8071
|
const selected = value ?? internal;
|
|
7819
8072
|
const commit = (next) => {
|
|
7820
8073
|
if (value === void 0) setInternal(next);
|
|
@@ -7831,7 +8084,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7831
8084
|
const q = query.trim().toLowerCase();
|
|
7832
8085
|
return option.label.toLowerCase().includes(q) || option.value.toLowerCase().includes(q) || option.description?.toLowerCase().includes(q) || option.group?.toLowerCase().includes(q);
|
|
7833
8086
|
}) : options;
|
|
7834
|
-
const groups =
|
|
8087
|
+
const groups = React95.useMemo(() => {
|
|
7835
8088
|
let last;
|
|
7836
8089
|
return filtered.map((option) => {
|
|
7837
8090
|
const heading = option.group && option.group !== last ? option.group : void 0;
|
|
@@ -7841,16 +8094,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7841
8094
|
}, [filtered]);
|
|
7842
8095
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
7843
8096
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
7844
|
-
return /* @__PURE__ */
|
|
7845
|
-
label && /* @__PURE__ */
|
|
7846
|
-
visibleChips.length > 0 && /* @__PURE__ */
|
|
7847
|
-
visibleChips.map((option) => /* @__PURE__ */
|
|
8097
|
+
return /* @__PURE__ */ jsxs71("div", { ref, className: cn("flex flex-col gap-2", className), ...props, children: [
|
|
8098
|
+
label && /* @__PURE__ */ jsx97("span", { id: labelId, className: "text-sm font-medium", children: label }),
|
|
8099
|
+
visibleChips.length > 0 && /* @__PURE__ */ jsxs71("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
8100
|
+
visibleChips.map((option) => /* @__PURE__ */ jsxs71(
|
|
7848
8101
|
"span",
|
|
7849
8102
|
{
|
|
7850
8103
|
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",
|
|
7851
8104
|
children: [
|
|
7852
|
-
/* @__PURE__ */
|
|
7853
|
-
/* @__PURE__ */
|
|
8105
|
+
/* @__PURE__ */ jsx97("span", { className: "truncate", children: option.label }),
|
|
8106
|
+
/* @__PURE__ */ jsx97(
|
|
7854
8107
|
"button",
|
|
7855
8108
|
{
|
|
7856
8109
|
type: "button",
|
|
@@ -7858,26 +8111,26 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7858
8111
|
disabled,
|
|
7859
8112
|
"aria-label": `Remove ${option.label}`,
|
|
7860
8113
|
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",
|
|
7861
|
-
children: /* @__PURE__ */
|
|
8114
|
+
children: /* @__PURE__ */ jsx97("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx97("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7862
8115
|
}
|
|
7863
8116
|
)
|
|
7864
8117
|
]
|
|
7865
8118
|
},
|
|
7866
8119
|
option.value
|
|
7867
8120
|
)),
|
|
7868
|
-
hiddenCount > 0 && /* @__PURE__ */
|
|
8121
|
+
hiddenCount > 0 && /* @__PURE__ */ jsxs71("span", { className: "self-center text-xs text-muted-foreground", children: [
|
|
7869
8122
|
"+",
|
|
7870
8123
|
hiddenCount,
|
|
7871
8124
|
" more"
|
|
7872
8125
|
] })
|
|
7873
8126
|
] }),
|
|
7874
|
-
/* @__PURE__ */
|
|
7875
|
-
/* @__PURE__ */
|
|
7876
|
-
/* @__PURE__ */
|
|
7877
|
-
/* @__PURE__ */
|
|
8127
|
+
/* @__PURE__ */ jsxs71(Popover, { open, onOpenChange: setOpen, children: [
|
|
8128
|
+
/* @__PURE__ */ jsxs71(PopoverTrigger, { "aria-labelledby": label ? labelId : void 0, disabled, className: "w-full justify-between", children: [
|
|
8129
|
+
/* @__PURE__ */ jsx97("span", { children: selected.length > 0 ? `${selected.length} selected` : triggerLabel }),
|
|
8130
|
+
/* @__PURE__ */ jsx97("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2304" })
|
|
7878
8131
|
] }),
|
|
7879
|
-
/* @__PURE__ */
|
|
7880
|
-
/* @__PURE__ */
|
|
8132
|
+
/* @__PURE__ */ jsxs71(PopoverContent, { className: "w-80 p-0", children: [
|
|
8133
|
+
/* @__PURE__ */ jsx97("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ jsx97(
|
|
7881
8134
|
Input,
|
|
7882
8135
|
{
|
|
7883
8136
|
type: "search",
|
|
@@ -7888,9 +8141,9 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7888
8141
|
autoFocus: true
|
|
7889
8142
|
}
|
|
7890
8143
|
) }),
|
|
7891
|
-
/* @__PURE__ */
|
|
7892
|
-
heading && /* @__PURE__ */
|
|
7893
|
-
/* @__PURE__ */
|
|
8144
|
+
/* @__PURE__ */ jsx97("div", { className: "max-h-64 overflow-y-auto p-1", children: groups.length === 0 ? /* @__PURE__ */ jsx97("p", { className: "px-3 py-3 text-sm text-muted-foreground", children: emptyText }) : groups.map(({ option, heading }) => /* @__PURE__ */ jsxs71(React95.Fragment, { children: [
|
|
8145
|
+
heading && /* @__PURE__ */ jsx97("p", { className: "px-3 pb-1 pt-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: heading }),
|
|
8146
|
+
/* @__PURE__ */ jsxs71(
|
|
7894
8147
|
"label",
|
|
7895
8148
|
{
|
|
7896
8149
|
className: cn(
|
|
@@ -7898,7 +8151,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7898
8151
|
option.disabled && "cursor-not-allowed opacity-50"
|
|
7899
8152
|
),
|
|
7900
8153
|
children: [
|
|
7901
|
-
/* @__PURE__ */
|
|
8154
|
+
/* @__PURE__ */ jsx97(
|
|
7902
8155
|
Checkbox,
|
|
7903
8156
|
{
|
|
7904
8157
|
checked: selected.includes(option.value),
|
|
@@ -7907,16 +8160,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7907
8160
|
className: "mt-0.5"
|
|
7908
8161
|
}
|
|
7909
8162
|
),
|
|
7910
|
-
/* @__PURE__ */
|
|
7911
|
-
/* @__PURE__ */
|
|
7912
|
-
option.description && /* @__PURE__ */
|
|
8163
|
+
/* @__PURE__ */ jsxs71("span", { className: "min-w-0", children: [
|
|
8164
|
+
/* @__PURE__ */ jsx97("span", { className: "block", children: option.label }),
|
|
8165
|
+
option.description && /* @__PURE__ */ jsx97("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: option.description })
|
|
7913
8166
|
] })
|
|
7914
8167
|
]
|
|
7915
8168
|
}
|
|
7916
8169
|
)
|
|
7917
8170
|
] }, option.value)) }),
|
|
7918
|
-
/* @__PURE__ */
|
|
7919
|
-
/* @__PURE__ */
|
|
8171
|
+
/* @__PURE__ */ jsxs71("div", { className: "flex items-center justify-between gap-2 border-t border-border p-2", children: [
|
|
8172
|
+
/* @__PURE__ */ jsx97(
|
|
7920
8173
|
Button,
|
|
7921
8174
|
{
|
|
7922
8175
|
type: "button",
|
|
@@ -7926,7 +8179,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7926
8179
|
children: "Select all"
|
|
7927
8180
|
}
|
|
7928
8181
|
),
|
|
7929
|
-
/* @__PURE__ */
|
|
8182
|
+
/* @__PURE__ */ jsx97(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => commit([]), children: "Clear" })
|
|
7930
8183
|
] })
|
|
7931
8184
|
] })
|
|
7932
8185
|
] })
|
|
@@ -7934,9 +8187,9 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7934
8187
|
});
|
|
7935
8188
|
|
|
7936
8189
|
// src/components/filter-panel/FilterPanel.tsx
|
|
7937
|
-
import * as
|
|
7938
|
-
import { jsx as
|
|
7939
|
-
var FilterPanel =
|
|
8190
|
+
import * as React96 from "react";
|
|
8191
|
+
import { jsx as jsx98, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
8192
|
+
var FilterPanel = React96.forwardRef(function FilterPanel2({
|
|
7940
8193
|
sections,
|
|
7941
8194
|
title = "Filters",
|
|
7942
8195
|
description,
|
|
@@ -7952,7 +8205,7 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7952
8205
|
...props
|
|
7953
8206
|
}, ref) {
|
|
7954
8207
|
const Tag = as;
|
|
7955
|
-
const [open, setOpen] =
|
|
8208
|
+
const [open, setOpen] = React96.useState(() => {
|
|
7956
8209
|
if (defaultOpen) {
|
|
7957
8210
|
return sections.flatMap((section, index) => defaultOpen.includes(section.title) ? [index] : []);
|
|
7958
8211
|
}
|
|
@@ -7965,16 +8218,16 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7965
8218
|
(current) => current.includes(index) ? current.filter((entry) => entry !== index) : [...current, index]
|
|
7966
8219
|
);
|
|
7967
8220
|
};
|
|
7968
|
-
return /* @__PURE__ */
|
|
7969
|
-
(title || description) && /* @__PURE__ */
|
|
7970
|
-
title && /* @__PURE__ */
|
|
7971
|
-
description && /* @__PURE__ */
|
|
8221
|
+
return /* @__PURE__ */ jsxs72(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
8222
|
+
(title || description) && /* @__PURE__ */ jsxs72("div", { className: "border-b border-border px-4 py-3", children: [
|
|
8223
|
+
title && /* @__PURE__ */ jsx98("h2", { className: "text-sm font-semibold", children: title }),
|
|
8224
|
+
description && /* @__PURE__ */ jsx98("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
7972
8225
|
] }),
|
|
7973
|
-
/* @__PURE__ */
|
|
8226
|
+
/* @__PURE__ */ jsx98("div", { className: "divide-y divide-border", children: sections.map((section, index) => {
|
|
7974
8227
|
const expanded = isOpen(index);
|
|
7975
8228
|
const sectionId = `filter-section-${index}`;
|
|
7976
|
-
return /* @__PURE__ */
|
|
7977
|
-
/* @__PURE__ */
|
|
8229
|
+
return /* @__PURE__ */ jsxs72("div", { className: "px-4 py-3", children: [
|
|
8230
|
+
/* @__PURE__ */ jsx98("h3", { children: /* @__PURE__ */ jsxs72(
|
|
7978
8231
|
"button",
|
|
7979
8232
|
{
|
|
7980
8233
|
type: "button",
|
|
@@ -7987,28 +8240,28 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7987
8240
|
collapsible && "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7988
8241
|
),
|
|
7989
8242
|
children: [
|
|
7990
|
-
/* @__PURE__ */
|
|
8243
|
+
/* @__PURE__ */ jsxs72("span", { children: [
|
|
7991
8244
|
section.title,
|
|
7992
|
-
section.description && /* @__PURE__ */
|
|
8245
|
+
section.description && /* @__PURE__ */ jsx98("span", { className: "mt-0.5 block text-xs font-normal text-muted-foreground", children: section.description })
|
|
7993
8246
|
] }),
|
|
7994
|
-
collapsible && /* @__PURE__ */
|
|
8247
|
+
collapsible && /* @__PURE__ */ jsx98("span", { "aria-hidden": "true", className: cn("text-muted-foreground transition-transform", expanded && "rotate-180"), children: "\u2304" })
|
|
7995
8248
|
]
|
|
7996
8249
|
}
|
|
7997
8250
|
) }),
|
|
7998
|
-
expanded && /* @__PURE__ */
|
|
8251
|
+
expanded && /* @__PURE__ */ jsx98("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
7999
8252
|
] }, index);
|
|
8000
8253
|
}) }),
|
|
8001
|
-
(onReset || onApply || actions) && /* @__PURE__ */
|
|
8254
|
+
(onReset || onApply || actions) && /* @__PURE__ */ jsxs72("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
8002
8255
|
actions,
|
|
8003
|
-
onReset && /* @__PURE__ */
|
|
8004
|
-
onApply && /* @__PURE__ */
|
|
8256
|
+
onReset && /* @__PURE__ */ jsx98(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, className: "ml-auto", children: resetLabel }),
|
|
8257
|
+
onApply && /* @__PURE__ */ jsx98(Button, { type: "button", size: "sm", onClick: onApply, children: applyLabel })
|
|
8005
8258
|
] })
|
|
8006
8259
|
] });
|
|
8007
8260
|
});
|
|
8008
8261
|
|
|
8009
8262
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
8010
|
-
import * as
|
|
8011
|
-
import { jsx as
|
|
8263
|
+
import * as React97 from "react";
|
|
8264
|
+
import { jsx as jsx99, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
8012
8265
|
var DEFAULT_PRESETS = [
|
|
8013
8266
|
{ label: "7 days", days: 7 },
|
|
8014
8267
|
{ label: "30 days", days: 30 },
|
|
@@ -8021,7 +8274,7 @@ function toIsoDate(date) {
|
|
|
8021
8274
|
const day = String(date.getDate()).padStart(2, "0");
|
|
8022
8275
|
return `${year}-${month}-${day}`;
|
|
8023
8276
|
}
|
|
8024
|
-
var DateRangePicker =
|
|
8277
|
+
var DateRangePicker = React97.forwardRef(
|
|
8025
8278
|
function DateRangePicker2({
|
|
8026
8279
|
value,
|
|
8027
8280
|
defaultValue,
|
|
@@ -8034,9 +8287,9 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8034
8287
|
className,
|
|
8035
8288
|
...props
|
|
8036
8289
|
}, ref) {
|
|
8037
|
-
const startId =
|
|
8038
|
-
const endId =
|
|
8039
|
-
const [internal, setInternal] =
|
|
8290
|
+
const startId = React97.useId();
|
|
8291
|
+
const endId = React97.useId();
|
|
8292
|
+
const [internal, setInternal] = React97.useState(defaultValue ?? {});
|
|
8040
8293
|
const current = value ?? internal;
|
|
8041
8294
|
const commit = (next) => {
|
|
8042
8295
|
if (value === void 0) setInternal(next);
|
|
@@ -8060,8 +8313,8 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8060
8313
|
}
|
|
8061
8314
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
8062
8315
|
};
|
|
8063
|
-
return /* @__PURE__ */
|
|
8064
|
-
showPresets && presets.length > 0 && /* @__PURE__ */
|
|
8316
|
+
return /* @__PURE__ */ jsxs73("div", { ref, className: cn("flex flex-col gap-3", className), ...props, children: [
|
|
8317
|
+
showPresets && presets.length > 0 && /* @__PURE__ */ jsx99("div", { className: "flex flex-wrap gap-2", children: presets.map((preset) => /* @__PURE__ */ jsx99(
|
|
8065
8318
|
Button,
|
|
8066
8319
|
{
|
|
8067
8320
|
type: "button",
|
|
@@ -8073,10 +8326,10 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8073
8326
|
},
|
|
8074
8327
|
preset.label
|
|
8075
8328
|
)) }),
|
|
8076
|
-
/* @__PURE__ */
|
|
8077
|
-
/* @__PURE__ */
|
|
8078
|
-
/* @__PURE__ */
|
|
8079
|
-
/* @__PURE__ */
|
|
8329
|
+
/* @__PURE__ */ jsxs73("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
8330
|
+
/* @__PURE__ */ jsxs73("div", { children: [
|
|
8331
|
+
/* @__PURE__ */ jsx99("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
8332
|
+
/* @__PURE__ */ jsx99(
|
|
8080
8333
|
DatePicker,
|
|
8081
8334
|
{
|
|
8082
8335
|
id: startId,
|
|
@@ -8088,9 +8341,9 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8088
8341
|
}
|
|
8089
8342
|
)
|
|
8090
8343
|
] }),
|
|
8091
|
-
/* @__PURE__ */
|
|
8092
|
-
/* @__PURE__ */
|
|
8093
|
-
/* @__PURE__ */
|
|
8344
|
+
/* @__PURE__ */ jsxs73("div", { children: [
|
|
8345
|
+
/* @__PURE__ */ jsx99("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
8346
|
+
/* @__PURE__ */ jsx99(
|
|
8094
8347
|
DatePicker,
|
|
8095
8348
|
{
|
|
8096
8349
|
id: endId,
|
|
@@ -8108,9 +8361,9 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8108
8361
|
);
|
|
8109
8362
|
|
|
8110
8363
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
8111
|
-
import * as
|
|
8112
|
-
import { jsx as
|
|
8113
|
-
var AppliedFilters =
|
|
8364
|
+
import * as React98 from "react";
|
|
8365
|
+
import { jsx as jsx100, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
8366
|
+
var AppliedFilters = React98.forwardRef(
|
|
8114
8367
|
function AppliedFilters2({
|
|
8115
8368
|
filters,
|
|
8116
8369
|
onClearAll,
|
|
@@ -8123,9 +8376,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8123
8376
|
}, ref) {
|
|
8124
8377
|
const summary = label ?? `${filters.length} active`;
|
|
8125
8378
|
if (filters.length === 0) {
|
|
8126
|
-
return emptyLabel ? /* @__PURE__ */
|
|
8379
|
+
return emptyLabel ? /* @__PURE__ */ jsx100("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
8127
8380
|
}
|
|
8128
|
-
return /* @__PURE__ */
|
|
8381
|
+
return /* @__PURE__ */ jsxs74(
|
|
8129
8382
|
"div",
|
|
8130
8383
|
{
|
|
8131
8384
|
ref,
|
|
@@ -8133,9 +8386,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8133
8386
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
8134
8387
|
...props,
|
|
8135
8388
|
children: [
|
|
8136
|
-
/* @__PURE__ */
|
|
8137
|
-
/* @__PURE__ */
|
|
8138
|
-
onEdit && /* @__PURE__ */
|
|
8389
|
+
/* @__PURE__ */ jsx100("span", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: summary }),
|
|
8390
|
+
/* @__PURE__ */ jsx100(FilterChips, { filters, onClearAll }),
|
|
8391
|
+
onEdit && /* @__PURE__ */ jsx100(Button, { type: "button", variant: "ghost", size: "sm", onClick: onEdit, children: editLabel })
|
|
8139
8392
|
]
|
|
8140
8393
|
}
|
|
8141
8394
|
);
|
|
@@ -8143,11 +8396,11 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8143
8396
|
);
|
|
8144
8397
|
|
|
8145
8398
|
// src/components/menu/Menu.tsx
|
|
8146
|
-
import * as
|
|
8399
|
+
import * as React99 from "react";
|
|
8147
8400
|
import { createPortal as createPortal8 } from "react-dom";
|
|
8148
8401
|
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
8149
|
-
import { jsx as
|
|
8150
|
-
var MenuContext =
|
|
8402
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
8403
|
+
var MenuContext = React99.createContext({
|
|
8151
8404
|
open: false,
|
|
8152
8405
|
setOpen: () => {
|
|
8153
8406
|
},
|
|
@@ -8156,13 +8409,13 @@ var MenuContext = React97.createContext({
|
|
|
8156
8409
|
},
|
|
8157
8410
|
wrapperRef: { current: null }
|
|
8158
8411
|
});
|
|
8159
|
-
var Menu =
|
|
8412
|
+
var Menu = React99.forwardRef(
|
|
8160
8413
|
({ open, onOpenChange, className, children }, ref) => {
|
|
8161
|
-
const [internalOpen, setInternalOpen] =
|
|
8162
|
-
const [activeIndex, setActiveIndex] =
|
|
8414
|
+
const [internalOpen, setInternalOpen] = React99.useState(false);
|
|
8415
|
+
const [activeIndex, setActiveIndex] = React99.useState(-1);
|
|
8163
8416
|
const current = open ?? internalOpen;
|
|
8164
|
-
const wrapperRef =
|
|
8165
|
-
const setRefs =
|
|
8417
|
+
const wrapperRef = React99.useRef(null);
|
|
8418
|
+
const setRefs = React99.useCallback(
|
|
8166
8419
|
(node) => {
|
|
8167
8420
|
wrapperRef.current = node;
|
|
8168
8421
|
if (typeof ref === "function") ref(node);
|
|
@@ -8170,7 +8423,7 @@ var Menu = React97.forwardRef(
|
|
|
8170
8423
|
},
|
|
8171
8424
|
[ref]
|
|
8172
8425
|
);
|
|
8173
|
-
const setOpen =
|
|
8426
|
+
const setOpen = React99.useCallback(
|
|
8174
8427
|
(next) => {
|
|
8175
8428
|
if (open === void 0) setInternalOpen(next);
|
|
8176
8429
|
onOpenChange?.(next);
|
|
@@ -8178,7 +8431,7 @@ var Menu = React97.forwardRef(
|
|
|
8178
8431
|
},
|
|
8179
8432
|
[open, onOpenChange]
|
|
8180
8433
|
);
|
|
8181
|
-
return /* @__PURE__ */
|
|
8434
|
+
return /* @__PURE__ */ jsx101("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx101(
|
|
8182
8435
|
MenuContext.Provider,
|
|
8183
8436
|
{
|
|
8184
8437
|
value: { open: current, setOpen, activeIndex, setActiveIndex, wrapperRef },
|
|
@@ -8188,10 +8441,10 @@ var Menu = React97.forwardRef(
|
|
|
8188
8441
|
}
|
|
8189
8442
|
);
|
|
8190
8443
|
Menu.displayName = "Menu";
|
|
8191
|
-
var MenuTrigger =
|
|
8444
|
+
var MenuTrigger = React99.forwardRef(
|
|
8192
8445
|
({ className, children, ...props }, ref) => {
|
|
8193
|
-
const { open, setOpen } =
|
|
8194
|
-
return /* @__PURE__ */
|
|
8446
|
+
const { open, setOpen } = React99.useContext(MenuContext);
|
|
8447
|
+
return /* @__PURE__ */ jsx101(
|
|
8195
8448
|
"button",
|
|
8196
8449
|
{
|
|
8197
8450
|
ref,
|
|
@@ -8211,13 +8464,13 @@ var MenuTrigger = React97.forwardRef(
|
|
|
8211
8464
|
}
|
|
8212
8465
|
);
|
|
8213
8466
|
MenuTrigger.displayName = "MenuTrigger";
|
|
8214
|
-
var MenuContent =
|
|
8467
|
+
var MenuContent = React99.forwardRef(
|
|
8215
8468
|
({ className, children, ...props }, ref) => {
|
|
8216
|
-
const { open, setOpen, activeIndex, setActiveIndex, wrapperRef } =
|
|
8217
|
-
const contentRef =
|
|
8218
|
-
const [pos, setPos] =
|
|
8219
|
-
const itemsRef =
|
|
8220
|
-
|
|
8469
|
+
const { open, setOpen, activeIndex, setActiveIndex, wrapperRef } = React99.useContext(MenuContext);
|
|
8470
|
+
const contentRef = React99.useRef(null);
|
|
8471
|
+
const [pos, setPos] = React99.useState(null);
|
|
8472
|
+
const itemsRef = React99.useRef([]);
|
|
8473
|
+
React99.useLayoutEffect(() => {
|
|
8221
8474
|
if (!open) {
|
|
8222
8475
|
setPos(null);
|
|
8223
8476
|
return;
|
|
@@ -8237,7 +8490,7 @@ var MenuContent = React97.forwardRef(
|
|
|
8237
8490
|
window.removeEventListener("resize", measure);
|
|
8238
8491
|
};
|
|
8239
8492
|
}, [open, setOpen, wrapperRef]);
|
|
8240
|
-
|
|
8493
|
+
React99.useEffect(() => {
|
|
8241
8494
|
if (!open) return;
|
|
8242
8495
|
function onPointerDown(event) {
|
|
8243
8496
|
if (!contentRef.current?.contains(event.target)) setOpen(false);
|
|
@@ -8245,7 +8498,7 @@ var MenuContent = React97.forwardRef(
|
|
|
8245
8498
|
document.addEventListener("pointerdown", onPointerDown);
|
|
8246
8499
|
return () => document.removeEventListener("pointerdown", onPointerDown);
|
|
8247
8500
|
}, [open, setOpen]);
|
|
8248
|
-
|
|
8501
|
+
React99.useEffect(() => {
|
|
8249
8502
|
if (open && pos && contentRef.current) {
|
|
8250
8503
|
itemsRef.current = Array.from(
|
|
8251
8504
|
contentRef.current.querySelectorAll('[role="menuitem"]:not([disabled])')
|
|
@@ -8293,7 +8546,7 @@ var MenuContent = React97.forwardRef(
|
|
|
8293
8546
|
};
|
|
8294
8547
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
8295
8548
|
return createPortal8(
|
|
8296
|
-
/* @__PURE__ */
|
|
8549
|
+
/* @__PURE__ */ jsx101(
|
|
8297
8550
|
"div",
|
|
8298
8551
|
{
|
|
8299
8552
|
ref: (node) => {
|
|
@@ -8317,12 +8570,12 @@ var MenuContent = React97.forwardRef(
|
|
|
8317
8570
|
}
|
|
8318
8571
|
);
|
|
8319
8572
|
MenuContent.displayName = "MenuContent";
|
|
8320
|
-
var MenuItem =
|
|
8573
|
+
var MenuItem = React99.forwardRef(
|
|
8321
8574
|
({ className, destructive, asChild = false, onClick, ...props }, ref) => {
|
|
8322
|
-
const { setOpen } =
|
|
8575
|
+
const { setOpen } = React99.useContext(MenuContext);
|
|
8323
8576
|
const Comp = asChild ? Slot5 : "button";
|
|
8324
8577
|
const typeProp = asChild ? {} : { type: "button" };
|
|
8325
|
-
return /* @__PURE__ */
|
|
8578
|
+
return /* @__PURE__ */ jsx101(
|
|
8326
8579
|
Comp,
|
|
8327
8580
|
{
|
|
8328
8581
|
ref,
|
|
@@ -8344,12 +8597,12 @@ var MenuItem = React97.forwardRef(
|
|
|
8344
8597
|
}
|
|
8345
8598
|
);
|
|
8346
8599
|
MenuItem.displayName = "MenuItem";
|
|
8347
|
-
var MenuSeparator =
|
|
8348
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8600
|
+
var MenuSeparator = React99.forwardRef(
|
|
8601
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx101("div", { ref, role: "separator", className: cn("-mx-1 my-1 h-px bg-border", className), ...props })
|
|
8349
8602
|
);
|
|
8350
8603
|
MenuSeparator.displayName = "MenuSeparator";
|
|
8351
|
-
var MenuLabel =
|
|
8352
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8604
|
+
var MenuLabel = React99.forwardRef(
|
|
8605
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx101(
|
|
8353
8606
|
"div",
|
|
8354
8607
|
{
|
|
8355
8608
|
ref,
|
|
@@ -8361,9 +8614,9 @@ var MenuLabel = React97.forwardRef(
|
|
|
8361
8614
|
MenuLabel.displayName = "MenuLabel";
|
|
8362
8615
|
|
|
8363
8616
|
// src/components/alert/Alert.tsx
|
|
8364
|
-
import * as
|
|
8617
|
+
import * as React100 from "react";
|
|
8365
8618
|
import { cva as cva8 } from "class-variance-authority";
|
|
8366
|
-
import { jsx as
|
|
8619
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
8367
8620
|
var alertVariants = cva8(
|
|
8368
8621
|
"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",
|
|
8369
8622
|
{
|
|
@@ -8383,8 +8636,8 @@ var alertVariants = cva8(
|
|
|
8383
8636
|
}
|
|
8384
8637
|
}
|
|
8385
8638
|
);
|
|
8386
|
-
var Alert =
|
|
8387
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */
|
|
8639
|
+
var Alert = React100.forwardRef(
|
|
8640
|
+
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx102(
|
|
8388
8641
|
"div",
|
|
8389
8642
|
{
|
|
8390
8643
|
ref,
|
|
@@ -8395,8 +8648,8 @@ var Alert = React98.forwardRef(
|
|
|
8395
8648
|
)
|
|
8396
8649
|
);
|
|
8397
8650
|
Alert.displayName = "Alert";
|
|
8398
|
-
var AlertTitle =
|
|
8399
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8651
|
+
var AlertTitle = React100.forwardRef(
|
|
8652
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx102(
|
|
8400
8653
|
"h5",
|
|
8401
8654
|
{
|
|
8402
8655
|
ref,
|
|
@@ -8406,8 +8659,8 @@ var AlertTitle = React98.forwardRef(
|
|
|
8406
8659
|
)
|
|
8407
8660
|
);
|
|
8408
8661
|
AlertTitle.displayName = "AlertTitle";
|
|
8409
|
-
var AlertDescription =
|
|
8410
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8662
|
+
var AlertDescription = React100.forwardRef(
|
|
8663
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx102(
|
|
8411
8664
|
"div",
|
|
8412
8665
|
{
|
|
8413
8666
|
ref,
|
|
@@ -8419,23 +8672,23 @@ var AlertDescription = React98.forwardRef(
|
|
|
8419
8672
|
AlertDescription.displayName = "AlertDescription";
|
|
8420
8673
|
|
|
8421
8674
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
8422
|
-
import * as
|
|
8423
|
-
import { jsx as
|
|
8424
|
-
var Breadcrumb =
|
|
8675
|
+
import * as React101 from "react";
|
|
8676
|
+
import { jsx as jsx103, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
8677
|
+
var Breadcrumb = React101.forwardRef(
|
|
8425
8678
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
8426
8679
|
const LinkEl = linkComponent ?? "a";
|
|
8427
|
-
return /* @__PURE__ */
|
|
8680
|
+
return /* @__PURE__ */ jsx103(
|
|
8428
8681
|
"nav",
|
|
8429
8682
|
{
|
|
8430
8683
|
ref,
|
|
8431
8684
|
"aria-label": label,
|
|
8432
8685
|
className: cn("flex items-center space-x-1.5 text-sm text-muted-foreground", className),
|
|
8433
8686
|
...props,
|
|
8434
|
-
children: /* @__PURE__ */
|
|
8687
|
+
children: /* @__PURE__ */ jsx103("ol", { className: "flex flex-wrap items-center space-x-1.5", children: items.map((item, index) => {
|
|
8435
8688
|
const isLast = index === items.length - 1;
|
|
8436
|
-
return /* @__PURE__ */
|
|
8437
|
-
index > 0 && /* @__PURE__ */
|
|
8438
|
-
item.href && !isLast ? /* @__PURE__ */
|
|
8689
|
+
return /* @__PURE__ */ jsxs75("li", { className: cn("flex items-center space-x-1.5", truncateCurrent && isLast && "min-w-0"), children: [
|
|
8690
|
+
index > 0 && /* @__PURE__ */ jsx103("span", { "aria-hidden": "true", className: "text-muted-foreground/50", children: separator }),
|
|
8691
|
+
item.href && !isLast ? /* @__PURE__ */ jsx103(
|
|
8439
8692
|
LinkEl,
|
|
8440
8693
|
{
|
|
8441
8694
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -8446,7 +8699,7 @@ var Breadcrumb = React99.forwardRef(
|
|
|
8446
8699
|
} : void 0,
|
|
8447
8700
|
children: item.label
|
|
8448
8701
|
}
|
|
8449
|
-
) : /* @__PURE__ */
|
|
8702
|
+
) : /* @__PURE__ */ jsx103(
|
|
8450
8703
|
"span",
|
|
8451
8704
|
{
|
|
8452
8705
|
"aria-current": isLast ? "page" : void 0,
|
|
@@ -8545,6 +8798,7 @@ export {
|
|
|
8545
8798
|
ListToolbar,
|
|
8546
8799
|
LoadMore,
|
|
8547
8800
|
LogoCloud,
|
|
8801
|
+
MediaCard,
|
|
8548
8802
|
Menu,
|
|
8549
8803
|
MenuContent,
|
|
8550
8804
|
MenuItem,
|
|
@@ -8552,6 +8806,7 @@ export {
|
|
|
8552
8806
|
MenuSeparator,
|
|
8553
8807
|
MenuTrigger,
|
|
8554
8808
|
MetricCard,
|
|
8809
|
+
MonthSchedule,
|
|
8555
8810
|
MultiSelect,
|
|
8556
8811
|
Newsletter,
|
|
8557
8812
|
PageHeader,
|