@slipstream-ui/core 0.11.7 → 0.11.9
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 +68 -10
- package/dist/index.d.ts +68 -10
- package/dist/index.js +609 -472
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +608 -472
- 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 +4 -2
- 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 +22 -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 +120 -0
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +13 -2
- 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 +4 -4
- 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 +7 -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/button/Button.d.ts +2 -2
- package/dist/src/components/button/Button.js +1 -0
- package/dist/src/components/button/Button.js.map +1 -1
- package/dist/src/components/button/Button.mjs +1 -0
- package/dist/src/components/button/Button.mjs.map +1 -1
- package/dist/src/components/data-table/DataTable.d.ts +12 -1
- package/dist/src/components/data-table/DataTable.js +189 -112
- package/dist/src/components/data-table/DataTable.js.map +1 -1
- package/dist/src/components/data-table/DataTable.mjs +189 -112
- package/dist/src/components/data-table/DataTable.mjs.map +1 -1
- package/dist/src/components/list-toolbar/ListToolbar.d.ts +25 -0
- package/dist/src/components/list-toolbar/ListToolbar.js +68 -0
- package/dist/src/components/list-toolbar/ListToolbar.js.map +1 -0
- package/dist/src/components/list-toolbar/ListToolbar.mjs +44 -0
- package/dist/src/components/list-toolbar/ListToolbar.mjs.map +1 -0
- package/dist/src/components/list-toolbar/index.d.ts +1 -0
- package/dist/src/components/list-toolbar/index.js +23 -0
- package/dist/src/components/list-toolbar/index.js.map +1 -0
- package/dist/src/components/list-toolbar/index.mjs +2 -0
- package/dist/src/components/list-toolbar/index.mjs.map +1 -0
- package/dist/src/components/page-header/PageHeader.d.ts +4 -0
- package/dist/src/components/page-header/PageHeader.js +2 -2
- package/dist/src/components/page-header/PageHeader.js.map +1 -1
- package/dist/src/components/page-header/PageHeader.mjs +2 -2
- package/dist/src/components/page-header/PageHeader.mjs.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.d.ts +20 -4
- package/dist/src/components/segmented-control/SegmentedControl.js +17 -3
- package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.mjs +17 -3
- package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
- package/dist/src/components/site-footer/SiteFooter.d.ts +3 -1
- package/dist/src/components/site-footer/SiteFooter.js +3 -1
- package/dist/src/components/site-footer/SiteFooter.js.map +1 -1
- package/dist/src/components/site-footer/SiteFooter.mjs +3 -1
- package/dist/src/components/site-footer/SiteFooter.mjs.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/button/Button.ssr.test.tsx +1 -1
- package/src/components/button/Button.test.tsx +6 -0
- package/src/components/button/Button.tsx +1 -0
- package/src/components/data-table/DataTable.test.tsx +99 -0
- package/src/components/data-table/DataTable.tsx +115 -1
- package/src/components/list-toolbar/ListToolbar.test.tsx +50 -0
- package/src/components/list-toolbar/ListToolbar.tsx +64 -0
- package/src/components/list-toolbar/index.ts +1 -0
- package/src/components/page-header/PageHeader.test.tsx +13 -0
- package/src/components/page-header/PageHeader.tsx +4 -2
- package/src/components/segmented-control/SegmentedControl.test.tsx +51 -0
- package/src/components/segmented-control/SegmentedControl.tsx +36 -4
- package/src/components/site-footer/SiteFooter.test.tsx +12 -0
- package/src/components/site-footer/SiteFooter.tsx +4 -0
- package/src/index.ts +1 -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 +4 -2
- 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 +22 -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 +120 -0
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +13 -2
- 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 +4 -4
- 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 +7 -1
- package/src/manifests/site-header.manifest.json +1 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +1 -1
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +1 -1
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +1 -1
- package/src/manifests/tooltip.manifest.json +1 -1
package/dist/index.js
CHANGED
|
@@ -109,6 +109,7 @@ __export(index_exports, {
|
|
|
109
109
|
LinkTabs: () => LinkTabs,
|
|
110
110
|
List: () => List,
|
|
111
111
|
ListItem: () => ListItem,
|
|
112
|
+
ListToolbar: () => ListToolbar,
|
|
112
113
|
LoadMore: () => LoadMore,
|
|
113
114
|
LogoCloud: () => LogoCloud,
|
|
114
115
|
Menu: () => Menu,
|
|
@@ -745,6 +746,7 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
|
745
746
|
size: {
|
|
746
747
|
default: "h-10 px-4 py-2",
|
|
747
748
|
sm: "h-9 rounded-md px-3",
|
|
749
|
+
xs: "h-8 rounded-md px-2.5 text-xs",
|
|
748
750
|
lg: "h-11 rounded-md px-8",
|
|
749
751
|
icon: "h-10 w-10"
|
|
750
752
|
}
|
|
@@ -3857,6 +3859,7 @@ function isActive2(itemHref, activeHref, match) {
|
|
|
3857
3859
|
function SiteFooter({
|
|
3858
3860
|
brand,
|
|
3859
3861
|
tagline,
|
|
3862
|
+
contact,
|
|
3860
3863
|
columns,
|
|
3861
3864
|
legal,
|
|
3862
3865
|
linkComponent,
|
|
@@ -3872,7 +3875,8 @@ function SiteFooter({
|
|
|
3872
3875
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "mx-auto grid w-full max-w-7xl gap-8 px-4 py-12 sm:grid-cols-2 sm:px-6 lg:grid-cols-4", children: [
|
|
3873
3876
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "min-w-0", children: [
|
|
3874
3877
|
brand,
|
|
3875
|
-
tagline && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "mt-3 max-w-56 text-sm text-muted-foreground", children: tagline })
|
|
3878
|
+
tagline && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "mt-3 max-w-56 text-sm text-muted-foreground", children: tagline }),
|
|
3879
|
+
contact && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "mt-3 max-w-56 text-sm text-muted-foreground", children: contact })
|
|
3876
3880
|
] }),
|
|
3877
3881
|
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { children: [
|
|
3878
3882
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("h2", { className: "mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: column.title }),
|
|
@@ -4541,6 +4545,13 @@ Pagination.displayName = "Pagination";
|
|
|
4541
4545
|
|
|
4542
4546
|
// src/components/data-table/DataTable.tsx
|
|
4543
4547
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4548
|
+
var cardBreakpointClasses = {
|
|
4549
|
+
sm: { table: "max-sm:hidden", cards: "sm:hidden" },
|
|
4550
|
+
md: { table: "max-md:hidden", cards: "md:hidden" },
|
|
4551
|
+
lg: { table: "max-lg:hidden", cards: "lg:hidden" },
|
|
4552
|
+
xl: { table: "max-xl:hidden", cards: "xl:hidden" },
|
|
4553
|
+
"2xl": { table: "max-2xl:hidden", cards: "2xl:hidden" }
|
|
4554
|
+
};
|
|
4544
4555
|
function compareValues(a, b) {
|
|
4545
4556
|
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
4546
4557
|
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
@@ -4575,6 +4586,7 @@ function DataTable({
|
|
|
4575
4586
|
stickyHeader,
|
|
4576
4587
|
density = "default",
|
|
4577
4588
|
zebra,
|
|
4589
|
+
cardLayout,
|
|
4578
4590
|
loading,
|
|
4579
4591
|
loadingRows,
|
|
4580
4592
|
className
|
|
@@ -4648,134 +4660,203 @@ function DataTable({
|
|
|
4648
4660
|
if (typeof raw === "string" || typeof raw === "number") return raw;
|
|
4649
4661
|
return String(raw);
|
|
4650
4662
|
};
|
|
4663
|
+
const cardBreakpoint = typeof cardLayout === "string" ? cardLayout : cardLayout ? "md" : null;
|
|
4664
|
+
const cardClasses = cardBreakpoint ? cardBreakpointClasses[cardBreakpoint] : null;
|
|
4651
4665
|
const alignClass = (align) => align === "right" ? "text-right" : align === "center" ? "text-center" : "text-left";
|
|
4666
|
+
const cardCell = (row, column, index) => {
|
|
4667
|
+
const value = cellValue(row, column, index);
|
|
4668
|
+
if (column.onClick) {
|
|
4669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4670
|
+
"button",
|
|
4671
|
+
{
|
|
4672
|
+
type: "button",
|
|
4673
|
+
onClick: () => column.onClick(row),
|
|
4674
|
+
className: "block w-full rounded px-1.5 py-0.5 text-left transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4675
|
+
children: value
|
|
4676
|
+
}
|
|
4677
|
+
);
|
|
4678
|
+
}
|
|
4679
|
+
return value;
|
|
4680
|
+
};
|
|
4652
4681
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: cn("w-full space-y-3", className), children: [
|
|
4653
4682
|
selectionEnabled && selectedIds.length > 0 && bulkActions && /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-2 rounded-lg border border-border bg-muted/40 px-3 py-2 text-sm", children: [
|
|
4654
4683
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "font-medium", children: selectedLabel.replace("{count}", String(selectedIds.length)) }),
|
|
4655
4684
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-wrap items-center gap-2", children: bulkActions })
|
|
4656
4685
|
] }),
|
|
4657
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4658
|
-
"
|
|
4686
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4687
|
+
"div",
|
|
4659
4688
|
{
|
|
4660
|
-
className: cn("w-full
|
|
4661
|
-
children:
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
{
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4689
|
+
className: cn("w-full overflow-x-auto rounded-lg border border-border", cardClasses?.table),
|
|
4690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
4691
|
+
"table",
|
|
4692
|
+
{
|
|
4693
|
+
className: cn("w-full caption-bottom", density === "compact" ? "text-xs" : "text-sm"),
|
|
4694
|
+
children: [
|
|
4695
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("caption", { className: "px-3 py-2 text-left text-xs text-muted-foreground", children: caption }),
|
|
4696
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("thead", { className: cn("bg-muted/50", stickyHeader && "sticky top-0 z-10 bg-background"), children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("tr", { children: [
|
|
4697
|
+
selectionEnabled && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("th", { scope: "col", className: "w-10 border-b border-border px-3 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4698
|
+
Checkbox,
|
|
4699
|
+
{
|
|
4700
|
+
"aria-label": selectAllLabel,
|
|
4701
|
+
checked: allSelected,
|
|
4702
|
+
ref: (node) => {
|
|
4703
|
+
if (node) node.indeterminate = someSelected && !allSelected;
|
|
4704
|
+
},
|
|
4705
|
+
onCheckedChange: toggleAll
|
|
4706
|
+
}
|
|
4707
|
+
) }),
|
|
4708
|
+
columns.map((column) => {
|
|
4709
|
+
const isSorted = sort?.key === column.key;
|
|
4710
|
+
const ariaSort = !column.sortable ? void 0 : isSorted ? sort.dir === "asc" ? "ascending" : "descending" : "none";
|
|
4711
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4712
|
+
"th",
|
|
4713
|
+
{
|
|
4714
|
+
scope: "col",
|
|
4715
|
+
"aria-sort": ariaSort,
|
|
4716
|
+
className: cn(
|
|
4717
|
+
"border-b border-border px-3 py-2 font-medium",
|
|
4718
|
+
alignClass(column.align),
|
|
4719
|
+
column.className
|
|
4720
|
+
),
|
|
4721
|
+
children: column.sortable ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
4722
|
+
"button",
|
|
4723
|
+
{
|
|
4724
|
+
type: "button",
|
|
4725
|
+
onClick: () => applySort(column.key),
|
|
4726
|
+
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",
|
|
4727
|
+
children: [
|
|
4728
|
+
column.header,
|
|
4729
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { "aria-hidden": "true", className: "text-[10px] text-muted-foreground", children: renderSortIcon ? renderSortIcon(isSorted ? sort.dir === "asc" ? "asc" : "desc" : "none") : isSorted ? sort.dir === "asc" ? "\u25B2" : "\u25BC" : "\u2195" })
|
|
4730
|
+
]
|
|
4731
|
+
}
|
|
4732
|
+
) : column.header
|
|
4733
|
+
},
|
|
4734
|
+
column.key
|
|
4735
|
+
);
|
|
4736
|
+
})
|
|
4737
|
+
] }) }),
|
|
4738
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("tbody", { "aria-busy": loading || void 0, children: loading ? Array.from(
|
|
4739
|
+
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
4740
|
+
(_, skeletonRow) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("tr", { children: [
|
|
4741
|
+
selectionEnabled && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Skeleton, { className: "h-4 w-4" }) }),
|
|
4742
|
+
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Skeleton, { className: density === "compact" ? "h-3 w-full" : "h-4 w-full" }) }, column.key))
|
|
4743
|
+
] }, `skeleton-${skeletonRow}`)
|
|
4744
|
+
) : visible.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4745
|
+
"td",
|
|
4746
|
+
{
|
|
4747
|
+
colSpan: columns.length + (selectionEnabled ? 1 : 0),
|
|
4748
|
+
className: "px-3 py-8 text-center text-sm text-muted-foreground",
|
|
4749
|
+
children: emptyMessage
|
|
4750
|
+
}
|
|
4751
|
+
) }) : visible.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
4752
|
+
"tr",
|
|
4680
4753
|
{
|
|
4681
|
-
|
|
4682
|
-
|
|
4754
|
+
tabIndex: onRowClick ? 0 : void 0,
|
|
4755
|
+
onClick: onRowClick ? () => onRowClick(row) : void 0,
|
|
4756
|
+
onKeyDown: onRowClick ? (event) => {
|
|
4757
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
4758
|
+
event.preventDefault();
|
|
4759
|
+
onRowClick(row);
|
|
4760
|
+
}
|
|
4761
|
+
} : void 0,
|
|
4683
4762
|
className: cn(
|
|
4684
|
-
"border-b border-border
|
|
4685
|
-
|
|
4686
|
-
|
|
4763
|
+
"border-b border-border last:border-0",
|
|
4764
|
+
zebra && "[&:nth-child(odd)]:bg-muted/30",
|
|
4765
|
+
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"
|
|
4687
4766
|
),
|
|
4688
|
-
children:
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
type: "button",
|
|
4692
|
-
onClick: () => applySort(column.key),
|
|
4693
|
-
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",
|
|
4694
|
-
children: [
|
|
4695
|
-
column.header,
|
|
4696
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { "aria-hidden": "true", className: "text-[10px] text-muted-foreground", children: renderSortIcon ? renderSortIcon(isSorted ? sort.dir === "asc" ? "asc" : "desc" : "none") : isSorted ? sort.dir === "asc" ? "\u25B2" : "\u25BC" : "\u2195" })
|
|
4697
|
-
]
|
|
4698
|
-
}
|
|
4699
|
-
) : column.header
|
|
4700
|
-
},
|
|
4701
|
-
column.key
|
|
4702
|
-
);
|
|
4703
|
-
})
|
|
4704
|
-
] }) }),
|
|
4705
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("tbody", { "aria-busy": loading || void 0, children: loading ? Array.from(
|
|
4706
|
-
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
4707
|
-
(_, skeletonRow) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("tr", { children: [
|
|
4708
|
-
selectionEnabled && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Skeleton, { className: "h-4 w-4" }) }),
|
|
4709
|
-
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Skeleton, { className: density === "compact" ? "h-3 w-full" : "h-4 w-full" }) }, column.key))
|
|
4710
|
-
] }, `skeleton-${skeletonRow}`)
|
|
4711
|
-
) : visible.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4712
|
-
"td",
|
|
4713
|
-
{
|
|
4714
|
-
colSpan: columns.length + (selectionEnabled ? 1 : 0),
|
|
4715
|
-
className: "px-3 py-8 text-center text-sm text-muted-foreground",
|
|
4716
|
-
children: emptyMessage
|
|
4717
|
-
}
|
|
4718
|
-
) }) : visible.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
4719
|
-
"tr",
|
|
4720
|
-
{
|
|
4721
|
-
tabIndex: onRowClick ? 0 : void 0,
|
|
4722
|
-
onClick: onRowClick ? () => onRowClick(row) : void 0,
|
|
4723
|
-
onKeyDown: onRowClick ? (event) => {
|
|
4724
|
-
if (event.key === "Enter" || event.key === " ") {
|
|
4725
|
-
event.preventDefault();
|
|
4726
|
-
onRowClick(row);
|
|
4727
|
-
}
|
|
4728
|
-
} : void 0,
|
|
4729
|
-
className: cn(
|
|
4730
|
-
"border-b border-border last:border-0",
|
|
4731
|
-
zebra && "[&:nth-child(odd)]:bg-muted/30",
|
|
4732
|
-
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"
|
|
4733
|
-
),
|
|
4734
|
-
children: [
|
|
4735
|
-
selectionEnabled && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4736
|
-
"td",
|
|
4737
|
-
{
|
|
4738
|
-
className: cn("align-middle", density === "compact" ? "px-2 py-1" : "px-3 py-2"),
|
|
4739
|
-
onClick: (event) => event.stopPropagation(),
|
|
4740
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4741
|
-
Checkbox,
|
|
4767
|
+
children: [
|
|
4768
|
+
selectionEnabled && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4769
|
+
"td",
|
|
4742
4770
|
{
|
|
4743
|
-
"
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4771
|
+
className: cn("align-middle", density === "compact" ? "px-2 py-1" : "px-3 py-2"),
|
|
4772
|
+
onClick: (event) => event.stopPropagation(),
|
|
4773
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4774
|
+
Checkbox,
|
|
4775
|
+
{
|
|
4776
|
+
"aria-label": `Select row ${rowId(row)}`,
|
|
4777
|
+
checked: selectedSet.has(rowId(row)),
|
|
4778
|
+
disabled: isRowSelectable ? !isRowSelectable(row) : void 0,
|
|
4779
|
+
onCheckedChange: () => toggleRow(rowId(row))
|
|
4780
|
+
}
|
|
4781
|
+
)
|
|
4747
4782
|
}
|
|
4748
|
-
)
|
|
4749
|
-
}
|
|
4750
|
-
),
|
|
4751
|
-
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4752
|
-
"td",
|
|
4753
|
-
{
|
|
4754
|
-
className: cn(
|
|
4755
|
-
"align-middle",
|
|
4756
|
-
density === "compact" ? "px-2 py-1" : "px-3 py-2",
|
|
4757
|
-
alignClass(column.align),
|
|
4758
|
-
column.className
|
|
4759
4783
|
),
|
|
4760
|
-
|
|
4761
|
-
"
|
|
4784
|
+
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4785
|
+
"td",
|
|
4762
4786
|
{
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4787
|
+
className: cn(
|
|
4788
|
+
"align-middle",
|
|
4789
|
+
density === "compact" ? "px-2 py-1" : "px-3 py-2",
|
|
4790
|
+
alignClass(column.align),
|
|
4791
|
+
column.className
|
|
4792
|
+
),
|
|
4793
|
+
children: column.onClick ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4794
|
+
"button",
|
|
4795
|
+
{
|
|
4796
|
+
type: "button",
|
|
4797
|
+
onClick: () => column.onClick(row),
|
|
4798
|
+
className: "block w-full rounded px-1.5 py-0.5 text-left transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4799
|
+
children: cellValue(row, column, index)
|
|
4800
|
+
}
|
|
4801
|
+
) : cellValue(row, column, index)
|
|
4802
|
+
},
|
|
4803
|
+
column.key
|
|
4804
|
+
))
|
|
4805
|
+
]
|
|
4806
|
+
},
|
|
4807
|
+
rowId(row)
|
|
4808
|
+
)) })
|
|
4809
|
+
]
|
|
4810
|
+
}
|
|
4811
|
+
)
|
|
4812
|
+
}
|
|
4813
|
+
),
|
|
4814
|
+
cardClasses && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("ul", { "aria-label": caption, "aria-busy": loading || void 0, className: cn("space-y-3", cardClasses.cards), children: loading ? Array.from(
|
|
4815
|
+
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
4816
|
+
(_, skeletonRow) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("li", { className: "rounded-lg border border-border p-3", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "space-y-2", children: [
|
|
4817
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Skeleton, { className: "h-4 w-1/3" }),
|
|
4818
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Skeleton, { className: "h-4 w-full" }),
|
|
4819
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Skeleton, { className: "h-4 w-2/3" })
|
|
4820
|
+
] }) }, `skeleton-${skeletonRow}`)
|
|
4821
|
+
) : visible.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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__ */ (0, import_jsx_runtime47.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
4822
|
+
"div",
|
|
4823
|
+
{
|
|
4824
|
+
tabIndex: onRowClick ? 0 : void 0,
|
|
4825
|
+
onClick: onRowClick ? () => onRowClick(row) : void 0,
|
|
4826
|
+
onKeyDown: onRowClick ? (event) => {
|
|
4827
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
4828
|
+
event.preventDefault();
|
|
4829
|
+
onRowClick(row);
|
|
4830
|
+
}
|
|
4831
|
+
} : void 0,
|
|
4832
|
+
className: cn(
|
|
4833
|
+
"rounded-lg border border-border",
|
|
4834
|
+
onRowClick && "cursor-pointer transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
4835
|
+
),
|
|
4836
|
+
children: [
|
|
4837
|
+
selectionEnabled && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4838
|
+
"div",
|
|
4839
|
+
{
|
|
4840
|
+
className: "flex items-center justify-end px-3 pt-2",
|
|
4841
|
+
onClick: (event) => event.stopPropagation(),
|
|
4842
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4843
|
+
Checkbox,
|
|
4844
|
+
{
|
|
4845
|
+
"aria-label": `Select row ${rowId(row)}`,
|
|
4846
|
+
checked: selectedSet.has(rowId(row)),
|
|
4847
|
+
disabled: isRowSelectable ? !isRowSelectable(row) : void 0,
|
|
4848
|
+
onCheckedChange: () => toggleRow(rowId(row))
|
|
4849
|
+
}
|
|
4850
|
+
)
|
|
4851
|
+
}
|
|
4852
|
+
),
|
|
4853
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("dl", { className: "divide-y divide-border", children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "px-3 py-2", children: [
|
|
4854
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("dt", { className: "text-xs font-medium text-muted-foreground", children: column.header }),
|
|
4855
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("dd", { className: cn("mt-0.5 text-sm", alignClass(column.align)), children: cardCell(row, column, index) })
|
|
4856
|
+
] }, column.key)) })
|
|
4776
4857
|
]
|
|
4777
4858
|
}
|
|
4778
|
-
) }),
|
|
4859
|
+
) }, rowId(row))) }),
|
|
4779
4860
|
pageSize && pageCount > 1 && /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-x-4 gap-y-2", children: [
|
|
4780
4861
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
4781
4862
|
"p",
|
|
@@ -5152,14 +5233,14 @@ var sizeClasses6 = {
|
|
|
5152
5233
|
lg: "text-3xl",
|
|
5153
5234
|
hero: "text-4xl sm:text-5xl lg:text-[3.4rem] lg:leading-[1.1]"
|
|
5154
5235
|
};
|
|
5155
|
-
var PageHeader = React54.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
5236
|
+
var PageHeader = React54.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", as: Heading2 = "h1", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
5156
5237
|
const supporting = description ?? subtitle;
|
|
5157
5238
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { ref, className: cn("flex flex-col gap-2", align === "center" && "items-center text-center", className), ...props, children: [
|
|
5158
5239
|
breadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "text-sm text-muted-foreground", children: breadcrumbs }),
|
|
5159
5240
|
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: cn("text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
5160
5241
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: cn("flex w-full flex-wrap items-start justify-between gap-3", align === "center" && "justify-center"), children: [
|
|
5161
5242
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
5162
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5243
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Heading2, { className: cn("font-semibold tracking-tight", sizeClasses6[size], titleClassName), children: title }),
|
|
5163
5244
|
supporting && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: cn("mt-2 max-w-2xl text-base text-muted-foreground", descriptionClassName), children: supporting })
|
|
5164
5245
|
] }),
|
|
5165
5246
|
actions && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
@@ -5436,9 +5517,50 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5436
5517
|
);
|
|
5437
5518
|
});
|
|
5438
5519
|
|
|
5520
|
+
// src/components/list-toolbar/ListToolbar.tsx
|
|
5521
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5522
|
+
var alignClasses = {
|
|
5523
|
+
between: "justify-between",
|
|
5524
|
+
start: "justify-start",
|
|
5525
|
+
center: "justify-center",
|
|
5526
|
+
end: "justify-end"
|
|
5527
|
+
};
|
|
5528
|
+
function ListToolbar({
|
|
5529
|
+
count,
|
|
5530
|
+
countLabel = "results",
|
|
5531
|
+
position,
|
|
5532
|
+
note,
|
|
5533
|
+
align = "between",
|
|
5534
|
+
className,
|
|
5535
|
+
children,
|
|
5536
|
+
...props
|
|
5537
|
+
}) {
|
|
5538
|
+
const hasSummary = count !== void 0 || position !== void 0 || note !== void 0;
|
|
5539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
5540
|
+
"div",
|
|
5541
|
+
{
|
|
5542
|
+
className: cn("flex flex-wrap items-center gap-x-4 gap-y-2 text-sm", alignClasses[align], className),
|
|
5543
|
+
...props,
|
|
5544
|
+
children: [
|
|
5545
|
+
hasSummary && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("p", { className: "flex flex-wrap items-baseline gap-x-2 text-muted-foreground", "aria-live": "polite", children: [
|
|
5546
|
+
count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { className: "font-medium text-foreground", children: [
|
|
5547
|
+
count,
|
|
5548
|
+
" ",
|
|
5549
|
+
countLabel
|
|
5550
|
+
] }),
|
|
5551
|
+
position && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { children: position }),
|
|
5552
|
+
note && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-xs", children: note })
|
|
5553
|
+
] }),
|
|
5554
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex flex-wrap items-center gap-2", children })
|
|
5555
|
+
]
|
|
5556
|
+
}
|
|
5557
|
+
);
|
|
5558
|
+
}
|
|
5559
|
+
ListToolbar.displayName = "ListToolbar";
|
|
5560
|
+
|
|
5439
5561
|
// src/components/date-picker/DatePicker.tsx
|
|
5440
5562
|
var React60 = __toESM(require("react"));
|
|
5441
|
-
var
|
|
5563
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5442
5564
|
var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
5443
5565
|
const [internal, setInternal] = React60.useState(defaultValue ?? "");
|
|
5444
5566
|
const current = value ?? internal;
|
|
@@ -5446,8 +5568,8 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5446
5568
|
if (value === void 0) setInternal(next);
|
|
5447
5569
|
onValueChange?.(next);
|
|
5448
5570
|
};
|
|
5449
|
-
return /* @__PURE__ */ (0,
|
|
5450
|
-
/* @__PURE__ */ (0,
|
|
5571
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: cn("relative flex items-center", className), children: [
|
|
5572
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5451
5573
|
Input,
|
|
5452
5574
|
{
|
|
5453
5575
|
ref,
|
|
@@ -5461,7 +5583,7 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5461
5583
|
...props
|
|
5462
5584
|
}
|
|
5463
5585
|
),
|
|
5464
|
-
clearable && current && /* @__PURE__ */ (0,
|
|
5586
|
+
clearable && current && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5465
5587
|
"button",
|
|
5466
5588
|
{
|
|
5467
5589
|
type: "button",
|
|
@@ -5547,7 +5669,7 @@ function computePosition({
|
|
|
5547
5669
|
}
|
|
5548
5670
|
|
|
5549
5671
|
// src/components/popover/Popover.tsx
|
|
5550
|
-
var
|
|
5672
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5551
5673
|
var PopoverContext = React61.createContext({
|
|
5552
5674
|
open: false,
|
|
5553
5675
|
setOpen: () => {
|
|
@@ -5582,7 +5704,7 @@ var Popover = React61.forwardRef(
|
|
|
5582
5704
|
},
|
|
5583
5705
|
[open, onOpenChange]
|
|
5584
5706
|
);
|
|
5585
|
-
return /* @__PURE__ */ (0,
|
|
5707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5586
5708
|
PopoverContext.Provider,
|
|
5587
5709
|
{
|
|
5588
5710
|
value: { open: current, setOpen, triggerId, contentId, wrapperRef, anchorRef, triggerRef },
|
|
@@ -5603,7 +5725,7 @@ var PopoverTrigger = React61.forwardRef(
|
|
|
5603
5725
|
},
|
|
5604
5726
|
[ref, triggerRef]
|
|
5605
5727
|
);
|
|
5606
|
-
return /* @__PURE__ */ (0,
|
|
5728
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5607
5729
|
"button",
|
|
5608
5730
|
{
|
|
5609
5731
|
ref: setRefs,
|
|
@@ -5639,7 +5761,7 @@ var PopoverAnchor = React61.forwardRef(
|
|
|
5639
5761
|
},
|
|
5640
5762
|
[anchorRef, ref]
|
|
5641
5763
|
);
|
|
5642
|
-
return /* @__PURE__ */ (0,
|
|
5764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { ref: setRefs, className: cn("inline-block", className), ...props, children });
|
|
5643
5765
|
}
|
|
5644
5766
|
);
|
|
5645
5767
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
@@ -5739,7 +5861,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5739
5861
|
}, [open, pos]);
|
|
5740
5862
|
if (!open || typeof document === "undefined") return null;
|
|
5741
5863
|
return (0, import_react_dom7.createPortal)(
|
|
5742
|
-
/* @__PURE__ */ (0,
|
|
5864
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5743
5865
|
"div",
|
|
5744
5866
|
{
|
|
5745
5867
|
ref: (node) => {
|
|
@@ -5784,7 +5906,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5784
5906
|
PopoverContent.displayName = "PopoverContent";
|
|
5785
5907
|
|
|
5786
5908
|
// src/components/date-picker-popover/DatePickerPopover.tsx
|
|
5787
|
-
var
|
|
5909
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5788
5910
|
var DatePickerPopover = React62.forwardRef(
|
|
5789
5911
|
({
|
|
5790
5912
|
value,
|
|
@@ -5817,9 +5939,9 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5817
5939
|
[ref]
|
|
5818
5940
|
);
|
|
5819
5941
|
const label = value ? formatDateLabel(value, locale) : placeholder;
|
|
5820
|
-
return /* @__PURE__ */ (0,
|
|
5821
|
-
/* @__PURE__ */ (0,
|
|
5822
|
-
/* @__PURE__ */ (0,
|
|
5942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
|
|
5943
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
5944
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
5823
5945
|
PopoverTrigger,
|
|
5824
5946
|
{
|
|
5825
5947
|
ref: setTriggerRef,
|
|
@@ -5837,7 +5959,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5837
5959
|
children: label
|
|
5838
5960
|
}
|
|
5839
5961
|
),
|
|
5840
|
-
/* @__PURE__ */ (0,
|
|
5962
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(PopoverContent, { side, align, matchTriggerWidth: true, className: "w-auto p-3", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
5841
5963
|
Calendar,
|
|
5842
5964
|
{
|
|
5843
5965
|
value,
|
|
@@ -5855,7 +5977,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5855
5977
|
}
|
|
5856
5978
|
) })
|
|
5857
5979
|
] }),
|
|
5858
|
-
name ? /* @__PURE__ */ (0,
|
|
5980
|
+
name ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("input", { type: "hidden", name, value: value ?? "", required }) : null
|
|
5859
5981
|
] });
|
|
5860
5982
|
}
|
|
5861
5983
|
);
|
|
@@ -5863,7 +5985,7 @@ DatePickerPopover.displayName = "DatePickerPopover";
|
|
|
5863
5985
|
|
|
5864
5986
|
// src/components/time-picker/TimePicker.tsx
|
|
5865
5987
|
var React63 = __toESM(require("react"));
|
|
5866
|
-
var
|
|
5988
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5867
5989
|
var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
5868
5990
|
const [internal, setInternal] = React63.useState(defaultValue ?? "");
|
|
5869
5991
|
const current = value ?? internal;
|
|
@@ -5871,8 +5993,8 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5871
5993
|
if (value === void 0) setInternal(next);
|
|
5872
5994
|
onValueChange?.(next);
|
|
5873
5995
|
};
|
|
5874
|
-
return /* @__PURE__ */ (0,
|
|
5875
|
-
/* @__PURE__ */ (0,
|
|
5996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: cn("relative flex items-center", className), children: [
|
|
5997
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5876
5998
|
Input,
|
|
5877
5999
|
{
|
|
5878
6000
|
ref,
|
|
@@ -5886,7 +6008,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5886
6008
|
...props
|
|
5887
6009
|
}
|
|
5888
6010
|
),
|
|
5889
|
-
clearable && current && /* @__PURE__ */ (0,
|
|
6011
|
+
clearable && current && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5890
6012
|
"button",
|
|
5891
6013
|
{
|
|
5892
6014
|
type: "button",
|
|
@@ -5901,7 +6023,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5901
6023
|
|
|
5902
6024
|
// src/components/stepper/Stepper.tsx
|
|
5903
6025
|
var React64 = __toESM(require("react"));
|
|
5904
|
-
var
|
|
6026
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5905
6027
|
var Stepper = React64.forwardRef(function Stepper2({
|
|
5906
6028
|
steps,
|
|
5907
6029
|
current,
|
|
@@ -5925,7 +6047,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5925
6047
|
const verticalTitlePad = size === "sm" ? "pt-0.5" : "pt-1";
|
|
5926
6048
|
const connectorTop = variant === "dots" ? size === "sm" ? "mt-1" : "mt-[5px]" : size === "sm" ? "mt-3" : "mt-3.5";
|
|
5927
6049
|
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";
|
|
5928
|
-
return /* @__PURE__ */ (0,
|
|
6050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5929
6051
|
"ol",
|
|
5930
6052
|
{
|
|
5931
6053
|
ref,
|
|
@@ -5939,7 +6061,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5939
6061
|
const isLast = index === steps.length - 1;
|
|
5940
6062
|
const titleCentered = alignTitles === "center" && !step.description;
|
|
5941
6063
|
const below = !vertical && labelPlacement === "below";
|
|
5942
|
-
const marker = /* @__PURE__ */ (0,
|
|
6064
|
+
const marker = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5943
6065
|
"span",
|
|
5944
6066
|
{
|
|
5945
6067
|
"aria-hidden": "true",
|
|
@@ -5961,8 +6083,8 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5961
6083
|
children: variant === "numbered" ? state === "complete" ? "\u2713" : index + 1 : null
|
|
5962
6084
|
}
|
|
5963
6085
|
);
|
|
5964
|
-
const label = /* @__PURE__ */ (0,
|
|
5965
|
-
/* @__PURE__ */ (0,
|
|
6086
|
+
const label = /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { className: "min-w-0", children: [
|
|
6087
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5966
6088
|
"span",
|
|
5967
6089
|
{
|
|
5968
6090
|
className: cn(
|
|
@@ -5974,7 +6096,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5974
6096
|
children: step.label
|
|
5975
6097
|
}
|
|
5976
6098
|
),
|
|
5977
|
-
step.description && /* @__PURE__ */ (0,
|
|
6099
|
+
step.description && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5978
6100
|
"span",
|
|
5979
6101
|
{
|
|
5980
6102
|
className: cn(
|
|
@@ -5985,9 +6107,9 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5985
6107
|
children: step.description
|
|
5986
6108
|
}
|
|
5987
6109
|
),
|
|
5988
|
-
/* @__PURE__ */ (0,
|
|
6110
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "sr-only", children: state === "complete" ? labels?.completed ?? " (completed)" : state === "current" ? labels?.current ?? " (current step)" : labels?.upcoming ?? " (upcoming)" })
|
|
5989
6111
|
] });
|
|
5990
|
-
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ (0,
|
|
6112
|
+
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5991
6113
|
"button",
|
|
5992
6114
|
{
|
|
5993
6115
|
type: "button",
|
|
@@ -5996,29 +6118,29 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5996
6118
|
className: cn(rowClassName, focusClass),
|
|
5997
6119
|
children
|
|
5998
6120
|
}
|
|
5999
|
-
) : /* @__PURE__ */ (0,
|
|
6121
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
6000
6122
|
if (vertical) {
|
|
6001
|
-
return /* @__PURE__ */ (0,
|
|
6002
|
-
/* @__PURE__ */ (0,
|
|
6003
|
-
/* @__PURE__ */ (0,
|
|
6123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("li", { className: "flex", children: renderRow(
|
|
6124
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
6125
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col items-center", children: [
|
|
6004
6126
|
marker,
|
|
6005
|
-
!isLast && /* @__PURE__ */ (0,
|
|
6127
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { "aria-hidden": "true", className: "my-1 w-px flex-1 rounded-full bg-border" })
|
|
6006
6128
|
] }),
|
|
6007
|
-
/* @__PURE__ */ (0,
|
|
6129
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: cn("min-w-0 pb-6", titleCentered && verticalTitlePad), children: label })
|
|
6008
6130
|
] }),
|
|
6009
6131
|
"flex w-full items-stretch gap-3 text-left"
|
|
6010
6132
|
) }, step.label);
|
|
6011
6133
|
}
|
|
6012
6134
|
if (below) {
|
|
6013
|
-
return /* @__PURE__ */ (0,
|
|
6135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("li", { className: "flex min-w-0 flex-1 items-start gap-2", children: [
|
|
6014
6136
|
renderRow(
|
|
6015
|
-
/* @__PURE__ */ (0,
|
|
6137
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
6016
6138
|
marker,
|
|
6017
6139
|
label
|
|
6018
6140
|
] }),
|
|
6019
6141
|
"flex min-w-0 flex-1 flex-col items-center gap-2 text-center"
|
|
6020
6142
|
),
|
|
6021
|
-
!isLast && /* @__PURE__ */ (0,
|
|
6143
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6022
6144
|
"span",
|
|
6023
6145
|
{
|
|
6024
6146
|
"aria-hidden": "true",
|
|
@@ -6027,15 +6149,15 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
6027
6149
|
)
|
|
6028
6150
|
] }, step.label);
|
|
6029
6151
|
}
|
|
6030
|
-
return /* @__PURE__ */ (0,
|
|
6152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("li", { className: "flex min-w-0 items-start gap-2", children: [
|
|
6031
6153
|
renderRow(
|
|
6032
|
-
/* @__PURE__ */ (0,
|
|
6154
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
6033
6155
|
marker,
|
|
6034
6156
|
label
|
|
6035
6157
|
] }),
|
|
6036
6158
|
cn("flex min-w-0 text-left", gapClass, titleCentered ? "items-center" : "items-start")
|
|
6037
6159
|
),
|
|
6038
|
-
!isLast && /* @__PURE__ */ (0,
|
|
6160
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6039
6161
|
"span",
|
|
6040
6162
|
{
|
|
6041
6163
|
"aria-hidden": "true",
|
|
@@ -6050,7 +6172,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
6050
6172
|
|
|
6051
6173
|
// src/components/file-upload/FileUpload.tsx
|
|
6052
6174
|
var React65 = __toESM(require("react"));
|
|
6053
|
-
var
|
|
6175
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6054
6176
|
function formatSize(bytes) {
|
|
6055
6177
|
if (bytes < 1024) return `${bytes} B`;
|
|
6056
6178
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -6097,8 +6219,8 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6097
6219
|
const list = Array.from(incoming);
|
|
6098
6220
|
commit(multiple ? [...current, ...list] : list.slice(0, 1));
|
|
6099
6221
|
};
|
|
6100
|
-
return /* @__PURE__ */ (0,
|
|
6101
|
-
/* @__PURE__ */ (0,
|
|
6222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: cn("flex flex-col gap-3", className), children: [
|
|
6223
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
6102
6224
|
"div",
|
|
6103
6225
|
{
|
|
6104
6226
|
onDragOver: (event) => {
|
|
@@ -6119,9 +6241,9 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6119
6241
|
disabled && "opacity-50"
|
|
6120
6242
|
),
|
|
6121
6243
|
children: [
|
|
6122
|
-
/* @__PURE__ */ (0,
|
|
6244
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
6123
6245
|
label,
|
|
6124
|
-
/* @__PURE__ */ (0,
|
|
6246
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6125
6247
|
"input",
|
|
6126
6248
|
{
|
|
6127
6249
|
ref,
|
|
@@ -6139,15 +6261,15 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6139
6261
|
}
|
|
6140
6262
|
)
|
|
6141
6263
|
] }),
|
|
6142
|
-
/* @__PURE__ */ (0,
|
|
6264
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "mt-1 text-xs text-muted-foreground", children: hint ?? (accept ? `Accepted: ${accept}` : "Any file type") })
|
|
6143
6265
|
]
|
|
6144
6266
|
}
|
|
6145
6267
|
),
|
|
6146
|
-
current.length > 0 && /* @__PURE__ */ (0,
|
|
6147
|
-
/* @__PURE__ */ (0,
|
|
6148
|
-
/* @__PURE__ */ (0,
|
|
6149
|
-
/* @__PURE__ */ (0,
|
|
6150
|
-
progress?.[file.name] !== void 0 && /* @__PURE__ */ (0,
|
|
6268
|
+
current.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("ul", { "aria-label": selectedFilesLabel, className: "space-y-2", children: current.map((file) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("li", { className: "flex items-center justify-between gap-3 rounded-md border border-border px-3 py-2", children: [
|
|
6269
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "min-w-0", children: [
|
|
6270
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "truncate text-sm", children: file.name }),
|
|
6271
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "text-xs text-muted-foreground", children: formatSize(file.size) }),
|
|
6272
|
+
progress?.[file.name] !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6151
6273
|
"div",
|
|
6152
6274
|
{
|
|
6153
6275
|
role: "progressbar",
|
|
@@ -6156,11 +6278,11 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6156
6278
|
"aria-valuemax": 100,
|
|
6157
6279
|
"aria-label": uploadingLabel(file),
|
|
6158
6280
|
className: "mt-1 h-1.5 w-40 overflow-hidden rounded-full bg-muted",
|
|
6159
|
-
children: /* @__PURE__ */ (0,
|
|
6281
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "h-full bg-primary", style: { width: `${progress[file.name]}%` } })
|
|
6160
6282
|
}
|
|
6161
6283
|
)
|
|
6162
6284
|
] }),
|
|
6163
|
-
/* @__PURE__ */ (0,
|
|
6285
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6164
6286
|
"button",
|
|
6165
6287
|
{
|
|
6166
6288
|
type: "button",
|
|
@@ -6176,17 +6298,17 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6176
6298
|
|
|
6177
6299
|
// src/components/timeline/Timeline.tsx
|
|
6178
6300
|
var React66 = __toESM(require("react"));
|
|
6179
|
-
var
|
|
6301
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
6180
6302
|
var Timeline = React66.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
6181
|
-
return /* @__PURE__ */ (0,
|
|
6182
|
-
index < items.length - 1 && /* @__PURE__ */ (0,
|
|
6303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("ol", { ref, className: cn("relative flex flex-col gap-6", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("li", { className: "relative flex gap-4", children: [
|
|
6304
|
+
index < items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6183
6305
|
"span",
|
|
6184
6306
|
{
|
|
6185
6307
|
"aria-hidden": "true",
|
|
6186
6308
|
className: "absolute left-[5.5px] top-4 -bottom-7 w-px bg-border"
|
|
6187
6309
|
}
|
|
6188
6310
|
),
|
|
6189
|
-
/* @__PURE__ */ (0,
|
|
6311
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "relative z-10 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6190
6312
|
"span",
|
|
6191
6313
|
{
|
|
6192
6314
|
"aria-hidden": "true",
|
|
@@ -6196,22 +6318,22 @@ var Timeline = React66.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
6196
6318
|
)
|
|
6197
6319
|
}
|
|
6198
6320
|
) }),
|
|
6199
|
-
/* @__PURE__ */ (0,
|
|
6200
|
-
item.period && /* @__PURE__ */ (0,
|
|
6201
|
-
/* @__PURE__ */ (0,
|
|
6202
|
-
item.description && /* @__PURE__ */ (0,
|
|
6203
|
-
item.icon && /* @__PURE__ */ (0,
|
|
6321
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "min-w-0 pb-1", children: [
|
|
6322
|
+
item.period && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
|
|
6323
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
|
|
6324
|
+
item.description && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "mt-1 text-sm text-muted-foreground", children: item.description }),
|
|
6325
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "mt-1 text-muted-foreground [&_svg]:size-4", children: item.icon })
|
|
6204
6326
|
] })
|
|
6205
6327
|
] }, `${item.title}-${index}`)) });
|
|
6206
6328
|
});
|
|
6207
6329
|
|
|
6208
6330
|
// src/components/block/Block.tsx
|
|
6209
6331
|
var React67 = __toESM(require("react"));
|
|
6210
|
-
var
|
|
6332
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
6211
6333
|
var Block = React67.forwardRef(
|
|
6212
6334
|
({ as = "div", inline, muted, className, ...props }, ref) => {
|
|
6213
6335
|
const Tag = inline ? "span" : as;
|
|
6214
|
-
return /* @__PURE__ */ (0,
|
|
6336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6215
6337
|
Tag,
|
|
6216
6338
|
{
|
|
6217
6339
|
ref,
|
|
@@ -6225,7 +6347,7 @@ Block.displayName = "Block";
|
|
|
6225
6347
|
|
|
6226
6348
|
// src/components/flex/Flex.tsx
|
|
6227
6349
|
var React68 = __toESM(require("react"));
|
|
6228
|
-
var
|
|
6350
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
6229
6351
|
var justifyClasses = {
|
|
6230
6352
|
start: "justify-start",
|
|
6231
6353
|
center: "justify-center",
|
|
@@ -6234,7 +6356,7 @@ var justifyClasses = {
|
|
|
6234
6356
|
around: "justify-around",
|
|
6235
6357
|
evenly: "justify-evenly"
|
|
6236
6358
|
};
|
|
6237
|
-
var
|
|
6359
|
+
var alignClasses2 = {
|
|
6238
6360
|
start: "items-start",
|
|
6239
6361
|
center: "items-center",
|
|
6240
6362
|
end: "items-end",
|
|
@@ -6245,7 +6367,7 @@ var Flex = React68.forwardRef(
|
|
|
6245
6367
|
({ direction = "row", align, justify, wrap, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6246
6368
|
const Tag = as;
|
|
6247
6369
|
const gapResolved = resolveGap(gap);
|
|
6248
|
-
return /* @__PURE__ */ (0,
|
|
6370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6249
6371
|
Tag,
|
|
6250
6372
|
{
|
|
6251
6373
|
ref,
|
|
@@ -6253,7 +6375,7 @@ var Flex = React68.forwardRef(
|
|
|
6253
6375
|
"flex min-w-0",
|
|
6254
6376
|
direction === "column" ? "flex-col" : "flex-row",
|
|
6255
6377
|
wrap && "flex-wrap",
|
|
6256
|
-
align &&
|
|
6378
|
+
align && alignClasses2[align],
|
|
6257
6379
|
justify && justifyClasses[justify],
|
|
6258
6380
|
gapResolved.className,
|
|
6259
6381
|
className
|
|
@@ -6280,7 +6402,7 @@ var FlexItem = React68.forwardRef(
|
|
|
6280
6402
|
...shrink === false ? { flexShrink: 0 } : typeof shrink === "string" && shrink ? { flexShrink: Number(shrink) || shrink } : {},
|
|
6281
6403
|
...basis ? { flexBasis: basis } : {}
|
|
6282
6404
|
};
|
|
6283
|
-
return /* @__PURE__ */ (0,
|
|
6405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6284
6406
|
Tag,
|
|
6285
6407
|
{
|
|
6286
6408
|
ref,
|
|
@@ -6295,7 +6417,7 @@ FlexItem.displayName = "FlexItem";
|
|
|
6295
6417
|
|
|
6296
6418
|
// src/components/grid/Grid.tsx
|
|
6297
6419
|
var React69 = __toESM(require("react"));
|
|
6298
|
-
var
|
|
6420
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
6299
6421
|
var BASE_COLS = {
|
|
6300
6422
|
1: "grid-cols-1",
|
|
6301
6423
|
2: "grid-cols-2",
|
|
@@ -6364,7 +6486,7 @@ var Grid = React69.forwardRef(
|
|
|
6364
6486
|
({ cols, smCols, mdCols, lgCols, minCol, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6365
6487
|
const Tag = as;
|
|
6366
6488
|
const gapResolved = resolveGap(gap);
|
|
6367
|
-
return /* @__PURE__ */ (0,
|
|
6489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6368
6490
|
Tag,
|
|
6369
6491
|
{
|
|
6370
6492
|
ref,
|
|
@@ -6391,7 +6513,7 @@ Grid.displayName = "Grid";
|
|
|
6391
6513
|
var GridItem = React69.forwardRef(
|
|
6392
6514
|
({ span, smSpan, mdSpan, lgSpan, as = "div", className, ...props }, ref) => {
|
|
6393
6515
|
const Tag = as;
|
|
6394
|
-
return /* @__PURE__ */ (0,
|
|
6516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6395
6517
|
Tag,
|
|
6396
6518
|
{
|
|
6397
6519
|
ref,
|
|
@@ -6411,7 +6533,7 @@ GridItem.displayName = "GridItem";
|
|
|
6411
6533
|
|
|
6412
6534
|
// src/components/container/Container.tsx
|
|
6413
6535
|
var React70 = __toESM(require("react"));
|
|
6414
|
-
var
|
|
6536
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
6415
6537
|
var widthClasses = {
|
|
6416
6538
|
sm: "max-w-3xl",
|
|
6417
6539
|
md: "max-w-5xl",
|
|
@@ -6427,7 +6549,7 @@ var paddingClasses = {
|
|
|
6427
6549
|
};
|
|
6428
6550
|
var Container = React70.forwardRef(function Container2({ width = "lg", padding = "md", as = "div", className, ...props }, ref) {
|
|
6429
6551
|
const Tag = as;
|
|
6430
|
-
return /* @__PURE__ */ (0,
|
|
6552
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6431
6553
|
Tag,
|
|
6432
6554
|
{
|
|
6433
6555
|
ref,
|
|
@@ -6439,7 +6561,7 @@ var Container = React70.forwardRef(function Container2({ width = "lg", padding =
|
|
|
6439
6561
|
|
|
6440
6562
|
// src/components/section/Section.tsx
|
|
6441
6563
|
var React71 = __toESM(require("react"));
|
|
6442
|
-
var
|
|
6564
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
6443
6565
|
var toneClasses2 = {
|
|
6444
6566
|
default: "bg-background text-foreground",
|
|
6445
6567
|
muted: "bg-muted/40 text-foreground",
|
|
@@ -6493,7 +6615,7 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6493
6615
|
}, ref) {
|
|
6494
6616
|
const Tag = as;
|
|
6495
6617
|
const toneStyle = tone === "inverse" ? inverseVars : tone === "brand" ? brandVars : void 0;
|
|
6496
|
-
return /* @__PURE__ */ (0,
|
|
6618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6497
6619
|
Tag,
|
|
6498
6620
|
{
|
|
6499
6621
|
ref,
|
|
@@ -6501,14 +6623,14 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6501
6623
|
className: cn("w-full", toneClasses2[tone], paddingClasses2[padding], className),
|
|
6502
6624
|
style: { ...toneStyle, ...style },
|
|
6503
6625
|
...props,
|
|
6504
|
-
children: container ? /* @__PURE__ */ (0,
|
|
6626
|
+
children: container ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Container, { width, className: containerClassName, children }) : children
|
|
6505
6627
|
}
|
|
6506
6628
|
);
|
|
6507
6629
|
});
|
|
6508
6630
|
|
|
6509
6631
|
// src/components/hero/Hero.tsx
|
|
6510
6632
|
var React72 = __toESM(require("react"));
|
|
6511
|
-
var
|
|
6633
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
6512
6634
|
var titleSizes = {
|
|
6513
6635
|
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
6514
6636
|
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
@@ -6539,7 +6661,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6539
6661
|
const Heading2 = `h${level}`;
|
|
6540
6662
|
const centered = layout === "centered" || align === "center";
|
|
6541
6663
|
const overlay = layout === "overlay";
|
|
6542
|
-
const copy = /* @__PURE__ */ (0,
|
|
6664
|
+
const copy = /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6543
6665
|
"div",
|
|
6544
6666
|
{
|
|
6545
6667
|
className: cn(
|
|
@@ -6548,7 +6670,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6548
6670
|
overlay && "max-w-2xl"
|
|
6549
6671
|
),
|
|
6550
6672
|
children: [
|
|
6551
|
-
badge && /* @__PURE__ */ (0,
|
|
6673
|
+
badge && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6552
6674
|
"div",
|
|
6553
6675
|
{
|
|
6554
6676
|
className: cn(
|
|
@@ -6559,7 +6681,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6559
6681
|
children: badge
|
|
6560
6682
|
}
|
|
6561
6683
|
),
|
|
6562
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
6684
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6563
6685
|
"p",
|
|
6564
6686
|
{
|
|
6565
6687
|
className: cn(
|
|
@@ -6570,7 +6692,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6570
6692
|
children: eyebrow
|
|
6571
6693
|
}
|
|
6572
6694
|
),
|
|
6573
|
-
/* @__PURE__ */ (0,
|
|
6695
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6574
6696
|
Heading2,
|
|
6575
6697
|
{
|
|
6576
6698
|
className: cn(
|
|
@@ -6582,7 +6704,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6582
6704
|
children: title
|
|
6583
6705
|
}
|
|
6584
6706
|
),
|
|
6585
|
-
description && /* @__PURE__ */ (0,
|
|
6707
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6586
6708
|
"p",
|
|
6587
6709
|
{
|
|
6588
6710
|
className: cn(
|
|
@@ -6594,7 +6716,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6594
6716
|
children: description
|
|
6595
6717
|
}
|
|
6596
6718
|
),
|
|
6597
|
-
actions && /* @__PURE__ */ (0,
|
|
6719
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6598
6720
|
"div",
|
|
6599
6721
|
{
|
|
6600
6722
|
className: cn(
|
|
@@ -6608,7 +6730,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6608
6730
|
}
|
|
6609
6731
|
);
|
|
6610
6732
|
if (overlay) {
|
|
6611
|
-
return /* @__PURE__ */ (0,
|
|
6733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6612
6734
|
Tag,
|
|
6613
6735
|
{
|
|
6614
6736
|
ref,
|
|
@@ -6618,7 +6740,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6618
6740
|
),
|
|
6619
6741
|
...props,
|
|
6620
6742
|
children: [
|
|
6621
|
-
media && /* @__PURE__ */ (0,
|
|
6743
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6622
6744
|
"div",
|
|
6623
6745
|
{
|
|
6624
6746
|
className: cn(
|
|
@@ -6628,20 +6750,20 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6628
6750
|
children: media
|
|
6629
6751
|
}
|
|
6630
6752
|
),
|
|
6631
|
-
/* @__PURE__ */ (0,
|
|
6632
|
-
/* @__PURE__ */ (0,
|
|
6753
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { "aria-hidden": "true", className: "absolute inset-0 -z-10 bg-foreground/60" }),
|
|
6754
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "relative w-full px-4 sm:px-6 lg:px-10", children: copy })
|
|
6633
6755
|
]
|
|
6634
6756
|
}
|
|
6635
6757
|
);
|
|
6636
6758
|
}
|
|
6637
6759
|
if (layout === "centered") {
|
|
6638
|
-
return /* @__PURE__ */ (0,
|
|
6760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
6639
6761
|
copy,
|
|
6640
|
-
media && /* @__PURE__ */ (0,
|
|
6762
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
6641
6763
|
] });
|
|
6642
6764
|
}
|
|
6643
6765
|
if (layout === "stacked") {
|
|
6644
|
-
return /* @__PURE__ */ (0,
|
|
6766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6645
6767
|
Tag,
|
|
6646
6768
|
{
|
|
6647
6769
|
ref,
|
|
@@ -6649,20 +6771,20 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6649
6771
|
...props,
|
|
6650
6772
|
children: [
|
|
6651
6773
|
copy,
|
|
6652
|
-
media && /* @__PURE__ */ (0,
|
|
6774
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: cn("min-w-0 w-full", mediaClassName), children: media })
|
|
6653
6775
|
]
|
|
6654
6776
|
}
|
|
6655
6777
|
);
|
|
6656
6778
|
}
|
|
6657
|
-
return /* @__PURE__ */ (0,
|
|
6779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6658
6780
|
Tag,
|
|
6659
6781
|
{
|
|
6660
6782
|
ref,
|
|
6661
6783
|
className: cn("grid w-full items-center gap-10 lg:grid-cols-2 lg:gap-16 xl:gap-20", className),
|
|
6662
6784
|
...props,
|
|
6663
6785
|
children: [
|
|
6664
|
-
/* @__PURE__ */ (0,
|
|
6665
|
-
media && /* @__PURE__ */ (0,
|
|
6786
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: cn(mediaPosition === "left" && "lg:order-2"), children: copy }),
|
|
6787
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1", mediaClassName), children: media })
|
|
6666
6788
|
]
|
|
6667
6789
|
}
|
|
6668
6790
|
);
|
|
@@ -6670,7 +6792,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6670
6792
|
|
|
6671
6793
|
// src/components/stat-band/StatBand.tsx
|
|
6672
6794
|
var React73 = __toESM(require("react"));
|
|
6673
|
-
var
|
|
6795
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
6674
6796
|
var columnClasses = {
|
|
6675
6797
|
2: "sm:grid-cols-2",
|
|
6676
6798
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6698,7 +6820,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6698
6820
|
...props
|
|
6699
6821
|
}, ref) {
|
|
6700
6822
|
const panel = variant === "panel";
|
|
6701
|
-
return /* @__PURE__ */ (0,
|
|
6823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6702
6824
|
"dl",
|
|
6703
6825
|
{
|
|
6704
6826
|
ref,
|
|
@@ -6710,7 +6832,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6710
6832
|
className
|
|
6711
6833
|
),
|
|
6712
6834
|
...props,
|
|
6713
|
-
children: items.map((item) => /* @__PURE__ */ (0,
|
|
6835
|
+
children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
6714
6836
|
"div",
|
|
6715
6837
|
{
|
|
6716
6838
|
className: cn(
|
|
@@ -6719,7 +6841,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6719
6841
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6720
6842
|
),
|
|
6721
6843
|
children: [
|
|
6722
|
-
/* @__PURE__ */ (0,
|
|
6844
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
6723
6845
|
"dt",
|
|
6724
6846
|
{
|
|
6725
6847
|
className: cn(
|
|
@@ -6728,11 +6850,11 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6728
6850
|
),
|
|
6729
6851
|
children: [
|
|
6730
6852
|
item.label,
|
|
6731
|
-
item.hint && /* @__PURE__ */ (0,
|
|
6853
|
+
item.hint && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: cn("mt-1 block font-normal", panel ? "text-xs normal-case tracking-normal" : "text-xs"), children: item.hint })
|
|
6732
6854
|
]
|
|
6733
6855
|
}
|
|
6734
6856
|
),
|
|
6735
|
-
/* @__PURE__ */ (0,
|
|
6857
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6736
6858
|
"dd",
|
|
6737
6859
|
{
|
|
6738
6860
|
className: cn(
|
|
@@ -6753,7 +6875,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6753
6875
|
|
|
6754
6876
|
// src/components/cta-section/CTASection.tsx
|
|
6755
6877
|
var React74 = __toESM(require("react"));
|
|
6756
|
-
var
|
|
6878
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6757
6879
|
var sizePadding = {
|
|
6758
6880
|
sm: "md",
|
|
6759
6881
|
md: "lg",
|
|
@@ -6771,7 +6893,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6771
6893
|
className,
|
|
6772
6894
|
...props
|
|
6773
6895
|
}, ref) {
|
|
6774
|
-
return /* @__PURE__ */ (0,
|
|
6896
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6775
6897
|
Section,
|
|
6776
6898
|
{
|
|
6777
6899
|
ref,
|
|
@@ -6780,7 +6902,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6780
6902
|
width,
|
|
6781
6903
|
className,
|
|
6782
6904
|
...props,
|
|
6783
|
-
children: /* @__PURE__ */ (0,
|
|
6905
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
6784
6906
|
"div",
|
|
6785
6907
|
{
|
|
6786
6908
|
className: cn(
|
|
@@ -6788,10 +6910,10 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6788
6910
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6789
6911
|
),
|
|
6790
6912
|
children: [
|
|
6791
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
6792
|
-
/* @__PURE__ */ (0,
|
|
6793
|
-
description && /* @__PURE__ */ (0,
|
|
6794
|
-
actions && /* @__PURE__ */ (0,
|
|
6913
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6914
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("h2", { className: "max-w-3xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl", children: title }),
|
|
6915
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: cn("max-w-2xl text-base leading-relaxed text-muted-foreground sm:text-lg"), children: description }),
|
|
6916
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: cn("mt-2 flex flex-wrap items-center gap-3", align === "center" && "justify-center"), children: actions })
|
|
6795
6917
|
]
|
|
6796
6918
|
}
|
|
6797
6919
|
)
|
|
@@ -6801,9 +6923,9 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6801
6923
|
|
|
6802
6924
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
6803
6925
|
var React75 = __toESM(require("react"));
|
|
6804
|
-
var
|
|
6926
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
6805
6927
|
function CheckMark() {
|
|
6806
|
-
return /* @__PURE__ */ (0,
|
|
6928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6807
6929
|
"svg",
|
|
6808
6930
|
{
|
|
6809
6931
|
"aria-hidden": "true",
|
|
@@ -6814,12 +6936,12 @@ function CheckMark() {
|
|
|
6814
6936
|
strokeLinecap: "round",
|
|
6815
6937
|
strokeLinejoin: "round",
|
|
6816
6938
|
className: "mx-auto h-5 w-5 text-success",
|
|
6817
|
-
children: /* @__PURE__ */ (0,
|
|
6939
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("path", { d: "m4 10.5 4 4 8-9" })
|
|
6818
6940
|
}
|
|
6819
6941
|
);
|
|
6820
6942
|
}
|
|
6821
6943
|
function DashMark() {
|
|
6822
|
-
return /* @__PURE__ */ (0,
|
|
6944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6823
6945
|
"svg",
|
|
6824
6946
|
{
|
|
6825
6947
|
"aria-hidden": "true",
|
|
@@ -6829,7 +6951,7 @@ function DashMark() {
|
|
|
6829
6951
|
strokeWidth: "2.2",
|
|
6830
6952
|
strokeLinecap: "round",
|
|
6831
6953
|
className: "mx-auto h-5 w-5 text-muted-foreground/60",
|
|
6832
|
-
children: /* @__PURE__ */ (0,
|
|
6954
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("path", { d: "M5 10h10" })
|
|
6833
6955
|
}
|
|
6834
6956
|
);
|
|
6835
6957
|
}
|
|
@@ -6845,11 +6967,11 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6845
6967
|
}, ref) {
|
|
6846
6968
|
const yes = valueLabels?.yes ?? "Included";
|
|
6847
6969
|
const no = valueLabels?.no ?? "Not included";
|
|
6848
|
-
return /* @__PURE__ */ (0,
|
|
6849
|
-
/* @__PURE__ */ (0,
|
|
6850
|
-
/* @__PURE__ */ (0,
|
|
6851
|
-
/* @__PURE__ */ (0,
|
|
6852
|
-
columns.map((column) => /* @__PURE__ */ (0,
|
|
6970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "w-full overflow-x-auto rounded-xl border border-border bg-card", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("table", { ref, className: cn("w-full border-collapse text-sm", className), ...props, children: [
|
|
6971
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("caption", { className: "sr-only", children: caption }),
|
|
6972
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("tr", { className: "border-b border-border", children: [
|
|
6973
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("th", { scope: "col", className: "min-w-48 px-5 py-4 text-left font-medium text-muted-foreground", children: featureLabel }),
|
|
6974
|
+
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6853
6975
|
"th",
|
|
6854
6976
|
{
|
|
6855
6977
|
scope: "col",
|
|
@@ -6862,21 +6984,21 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6862
6984
|
column.label
|
|
6863
6985
|
))
|
|
6864
6986
|
] }) }),
|
|
6865
|
-
/* @__PURE__ */ (0,
|
|
6866
|
-
/* @__PURE__ */ (0,
|
|
6987
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("tbody", { children: rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("tr", { className: "border-b border-border last:border-b-0", children: [
|
|
6988
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("th", { scope: "row", className: "px-5 py-4 text-left font-medium", children: [
|
|
6867
6989
|
row.feature,
|
|
6868
|
-
row.hint && /* @__PURE__ */ (0,
|
|
6990
|
+
row.hint && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "mt-1 block text-xs font-normal text-muted-foreground", children: row.hint })
|
|
6869
6991
|
] }),
|
|
6870
6992
|
columns.map((column, index) => {
|
|
6871
6993
|
const value = row.values[index];
|
|
6872
|
-
return /* @__PURE__ */ (0,
|
|
6994
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6873
6995
|
"td",
|
|
6874
6996
|
{
|
|
6875
6997
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
6876
|
-
children: typeof value === "boolean" ? /* @__PURE__ */ (0,
|
|
6877
|
-
value ? /* @__PURE__ */ (0,
|
|
6878
|
-
/* @__PURE__ */ (0,
|
|
6879
|
-
] }) : /* @__PURE__ */ (0,
|
|
6998
|
+
children: typeof value === "boolean" ? /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
|
|
6999
|
+
value ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(CheckMark, {}) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(DashMark, {}),
|
|
7000
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "sr-only", children: value ? yes : no })
|
|
7001
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { children: value ?? "" })
|
|
6880
7002
|
},
|
|
6881
7003
|
`${row.feature}-${column.label}`
|
|
6882
7004
|
);
|
|
@@ -6888,7 +7010,7 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6888
7010
|
|
|
6889
7011
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
6890
7012
|
var React76 = __toESM(require("react"));
|
|
6891
|
-
var
|
|
7013
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
6892
7014
|
var columnClasses2 = {
|
|
6893
7015
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
6894
7016
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -6918,8 +7040,8 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6918
7040
|
sizeClasses9[size],
|
|
6919
7041
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
6920
7042
|
);
|
|
6921
|
-
return /* @__PURE__ */ (0,
|
|
6922
|
-
caption && /* @__PURE__ */ (0,
|
|
7043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
7044
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
6923
7045
|
"p",
|
|
6924
7046
|
{
|
|
6925
7047
|
className: cn(
|
|
@@ -6929,12 +7051,12 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6929
7051
|
children: caption
|
|
6930
7052
|
}
|
|
6931
7053
|
),
|
|
6932
|
-
/* @__PURE__ */ (0,
|
|
6933
|
-
const content = /* @__PURE__ */ (0,
|
|
6934
|
-
/* @__PURE__ */ (0,
|
|
6935
|
-
/* @__PURE__ */ (0,
|
|
7054
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("ul", { className: cn("grid items-center gap-x-8 gap-y-6", columnClasses2[columns], align === "center" && "justify-items-center"), children: items.map((item) => {
|
|
7055
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
|
|
7056
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: logoClass, "aria-hidden": "true", children: item.logo }),
|
|
7057
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "sr-only", children: item.name })
|
|
6936
7058
|
] });
|
|
6937
|
-
return /* @__PURE__ */ (0,
|
|
7059
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("li", { className: cn("min-w-0", align === "center" ? "justify-self-center" : "justify-self-start"), children: item.href ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
6938
7060
|
Link3,
|
|
6939
7061
|
{
|
|
6940
7062
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -6948,7 +7070,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6948
7070
|
|
|
6949
7071
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
6950
7072
|
var React77 = __toESM(require("react"));
|
|
6951
|
-
var
|
|
7073
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
6952
7074
|
var columnClasses3 = {
|
|
6953
7075
|
2: "sm:grid-cols-2",
|
|
6954
7076
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6961,22 +7083,22 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6961
7083
|
variant === "card" && "border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
|
|
6962
7084
|
align === "center" && "items-center text-center"
|
|
6963
7085
|
);
|
|
6964
|
-
const content = (feature) => /* @__PURE__ */ (0,
|
|
6965
|
-
feature.icon && /* @__PURE__ */ (0,
|
|
6966
|
-
/* @__PURE__ */ (0,
|
|
6967
|
-
feature.description && /* @__PURE__ */ (0,
|
|
6968
|
-
feature.href && feature.actionLabel && /* @__PURE__ */ (0,
|
|
7086
|
+
const content = (feature) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
|
|
7087
|
+
feature.icon && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("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 }),
|
|
7088
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
7089
|
+
feature.description && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
7090
|
+
feature.href && feature.actionLabel && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("span", { className: "mt-auto pt-2 text-sm font-medium text-primary-ink", children: [
|
|
6969
7091
|
feature.actionLabel,
|
|
6970
7092
|
" ",
|
|
6971
|
-
/* @__PURE__ */ (0,
|
|
7093
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { "aria-hidden": "true", children: "\u2192" })
|
|
6972
7094
|
] })
|
|
6973
7095
|
] });
|
|
6974
|
-
return /* @__PURE__ */ (0,
|
|
7096
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("ul", { ref, className: cn("grid gap-6", columnClasses3[columns], className), ...props, children: features.map((feature) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("li", { className: "min-w-0", children: feature.href ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Link3, { href: feature.href, className: cn(cardClass, "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"), children: content(feature) }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: cardClass, children: content(feature) }) }, feature.title)) });
|
|
6975
7097
|
});
|
|
6976
7098
|
|
|
6977
7099
|
// src/components/feature-row/FeatureRow.tsx
|
|
6978
7100
|
var React78 = __toESM(require("react"));
|
|
6979
|
-
var
|
|
7101
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
6980
7102
|
var titleSizes2 = {
|
|
6981
7103
|
md: "text-3xl",
|
|
6982
7104
|
lg: "text-3xl sm:text-4xl"
|
|
@@ -6994,20 +7116,20 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6994
7116
|
...props
|
|
6995
7117
|
}, ref) {
|
|
6996
7118
|
const Heading2 = `h${level}`;
|
|
6997
|
-
return /* @__PURE__ */ (0,
|
|
7119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
6998
7120
|
"div",
|
|
6999
7121
|
{
|
|
7000
7122
|
ref,
|
|
7001
7123
|
className: cn("grid items-center gap-10 lg:grid-cols-2 lg:gap-16", className),
|
|
7002
7124
|
...props,
|
|
7003
7125
|
children: [
|
|
7004
|
-
/* @__PURE__ */ (0,
|
|
7005
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
7006
|
-
/* @__PURE__ */ (0,
|
|
7007
|
-
description && /* @__PURE__ */ (0,
|
|
7008
|
-
actions && /* @__PURE__ */ (0,
|
|
7126
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
7127
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
7128
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
7129
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
7130
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "mt-7 flex flex-wrap items-center gap-3", children: actions })
|
|
7009
7131
|
] }),
|
|
7010
|
-
/* @__PURE__ */ (0,
|
|
7132
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1"), children: media })
|
|
7011
7133
|
]
|
|
7012
7134
|
}
|
|
7013
7135
|
);
|
|
@@ -7015,14 +7137,14 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
7015
7137
|
|
|
7016
7138
|
// src/components/testimonial/Testimonial.tsx
|
|
7017
7139
|
var React79 = __toESM(require("react"));
|
|
7018
|
-
var
|
|
7140
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
7019
7141
|
var quoteSizes = {
|
|
7020
7142
|
sm: "text-base",
|
|
7021
7143
|
md: "text-lg",
|
|
7022
7144
|
lg: "text-xl sm:text-2xl"
|
|
7023
7145
|
};
|
|
7024
7146
|
var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role, company, avatar, logo, variant = "card", size = "md", className, ...props }, ref) {
|
|
7025
|
-
return /* @__PURE__ */ (0,
|
|
7147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
7026
7148
|
"figure",
|
|
7027
7149
|
{
|
|
7028
7150
|
ref,
|
|
@@ -7033,17 +7155,17 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
7033
7155
|
),
|
|
7034
7156
|
...props,
|
|
7035
7157
|
children: [
|
|
7036
|
-
logo && /* @__PURE__ */ (0,
|
|
7037
|
-
/* @__PURE__ */ (0,
|
|
7158
|
+
logo && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "flex items-center", children: logo }),
|
|
7159
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("p", { children: [
|
|
7038
7160
|
"\u201C",
|
|
7039
7161
|
quote,
|
|
7040
7162
|
"\u201D"
|
|
7041
7163
|
] }) }),
|
|
7042
|
-
/* @__PURE__ */ (0,
|
|
7043
|
-
avatar && /* @__PURE__ */ (0,
|
|
7044
|
-
/* @__PURE__ */ (0,
|
|
7045
|
-
/* @__PURE__ */ (0,
|
|
7046
|
-
(role || company) && /* @__PURE__ */ (0,
|
|
7164
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("figcaption", { className: "flex items-center gap-3", children: [
|
|
7165
|
+
avatar && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "shrink-0", children: avatar }),
|
|
7166
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "min-w-0", children: [
|
|
7167
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "text-sm font-semibold", children: name }),
|
|
7168
|
+
(role || company) && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "text-xs text-muted-foreground", children: [role, company].filter(Boolean).join(", ") })
|
|
7047
7169
|
] })
|
|
7048
7170
|
] })
|
|
7049
7171
|
]
|
|
@@ -7053,7 +7175,7 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
7053
7175
|
|
|
7054
7176
|
// src/components/process-steps/ProcessSteps.tsx
|
|
7055
7177
|
var React80 = __toESM(require("react"));
|
|
7056
|
-
var
|
|
7178
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
7057
7179
|
var columnClasses4 = {
|
|
7058
7180
|
2: "sm:grid-cols-2",
|
|
7059
7181
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -7061,15 +7183,15 @@ var columnClasses4 = {
|
|
|
7061
7183
|
};
|
|
7062
7184
|
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", headingLevel = 3, className, ...props }, ref) {
|
|
7063
7185
|
const HeadingTag = { 2: "h2", 3: "h3", 4: "h4" }[headingLevel];
|
|
7064
|
-
return /* @__PURE__ */ (0,
|
|
7186
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
7065
7187
|
"li",
|
|
7066
7188
|
{
|
|
7067
7189
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
7068
7190
|
children: [
|
|
7069
|
-
/* @__PURE__ */ (0,
|
|
7070
|
-
/* @__PURE__ */ (0,
|
|
7071
|
-
/* @__PURE__ */ (0,
|
|
7072
|
-
step.description && /* @__PURE__ */ (0,
|
|
7191
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 text-sm font-semibold text-primary-ink [&_svg]:size-5", children: step.icon ?? (numbered ? String(index + 1).padStart(2, "0") : null) }),
|
|
7192
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "min-w-0", children: [
|
|
7193
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(HeadingTag, { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
7194
|
+
step.description && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
7073
7195
|
] })
|
|
7074
7196
|
]
|
|
7075
7197
|
},
|
|
@@ -7079,7 +7201,7 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
7079
7201
|
|
|
7080
7202
|
// src/components/article-card/ArticleCard.tsx
|
|
7081
7203
|
var React81 = __toESM(require("react"));
|
|
7082
|
-
var
|
|
7204
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
7083
7205
|
var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
7084
7206
|
title,
|
|
7085
7207
|
description,
|
|
@@ -7094,7 +7216,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
7094
7216
|
}, ref) {
|
|
7095
7217
|
const Link3 = linkComponent ?? "a";
|
|
7096
7218
|
const compact = variant === "compact";
|
|
7097
|
-
return /* @__PURE__ */ (0,
|
|
7219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
7098
7220
|
Link3,
|
|
7099
7221
|
{
|
|
7100
7222
|
href,
|
|
@@ -7103,12 +7225,12 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
7103
7225
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
7104
7226
|
),
|
|
7105
7227
|
children: [
|
|
7106
|
-
media && !compact && /* @__PURE__ */ (0,
|
|
7107
|
-
/* @__PURE__ */ (0,
|
|
7108
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
7109
|
-
/* @__PURE__ */ (0,
|
|
7110
|
-
description && /* @__PURE__ */ (0,
|
|
7111
|
-
meta && /* @__PURE__ */ (0,
|
|
7228
|
+
media && !compact && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "aspect-[16/10] w-full overflow-hidden bg-muted [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: media }),
|
|
7229
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: cn("flex flex-1 flex-col gap-2", compact ? "p-4" : "p-5"), children: [
|
|
7230
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
7231
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("h3", { className: cn("font-semibold tracking-tight transition-colors group-hover:text-primary-ink", compact ? "text-base" : "text-lg"), children: title }),
|
|
7232
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7233
|
+
meta && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "mt-auto pt-2 text-xs text-muted-foreground", children: meta })
|
|
7112
7234
|
] })
|
|
7113
7235
|
]
|
|
7114
7236
|
}
|
|
@@ -7117,7 +7239,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
7117
7239
|
|
|
7118
7240
|
// src/components/newsletter/Newsletter.tsx
|
|
7119
7241
|
var React82 = __toESM(require("react"));
|
|
7120
|
-
var
|
|
7242
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
7121
7243
|
var Newsletter = React82.forwardRef(function Newsletter2({
|
|
7122
7244
|
title,
|
|
7123
7245
|
description,
|
|
@@ -7149,13 +7271,13 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7149
7271
|
setStatus("error");
|
|
7150
7272
|
}
|
|
7151
7273
|
};
|
|
7152
|
-
return /* @__PURE__ */ (0,
|
|
7153
|
-
/* @__PURE__ */ (0,
|
|
7154
|
-
description && /* @__PURE__ */ (0,
|
|
7155
|
-
/* @__PURE__ */ (0,
|
|
7156
|
-
/* @__PURE__ */ (0,
|
|
7157
|
-
/* @__PURE__ */ (0,
|
|
7158
|
-
/* @__PURE__ */ (0,
|
|
7274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "w-full", children: [
|
|
7275
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Heading2, { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
7276
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7277
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("form", { ref, onSubmit: handleSubmit, className: cn("mt-5", className), ...props, children: [
|
|
7278
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: cn("flex gap-2", layout === "inline" ? "flex-col sm:flex-row" : "flex-col"), children: [
|
|
7279
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("label", { htmlFor: id, className: "sr-only", children: label }),
|
|
7280
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
7159
7281
|
Input,
|
|
7160
7282
|
{
|
|
7161
7283
|
id,
|
|
@@ -7170,12 +7292,12 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7170
7292
|
className: "sm:flex-1"
|
|
7171
7293
|
}
|
|
7172
7294
|
),
|
|
7173
|
-
/* @__PURE__ */ (0,
|
|
7295
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
7174
7296
|
] }),
|
|
7175
|
-
consent && /* @__PURE__ */ (0,
|
|
7176
|
-
/* @__PURE__ */ (0,
|
|
7177
|
-
status === "success" && /* @__PURE__ */ (0,
|
|
7178
|
-
status === "error" && /* @__PURE__ */ (0,
|
|
7297
|
+
consent && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "mt-3 text-xs leading-relaxed text-muted-foreground", children: consent }),
|
|
7298
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { "aria-live": "polite", className: "mt-2 min-h-5 text-sm", children: [
|
|
7299
|
+
status === "success" && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "text-success", children: successMessage }),
|
|
7300
|
+
status === "error" && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { role: "alert", className: "text-destructive", children: errorMessage })
|
|
7179
7301
|
] })
|
|
7180
7302
|
] })
|
|
7181
7303
|
] });
|
|
@@ -7183,25 +7305,25 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7183
7305
|
|
|
7184
7306
|
// src/components/contact-strip/ContactStrip.tsx
|
|
7185
7307
|
var React83 = __toESM(require("react"));
|
|
7186
|
-
var
|
|
7308
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
7187
7309
|
var columnClasses5 = {
|
|
7188
7310
|
2: "sm:grid-cols-2",
|
|
7189
7311
|
3: "sm:grid-cols-3"
|
|
7190
7312
|
};
|
|
7191
7313
|
var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
7192
7314
|
const Link3 = linkComponent ?? "a";
|
|
7193
|
-
return /* @__PURE__ */ (0,
|
|
7194
|
-
item.icon && /* @__PURE__ */ (0,
|
|
7195
|
-
/* @__PURE__ */ (0,
|
|
7196
|
-
/* @__PURE__ */ (0,
|
|
7197
|
-
item.href ? /* @__PURE__ */ (0,
|
|
7315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("ul", { ref, className: cn("grid gap-6", columnClasses5[columns], className), ...props, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("li", { className: cn("flex min-w-0 items-start gap-3", align === "center" && "justify-center text-center"), children: [
|
|
7316
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("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 }),
|
|
7317
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "min-w-0", children: [
|
|
7318
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
7319
|
+
item.href ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(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__ */ (0, import_jsx_runtime85.jsx)("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
7198
7320
|
] })
|
|
7199
7321
|
] }, item.label)) });
|
|
7200
7322
|
});
|
|
7201
7323
|
|
|
7202
7324
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
7203
7325
|
var React84 = __toESM(require("react"));
|
|
7204
|
-
var
|
|
7326
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
7205
7327
|
var toneClasses3 = {
|
|
7206
7328
|
muted: "bg-muted text-foreground",
|
|
7207
7329
|
brand: "bg-primary text-primary-foreground",
|
|
@@ -7227,7 +7349,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7227
7349
|
setDismissed(true);
|
|
7228
7350
|
onDismiss?.();
|
|
7229
7351
|
};
|
|
7230
|
-
return /* @__PURE__ */ (0,
|
|
7352
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7231
7353
|
"div",
|
|
7232
7354
|
{
|
|
7233
7355
|
ref,
|
|
@@ -7240,9 +7362,9 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7240
7362
|
className
|
|
7241
7363
|
),
|
|
7242
7364
|
...props,
|
|
7243
|
-
children: /* @__PURE__ */ (0,
|
|
7244
|
-
/* @__PURE__ */ (0,
|
|
7245
|
-
href && actionLabel && /* @__PURE__ */ (0,
|
|
7365
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "mx-auto flex w-full max-w-7xl items-center justify-center gap-3 px-4 py-2 text-sm sm:px-6", children: [
|
|
7366
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "min-w-0 text-center", children: message }),
|
|
7367
|
+
href && actionLabel && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7246
7368
|
Link3,
|
|
7247
7369
|
{
|
|
7248
7370
|
href,
|
|
@@ -7250,14 +7372,14 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7250
7372
|
children: actionLabel
|
|
7251
7373
|
}
|
|
7252
7374
|
),
|
|
7253
|
-
dismissible && /* @__PURE__ */ (0,
|
|
7375
|
+
dismissible && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7254
7376
|
"button",
|
|
7255
7377
|
{
|
|
7256
7378
|
type: "button",
|
|
7257
7379
|
onClick: dismiss2,
|
|
7258
7380
|
"aria-label": "Dismiss announcement",
|
|
7259
7381
|
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",
|
|
7260
|
-
children: /* @__PURE__ */ (0,
|
|
7382
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7261
7383
|
}
|
|
7262
7384
|
)
|
|
7263
7385
|
] })
|
|
@@ -7268,7 +7390,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7268
7390
|
|
|
7269
7391
|
// src/components/deal-card/DealCard.tsx
|
|
7270
7392
|
var React85 = __toESM(require("react"));
|
|
7271
|
-
var
|
|
7393
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
7272
7394
|
var statusConfig = {
|
|
7273
7395
|
available: { label: "Available", variant: "success" },
|
|
7274
7396
|
"under-nda": { label: "Under NDA", variant: "info" },
|
|
@@ -7296,29 +7418,29 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7296
7418
|
}, ref) {
|
|
7297
7419
|
const Link3 = linkComponent ?? "a";
|
|
7298
7420
|
const statusInfo = statusConfig[status];
|
|
7299
|
-
return /* @__PURE__ */ (0,
|
|
7300
|
-
/* @__PURE__ */ (0,
|
|
7301
|
-
/* @__PURE__ */ (0,
|
|
7302
|
-
/* @__PURE__ */ (0,
|
|
7303
|
-
/* @__PURE__ */ (0,
|
|
7421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
7422
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
7423
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7424
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: sector }),
|
|
7425
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7304
7426
|
] }),
|
|
7305
|
-
/* @__PURE__ */ (0,
|
|
7306
|
-
location && /* @__PURE__ */ (0,
|
|
7427
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Link3, { href, className: "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
7428
|
+
location && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "text-xs text-muted-foreground", children: location })
|
|
7307
7429
|
] }),
|
|
7308
|
-
/* @__PURE__ */ (0,
|
|
7309
|
-
description && /* @__PURE__ */ (0,
|
|
7310
|
-
/* @__PURE__ */ (0,
|
|
7311
|
-
/* @__PURE__ */ (0,
|
|
7312
|
-
/* @__PURE__ */ (0,
|
|
7430
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7431
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7432
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("dl", { className: "mt-4 grid grid-cols-3 gap-3", children: metrics.map((metric) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "min-w-0", children: [
|
|
7433
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("dt", { className: "text-xs text-muted-foreground", children: metric.label }),
|
|
7434
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: metric.value })
|
|
7313
7435
|
] }, metric.label)) }),
|
|
7314
|
-
(ndaAvailable || cimAvailable) && /* @__PURE__ */ (0,
|
|
7315
|
-
ndaAvailable && /* @__PURE__ */ (0,
|
|
7316
|
-
cimAvailable && /* @__PURE__ */ (0,
|
|
7436
|
+
(ndaAvailable || cimAvailable) && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "mt-4 flex flex-wrap gap-1.5", children: [
|
|
7437
|
+
ndaAvailable && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Badge, { variant: "info", children: "NDA available" }),
|
|
7438
|
+
cimAvailable && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Badge, { variant: "secondary", children: "CIM available" })
|
|
7317
7439
|
] })
|
|
7318
7440
|
] }),
|
|
7319
|
-
/* @__PURE__ */ (0,
|
|
7320
|
-
onRequestAccess && /* @__PURE__ */ (0,
|
|
7321
|
-
onSave && /* @__PURE__ */ (0,
|
|
7441
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
7442
|
+
onRequestAccess && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Button, { type: "button", size: "sm", onClick: onRequestAccess, children: requestLabel }),
|
|
7443
|
+
onSave && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
7322
7444
|
Button,
|
|
7323
7445
|
{
|
|
7324
7446
|
type: "button",
|
|
@@ -7336,7 +7458,7 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7336
7458
|
|
|
7337
7459
|
// src/components/entity-card/EntityCard.tsx
|
|
7338
7460
|
var React86 = __toESM(require("react"));
|
|
7339
|
-
var
|
|
7461
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
7340
7462
|
function initials(name) {
|
|
7341
7463
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
7342
7464
|
}
|
|
@@ -7358,11 +7480,11 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7358
7480
|
const Link3 = linkComponent ?? "a";
|
|
7359
7481
|
const stretched = Boolean(cardHref);
|
|
7360
7482
|
const nameHref = cardHref ?? href;
|
|
7361
|
-
return /* @__PURE__ */ (0,
|
|
7362
|
-
/* @__PURE__ */ (0,
|
|
7363
|
-
/* @__PURE__ */ (0,
|
|
7364
|
-
/* @__PURE__ */ (0,
|
|
7365
|
-
/* @__PURE__ */ (0,
|
|
7483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Card, { ref, className: cn("flex h-full flex-col", stretched && "relative isolate", className), ...props, children: [
|
|
7484
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
7485
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Avatar, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AvatarFallback, { children: initials(name) }) }) }),
|
|
7486
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
7487
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("h3", { className: "truncate text-base font-semibold tracking-tight", children: nameHref ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7366
7488
|
Link3,
|
|
7367
7489
|
{
|
|
7368
7490
|
href: nameHref,
|
|
@@ -7373,20 +7495,20 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7373
7495
|
children: name
|
|
7374
7496
|
}
|
|
7375
7497
|
) : name }),
|
|
7376
|
-
/* @__PURE__ */ (0,
|
|
7377
|
-
location && /* @__PURE__ */ (0,
|
|
7498
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
7499
|
+
location && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
7378
7500
|
] })
|
|
7379
7501
|
] }),
|
|
7380
|
-
/* @__PURE__ */ (0,
|
|
7381
|
-
description && /* @__PURE__ */ (0,
|
|
7382
|
-
tags && tags.length > 0 && /* @__PURE__ */ (0,
|
|
7383
|
-
stats && stats.length > 0 && /* @__PURE__ */ (0,
|
|
7384
|
-
/* @__PURE__ */ (0,
|
|
7385
|
-
/* @__PURE__ */ (0,
|
|
7502
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7503
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7504
|
+
tags && tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "mt-3 flex flex-wrap gap-1.5", children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Badge, { variant: "secondary", children: tag }, tag)) }),
|
|
7505
|
+
stats && stats.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("dl", { className: "mt-4 grid grid-cols-2 gap-3", children: stats.map((stat) => /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "min-w-0", children: [
|
|
7506
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("dt", { className: "text-xs text-muted-foreground", children: stat.label }),
|
|
7507
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
|
|
7386
7508
|
] }, stat.label)) })
|
|
7387
7509
|
] }),
|
|
7388
|
-
(href && !stretched || actions) && /* @__PURE__ */ (0,
|
|
7389
|
-
href && !stretched && /* @__PURE__ */ (0,
|
|
7510
|
+
(href && !stretched || actions) && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(CardFooter, { className: cn("flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", stretched && "relative z-10"), children: [
|
|
7511
|
+
href && !stretched && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7390
7512
|
Link3,
|
|
7391
7513
|
{
|
|
7392
7514
|
href,
|
|
@@ -7394,7 +7516,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7394
7516
|
children: "View profile"
|
|
7395
7517
|
}
|
|
7396
7518
|
),
|
|
7397
|
-
actions && /* @__PURE__ */ (0,
|
|
7519
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "ml-auto flex items-center gap-2", children: actions })
|
|
7398
7520
|
] })
|
|
7399
7521
|
] });
|
|
7400
7522
|
});
|
|
@@ -7402,7 +7524,7 @@ var ProfileCard = EntityCard;
|
|
|
7402
7524
|
|
|
7403
7525
|
// src/components/tombstone-card/TombstoneCard.tsx
|
|
7404
7526
|
var React87 = __toESM(require("react"));
|
|
7405
|
-
var
|
|
7527
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
7406
7528
|
var statusConfig2 = {
|
|
7407
7529
|
archived: { label: "Archived", variant: "secondary" },
|
|
7408
7530
|
unavailable: { label: "Unavailable", variant: "warning" },
|
|
@@ -7421,20 +7543,20 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7421
7543
|
}, ref) {
|
|
7422
7544
|
const Link3 = linkComponent ?? "a";
|
|
7423
7545
|
const statusInfo = statusConfig2[status];
|
|
7424
|
-
return /* @__PURE__ */ (0,
|
|
7546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7425
7547
|
Card,
|
|
7426
7548
|
{
|
|
7427
7549
|
ref,
|
|
7428
7550
|
className: cn("flex h-full flex-col border-dashed bg-muted/30 shadow-none", className),
|
|
7429
7551
|
...props,
|
|
7430
|
-
children: /* @__PURE__ */ (0,
|
|
7431
|
-
/* @__PURE__ */ (0,
|
|
7432
|
-
logo && /* @__PURE__ */ (0,
|
|
7433
|
-
/* @__PURE__ */ (0,
|
|
7552
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(CardContent, { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
7553
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7554
|
+
logo && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "min-w-0 opacity-70", children: logo }),
|
|
7555
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7434
7556
|
] }),
|
|
7435
|
-
/* @__PURE__ */ (0,
|
|
7436
|
-
reason && /* @__PURE__ */ (0,
|
|
7437
|
-
href && /* @__PURE__ */ (0,
|
|
7557
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("h3", { className: "text-base font-semibold tracking-tight text-foreground/80", children: title }),
|
|
7558
|
+
reason && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-sm leading-relaxed text-muted-foreground", children: reason }),
|
|
7559
|
+
href && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7438
7560
|
Link3,
|
|
7439
7561
|
{
|
|
7440
7562
|
href,
|
|
@@ -7449,7 +7571,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7449
7571
|
|
|
7450
7572
|
// src/components/document-card/DocumentCard.tsx
|
|
7451
7573
|
var React88 = __toESM(require("react"));
|
|
7452
|
-
var
|
|
7574
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
7453
7575
|
var statusConfig3 = {
|
|
7454
7576
|
available: { label: "Available", variant: "success" },
|
|
7455
7577
|
restricted: { label: "Restricted", variant: "warning" },
|
|
@@ -7469,14 +7591,14 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7469
7591
|
}, ref) {
|
|
7470
7592
|
const statusInfo = statusConfig3[status];
|
|
7471
7593
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7472
|
-
return /* @__PURE__ */ (0,
|
|
7473
|
-
/* @__PURE__ */ (0,
|
|
7474
|
-
/* @__PURE__ */ (0,
|
|
7475
|
-
/* @__PURE__ */ (0,
|
|
7476
|
-
meta && /* @__PURE__ */ (0,
|
|
7594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(CardContent, { className: "flex items-center gap-3 p-4", children: [
|
|
7595
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("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__ */ (0, import_jsx_runtime90.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-wide", children: fileType }) }),
|
|
7596
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
7597
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "truncate text-sm font-medium", children: name }),
|
|
7598
|
+
meta && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
7477
7599
|
] }),
|
|
7478
|
-
/* @__PURE__ */ (0,
|
|
7479
|
-
onDownload && /* @__PURE__ */ (0,
|
|
7600
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Badge, { variant: statusInfo.variant, children: statusInfo.label }),
|
|
7601
|
+
onDownload && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
7480
7602
|
Button,
|
|
7481
7603
|
{
|
|
7482
7604
|
type: "button",
|
|
@@ -7493,7 +7615,7 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7493
7615
|
|
|
7494
7616
|
// src/components/load-more/LoadMore.tsx
|
|
7495
7617
|
var React89 = __toESM(require("react"));
|
|
7496
|
-
var
|
|
7618
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
7497
7619
|
var LoadMore = React89.forwardRef(function LoadMore2({
|
|
7498
7620
|
hasMore,
|
|
7499
7621
|
onLoadMore,
|
|
@@ -7504,17 +7626,24 @@ var LoadMore = React89.forwardRef(function LoadMore2({
|
|
|
7504
7626
|
className,
|
|
7505
7627
|
...props
|
|
7506
7628
|
}, ref) {
|
|
7507
|
-
return /* @__PURE__ */ (0,
|
|
7629
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { ref, "aria-live": "polite", className: cn("flex w-full justify-center py-4", className), ...props, children: hasMore ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Button, { type: "button", variant: "outline", onClick: onLoadMore, loading, children: loading ? loadingLabel : loadLabel }) : /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { role: "status", className: "text-sm text-muted-foreground", children: endLabel }) });
|
|
7508
7630
|
});
|
|
7509
7631
|
|
|
7510
7632
|
// src/components/segmented-control/SegmentedControl.tsx
|
|
7511
7633
|
var React90 = __toESM(require("react"));
|
|
7512
|
-
var
|
|
7634
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
7513
7635
|
var sizeClasses10 = {
|
|
7514
7636
|
sm: "h-8 px-2.5 text-xs",
|
|
7515
7637
|
md: "h-9 px-3 text-sm",
|
|
7516
7638
|
lg: "h-10 px-4 text-sm"
|
|
7517
7639
|
};
|
|
7640
|
+
var fullWidthBreakpoints = {
|
|
7641
|
+
sm: "max-sm",
|
|
7642
|
+
md: "max-md",
|
|
7643
|
+
lg: "max-lg",
|
|
7644
|
+
xl: "max-xl",
|
|
7645
|
+
"2xl": "max-2xl"
|
|
7646
|
+
};
|
|
7518
7647
|
var SegmentedControl = React90.forwardRef(
|
|
7519
7648
|
function SegmentedControl2({
|
|
7520
7649
|
options,
|
|
@@ -7536,6 +7665,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7536
7665
|
);
|
|
7537
7666
|
const current = isControlled ? value : internal;
|
|
7538
7667
|
const selected = multiple ? Array.isArray(current) ? current : [] : typeof current === "string" ? current : "";
|
|
7668
|
+
const fullWidthBelow = typeof fullWidth === "string" ? fullWidthBreakpoints[fullWidth] : null;
|
|
7539
7669
|
const linkMode = options.some((option) => option.href !== void 0);
|
|
7540
7670
|
const LinkEl = linkComponent ?? "a";
|
|
7541
7671
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
@@ -7589,7 +7719,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7589
7719
|
moveFocus("last");
|
|
7590
7720
|
}
|
|
7591
7721
|
};
|
|
7592
|
-
return /* @__PURE__ */ (0,
|
|
7722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7593
7723
|
"div",
|
|
7594
7724
|
{
|
|
7595
7725
|
ref,
|
|
@@ -7597,7 +7727,8 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7597
7727
|
"aria-label": ariaLabel,
|
|
7598
7728
|
className: cn(
|
|
7599
7729
|
"inline-flex items-center gap-1 rounded-lg border border-border bg-muted p-1",
|
|
7600
|
-
fullWidth && "flex w-full",
|
|
7730
|
+
fullWidth === true && "flex w-full",
|
|
7731
|
+
fullWidthBelow && `${fullWidthBelow}:flex ${fullWidthBelow}:w-full`,
|
|
7601
7732
|
className
|
|
7602
7733
|
),
|
|
7603
7734
|
...props,
|
|
@@ -7610,37 +7741,41 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7610
7741
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7611
7742
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
7612
7743
|
sizeClasses10[size],
|
|
7613
|
-
fullWidth && "flex-1",
|
|
7744
|
+
fullWidth === true && "flex-1",
|
|
7745
|
+
fullWidthBelow && `${fullWidthBelow}:flex-1`,
|
|
7614
7746
|
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
7615
7747
|
);
|
|
7616
|
-
const segmentContent = /* @__PURE__ */ (0,
|
|
7617
|
-
option.icon && /* @__PURE__ */ (0,
|
|
7618
|
-
/* @__PURE__ */ (0,
|
|
7748
|
+
const segmentContent = /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
|
|
7749
|
+
option.icon && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
7750
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "truncate", children: option.label }),
|
|
7751
|
+
option.hint && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { "aria-hidden": "true", className: "shrink-0 text-[10px] font-normal text-muted-foreground/70", children: option.hint })
|
|
7619
7752
|
] });
|
|
7620
7753
|
if (option.href !== void 0) {
|
|
7621
7754
|
if (option.disabled || active) {
|
|
7622
|
-
return /* @__PURE__ */ (0,
|
|
7755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7623
7756
|
"span",
|
|
7624
7757
|
{
|
|
7625
7758
|
"aria-current": active ? "page" : void 0,
|
|
7626
7759
|
"aria-disabled": option.disabled || void 0,
|
|
7760
|
+
"aria-description": option.hint,
|
|
7627
7761
|
className: cn(segmentClass, option.disabled && "opacity-50"),
|
|
7628
7762
|
children: segmentContent
|
|
7629
7763
|
},
|
|
7630
7764
|
option.value
|
|
7631
7765
|
);
|
|
7632
7766
|
}
|
|
7633
|
-
return /* @__PURE__ */ (0,
|
|
7767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7634
7768
|
LinkEl,
|
|
7635
7769
|
{
|
|
7636
7770
|
...destination(option.href),
|
|
7771
|
+
"aria-description": option.hint,
|
|
7637
7772
|
className: segmentClass,
|
|
7638
7773
|
children: segmentContent
|
|
7639
7774
|
},
|
|
7640
7775
|
option.value
|
|
7641
7776
|
);
|
|
7642
7777
|
}
|
|
7643
|
-
return /* @__PURE__ */ (0,
|
|
7778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7644
7779
|
"button",
|
|
7645
7780
|
{
|
|
7646
7781
|
ref: (node) => {
|
|
@@ -7651,6 +7786,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7651
7786
|
"aria-checked": multiple || linkMode ? void 0 : active,
|
|
7652
7787
|
"aria-pressed": multiple ? active : void 0,
|
|
7653
7788
|
"aria-current": linkMode && active ? "page" : void 0,
|
|
7789
|
+
"aria-description": option.hint,
|
|
7654
7790
|
disabled: option.disabled,
|
|
7655
7791
|
tabIndex: focusable ? 0 : -1,
|
|
7656
7792
|
onClick: () => select(option),
|
|
@@ -7668,7 +7804,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7668
7804
|
|
|
7669
7805
|
// src/components/range-slider/RangeSlider.tsx
|
|
7670
7806
|
var React91 = __toESM(require("react"));
|
|
7671
|
-
var
|
|
7807
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
7672
7808
|
var rangeInputClass = cn(
|
|
7673
7809
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
7674
7810
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
@@ -7708,21 +7844,21 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7708
7844
|
const span = max - min || 1;
|
|
7709
7845
|
const lowPercent = (low - min) / span * 100;
|
|
7710
7846
|
const highPercent = (high - min) / span * 100;
|
|
7711
|
-
return /* @__PURE__ */ (0,
|
|
7712
|
-
showValues && /* @__PURE__ */ (0,
|
|
7713
|
-
/* @__PURE__ */ (0,
|
|
7714
|
-
/* @__PURE__ */ (0,
|
|
7847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
7848
|
+
showValues && /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "mb-2 flex items-center justify-between text-sm font-medium tabular-nums", children: [
|
|
7849
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { children: formatValue(low) }),
|
|
7850
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { children: formatValue(high) })
|
|
7715
7851
|
] }),
|
|
7716
|
-
/* @__PURE__ */ (0,
|
|
7717
|
-
/* @__PURE__ */ (0,
|
|
7718
|
-
/* @__PURE__ */ (0,
|
|
7852
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "relative h-6 w-full", children: [
|
|
7853
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-border" }),
|
|
7854
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
7719
7855
|
"div",
|
|
7720
7856
|
{
|
|
7721
7857
|
className: "absolute top-1/2 h-1 -translate-y-1/2 rounded-full bg-primary",
|
|
7722
7858
|
style: { left: `${lowPercent}%`, right: `${100 - highPercent}%` }
|
|
7723
7859
|
}
|
|
7724
7860
|
),
|
|
7725
|
-
/* @__PURE__ */ (0,
|
|
7861
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
7726
7862
|
"input",
|
|
7727
7863
|
{
|
|
7728
7864
|
type: "range",
|
|
@@ -7737,7 +7873,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7737
7873
|
className: cn(rangeInputClass, "z-10")
|
|
7738
7874
|
}
|
|
7739
7875
|
),
|
|
7740
|
-
/* @__PURE__ */ (0,
|
|
7876
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
7741
7877
|
"input",
|
|
7742
7878
|
{
|
|
7743
7879
|
type: "range",
|
|
@@ -7758,7 +7894,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7758
7894
|
|
|
7759
7895
|
// src/components/filter-chips/FilterChips.tsx
|
|
7760
7896
|
var React92 = __toESM(require("react"));
|
|
7761
|
-
var
|
|
7897
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
7762
7898
|
var CHIP_SIZES = {
|
|
7763
7899
|
sm: {
|
|
7764
7900
|
chip: "gap-1 py-0.5 pl-2.5 pr-0.5 text-xs",
|
|
@@ -7790,10 +7926,10 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7790
7926
|
...props
|
|
7791
7927
|
}, ref) {
|
|
7792
7928
|
if (filters.length === 0) {
|
|
7793
|
-
return emptyLabel ? /* @__PURE__ */ (0,
|
|
7929
|
+
return emptyLabel ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7794
7930
|
}
|
|
7795
7931
|
const scale = CHIP_SIZES[size];
|
|
7796
|
-
return /* @__PURE__ */ (0,
|
|
7932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
7797
7933
|
"div",
|
|
7798
7934
|
{
|
|
7799
7935
|
ref,
|
|
@@ -7802,7 +7938,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7802
7938
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
7803
7939
|
...props,
|
|
7804
7940
|
children: [
|
|
7805
|
-
filters.map((filter) => /* @__PURE__ */ (0,
|
|
7941
|
+
filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
7806
7942
|
"span",
|
|
7807
7943
|
{
|
|
7808
7944
|
className: cn(
|
|
@@ -7810,15 +7946,15 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7810
7946
|
scale.chip
|
|
7811
7947
|
),
|
|
7812
7948
|
children: [
|
|
7813
|
-
/* @__PURE__ */ (0,
|
|
7814
|
-
/* @__PURE__ */ (0,
|
|
7949
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: "truncate", children: [
|
|
7950
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: "text-muted-foreground", children: [
|
|
7815
7951
|
filter.label,
|
|
7816
7952
|
":"
|
|
7817
7953
|
] }),
|
|
7818
7954
|
" ",
|
|
7819
|
-
/* @__PURE__ */ (0,
|
|
7955
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "font-medium", children: filter.value ?? "Any" })
|
|
7820
7956
|
] }),
|
|
7821
|
-
filter.onRemove && /* @__PURE__ */ (0,
|
|
7957
|
+
filter.onRemove && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7822
7958
|
"button",
|
|
7823
7959
|
{
|
|
7824
7960
|
type: "button",
|
|
@@ -7828,14 +7964,14 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7828
7964
|
"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",
|
|
7829
7965
|
scale.remove
|
|
7830
7966
|
),
|
|
7831
|
-
children: /* @__PURE__ */ (0,
|
|
7967
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: scale.icon, fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7832
7968
|
}
|
|
7833
7969
|
)
|
|
7834
7970
|
]
|
|
7835
7971
|
},
|
|
7836
7972
|
filter.key
|
|
7837
7973
|
)),
|
|
7838
|
-
onClearAll && /* @__PURE__ */ (0,
|
|
7974
|
+
onClearAll && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7839
7975
|
"button",
|
|
7840
7976
|
{
|
|
7841
7977
|
type: "button",
|
|
@@ -7854,7 +7990,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7854
7990
|
|
|
7855
7991
|
// src/components/multi-select/MultiSelect.tsx
|
|
7856
7992
|
var React93 = __toESM(require("react"));
|
|
7857
|
-
var
|
|
7993
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
7858
7994
|
var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
7859
7995
|
options,
|
|
7860
7996
|
value,
|
|
@@ -7899,16 +8035,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7899
8035
|
}, [filtered]);
|
|
7900
8036
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
7901
8037
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
7902
|
-
return /* @__PURE__ */ (0,
|
|
7903
|
-
label && /* @__PURE__ */ (0,
|
|
7904
|
-
visibleChips.length > 0 && /* @__PURE__ */ (0,
|
|
7905
|
-
visibleChips.map((option) => /* @__PURE__ */ (0,
|
|
8038
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { ref, className: cn("flex flex-col gap-2", className), ...props, children: [
|
|
8039
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { id: labelId, className: "text-sm font-medium", children: label }),
|
|
8040
|
+
visibleChips.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
8041
|
+
visibleChips.map((option) => /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
7906
8042
|
"span",
|
|
7907
8043
|
{
|
|
7908
8044
|
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",
|
|
7909
8045
|
children: [
|
|
7910
|
-
/* @__PURE__ */ (0,
|
|
7911
|
-
/* @__PURE__ */ (0,
|
|
8046
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "truncate", children: option.label }),
|
|
8047
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7912
8048
|
"button",
|
|
7913
8049
|
{
|
|
7914
8050
|
type: "button",
|
|
@@ -7916,26 +8052,26 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7916
8052
|
disabled,
|
|
7917
8053
|
"aria-label": `Remove ${option.label}`,
|
|
7918
8054
|
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",
|
|
7919
|
-
children: /* @__PURE__ */ (0,
|
|
8055
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7920
8056
|
}
|
|
7921
8057
|
)
|
|
7922
8058
|
]
|
|
7923
8059
|
},
|
|
7924
8060
|
option.value
|
|
7925
8061
|
)),
|
|
7926
|
-
hiddenCount > 0 && /* @__PURE__ */ (0,
|
|
8062
|
+
hiddenCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("span", { className: "self-center text-xs text-muted-foreground", children: [
|
|
7927
8063
|
"+",
|
|
7928
8064
|
hiddenCount,
|
|
7929
8065
|
" more"
|
|
7930
8066
|
] })
|
|
7931
8067
|
] }),
|
|
7932
|
-
/* @__PURE__ */ (0,
|
|
7933
|
-
/* @__PURE__ */ (0,
|
|
7934
|
-
/* @__PURE__ */ (0,
|
|
7935
|
-
/* @__PURE__ */ (0,
|
|
8068
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
8069
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(PopoverTrigger, { "aria-labelledby": label ? labelId : void 0, disabled, className: "w-full justify-between", children: [
|
|
8070
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { children: selected.length > 0 ? `${selected.length} selected` : triggerLabel }),
|
|
8071
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2304" })
|
|
7936
8072
|
] }),
|
|
7937
|
-
/* @__PURE__ */ (0,
|
|
7938
|
-
/* @__PURE__ */ (0,
|
|
8073
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(PopoverContent, { className: "w-80 p-0", children: [
|
|
8074
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7939
8075
|
Input,
|
|
7940
8076
|
{
|
|
7941
8077
|
type: "search",
|
|
@@ -7946,9 +8082,9 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7946
8082
|
autoFocus: true
|
|
7947
8083
|
}
|
|
7948
8084
|
) }),
|
|
7949
|
-
/* @__PURE__ */ (0,
|
|
7950
|
-
heading && /* @__PURE__ */ (0,
|
|
7951
|
-
/* @__PURE__ */ (0,
|
|
8085
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "max-h-64 overflow-y-auto p-1", children: groups.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "px-3 py-3 text-sm text-muted-foreground", children: emptyText }) : groups.map(({ option, heading }) => /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(React93.Fragment, { children: [
|
|
8086
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "px-3 pb-1 pt-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: heading }),
|
|
8087
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
7952
8088
|
"label",
|
|
7953
8089
|
{
|
|
7954
8090
|
className: cn(
|
|
@@ -7956,7 +8092,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7956
8092
|
option.disabled && "cursor-not-allowed opacity-50"
|
|
7957
8093
|
),
|
|
7958
8094
|
children: [
|
|
7959
|
-
/* @__PURE__ */ (0,
|
|
8095
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7960
8096
|
Checkbox,
|
|
7961
8097
|
{
|
|
7962
8098
|
checked: selected.includes(option.value),
|
|
@@ -7965,16 +8101,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7965
8101
|
className: "mt-0.5"
|
|
7966
8102
|
}
|
|
7967
8103
|
),
|
|
7968
|
-
/* @__PURE__ */ (0,
|
|
7969
|
-
/* @__PURE__ */ (0,
|
|
7970
|
-
option.description && /* @__PURE__ */ (0,
|
|
8104
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("span", { className: "min-w-0", children: [
|
|
8105
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "block", children: option.label }),
|
|
8106
|
+
option.description && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: option.description })
|
|
7971
8107
|
] })
|
|
7972
8108
|
]
|
|
7973
8109
|
}
|
|
7974
8110
|
)
|
|
7975
8111
|
] }, option.value)) }),
|
|
7976
|
-
/* @__PURE__ */ (0,
|
|
7977
|
-
/* @__PURE__ */ (0,
|
|
8112
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex items-center justify-between gap-2 border-t border-border p-2", children: [
|
|
8113
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7978
8114
|
Button,
|
|
7979
8115
|
{
|
|
7980
8116
|
type: "button",
|
|
@@ -7984,7 +8120,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7984
8120
|
children: "Select all"
|
|
7985
8121
|
}
|
|
7986
8122
|
),
|
|
7987
|
-
/* @__PURE__ */ (0,
|
|
8123
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => commit([]), children: "Clear" })
|
|
7988
8124
|
] })
|
|
7989
8125
|
] })
|
|
7990
8126
|
] })
|
|
@@ -7993,7 +8129,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7993
8129
|
|
|
7994
8130
|
// src/components/filter-panel/FilterPanel.tsx
|
|
7995
8131
|
var React94 = __toESM(require("react"));
|
|
7996
|
-
var
|
|
8132
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
7997
8133
|
var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
7998
8134
|
sections,
|
|
7999
8135
|
title = "Filters",
|
|
@@ -8023,16 +8159,16 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
8023
8159
|
(current) => current.includes(index) ? current.filter((entry) => entry !== index) : [...current, index]
|
|
8024
8160
|
);
|
|
8025
8161
|
};
|
|
8026
|
-
return /* @__PURE__ */ (0,
|
|
8027
|
-
(title || description) && /* @__PURE__ */ (0,
|
|
8028
|
-
title && /* @__PURE__ */ (0,
|
|
8029
|
-
description && /* @__PURE__ */ (0,
|
|
8162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
8163
|
+
(title || description) && /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "border-b border-border px-4 py-3", children: [
|
|
8164
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("h2", { className: "text-sm font-semibold", children: title }),
|
|
8165
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
8030
8166
|
] }),
|
|
8031
|
-
/* @__PURE__ */ (0,
|
|
8167
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "divide-y divide-border", children: sections.map((section, index) => {
|
|
8032
8168
|
const expanded = isOpen(index);
|
|
8033
8169
|
const sectionId = `filter-section-${index}`;
|
|
8034
|
-
return /* @__PURE__ */ (0,
|
|
8035
|
-
/* @__PURE__ */ (0,
|
|
8170
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "px-4 py-3", children: [
|
|
8171
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("h3", { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
8036
8172
|
"button",
|
|
8037
8173
|
{
|
|
8038
8174
|
type: "button",
|
|
@@ -8045,28 +8181,28 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
8045
8181
|
collapsible && "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8046
8182
|
),
|
|
8047
8183
|
children: [
|
|
8048
|
-
/* @__PURE__ */ (0,
|
|
8184
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("span", { children: [
|
|
8049
8185
|
section.title,
|
|
8050
|
-
section.description && /* @__PURE__ */ (0,
|
|
8186
|
+
section.description && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "mt-0.5 block text-xs font-normal text-muted-foreground", children: section.description })
|
|
8051
8187
|
] }),
|
|
8052
|
-
collapsible && /* @__PURE__ */ (0,
|
|
8188
|
+
collapsible && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { "aria-hidden": "true", className: cn("text-muted-foreground transition-transform", expanded && "rotate-180"), children: "\u2304" })
|
|
8053
8189
|
]
|
|
8054
8190
|
}
|
|
8055
8191
|
) }),
|
|
8056
|
-
expanded && /* @__PURE__ */ (0,
|
|
8192
|
+
expanded && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
8057
8193
|
] }, index);
|
|
8058
8194
|
}) }),
|
|
8059
|
-
(onReset || onApply || actions) && /* @__PURE__ */ (0,
|
|
8195
|
+
(onReset || onApply || actions) && /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
8060
8196
|
actions,
|
|
8061
|
-
onReset && /* @__PURE__ */ (0,
|
|
8062
|
-
onApply && /* @__PURE__ */ (0,
|
|
8197
|
+
onReset && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, className: "ml-auto", children: resetLabel }),
|
|
8198
|
+
onApply && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Button, { type: "button", size: "sm", onClick: onApply, children: applyLabel })
|
|
8063
8199
|
] })
|
|
8064
8200
|
] });
|
|
8065
8201
|
});
|
|
8066
8202
|
|
|
8067
8203
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
8068
8204
|
var React95 = __toESM(require("react"));
|
|
8069
|
-
var
|
|
8205
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
8070
8206
|
var DEFAULT_PRESETS = [
|
|
8071
8207
|
{ label: "7 days", days: 7 },
|
|
8072
8208
|
{ label: "30 days", days: 30 },
|
|
@@ -8118,8 +8254,8 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8118
8254
|
}
|
|
8119
8255
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
8120
8256
|
};
|
|
8121
|
-
return /* @__PURE__ */ (0,
|
|
8122
|
-
showPresets && presets.length > 0 && /* @__PURE__ */ (0,
|
|
8257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { ref, className: cn("flex flex-col gap-3", className), ...props, children: [
|
|
8258
|
+
showPresets && presets.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex flex-wrap gap-2", children: presets.map((preset) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8123
8259
|
Button,
|
|
8124
8260
|
{
|
|
8125
8261
|
type: "button",
|
|
@@ -8131,10 +8267,10 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8131
8267
|
},
|
|
8132
8268
|
preset.label
|
|
8133
8269
|
)) }),
|
|
8134
|
-
/* @__PURE__ */ (0,
|
|
8135
|
-
/* @__PURE__ */ (0,
|
|
8136
|
-
/* @__PURE__ */ (0,
|
|
8137
|
-
/* @__PURE__ */ (0,
|
|
8270
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
8271
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { children: [
|
|
8272
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
8273
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8138
8274
|
DatePicker,
|
|
8139
8275
|
{
|
|
8140
8276
|
id: startId,
|
|
@@ -8146,9 +8282,9 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8146
8282
|
}
|
|
8147
8283
|
)
|
|
8148
8284
|
] }),
|
|
8149
|
-
/* @__PURE__ */ (0,
|
|
8150
|
-
/* @__PURE__ */ (0,
|
|
8151
|
-
/* @__PURE__ */ (0,
|
|
8285
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { children: [
|
|
8286
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
8287
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8152
8288
|
DatePicker,
|
|
8153
8289
|
{
|
|
8154
8290
|
id: endId,
|
|
@@ -8167,7 +8303,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8167
8303
|
|
|
8168
8304
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
8169
8305
|
var React96 = __toESM(require("react"));
|
|
8170
|
-
var
|
|
8306
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
8171
8307
|
var AppliedFilters = React96.forwardRef(
|
|
8172
8308
|
function AppliedFilters2({
|
|
8173
8309
|
filters,
|
|
@@ -8181,9 +8317,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8181
8317
|
}, ref) {
|
|
8182
8318
|
const summary = label ?? `${filters.length} active`;
|
|
8183
8319
|
if (filters.length === 0) {
|
|
8184
|
-
return emptyLabel ? /* @__PURE__ */ (0,
|
|
8320
|
+
return emptyLabel ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
8185
8321
|
}
|
|
8186
|
-
return /* @__PURE__ */ (0,
|
|
8322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
8187
8323
|
"div",
|
|
8188
8324
|
{
|
|
8189
8325
|
ref,
|
|
@@ -8191,9 +8327,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8191
8327
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
8192
8328
|
...props,
|
|
8193
8329
|
children: [
|
|
8194
|
-
/* @__PURE__ */ (0,
|
|
8195
|
-
/* @__PURE__ */ (0,
|
|
8196
|
-
onEdit && /* @__PURE__ */ (0,
|
|
8330
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: summary }),
|
|
8331
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(FilterChips, { filters, onClearAll }),
|
|
8332
|
+
onEdit && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: onEdit, children: editLabel })
|
|
8197
8333
|
]
|
|
8198
8334
|
}
|
|
8199
8335
|
);
|
|
@@ -8204,7 +8340,7 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8204
8340
|
var React97 = __toESM(require("react"));
|
|
8205
8341
|
var import_react_dom8 = require("react-dom");
|
|
8206
8342
|
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
8207
|
-
var
|
|
8343
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
8208
8344
|
var MenuContext = React97.createContext({
|
|
8209
8345
|
open: false,
|
|
8210
8346
|
setOpen: () => {
|
|
@@ -8236,7 +8372,7 @@ var Menu = React97.forwardRef(
|
|
|
8236
8372
|
},
|
|
8237
8373
|
[open, onOpenChange]
|
|
8238
8374
|
);
|
|
8239
|
-
return /* @__PURE__ */ (0,
|
|
8375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8240
8376
|
MenuContext.Provider,
|
|
8241
8377
|
{
|
|
8242
8378
|
value: { open: current, setOpen, activeIndex, setActiveIndex, wrapperRef },
|
|
@@ -8249,7 +8385,7 @@ Menu.displayName = "Menu";
|
|
|
8249
8385
|
var MenuTrigger = React97.forwardRef(
|
|
8250
8386
|
({ className, children, ...props }, ref) => {
|
|
8251
8387
|
const { open, setOpen } = React97.useContext(MenuContext);
|
|
8252
|
-
return /* @__PURE__ */ (0,
|
|
8388
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8253
8389
|
"button",
|
|
8254
8390
|
{
|
|
8255
8391
|
ref,
|
|
@@ -8351,7 +8487,7 @@ var MenuContent = React97.forwardRef(
|
|
|
8351
8487
|
};
|
|
8352
8488
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
8353
8489
|
return (0, import_react_dom8.createPortal)(
|
|
8354
|
-
/* @__PURE__ */ (0,
|
|
8490
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8355
8491
|
"div",
|
|
8356
8492
|
{
|
|
8357
8493
|
ref: (node) => {
|
|
@@ -8380,7 +8516,7 @@ var MenuItem = React97.forwardRef(
|
|
|
8380
8516
|
const { setOpen } = React97.useContext(MenuContext);
|
|
8381
8517
|
const Comp = asChild ? import_react_slot5.Slot : "button";
|
|
8382
8518
|
const typeProp = asChild ? {} : { type: "button" };
|
|
8383
|
-
return /* @__PURE__ */ (0,
|
|
8519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8384
8520
|
Comp,
|
|
8385
8521
|
{
|
|
8386
8522
|
ref,
|
|
@@ -8403,11 +8539,11 @@ var MenuItem = React97.forwardRef(
|
|
|
8403
8539
|
);
|
|
8404
8540
|
MenuItem.displayName = "MenuItem";
|
|
8405
8541
|
var MenuSeparator = React97.forwardRef(
|
|
8406
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8542
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { ref, role: "separator", className: cn("-mx-1 my-1 h-px bg-border", className), ...props })
|
|
8407
8543
|
);
|
|
8408
8544
|
MenuSeparator.displayName = "MenuSeparator";
|
|
8409
8545
|
var MenuLabel = React97.forwardRef(
|
|
8410
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8546
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8411
8547
|
"div",
|
|
8412
8548
|
{
|
|
8413
8549
|
ref,
|
|
@@ -8421,7 +8557,7 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
8421
8557
|
// src/components/alert/Alert.tsx
|
|
8422
8558
|
var React98 = __toESM(require("react"));
|
|
8423
8559
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
8424
|
-
var
|
|
8560
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
8425
8561
|
var alertVariants = (0, import_class_variance_authority8.cva)(
|
|
8426
8562
|
"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",
|
|
8427
8563
|
{
|
|
@@ -8442,7 +8578,7 @@ var alertVariants = (0, import_class_variance_authority8.cva)(
|
|
|
8442
8578
|
}
|
|
8443
8579
|
);
|
|
8444
8580
|
var Alert = React98.forwardRef(
|
|
8445
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8581
|
+
({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8446
8582
|
"div",
|
|
8447
8583
|
{
|
|
8448
8584
|
ref,
|
|
@@ -8454,7 +8590,7 @@ var Alert = React98.forwardRef(
|
|
|
8454
8590
|
);
|
|
8455
8591
|
Alert.displayName = "Alert";
|
|
8456
8592
|
var AlertTitle = React98.forwardRef(
|
|
8457
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8593
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8458
8594
|
"h5",
|
|
8459
8595
|
{
|
|
8460
8596
|
ref,
|
|
@@ -8465,7 +8601,7 @@ var AlertTitle = React98.forwardRef(
|
|
|
8465
8601
|
);
|
|
8466
8602
|
AlertTitle.displayName = "AlertTitle";
|
|
8467
8603
|
var AlertDescription = React98.forwardRef(
|
|
8468
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8604
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8469
8605
|
"div",
|
|
8470
8606
|
{
|
|
8471
8607
|
ref,
|
|
@@ -8478,22 +8614,22 @@ AlertDescription.displayName = "AlertDescription";
|
|
|
8478
8614
|
|
|
8479
8615
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
8480
8616
|
var React99 = __toESM(require("react"));
|
|
8481
|
-
var
|
|
8617
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
8482
8618
|
var Breadcrumb = React99.forwardRef(
|
|
8483
8619
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
8484
8620
|
const LinkEl = linkComponent ?? "a";
|
|
8485
|
-
return /* @__PURE__ */ (0,
|
|
8621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
8486
8622
|
"nav",
|
|
8487
8623
|
{
|
|
8488
8624
|
ref,
|
|
8489
8625
|
"aria-label": label,
|
|
8490
8626
|
className: cn("flex items-center space-x-1.5 text-sm text-muted-foreground", className),
|
|
8491
8627
|
...props,
|
|
8492
|
-
children: /* @__PURE__ */ (0,
|
|
8628
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("ol", { className: "flex flex-wrap items-center space-x-1.5", children: items.map((item, index) => {
|
|
8493
8629
|
const isLast = index === items.length - 1;
|
|
8494
|
-
return /* @__PURE__ */ (0,
|
|
8495
|
-
index > 0 && /* @__PURE__ */ (0,
|
|
8496
|
-
item.href && !isLast ? /* @__PURE__ */ (0,
|
|
8630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("li", { className: cn("flex items-center space-x-1.5", truncateCurrent && isLast && "min-w-0"), children: [
|
|
8631
|
+
index > 0 && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { "aria-hidden": "true", className: "text-muted-foreground/50", children: separator }),
|
|
8632
|
+
item.href && !isLast ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
8497
8633
|
LinkEl,
|
|
8498
8634
|
{
|
|
8499
8635
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -8504,7 +8640,7 @@ var Breadcrumb = React99.forwardRef(
|
|
|
8504
8640
|
} : void 0,
|
|
8505
8641
|
children: item.label
|
|
8506
8642
|
}
|
|
8507
|
-
) : /* @__PURE__ */ (0,
|
|
8643
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
8508
8644
|
"span",
|
|
8509
8645
|
{
|
|
8510
8646
|
"aria-current": isLast ? "page" : void 0,
|
|
@@ -8601,6 +8737,7 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
8601
8737
|
LinkTabs,
|
|
8602
8738
|
List,
|
|
8603
8739
|
ListItem,
|
|
8740
|
+
ListToolbar,
|
|
8604
8741
|
LoadMore,
|
|
8605
8742
|
LogoCloud,
|
|
8606
8743
|
Menu,
|