@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.mjs
CHANGED
|
@@ -552,6 +552,7 @@ var buttonVariants = cva(
|
|
|
552
552
|
size: {
|
|
553
553
|
default: "h-10 px-4 py-2",
|
|
554
554
|
sm: "h-9 rounded-md px-3",
|
|
555
|
+
xs: "h-8 rounded-md px-2.5 text-xs",
|
|
555
556
|
lg: "h-11 rounded-md px-8",
|
|
556
557
|
icon: "h-10 w-10"
|
|
557
558
|
}
|
|
@@ -4350,6 +4351,13 @@ Pagination.displayName = "Pagination";
|
|
|
4350
4351
|
|
|
4351
4352
|
// src/components/data-table/DataTable.tsx
|
|
4352
4353
|
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4354
|
+
var cardBreakpointClasses = {
|
|
4355
|
+
sm: { table: "max-sm:hidden", cards: "sm:hidden" },
|
|
4356
|
+
md: { table: "max-md:hidden", cards: "md:hidden" },
|
|
4357
|
+
lg: { table: "max-lg:hidden", cards: "lg:hidden" },
|
|
4358
|
+
xl: { table: "max-xl:hidden", cards: "xl:hidden" },
|
|
4359
|
+
"2xl": { table: "max-2xl:hidden", cards: "2xl:hidden" }
|
|
4360
|
+
};
|
|
4353
4361
|
function compareValues(a, b) {
|
|
4354
4362
|
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
4355
4363
|
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
@@ -4384,6 +4392,7 @@ function DataTable({
|
|
|
4384
4392
|
stickyHeader,
|
|
4385
4393
|
density = "default",
|
|
4386
4394
|
zebra,
|
|
4395
|
+
cardLayout,
|
|
4387
4396
|
loading,
|
|
4388
4397
|
loadingRows,
|
|
4389
4398
|
className
|
|
@@ -4457,134 +4466,203 @@ function DataTable({
|
|
|
4457
4466
|
if (typeof raw === "string" || typeof raw === "number") return raw;
|
|
4458
4467
|
return String(raw);
|
|
4459
4468
|
};
|
|
4469
|
+
const cardBreakpoint = typeof cardLayout === "string" ? cardLayout : cardLayout ? "md" : null;
|
|
4470
|
+
const cardClasses = cardBreakpoint ? cardBreakpointClasses[cardBreakpoint] : null;
|
|
4460
4471
|
const alignClass = (align) => align === "right" ? "text-right" : align === "center" ? "text-center" : "text-left";
|
|
4472
|
+
const cardCell = (row, column, index) => {
|
|
4473
|
+
const value = cellValue(row, column, index);
|
|
4474
|
+
if (column.onClick) {
|
|
4475
|
+
return /* @__PURE__ */ jsx47(
|
|
4476
|
+
"button",
|
|
4477
|
+
{
|
|
4478
|
+
type: "button",
|
|
4479
|
+
onClick: () => column.onClick(row),
|
|
4480
|
+
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",
|
|
4481
|
+
children: value
|
|
4482
|
+
}
|
|
4483
|
+
);
|
|
4484
|
+
}
|
|
4485
|
+
return value;
|
|
4486
|
+
};
|
|
4461
4487
|
return /* @__PURE__ */ jsxs32("div", { className: cn("w-full space-y-3", className), children: [
|
|
4462
4488
|
selectionEnabled && selectedIds.length > 0 && bulkActions && /* @__PURE__ */ jsxs32("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: [
|
|
4463
4489
|
/* @__PURE__ */ jsx47("span", { className: "font-medium", children: selectedLabel.replace("{count}", String(selectedIds.length)) }),
|
|
4464
4490
|
/* @__PURE__ */ jsx47("div", { className: "flex flex-wrap items-center gap-2", children: bulkActions })
|
|
4465
4491
|
] }),
|
|
4466
|
-
/* @__PURE__ */ jsx47(
|
|
4467
|
-
"
|
|
4492
|
+
/* @__PURE__ */ jsx47(
|
|
4493
|
+
"div",
|
|
4468
4494
|
{
|
|
4469
|
-
className: cn("w-full
|
|
4470
|
-
children:
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
{
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4495
|
+
className: cn("w-full overflow-x-auto rounded-lg border border-border", cardClasses?.table),
|
|
4496
|
+
children: /* @__PURE__ */ jsxs32(
|
|
4497
|
+
"table",
|
|
4498
|
+
{
|
|
4499
|
+
className: cn("w-full caption-bottom", density === "compact" ? "text-xs" : "text-sm"),
|
|
4500
|
+
children: [
|
|
4501
|
+
caption && /* @__PURE__ */ jsx47("caption", { className: "px-3 py-2 text-left text-xs text-muted-foreground", children: caption }),
|
|
4502
|
+
/* @__PURE__ */ jsx47("thead", { className: cn("bg-muted/50", stickyHeader && "sticky top-0 z-10 bg-background"), children: /* @__PURE__ */ jsxs32("tr", { children: [
|
|
4503
|
+
selectionEnabled && /* @__PURE__ */ jsx47("th", { scope: "col", className: "w-10 border-b border-border px-3 py-2", children: /* @__PURE__ */ jsx47(
|
|
4504
|
+
Checkbox,
|
|
4505
|
+
{
|
|
4506
|
+
"aria-label": selectAllLabel,
|
|
4507
|
+
checked: allSelected,
|
|
4508
|
+
ref: (node) => {
|
|
4509
|
+
if (node) node.indeterminate = someSelected && !allSelected;
|
|
4510
|
+
},
|
|
4511
|
+
onCheckedChange: toggleAll
|
|
4512
|
+
}
|
|
4513
|
+
) }),
|
|
4514
|
+
columns.map((column) => {
|
|
4515
|
+
const isSorted = sort?.key === column.key;
|
|
4516
|
+
const ariaSort = !column.sortable ? void 0 : isSorted ? sort.dir === "asc" ? "ascending" : "descending" : "none";
|
|
4517
|
+
return /* @__PURE__ */ jsx47(
|
|
4518
|
+
"th",
|
|
4519
|
+
{
|
|
4520
|
+
scope: "col",
|
|
4521
|
+
"aria-sort": ariaSort,
|
|
4522
|
+
className: cn(
|
|
4523
|
+
"border-b border-border px-3 py-2 font-medium",
|
|
4524
|
+
alignClass(column.align),
|
|
4525
|
+
column.className
|
|
4526
|
+
),
|
|
4527
|
+
children: column.sortable ? /* @__PURE__ */ jsxs32(
|
|
4528
|
+
"button",
|
|
4529
|
+
{
|
|
4530
|
+
type: "button",
|
|
4531
|
+
onClick: () => applySort(column.key),
|
|
4532
|
+
className: "inline-flex items-center gap-1 rounded px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4533
|
+
children: [
|
|
4534
|
+
column.header,
|
|
4535
|
+
/* @__PURE__ */ jsx47("span", { "aria-hidden": "true", className: "text-[10px] text-muted-foreground", children: renderSortIcon ? renderSortIcon(isSorted ? sort.dir === "asc" ? "asc" : "desc" : "none") : isSorted ? sort.dir === "asc" ? "\u25B2" : "\u25BC" : "\u2195" })
|
|
4536
|
+
]
|
|
4537
|
+
}
|
|
4538
|
+
) : column.header
|
|
4539
|
+
},
|
|
4540
|
+
column.key
|
|
4541
|
+
);
|
|
4542
|
+
})
|
|
4543
|
+
] }) }),
|
|
4544
|
+
/* @__PURE__ */ jsx47("tbody", { "aria-busy": loading || void 0, children: loading ? Array.from(
|
|
4545
|
+
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
4546
|
+
(_, skeletonRow) => /* @__PURE__ */ jsxs32("tr", { children: [
|
|
4547
|
+
selectionEnabled && /* @__PURE__ */ jsx47("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ jsx47(Skeleton, { className: "h-4 w-4" }) }),
|
|
4548
|
+
columns.map((column) => /* @__PURE__ */ jsx47("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ jsx47(Skeleton, { className: density === "compact" ? "h-3 w-full" : "h-4 w-full" }) }, column.key))
|
|
4549
|
+
] }, `skeleton-${skeletonRow}`)
|
|
4550
|
+
) : visible.length === 0 ? /* @__PURE__ */ jsx47("tr", { children: /* @__PURE__ */ jsx47(
|
|
4551
|
+
"td",
|
|
4489
4552
|
{
|
|
4490
|
-
|
|
4491
|
-
"
|
|
4553
|
+
colSpan: columns.length + (selectionEnabled ? 1 : 0),
|
|
4554
|
+
className: "px-3 py-8 text-center text-sm text-muted-foreground",
|
|
4555
|
+
children: emptyMessage
|
|
4556
|
+
}
|
|
4557
|
+
) }) : visible.map((row, index) => /* @__PURE__ */ jsxs32(
|
|
4558
|
+
"tr",
|
|
4559
|
+
{
|
|
4560
|
+
tabIndex: onRowClick ? 0 : void 0,
|
|
4561
|
+
onClick: onRowClick ? () => onRowClick(row) : void 0,
|
|
4562
|
+
onKeyDown: onRowClick ? (event) => {
|
|
4563
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
4564
|
+
event.preventDefault();
|
|
4565
|
+
onRowClick(row);
|
|
4566
|
+
}
|
|
4567
|
+
} : void 0,
|
|
4492
4568
|
className: cn(
|
|
4493
|
-
"border-b border-border
|
|
4494
|
-
|
|
4495
|
-
|
|
4569
|
+
"border-b border-border last:border-0",
|
|
4570
|
+
zebra && "[&:nth-child(odd)]:bg-muted/30",
|
|
4571
|
+
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"
|
|
4496
4572
|
),
|
|
4497
|
-
children:
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
type: "button",
|
|
4501
|
-
onClick: () => applySort(column.key),
|
|
4502
|
-
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",
|
|
4503
|
-
children: [
|
|
4504
|
-
column.header,
|
|
4505
|
-
/* @__PURE__ */ jsx47("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" })
|
|
4506
|
-
]
|
|
4507
|
-
}
|
|
4508
|
-
) : column.header
|
|
4509
|
-
},
|
|
4510
|
-
column.key
|
|
4511
|
-
);
|
|
4512
|
-
})
|
|
4513
|
-
] }) }),
|
|
4514
|
-
/* @__PURE__ */ jsx47("tbody", { "aria-busy": loading || void 0, children: loading ? Array.from(
|
|
4515
|
-
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
4516
|
-
(_, skeletonRow) => /* @__PURE__ */ jsxs32("tr", { children: [
|
|
4517
|
-
selectionEnabled && /* @__PURE__ */ jsx47("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ jsx47(Skeleton, { className: "h-4 w-4" }) }),
|
|
4518
|
-
columns.map((column) => /* @__PURE__ */ jsx47("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ jsx47(Skeleton, { className: density === "compact" ? "h-3 w-full" : "h-4 w-full" }) }, column.key))
|
|
4519
|
-
] }, `skeleton-${skeletonRow}`)
|
|
4520
|
-
) : visible.length === 0 ? /* @__PURE__ */ jsx47("tr", { children: /* @__PURE__ */ jsx47(
|
|
4521
|
-
"td",
|
|
4522
|
-
{
|
|
4523
|
-
colSpan: columns.length + (selectionEnabled ? 1 : 0),
|
|
4524
|
-
className: "px-3 py-8 text-center text-sm text-muted-foreground",
|
|
4525
|
-
children: emptyMessage
|
|
4526
|
-
}
|
|
4527
|
-
) }) : visible.map((row, index) => /* @__PURE__ */ jsxs32(
|
|
4528
|
-
"tr",
|
|
4529
|
-
{
|
|
4530
|
-
tabIndex: onRowClick ? 0 : void 0,
|
|
4531
|
-
onClick: onRowClick ? () => onRowClick(row) : void 0,
|
|
4532
|
-
onKeyDown: onRowClick ? (event) => {
|
|
4533
|
-
if (event.key === "Enter" || event.key === " ") {
|
|
4534
|
-
event.preventDefault();
|
|
4535
|
-
onRowClick(row);
|
|
4536
|
-
}
|
|
4537
|
-
} : void 0,
|
|
4538
|
-
className: cn(
|
|
4539
|
-
"border-b border-border last:border-0",
|
|
4540
|
-
zebra && "[&:nth-child(odd)]:bg-muted/30",
|
|
4541
|
-
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"
|
|
4542
|
-
),
|
|
4543
|
-
children: [
|
|
4544
|
-
selectionEnabled && /* @__PURE__ */ jsx47(
|
|
4545
|
-
"td",
|
|
4546
|
-
{
|
|
4547
|
-
className: cn("align-middle", density === "compact" ? "px-2 py-1" : "px-3 py-2"),
|
|
4548
|
-
onClick: (event) => event.stopPropagation(),
|
|
4549
|
-
children: /* @__PURE__ */ jsx47(
|
|
4550
|
-
Checkbox,
|
|
4573
|
+
children: [
|
|
4574
|
+
selectionEnabled && /* @__PURE__ */ jsx47(
|
|
4575
|
+
"td",
|
|
4551
4576
|
{
|
|
4552
|
-
"
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4577
|
+
className: cn("align-middle", density === "compact" ? "px-2 py-1" : "px-3 py-2"),
|
|
4578
|
+
onClick: (event) => event.stopPropagation(),
|
|
4579
|
+
children: /* @__PURE__ */ jsx47(
|
|
4580
|
+
Checkbox,
|
|
4581
|
+
{
|
|
4582
|
+
"aria-label": `Select row ${rowId(row)}`,
|
|
4583
|
+
checked: selectedSet.has(rowId(row)),
|
|
4584
|
+
disabled: isRowSelectable ? !isRowSelectable(row) : void 0,
|
|
4585
|
+
onCheckedChange: () => toggleRow(rowId(row))
|
|
4586
|
+
}
|
|
4587
|
+
)
|
|
4556
4588
|
}
|
|
4557
|
-
)
|
|
4558
|
-
}
|
|
4559
|
-
),
|
|
4560
|
-
columns.map((column) => /* @__PURE__ */ jsx47(
|
|
4561
|
-
"td",
|
|
4562
|
-
{
|
|
4563
|
-
className: cn(
|
|
4564
|
-
"align-middle",
|
|
4565
|
-
density === "compact" ? "px-2 py-1" : "px-3 py-2",
|
|
4566
|
-
alignClass(column.align),
|
|
4567
|
-
column.className
|
|
4568
4589
|
),
|
|
4569
|
-
|
|
4570
|
-
"
|
|
4590
|
+
columns.map((column) => /* @__PURE__ */ jsx47(
|
|
4591
|
+
"td",
|
|
4571
4592
|
{
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4593
|
+
className: cn(
|
|
4594
|
+
"align-middle",
|
|
4595
|
+
density === "compact" ? "px-2 py-1" : "px-3 py-2",
|
|
4596
|
+
alignClass(column.align),
|
|
4597
|
+
column.className
|
|
4598
|
+
),
|
|
4599
|
+
children: column.onClick ? /* @__PURE__ */ jsx47(
|
|
4600
|
+
"button",
|
|
4601
|
+
{
|
|
4602
|
+
type: "button",
|
|
4603
|
+
onClick: () => column.onClick(row),
|
|
4604
|
+
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",
|
|
4605
|
+
children: cellValue(row, column, index)
|
|
4606
|
+
}
|
|
4607
|
+
) : cellValue(row, column, index)
|
|
4608
|
+
},
|
|
4609
|
+
column.key
|
|
4610
|
+
))
|
|
4611
|
+
]
|
|
4612
|
+
},
|
|
4613
|
+
rowId(row)
|
|
4614
|
+
)) })
|
|
4615
|
+
]
|
|
4616
|
+
}
|
|
4617
|
+
)
|
|
4618
|
+
}
|
|
4619
|
+
),
|
|
4620
|
+
cardClasses && /* @__PURE__ */ jsx47("ul", { "aria-label": caption, "aria-busy": loading || void 0, className: cn("space-y-3", cardClasses.cards), children: loading ? Array.from(
|
|
4621
|
+
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
4622
|
+
(_, skeletonRow) => /* @__PURE__ */ jsx47("li", { className: "rounded-lg border border-border p-3", children: /* @__PURE__ */ jsxs32("div", { className: "space-y-2", children: [
|
|
4623
|
+
/* @__PURE__ */ jsx47(Skeleton, { className: "h-4 w-1/3" }),
|
|
4624
|
+
/* @__PURE__ */ jsx47(Skeleton, { className: "h-4 w-full" }),
|
|
4625
|
+
/* @__PURE__ */ jsx47(Skeleton, { className: "h-4 w-2/3" })
|
|
4626
|
+
] }) }, `skeleton-${skeletonRow}`)
|
|
4627
|
+
) : visible.length === 0 ? /* @__PURE__ */ jsx47("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__ */ jsx47("li", { children: /* @__PURE__ */ jsxs32(
|
|
4628
|
+
"div",
|
|
4629
|
+
{
|
|
4630
|
+
tabIndex: onRowClick ? 0 : void 0,
|
|
4631
|
+
onClick: onRowClick ? () => onRowClick(row) : void 0,
|
|
4632
|
+
onKeyDown: onRowClick ? (event) => {
|
|
4633
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
4634
|
+
event.preventDefault();
|
|
4635
|
+
onRowClick(row);
|
|
4636
|
+
}
|
|
4637
|
+
} : void 0,
|
|
4638
|
+
className: cn(
|
|
4639
|
+
"rounded-lg border border-border",
|
|
4640
|
+
onRowClick && "cursor-pointer transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
4641
|
+
),
|
|
4642
|
+
children: [
|
|
4643
|
+
selectionEnabled && /* @__PURE__ */ jsx47(
|
|
4644
|
+
"div",
|
|
4645
|
+
{
|
|
4646
|
+
className: "flex items-center justify-end px-3 pt-2",
|
|
4647
|
+
onClick: (event) => event.stopPropagation(),
|
|
4648
|
+
children: /* @__PURE__ */ jsx47(
|
|
4649
|
+
Checkbox,
|
|
4650
|
+
{
|
|
4651
|
+
"aria-label": `Select row ${rowId(row)}`,
|
|
4652
|
+
checked: selectedSet.has(rowId(row)),
|
|
4653
|
+
disabled: isRowSelectable ? !isRowSelectable(row) : void 0,
|
|
4654
|
+
onCheckedChange: () => toggleRow(rowId(row))
|
|
4655
|
+
}
|
|
4656
|
+
)
|
|
4657
|
+
}
|
|
4658
|
+
),
|
|
4659
|
+
/* @__PURE__ */ jsx47("dl", { className: "divide-y divide-border", children: columns.map((column) => /* @__PURE__ */ jsxs32("div", { className: "px-3 py-2", children: [
|
|
4660
|
+
/* @__PURE__ */ jsx47("dt", { className: "text-xs font-medium text-muted-foreground", children: column.header }),
|
|
4661
|
+
/* @__PURE__ */ jsx47("dd", { className: cn("mt-0.5 text-sm", alignClass(column.align)), children: cardCell(row, column, index) })
|
|
4662
|
+
] }, column.key)) })
|
|
4585
4663
|
]
|
|
4586
4664
|
}
|
|
4587
|
-
) }),
|
|
4665
|
+
) }, rowId(row))) }),
|
|
4588
4666
|
pageSize && pageCount > 1 && /* @__PURE__ */ jsxs32("div", { className: "flex flex-wrap items-center justify-between gap-x-4 gap-y-2", children: [
|
|
4589
4667
|
/* @__PURE__ */ jsxs32(
|
|
4590
4668
|
"p",
|
|
@@ -5245,9 +5323,50 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5245
5323
|
);
|
|
5246
5324
|
});
|
|
5247
5325
|
|
|
5326
|
+
// src/components/list-toolbar/ListToolbar.tsx
|
|
5327
|
+
import { jsx as jsx61, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
5328
|
+
var alignClasses = {
|
|
5329
|
+
between: "justify-between",
|
|
5330
|
+
start: "justify-start",
|
|
5331
|
+
center: "justify-center",
|
|
5332
|
+
end: "justify-end"
|
|
5333
|
+
};
|
|
5334
|
+
function ListToolbar({
|
|
5335
|
+
count,
|
|
5336
|
+
countLabel = "results",
|
|
5337
|
+
position,
|
|
5338
|
+
note,
|
|
5339
|
+
align = "between",
|
|
5340
|
+
className,
|
|
5341
|
+
children,
|
|
5342
|
+
...props
|
|
5343
|
+
}) {
|
|
5344
|
+
const hasSummary = count !== void 0 || position !== void 0 || note !== void 0;
|
|
5345
|
+
return /* @__PURE__ */ jsxs42(
|
|
5346
|
+
"div",
|
|
5347
|
+
{
|
|
5348
|
+
className: cn("flex flex-wrap items-center gap-x-4 gap-y-2 text-sm", alignClasses[align], className),
|
|
5349
|
+
...props,
|
|
5350
|
+
children: [
|
|
5351
|
+
hasSummary && /* @__PURE__ */ jsxs42("p", { className: "flex flex-wrap items-baseline gap-x-2 text-muted-foreground", "aria-live": "polite", children: [
|
|
5352
|
+
count !== void 0 && /* @__PURE__ */ jsxs42("span", { className: "font-medium text-foreground", children: [
|
|
5353
|
+
count,
|
|
5354
|
+
" ",
|
|
5355
|
+
countLabel
|
|
5356
|
+
] }),
|
|
5357
|
+
position && /* @__PURE__ */ jsx61("span", { children: position }),
|
|
5358
|
+
note && /* @__PURE__ */ jsx61("span", { className: "text-xs", children: note })
|
|
5359
|
+
] }),
|
|
5360
|
+
children && /* @__PURE__ */ jsx61("div", { className: "flex flex-wrap items-center gap-2", children })
|
|
5361
|
+
]
|
|
5362
|
+
}
|
|
5363
|
+
);
|
|
5364
|
+
}
|
|
5365
|
+
ListToolbar.displayName = "ListToolbar";
|
|
5366
|
+
|
|
5248
5367
|
// src/components/date-picker/DatePicker.tsx
|
|
5249
5368
|
import * as React60 from "react";
|
|
5250
|
-
import { jsx as
|
|
5369
|
+
import { jsx as jsx62, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
5251
5370
|
var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
5252
5371
|
const [internal, setInternal] = React60.useState(defaultValue ?? "");
|
|
5253
5372
|
const current = value ?? internal;
|
|
@@ -5255,8 +5374,8 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5255
5374
|
if (value === void 0) setInternal(next);
|
|
5256
5375
|
onValueChange?.(next);
|
|
5257
5376
|
};
|
|
5258
|
-
return /* @__PURE__ */
|
|
5259
|
-
/* @__PURE__ */
|
|
5377
|
+
return /* @__PURE__ */ jsxs43("div", { className: cn("relative flex items-center", className), children: [
|
|
5378
|
+
/* @__PURE__ */ jsx62(
|
|
5260
5379
|
Input,
|
|
5261
5380
|
{
|
|
5262
5381
|
ref,
|
|
@@ -5270,7 +5389,7 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5270
5389
|
...props
|
|
5271
5390
|
}
|
|
5272
5391
|
),
|
|
5273
|
-
clearable && current && /* @__PURE__ */
|
|
5392
|
+
clearable && current && /* @__PURE__ */ jsx62(
|
|
5274
5393
|
"button",
|
|
5275
5394
|
{
|
|
5276
5395
|
type: "button",
|
|
@@ -5356,7 +5475,7 @@ function computePosition({
|
|
|
5356
5475
|
}
|
|
5357
5476
|
|
|
5358
5477
|
// src/components/popover/Popover.tsx
|
|
5359
|
-
import { jsx as
|
|
5478
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
5360
5479
|
var PopoverContext = React61.createContext({
|
|
5361
5480
|
open: false,
|
|
5362
5481
|
setOpen: () => {
|
|
@@ -5391,7 +5510,7 @@ var Popover = React61.forwardRef(
|
|
|
5391
5510
|
},
|
|
5392
5511
|
[open, onOpenChange]
|
|
5393
5512
|
);
|
|
5394
|
-
return /* @__PURE__ */
|
|
5513
|
+
return /* @__PURE__ */ jsx63("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx63(
|
|
5395
5514
|
PopoverContext.Provider,
|
|
5396
5515
|
{
|
|
5397
5516
|
value: { open: current, setOpen, triggerId, contentId, wrapperRef, anchorRef, triggerRef },
|
|
@@ -5412,7 +5531,7 @@ var PopoverTrigger = React61.forwardRef(
|
|
|
5412
5531
|
},
|
|
5413
5532
|
[ref, triggerRef]
|
|
5414
5533
|
);
|
|
5415
|
-
return /* @__PURE__ */
|
|
5534
|
+
return /* @__PURE__ */ jsx63(
|
|
5416
5535
|
"button",
|
|
5417
5536
|
{
|
|
5418
5537
|
ref: setRefs,
|
|
@@ -5448,7 +5567,7 @@ var PopoverAnchor = React61.forwardRef(
|
|
|
5448
5567
|
},
|
|
5449
5568
|
[anchorRef, ref]
|
|
5450
5569
|
);
|
|
5451
|
-
return /* @__PURE__ */
|
|
5570
|
+
return /* @__PURE__ */ jsx63("span", { ref: setRefs, className: cn("inline-block", className), ...props, children });
|
|
5452
5571
|
}
|
|
5453
5572
|
);
|
|
5454
5573
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
@@ -5548,7 +5667,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5548
5667
|
}, [open, pos]);
|
|
5549
5668
|
if (!open || typeof document === "undefined") return null;
|
|
5550
5669
|
return createPortal7(
|
|
5551
|
-
/* @__PURE__ */
|
|
5670
|
+
/* @__PURE__ */ jsx63(
|
|
5552
5671
|
"div",
|
|
5553
5672
|
{
|
|
5554
5673
|
ref: (node) => {
|
|
@@ -5593,7 +5712,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5593
5712
|
PopoverContent.displayName = "PopoverContent";
|
|
5594
5713
|
|
|
5595
5714
|
// src/components/date-picker-popover/DatePickerPopover.tsx
|
|
5596
|
-
import { Fragment as Fragment12, jsx as
|
|
5715
|
+
import { Fragment as Fragment12, jsx as jsx64, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
5597
5716
|
var DatePickerPopover = React62.forwardRef(
|
|
5598
5717
|
({
|
|
5599
5718
|
value,
|
|
@@ -5626,9 +5745,9 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5626
5745
|
[ref]
|
|
5627
5746
|
);
|
|
5628
5747
|
const label = value ? formatDateLabel(value, locale) : placeholder;
|
|
5629
|
-
return /* @__PURE__ */
|
|
5630
|
-
/* @__PURE__ */
|
|
5631
|
-
/* @__PURE__ */
|
|
5748
|
+
return /* @__PURE__ */ jsxs44(Fragment12, { children: [
|
|
5749
|
+
/* @__PURE__ */ jsxs44(Popover, { open, onOpenChange: setOpen, children: [
|
|
5750
|
+
/* @__PURE__ */ jsx64(
|
|
5632
5751
|
PopoverTrigger,
|
|
5633
5752
|
{
|
|
5634
5753
|
ref: setTriggerRef,
|
|
@@ -5646,7 +5765,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5646
5765
|
children: label
|
|
5647
5766
|
}
|
|
5648
5767
|
),
|
|
5649
|
-
/* @__PURE__ */
|
|
5768
|
+
/* @__PURE__ */ jsx64(PopoverContent, { side, align, matchTriggerWidth: true, className: "w-auto p-3", children: /* @__PURE__ */ jsx64(
|
|
5650
5769
|
Calendar,
|
|
5651
5770
|
{
|
|
5652
5771
|
value,
|
|
@@ -5664,7 +5783,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5664
5783
|
}
|
|
5665
5784
|
) })
|
|
5666
5785
|
] }),
|
|
5667
|
-
name ? /* @__PURE__ */
|
|
5786
|
+
name ? /* @__PURE__ */ jsx64("input", { type: "hidden", name, value: value ?? "", required }) : null
|
|
5668
5787
|
] });
|
|
5669
5788
|
}
|
|
5670
5789
|
);
|
|
@@ -5672,7 +5791,7 @@ DatePickerPopover.displayName = "DatePickerPopover";
|
|
|
5672
5791
|
|
|
5673
5792
|
// src/components/time-picker/TimePicker.tsx
|
|
5674
5793
|
import * as React63 from "react";
|
|
5675
|
-
import { jsx as
|
|
5794
|
+
import { jsx as jsx65, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
5676
5795
|
var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
5677
5796
|
const [internal, setInternal] = React63.useState(defaultValue ?? "");
|
|
5678
5797
|
const current = value ?? internal;
|
|
@@ -5680,8 +5799,8 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5680
5799
|
if (value === void 0) setInternal(next);
|
|
5681
5800
|
onValueChange?.(next);
|
|
5682
5801
|
};
|
|
5683
|
-
return /* @__PURE__ */
|
|
5684
|
-
/* @__PURE__ */
|
|
5802
|
+
return /* @__PURE__ */ jsxs45("div", { className: cn("relative flex items-center", className), children: [
|
|
5803
|
+
/* @__PURE__ */ jsx65(
|
|
5685
5804
|
Input,
|
|
5686
5805
|
{
|
|
5687
5806
|
ref,
|
|
@@ -5695,7 +5814,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5695
5814
|
...props
|
|
5696
5815
|
}
|
|
5697
5816
|
),
|
|
5698
|
-
clearable && current && /* @__PURE__ */
|
|
5817
|
+
clearable && current && /* @__PURE__ */ jsx65(
|
|
5699
5818
|
"button",
|
|
5700
5819
|
{
|
|
5701
5820
|
type: "button",
|
|
@@ -5710,7 +5829,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5710
5829
|
|
|
5711
5830
|
// src/components/stepper/Stepper.tsx
|
|
5712
5831
|
import * as React64 from "react";
|
|
5713
|
-
import { Fragment as Fragment13, jsx as
|
|
5832
|
+
import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
5714
5833
|
var Stepper = React64.forwardRef(function Stepper2({
|
|
5715
5834
|
steps,
|
|
5716
5835
|
current,
|
|
@@ -5734,7 +5853,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5734
5853
|
const verticalTitlePad = size === "sm" ? "pt-0.5" : "pt-1";
|
|
5735
5854
|
const connectorTop = variant === "dots" ? size === "sm" ? "mt-1" : "mt-[5px]" : size === "sm" ? "mt-3" : "mt-3.5";
|
|
5736
5855
|
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";
|
|
5737
|
-
return /* @__PURE__ */
|
|
5856
|
+
return /* @__PURE__ */ jsx66(
|
|
5738
5857
|
"ol",
|
|
5739
5858
|
{
|
|
5740
5859
|
ref,
|
|
@@ -5748,7 +5867,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5748
5867
|
const isLast = index === steps.length - 1;
|
|
5749
5868
|
const titleCentered = alignTitles === "center" && !step.description;
|
|
5750
5869
|
const below = !vertical && labelPlacement === "below";
|
|
5751
|
-
const marker = /* @__PURE__ */
|
|
5870
|
+
const marker = /* @__PURE__ */ jsx66(
|
|
5752
5871
|
"span",
|
|
5753
5872
|
{
|
|
5754
5873
|
"aria-hidden": "true",
|
|
@@ -5770,8 +5889,8 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5770
5889
|
children: variant === "numbered" ? state === "complete" ? "\u2713" : index + 1 : null
|
|
5771
5890
|
}
|
|
5772
5891
|
);
|
|
5773
|
-
const label = /* @__PURE__ */
|
|
5774
|
-
/* @__PURE__ */
|
|
5892
|
+
const label = /* @__PURE__ */ jsxs46("span", { className: "min-w-0", children: [
|
|
5893
|
+
/* @__PURE__ */ jsx66(
|
|
5775
5894
|
"span",
|
|
5776
5895
|
{
|
|
5777
5896
|
className: cn(
|
|
@@ -5783,7 +5902,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5783
5902
|
children: step.label
|
|
5784
5903
|
}
|
|
5785
5904
|
),
|
|
5786
|
-
step.description && /* @__PURE__ */
|
|
5905
|
+
step.description && /* @__PURE__ */ jsx66(
|
|
5787
5906
|
"span",
|
|
5788
5907
|
{
|
|
5789
5908
|
className: cn(
|
|
@@ -5794,9 +5913,9 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5794
5913
|
children: step.description
|
|
5795
5914
|
}
|
|
5796
5915
|
),
|
|
5797
|
-
/* @__PURE__ */
|
|
5916
|
+
/* @__PURE__ */ jsx66("span", { className: "sr-only", children: state === "complete" ? labels?.completed ?? " (completed)" : state === "current" ? labels?.current ?? " (current step)" : labels?.upcoming ?? " (upcoming)" })
|
|
5798
5917
|
] });
|
|
5799
|
-
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */
|
|
5918
|
+
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ jsx66(
|
|
5800
5919
|
"button",
|
|
5801
5920
|
{
|
|
5802
5921
|
type: "button",
|
|
@@ -5805,29 +5924,29 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5805
5924
|
className: cn(rowClassName, focusClass),
|
|
5806
5925
|
children
|
|
5807
5926
|
}
|
|
5808
|
-
) : /* @__PURE__ */
|
|
5927
|
+
) : /* @__PURE__ */ jsx66("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
5809
5928
|
if (vertical) {
|
|
5810
|
-
return /* @__PURE__ */
|
|
5811
|
-
/* @__PURE__ */
|
|
5812
|
-
/* @__PURE__ */
|
|
5929
|
+
return /* @__PURE__ */ jsx66("li", { className: "flex", children: renderRow(
|
|
5930
|
+
/* @__PURE__ */ jsxs46(Fragment13, { children: [
|
|
5931
|
+
/* @__PURE__ */ jsxs46("div", { className: "flex flex-col items-center", children: [
|
|
5813
5932
|
marker,
|
|
5814
|
-
!isLast && /* @__PURE__ */
|
|
5933
|
+
!isLast && /* @__PURE__ */ jsx66("span", { "aria-hidden": "true", className: "my-1 w-px flex-1 rounded-full bg-border" })
|
|
5815
5934
|
] }),
|
|
5816
|
-
/* @__PURE__ */
|
|
5935
|
+
/* @__PURE__ */ jsx66("div", { className: cn("min-w-0 pb-6", titleCentered && verticalTitlePad), children: label })
|
|
5817
5936
|
] }),
|
|
5818
5937
|
"flex w-full items-stretch gap-3 text-left"
|
|
5819
5938
|
) }, step.label);
|
|
5820
5939
|
}
|
|
5821
5940
|
if (below) {
|
|
5822
|
-
return /* @__PURE__ */
|
|
5941
|
+
return /* @__PURE__ */ jsxs46("li", { className: "flex min-w-0 flex-1 items-start gap-2", children: [
|
|
5823
5942
|
renderRow(
|
|
5824
|
-
/* @__PURE__ */
|
|
5943
|
+
/* @__PURE__ */ jsxs46(Fragment13, { children: [
|
|
5825
5944
|
marker,
|
|
5826
5945
|
label
|
|
5827
5946
|
] }),
|
|
5828
5947
|
"flex min-w-0 flex-1 flex-col items-center gap-2 text-center"
|
|
5829
5948
|
),
|
|
5830
|
-
!isLast && /* @__PURE__ */
|
|
5949
|
+
!isLast && /* @__PURE__ */ jsx66(
|
|
5831
5950
|
"span",
|
|
5832
5951
|
{
|
|
5833
5952
|
"aria-hidden": "true",
|
|
@@ -5836,15 +5955,15 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5836
5955
|
)
|
|
5837
5956
|
] }, step.label);
|
|
5838
5957
|
}
|
|
5839
|
-
return /* @__PURE__ */
|
|
5958
|
+
return /* @__PURE__ */ jsxs46("li", { className: "flex min-w-0 items-start gap-2", children: [
|
|
5840
5959
|
renderRow(
|
|
5841
|
-
/* @__PURE__ */
|
|
5960
|
+
/* @__PURE__ */ jsxs46(Fragment13, { children: [
|
|
5842
5961
|
marker,
|
|
5843
5962
|
label
|
|
5844
5963
|
] }),
|
|
5845
5964
|
cn("flex min-w-0 text-left", gapClass, titleCentered ? "items-center" : "items-start")
|
|
5846
5965
|
),
|
|
5847
|
-
!isLast && /* @__PURE__ */
|
|
5966
|
+
!isLast && /* @__PURE__ */ jsx66(
|
|
5848
5967
|
"span",
|
|
5849
5968
|
{
|
|
5850
5969
|
"aria-hidden": "true",
|
|
@@ -5859,7 +5978,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5859
5978
|
|
|
5860
5979
|
// src/components/file-upload/FileUpload.tsx
|
|
5861
5980
|
import * as React65 from "react";
|
|
5862
|
-
import { jsx as
|
|
5981
|
+
import { jsx as jsx67, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
5863
5982
|
function formatSize(bytes) {
|
|
5864
5983
|
if (bytes < 1024) return `${bytes} B`;
|
|
5865
5984
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -5906,8 +6025,8 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5906
6025
|
const list = Array.from(incoming);
|
|
5907
6026
|
commit(multiple ? [...current, ...list] : list.slice(0, 1));
|
|
5908
6027
|
};
|
|
5909
|
-
return /* @__PURE__ */
|
|
5910
|
-
/* @__PURE__ */
|
|
6028
|
+
return /* @__PURE__ */ jsxs47("div", { className: cn("flex flex-col gap-3", className), children: [
|
|
6029
|
+
/* @__PURE__ */ jsxs47(
|
|
5911
6030
|
"div",
|
|
5912
6031
|
{
|
|
5913
6032
|
onDragOver: (event) => {
|
|
@@ -5928,9 +6047,9 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5928
6047
|
disabled && "opacity-50"
|
|
5929
6048
|
),
|
|
5930
6049
|
children: [
|
|
5931
|
-
/* @__PURE__ */
|
|
6050
|
+
/* @__PURE__ */ jsxs47("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
5932
6051
|
label,
|
|
5933
|
-
/* @__PURE__ */
|
|
6052
|
+
/* @__PURE__ */ jsx67(
|
|
5934
6053
|
"input",
|
|
5935
6054
|
{
|
|
5936
6055
|
ref,
|
|
@@ -5948,15 +6067,15 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5948
6067
|
}
|
|
5949
6068
|
)
|
|
5950
6069
|
] }),
|
|
5951
|
-
/* @__PURE__ */
|
|
6070
|
+
/* @__PURE__ */ jsx67("p", { className: "mt-1 text-xs text-muted-foreground", children: hint ?? (accept ? `Accepted: ${accept}` : "Any file type") })
|
|
5952
6071
|
]
|
|
5953
6072
|
}
|
|
5954
6073
|
),
|
|
5955
|
-
current.length > 0 && /* @__PURE__ */
|
|
5956
|
-
/* @__PURE__ */
|
|
5957
|
-
/* @__PURE__ */
|
|
5958
|
-
/* @__PURE__ */
|
|
5959
|
-
progress?.[file.name] !== void 0 && /* @__PURE__ */
|
|
6074
|
+
current.length > 0 && /* @__PURE__ */ jsx67("ul", { "aria-label": selectedFilesLabel, className: "space-y-2", children: current.map((file) => /* @__PURE__ */ jsxs47("li", { className: "flex items-center justify-between gap-3 rounded-md border border-border px-3 py-2", children: [
|
|
6075
|
+
/* @__PURE__ */ jsxs47("div", { className: "min-w-0", children: [
|
|
6076
|
+
/* @__PURE__ */ jsx67("p", { className: "truncate text-sm", children: file.name }),
|
|
6077
|
+
/* @__PURE__ */ jsx67("p", { className: "text-xs text-muted-foreground", children: formatSize(file.size) }),
|
|
6078
|
+
progress?.[file.name] !== void 0 && /* @__PURE__ */ jsx67(
|
|
5960
6079
|
"div",
|
|
5961
6080
|
{
|
|
5962
6081
|
role: "progressbar",
|
|
@@ -5965,11 +6084,11 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5965
6084
|
"aria-valuemax": 100,
|
|
5966
6085
|
"aria-label": uploadingLabel(file),
|
|
5967
6086
|
className: "mt-1 h-1.5 w-40 overflow-hidden rounded-full bg-muted",
|
|
5968
|
-
children: /* @__PURE__ */
|
|
6087
|
+
children: /* @__PURE__ */ jsx67("div", { className: "h-full bg-primary", style: { width: `${progress[file.name]}%` } })
|
|
5969
6088
|
}
|
|
5970
6089
|
)
|
|
5971
6090
|
] }),
|
|
5972
|
-
/* @__PURE__ */
|
|
6091
|
+
/* @__PURE__ */ jsx67(
|
|
5973
6092
|
"button",
|
|
5974
6093
|
{
|
|
5975
6094
|
type: "button",
|
|
@@ -5985,17 +6104,17 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5985
6104
|
|
|
5986
6105
|
// src/components/timeline/Timeline.tsx
|
|
5987
6106
|
import * as React66 from "react";
|
|
5988
|
-
import { jsx as
|
|
6107
|
+
import { jsx as jsx68, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
5989
6108
|
var Timeline = React66.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
5990
|
-
return /* @__PURE__ */
|
|
5991
|
-
index < items.length - 1 && /* @__PURE__ */
|
|
6109
|
+
return /* @__PURE__ */ jsx68("ol", { ref, className: cn("relative flex flex-col gap-6", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs48("li", { className: "relative flex gap-4", children: [
|
|
6110
|
+
index < items.length - 1 && /* @__PURE__ */ jsx68(
|
|
5992
6111
|
"span",
|
|
5993
6112
|
{
|
|
5994
6113
|
"aria-hidden": "true",
|
|
5995
6114
|
className: "absolute left-[5.5px] top-4 -bottom-7 w-px bg-border"
|
|
5996
6115
|
}
|
|
5997
6116
|
),
|
|
5998
|
-
/* @__PURE__ */
|
|
6117
|
+
/* @__PURE__ */ jsx68("div", { className: "relative z-10 flex flex-col items-center", children: /* @__PURE__ */ jsx68(
|
|
5999
6118
|
"span",
|
|
6000
6119
|
{
|
|
6001
6120
|
"aria-hidden": "true",
|
|
@@ -6005,22 +6124,22 @@ var Timeline = React66.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
6005
6124
|
)
|
|
6006
6125
|
}
|
|
6007
6126
|
) }),
|
|
6008
|
-
/* @__PURE__ */
|
|
6009
|
-
item.period && /* @__PURE__ */
|
|
6010
|
-
/* @__PURE__ */
|
|
6011
|
-
item.description && /* @__PURE__ */
|
|
6012
|
-
item.icon && /* @__PURE__ */
|
|
6127
|
+
/* @__PURE__ */ jsxs48("div", { className: "min-w-0 pb-1", children: [
|
|
6128
|
+
item.period && /* @__PURE__ */ jsx68("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
|
|
6129
|
+
/* @__PURE__ */ jsx68("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
|
|
6130
|
+
item.description && /* @__PURE__ */ jsx68("p", { className: "mt-1 text-sm text-muted-foreground", children: item.description }),
|
|
6131
|
+
item.icon && /* @__PURE__ */ jsx68("div", { className: "mt-1 text-muted-foreground [&_svg]:size-4", children: item.icon })
|
|
6013
6132
|
] })
|
|
6014
6133
|
] }, `${item.title}-${index}`)) });
|
|
6015
6134
|
});
|
|
6016
6135
|
|
|
6017
6136
|
// src/components/block/Block.tsx
|
|
6018
6137
|
import * as React67 from "react";
|
|
6019
|
-
import { jsx as
|
|
6138
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
6020
6139
|
var Block = React67.forwardRef(
|
|
6021
6140
|
({ as = "div", inline, muted, className, ...props }, ref) => {
|
|
6022
6141
|
const Tag = inline ? "span" : as;
|
|
6023
|
-
return /* @__PURE__ */
|
|
6142
|
+
return /* @__PURE__ */ jsx69(
|
|
6024
6143
|
Tag,
|
|
6025
6144
|
{
|
|
6026
6145
|
ref,
|
|
@@ -6034,7 +6153,7 @@ Block.displayName = "Block";
|
|
|
6034
6153
|
|
|
6035
6154
|
// src/components/flex/Flex.tsx
|
|
6036
6155
|
import * as React68 from "react";
|
|
6037
|
-
import { jsx as
|
|
6156
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
6038
6157
|
var justifyClasses = {
|
|
6039
6158
|
start: "justify-start",
|
|
6040
6159
|
center: "justify-center",
|
|
@@ -6043,7 +6162,7 @@ var justifyClasses = {
|
|
|
6043
6162
|
around: "justify-around",
|
|
6044
6163
|
evenly: "justify-evenly"
|
|
6045
6164
|
};
|
|
6046
|
-
var
|
|
6165
|
+
var alignClasses2 = {
|
|
6047
6166
|
start: "items-start",
|
|
6048
6167
|
center: "items-center",
|
|
6049
6168
|
end: "items-end",
|
|
@@ -6054,7 +6173,7 @@ var Flex = React68.forwardRef(
|
|
|
6054
6173
|
({ direction = "row", align, justify, wrap, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6055
6174
|
const Tag = as;
|
|
6056
6175
|
const gapResolved = resolveGap(gap);
|
|
6057
|
-
return /* @__PURE__ */
|
|
6176
|
+
return /* @__PURE__ */ jsx70(
|
|
6058
6177
|
Tag,
|
|
6059
6178
|
{
|
|
6060
6179
|
ref,
|
|
@@ -6062,7 +6181,7 @@ var Flex = React68.forwardRef(
|
|
|
6062
6181
|
"flex min-w-0",
|
|
6063
6182
|
direction === "column" ? "flex-col" : "flex-row",
|
|
6064
6183
|
wrap && "flex-wrap",
|
|
6065
|
-
align &&
|
|
6184
|
+
align && alignClasses2[align],
|
|
6066
6185
|
justify && justifyClasses[justify],
|
|
6067
6186
|
gapResolved.className,
|
|
6068
6187
|
className
|
|
@@ -6089,7 +6208,7 @@ var FlexItem = React68.forwardRef(
|
|
|
6089
6208
|
...shrink === false ? { flexShrink: 0 } : typeof shrink === "string" && shrink ? { flexShrink: Number(shrink) || shrink } : {},
|
|
6090
6209
|
...basis ? { flexBasis: basis } : {}
|
|
6091
6210
|
};
|
|
6092
|
-
return /* @__PURE__ */
|
|
6211
|
+
return /* @__PURE__ */ jsx70(
|
|
6093
6212
|
Tag,
|
|
6094
6213
|
{
|
|
6095
6214
|
ref,
|
|
@@ -6104,7 +6223,7 @@ FlexItem.displayName = "FlexItem";
|
|
|
6104
6223
|
|
|
6105
6224
|
// src/components/grid/Grid.tsx
|
|
6106
6225
|
import * as React69 from "react";
|
|
6107
|
-
import { jsx as
|
|
6226
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
6108
6227
|
var BASE_COLS = {
|
|
6109
6228
|
1: "grid-cols-1",
|
|
6110
6229
|
2: "grid-cols-2",
|
|
@@ -6173,7 +6292,7 @@ var Grid = React69.forwardRef(
|
|
|
6173
6292
|
({ cols, smCols, mdCols, lgCols, minCol, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6174
6293
|
const Tag = as;
|
|
6175
6294
|
const gapResolved = resolveGap(gap);
|
|
6176
|
-
return /* @__PURE__ */
|
|
6295
|
+
return /* @__PURE__ */ jsx71(
|
|
6177
6296
|
Tag,
|
|
6178
6297
|
{
|
|
6179
6298
|
ref,
|
|
@@ -6200,7 +6319,7 @@ Grid.displayName = "Grid";
|
|
|
6200
6319
|
var GridItem = React69.forwardRef(
|
|
6201
6320
|
({ span, smSpan, mdSpan, lgSpan, as = "div", className, ...props }, ref) => {
|
|
6202
6321
|
const Tag = as;
|
|
6203
|
-
return /* @__PURE__ */
|
|
6322
|
+
return /* @__PURE__ */ jsx71(
|
|
6204
6323
|
Tag,
|
|
6205
6324
|
{
|
|
6206
6325
|
ref,
|
|
@@ -6220,7 +6339,7 @@ GridItem.displayName = "GridItem";
|
|
|
6220
6339
|
|
|
6221
6340
|
// src/components/container/Container.tsx
|
|
6222
6341
|
import * as React70 from "react";
|
|
6223
|
-
import { jsx as
|
|
6342
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
6224
6343
|
var widthClasses = {
|
|
6225
6344
|
sm: "max-w-3xl",
|
|
6226
6345
|
md: "max-w-5xl",
|
|
@@ -6236,7 +6355,7 @@ var paddingClasses = {
|
|
|
6236
6355
|
};
|
|
6237
6356
|
var Container = React70.forwardRef(function Container2({ width = "lg", padding = "md", as = "div", className, ...props }, ref) {
|
|
6238
6357
|
const Tag = as;
|
|
6239
|
-
return /* @__PURE__ */
|
|
6358
|
+
return /* @__PURE__ */ jsx72(
|
|
6240
6359
|
Tag,
|
|
6241
6360
|
{
|
|
6242
6361
|
ref,
|
|
@@ -6248,7 +6367,7 @@ var Container = React70.forwardRef(function Container2({ width = "lg", padding =
|
|
|
6248
6367
|
|
|
6249
6368
|
// src/components/section/Section.tsx
|
|
6250
6369
|
import * as React71 from "react";
|
|
6251
|
-
import { jsx as
|
|
6370
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
6252
6371
|
var toneClasses2 = {
|
|
6253
6372
|
default: "bg-background text-foreground",
|
|
6254
6373
|
muted: "bg-muted/40 text-foreground",
|
|
@@ -6302,7 +6421,7 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6302
6421
|
}, ref) {
|
|
6303
6422
|
const Tag = as;
|
|
6304
6423
|
const toneStyle = tone === "inverse" ? inverseVars : tone === "brand" ? brandVars : void 0;
|
|
6305
|
-
return /* @__PURE__ */
|
|
6424
|
+
return /* @__PURE__ */ jsx73(
|
|
6306
6425
|
Tag,
|
|
6307
6426
|
{
|
|
6308
6427
|
ref,
|
|
@@ -6310,14 +6429,14 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6310
6429
|
className: cn("w-full", toneClasses2[tone], paddingClasses2[padding], className),
|
|
6311
6430
|
style: { ...toneStyle, ...style },
|
|
6312
6431
|
...props,
|
|
6313
|
-
children: container ? /* @__PURE__ */
|
|
6432
|
+
children: container ? /* @__PURE__ */ jsx73(Container, { width, className: containerClassName, children }) : children
|
|
6314
6433
|
}
|
|
6315
6434
|
);
|
|
6316
6435
|
});
|
|
6317
6436
|
|
|
6318
6437
|
// src/components/hero/Hero.tsx
|
|
6319
6438
|
import * as React72 from "react";
|
|
6320
|
-
import { jsx as
|
|
6439
|
+
import { jsx as jsx74, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
6321
6440
|
var titleSizes = {
|
|
6322
6441
|
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
6323
6442
|
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
@@ -6348,7 +6467,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6348
6467
|
const Heading2 = `h${level}`;
|
|
6349
6468
|
const centered = layout === "centered" || align === "center";
|
|
6350
6469
|
const overlay = layout === "overlay";
|
|
6351
|
-
const copy = /* @__PURE__ */
|
|
6470
|
+
const copy = /* @__PURE__ */ jsxs49(
|
|
6352
6471
|
"div",
|
|
6353
6472
|
{
|
|
6354
6473
|
className: cn(
|
|
@@ -6357,7 +6476,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6357
6476
|
overlay && "max-w-2xl"
|
|
6358
6477
|
),
|
|
6359
6478
|
children: [
|
|
6360
|
-
badge && /* @__PURE__ */
|
|
6479
|
+
badge && /* @__PURE__ */ jsx74(
|
|
6361
6480
|
"div",
|
|
6362
6481
|
{
|
|
6363
6482
|
className: cn(
|
|
@@ -6368,7 +6487,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6368
6487
|
children: badge
|
|
6369
6488
|
}
|
|
6370
6489
|
),
|
|
6371
|
-
eyebrow && /* @__PURE__ */
|
|
6490
|
+
eyebrow && /* @__PURE__ */ jsx74(
|
|
6372
6491
|
"p",
|
|
6373
6492
|
{
|
|
6374
6493
|
className: cn(
|
|
@@ -6379,7 +6498,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6379
6498
|
children: eyebrow
|
|
6380
6499
|
}
|
|
6381
6500
|
),
|
|
6382
|
-
/* @__PURE__ */
|
|
6501
|
+
/* @__PURE__ */ jsx74(
|
|
6383
6502
|
Heading2,
|
|
6384
6503
|
{
|
|
6385
6504
|
className: cn(
|
|
@@ -6391,7 +6510,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6391
6510
|
children: title
|
|
6392
6511
|
}
|
|
6393
6512
|
),
|
|
6394
|
-
description && /* @__PURE__ */
|
|
6513
|
+
description && /* @__PURE__ */ jsx74(
|
|
6395
6514
|
"p",
|
|
6396
6515
|
{
|
|
6397
6516
|
className: cn(
|
|
@@ -6403,7 +6522,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6403
6522
|
children: description
|
|
6404
6523
|
}
|
|
6405
6524
|
),
|
|
6406
|
-
actions && /* @__PURE__ */
|
|
6525
|
+
actions && /* @__PURE__ */ jsx74(
|
|
6407
6526
|
"div",
|
|
6408
6527
|
{
|
|
6409
6528
|
className: cn(
|
|
@@ -6417,7 +6536,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6417
6536
|
}
|
|
6418
6537
|
);
|
|
6419
6538
|
if (overlay) {
|
|
6420
|
-
return /* @__PURE__ */
|
|
6539
|
+
return /* @__PURE__ */ jsxs49(
|
|
6421
6540
|
Tag,
|
|
6422
6541
|
{
|
|
6423
6542
|
ref,
|
|
@@ -6427,7 +6546,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6427
6546
|
),
|
|
6428
6547
|
...props,
|
|
6429
6548
|
children: [
|
|
6430
|
-
media && /* @__PURE__ */
|
|
6549
|
+
media && /* @__PURE__ */ jsx74(
|
|
6431
6550
|
"div",
|
|
6432
6551
|
{
|
|
6433
6552
|
className: cn(
|
|
@@ -6437,20 +6556,20 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6437
6556
|
children: media
|
|
6438
6557
|
}
|
|
6439
6558
|
),
|
|
6440
|
-
/* @__PURE__ */
|
|
6441
|
-
/* @__PURE__ */
|
|
6559
|
+
/* @__PURE__ */ jsx74("div", { "aria-hidden": "true", className: "absolute inset-0 -z-10 bg-foreground/60" }),
|
|
6560
|
+
/* @__PURE__ */ jsx74("div", { className: "relative w-full px-4 sm:px-6 lg:px-10", children: copy })
|
|
6442
6561
|
]
|
|
6443
6562
|
}
|
|
6444
6563
|
);
|
|
6445
6564
|
}
|
|
6446
6565
|
if (layout === "centered") {
|
|
6447
|
-
return /* @__PURE__ */
|
|
6566
|
+
return /* @__PURE__ */ jsxs49(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
6448
6567
|
copy,
|
|
6449
|
-
media && /* @__PURE__ */
|
|
6568
|
+
media && /* @__PURE__ */ jsx74("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
6450
6569
|
] });
|
|
6451
6570
|
}
|
|
6452
6571
|
if (layout === "stacked") {
|
|
6453
|
-
return /* @__PURE__ */
|
|
6572
|
+
return /* @__PURE__ */ jsxs49(
|
|
6454
6573
|
Tag,
|
|
6455
6574
|
{
|
|
6456
6575
|
ref,
|
|
@@ -6458,20 +6577,20 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6458
6577
|
...props,
|
|
6459
6578
|
children: [
|
|
6460
6579
|
copy,
|
|
6461
|
-
media && /* @__PURE__ */
|
|
6580
|
+
media && /* @__PURE__ */ jsx74("div", { className: cn("min-w-0 w-full", mediaClassName), children: media })
|
|
6462
6581
|
]
|
|
6463
6582
|
}
|
|
6464
6583
|
);
|
|
6465
6584
|
}
|
|
6466
|
-
return /* @__PURE__ */
|
|
6585
|
+
return /* @__PURE__ */ jsxs49(
|
|
6467
6586
|
Tag,
|
|
6468
6587
|
{
|
|
6469
6588
|
ref,
|
|
6470
6589
|
className: cn("grid w-full items-center gap-10 lg:grid-cols-2 lg:gap-16 xl:gap-20", className),
|
|
6471
6590
|
...props,
|
|
6472
6591
|
children: [
|
|
6473
|
-
/* @__PURE__ */
|
|
6474
|
-
media && /* @__PURE__ */
|
|
6592
|
+
/* @__PURE__ */ jsx74("div", { className: cn(mediaPosition === "left" && "lg:order-2"), children: copy }),
|
|
6593
|
+
media && /* @__PURE__ */ jsx74("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1", mediaClassName), children: media })
|
|
6475
6594
|
]
|
|
6476
6595
|
}
|
|
6477
6596
|
);
|
|
@@ -6479,7 +6598,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6479
6598
|
|
|
6480
6599
|
// src/components/stat-band/StatBand.tsx
|
|
6481
6600
|
import * as React73 from "react";
|
|
6482
|
-
import { jsx as
|
|
6601
|
+
import { jsx as jsx75, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
6483
6602
|
var columnClasses = {
|
|
6484
6603
|
2: "sm:grid-cols-2",
|
|
6485
6604
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6507,7 +6626,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6507
6626
|
...props
|
|
6508
6627
|
}, ref) {
|
|
6509
6628
|
const panel = variant === "panel";
|
|
6510
|
-
return /* @__PURE__ */
|
|
6629
|
+
return /* @__PURE__ */ jsx75(
|
|
6511
6630
|
"dl",
|
|
6512
6631
|
{
|
|
6513
6632
|
ref,
|
|
@@ -6519,7 +6638,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6519
6638
|
className
|
|
6520
6639
|
),
|
|
6521
6640
|
...props,
|
|
6522
|
-
children: items.map((item) => /* @__PURE__ */
|
|
6641
|
+
children: items.map((item) => /* @__PURE__ */ jsxs50(
|
|
6523
6642
|
"div",
|
|
6524
6643
|
{
|
|
6525
6644
|
className: cn(
|
|
@@ -6528,7 +6647,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6528
6647
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6529
6648
|
),
|
|
6530
6649
|
children: [
|
|
6531
|
-
/* @__PURE__ */
|
|
6650
|
+
/* @__PURE__ */ jsxs50(
|
|
6532
6651
|
"dt",
|
|
6533
6652
|
{
|
|
6534
6653
|
className: cn(
|
|
@@ -6537,11 +6656,11 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6537
6656
|
),
|
|
6538
6657
|
children: [
|
|
6539
6658
|
item.label,
|
|
6540
|
-
item.hint && /* @__PURE__ */
|
|
6659
|
+
item.hint && /* @__PURE__ */ jsx75("span", { className: cn("mt-1 block font-normal", panel ? "text-xs normal-case tracking-normal" : "text-xs"), children: item.hint })
|
|
6541
6660
|
]
|
|
6542
6661
|
}
|
|
6543
6662
|
),
|
|
6544
|
-
/* @__PURE__ */
|
|
6663
|
+
/* @__PURE__ */ jsx75(
|
|
6545
6664
|
"dd",
|
|
6546
6665
|
{
|
|
6547
6666
|
className: cn(
|
|
@@ -6562,7 +6681,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6562
6681
|
|
|
6563
6682
|
// src/components/cta-section/CTASection.tsx
|
|
6564
6683
|
import * as React74 from "react";
|
|
6565
|
-
import { jsx as
|
|
6684
|
+
import { jsx as jsx76, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
6566
6685
|
var sizePadding = {
|
|
6567
6686
|
sm: "md",
|
|
6568
6687
|
md: "lg",
|
|
@@ -6580,7 +6699,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6580
6699
|
className,
|
|
6581
6700
|
...props
|
|
6582
6701
|
}, ref) {
|
|
6583
|
-
return /* @__PURE__ */
|
|
6702
|
+
return /* @__PURE__ */ jsx76(
|
|
6584
6703
|
Section,
|
|
6585
6704
|
{
|
|
6586
6705
|
ref,
|
|
@@ -6589,7 +6708,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6589
6708
|
width,
|
|
6590
6709
|
className,
|
|
6591
6710
|
...props,
|
|
6592
|
-
children: /* @__PURE__ */
|
|
6711
|
+
children: /* @__PURE__ */ jsxs51(
|
|
6593
6712
|
"div",
|
|
6594
6713
|
{
|
|
6595
6714
|
className: cn(
|
|
@@ -6597,10 +6716,10 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6597
6716
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6598
6717
|
),
|
|
6599
6718
|
children: [
|
|
6600
|
-
eyebrow && /* @__PURE__ */
|
|
6601
|
-
/* @__PURE__ */
|
|
6602
|
-
description && /* @__PURE__ */
|
|
6603
|
-
actions && /* @__PURE__ */
|
|
6719
|
+
eyebrow && /* @__PURE__ */ jsx76("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6720
|
+
/* @__PURE__ */ jsx76("h2", { className: "max-w-3xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl", children: title }),
|
|
6721
|
+
description && /* @__PURE__ */ jsx76("p", { className: cn("max-w-2xl text-base leading-relaxed text-muted-foreground sm:text-lg"), children: description }),
|
|
6722
|
+
actions && /* @__PURE__ */ jsx76("div", { className: cn("mt-2 flex flex-wrap items-center gap-3", align === "center" && "justify-center"), children: actions })
|
|
6604
6723
|
]
|
|
6605
6724
|
}
|
|
6606
6725
|
)
|
|
@@ -6610,9 +6729,9 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6610
6729
|
|
|
6611
6730
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
6612
6731
|
import * as React75 from "react";
|
|
6613
|
-
import { Fragment as Fragment14, jsx as
|
|
6732
|
+
import { Fragment as Fragment14, jsx as jsx77, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
6614
6733
|
function CheckMark() {
|
|
6615
|
-
return /* @__PURE__ */
|
|
6734
|
+
return /* @__PURE__ */ jsx77(
|
|
6616
6735
|
"svg",
|
|
6617
6736
|
{
|
|
6618
6737
|
"aria-hidden": "true",
|
|
@@ -6623,12 +6742,12 @@ function CheckMark() {
|
|
|
6623
6742
|
strokeLinecap: "round",
|
|
6624
6743
|
strokeLinejoin: "round",
|
|
6625
6744
|
className: "mx-auto h-5 w-5 text-success",
|
|
6626
|
-
children: /* @__PURE__ */
|
|
6745
|
+
children: /* @__PURE__ */ jsx77("path", { d: "m4 10.5 4 4 8-9" })
|
|
6627
6746
|
}
|
|
6628
6747
|
);
|
|
6629
6748
|
}
|
|
6630
6749
|
function DashMark() {
|
|
6631
|
-
return /* @__PURE__ */
|
|
6750
|
+
return /* @__PURE__ */ jsx77(
|
|
6632
6751
|
"svg",
|
|
6633
6752
|
{
|
|
6634
6753
|
"aria-hidden": "true",
|
|
@@ -6638,7 +6757,7 @@ function DashMark() {
|
|
|
6638
6757
|
strokeWidth: "2.2",
|
|
6639
6758
|
strokeLinecap: "round",
|
|
6640
6759
|
className: "mx-auto h-5 w-5 text-muted-foreground/60",
|
|
6641
|
-
children: /* @__PURE__ */
|
|
6760
|
+
children: /* @__PURE__ */ jsx77("path", { d: "M5 10h10" })
|
|
6642
6761
|
}
|
|
6643
6762
|
);
|
|
6644
6763
|
}
|
|
@@ -6654,11 +6773,11 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6654
6773
|
}, ref) {
|
|
6655
6774
|
const yes = valueLabels?.yes ?? "Included";
|
|
6656
6775
|
const no = valueLabels?.no ?? "Not included";
|
|
6657
|
-
return /* @__PURE__ */
|
|
6658
|
-
/* @__PURE__ */
|
|
6659
|
-
/* @__PURE__ */
|
|
6660
|
-
/* @__PURE__ */
|
|
6661
|
-
columns.map((column) => /* @__PURE__ */
|
|
6776
|
+
return /* @__PURE__ */ jsx77("div", { className: "w-full overflow-x-auto rounded-xl border border-border bg-card", children: /* @__PURE__ */ jsxs52("table", { ref, className: cn("w-full border-collapse text-sm", className), ...props, children: [
|
|
6777
|
+
/* @__PURE__ */ jsx77("caption", { className: "sr-only", children: caption }),
|
|
6778
|
+
/* @__PURE__ */ jsx77("thead", { children: /* @__PURE__ */ jsxs52("tr", { className: "border-b border-border", children: [
|
|
6779
|
+
/* @__PURE__ */ jsx77("th", { scope: "col", className: "min-w-48 px-5 py-4 text-left font-medium text-muted-foreground", children: featureLabel }),
|
|
6780
|
+
columns.map((column) => /* @__PURE__ */ jsx77(
|
|
6662
6781
|
"th",
|
|
6663
6782
|
{
|
|
6664
6783
|
scope: "col",
|
|
@@ -6671,21 +6790,21 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6671
6790
|
column.label
|
|
6672
6791
|
))
|
|
6673
6792
|
] }) }),
|
|
6674
|
-
/* @__PURE__ */
|
|
6675
|
-
/* @__PURE__ */
|
|
6793
|
+
/* @__PURE__ */ jsx77("tbody", { children: rows.map((row) => /* @__PURE__ */ jsxs52("tr", { className: "border-b border-border last:border-b-0", children: [
|
|
6794
|
+
/* @__PURE__ */ jsxs52("th", { scope: "row", className: "px-5 py-4 text-left font-medium", children: [
|
|
6676
6795
|
row.feature,
|
|
6677
|
-
row.hint && /* @__PURE__ */
|
|
6796
|
+
row.hint && /* @__PURE__ */ jsx77("span", { className: "mt-1 block text-xs font-normal text-muted-foreground", children: row.hint })
|
|
6678
6797
|
] }),
|
|
6679
6798
|
columns.map((column, index) => {
|
|
6680
6799
|
const value = row.values[index];
|
|
6681
|
-
return /* @__PURE__ */
|
|
6800
|
+
return /* @__PURE__ */ jsx77(
|
|
6682
6801
|
"td",
|
|
6683
6802
|
{
|
|
6684
6803
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
6685
|
-
children: typeof value === "boolean" ? /* @__PURE__ */
|
|
6686
|
-
value ? /* @__PURE__ */
|
|
6687
|
-
/* @__PURE__ */
|
|
6688
|
-
] }) : /* @__PURE__ */
|
|
6804
|
+
children: typeof value === "boolean" ? /* @__PURE__ */ jsxs52(Fragment14, { children: [
|
|
6805
|
+
value ? /* @__PURE__ */ jsx77(CheckMark, {}) : /* @__PURE__ */ jsx77(DashMark, {}),
|
|
6806
|
+
/* @__PURE__ */ jsx77("span", { className: "sr-only", children: value ? yes : no })
|
|
6807
|
+
] }) : /* @__PURE__ */ jsx77("span", { children: value ?? "" })
|
|
6689
6808
|
},
|
|
6690
6809
|
`${row.feature}-${column.label}`
|
|
6691
6810
|
);
|
|
@@ -6697,7 +6816,7 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6697
6816
|
|
|
6698
6817
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
6699
6818
|
import * as React76 from "react";
|
|
6700
|
-
import { Fragment as Fragment15, jsx as
|
|
6819
|
+
import { Fragment as Fragment15, jsx as jsx78, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
6701
6820
|
var columnClasses2 = {
|
|
6702
6821
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
6703
6822
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -6727,8 +6846,8 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6727
6846
|
sizeClasses9[size],
|
|
6728
6847
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
6729
6848
|
);
|
|
6730
|
-
return /* @__PURE__ */
|
|
6731
|
-
caption && /* @__PURE__ */
|
|
6849
|
+
return /* @__PURE__ */ jsxs53("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6850
|
+
caption && /* @__PURE__ */ jsx78(
|
|
6732
6851
|
"p",
|
|
6733
6852
|
{
|
|
6734
6853
|
className: cn(
|
|
@@ -6738,12 +6857,12 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6738
6857
|
children: caption
|
|
6739
6858
|
}
|
|
6740
6859
|
),
|
|
6741
|
-
/* @__PURE__ */
|
|
6742
|
-
const content = /* @__PURE__ */
|
|
6743
|
-
/* @__PURE__ */
|
|
6744
|
-
/* @__PURE__ */
|
|
6860
|
+
/* @__PURE__ */ jsx78("ul", { className: cn("grid items-center gap-x-8 gap-y-6", columnClasses2[columns], align === "center" && "justify-items-center"), children: items.map((item) => {
|
|
6861
|
+
const content = /* @__PURE__ */ jsxs53(Fragment15, { children: [
|
|
6862
|
+
/* @__PURE__ */ jsx78("span", { className: logoClass, "aria-hidden": "true", children: item.logo }),
|
|
6863
|
+
/* @__PURE__ */ jsx78("span", { className: "sr-only", children: item.name })
|
|
6745
6864
|
] });
|
|
6746
|
-
return /* @__PURE__ */
|
|
6865
|
+
return /* @__PURE__ */ jsx78("li", { className: cn("min-w-0", align === "center" ? "justify-self-center" : "justify-self-start"), children: item.href ? /* @__PURE__ */ jsx78(
|
|
6747
6866
|
Link3,
|
|
6748
6867
|
{
|
|
6749
6868
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -6757,7 +6876,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6757
6876
|
|
|
6758
6877
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
6759
6878
|
import * as React77 from "react";
|
|
6760
|
-
import { Fragment as Fragment16, jsx as
|
|
6879
|
+
import { Fragment as Fragment16, jsx as jsx79, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
6761
6880
|
var columnClasses3 = {
|
|
6762
6881
|
2: "sm:grid-cols-2",
|
|
6763
6882
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6770,22 +6889,22 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6770
6889
|
variant === "card" && "border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
|
|
6771
6890
|
align === "center" && "items-center text-center"
|
|
6772
6891
|
);
|
|
6773
|
-
const content = (feature) => /* @__PURE__ */
|
|
6774
|
-
feature.icon && /* @__PURE__ */
|
|
6775
|
-
/* @__PURE__ */
|
|
6776
|
-
feature.description && /* @__PURE__ */
|
|
6777
|
-
feature.href && feature.actionLabel && /* @__PURE__ */
|
|
6892
|
+
const content = (feature) => /* @__PURE__ */ jsxs54(Fragment16, { children: [
|
|
6893
|
+
feature.icon && /* @__PURE__ */ jsx79("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 }),
|
|
6894
|
+
/* @__PURE__ */ jsx79("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
6895
|
+
feature.description && /* @__PURE__ */ jsx79("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
6896
|
+
feature.href && feature.actionLabel && /* @__PURE__ */ jsxs54("span", { className: "mt-auto pt-2 text-sm font-medium text-primary-ink", children: [
|
|
6778
6897
|
feature.actionLabel,
|
|
6779
6898
|
" ",
|
|
6780
|
-
/* @__PURE__ */
|
|
6899
|
+
/* @__PURE__ */ jsx79("span", { "aria-hidden": "true", children: "\u2192" })
|
|
6781
6900
|
] })
|
|
6782
6901
|
] });
|
|
6783
|
-
return /* @__PURE__ */
|
|
6902
|
+
return /* @__PURE__ */ jsx79("ul", { ref, className: cn("grid gap-6", columnClasses3[columns], className), ...props, children: features.map((feature) => /* @__PURE__ */ jsx79("li", { className: "min-w-0", children: feature.href ? /* @__PURE__ */ jsx79(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__ */ jsx79("div", { className: cardClass, children: content(feature) }) }, feature.title)) });
|
|
6784
6903
|
});
|
|
6785
6904
|
|
|
6786
6905
|
// src/components/feature-row/FeatureRow.tsx
|
|
6787
6906
|
import * as React78 from "react";
|
|
6788
|
-
import { jsx as
|
|
6907
|
+
import { jsx as jsx80, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
6789
6908
|
var titleSizes2 = {
|
|
6790
6909
|
md: "text-3xl",
|
|
6791
6910
|
lg: "text-3xl sm:text-4xl"
|
|
@@ -6803,20 +6922,20 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6803
6922
|
...props
|
|
6804
6923
|
}, ref) {
|
|
6805
6924
|
const Heading2 = `h${level}`;
|
|
6806
|
-
return /* @__PURE__ */
|
|
6925
|
+
return /* @__PURE__ */ jsxs55(
|
|
6807
6926
|
"div",
|
|
6808
6927
|
{
|
|
6809
6928
|
ref,
|
|
6810
6929
|
className: cn("grid items-center gap-10 lg:grid-cols-2 lg:gap-16", className),
|
|
6811
6930
|
...props,
|
|
6812
6931
|
children: [
|
|
6813
|
-
/* @__PURE__ */
|
|
6814
|
-
eyebrow && /* @__PURE__ */
|
|
6815
|
-
/* @__PURE__ */
|
|
6816
|
-
description && /* @__PURE__ */
|
|
6817
|
-
actions && /* @__PURE__ */
|
|
6932
|
+
/* @__PURE__ */ jsxs55("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
6933
|
+
eyebrow && /* @__PURE__ */ jsx80("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6934
|
+
/* @__PURE__ */ jsx80(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
6935
|
+
description && /* @__PURE__ */ jsx80("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
6936
|
+
actions && /* @__PURE__ */ jsx80("div", { className: "mt-7 flex flex-wrap items-center gap-3", children: actions })
|
|
6818
6937
|
] }),
|
|
6819
|
-
/* @__PURE__ */
|
|
6938
|
+
/* @__PURE__ */ jsx80("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1"), children: media })
|
|
6820
6939
|
]
|
|
6821
6940
|
}
|
|
6822
6941
|
);
|
|
@@ -6824,14 +6943,14 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6824
6943
|
|
|
6825
6944
|
// src/components/testimonial/Testimonial.tsx
|
|
6826
6945
|
import * as React79 from "react";
|
|
6827
|
-
import { jsx as
|
|
6946
|
+
import { jsx as jsx81, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
6828
6947
|
var quoteSizes = {
|
|
6829
6948
|
sm: "text-base",
|
|
6830
6949
|
md: "text-lg",
|
|
6831
6950
|
lg: "text-xl sm:text-2xl"
|
|
6832
6951
|
};
|
|
6833
6952
|
var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role, company, avatar, logo, variant = "card", size = "md", className, ...props }, ref) {
|
|
6834
|
-
return /* @__PURE__ */
|
|
6953
|
+
return /* @__PURE__ */ jsxs56(
|
|
6835
6954
|
"figure",
|
|
6836
6955
|
{
|
|
6837
6956
|
ref,
|
|
@@ -6842,17 +6961,17 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6842
6961
|
),
|
|
6843
6962
|
...props,
|
|
6844
6963
|
children: [
|
|
6845
|
-
logo && /* @__PURE__ */
|
|
6846
|
-
/* @__PURE__ */
|
|
6964
|
+
logo && /* @__PURE__ */ jsx81("div", { className: "flex items-center", children: logo }),
|
|
6965
|
+
/* @__PURE__ */ jsx81("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */ jsxs56("p", { children: [
|
|
6847
6966
|
"\u201C",
|
|
6848
6967
|
quote,
|
|
6849
6968
|
"\u201D"
|
|
6850
6969
|
] }) }),
|
|
6851
|
-
/* @__PURE__ */
|
|
6852
|
-
avatar && /* @__PURE__ */
|
|
6853
|
-
/* @__PURE__ */
|
|
6854
|
-
/* @__PURE__ */
|
|
6855
|
-
(role || company) && /* @__PURE__ */
|
|
6970
|
+
/* @__PURE__ */ jsxs56("figcaption", { className: "flex items-center gap-3", children: [
|
|
6971
|
+
avatar && /* @__PURE__ */ jsx81("div", { className: "shrink-0", children: avatar }),
|
|
6972
|
+
/* @__PURE__ */ jsxs56("div", { className: "min-w-0", children: [
|
|
6973
|
+
/* @__PURE__ */ jsx81("p", { className: "text-sm font-semibold", children: name }),
|
|
6974
|
+
(role || company) && /* @__PURE__ */ jsx81("p", { className: "text-xs text-muted-foreground", children: [role, company].filter(Boolean).join(", ") })
|
|
6856
6975
|
] })
|
|
6857
6976
|
] })
|
|
6858
6977
|
]
|
|
@@ -6862,7 +6981,7 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6862
6981
|
|
|
6863
6982
|
// src/components/process-steps/ProcessSteps.tsx
|
|
6864
6983
|
import * as React80 from "react";
|
|
6865
|
-
import { jsx as
|
|
6984
|
+
import { jsx as jsx82, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
6866
6985
|
var columnClasses4 = {
|
|
6867
6986
|
2: "sm:grid-cols-2",
|
|
6868
6987
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6870,15 +6989,15 @@ var columnClasses4 = {
|
|
|
6870
6989
|
};
|
|
6871
6990
|
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", headingLevel = 3, className, ...props }, ref) {
|
|
6872
6991
|
const HeadingTag = { 2: "h2", 3: "h3", 4: "h4" }[headingLevel];
|
|
6873
|
-
return /* @__PURE__ */
|
|
6992
|
+
return /* @__PURE__ */ jsx82("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ jsxs57(
|
|
6874
6993
|
"li",
|
|
6875
6994
|
{
|
|
6876
6995
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
6877
6996
|
children: [
|
|
6878
|
-
/* @__PURE__ */
|
|
6879
|
-
/* @__PURE__ */
|
|
6880
|
-
/* @__PURE__ */
|
|
6881
|
-
step.description && /* @__PURE__ */
|
|
6997
|
+
/* @__PURE__ */ jsx82("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) }),
|
|
6998
|
+
/* @__PURE__ */ jsxs57("div", { className: "min-w-0", children: [
|
|
6999
|
+
/* @__PURE__ */ jsx82(HeadingTag, { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
7000
|
+
step.description && /* @__PURE__ */ jsx82("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
6882
7001
|
] })
|
|
6883
7002
|
]
|
|
6884
7003
|
},
|
|
@@ -6888,7 +7007,7 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
6888
7007
|
|
|
6889
7008
|
// src/components/article-card/ArticleCard.tsx
|
|
6890
7009
|
import * as React81 from "react";
|
|
6891
|
-
import { jsx as
|
|
7010
|
+
import { jsx as jsx83, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
6892
7011
|
var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
6893
7012
|
title,
|
|
6894
7013
|
description,
|
|
@@ -6903,7 +7022,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6903
7022
|
}, ref) {
|
|
6904
7023
|
const Link3 = linkComponent ?? "a";
|
|
6905
7024
|
const compact = variant === "compact";
|
|
6906
|
-
return /* @__PURE__ */
|
|
7025
|
+
return /* @__PURE__ */ jsx83("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */ jsxs58(
|
|
6907
7026
|
Link3,
|
|
6908
7027
|
{
|
|
6909
7028
|
href,
|
|
@@ -6912,12 +7031,12 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6912
7031
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
6913
7032
|
),
|
|
6914
7033
|
children: [
|
|
6915
|
-
media && !compact && /* @__PURE__ */
|
|
6916
|
-
/* @__PURE__ */
|
|
6917
|
-
eyebrow && /* @__PURE__ */
|
|
6918
|
-
/* @__PURE__ */
|
|
6919
|
-
description && /* @__PURE__ */
|
|
6920
|
-
meta && /* @__PURE__ */
|
|
7034
|
+
media && !compact && /* @__PURE__ */ jsx83("div", { className: "aspect-[16/10] w-full overflow-hidden bg-muted [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: media }),
|
|
7035
|
+
/* @__PURE__ */ jsxs58("div", { className: cn("flex flex-1 flex-col gap-2", compact ? "p-4" : "p-5"), children: [
|
|
7036
|
+
eyebrow && /* @__PURE__ */ jsx83("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
7037
|
+
/* @__PURE__ */ jsx83("h3", { className: cn("font-semibold tracking-tight transition-colors group-hover:text-primary-ink", compact ? "text-base" : "text-lg"), children: title }),
|
|
7038
|
+
description && /* @__PURE__ */ jsx83("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7039
|
+
meta && /* @__PURE__ */ jsx83("div", { className: "mt-auto pt-2 text-xs text-muted-foreground", children: meta })
|
|
6921
7040
|
] })
|
|
6922
7041
|
]
|
|
6923
7042
|
}
|
|
@@ -6926,7 +7045,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6926
7045
|
|
|
6927
7046
|
// src/components/newsletter/Newsletter.tsx
|
|
6928
7047
|
import * as React82 from "react";
|
|
6929
|
-
import { jsx as
|
|
7048
|
+
import { jsx as jsx84, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
6930
7049
|
var Newsletter = React82.forwardRef(function Newsletter2({
|
|
6931
7050
|
title,
|
|
6932
7051
|
description,
|
|
@@ -6958,13 +7077,13 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6958
7077
|
setStatus("error");
|
|
6959
7078
|
}
|
|
6960
7079
|
};
|
|
6961
|
-
return /* @__PURE__ */
|
|
6962
|
-
/* @__PURE__ */
|
|
6963
|
-
description && /* @__PURE__ */
|
|
6964
|
-
/* @__PURE__ */
|
|
6965
|
-
/* @__PURE__ */
|
|
6966
|
-
/* @__PURE__ */
|
|
6967
|
-
/* @__PURE__ */
|
|
7080
|
+
return /* @__PURE__ */ jsxs59("div", { className: "w-full", children: [
|
|
7081
|
+
/* @__PURE__ */ jsx84(Heading2, { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
7082
|
+
description && /* @__PURE__ */ jsx84("p", { className: "mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7083
|
+
/* @__PURE__ */ jsxs59("form", { ref, onSubmit: handleSubmit, className: cn("mt-5", className), ...props, children: [
|
|
7084
|
+
/* @__PURE__ */ jsxs59("div", { className: cn("flex gap-2", layout === "inline" ? "flex-col sm:flex-row" : "flex-col"), children: [
|
|
7085
|
+
/* @__PURE__ */ jsx84("label", { htmlFor: id, className: "sr-only", children: label }),
|
|
7086
|
+
/* @__PURE__ */ jsx84(
|
|
6968
7087
|
Input,
|
|
6969
7088
|
{
|
|
6970
7089
|
id,
|
|
@@ -6979,12 +7098,12 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6979
7098
|
className: "sm:flex-1"
|
|
6980
7099
|
}
|
|
6981
7100
|
),
|
|
6982
|
-
/* @__PURE__ */
|
|
7101
|
+
/* @__PURE__ */ jsx84(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
6983
7102
|
] }),
|
|
6984
|
-
consent && /* @__PURE__ */
|
|
6985
|
-
/* @__PURE__ */
|
|
6986
|
-
status === "success" && /* @__PURE__ */
|
|
6987
|
-
status === "error" && /* @__PURE__ */
|
|
7103
|
+
consent && /* @__PURE__ */ jsx84("div", { className: "mt-3 text-xs leading-relaxed text-muted-foreground", children: consent }),
|
|
7104
|
+
/* @__PURE__ */ jsxs59("div", { "aria-live": "polite", className: "mt-2 min-h-5 text-sm", children: [
|
|
7105
|
+
status === "success" && /* @__PURE__ */ jsx84("p", { className: "text-success", children: successMessage }),
|
|
7106
|
+
status === "error" && /* @__PURE__ */ jsx84("p", { role: "alert", className: "text-destructive", children: errorMessage })
|
|
6988
7107
|
] })
|
|
6989
7108
|
] })
|
|
6990
7109
|
] });
|
|
@@ -6992,25 +7111,25 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6992
7111
|
|
|
6993
7112
|
// src/components/contact-strip/ContactStrip.tsx
|
|
6994
7113
|
import * as React83 from "react";
|
|
6995
|
-
import { jsx as
|
|
7114
|
+
import { jsx as jsx85, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
6996
7115
|
var columnClasses5 = {
|
|
6997
7116
|
2: "sm:grid-cols-2",
|
|
6998
7117
|
3: "sm:grid-cols-3"
|
|
6999
7118
|
};
|
|
7000
7119
|
var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
7001
7120
|
const Link3 = linkComponent ?? "a";
|
|
7002
|
-
return /* @__PURE__ */
|
|
7003
|
-
item.icon && /* @__PURE__ */
|
|
7004
|
-
/* @__PURE__ */
|
|
7005
|
-
/* @__PURE__ */
|
|
7006
|
-
item.href ? /* @__PURE__ */
|
|
7121
|
+
return /* @__PURE__ */ jsx85("ul", { ref, className: cn("grid gap-6", columnClasses5[columns], className), ...props, children: items.map((item) => /* @__PURE__ */ jsxs60("li", { className: cn("flex min-w-0 items-start gap-3", align === "center" && "justify-center text-center"), children: [
|
|
7122
|
+
item.icon && /* @__PURE__ */ jsx85("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 }),
|
|
7123
|
+
/* @__PURE__ */ jsxs60("div", { className: "min-w-0", children: [
|
|
7124
|
+
/* @__PURE__ */ jsx85("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
7125
|
+
item.href ? /* @__PURE__ */ jsx85(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__ */ jsx85("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
7007
7126
|
] })
|
|
7008
7127
|
] }, item.label)) });
|
|
7009
7128
|
});
|
|
7010
7129
|
|
|
7011
7130
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
7012
7131
|
import * as React84 from "react";
|
|
7013
|
-
import { jsx as
|
|
7132
|
+
import { jsx as jsx86, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
7014
7133
|
var toneClasses3 = {
|
|
7015
7134
|
muted: "bg-muted text-foreground",
|
|
7016
7135
|
brand: "bg-primary text-primary-foreground",
|
|
@@ -7036,7 +7155,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7036
7155
|
setDismissed(true);
|
|
7037
7156
|
onDismiss?.();
|
|
7038
7157
|
};
|
|
7039
|
-
return /* @__PURE__ */
|
|
7158
|
+
return /* @__PURE__ */ jsx86(
|
|
7040
7159
|
"div",
|
|
7041
7160
|
{
|
|
7042
7161
|
ref,
|
|
@@ -7049,9 +7168,9 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7049
7168
|
className
|
|
7050
7169
|
),
|
|
7051
7170
|
...props,
|
|
7052
|
-
children: /* @__PURE__ */
|
|
7053
|
-
/* @__PURE__ */
|
|
7054
|
-
href && actionLabel && /* @__PURE__ */
|
|
7171
|
+
children: /* @__PURE__ */ jsxs61("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: [
|
|
7172
|
+
/* @__PURE__ */ jsx86("p", { className: "min-w-0 text-center", children: message }),
|
|
7173
|
+
href && actionLabel && /* @__PURE__ */ jsx86(
|
|
7055
7174
|
Link3,
|
|
7056
7175
|
{
|
|
7057
7176
|
href,
|
|
@@ -7059,14 +7178,14 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7059
7178
|
children: actionLabel
|
|
7060
7179
|
}
|
|
7061
7180
|
),
|
|
7062
|
-
dismissible && /* @__PURE__ */
|
|
7181
|
+
dismissible && /* @__PURE__ */ jsx86(
|
|
7063
7182
|
"button",
|
|
7064
7183
|
{
|
|
7065
7184
|
type: "button",
|
|
7066
7185
|
onClick: dismiss2,
|
|
7067
7186
|
"aria-label": "Dismiss announcement",
|
|
7068
7187
|
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",
|
|
7069
|
-
children: /* @__PURE__ */
|
|
7188
|
+
children: /* @__PURE__ */ jsx86("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx86("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7070
7189
|
}
|
|
7071
7190
|
)
|
|
7072
7191
|
] })
|
|
@@ -7077,7 +7196,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7077
7196
|
|
|
7078
7197
|
// src/components/deal-card/DealCard.tsx
|
|
7079
7198
|
import * as React85 from "react";
|
|
7080
|
-
import { jsx as
|
|
7199
|
+
import { jsx as jsx87, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
7081
7200
|
var statusConfig = {
|
|
7082
7201
|
available: { label: "Available", variant: "success" },
|
|
7083
7202
|
"under-nda": { label: "Under NDA", variant: "info" },
|
|
@@ -7105,29 +7224,29 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7105
7224
|
}, ref) {
|
|
7106
7225
|
const Link3 = linkComponent ?? "a";
|
|
7107
7226
|
const statusInfo = statusConfig[status];
|
|
7108
|
-
return /* @__PURE__ */
|
|
7109
|
-
/* @__PURE__ */
|
|
7110
|
-
/* @__PURE__ */
|
|
7111
|
-
/* @__PURE__ */
|
|
7112
|
-
/* @__PURE__ */
|
|
7227
|
+
return /* @__PURE__ */ jsxs62(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
7228
|
+
/* @__PURE__ */ jsxs62(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
7229
|
+
/* @__PURE__ */ jsxs62("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7230
|
+
/* @__PURE__ */ jsx87("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: sector }),
|
|
7231
|
+
/* @__PURE__ */ jsx87(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7113
7232
|
] }),
|
|
7114
|
-
/* @__PURE__ */
|
|
7115
|
-
location && /* @__PURE__ */
|
|
7233
|
+
/* @__PURE__ */ jsx87("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ jsx87(Link3, { href, className: "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
7234
|
+
location && /* @__PURE__ */ jsx87("p", { className: "text-xs text-muted-foreground", children: location })
|
|
7116
7235
|
] }),
|
|
7117
|
-
/* @__PURE__ */
|
|
7118
|
-
description && /* @__PURE__ */
|
|
7119
|
-
/* @__PURE__ */
|
|
7120
|
-
/* @__PURE__ */
|
|
7121
|
-
/* @__PURE__ */
|
|
7236
|
+
/* @__PURE__ */ jsxs62(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7237
|
+
description && /* @__PURE__ */ jsx87("p", { className: "line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7238
|
+
/* @__PURE__ */ jsx87("dl", { className: "mt-4 grid grid-cols-3 gap-3", children: metrics.map((metric) => /* @__PURE__ */ jsxs62("div", { className: "min-w-0", children: [
|
|
7239
|
+
/* @__PURE__ */ jsx87("dt", { className: "text-xs text-muted-foreground", children: metric.label }),
|
|
7240
|
+
/* @__PURE__ */ jsx87("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: metric.value })
|
|
7122
7241
|
] }, metric.label)) }),
|
|
7123
|
-
(ndaAvailable || cimAvailable) && /* @__PURE__ */
|
|
7124
|
-
ndaAvailable && /* @__PURE__ */
|
|
7125
|
-
cimAvailable && /* @__PURE__ */
|
|
7242
|
+
(ndaAvailable || cimAvailable) && /* @__PURE__ */ jsxs62("div", { className: "mt-4 flex flex-wrap gap-1.5", children: [
|
|
7243
|
+
ndaAvailable && /* @__PURE__ */ jsx87(Badge, { variant: "info", children: "NDA available" }),
|
|
7244
|
+
cimAvailable && /* @__PURE__ */ jsx87(Badge, { variant: "secondary", children: "CIM available" })
|
|
7126
7245
|
] })
|
|
7127
7246
|
] }),
|
|
7128
|
-
/* @__PURE__ */
|
|
7129
|
-
onRequestAccess && /* @__PURE__ */
|
|
7130
|
-
onSave && /* @__PURE__ */
|
|
7247
|
+
/* @__PURE__ */ jsxs62(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
7248
|
+
onRequestAccess && /* @__PURE__ */ jsx87(Button, { type: "button", size: "sm", onClick: onRequestAccess, children: requestLabel }),
|
|
7249
|
+
onSave && /* @__PURE__ */ jsx87(
|
|
7131
7250
|
Button,
|
|
7132
7251
|
{
|
|
7133
7252
|
type: "button",
|
|
@@ -7145,7 +7264,7 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7145
7264
|
|
|
7146
7265
|
// src/components/entity-card/EntityCard.tsx
|
|
7147
7266
|
import * as React86 from "react";
|
|
7148
|
-
import { jsx as
|
|
7267
|
+
import { jsx as jsx88, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
7149
7268
|
function initials(name) {
|
|
7150
7269
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
7151
7270
|
}
|
|
@@ -7167,11 +7286,11 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7167
7286
|
const Link3 = linkComponent ?? "a";
|
|
7168
7287
|
const stretched = Boolean(cardHref);
|
|
7169
7288
|
const nameHref = cardHref ?? href;
|
|
7170
|
-
return /* @__PURE__ */
|
|
7171
|
-
/* @__PURE__ */
|
|
7172
|
-
/* @__PURE__ */
|
|
7173
|
-
/* @__PURE__ */
|
|
7174
|
-
/* @__PURE__ */
|
|
7289
|
+
return /* @__PURE__ */ jsxs63(Card, { ref, className: cn("flex h-full flex-col", stretched && "relative isolate", className), ...props, children: [
|
|
7290
|
+
/* @__PURE__ */ jsxs63(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
7291
|
+
/* @__PURE__ */ jsx88("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ jsx88(Avatar, { children: /* @__PURE__ */ jsx88(AvatarFallback, { children: initials(name) }) }) }),
|
|
7292
|
+
/* @__PURE__ */ jsxs63("div", { className: "min-w-0 flex-1", children: [
|
|
7293
|
+
/* @__PURE__ */ jsx88("h3", { className: "truncate text-base font-semibold tracking-tight", children: nameHref ? /* @__PURE__ */ jsx88(
|
|
7175
7294
|
Link3,
|
|
7176
7295
|
{
|
|
7177
7296
|
href: nameHref,
|
|
@@ -7182,20 +7301,20 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7182
7301
|
children: name
|
|
7183
7302
|
}
|
|
7184
7303
|
) : name }),
|
|
7185
|
-
/* @__PURE__ */
|
|
7186
|
-
location && /* @__PURE__ */
|
|
7304
|
+
/* @__PURE__ */ jsx88("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
7305
|
+
location && /* @__PURE__ */ jsx88("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
7187
7306
|
] })
|
|
7188
7307
|
] }),
|
|
7189
|
-
/* @__PURE__ */
|
|
7190
|
-
description && /* @__PURE__ */
|
|
7191
|
-
tags && tags.length > 0 && /* @__PURE__ */
|
|
7192
|
-
stats && stats.length > 0 && /* @__PURE__ */
|
|
7193
|
-
/* @__PURE__ */
|
|
7194
|
-
/* @__PURE__ */
|
|
7308
|
+
/* @__PURE__ */ jsxs63(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7309
|
+
description && /* @__PURE__ */ jsx88("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7310
|
+
tags && tags.length > 0 && /* @__PURE__ */ jsx88("div", { className: "mt-3 flex flex-wrap gap-1.5", children: tags.map((tag) => /* @__PURE__ */ jsx88(Badge, { variant: "secondary", children: tag }, tag)) }),
|
|
7311
|
+
stats && stats.length > 0 && /* @__PURE__ */ jsx88("dl", { className: "mt-4 grid grid-cols-2 gap-3", children: stats.map((stat) => /* @__PURE__ */ jsxs63("div", { className: "min-w-0", children: [
|
|
7312
|
+
/* @__PURE__ */ jsx88("dt", { className: "text-xs text-muted-foreground", children: stat.label }),
|
|
7313
|
+
/* @__PURE__ */ jsx88("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
|
|
7195
7314
|
] }, stat.label)) })
|
|
7196
7315
|
] }),
|
|
7197
|
-
(href && !stretched || actions) && /* @__PURE__ */
|
|
7198
|
-
href && !stretched && /* @__PURE__ */
|
|
7316
|
+
(href && !stretched || actions) && /* @__PURE__ */ jsxs63(CardFooter, { className: cn("flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", stretched && "relative z-10"), children: [
|
|
7317
|
+
href && !stretched && /* @__PURE__ */ jsx88(
|
|
7199
7318
|
Link3,
|
|
7200
7319
|
{
|
|
7201
7320
|
href,
|
|
@@ -7203,7 +7322,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7203
7322
|
children: "View profile"
|
|
7204
7323
|
}
|
|
7205
7324
|
),
|
|
7206
|
-
actions && /* @__PURE__ */
|
|
7325
|
+
actions && /* @__PURE__ */ jsx88("div", { className: "ml-auto flex items-center gap-2", children: actions })
|
|
7207
7326
|
] })
|
|
7208
7327
|
] });
|
|
7209
7328
|
});
|
|
@@ -7211,7 +7330,7 @@ var ProfileCard = EntityCard;
|
|
|
7211
7330
|
|
|
7212
7331
|
// src/components/tombstone-card/TombstoneCard.tsx
|
|
7213
7332
|
import * as React87 from "react";
|
|
7214
|
-
import { jsx as
|
|
7333
|
+
import { jsx as jsx89, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
7215
7334
|
var statusConfig2 = {
|
|
7216
7335
|
archived: { label: "Archived", variant: "secondary" },
|
|
7217
7336
|
unavailable: { label: "Unavailable", variant: "warning" },
|
|
@@ -7230,20 +7349,20 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7230
7349
|
}, ref) {
|
|
7231
7350
|
const Link3 = linkComponent ?? "a";
|
|
7232
7351
|
const statusInfo = statusConfig2[status];
|
|
7233
|
-
return /* @__PURE__ */
|
|
7352
|
+
return /* @__PURE__ */ jsx89(
|
|
7234
7353
|
Card,
|
|
7235
7354
|
{
|
|
7236
7355
|
ref,
|
|
7237
7356
|
className: cn("flex h-full flex-col border-dashed bg-muted/30 shadow-none", className),
|
|
7238
7357
|
...props,
|
|
7239
|
-
children: /* @__PURE__ */
|
|
7240
|
-
/* @__PURE__ */
|
|
7241
|
-
logo && /* @__PURE__ */
|
|
7242
|
-
/* @__PURE__ */
|
|
7358
|
+
children: /* @__PURE__ */ jsxs64(CardContent, { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
7359
|
+
/* @__PURE__ */ jsxs64("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7360
|
+
logo && /* @__PURE__ */ jsx89("div", { className: "min-w-0 opacity-70", children: logo }),
|
|
7361
|
+
/* @__PURE__ */ jsx89(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7243
7362
|
] }),
|
|
7244
|
-
/* @__PURE__ */
|
|
7245
|
-
reason && /* @__PURE__ */
|
|
7246
|
-
href && /* @__PURE__ */
|
|
7363
|
+
/* @__PURE__ */ jsx89("h3", { className: "text-base font-semibold tracking-tight text-foreground/80", children: title }),
|
|
7364
|
+
reason && /* @__PURE__ */ jsx89("p", { className: "text-sm leading-relaxed text-muted-foreground", children: reason }),
|
|
7365
|
+
href && /* @__PURE__ */ jsx89(
|
|
7247
7366
|
Link3,
|
|
7248
7367
|
{
|
|
7249
7368
|
href,
|
|
@@ -7258,7 +7377,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7258
7377
|
|
|
7259
7378
|
// src/components/document-card/DocumentCard.tsx
|
|
7260
7379
|
import * as React88 from "react";
|
|
7261
|
-
import { jsx as
|
|
7380
|
+
import { jsx as jsx90, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
7262
7381
|
var statusConfig3 = {
|
|
7263
7382
|
available: { label: "Available", variant: "success" },
|
|
7264
7383
|
restricted: { label: "Restricted", variant: "warning" },
|
|
@@ -7278,14 +7397,14 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7278
7397
|
}, ref) {
|
|
7279
7398
|
const statusInfo = statusConfig3[status];
|
|
7280
7399
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7281
|
-
return /* @__PURE__ */
|
|
7282
|
-
/* @__PURE__ */
|
|
7283
|
-
/* @__PURE__ */
|
|
7284
|
-
/* @__PURE__ */
|
|
7285
|
-
meta && /* @__PURE__ */
|
|
7400
|
+
return /* @__PURE__ */ jsx90(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */ jsxs65(CardContent, { className: "flex items-center gap-3 p-4", children: [
|
|
7401
|
+
/* @__PURE__ */ jsx90("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__ */ jsx90("span", { className: "text-[10px] font-bold uppercase tracking-wide", children: fileType }) }),
|
|
7402
|
+
/* @__PURE__ */ jsxs65("div", { className: "min-w-0 flex-1", children: [
|
|
7403
|
+
/* @__PURE__ */ jsx90("p", { className: "truncate text-sm font-medium", children: name }),
|
|
7404
|
+
meta && /* @__PURE__ */ jsx90("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
7286
7405
|
] }),
|
|
7287
|
-
/* @__PURE__ */
|
|
7288
|
-
onDownload && /* @__PURE__ */
|
|
7406
|
+
/* @__PURE__ */ jsx90(Badge, { variant: statusInfo.variant, children: statusInfo.label }),
|
|
7407
|
+
onDownload && /* @__PURE__ */ jsx90(
|
|
7289
7408
|
Button,
|
|
7290
7409
|
{
|
|
7291
7410
|
type: "button",
|
|
@@ -7302,7 +7421,7 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7302
7421
|
|
|
7303
7422
|
// src/components/load-more/LoadMore.tsx
|
|
7304
7423
|
import * as React89 from "react";
|
|
7305
|
-
import { jsx as
|
|
7424
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
7306
7425
|
var LoadMore = React89.forwardRef(function LoadMore2({
|
|
7307
7426
|
hasMore,
|
|
7308
7427
|
onLoadMore,
|
|
@@ -7313,17 +7432,24 @@ var LoadMore = React89.forwardRef(function LoadMore2({
|
|
|
7313
7432
|
className,
|
|
7314
7433
|
...props
|
|
7315
7434
|
}, ref) {
|
|
7316
|
-
return /* @__PURE__ */
|
|
7435
|
+
return /* @__PURE__ */ jsx91("div", { ref, "aria-live": "polite", className: cn("flex w-full justify-center py-4", className), ...props, children: hasMore ? /* @__PURE__ */ jsx91(Button, { type: "button", variant: "outline", onClick: onLoadMore, loading, children: loading ? loadingLabel : loadLabel }) : /* @__PURE__ */ jsx91("p", { role: "status", className: "text-sm text-muted-foreground", children: endLabel }) });
|
|
7317
7436
|
});
|
|
7318
7437
|
|
|
7319
7438
|
// src/components/segmented-control/SegmentedControl.tsx
|
|
7320
7439
|
import * as React90 from "react";
|
|
7321
|
-
import { Fragment as Fragment17, jsx as
|
|
7440
|
+
import { Fragment as Fragment17, jsx as jsx92, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
7322
7441
|
var sizeClasses10 = {
|
|
7323
7442
|
sm: "h-8 px-2.5 text-xs",
|
|
7324
7443
|
md: "h-9 px-3 text-sm",
|
|
7325
7444
|
lg: "h-10 px-4 text-sm"
|
|
7326
7445
|
};
|
|
7446
|
+
var fullWidthBreakpoints = {
|
|
7447
|
+
sm: "max-sm",
|
|
7448
|
+
md: "max-md",
|
|
7449
|
+
lg: "max-lg",
|
|
7450
|
+
xl: "max-xl",
|
|
7451
|
+
"2xl": "max-2xl"
|
|
7452
|
+
};
|
|
7327
7453
|
var SegmentedControl = React90.forwardRef(
|
|
7328
7454
|
function SegmentedControl2({
|
|
7329
7455
|
options,
|
|
@@ -7345,6 +7471,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7345
7471
|
);
|
|
7346
7472
|
const current = isControlled ? value : internal;
|
|
7347
7473
|
const selected = multiple ? Array.isArray(current) ? current : [] : typeof current === "string" ? current : "";
|
|
7474
|
+
const fullWidthBelow = typeof fullWidth === "string" ? fullWidthBreakpoints[fullWidth] : null;
|
|
7348
7475
|
const linkMode = options.some((option) => option.href !== void 0);
|
|
7349
7476
|
const LinkEl = linkComponent ?? "a";
|
|
7350
7477
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
@@ -7398,7 +7525,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7398
7525
|
moveFocus("last");
|
|
7399
7526
|
}
|
|
7400
7527
|
};
|
|
7401
|
-
return /* @__PURE__ */
|
|
7528
|
+
return /* @__PURE__ */ jsx92(
|
|
7402
7529
|
"div",
|
|
7403
7530
|
{
|
|
7404
7531
|
ref,
|
|
@@ -7406,7 +7533,8 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7406
7533
|
"aria-label": ariaLabel,
|
|
7407
7534
|
className: cn(
|
|
7408
7535
|
"inline-flex items-center gap-1 rounded-lg border border-border bg-muted p-1",
|
|
7409
|
-
fullWidth && "flex w-full",
|
|
7536
|
+
fullWidth === true && "flex w-full",
|
|
7537
|
+
fullWidthBelow && `${fullWidthBelow}:flex ${fullWidthBelow}:w-full`,
|
|
7410
7538
|
className
|
|
7411
7539
|
),
|
|
7412
7540
|
...props,
|
|
@@ -7419,37 +7547,41 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7419
7547
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7420
7548
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
7421
7549
|
sizeClasses10[size],
|
|
7422
|
-
fullWidth && "flex-1",
|
|
7550
|
+
fullWidth === true && "flex-1",
|
|
7551
|
+
fullWidthBelow && `${fullWidthBelow}:flex-1`,
|
|
7423
7552
|
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
7424
7553
|
);
|
|
7425
|
-
const segmentContent = /* @__PURE__ */
|
|
7426
|
-
option.icon && /* @__PURE__ */
|
|
7427
|
-
/* @__PURE__ */
|
|
7554
|
+
const segmentContent = /* @__PURE__ */ jsxs66(Fragment17, { children: [
|
|
7555
|
+
option.icon && /* @__PURE__ */ jsx92("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
7556
|
+
/* @__PURE__ */ jsx92("span", { className: "truncate", children: option.label }),
|
|
7557
|
+
option.hint && /* @__PURE__ */ jsx92("span", { "aria-hidden": "true", className: "shrink-0 text-[10px] font-normal text-muted-foreground/70", children: option.hint })
|
|
7428
7558
|
] });
|
|
7429
7559
|
if (option.href !== void 0) {
|
|
7430
7560
|
if (option.disabled || active) {
|
|
7431
|
-
return /* @__PURE__ */
|
|
7561
|
+
return /* @__PURE__ */ jsx92(
|
|
7432
7562
|
"span",
|
|
7433
7563
|
{
|
|
7434
7564
|
"aria-current": active ? "page" : void 0,
|
|
7435
7565
|
"aria-disabled": option.disabled || void 0,
|
|
7566
|
+
"aria-description": option.hint,
|
|
7436
7567
|
className: cn(segmentClass, option.disabled && "opacity-50"),
|
|
7437
7568
|
children: segmentContent
|
|
7438
7569
|
},
|
|
7439
7570
|
option.value
|
|
7440
7571
|
);
|
|
7441
7572
|
}
|
|
7442
|
-
return /* @__PURE__ */
|
|
7573
|
+
return /* @__PURE__ */ jsx92(
|
|
7443
7574
|
LinkEl,
|
|
7444
7575
|
{
|
|
7445
7576
|
...destination(option.href),
|
|
7577
|
+
"aria-description": option.hint,
|
|
7446
7578
|
className: segmentClass,
|
|
7447
7579
|
children: segmentContent
|
|
7448
7580
|
},
|
|
7449
7581
|
option.value
|
|
7450
7582
|
);
|
|
7451
7583
|
}
|
|
7452
|
-
return /* @__PURE__ */
|
|
7584
|
+
return /* @__PURE__ */ jsx92(
|
|
7453
7585
|
"button",
|
|
7454
7586
|
{
|
|
7455
7587
|
ref: (node) => {
|
|
@@ -7460,6 +7592,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7460
7592
|
"aria-checked": multiple || linkMode ? void 0 : active,
|
|
7461
7593
|
"aria-pressed": multiple ? active : void 0,
|
|
7462
7594
|
"aria-current": linkMode && active ? "page" : void 0,
|
|
7595
|
+
"aria-description": option.hint,
|
|
7463
7596
|
disabled: option.disabled,
|
|
7464
7597
|
tabIndex: focusable ? 0 : -1,
|
|
7465
7598
|
onClick: () => select(option),
|
|
@@ -7477,7 +7610,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7477
7610
|
|
|
7478
7611
|
// src/components/range-slider/RangeSlider.tsx
|
|
7479
7612
|
import * as React91 from "react";
|
|
7480
|
-
import { jsx as
|
|
7613
|
+
import { jsx as jsx93, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
7481
7614
|
var rangeInputClass = cn(
|
|
7482
7615
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
7483
7616
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
@@ -7517,21 +7650,21 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7517
7650
|
const span = max - min || 1;
|
|
7518
7651
|
const lowPercent = (low - min) / span * 100;
|
|
7519
7652
|
const highPercent = (high - min) / span * 100;
|
|
7520
|
-
return /* @__PURE__ */
|
|
7521
|
-
showValues && /* @__PURE__ */
|
|
7522
|
-
/* @__PURE__ */
|
|
7523
|
-
/* @__PURE__ */
|
|
7653
|
+
return /* @__PURE__ */ jsxs67("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
7654
|
+
showValues && /* @__PURE__ */ jsxs67("div", { className: "mb-2 flex items-center justify-between text-sm font-medium tabular-nums", children: [
|
|
7655
|
+
/* @__PURE__ */ jsx93("span", { children: formatValue(low) }),
|
|
7656
|
+
/* @__PURE__ */ jsx93("span", { children: formatValue(high) })
|
|
7524
7657
|
] }),
|
|
7525
|
-
/* @__PURE__ */
|
|
7526
|
-
/* @__PURE__ */
|
|
7527
|
-
/* @__PURE__ */
|
|
7658
|
+
/* @__PURE__ */ jsxs67("div", { className: "relative h-6 w-full", children: [
|
|
7659
|
+
/* @__PURE__ */ jsx93("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-border" }),
|
|
7660
|
+
/* @__PURE__ */ jsx93(
|
|
7528
7661
|
"div",
|
|
7529
7662
|
{
|
|
7530
7663
|
className: "absolute top-1/2 h-1 -translate-y-1/2 rounded-full bg-primary",
|
|
7531
7664
|
style: { left: `${lowPercent}%`, right: `${100 - highPercent}%` }
|
|
7532
7665
|
}
|
|
7533
7666
|
),
|
|
7534
|
-
/* @__PURE__ */
|
|
7667
|
+
/* @__PURE__ */ jsx93(
|
|
7535
7668
|
"input",
|
|
7536
7669
|
{
|
|
7537
7670
|
type: "range",
|
|
@@ -7546,7 +7679,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7546
7679
|
className: cn(rangeInputClass, "z-10")
|
|
7547
7680
|
}
|
|
7548
7681
|
),
|
|
7549
|
-
/* @__PURE__ */
|
|
7682
|
+
/* @__PURE__ */ jsx93(
|
|
7550
7683
|
"input",
|
|
7551
7684
|
{
|
|
7552
7685
|
type: "range",
|
|
@@ -7567,7 +7700,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7567
7700
|
|
|
7568
7701
|
// src/components/filter-chips/FilterChips.tsx
|
|
7569
7702
|
import * as React92 from "react";
|
|
7570
|
-
import { jsx as
|
|
7703
|
+
import { jsx as jsx94, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
7571
7704
|
var CHIP_SIZES = {
|
|
7572
7705
|
sm: {
|
|
7573
7706
|
chip: "gap-1 py-0.5 pl-2.5 pr-0.5 text-xs",
|
|
@@ -7599,10 +7732,10 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7599
7732
|
...props
|
|
7600
7733
|
}, ref) {
|
|
7601
7734
|
if (filters.length === 0) {
|
|
7602
|
-
return emptyLabel ? /* @__PURE__ */
|
|
7735
|
+
return emptyLabel ? /* @__PURE__ */ jsx94("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7603
7736
|
}
|
|
7604
7737
|
const scale = CHIP_SIZES[size];
|
|
7605
|
-
return /* @__PURE__ */
|
|
7738
|
+
return /* @__PURE__ */ jsxs68(
|
|
7606
7739
|
"div",
|
|
7607
7740
|
{
|
|
7608
7741
|
ref,
|
|
@@ -7611,7 +7744,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7611
7744
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
7612
7745
|
...props,
|
|
7613
7746
|
children: [
|
|
7614
|
-
filters.map((filter) => /* @__PURE__ */
|
|
7747
|
+
filters.map((filter) => /* @__PURE__ */ jsxs68(
|
|
7615
7748
|
"span",
|
|
7616
7749
|
{
|
|
7617
7750
|
className: cn(
|
|
@@ -7619,15 +7752,15 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7619
7752
|
scale.chip
|
|
7620
7753
|
),
|
|
7621
7754
|
children: [
|
|
7622
|
-
/* @__PURE__ */
|
|
7623
|
-
/* @__PURE__ */
|
|
7755
|
+
/* @__PURE__ */ jsxs68("span", { className: "truncate", children: [
|
|
7756
|
+
/* @__PURE__ */ jsxs68("span", { className: "text-muted-foreground", children: [
|
|
7624
7757
|
filter.label,
|
|
7625
7758
|
":"
|
|
7626
7759
|
] }),
|
|
7627
7760
|
" ",
|
|
7628
|
-
/* @__PURE__ */
|
|
7761
|
+
/* @__PURE__ */ jsx94("span", { className: "font-medium", children: filter.value ?? "Any" })
|
|
7629
7762
|
] }),
|
|
7630
|
-
filter.onRemove && /* @__PURE__ */
|
|
7763
|
+
filter.onRemove && /* @__PURE__ */ jsx94(
|
|
7631
7764
|
"button",
|
|
7632
7765
|
{
|
|
7633
7766
|
type: "button",
|
|
@@ -7637,14 +7770,14 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7637
7770
|
"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",
|
|
7638
7771
|
scale.remove
|
|
7639
7772
|
),
|
|
7640
|
-
children: /* @__PURE__ */
|
|
7773
|
+
children: /* @__PURE__ */ jsx94("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: scale.icon, fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx94("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7641
7774
|
}
|
|
7642
7775
|
)
|
|
7643
7776
|
]
|
|
7644
7777
|
},
|
|
7645
7778
|
filter.key
|
|
7646
7779
|
)),
|
|
7647
|
-
onClearAll && /* @__PURE__ */
|
|
7780
|
+
onClearAll && /* @__PURE__ */ jsx94(
|
|
7648
7781
|
"button",
|
|
7649
7782
|
{
|
|
7650
7783
|
type: "button",
|
|
@@ -7663,7 +7796,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7663
7796
|
|
|
7664
7797
|
// src/components/multi-select/MultiSelect.tsx
|
|
7665
7798
|
import * as React93 from "react";
|
|
7666
|
-
import { jsx as
|
|
7799
|
+
import { jsx as jsx95, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
7667
7800
|
var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
7668
7801
|
options,
|
|
7669
7802
|
value,
|
|
@@ -7708,16 +7841,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7708
7841
|
}, [filtered]);
|
|
7709
7842
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
7710
7843
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
7711
|
-
return /* @__PURE__ */
|
|
7712
|
-
label && /* @__PURE__ */
|
|
7713
|
-
visibleChips.length > 0 && /* @__PURE__ */
|
|
7714
|
-
visibleChips.map((option) => /* @__PURE__ */
|
|
7844
|
+
return /* @__PURE__ */ jsxs69("div", { ref, className: cn("flex flex-col gap-2", className), ...props, children: [
|
|
7845
|
+
label && /* @__PURE__ */ jsx95("span", { id: labelId, className: "text-sm font-medium", children: label }),
|
|
7846
|
+
visibleChips.length > 0 && /* @__PURE__ */ jsxs69("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
7847
|
+
visibleChips.map((option) => /* @__PURE__ */ jsxs69(
|
|
7715
7848
|
"span",
|
|
7716
7849
|
{
|
|
7717
7850
|
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",
|
|
7718
7851
|
children: [
|
|
7719
|
-
/* @__PURE__ */
|
|
7720
|
-
/* @__PURE__ */
|
|
7852
|
+
/* @__PURE__ */ jsx95("span", { className: "truncate", children: option.label }),
|
|
7853
|
+
/* @__PURE__ */ jsx95(
|
|
7721
7854
|
"button",
|
|
7722
7855
|
{
|
|
7723
7856
|
type: "button",
|
|
@@ -7725,26 +7858,26 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7725
7858
|
disabled,
|
|
7726
7859
|
"aria-label": `Remove ${option.label}`,
|
|
7727
7860
|
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",
|
|
7728
|
-
children: /* @__PURE__ */
|
|
7861
|
+
children: /* @__PURE__ */ jsx95("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx95("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7729
7862
|
}
|
|
7730
7863
|
)
|
|
7731
7864
|
]
|
|
7732
7865
|
},
|
|
7733
7866
|
option.value
|
|
7734
7867
|
)),
|
|
7735
|
-
hiddenCount > 0 && /* @__PURE__ */
|
|
7868
|
+
hiddenCount > 0 && /* @__PURE__ */ jsxs69("span", { className: "self-center text-xs text-muted-foreground", children: [
|
|
7736
7869
|
"+",
|
|
7737
7870
|
hiddenCount,
|
|
7738
7871
|
" more"
|
|
7739
7872
|
] })
|
|
7740
7873
|
] }),
|
|
7741
|
-
/* @__PURE__ */
|
|
7742
|
-
/* @__PURE__ */
|
|
7743
|
-
/* @__PURE__ */
|
|
7744
|
-
/* @__PURE__ */
|
|
7874
|
+
/* @__PURE__ */ jsxs69(Popover, { open, onOpenChange: setOpen, children: [
|
|
7875
|
+
/* @__PURE__ */ jsxs69(PopoverTrigger, { "aria-labelledby": label ? labelId : void 0, disabled, className: "w-full justify-between", children: [
|
|
7876
|
+
/* @__PURE__ */ jsx95("span", { children: selected.length > 0 ? `${selected.length} selected` : triggerLabel }),
|
|
7877
|
+
/* @__PURE__ */ jsx95("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2304" })
|
|
7745
7878
|
] }),
|
|
7746
|
-
/* @__PURE__ */
|
|
7747
|
-
/* @__PURE__ */
|
|
7879
|
+
/* @__PURE__ */ jsxs69(PopoverContent, { className: "w-80 p-0", children: [
|
|
7880
|
+
/* @__PURE__ */ jsx95("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ jsx95(
|
|
7748
7881
|
Input,
|
|
7749
7882
|
{
|
|
7750
7883
|
type: "search",
|
|
@@ -7755,9 +7888,9 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7755
7888
|
autoFocus: true
|
|
7756
7889
|
}
|
|
7757
7890
|
) }),
|
|
7758
|
-
/* @__PURE__ */
|
|
7759
|
-
heading && /* @__PURE__ */
|
|
7760
|
-
/* @__PURE__ */
|
|
7891
|
+
/* @__PURE__ */ jsx95("div", { className: "max-h-64 overflow-y-auto p-1", children: groups.length === 0 ? /* @__PURE__ */ jsx95("p", { className: "px-3 py-3 text-sm text-muted-foreground", children: emptyText }) : groups.map(({ option, heading }) => /* @__PURE__ */ jsxs69(React93.Fragment, { children: [
|
|
7892
|
+
heading && /* @__PURE__ */ jsx95("p", { className: "px-3 pb-1 pt-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: heading }),
|
|
7893
|
+
/* @__PURE__ */ jsxs69(
|
|
7761
7894
|
"label",
|
|
7762
7895
|
{
|
|
7763
7896
|
className: cn(
|
|
@@ -7765,7 +7898,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7765
7898
|
option.disabled && "cursor-not-allowed opacity-50"
|
|
7766
7899
|
),
|
|
7767
7900
|
children: [
|
|
7768
|
-
/* @__PURE__ */
|
|
7901
|
+
/* @__PURE__ */ jsx95(
|
|
7769
7902
|
Checkbox,
|
|
7770
7903
|
{
|
|
7771
7904
|
checked: selected.includes(option.value),
|
|
@@ -7774,16 +7907,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7774
7907
|
className: "mt-0.5"
|
|
7775
7908
|
}
|
|
7776
7909
|
),
|
|
7777
|
-
/* @__PURE__ */
|
|
7778
|
-
/* @__PURE__ */
|
|
7779
|
-
option.description && /* @__PURE__ */
|
|
7910
|
+
/* @__PURE__ */ jsxs69("span", { className: "min-w-0", children: [
|
|
7911
|
+
/* @__PURE__ */ jsx95("span", { className: "block", children: option.label }),
|
|
7912
|
+
option.description && /* @__PURE__ */ jsx95("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: option.description })
|
|
7780
7913
|
] })
|
|
7781
7914
|
]
|
|
7782
7915
|
}
|
|
7783
7916
|
)
|
|
7784
7917
|
] }, option.value)) }),
|
|
7785
|
-
/* @__PURE__ */
|
|
7786
|
-
/* @__PURE__ */
|
|
7918
|
+
/* @__PURE__ */ jsxs69("div", { className: "flex items-center justify-between gap-2 border-t border-border p-2", children: [
|
|
7919
|
+
/* @__PURE__ */ jsx95(
|
|
7787
7920
|
Button,
|
|
7788
7921
|
{
|
|
7789
7922
|
type: "button",
|
|
@@ -7793,7 +7926,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7793
7926
|
children: "Select all"
|
|
7794
7927
|
}
|
|
7795
7928
|
),
|
|
7796
|
-
/* @__PURE__ */
|
|
7929
|
+
/* @__PURE__ */ jsx95(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => commit([]), children: "Clear" })
|
|
7797
7930
|
] })
|
|
7798
7931
|
] })
|
|
7799
7932
|
] })
|
|
@@ -7802,7 +7935,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7802
7935
|
|
|
7803
7936
|
// src/components/filter-panel/FilterPanel.tsx
|
|
7804
7937
|
import * as React94 from "react";
|
|
7805
|
-
import { jsx as
|
|
7938
|
+
import { jsx as jsx96, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
7806
7939
|
var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
7807
7940
|
sections,
|
|
7808
7941
|
title = "Filters",
|
|
@@ -7832,16 +7965,16 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7832
7965
|
(current) => current.includes(index) ? current.filter((entry) => entry !== index) : [...current, index]
|
|
7833
7966
|
);
|
|
7834
7967
|
};
|
|
7835
|
-
return /* @__PURE__ */
|
|
7836
|
-
(title || description) && /* @__PURE__ */
|
|
7837
|
-
title && /* @__PURE__ */
|
|
7838
|
-
description && /* @__PURE__ */
|
|
7968
|
+
return /* @__PURE__ */ jsxs70(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
7969
|
+
(title || description) && /* @__PURE__ */ jsxs70("div", { className: "border-b border-border px-4 py-3", children: [
|
|
7970
|
+
title && /* @__PURE__ */ jsx96("h2", { className: "text-sm font-semibold", children: title }),
|
|
7971
|
+
description && /* @__PURE__ */ jsx96("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
7839
7972
|
] }),
|
|
7840
|
-
/* @__PURE__ */
|
|
7973
|
+
/* @__PURE__ */ jsx96("div", { className: "divide-y divide-border", children: sections.map((section, index) => {
|
|
7841
7974
|
const expanded = isOpen(index);
|
|
7842
7975
|
const sectionId = `filter-section-${index}`;
|
|
7843
|
-
return /* @__PURE__ */
|
|
7844
|
-
/* @__PURE__ */
|
|
7976
|
+
return /* @__PURE__ */ jsxs70("div", { className: "px-4 py-3", children: [
|
|
7977
|
+
/* @__PURE__ */ jsx96("h3", { children: /* @__PURE__ */ jsxs70(
|
|
7845
7978
|
"button",
|
|
7846
7979
|
{
|
|
7847
7980
|
type: "button",
|
|
@@ -7854,28 +7987,28 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7854
7987
|
collapsible && "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7855
7988
|
),
|
|
7856
7989
|
children: [
|
|
7857
|
-
/* @__PURE__ */
|
|
7990
|
+
/* @__PURE__ */ jsxs70("span", { children: [
|
|
7858
7991
|
section.title,
|
|
7859
|
-
section.description && /* @__PURE__ */
|
|
7992
|
+
section.description && /* @__PURE__ */ jsx96("span", { className: "mt-0.5 block text-xs font-normal text-muted-foreground", children: section.description })
|
|
7860
7993
|
] }),
|
|
7861
|
-
collapsible && /* @__PURE__ */
|
|
7994
|
+
collapsible && /* @__PURE__ */ jsx96("span", { "aria-hidden": "true", className: cn("text-muted-foreground transition-transform", expanded && "rotate-180"), children: "\u2304" })
|
|
7862
7995
|
]
|
|
7863
7996
|
}
|
|
7864
7997
|
) }),
|
|
7865
|
-
expanded && /* @__PURE__ */
|
|
7998
|
+
expanded && /* @__PURE__ */ jsx96("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
7866
7999
|
] }, index);
|
|
7867
8000
|
}) }),
|
|
7868
|
-
(onReset || onApply || actions) && /* @__PURE__ */
|
|
8001
|
+
(onReset || onApply || actions) && /* @__PURE__ */ jsxs70("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
7869
8002
|
actions,
|
|
7870
|
-
onReset && /* @__PURE__ */
|
|
7871
|
-
onApply && /* @__PURE__ */
|
|
8003
|
+
onReset && /* @__PURE__ */ jsx96(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, className: "ml-auto", children: resetLabel }),
|
|
8004
|
+
onApply && /* @__PURE__ */ jsx96(Button, { type: "button", size: "sm", onClick: onApply, children: applyLabel })
|
|
7872
8005
|
] })
|
|
7873
8006
|
] });
|
|
7874
8007
|
});
|
|
7875
8008
|
|
|
7876
8009
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
7877
8010
|
import * as React95 from "react";
|
|
7878
|
-
import { jsx as
|
|
8011
|
+
import { jsx as jsx97, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
7879
8012
|
var DEFAULT_PRESETS = [
|
|
7880
8013
|
{ label: "7 days", days: 7 },
|
|
7881
8014
|
{ label: "30 days", days: 30 },
|
|
@@ -7927,8 +8060,8 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7927
8060
|
}
|
|
7928
8061
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
7929
8062
|
};
|
|
7930
|
-
return /* @__PURE__ */
|
|
7931
|
-
showPresets && presets.length > 0 && /* @__PURE__ */
|
|
8063
|
+
return /* @__PURE__ */ jsxs71("div", { ref, className: cn("flex flex-col gap-3", className), ...props, children: [
|
|
8064
|
+
showPresets && presets.length > 0 && /* @__PURE__ */ jsx97("div", { className: "flex flex-wrap gap-2", children: presets.map((preset) => /* @__PURE__ */ jsx97(
|
|
7932
8065
|
Button,
|
|
7933
8066
|
{
|
|
7934
8067
|
type: "button",
|
|
@@ -7940,10 +8073,10 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7940
8073
|
},
|
|
7941
8074
|
preset.label
|
|
7942
8075
|
)) }),
|
|
7943
|
-
/* @__PURE__ */
|
|
7944
|
-
/* @__PURE__ */
|
|
7945
|
-
/* @__PURE__ */
|
|
7946
|
-
/* @__PURE__ */
|
|
8076
|
+
/* @__PURE__ */ jsxs71("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
8077
|
+
/* @__PURE__ */ jsxs71("div", { children: [
|
|
8078
|
+
/* @__PURE__ */ jsx97("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
8079
|
+
/* @__PURE__ */ jsx97(
|
|
7947
8080
|
DatePicker,
|
|
7948
8081
|
{
|
|
7949
8082
|
id: startId,
|
|
@@ -7955,9 +8088,9 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7955
8088
|
}
|
|
7956
8089
|
)
|
|
7957
8090
|
] }),
|
|
7958
|
-
/* @__PURE__ */
|
|
7959
|
-
/* @__PURE__ */
|
|
7960
|
-
/* @__PURE__ */
|
|
8091
|
+
/* @__PURE__ */ jsxs71("div", { children: [
|
|
8092
|
+
/* @__PURE__ */ jsx97("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
8093
|
+
/* @__PURE__ */ jsx97(
|
|
7961
8094
|
DatePicker,
|
|
7962
8095
|
{
|
|
7963
8096
|
id: endId,
|
|
@@ -7976,7 +8109,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7976
8109
|
|
|
7977
8110
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
7978
8111
|
import * as React96 from "react";
|
|
7979
|
-
import { jsx as
|
|
8112
|
+
import { jsx as jsx98, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
7980
8113
|
var AppliedFilters = React96.forwardRef(
|
|
7981
8114
|
function AppliedFilters2({
|
|
7982
8115
|
filters,
|
|
@@ -7990,9 +8123,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
7990
8123
|
}, ref) {
|
|
7991
8124
|
const summary = label ?? `${filters.length} active`;
|
|
7992
8125
|
if (filters.length === 0) {
|
|
7993
|
-
return emptyLabel ? /* @__PURE__ */
|
|
8126
|
+
return emptyLabel ? /* @__PURE__ */ jsx98("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7994
8127
|
}
|
|
7995
|
-
return /* @__PURE__ */
|
|
8128
|
+
return /* @__PURE__ */ jsxs72(
|
|
7996
8129
|
"div",
|
|
7997
8130
|
{
|
|
7998
8131
|
ref,
|
|
@@ -8000,9 +8133,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8000
8133
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
8001
8134
|
...props,
|
|
8002
8135
|
children: [
|
|
8003
|
-
/* @__PURE__ */
|
|
8004
|
-
/* @__PURE__ */
|
|
8005
|
-
onEdit && /* @__PURE__ */
|
|
8136
|
+
/* @__PURE__ */ jsx98("span", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: summary }),
|
|
8137
|
+
/* @__PURE__ */ jsx98(FilterChips, { filters, onClearAll }),
|
|
8138
|
+
onEdit && /* @__PURE__ */ jsx98(Button, { type: "button", variant: "ghost", size: "sm", onClick: onEdit, children: editLabel })
|
|
8006
8139
|
]
|
|
8007
8140
|
}
|
|
8008
8141
|
);
|
|
@@ -8013,7 +8146,7 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8013
8146
|
import * as React97 from "react";
|
|
8014
8147
|
import { createPortal as createPortal8 } from "react-dom";
|
|
8015
8148
|
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
8016
|
-
import { jsx as
|
|
8149
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
8017
8150
|
var MenuContext = React97.createContext({
|
|
8018
8151
|
open: false,
|
|
8019
8152
|
setOpen: () => {
|
|
@@ -8045,7 +8178,7 @@ var Menu = React97.forwardRef(
|
|
|
8045
8178
|
},
|
|
8046
8179
|
[open, onOpenChange]
|
|
8047
8180
|
);
|
|
8048
|
-
return /* @__PURE__ */
|
|
8181
|
+
return /* @__PURE__ */ jsx99("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx99(
|
|
8049
8182
|
MenuContext.Provider,
|
|
8050
8183
|
{
|
|
8051
8184
|
value: { open: current, setOpen, activeIndex, setActiveIndex, wrapperRef },
|
|
@@ -8058,7 +8191,7 @@ Menu.displayName = "Menu";
|
|
|
8058
8191
|
var MenuTrigger = React97.forwardRef(
|
|
8059
8192
|
({ className, children, ...props }, ref) => {
|
|
8060
8193
|
const { open, setOpen } = React97.useContext(MenuContext);
|
|
8061
|
-
return /* @__PURE__ */
|
|
8194
|
+
return /* @__PURE__ */ jsx99(
|
|
8062
8195
|
"button",
|
|
8063
8196
|
{
|
|
8064
8197
|
ref,
|
|
@@ -8160,7 +8293,7 @@ var MenuContent = React97.forwardRef(
|
|
|
8160
8293
|
};
|
|
8161
8294
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
8162
8295
|
return createPortal8(
|
|
8163
|
-
/* @__PURE__ */
|
|
8296
|
+
/* @__PURE__ */ jsx99(
|
|
8164
8297
|
"div",
|
|
8165
8298
|
{
|
|
8166
8299
|
ref: (node) => {
|
|
@@ -8189,7 +8322,7 @@ var MenuItem = React97.forwardRef(
|
|
|
8189
8322
|
const { setOpen } = React97.useContext(MenuContext);
|
|
8190
8323
|
const Comp = asChild ? Slot5 : "button";
|
|
8191
8324
|
const typeProp = asChild ? {} : { type: "button" };
|
|
8192
|
-
return /* @__PURE__ */
|
|
8325
|
+
return /* @__PURE__ */ jsx99(
|
|
8193
8326
|
Comp,
|
|
8194
8327
|
{
|
|
8195
8328
|
ref,
|
|
@@ -8212,11 +8345,11 @@ var MenuItem = React97.forwardRef(
|
|
|
8212
8345
|
);
|
|
8213
8346
|
MenuItem.displayName = "MenuItem";
|
|
8214
8347
|
var MenuSeparator = React97.forwardRef(
|
|
8215
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8348
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx99("div", { ref, role: "separator", className: cn("-mx-1 my-1 h-px bg-border", className), ...props })
|
|
8216
8349
|
);
|
|
8217
8350
|
MenuSeparator.displayName = "MenuSeparator";
|
|
8218
8351
|
var MenuLabel = React97.forwardRef(
|
|
8219
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8352
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx99(
|
|
8220
8353
|
"div",
|
|
8221
8354
|
{
|
|
8222
8355
|
ref,
|
|
@@ -8230,7 +8363,7 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
8230
8363
|
// src/components/alert/Alert.tsx
|
|
8231
8364
|
import * as React98 from "react";
|
|
8232
8365
|
import { cva as cva8 } from "class-variance-authority";
|
|
8233
|
-
import { jsx as
|
|
8366
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
8234
8367
|
var alertVariants = cva8(
|
|
8235
8368
|
"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",
|
|
8236
8369
|
{
|
|
@@ -8251,7 +8384,7 @@ var alertVariants = cva8(
|
|
|
8251
8384
|
}
|
|
8252
8385
|
);
|
|
8253
8386
|
var Alert = React98.forwardRef(
|
|
8254
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */
|
|
8387
|
+
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx100(
|
|
8255
8388
|
"div",
|
|
8256
8389
|
{
|
|
8257
8390
|
ref,
|
|
@@ -8263,7 +8396,7 @@ var Alert = React98.forwardRef(
|
|
|
8263
8396
|
);
|
|
8264
8397
|
Alert.displayName = "Alert";
|
|
8265
8398
|
var AlertTitle = React98.forwardRef(
|
|
8266
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8399
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx100(
|
|
8267
8400
|
"h5",
|
|
8268
8401
|
{
|
|
8269
8402
|
ref,
|
|
@@ -8274,7 +8407,7 @@ var AlertTitle = React98.forwardRef(
|
|
|
8274
8407
|
);
|
|
8275
8408
|
AlertTitle.displayName = "AlertTitle";
|
|
8276
8409
|
var AlertDescription = React98.forwardRef(
|
|
8277
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8410
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx100(
|
|
8278
8411
|
"div",
|
|
8279
8412
|
{
|
|
8280
8413
|
ref,
|
|
@@ -8287,22 +8420,22 @@ AlertDescription.displayName = "AlertDescription";
|
|
|
8287
8420
|
|
|
8288
8421
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
8289
8422
|
import * as React99 from "react";
|
|
8290
|
-
import { jsx as
|
|
8423
|
+
import { jsx as jsx101, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
8291
8424
|
var Breadcrumb = React99.forwardRef(
|
|
8292
8425
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
8293
8426
|
const LinkEl = linkComponent ?? "a";
|
|
8294
|
-
return /* @__PURE__ */
|
|
8427
|
+
return /* @__PURE__ */ jsx101(
|
|
8295
8428
|
"nav",
|
|
8296
8429
|
{
|
|
8297
8430
|
ref,
|
|
8298
8431
|
"aria-label": label,
|
|
8299
8432
|
className: cn("flex items-center space-x-1.5 text-sm text-muted-foreground", className),
|
|
8300
8433
|
...props,
|
|
8301
|
-
children: /* @__PURE__ */
|
|
8434
|
+
children: /* @__PURE__ */ jsx101("ol", { className: "flex flex-wrap items-center space-x-1.5", children: items.map((item, index) => {
|
|
8302
8435
|
const isLast = index === items.length - 1;
|
|
8303
|
-
return /* @__PURE__ */
|
|
8304
|
-
index > 0 && /* @__PURE__ */
|
|
8305
|
-
item.href && !isLast ? /* @__PURE__ */
|
|
8436
|
+
return /* @__PURE__ */ jsxs73("li", { className: cn("flex items-center space-x-1.5", truncateCurrent && isLast && "min-w-0"), children: [
|
|
8437
|
+
index > 0 && /* @__PURE__ */ jsx101("span", { "aria-hidden": "true", className: "text-muted-foreground/50", children: separator }),
|
|
8438
|
+
item.href && !isLast ? /* @__PURE__ */ jsx101(
|
|
8306
8439
|
LinkEl,
|
|
8307
8440
|
{
|
|
8308
8441
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -8313,7 +8446,7 @@ var Breadcrumb = React99.forwardRef(
|
|
|
8313
8446
|
} : void 0,
|
|
8314
8447
|
children: item.label
|
|
8315
8448
|
}
|
|
8316
|
-
) : /* @__PURE__ */
|
|
8449
|
+
) : /* @__PURE__ */ jsx101(
|
|
8317
8450
|
"span",
|
|
8318
8451
|
{
|
|
8319
8452
|
"aria-current": isLast ? "page" : void 0,
|
|
@@ -8409,6 +8542,7 @@ export {
|
|
|
8409
8542
|
LinkTabs,
|
|
8410
8543
|
List,
|
|
8411
8544
|
ListItem,
|
|
8545
|
+
ListToolbar,
|
|
8412
8546
|
LoadMore,
|
|
8413
8547
|
LogoCloud,
|
|
8414
8548
|
Menu,
|