@slipstream-ui/core 0.11.8 → 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 +61 -9
- package/dist/index.d.ts +61 -9
- package/dist/index.js +604 -469
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +603 -469
- 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 +1 -1
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +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 +1 -1
- package/dist/manifests/site-header.manifest.json +1 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +1 -1
- package/dist/manifests/stepper.manifest.json +1 -1
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +1 -1
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +1 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +1 -1
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/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/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/index.d.ts +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/components/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/segmented-control/SegmentedControl.test.tsx +51 -0
- package/src/components/segmented-control/SegmentedControl.tsx +36 -4
- 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 +1 -1
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +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 +1 -1
- package/src/manifests/site-header.manifest.json +1 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +1 -1
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +1 -1
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +1 -1
- package/src/manifests/tooltip.manifest.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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
|
}
|
|
@@ -4543,6 +4545,13 @@ Pagination.displayName = "Pagination";
|
|
|
4543
4545
|
|
|
4544
4546
|
// src/components/data-table/DataTable.tsx
|
|
4545
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
|
+
};
|
|
4546
4555
|
function compareValues(a, b) {
|
|
4547
4556
|
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
4548
4557
|
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
@@ -4577,6 +4586,7 @@ function DataTable({
|
|
|
4577
4586
|
stickyHeader,
|
|
4578
4587
|
density = "default",
|
|
4579
4588
|
zebra,
|
|
4589
|
+
cardLayout,
|
|
4580
4590
|
loading,
|
|
4581
4591
|
loadingRows,
|
|
4582
4592
|
className
|
|
@@ -4650,134 +4660,203 @@ function DataTable({
|
|
|
4650
4660
|
if (typeof raw === "string" || typeof raw === "number") return raw;
|
|
4651
4661
|
return String(raw);
|
|
4652
4662
|
};
|
|
4663
|
+
const cardBreakpoint = typeof cardLayout === "string" ? cardLayout : cardLayout ? "md" : null;
|
|
4664
|
+
const cardClasses = cardBreakpoint ? cardBreakpointClasses[cardBreakpoint] : null;
|
|
4653
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
|
+
};
|
|
4654
4681
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: cn("w-full space-y-3", className), children: [
|
|
4655
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: [
|
|
4656
4683
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "font-medium", children: selectedLabel.replace("{count}", String(selectedIds.length)) }),
|
|
4657
4684
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-wrap items-center gap-2", children: bulkActions })
|
|
4658
4685
|
] }),
|
|
4659
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4660
|
-
"
|
|
4686
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4687
|
+
"div",
|
|
4661
4688
|
{
|
|
4662
|
-
className: cn("w-full
|
|
4663
|
-
children:
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
{
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
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",
|
|
4682
4753
|
{
|
|
4683
|
-
|
|
4684
|
-
|
|
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,
|
|
4685
4762
|
className: cn(
|
|
4686
|
-
"border-b border-border
|
|
4687
|
-
|
|
4688
|
-
|
|
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"
|
|
4689
4766
|
),
|
|
4690
|
-
children:
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
type: "button",
|
|
4694
|
-
onClick: () => applySort(column.key),
|
|
4695
|
-
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",
|
|
4696
|
-
children: [
|
|
4697
|
-
column.header,
|
|
4698
|
-
/* @__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" })
|
|
4699
|
-
]
|
|
4700
|
-
}
|
|
4701
|
-
) : column.header
|
|
4702
|
-
},
|
|
4703
|
-
column.key
|
|
4704
|
-
);
|
|
4705
|
-
})
|
|
4706
|
-
] }) }),
|
|
4707
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("tbody", { "aria-busy": loading || void 0, children: loading ? Array.from(
|
|
4708
|
-
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
4709
|
-
(_, skeletonRow) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("tr", { children: [
|
|
4710
|
-
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" }) }),
|
|
4711
|
-
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))
|
|
4712
|
-
] }, `skeleton-${skeletonRow}`)
|
|
4713
|
-
) : visible.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4714
|
-
"td",
|
|
4715
|
-
{
|
|
4716
|
-
colSpan: columns.length + (selectionEnabled ? 1 : 0),
|
|
4717
|
-
className: "px-3 py-8 text-center text-sm text-muted-foreground",
|
|
4718
|
-
children: emptyMessage
|
|
4719
|
-
}
|
|
4720
|
-
) }) : visible.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
4721
|
-
"tr",
|
|
4722
|
-
{
|
|
4723
|
-
tabIndex: onRowClick ? 0 : void 0,
|
|
4724
|
-
onClick: onRowClick ? () => onRowClick(row) : void 0,
|
|
4725
|
-
onKeyDown: onRowClick ? (event) => {
|
|
4726
|
-
if (event.key === "Enter" || event.key === " ") {
|
|
4727
|
-
event.preventDefault();
|
|
4728
|
-
onRowClick(row);
|
|
4729
|
-
}
|
|
4730
|
-
} : void 0,
|
|
4731
|
-
className: cn(
|
|
4732
|
-
"border-b border-border last:border-0",
|
|
4733
|
-
zebra && "[&:nth-child(odd)]:bg-muted/30",
|
|
4734
|
-
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"
|
|
4735
|
-
),
|
|
4736
|
-
children: [
|
|
4737
|
-
selectionEnabled && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4738
|
-
"td",
|
|
4739
|
-
{
|
|
4740
|
-
className: cn("align-middle", density === "compact" ? "px-2 py-1" : "px-3 py-2"),
|
|
4741
|
-
onClick: (event) => event.stopPropagation(),
|
|
4742
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4743
|
-
Checkbox,
|
|
4767
|
+
children: [
|
|
4768
|
+
selectionEnabled && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4769
|
+
"td",
|
|
4744
4770
|
{
|
|
4745
|
-
"
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
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
|
+
)
|
|
4749
4782
|
}
|
|
4750
|
-
)
|
|
4751
|
-
}
|
|
4752
|
-
),
|
|
4753
|
-
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4754
|
-
"td",
|
|
4755
|
-
{
|
|
4756
|
-
className: cn(
|
|
4757
|
-
"align-middle",
|
|
4758
|
-
density === "compact" ? "px-2 py-1" : "px-3 py-2",
|
|
4759
|
-
alignClass(column.align),
|
|
4760
|
-
column.className
|
|
4761
4783
|
),
|
|
4762
|
-
|
|
4763
|
-
"
|
|
4784
|
+
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4785
|
+
"td",
|
|
4764
4786
|
{
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
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)) })
|
|
4778
4857
|
]
|
|
4779
4858
|
}
|
|
4780
|
-
) }),
|
|
4859
|
+
) }, rowId(row))) }),
|
|
4781
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: [
|
|
4782
4861
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
4783
4862
|
"p",
|
|
@@ -5438,9 +5517,50 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5438
5517
|
);
|
|
5439
5518
|
});
|
|
5440
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
|
+
|
|
5441
5561
|
// src/components/date-picker/DatePicker.tsx
|
|
5442
5562
|
var React60 = __toESM(require("react"));
|
|
5443
|
-
var
|
|
5563
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5444
5564
|
var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
5445
5565
|
const [internal, setInternal] = React60.useState(defaultValue ?? "");
|
|
5446
5566
|
const current = value ?? internal;
|
|
@@ -5448,8 +5568,8 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5448
5568
|
if (value === void 0) setInternal(next);
|
|
5449
5569
|
onValueChange?.(next);
|
|
5450
5570
|
};
|
|
5451
|
-
return /* @__PURE__ */ (0,
|
|
5452
|
-
/* @__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)(
|
|
5453
5573
|
Input,
|
|
5454
5574
|
{
|
|
5455
5575
|
ref,
|
|
@@ -5463,7 +5583,7 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5463
5583
|
...props
|
|
5464
5584
|
}
|
|
5465
5585
|
),
|
|
5466
|
-
clearable && current && /* @__PURE__ */ (0,
|
|
5586
|
+
clearable && current && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5467
5587
|
"button",
|
|
5468
5588
|
{
|
|
5469
5589
|
type: "button",
|
|
@@ -5549,7 +5669,7 @@ function computePosition({
|
|
|
5549
5669
|
}
|
|
5550
5670
|
|
|
5551
5671
|
// src/components/popover/Popover.tsx
|
|
5552
|
-
var
|
|
5672
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5553
5673
|
var PopoverContext = React61.createContext({
|
|
5554
5674
|
open: false,
|
|
5555
5675
|
setOpen: () => {
|
|
@@ -5584,7 +5704,7 @@ var Popover = React61.forwardRef(
|
|
|
5584
5704
|
},
|
|
5585
5705
|
[open, onOpenChange]
|
|
5586
5706
|
);
|
|
5587
|
-
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)(
|
|
5588
5708
|
PopoverContext.Provider,
|
|
5589
5709
|
{
|
|
5590
5710
|
value: { open: current, setOpen, triggerId, contentId, wrapperRef, anchorRef, triggerRef },
|
|
@@ -5605,7 +5725,7 @@ var PopoverTrigger = React61.forwardRef(
|
|
|
5605
5725
|
},
|
|
5606
5726
|
[ref, triggerRef]
|
|
5607
5727
|
);
|
|
5608
|
-
return /* @__PURE__ */ (0,
|
|
5728
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5609
5729
|
"button",
|
|
5610
5730
|
{
|
|
5611
5731
|
ref: setRefs,
|
|
@@ -5641,7 +5761,7 @@ var PopoverAnchor = React61.forwardRef(
|
|
|
5641
5761
|
},
|
|
5642
5762
|
[anchorRef, ref]
|
|
5643
5763
|
);
|
|
5644
|
-
return /* @__PURE__ */ (0,
|
|
5764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { ref: setRefs, className: cn("inline-block", className), ...props, children });
|
|
5645
5765
|
}
|
|
5646
5766
|
);
|
|
5647
5767
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
@@ -5741,7 +5861,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5741
5861
|
}, [open, pos]);
|
|
5742
5862
|
if (!open || typeof document === "undefined") return null;
|
|
5743
5863
|
return (0, import_react_dom7.createPortal)(
|
|
5744
|
-
/* @__PURE__ */ (0,
|
|
5864
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5745
5865
|
"div",
|
|
5746
5866
|
{
|
|
5747
5867
|
ref: (node) => {
|
|
@@ -5786,7 +5906,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5786
5906
|
PopoverContent.displayName = "PopoverContent";
|
|
5787
5907
|
|
|
5788
5908
|
// src/components/date-picker-popover/DatePickerPopover.tsx
|
|
5789
|
-
var
|
|
5909
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5790
5910
|
var DatePickerPopover = React62.forwardRef(
|
|
5791
5911
|
({
|
|
5792
5912
|
value,
|
|
@@ -5819,9 +5939,9 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5819
5939
|
[ref]
|
|
5820
5940
|
);
|
|
5821
5941
|
const label = value ? formatDateLabel(value, locale) : placeholder;
|
|
5822
|
-
return /* @__PURE__ */ (0,
|
|
5823
|
-
/* @__PURE__ */ (0,
|
|
5824
|
-
/* @__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)(
|
|
5825
5945
|
PopoverTrigger,
|
|
5826
5946
|
{
|
|
5827
5947
|
ref: setTriggerRef,
|
|
@@ -5839,7 +5959,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5839
5959
|
children: label
|
|
5840
5960
|
}
|
|
5841
5961
|
),
|
|
5842
|
-
/* @__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)(
|
|
5843
5963
|
Calendar,
|
|
5844
5964
|
{
|
|
5845
5965
|
value,
|
|
@@ -5857,7 +5977,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5857
5977
|
}
|
|
5858
5978
|
) })
|
|
5859
5979
|
] }),
|
|
5860
|
-
name ? /* @__PURE__ */ (0,
|
|
5980
|
+
name ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("input", { type: "hidden", name, value: value ?? "", required }) : null
|
|
5861
5981
|
] });
|
|
5862
5982
|
}
|
|
5863
5983
|
);
|
|
@@ -5865,7 +5985,7 @@ DatePickerPopover.displayName = "DatePickerPopover";
|
|
|
5865
5985
|
|
|
5866
5986
|
// src/components/time-picker/TimePicker.tsx
|
|
5867
5987
|
var React63 = __toESM(require("react"));
|
|
5868
|
-
var
|
|
5988
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5869
5989
|
var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
5870
5990
|
const [internal, setInternal] = React63.useState(defaultValue ?? "");
|
|
5871
5991
|
const current = value ?? internal;
|
|
@@ -5873,8 +5993,8 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5873
5993
|
if (value === void 0) setInternal(next);
|
|
5874
5994
|
onValueChange?.(next);
|
|
5875
5995
|
};
|
|
5876
|
-
return /* @__PURE__ */ (0,
|
|
5877
|
-
/* @__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)(
|
|
5878
5998
|
Input,
|
|
5879
5999
|
{
|
|
5880
6000
|
ref,
|
|
@@ -5888,7 +6008,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5888
6008
|
...props
|
|
5889
6009
|
}
|
|
5890
6010
|
),
|
|
5891
|
-
clearable && current && /* @__PURE__ */ (0,
|
|
6011
|
+
clearable && current && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5892
6012
|
"button",
|
|
5893
6013
|
{
|
|
5894
6014
|
type: "button",
|
|
@@ -5903,7 +6023,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5903
6023
|
|
|
5904
6024
|
// src/components/stepper/Stepper.tsx
|
|
5905
6025
|
var React64 = __toESM(require("react"));
|
|
5906
|
-
var
|
|
6026
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5907
6027
|
var Stepper = React64.forwardRef(function Stepper2({
|
|
5908
6028
|
steps,
|
|
5909
6029
|
current,
|
|
@@ -5927,7 +6047,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5927
6047
|
const verticalTitlePad = size === "sm" ? "pt-0.5" : "pt-1";
|
|
5928
6048
|
const connectorTop = variant === "dots" ? size === "sm" ? "mt-1" : "mt-[5px]" : size === "sm" ? "mt-3" : "mt-3.5";
|
|
5929
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";
|
|
5930
|
-
return /* @__PURE__ */ (0,
|
|
6050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5931
6051
|
"ol",
|
|
5932
6052
|
{
|
|
5933
6053
|
ref,
|
|
@@ -5941,7 +6061,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5941
6061
|
const isLast = index === steps.length - 1;
|
|
5942
6062
|
const titleCentered = alignTitles === "center" && !step.description;
|
|
5943
6063
|
const below = !vertical && labelPlacement === "below";
|
|
5944
|
-
const marker = /* @__PURE__ */ (0,
|
|
6064
|
+
const marker = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5945
6065
|
"span",
|
|
5946
6066
|
{
|
|
5947
6067
|
"aria-hidden": "true",
|
|
@@ -5963,8 +6083,8 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5963
6083
|
children: variant === "numbered" ? state === "complete" ? "\u2713" : index + 1 : null
|
|
5964
6084
|
}
|
|
5965
6085
|
);
|
|
5966
|
-
const label = /* @__PURE__ */ (0,
|
|
5967
|
-
/* @__PURE__ */ (0,
|
|
6086
|
+
const label = /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { className: "min-w-0", children: [
|
|
6087
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5968
6088
|
"span",
|
|
5969
6089
|
{
|
|
5970
6090
|
className: cn(
|
|
@@ -5976,7 +6096,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5976
6096
|
children: step.label
|
|
5977
6097
|
}
|
|
5978
6098
|
),
|
|
5979
|
-
step.description && /* @__PURE__ */ (0,
|
|
6099
|
+
step.description && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5980
6100
|
"span",
|
|
5981
6101
|
{
|
|
5982
6102
|
className: cn(
|
|
@@ -5987,9 +6107,9 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5987
6107
|
children: step.description
|
|
5988
6108
|
}
|
|
5989
6109
|
),
|
|
5990
|
-
/* @__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)" })
|
|
5991
6111
|
] });
|
|
5992
|
-
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ (0,
|
|
6112
|
+
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5993
6113
|
"button",
|
|
5994
6114
|
{
|
|
5995
6115
|
type: "button",
|
|
@@ -5998,29 +6118,29 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5998
6118
|
className: cn(rowClassName, focusClass),
|
|
5999
6119
|
children
|
|
6000
6120
|
}
|
|
6001
|
-
) : /* @__PURE__ */ (0,
|
|
6121
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
6002
6122
|
if (vertical) {
|
|
6003
|
-
return /* @__PURE__ */ (0,
|
|
6004
|
-
/* @__PURE__ */ (0,
|
|
6005
|
-
/* @__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: [
|
|
6006
6126
|
marker,
|
|
6007
|
-
!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" })
|
|
6008
6128
|
] }),
|
|
6009
|
-
/* @__PURE__ */ (0,
|
|
6129
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: cn("min-w-0 pb-6", titleCentered && verticalTitlePad), children: label })
|
|
6010
6130
|
] }),
|
|
6011
6131
|
"flex w-full items-stretch gap-3 text-left"
|
|
6012
6132
|
) }, step.label);
|
|
6013
6133
|
}
|
|
6014
6134
|
if (below) {
|
|
6015
|
-
return /* @__PURE__ */ (0,
|
|
6135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("li", { className: "flex min-w-0 flex-1 items-start gap-2", children: [
|
|
6016
6136
|
renderRow(
|
|
6017
|
-
/* @__PURE__ */ (0,
|
|
6137
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
6018
6138
|
marker,
|
|
6019
6139
|
label
|
|
6020
6140
|
] }),
|
|
6021
6141
|
"flex min-w-0 flex-1 flex-col items-center gap-2 text-center"
|
|
6022
6142
|
),
|
|
6023
|
-
!isLast && /* @__PURE__ */ (0,
|
|
6143
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6024
6144
|
"span",
|
|
6025
6145
|
{
|
|
6026
6146
|
"aria-hidden": "true",
|
|
@@ -6029,15 +6149,15 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
6029
6149
|
)
|
|
6030
6150
|
] }, step.label);
|
|
6031
6151
|
}
|
|
6032
|
-
return /* @__PURE__ */ (0,
|
|
6152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("li", { className: "flex min-w-0 items-start gap-2", children: [
|
|
6033
6153
|
renderRow(
|
|
6034
|
-
/* @__PURE__ */ (0,
|
|
6154
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
6035
6155
|
marker,
|
|
6036
6156
|
label
|
|
6037
6157
|
] }),
|
|
6038
6158
|
cn("flex min-w-0 text-left", gapClass, titleCentered ? "items-center" : "items-start")
|
|
6039
6159
|
),
|
|
6040
|
-
!isLast && /* @__PURE__ */ (0,
|
|
6160
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6041
6161
|
"span",
|
|
6042
6162
|
{
|
|
6043
6163
|
"aria-hidden": "true",
|
|
@@ -6052,7 +6172,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
6052
6172
|
|
|
6053
6173
|
// src/components/file-upload/FileUpload.tsx
|
|
6054
6174
|
var React65 = __toESM(require("react"));
|
|
6055
|
-
var
|
|
6175
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6056
6176
|
function formatSize(bytes) {
|
|
6057
6177
|
if (bytes < 1024) return `${bytes} B`;
|
|
6058
6178
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -6099,8 +6219,8 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6099
6219
|
const list = Array.from(incoming);
|
|
6100
6220
|
commit(multiple ? [...current, ...list] : list.slice(0, 1));
|
|
6101
6221
|
};
|
|
6102
|
-
return /* @__PURE__ */ (0,
|
|
6103
|
-
/* @__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)(
|
|
6104
6224
|
"div",
|
|
6105
6225
|
{
|
|
6106
6226
|
onDragOver: (event) => {
|
|
@@ -6121,9 +6241,9 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6121
6241
|
disabled && "opacity-50"
|
|
6122
6242
|
),
|
|
6123
6243
|
children: [
|
|
6124
|
-
/* @__PURE__ */ (0,
|
|
6244
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
6125
6245
|
label,
|
|
6126
|
-
/* @__PURE__ */ (0,
|
|
6246
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6127
6247
|
"input",
|
|
6128
6248
|
{
|
|
6129
6249
|
ref,
|
|
@@ -6141,15 +6261,15 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6141
6261
|
}
|
|
6142
6262
|
)
|
|
6143
6263
|
] }),
|
|
6144
|
-
/* @__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") })
|
|
6145
6265
|
]
|
|
6146
6266
|
}
|
|
6147
6267
|
),
|
|
6148
|
-
current.length > 0 && /* @__PURE__ */ (0,
|
|
6149
|
-
/* @__PURE__ */ (0,
|
|
6150
|
-
/* @__PURE__ */ (0,
|
|
6151
|
-
/* @__PURE__ */ (0,
|
|
6152
|
-
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)(
|
|
6153
6273
|
"div",
|
|
6154
6274
|
{
|
|
6155
6275
|
role: "progressbar",
|
|
@@ -6158,11 +6278,11 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6158
6278
|
"aria-valuemax": 100,
|
|
6159
6279
|
"aria-label": uploadingLabel(file),
|
|
6160
6280
|
className: "mt-1 h-1.5 w-40 overflow-hidden rounded-full bg-muted",
|
|
6161
|
-
children: /* @__PURE__ */ (0,
|
|
6281
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "h-full bg-primary", style: { width: `${progress[file.name]}%` } })
|
|
6162
6282
|
}
|
|
6163
6283
|
)
|
|
6164
6284
|
] }),
|
|
6165
|
-
/* @__PURE__ */ (0,
|
|
6285
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6166
6286
|
"button",
|
|
6167
6287
|
{
|
|
6168
6288
|
type: "button",
|
|
@@ -6178,17 +6298,17 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6178
6298
|
|
|
6179
6299
|
// src/components/timeline/Timeline.tsx
|
|
6180
6300
|
var React66 = __toESM(require("react"));
|
|
6181
|
-
var
|
|
6301
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
6182
6302
|
var Timeline = React66.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
6183
|
-
return /* @__PURE__ */ (0,
|
|
6184
|
-
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)(
|
|
6185
6305
|
"span",
|
|
6186
6306
|
{
|
|
6187
6307
|
"aria-hidden": "true",
|
|
6188
6308
|
className: "absolute left-[5.5px] top-4 -bottom-7 w-px bg-border"
|
|
6189
6309
|
}
|
|
6190
6310
|
),
|
|
6191
|
-
/* @__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)(
|
|
6192
6312
|
"span",
|
|
6193
6313
|
{
|
|
6194
6314
|
"aria-hidden": "true",
|
|
@@ -6198,22 +6318,22 @@ var Timeline = React66.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
6198
6318
|
)
|
|
6199
6319
|
}
|
|
6200
6320
|
) }),
|
|
6201
|
-
/* @__PURE__ */ (0,
|
|
6202
|
-
item.period && /* @__PURE__ */ (0,
|
|
6203
|
-
/* @__PURE__ */ (0,
|
|
6204
|
-
item.description && /* @__PURE__ */ (0,
|
|
6205
|
-
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 })
|
|
6206
6326
|
] })
|
|
6207
6327
|
] }, `${item.title}-${index}`)) });
|
|
6208
6328
|
});
|
|
6209
6329
|
|
|
6210
6330
|
// src/components/block/Block.tsx
|
|
6211
6331
|
var React67 = __toESM(require("react"));
|
|
6212
|
-
var
|
|
6332
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
6213
6333
|
var Block = React67.forwardRef(
|
|
6214
6334
|
({ as = "div", inline, muted, className, ...props }, ref) => {
|
|
6215
6335
|
const Tag = inline ? "span" : as;
|
|
6216
|
-
return /* @__PURE__ */ (0,
|
|
6336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6217
6337
|
Tag,
|
|
6218
6338
|
{
|
|
6219
6339
|
ref,
|
|
@@ -6227,7 +6347,7 @@ Block.displayName = "Block";
|
|
|
6227
6347
|
|
|
6228
6348
|
// src/components/flex/Flex.tsx
|
|
6229
6349
|
var React68 = __toESM(require("react"));
|
|
6230
|
-
var
|
|
6350
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
6231
6351
|
var justifyClasses = {
|
|
6232
6352
|
start: "justify-start",
|
|
6233
6353
|
center: "justify-center",
|
|
@@ -6236,7 +6356,7 @@ var justifyClasses = {
|
|
|
6236
6356
|
around: "justify-around",
|
|
6237
6357
|
evenly: "justify-evenly"
|
|
6238
6358
|
};
|
|
6239
|
-
var
|
|
6359
|
+
var alignClasses2 = {
|
|
6240
6360
|
start: "items-start",
|
|
6241
6361
|
center: "items-center",
|
|
6242
6362
|
end: "items-end",
|
|
@@ -6247,7 +6367,7 @@ var Flex = React68.forwardRef(
|
|
|
6247
6367
|
({ direction = "row", align, justify, wrap, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6248
6368
|
const Tag = as;
|
|
6249
6369
|
const gapResolved = resolveGap(gap);
|
|
6250
|
-
return /* @__PURE__ */ (0,
|
|
6370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6251
6371
|
Tag,
|
|
6252
6372
|
{
|
|
6253
6373
|
ref,
|
|
@@ -6255,7 +6375,7 @@ var Flex = React68.forwardRef(
|
|
|
6255
6375
|
"flex min-w-0",
|
|
6256
6376
|
direction === "column" ? "flex-col" : "flex-row",
|
|
6257
6377
|
wrap && "flex-wrap",
|
|
6258
|
-
align &&
|
|
6378
|
+
align && alignClasses2[align],
|
|
6259
6379
|
justify && justifyClasses[justify],
|
|
6260
6380
|
gapResolved.className,
|
|
6261
6381
|
className
|
|
@@ -6282,7 +6402,7 @@ var FlexItem = React68.forwardRef(
|
|
|
6282
6402
|
...shrink === false ? { flexShrink: 0 } : typeof shrink === "string" && shrink ? { flexShrink: Number(shrink) || shrink } : {},
|
|
6283
6403
|
...basis ? { flexBasis: basis } : {}
|
|
6284
6404
|
};
|
|
6285
|
-
return /* @__PURE__ */ (0,
|
|
6405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6286
6406
|
Tag,
|
|
6287
6407
|
{
|
|
6288
6408
|
ref,
|
|
@@ -6297,7 +6417,7 @@ FlexItem.displayName = "FlexItem";
|
|
|
6297
6417
|
|
|
6298
6418
|
// src/components/grid/Grid.tsx
|
|
6299
6419
|
var React69 = __toESM(require("react"));
|
|
6300
|
-
var
|
|
6420
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
6301
6421
|
var BASE_COLS = {
|
|
6302
6422
|
1: "grid-cols-1",
|
|
6303
6423
|
2: "grid-cols-2",
|
|
@@ -6366,7 +6486,7 @@ var Grid = React69.forwardRef(
|
|
|
6366
6486
|
({ cols, smCols, mdCols, lgCols, minCol, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6367
6487
|
const Tag = as;
|
|
6368
6488
|
const gapResolved = resolveGap(gap);
|
|
6369
|
-
return /* @__PURE__ */ (0,
|
|
6489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6370
6490
|
Tag,
|
|
6371
6491
|
{
|
|
6372
6492
|
ref,
|
|
@@ -6393,7 +6513,7 @@ Grid.displayName = "Grid";
|
|
|
6393
6513
|
var GridItem = React69.forwardRef(
|
|
6394
6514
|
({ span, smSpan, mdSpan, lgSpan, as = "div", className, ...props }, ref) => {
|
|
6395
6515
|
const Tag = as;
|
|
6396
|
-
return /* @__PURE__ */ (0,
|
|
6516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6397
6517
|
Tag,
|
|
6398
6518
|
{
|
|
6399
6519
|
ref,
|
|
@@ -6413,7 +6533,7 @@ GridItem.displayName = "GridItem";
|
|
|
6413
6533
|
|
|
6414
6534
|
// src/components/container/Container.tsx
|
|
6415
6535
|
var React70 = __toESM(require("react"));
|
|
6416
|
-
var
|
|
6536
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
6417
6537
|
var widthClasses = {
|
|
6418
6538
|
sm: "max-w-3xl",
|
|
6419
6539
|
md: "max-w-5xl",
|
|
@@ -6429,7 +6549,7 @@ var paddingClasses = {
|
|
|
6429
6549
|
};
|
|
6430
6550
|
var Container = React70.forwardRef(function Container2({ width = "lg", padding = "md", as = "div", className, ...props }, ref) {
|
|
6431
6551
|
const Tag = as;
|
|
6432
|
-
return /* @__PURE__ */ (0,
|
|
6552
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6433
6553
|
Tag,
|
|
6434
6554
|
{
|
|
6435
6555
|
ref,
|
|
@@ -6441,7 +6561,7 @@ var Container = React70.forwardRef(function Container2({ width = "lg", padding =
|
|
|
6441
6561
|
|
|
6442
6562
|
// src/components/section/Section.tsx
|
|
6443
6563
|
var React71 = __toESM(require("react"));
|
|
6444
|
-
var
|
|
6564
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
6445
6565
|
var toneClasses2 = {
|
|
6446
6566
|
default: "bg-background text-foreground",
|
|
6447
6567
|
muted: "bg-muted/40 text-foreground",
|
|
@@ -6495,7 +6615,7 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6495
6615
|
}, ref) {
|
|
6496
6616
|
const Tag = as;
|
|
6497
6617
|
const toneStyle = tone === "inverse" ? inverseVars : tone === "brand" ? brandVars : void 0;
|
|
6498
|
-
return /* @__PURE__ */ (0,
|
|
6618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6499
6619
|
Tag,
|
|
6500
6620
|
{
|
|
6501
6621
|
ref,
|
|
@@ -6503,14 +6623,14 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6503
6623
|
className: cn("w-full", toneClasses2[tone], paddingClasses2[padding], className),
|
|
6504
6624
|
style: { ...toneStyle, ...style },
|
|
6505
6625
|
...props,
|
|
6506
|
-
children: container ? /* @__PURE__ */ (0,
|
|
6626
|
+
children: container ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Container, { width, className: containerClassName, children }) : children
|
|
6507
6627
|
}
|
|
6508
6628
|
);
|
|
6509
6629
|
});
|
|
6510
6630
|
|
|
6511
6631
|
// src/components/hero/Hero.tsx
|
|
6512
6632
|
var React72 = __toESM(require("react"));
|
|
6513
|
-
var
|
|
6633
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
6514
6634
|
var titleSizes = {
|
|
6515
6635
|
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
6516
6636
|
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
@@ -6541,7 +6661,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6541
6661
|
const Heading2 = `h${level}`;
|
|
6542
6662
|
const centered = layout === "centered" || align === "center";
|
|
6543
6663
|
const overlay = layout === "overlay";
|
|
6544
|
-
const copy = /* @__PURE__ */ (0,
|
|
6664
|
+
const copy = /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6545
6665
|
"div",
|
|
6546
6666
|
{
|
|
6547
6667
|
className: cn(
|
|
@@ -6550,7 +6670,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6550
6670
|
overlay && "max-w-2xl"
|
|
6551
6671
|
),
|
|
6552
6672
|
children: [
|
|
6553
|
-
badge && /* @__PURE__ */ (0,
|
|
6673
|
+
badge && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6554
6674
|
"div",
|
|
6555
6675
|
{
|
|
6556
6676
|
className: cn(
|
|
@@ -6561,7 +6681,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6561
6681
|
children: badge
|
|
6562
6682
|
}
|
|
6563
6683
|
),
|
|
6564
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
6684
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6565
6685
|
"p",
|
|
6566
6686
|
{
|
|
6567
6687
|
className: cn(
|
|
@@ -6572,7 +6692,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6572
6692
|
children: eyebrow
|
|
6573
6693
|
}
|
|
6574
6694
|
),
|
|
6575
|
-
/* @__PURE__ */ (0,
|
|
6695
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6576
6696
|
Heading2,
|
|
6577
6697
|
{
|
|
6578
6698
|
className: cn(
|
|
@@ -6584,7 +6704,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6584
6704
|
children: title
|
|
6585
6705
|
}
|
|
6586
6706
|
),
|
|
6587
|
-
description && /* @__PURE__ */ (0,
|
|
6707
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6588
6708
|
"p",
|
|
6589
6709
|
{
|
|
6590
6710
|
className: cn(
|
|
@@ -6596,7 +6716,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6596
6716
|
children: description
|
|
6597
6717
|
}
|
|
6598
6718
|
),
|
|
6599
|
-
actions && /* @__PURE__ */ (0,
|
|
6719
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6600
6720
|
"div",
|
|
6601
6721
|
{
|
|
6602
6722
|
className: cn(
|
|
@@ -6610,7 +6730,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6610
6730
|
}
|
|
6611
6731
|
);
|
|
6612
6732
|
if (overlay) {
|
|
6613
|
-
return /* @__PURE__ */ (0,
|
|
6733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6614
6734
|
Tag,
|
|
6615
6735
|
{
|
|
6616
6736
|
ref,
|
|
@@ -6620,7 +6740,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6620
6740
|
),
|
|
6621
6741
|
...props,
|
|
6622
6742
|
children: [
|
|
6623
|
-
media && /* @__PURE__ */ (0,
|
|
6743
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6624
6744
|
"div",
|
|
6625
6745
|
{
|
|
6626
6746
|
className: cn(
|
|
@@ -6630,20 +6750,20 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6630
6750
|
children: media
|
|
6631
6751
|
}
|
|
6632
6752
|
),
|
|
6633
|
-
/* @__PURE__ */ (0,
|
|
6634
|
-
/* @__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 })
|
|
6635
6755
|
]
|
|
6636
6756
|
}
|
|
6637
6757
|
);
|
|
6638
6758
|
}
|
|
6639
6759
|
if (layout === "centered") {
|
|
6640
|
-
return /* @__PURE__ */ (0,
|
|
6760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
6641
6761
|
copy,
|
|
6642
|
-
media && /* @__PURE__ */ (0,
|
|
6762
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
6643
6763
|
] });
|
|
6644
6764
|
}
|
|
6645
6765
|
if (layout === "stacked") {
|
|
6646
|
-
return /* @__PURE__ */ (0,
|
|
6766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6647
6767
|
Tag,
|
|
6648
6768
|
{
|
|
6649
6769
|
ref,
|
|
@@ -6651,20 +6771,20 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6651
6771
|
...props,
|
|
6652
6772
|
children: [
|
|
6653
6773
|
copy,
|
|
6654
|
-
media && /* @__PURE__ */ (0,
|
|
6774
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: cn("min-w-0 w-full", mediaClassName), children: media })
|
|
6655
6775
|
]
|
|
6656
6776
|
}
|
|
6657
6777
|
);
|
|
6658
6778
|
}
|
|
6659
|
-
return /* @__PURE__ */ (0,
|
|
6779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6660
6780
|
Tag,
|
|
6661
6781
|
{
|
|
6662
6782
|
ref,
|
|
6663
6783
|
className: cn("grid w-full items-center gap-10 lg:grid-cols-2 lg:gap-16 xl:gap-20", className),
|
|
6664
6784
|
...props,
|
|
6665
6785
|
children: [
|
|
6666
|
-
/* @__PURE__ */ (0,
|
|
6667
|
-
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 })
|
|
6668
6788
|
]
|
|
6669
6789
|
}
|
|
6670
6790
|
);
|
|
@@ -6672,7 +6792,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6672
6792
|
|
|
6673
6793
|
// src/components/stat-band/StatBand.tsx
|
|
6674
6794
|
var React73 = __toESM(require("react"));
|
|
6675
|
-
var
|
|
6795
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
6676
6796
|
var columnClasses = {
|
|
6677
6797
|
2: "sm:grid-cols-2",
|
|
6678
6798
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6700,7 +6820,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6700
6820
|
...props
|
|
6701
6821
|
}, ref) {
|
|
6702
6822
|
const panel = variant === "panel";
|
|
6703
|
-
return /* @__PURE__ */ (0,
|
|
6823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6704
6824
|
"dl",
|
|
6705
6825
|
{
|
|
6706
6826
|
ref,
|
|
@@ -6712,7 +6832,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6712
6832
|
className
|
|
6713
6833
|
),
|
|
6714
6834
|
...props,
|
|
6715
|
-
children: items.map((item) => /* @__PURE__ */ (0,
|
|
6835
|
+
children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
6716
6836
|
"div",
|
|
6717
6837
|
{
|
|
6718
6838
|
className: cn(
|
|
@@ -6721,7 +6841,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6721
6841
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6722
6842
|
),
|
|
6723
6843
|
children: [
|
|
6724
|
-
/* @__PURE__ */ (0,
|
|
6844
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
6725
6845
|
"dt",
|
|
6726
6846
|
{
|
|
6727
6847
|
className: cn(
|
|
@@ -6730,11 +6850,11 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6730
6850
|
),
|
|
6731
6851
|
children: [
|
|
6732
6852
|
item.label,
|
|
6733
|
-
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 })
|
|
6734
6854
|
]
|
|
6735
6855
|
}
|
|
6736
6856
|
),
|
|
6737
|
-
/* @__PURE__ */ (0,
|
|
6857
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6738
6858
|
"dd",
|
|
6739
6859
|
{
|
|
6740
6860
|
className: cn(
|
|
@@ -6755,7 +6875,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6755
6875
|
|
|
6756
6876
|
// src/components/cta-section/CTASection.tsx
|
|
6757
6877
|
var React74 = __toESM(require("react"));
|
|
6758
|
-
var
|
|
6878
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6759
6879
|
var sizePadding = {
|
|
6760
6880
|
sm: "md",
|
|
6761
6881
|
md: "lg",
|
|
@@ -6773,7 +6893,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6773
6893
|
className,
|
|
6774
6894
|
...props
|
|
6775
6895
|
}, ref) {
|
|
6776
|
-
return /* @__PURE__ */ (0,
|
|
6896
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6777
6897
|
Section,
|
|
6778
6898
|
{
|
|
6779
6899
|
ref,
|
|
@@ -6782,7 +6902,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6782
6902
|
width,
|
|
6783
6903
|
className,
|
|
6784
6904
|
...props,
|
|
6785
|
-
children: /* @__PURE__ */ (0,
|
|
6905
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
6786
6906
|
"div",
|
|
6787
6907
|
{
|
|
6788
6908
|
className: cn(
|
|
@@ -6790,10 +6910,10 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6790
6910
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6791
6911
|
),
|
|
6792
6912
|
children: [
|
|
6793
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
6794
|
-
/* @__PURE__ */ (0,
|
|
6795
|
-
description && /* @__PURE__ */ (0,
|
|
6796
|
-
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 })
|
|
6797
6917
|
]
|
|
6798
6918
|
}
|
|
6799
6919
|
)
|
|
@@ -6803,9 +6923,9 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6803
6923
|
|
|
6804
6924
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
6805
6925
|
var React75 = __toESM(require("react"));
|
|
6806
|
-
var
|
|
6926
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
6807
6927
|
function CheckMark() {
|
|
6808
|
-
return /* @__PURE__ */ (0,
|
|
6928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6809
6929
|
"svg",
|
|
6810
6930
|
{
|
|
6811
6931
|
"aria-hidden": "true",
|
|
@@ -6816,12 +6936,12 @@ function CheckMark() {
|
|
|
6816
6936
|
strokeLinecap: "round",
|
|
6817
6937
|
strokeLinejoin: "round",
|
|
6818
6938
|
className: "mx-auto h-5 w-5 text-success",
|
|
6819
|
-
children: /* @__PURE__ */ (0,
|
|
6939
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("path", { d: "m4 10.5 4 4 8-9" })
|
|
6820
6940
|
}
|
|
6821
6941
|
);
|
|
6822
6942
|
}
|
|
6823
6943
|
function DashMark() {
|
|
6824
|
-
return /* @__PURE__ */ (0,
|
|
6944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6825
6945
|
"svg",
|
|
6826
6946
|
{
|
|
6827
6947
|
"aria-hidden": "true",
|
|
@@ -6831,7 +6951,7 @@ function DashMark() {
|
|
|
6831
6951
|
strokeWidth: "2.2",
|
|
6832
6952
|
strokeLinecap: "round",
|
|
6833
6953
|
className: "mx-auto h-5 w-5 text-muted-foreground/60",
|
|
6834
|
-
children: /* @__PURE__ */ (0,
|
|
6954
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("path", { d: "M5 10h10" })
|
|
6835
6955
|
}
|
|
6836
6956
|
);
|
|
6837
6957
|
}
|
|
@@ -6847,11 +6967,11 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6847
6967
|
}, ref) {
|
|
6848
6968
|
const yes = valueLabels?.yes ?? "Included";
|
|
6849
6969
|
const no = valueLabels?.no ?? "Not included";
|
|
6850
|
-
return /* @__PURE__ */ (0,
|
|
6851
|
-
/* @__PURE__ */ (0,
|
|
6852
|
-
/* @__PURE__ */ (0,
|
|
6853
|
-
/* @__PURE__ */ (0,
|
|
6854
|
-
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)(
|
|
6855
6975
|
"th",
|
|
6856
6976
|
{
|
|
6857
6977
|
scope: "col",
|
|
@@ -6864,21 +6984,21 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6864
6984
|
column.label
|
|
6865
6985
|
))
|
|
6866
6986
|
] }) }),
|
|
6867
|
-
/* @__PURE__ */ (0,
|
|
6868
|
-
/* @__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: [
|
|
6869
6989
|
row.feature,
|
|
6870
|
-
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 })
|
|
6871
6991
|
] }),
|
|
6872
6992
|
columns.map((column, index) => {
|
|
6873
6993
|
const value = row.values[index];
|
|
6874
|
-
return /* @__PURE__ */ (0,
|
|
6994
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6875
6995
|
"td",
|
|
6876
6996
|
{
|
|
6877
6997
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
6878
|
-
children: typeof value === "boolean" ? /* @__PURE__ */ (0,
|
|
6879
|
-
value ? /* @__PURE__ */ (0,
|
|
6880
|
-
/* @__PURE__ */ (0,
|
|
6881
|
-
] }) : /* @__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 ?? "" })
|
|
6882
7002
|
},
|
|
6883
7003
|
`${row.feature}-${column.label}`
|
|
6884
7004
|
);
|
|
@@ -6890,7 +7010,7 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6890
7010
|
|
|
6891
7011
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
6892
7012
|
var React76 = __toESM(require("react"));
|
|
6893
|
-
var
|
|
7013
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
6894
7014
|
var columnClasses2 = {
|
|
6895
7015
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
6896
7016
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -6920,8 +7040,8 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6920
7040
|
sizeClasses9[size],
|
|
6921
7041
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
6922
7042
|
);
|
|
6923
|
-
return /* @__PURE__ */ (0,
|
|
6924
|
-
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)(
|
|
6925
7045
|
"p",
|
|
6926
7046
|
{
|
|
6927
7047
|
className: cn(
|
|
@@ -6931,12 +7051,12 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6931
7051
|
children: caption
|
|
6932
7052
|
}
|
|
6933
7053
|
),
|
|
6934
|
-
/* @__PURE__ */ (0,
|
|
6935
|
-
const content = /* @__PURE__ */ (0,
|
|
6936
|
-
/* @__PURE__ */ (0,
|
|
6937
|
-
/* @__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 })
|
|
6938
7058
|
] });
|
|
6939
|
-
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)(
|
|
6940
7060
|
Link3,
|
|
6941
7061
|
{
|
|
6942
7062
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -6950,7 +7070,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6950
7070
|
|
|
6951
7071
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
6952
7072
|
var React77 = __toESM(require("react"));
|
|
6953
|
-
var
|
|
7073
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
6954
7074
|
var columnClasses3 = {
|
|
6955
7075
|
2: "sm:grid-cols-2",
|
|
6956
7076
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6963,22 +7083,22 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6963
7083
|
variant === "card" && "border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
|
|
6964
7084
|
align === "center" && "items-center text-center"
|
|
6965
7085
|
);
|
|
6966
|
-
const content = (feature) => /* @__PURE__ */ (0,
|
|
6967
|
-
feature.icon && /* @__PURE__ */ (0,
|
|
6968
|
-
/* @__PURE__ */ (0,
|
|
6969
|
-
feature.description && /* @__PURE__ */ (0,
|
|
6970
|
-
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: [
|
|
6971
7091
|
feature.actionLabel,
|
|
6972
7092
|
" ",
|
|
6973
|
-
/* @__PURE__ */ (0,
|
|
7093
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { "aria-hidden": "true", children: "\u2192" })
|
|
6974
7094
|
] })
|
|
6975
7095
|
] });
|
|
6976
|
-
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)) });
|
|
6977
7097
|
});
|
|
6978
7098
|
|
|
6979
7099
|
// src/components/feature-row/FeatureRow.tsx
|
|
6980
7100
|
var React78 = __toESM(require("react"));
|
|
6981
|
-
var
|
|
7101
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
6982
7102
|
var titleSizes2 = {
|
|
6983
7103
|
md: "text-3xl",
|
|
6984
7104
|
lg: "text-3xl sm:text-4xl"
|
|
@@ -6996,20 +7116,20 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6996
7116
|
...props
|
|
6997
7117
|
}, ref) {
|
|
6998
7118
|
const Heading2 = `h${level}`;
|
|
6999
|
-
return /* @__PURE__ */ (0,
|
|
7119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
7000
7120
|
"div",
|
|
7001
7121
|
{
|
|
7002
7122
|
ref,
|
|
7003
7123
|
className: cn("grid items-center gap-10 lg:grid-cols-2 lg:gap-16", className),
|
|
7004
7124
|
...props,
|
|
7005
7125
|
children: [
|
|
7006
|
-
/* @__PURE__ */ (0,
|
|
7007
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
7008
|
-
/* @__PURE__ */ (0,
|
|
7009
|
-
description && /* @__PURE__ */ (0,
|
|
7010
|
-
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 })
|
|
7011
7131
|
] }),
|
|
7012
|
-
/* @__PURE__ */ (0,
|
|
7132
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1"), children: media })
|
|
7013
7133
|
]
|
|
7014
7134
|
}
|
|
7015
7135
|
);
|
|
@@ -7017,14 +7137,14 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
7017
7137
|
|
|
7018
7138
|
// src/components/testimonial/Testimonial.tsx
|
|
7019
7139
|
var React79 = __toESM(require("react"));
|
|
7020
|
-
var
|
|
7140
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
7021
7141
|
var quoteSizes = {
|
|
7022
7142
|
sm: "text-base",
|
|
7023
7143
|
md: "text-lg",
|
|
7024
7144
|
lg: "text-xl sm:text-2xl"
|
|
7025
7145
|
};
|
|
7026
7146
|
var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role, company, avatar, logo, variant = "card", size = "md", className, ...props }, ref) {
|
|
7027
|
-
return /* @__PURE__ */ (0,
|
|
7147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
7028
7148
|
"figure",
|
|
7029
7149
|
{
|
|
7030
7150
|
ref,
|
|
@@ -7035,17 +7155,17 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
7035
7155
|
),
|
|
7036
7156
|
...props,
|
|
7037
7157
|
children: [
|
|
7038
|
-
logo && /* @__PURE__ */ (0,
|
|
7039
|
-
/* @__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: [
|
|
7040
7160
|
"\u201C",
|
|
7041
7161
|
quote,
|
|
7042
7162
|
"\u201D"
|
|
7043
7163
|
] }) }),
|
|
7044
|
-
/* @__PURE__ */ (0,
|
|
7045
|
-
avatar && /* @__PURE__ */ (0,
|
|
7046
|
-
/* @__PURE__ */ (0,
|
|
7047
|
-
/* @__PURE__ */ (0,
|
|
7048
|
-
(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(", ") })
|
|
7049
7169
|
] })
|
|
7050
7170
|
] })
|
|
7051
7171
|
]
|
|
@@ -7055,7 +7175,7 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
7055
7175
|
|
|
7056
7176
|
// src/components/process-steps/ProcessSteps.tsx
|
|
7057
7177
|
var React80 = __toESM(require("react"));
|
|
7058
|
-
var
|
|
7178
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
7059
7179
|
var columnClasses4 = {
|
|
7060
7180
|
2: "sm:grid-cols-2",
|
|
7061
7181
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -7063,15 +7183,15 @@ var columnClasses4 = {
|
|
|
7063
7183
|
};
|
|
7064
7184
|
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", headingLevel = 3, className, ...props }, ref) {
|
|
7065
7185
|
const HeadingTag = { 2: "h2", 3: "h3", 4: "h4" }[headingLevel];
|
|
7066
|
-
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)(
|
|
7067
7187
|
"li",
|
|
7068
7188
|
{
|
|
7069
7189
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
7070
7190
|
children: [
|
|
7071
|
-
/* @__PURE__ */ (0,
|
|
7072
|
-
/* @__PURE__ */ (0,
|
|
7073
|
-
/* @__PURE__ */ (0,
|
|
7074
|
-
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 })
|
|
7075
7195
|
] })
|
|
7076
7196
|
]
|
|
7077
7197
|
},
|
|
@@ -7081,7 +7201,7 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
7081
7201
|
|
|
7082
7202
|
// src/components/article-card/ArticleCard.tsx
|
|
7083
7203
|
var React81 = __toESM(require("react"));
|
|
7084
|
-
var
|
|
7204
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
7085
7205
|
var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
7086
7206
|
title,
|
|
7087
7207
|
description,
|
|
@@ -7096,7 +7216,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
7096
7216
|
}, ref) {
|
|
7097
7217
|
const Link3 = linkComponent ?? "a";
|
|
7098
7218
|
const compact = variant === "compact";
|
|
7099
|
-
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)(
|
|
7100
7220
|
Link3,
|
|
7101
7221
|
{
|
|
7102
7222
|
href,
|
|
@@ -7105,12 +7225,12 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
7105
7225
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
7106
7226
|
),
|
|
7107
7227
|
children: [
|
|
7108
|
-
media && !compact && /* @__PURE__ */ (0,
|
|
7109
|
-
/* @__PURE__ */ (0,
|
|
7110
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
7111
|
-
/* @__PURE__ */ (0,
|
|
7112
|
-
description && /* @__PURE__ */ (0,
|
|
7113
|
-
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 })
|
|
7114
7234
|
] })
|
|
7115
7235
|
]
|
|
7116
7236
|
}
|
|
@@ -7119,7 +7239,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
7119
7239
|
|
|
7120
7240
|
// src/components/newsletter/Newsletter.tsx
|
|
7121
7241
|
var React82 = __toESM(require("react"));
|
|
7122
|
-
var
|
|
7242
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
7123
7243
|
var Newsletter = React82.forwardRef(function Newsletter2({
|
|
7124
7244
|
title,
|
|
7125
7245
|
description,
|
|
@@ -7151,13 +7271,13 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7151
7271
|
setStatus("error");
|
|
7152
7272
|
}
|
|
7153
7273
|
};
|
|
7154
|
-
return /* @__PURE__ */ (0,
|
|
7155
|
-
/* @__PURE__ */ (0,
|
|
7156
|
-
description && /* @__PURE__ */ (0,
|
|
7157
|
-
/* @__PURE__ */ (0,
|
|
7158
|
-
/* @__PURE__ */ (0,
|
|
7159
|
-
/* @__PURE__ */ (0,
|
|
7160
|
-
/* @__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)(
|
|
7161
7281
|
Input,
|
|
7162
7282
|
{
|
|
7163
7283
|
id,
|
|
@@ -7172,12 +7292,12 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7172
7292
|
className: "sm:flex-1"
|
|
7173
7293
|
}
|
|
7174
7294
|
),
|
|
7175
|
-
/* @__PURE__ */ (0,
|
|
7295
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
7176
7296
|
] }),
|
|
7177
|
-
consent && /* @__PURE__ */ (0,
|
|
7178
|
-
/* @__PURE__ */ (0,
|
|
7179
|
-
status === "success" && /* @__PURE__ */ (0,
|
|
7180
|
-
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 })
|
|
7181
7301
|
] })
|
|
7182
7302
|
] })
|
|
7183
7303
|
] });
|
|
@@ -7185,25 +7305,25 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7185
7305
|
|
|
7186
7306
|
// src/components/contact-strip/ContactStrip.tsx
|
|
7187
7307
|
var React83 = __toESM(require("react"));
|
|
7188
|
-
var
|
|
7308
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
7189
7309
|
var columnClasses5 = {
|
|
7190
7310
|
2: "sm:grid-cols-2",
|
|
7191
7311
|
3: "sm:grid-cols-3"
|
|
7192
7312
|
};
|
|
7193
7313
|
var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
7194
7314
|
const Link3 = linkComponent ?? "a";
|
|
7195
|
-
return /* @__PURE__ */ (0,
|
|
7196
|
-
item.icon && /* @__PURE__ */ (0,
|
|
7197
|
-
/* @__PURE__ */ (0,
|
|
7198
|
-
/* @__PURE__ */ (0,
|
|
7199
|
-
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 })
|
|
7200
7320
|
] })
|
|
7201
7321
|
] }, item.label)) });
|
|
7202
7322
|
});
|
|
7203
7323
|
|
|
7204
7324
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
7205
7325
|
var React84 = __toESM(require("react"));
|
|
7206
|
-
var
|
|
7326
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
7207
7327
|
var toneClasses3 = {
|
|
7208
7328
|
muted: "bg-muted text-foreground",
|
|
7209
7329
|
brand: "bg-primary text-primary-foreground",
|
|
@@ -7229,7 +7349,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7229
7349
|
setDismissed(true);
|
|
7230
7350
|
onDismiss?.();
|
|
7231
7351
|
};
|
|
7232
|
-
return /* @__PURE__ */ (0,
|
|
7352
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7233
7353
|
"div",
|
|
7234
7354
|
{
|
|
7235
7355
|
ref,
|
|
@@ -7242,9 +7362,9 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7242
7362
|
className
|
|
7243
7363
|
),
|
|
7244
7364
|
...props,
|
|
7245
|
-
children: /* @__PURE__ */ (0,
|
|
7246
|
-
/* @__PURE__ */ (0,
|
|
7247
|
-
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)(
|
|
7248
7368
|
Link3,
|
|
7249
7369
|
{
|
|
7250
7370
|
href,
|
|
@@ -7252,14 +7372,14 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7252
7372
|
children: actionLabel
|
|
7253
7373
|
}
|
|
7254
7374
|
),
|
|
7255
|
-
dismissible && /* @__PURE__ */ (0,
|
|
7375
|
+
dismissible && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7256
7376
|
"button",
|
|
7257
7377
|
{
|
|
7258
7378
|
type: "button",
|
|
7259
7379
|
onClick: dismiss2,
|
|
7260
7380
|
"aria-label": "Dismiss announcement",
|
|
7261
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",
|
|
7262
|
-
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" }) })
|
|
7263
7383
|
}
|
|
7264
7384
|
)
|
|
7265
7385
|
] })
|
|
@@ -7270,7 +7390,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7270
7390
|
|
|
7271
7391
|
// src/components/deal-card/DealCard.tsx
|
|
7272
7392
|
var React85 = __toESM(require("react"));
|
|
7273
|
-
var
|
|
7393
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
7274
7394
|
var statusConfig = {
|
|
7275
7395
|
available: { label: "Available", variant: "success" },
|
|
7276
7396
|
"under-nda": { label: "Under NDA", variant: "info" },
|
|
@@ -7298,29 +7418,29 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7298
7418
|
}, ref) {
|
|
7299
7419
|
const Link3 = linkComponent ?? "a";
|
|
7300
7420
|
const statusInfo = statusConfig[status];
|
|
7301
|
-
return /* @__PURE__ */ (0,
|
|
7302
|
-
/* @__PURE__ */ (0,
|
|
7303
|
-
/* @__PURE__ */ (0,
|
|
7304
|
-
/* @__PURE__ */ (0,
|
|
7305
|
-
/* @__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 })
|
|
7306
7426
|
] }),
|
|
7307
|
-
/* @__PURE__ */ (0,
|
|
7308
|
-
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 })
|
|
7309
7429
|
] }),
|
|
7310
|
-
/* @__PURE__ */ (0,
|
|
7311
|
-
description && /* @__PURE__ */ (0,
|
|
7312
|
-
/* @__PURE__ */ (0,
|
|
7313
|
-
/* @__PURE__ */ (0,
|
|
7314
|
-
/* @__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 })
|
|
7315
7435
|
] }, metric.label)) }),
|
|
7316
|
-
(ndaAvailable || cimAvailable) && /* @__PURE__ */ (0,
|
|
7317
|
-
ndaAvailable && /* @__PURE__ */ (0,
|
|
7318
|
-
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" })
|
|
7319
7439
|
] })
|
|
7320
7440
|
] }),
|
|
7321
|
-
/* @__PURE__ */ (0,
|
|
7322
|
-
onRequestAccess && /* @__PURE__ */ (0,
|
|
7323
|
-
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)(
|
|
7324
7444
|
Button,
|
|
7325
7445
|
{
|
|
7326
7446
|
type: "button",
|
|
@@ -7338,7 +7458,7 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7338
7458
|
|
|
7339
7459
|
// src/components/entity-card/EntityCard.tsx
|
|
7340
7460
|
var React86 = __toESM(require("react"));
|
|
7341
|
-
var
|
|
7461
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
7342
7462
|
function initials(name) {
|
|
7343
7463
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
7344
7464
|
}
|
|
@@ -7360,11 +7480,11 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7360
7480
|
const Link3 = linkComponent ?? "a";
|
|
7361
7481
|
const stretched = Boolean(cardHref);
|
|
7362
7482
|
const nameHref = cardHref ?? href;
|
|
7363
|
-
return /* @__PURE__ */ (0,
|
|
7364
|
-
/* @__PURE__ */ (0,
|
|
7365
|
-
/* @__PURE__ */ (0,
|
|
7366
|
-
/* @__PURE__ */ (0,
|
|
7367
|
-
/* @__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)(
|
|
7368
7488
|
Link3,
|
|
7369
7489
|
{
|
|
7370
7490
|
href: nameHref,
|
|
@@ -7375,20 +7495,20 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7375
7495
|
children: name
|
|
7376
7496
|
}
|
|
7377
7497
|
) : name }),
|
|
7378
|
-
/* @__PURE__ */ (0,
|
|
7379
|
-
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 })
|
|
7380
7500
|
] })
|
|
7381
7501
|
] }),
|
|
7382
|
-
/* @__PURE__ */ (0,
|
|
7383
|
-
description && /* @__PURE__ */ (0,
|
|
7384
|
-
tags && tags.length > 0 && /* @__PURE__ */ (0,
|
|
7385
|
-
stats && stats.length > 0 && /* @__PURE__ */ (0,
|
|
7386
|
-
/* @__PURE__ */ (0,
|
|
7387
|
-
/* @__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 })
|
|
7388
7508
|
] }, stat.label)) })
|
|
7389
7509
|
] }),
|
|
7390
|
-
(href && !stretched || actions) && /* @__PURE__ */ (0,
|
|
7391
|
-
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)(
|
|
7392
7512
|
Link3,
|
|
7393
7513
|
{
|
|
7394
7514
|
href,
|
|
@@ -7396,7 +7516,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7396
7516
|
children: "View profile"
|
|
7397
7517
|
}
|
|
7398
7518
|
),
|
|
7399
|
-
actions && /* @__PURE__ */ (0,
|
|
7519
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "ml-auto flex items-center gap-2", children: actions })
|
|
7400
7520
|
] })
|
|
7401
7521
|
] });
|
|
7402
7522
|
});
|
|
@@ -7404,7 +7524,7 @@ var ProfileCard = EntityCard;
|
|
|
7404
7524
|
|
|
7405
7525
|
// src/components/tombstone-card/TombstoneCard.tsx
|
|
7406
7526
|
var React87 = __toESM(require("react"));
|
|
7407
|
-
var
|
|
7527
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
7408
7528
|
var statusConfig2 = {
|
|
7409
7529
|
archived: { label: "Archived", variant: "secondary" },
|
|
7410
7530
|
unavailable: { label: "Unavailable", variant: "warning" },
|
|
@@ -7423,20 +7543,20 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7423
7543
|
}, ref) {
|
|
7424
7544
|
const Link3 = linkComponent ?? "a";
|
|
7425
7545
|
const statusInfo = statusConfig2[status];
|
|
7426
|
-
return /* @__PURE__ */ (0,
|
|
7546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7427
7547
|
Card,
|
|
7428
7548
|
{
|
|
7429
7549
|
ref,
|
|
7430
7550
|
className: cn("flex h-full flex-col border-dashed bg-muted/30 shadow-none", className),
|
|
7431
7551
|
...props,
|
|
7432
|
-
children: /* @__PURE__ */ (0,
|
|
7433
|
-
/* @__PURE__ */ (0,
|
|
7434
|
-
logo && /* @__PURE__ */ (0,
|
|
7435
|
-
/* @__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 })
|
|
7436
7556
|
] }),
|
|
7437
|
-
/* @__PURE__ */ (0,
|
|
7438
|
-
reason && /* @__PURE__ */ (0,
|
|
7439
|
-
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)(
|
|
7440
7560
|
Link3,
|
|
7441
7561
|
{
|
|
7442
7562
|
href,
|
|
@@ -7451,7 +7571,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7451
7571
|
|
|
7452
7572
|
// src/components/document-card/DocumentCard.tsx
|
|
7453
7573
|
var React88 = __toESM(require("react"));
|
|
7454
|
-
var
|
|
7574
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
7455
7575
|
var statusConfig3 = {
|
|
7456
7576
|
available: { label: "Available", variant: "success" },
|
|
7457
7577
|
restricted: { label: "Restricted", variant: "warning" },
|
|
@@ -7471,14 +7591,14 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7471
7591
|
}, ref) {
|
|
7472
7592
|
const statusInfo = statusConfig3[status];
|
|
7473
7593
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7474
|
-
return /* @__PURE__ */ (0,
|
|
7475
|
-
/* @__PURE__ */ (0,
|
|
7476
|
-
/* @__PURE__ */ (0,
|
|
7477
|
-
/* @__PURE__ */ (0,
|
|
7478
|
-
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 })
|
|
7479
7599
|
] }),
|
|
7480
|
-
/* @__PURE__ */ (0,
|
|
7481
|
-
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)(
|
|
7482
7602
|
Button,
|
|
7483
7603
|
{
|
|
7484
7604
|
type: "button",
|
|
@@ -7495,7 +7615,7 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7495
7615
|
|
|
7496
7616
|
// src/components/load-more/LoadMore.tsx
|
|
7497
7617
|
var React89 = __toESM(require("react"));
|
|
7498
|
-
var
|
|
7618
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
7499
7619
|
var LoadMore = React89.forwardRef(function LoadMore2({
|
|
7500
7620
|
hasMore,
|
|
7501
7621
|
onLoadMore,
|
|
@@ -7506,17 +7626,24 @@ var LoadMore = React89.forwardRef(function LoadMore2({
|
|
|
7506
7626
|
className,
|
|
7507
7627
|
...props
|
|
7508
7628
|
}, ref) {
|
|
7509
|
-
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 }) });
|
|
7510
7630
|
});
|
|
7511
7631
|
|
|
7512
7632
|
// src/components/segmented-control/SegmentedControl.tsx
|
|
7513
7633
|
var React90 = __toESM(require("react"));
|
|
7514
|
-
var
|
|
7634
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
7515
7635
|
var sizeClasses10 = {
|
|
7516
7636
|
sm: "h-8 px-2.5 text-xs",
|
|
7517
7637
|
md: "h-9 px-3 text-sm",
|
|
7518
7638
|
lg: "h-10 px-4 text-sm"
|
|
7519
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
|
+
};
|
|
7520
7647
|
var SegmentedControl = React90.forwardRef(
|
|
7521
7648
|
function SegmentedControl2({
|
|
7522
7649
|
options,
|
|
@@ -7538,6 +7665,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7538
7665
|
);
|
|
7539
7666
|
const current = isControlled ? value : internal;
|
|
7540
7667
|
const selected = multiple ? Array.isArray(current) ? current : [] : typeof current === "string" ? current : "";
|
|
7668
|
+
const fullWidthBelow = typeof fullWidth === "string" ? fullWidthBreakpoints[fullWidth] : null;
|
|
7541
7669
|
const linkMode = options.some((option) => option.href !== void 0);
|
|
7542
7670
|
const LinkEl = linkComponent ?? "a";
|
|
7543
7671
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
@@ -7591,7 +7719,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7591
7719
|
moveFocus("last");
|
|
7592
7720
|
}
|
|
7593
7721
|
};
|
|
7594
|
-
return /* @__PURE__ */ (0,
|
|
7722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7595
7723
|
"div",
|
|
7596
7724
|
{
|
|
7597
7725
|
ref,
|
|
@@ -7599,7 +7727,8 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7599
7727
|
"aria-label": ariaLabel,
|
|
7600
7728
|
className: cn(
|
|
7601
7729
|
"inline-flex items-center gap-1 rounded-lg border border-border bg-muted p-1",
|
|
7602
|
-
fullWidth && "flex w-full",
|
|
7730
|
+
fullWidth === true && "flex w-full",
|
|
7731
|
+
fullWidthBelow && `${fullWidthBelow}:flex ${fullWidthBelow}:w-full`,
|
|
7603
7732
|
className
|
|
7604
7733
|
),
|
|
7605
7734
|
...props,
|
|
@@ -7612,37 +7741,41 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7612
7741
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7613
7742
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
7614
7743
|
sizeClasses10[size],
|
|
7615
|
-
fullWidth && "flex-1",
|
|
7744
|
+
fullWidth === true && "flex-1",
|
|
7745
|
+
fullWidthBelow && `${fullWidthBelow}:flex-1`,
|
|
7616
7746
|
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
7617
7747
|
);
|
|
7618
|
-
const segmentContent = /* @__PURE__ */ (0,
|
|
7619
|
-
option.icon && /* @__PURE__ */ (0,
|
|
7620
|
-
/* @__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 })
|
|
7621
7752
|
] });
|
|
7622
7753
|
if (option.href !== void 0) {
|
|
7623
7754
|
if (option.disabled || active) {
|
|
7624
|
-
return /* @__PURE__ */ (0,
|
|
7755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7625
7756
|
"span",
|
|
7626
7757
|
{
|
|
7627
7758
|
"aria-current": active ? "page" : void 0,
|
|
7628
7759
|
"aria-disabled": option.disabled || void 0,
|
|
7760
|
+
"aria-description": option.hint,
|
|
7629
7761
|
className: cn(segmentClass, option.disabled && "opacity-50"),
|
|
7630
7762
|
children: segmentContent
|
|
7631
7763
|
},
|
|
7632
7764
|
option.value
|
|
7633
7765
|
);
|
|
7634
7766
|
}
|
|
7635
|
-
return /* @__PURE__ */ (0,
|
|
7767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7636
7768
|
LinkEl,
|
|
7637
7769
|
{
|
|
7638
7770
|
...destination(option.href),
|
|
7771
|
+
"aria-description": option.hint,
|
|
7639
7772
|
className: segmentClass,
|
|
7640
7773
|
children: segmentContent
|
|
7641
7774
|
},
|
|
7642
7775
|
option.value
|
|
7643
7776
|
);
|
|
7644
7777
|
}
|
|
7645
|
-
return /* @__PURE__ */ (0,
|
|
7778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7646
7779
|
"button",
|
|
7647
7780
|
{
|
|
7648
7781
|
ref: (node) => {
|
|
@@ -7653,6 +7786,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7653
7786
|
"aria-checked": multiple || linkMode ? void 0 : active,
|
|
7654
7787
|
"aria-pressed": multiple ? active : void 0,
|
|
7655
7788
|
"aria-current": linkMode && active ? "page" : void 0,
|
|
7789
|
+
"aria-description": option.hint,
|
|
7656
7790
|
disabled: option.disabled,
|
|
7657
7791
|
tabIndex: focusable ? 0 : -1,
|
|
7658
7792
|
onClick: () => select(option),
|
|
@@ -7670,7 +7804,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7670
7804
|
|
|
7671
7805
|
// src/components/range-slider/RangeSlider.tsx
|
|
7672
7806
|
var React91 = __toESM(require("react"));
|
|
7673
|
-
var
|
|
7807
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
7674
7808
|
var rangeInputClass = cn(
|
|
7675
7809
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
7676
7810
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
@@ -7710,21 +7844,21 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7710
7844
|
const span = max - min || 1;
|
|
7711
7845
|
const lowPercent = (low - min) / span * 100;
|
|
7712
7846
|
const highPercent = (high - min) / span * 100;
|
|
7713
|
-
return /* @__PURE__ */ (0,
|
|
7714
|
-
showValues && /* @__PURE__ */ (0,
|
|
7715
|
-
/* @__PURE__ */ (0,
|
|
7716
|
-
/* @__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) })
|
|
7717
7851
|
] }),
|
|
7718
|
-
/* @__PURE__ */ (0,
|
|
7719
|
-
/* @__PURE__ */ (0,
|
|
7720
|
-
/* @__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)(
|
|
7721
7855
|
"div",
|
|
7722
7856
|
{
|
|
7723
7857
|
className: "absolute top-1/2 h-1 -translate-y-1/2 rounded-full bg-primary",
|
|
7724
7858
|
style: { left: `${lowPercent}%`, right: `${100 - highPercent}%` }
|
|
7725
7859
|
}
|
|
7726
7860
|
),
|
|
7727
|
-
/* @__PURE__ */ (0,
|
|
7861
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
7728
7862
|
"input",
|
|
7729
7863
|
{
|
|
7730
7864
|
type: "range",
|
|
@@ -7739,7 +7873,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7739
7873
|
className: cn(rangeInputClass, "z-10")
|
|
7740
7874
|
}
|
|
7741
7875
|
),
|
|
7742
|
-
/* @__PURE__ */ (0,
|
|
7876
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
7743
7877
|
"input",
|
|
7744
7878
|
{
|
|
7745
7879
|
type: "range",
|
|
@@ -7760,7 +7894,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7760
7894
|
|
|
7761
7895
|
// src/components/filter-chips/FilterChips.tsx
|
|
7762
7896
|
var React92 = __toESM(require("react"));
|
|
7763
|
-
var
|
|
7897
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
7764
7898
|
var CHIP_SIZES = {
|
|
7765
7899
|
sm: {
|
|
7766
7900
|
chip: "gap-1 py-0.5 pl-2.5 pr-0.5 text-xs",
|
|
@@ -7792,10 +7926,10 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7792
7926
|
...props
|
|
7793
7927
|
}, ref) {
|
|
7794
7928
|
if (filters.length === 0) {
|
|
7795
|
-
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;
|
|
7796
7930
|
}
|
|
7797
7931
|
const scale = CHIP_SIZES[size];
|
|
7798
|
-
return /* @__PURE__ */ (0,
|
|
7932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
7799
7933
|
"div",
|
|
7800
7934
|
{
|
|
7801
7935
|
ref,
|
|
@@ -7804,7 +7938,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7804
7938
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
7805
7939
|
...props,
|
|
7806
7940
|
children: [
|
|
7807
|
-
filters.map((filter) => /* @__PURE__ */ (0,
|
|
7941
|
+
filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
7808
7942
|
"span",
|
|
7809
7943
|
{
|
|
7810
7944
|
className: cn(
|
|
@@ -7812,15 +7946,15 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7812
7946
|
scale.chip
|
|
7813
7947
|
),
|
|
7814
7948
|
children: [
|
|
7815
|
-
/* @__PURE__ */ (0,
|
|
7816
|
-
/* @__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: [
|
|
7817
7951
|
filter.label,
|
|
7818
7952
|
":"
|
|
7819
7953
|
] }),
|
|
7820
7954
|
" ",
|
|
7821
|
-
/* @__PURE__ */ (0,
|
|
7955
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "font-medium", children: filter.value ?? "Any" })
|
|
7822
7956
|
] }),
|
|
7823
|
-
filter.onRemove && /* @__PURE__ */ (0,
|
|
7957
|
+
filter.onRemove && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7824
7958
|
"button",
|
|
7825
7959
|
{
|
|
7826
7960
|
type: "button",
|
|
@@ -7830,14 +7964,14 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7830
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",
|
|
7831
7965
|
scale.remove
|
|
7832
7966
|
),
|
|
7833
|
-
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" }) })
|
|
7834
7968
|
}
|
|
7835
7969
|
)
|
|
7836
7970
|
]
|
|
7837
7971
|
},
|
|
7838
7972
|
filter.key
|
|
7839
7973
|
)),
|
|
7840
|
-
onClearAll && /* @__PURE__ */ (0,
|
|
7974
|
+
onClearAll && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7841
7975
|
"button",
|
|
7842
7976
|
{
|
|
7843
7977
|
type: "button",
|
|
@@ -7856,7 +7990,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7856
7990
|
|
|
7857
7991
|
// src/components/multi-select/MultiSelect.tsx
|
|
7858
7992
|
var React93 = __toESM(require("react"));
|
|
7859
|
-
var
|
|
7993
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
7860
7994
|
var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
7861
7995
|
options,
|
|
7862
7996
|
value,
|
|
@@ -7901,16 +8035,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7901
8035
|
}, [filtered]);
|
|
7902
8036
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
7903
8037
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
7904
|
-
return /* @__PURE__ */ (0,
|
|
7905
|
-
label && /* @__PURE__ */ (0,
|
|
7906
|
-
visibleChips.length > 0 && /* @__PURE__ */ (0,
|
|
7907
|
-
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)(
|
|
7908
8042
|
"span",
|
|
7909
8043
|
{
|
|
7910
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",
|
|
7911
8045
|
children: [
|
|
7912
|
-
/* @__PURE__ */ (0,
|
|
7913
|
-
/* @__PURE__ */ (0,
|
|
8046
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "truncate", children: option.label }),
|
|
8047
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7914
8048
|
"button",
|
|
7915
8049
|
{
|
|
7916
8050
|
type: "button",
|
|
@@ -7918,26 +8052,26 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7918
8052
|
disabled,
|
|
7919
8053
|
"aria-label": `Remove ${option.label}`,
|
|
7920
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",
|
|
7921
|
-
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" }) })
|
|
7922
8056
|
}
|
|
7923
8057
|
)
|
|
7924
8058
|
]
|
|
7925
8059
|
},
|
|
7926
8060
|
option.value
|
|
7927
8061
|
)),
|
|
7928
|
-
hiddenCount > 0 && /* @__PURE__ */ (0,
|
|
8062
|
+
hiddenCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("span", { className: "self-center text-xs text-muted-foreground", children: [
|
|
7929
8063
|
"+",
|
|
7930
8064
|
hiddenCount,
|
|
7931
8065
|
" more"
|
|
7932
8066
|
] })
|
|
7933
8067
|
] }),
|
|
7934
|
-
/* @__PURE__ */ (0,
|
|
7935
|
-
/* @__PURE__ */ (0,
|
|
7936
|
-
/* @__PURE__ */ (0,
|
|
7937
|
-
/* @__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" })
|
|
7938
8072
|
] }),
|
|
7939
|
-
/* @__PURE__ */ (0,
|
|
7940
|
-
/* @__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)(
|
|
7941
8075
|
Input,
|
|
7942
8076
|
{
|
|
7943
8077
|
type: "search",
|
|
@@ -7948,9 +8082,9 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7948
8082
|
autoFocus: true
|
|
7949
8083
|
}
|
|
7950
8084
|
) }),
|
|
7951
|
-
/* @__PURE__ */ (0,
|
|
7952
|
-
heading && /* @__PURE__ */ (0,
|
|
7953
|
-
/* @__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)(
|
|
7954
8088
|
"label",
|
|
7955
8089
|
{
|
|
7956
8090
|
className: cn(
|
|
@@ -7958,7 +8092,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7958
8092
|
option.disabled && "cursor-not-allowed opacity-50"
|
|
7959
8093
|
),
|
|
7960
8094
|
children: [
|
|
7961
|
-
/* @__PURE__ */ (0,
|
|
8095
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7962
8096
|
Checkbox,
|
|
7963
8097
|
{
|
|
7964
8098
|
checked: selected.includes(option.value),
|
|
@@ -7967,16 +8101,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7967
8101
|
className: "mt-0.5"
|
|
7968
8102
|
}
|
|
7969
8103
|
),
|
|
7970
|
-
/* @__PURE__ */ (0,
|
|
7971
|
-
/* @__PURE__ */ (0,
|
|
7972
|
-
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 })
|
|
7973
8107
|
] })
|
|
7974
8108
|
]
|
|
7975
8109
|
}
|
|
7976
8110
|
)
|
|
7977
8111
|
] }, option.value)) }),
|
|
7978
|
-
/* @__PURE__ */ (0,
|
|
7979
|
-
/* @__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)(
|
|
7980
8114
|
Button,
|
|
7981
8115
|
{
|
|
7982
8116
|
type: "button",
|
|
@@ -7986,7 +8120,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7986
8120
|
children: "Select all"
|
|
7987
8121
|
}
|
|
7988
8122
|
),
|
|
7989
|
-
/* @__PURE__ */ (0,
|
|
8123
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => commit([]), children: "Clear" })
|
|
7990
8124
|
] })
|
|
7991
8125
|
] })
|
|
7992
8126
|
] })
|
|
@@ -7995,7 +8129,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7995
8129
|
|
|
7996
8130
|
// src/components/filter-panel/FilterPanel.tsx
|
|
7997
8131
|
var React94 = __toESM(require("react"));
|
|
7998
|
-
var
|
|
8132
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
7999
8133
|
var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
8000
8134
|
sections,
|
|
8001
8135
|
title = "Filters",
|
|
@@ -8025,16 +8159,16 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
8025
8159
|
(current) => current.includes(index) ? current.filter((entry) => entry !== index) : [...current, index]
|
|
8026
8160
|
);
|
|
8027
8161
|
};
|
|
8028
|
-
return /* @__PURE__ */ (0,
|
|
8029
|
-
(title || description) && /* @__PURE__ */ (0,
|
|
8030
|
-
title && /* @__PURE__ */ (0,
|
|
8031
|
-
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 })
|
|
8032
8166
|
] }),
|
|
8033
|
-
/* @__PURE__ */ (0,
|
|
8167
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "divide-y divide-border", children: sections.map((section, index) => {
|
|
8034
8168
|
const expanded = isOpen(index);
|
|
8035
8169
|
const sectionId = `filter-section-${index}`;
|
|
8036
|
-
return /* @__PURE__ */ (0,
|
|
8037
|
-
/* @__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)(
|
|
8038
8172
|
"button",
|
|
8039
8173
|
{
|
|
8040
8174
|
type: "button",
|
|
@@ -8047,28 +8181,28 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
8047
8181
|
collapsible && "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8048
8182
|
),
|
|
8049
8183
|
children: [
|
|
8050
|
-
/* @__PURE__ */ (0,
|
|
8184
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("span", { children: [
|
|
8051
8185
|
section.title,
|
|
8052
|
-
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 })
|
|
8053
8187
|
] }),
|
|
8054
|
-
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" })
|
|
8055
8189
|
]
|
|
8056
8190
|
}
|
|
8057
8191
|
) }),
|
|
8058
|
-
expanded && /* @__PURE__ */ (0,
|
|
8192
|
+
expanded && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
8059
8193
|
] }, index);
|
|
8060
8194
|
}) }),
|
|
8061
|
-
(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: [
|
|
8062
8196
|
actions,
|
|
8063
|
-
onReset && /* @__PURE__ */ (0,
|
|
8064
|
-
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 })
|
|
8065
8199
|
] })
|
|
8066
8200
|
] });
|
|
8067
8201
|
});
|
|
8068
8202
|
|
|
8069
8203
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
8070
8204
|
var React95 = __toESM(require("react"));
|
|
8071
|
-
var
|
|
8205
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
8072
8206
|
var DEFAULT_PRESETS = [
|
|
8073
8207
|
{ label: "7 days", days: 7 },
|
|
8074
8208
|
{ label: "30 days", days: 30 },
|
|
@@ -8120,8 +8254,8 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8120
8254
|
}
|
|
8121
8255
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
8122
8256
|
};
|
|
8123
|
-
return /* @__PURE__ */ (0,
|
|
8124
|
-
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)(
|
|
8125
8259
|
Button,
|
|
8126
8260
|
{
|
|
8127
8261
|
type: "button",
|
|
@@ -8133,10 +8267,10 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8133
8267
|
},
|
|
8134
8268
|
preset.label
|
|
8135
8269
|
)) }),
|
|
8136
|
-
/* @__PURE__ */ (0,
|
|
8137
|
-
/* @__PURE__ */ (0,
|
|
8138
|
-
/* @__PURE__ */ (0,
|
|
8139
|
-
/* @__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)(
|
|
8140
8274
|
DatePicker,
|
|
8141
8275
|
{
|
|
8142
8276
|
id: startId,
|
|
@@ -8148,9 +8282,9 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8148
8282
|
}
|
|
8149
8283
|
)
|
|
8150
8284
|
] }),
|
|
8151
|
-
/* @__PURE__ */ (0,
|
|
8152
|
-
/* @__PURE__ */ (0,
|
|
8153
|
-
/* @__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)(
|
|
8154
8288
|
DatePicker,
|
|
8155
8289
|
{
|
|
8156
8290
|
id: endId,
|
|
@@ -8169,7 +8303,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8169
8303
|
|
|
8170
8304
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
8171
8305
|
var React96 = __toESM(require("react"));
|
|
8172
|
-
var
|
|
8306
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
8173
8307
|
var AppliedFilters = React96.forwardRef(
|
|
8174
8308
|
function AppliedFilters2({
|
|
8175
8309
|
filters,
|
|
@@ -8183,9 +8317,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8183
8317
|
}, ref) {
|
|
8184
8318
|
const summary = label ?? `${filters.length} active`;
|
|
8185
8319
|
if (filters.length === 0) {
|
|
8186
|
-
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;
|
|
8187
8321
|
}
|
|
8188
|
-
return /* @__PURE__ */ (0,
|
|
8322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
8189
8323
|
"div",
|
|
8190
8324
|
{
|
|
8191
8325
|
ref,
|
|
@@ -8193,9 +8327,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8193
8327
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
8194
8328
|
...props,
|
|
8195
8329
|
children: [
|
|
8196
|
-
/* @__PURE__ */ (0,
|
|
8197
|
-
/* @__PURE__ */ (0,
|
|
8198
|
-
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 })
|
|
8199
8333
|
]
|
|
8200
8334
|
}
|
|
8201
8335
|
);
|
|
@@ -8206,7 +8340,7 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8206
8340
|
var React97 = __toESM(require("react"));
|
|
8207
8341
|
var import_react_dom8 = require("react-dom");
|
|
8208
8342
|
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
8209
|
-
var
|
|
8343
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
8210
8344
|
var MenuContext = React97.createContext({
|
|
8211
8345
|
open: false,
|
|
8212
8346
|
setOpen: () => {
|
|
@@ -8238,7 +8372,7 @@ var Menu = React97.forwardRef(
|
|
|
8238
8372
|
},
|
|
8239
8373
|
[open, onOpenChange]
|
|
8240
8374
|
);
|
|
8241
|
-
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)(
|
|
8242
8376
|
MenuContext.Provider,
|
|
8243
8377
|
{
|
|
8244
8378
|
value: { open: current, setOpen, activeIndex, setActiveIndex, wrapperRef },
|
|
@@ -8251,7 +8385,7 @@ Menu.displayName = "Menu";
|
|
|
8251
8385
|
var MenuTrigger = React97.forwardRef(
|
|
8252
8386
|
({ className, children, ...props }, ref) => {
|
|
8253
8387
|
const { open, setOpen } = React97.useContext(MenuContext);
|
|
8254
|
-
return /* @__PURE__ */ (0,
|
|
8388
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8255
8389
|
"button",
|
|
8256
8390
|
{
|
|
8257
8391
|
ref,
|
|
@@ -8353,7 +8487,7 @@ var MenuContent = React97.forwardRef(
|
|
|
8353
8487
|
};
|
|
8354
8488
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
8355
8489
|
return (0, import_react_dom8.createPortal)(
|
|
8356
|
-
/* @__PURE__ */ (0,
|
|
8490
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8357
8491
|
"div",
|
|
8358
8492
|
{
|
|
8359
8493
|
ref: (node) => {
|
|
@@ -8382,7 +8516,7 @@ var MenuItem = React97.forwardRef(
|
|
|
8382
8516
|
const { setOpen } = React97.useContext(MenuContext);
|
|
8383
8517
|
const Comp = asChild ? import_react_slot5.Slot : "button";
|
|
8384
8518
|
const typeProp = asChild ? {} : { type: "button" };
|
|
8385
|
-
return /* @__PURE__ */ (0,
|
|
8519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8386
8520
|
Comp,
|
|
8387
8521
|
{
|
|
8388
8522
|
ref,
|
|
@@ -8405,11 +8539,11 @@ var MenuItem = React97.forwardRef(
|
|
|
8405
8539
|
);
|
|
8406
8540
|
MenuItem.displayName = "MenuItem";
|
|
8407
8541
|
var MenuSeparator = React97.forwardRef(
|
|
8408
|
-
({ 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 })
|
|
8409
8543
|
);
|
|
8410
8544
|
MenuSeparator.displayName = "MenuSeparator";
|
|
8411
8545
|
var MenuLabel = React97.forwardRef(
|
|
8412
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8546
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8413
8547
|
"div",
|
|
8414
8548
|
{
|
|
8415
8549
|
ref,
|
|
@@ -8423,7 +8557,7 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
8423
8557
|
// src/components/alert/Alert.tsx
|
|
8424
8558
|
var React98 = __toESM(require("react"));
|
|
8425
8559
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
8426
|
-
var
|
|
8560
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
8427
8561
|
var alertVariants = (0, import_class_variance_authority8.cva)(
|
|
8428
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",
|
|
8429
8563
|
{
|
|
@@ -8444,7 +8578,7 @@ var alertVariants = (0, import_class_variance_authority8.cva)(
|
|
|
8444
8578
|
}
|
|
8445
8579
|
);
|
|
8446
8580
|
var Alert = React98.forwardRef(
|
|
8447
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8581
|
+
({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8448
8582
|
"div",
|
|
8449
8583
|
{
|
|
8450
8584
|
ref,
|
|
@@ -8456,7 +8590,7 @@ var Alert = React98.forwardRef(
|
|
|
8456
8590
|
);
|
|
8457
8591
|
Alert.displayName = "Alert";
|
|
8458
8592
|
var AlertTitle = React98.forwardRef(
|
|
8459
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8593
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8460
8594
|
"h5",
|
|
8461
8595
|
{
|
|
8462
8596
|
ref,
|
|
@@ -8467,7 +8601,7 @@ var AlertTitle = React98.forwardRef(
|
|
|
8467
8601
|
);
|
|
8468
8602
|
AlertTitle.displayName = "AlertTitle";
|
|
8469
8603
|
var AlertDescription = React98.forwardRef(
|
|
8470
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8604
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8471
8605
|
"div",
|
|
8472
8606
|
{
|
|
8473
8607
|
ref,
|
|
@@ -8480,22 +8614,22 @@ AlertDescription.displayName = "AlertDescription";
|
|
|
8480
8614
|
|
|
8481
8615
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
8482
8616
|
var React99 = __toESM(require("react"));
|
|
8483
|
-
var
|
|
8617
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
8484
8618
|
var Breadcrumb = React99.forwardRef(
|
|
8485
8619
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
8486
8620
|
const LinkEl = linkComponent ?? "a";
|
|
8487
|
-
return /* @__PURE__ */ (0,
|
|
8621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
8488
8622
|
"nav",
|
|
8489
8623
|
{
|
|
8490
8624
|
ref,
|
|
8491
8625
|
"aria-label": label,
|
|
8492
8626
|
className: cn("flex items-center space-x-1.5 text-sm text-muted-foreground", className),
|
|
8493
8627
|
...props,
|
|
8494
|
-
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) => {
|
|
8495
8629
|
const isLast = index === items.length - 1;
|
|
8496
|
-
return /* @__PURE__ */ (0,
|
|
8497
|
-
index > 0 && /* @__PURE__ */ (0,
|
|
8498
|
-
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)(
|
|
8499
8633
|
LinkEl,
|
|
8500
8634
|
{
|
|
8501
8635
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -8506,7 +8640,7 @@ var Breadcrumb = React99.forwardRef(
|
|
|
8506
8640
|
} : void 0,
|
|
8507
8641
|
children: item.label
|
|
8508
8642
|
}
|
|
8509
|
-
) : /* @__PURE__ */ (0,
|
|
8643
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
8510
8644
|
"span",
|
|
8511
8645
|
{
|
|
8512
8646
|
"aria-current": isLast ? "page" : void 0,
|
|
@@ -8603,6 +8737,7 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
8603
8737
|
LinkTabs,
|
|
8604
8738
|
List,
|
|
8605
8739
|
ListItem,
|
|
8740
|
+
ListToolbar,
|
|
8606
8741
|
LoadMore,
|
|
8607
8742
|
LogoCloud,
|
|
8608
8743
|
Menu,
|