@slipstream-ui/core 0.11.7 → 0.11.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +68 -10
- package/dist/index.d.ts +68 -10
- package/dist/index.js +609 -472
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +608 -472
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +1 -1
- package/dist/manifests/alert.manifest.json +1 -1
- package/dist/manifests/announcement-bar.manifest.json +1 -1
- package/dist/manifests/app-shell.manifest.json +1 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +1 -1
- package/dist/manifests/auth-layout.manifest.json +1 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +1 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +1 -1
- package/dist/manifests/breadcrumb.manifest.json +1 -1
- package/dist/manifests/button-group.manifest.json +1 -1
- package/dist/manifests/button.manifest.json +4 -2
- package/dist/manifests/calendar.manifest.json +1 -1
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cover-image.manifest.json +1 -1
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +22 -1
- package/dist/manifests/date-picker-popover.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +1 -1
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +1 -1
- package/dist/manifests/empty-state.manifest.json +1 -1
- package/dist/manifests/entity-card.manifest.json +1 -1
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/image.manifest.json +1 -1
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list-toolbar.manifest.json +120 -0
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +13 -2
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +4 -4
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +7 -1
- package/dist/manifests/site-header.manifest.json +1 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +1 -1
- package/dist/manifests/stepper.manifest.json +1 -1
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +1 -1
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +1 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +1 -1
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/button/Button.d.ts +2 -2
- package/dist/src/components/button/Button.js +1 -0
- package/dist/src/components/button/Button.js.map +1 -1
- package/dist/src/components/button/Button.mjs +1 -0
- package/dist/src/components/button/Button.mjs.map +1 -1
- package/dist/src/components/data-table/DataTable.d.ts +12 -1
- package/dist/src/components/data-table/DataTable.js +189 -112
- package/dist/src/components/data-table/DataTable.js.map +1 -1
- package/dist/src/components/data-table/DataTable.mjs +189 -112
- package/dist/src/components/data-table/DataTable.mjs.map +1 -1
- package/dist/src/components/list-toolbar/ListToolbar.d.ts +25 -0
- package/dist/src/components/list-toolbar/ListToolbar.js +68 -0
- package/dist/src/components/list-toolbar/ListToolbar.js.map +1 -0
- package/dist/src/components/list-toolbar/ListToolbar.mjs +44 -0
- package/dist/src/components/list-toolbar/ListToolbar.mjs.map +1 -0
- package/dist/src/components/list-toolbar/index.d.ts +1 -0
- package/dist/src/components/list-toolbar/index.js +23 -0
- package/dist/src/components/list-toolbar/index.js.map +1 -0
- package/dist/src/components/list-toolbar/index.mjs +2 -0
- package/dist/src/components/list-toolbar/index.mjs.map +1 -0
- package/dist/src/components/page-header/PageHeader.d.ts +4 -0
- package/dist/src/components/page-header/PageHeader.js +2 -2
- package/dist/src/components/page-header/PageHeader.js.map +1 -1
- package/dist/src/components/page-header/PageHeader.mjs +2 -2
- package/dist/src/components/page-header/PageHeader.mjs.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.d.ts +20 -4
- package/dist/src/components/segmented-control/SegmentedControl.js +17 -3
- package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.mjs +17 -3
- package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
- package/dist/src/components/site-footer/SiteFooter.d.ts +3 -1
- package/dist/src/components/site-footer/SiteFooter.js +3 -1
- package/dist/src/components/site-footer/SiteFooter.js.map +1 -1
- package/dist/src/components/site-footer/SiteFooter.mjs +3 -1
- package/dist/src/components/site-footer/SiteFooter.mjs.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/button/Button.ssr.test.tsx +1 -1
- package/src/components/button/Button.test.tsx +6 -0
- package/src/components/button/Button.tsx +1 -0
- package/src/components/data-table/DataTable.test.tsx +99 -0
- package/src/components/data-table/DataTable.tsx +115 -1
- package/src/components/list-toolbar/ListToolbar.test.tsx +50 -0
- package/src/components/list-toolbar/ListToolbar.tsx +64 -0
- package/src/components/list-toolbar/index.ts +1 -0
- package/src/components/page-header/PageHeader.test.tsx +13 -0
- package/src/components/page-header/PageHeader.tsx +4 -2
- package/src/components/segmented-control/SegmentedControl.test.tsx +51 -0
- package/src/components/segmented-control/SegmentedControl.tsx +36 -4
- package/src/components/site-footer/SiteFooter.test.tsx +12 -0
- package/src/components/site-footer/SiteFooter.tsx +4 -0
- package/src/index.ts +1 -0
- package/src/manifests/accordion.manifest.json +1 -1
- package/src/manifests/alert.manifest.json +1 -1
- package/src/manifests/announcement-bar.manifest.json +1 -1
- package/src/manifests/app-shell.manifest.json +1 -1
- package/src/manifests/applied-filters.manifest.json +1 -1
- package/src/manifests/article-card.manifest.json +1 -1
- package/src/manifests/auth-layout.manifest.json +1 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +1 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +1 -1
- package/src/manifests/breadcrumb.manifest.json +1 -1
- package/src/manifests/button-group.manifest.json +1 -1
- package/src/manifests/button.manifest.json +4 -2
- package/src/manifests/calendar.manifest.json +1 -1
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cover-image.manifest.json +1 -1
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +22 -1
- package/src/manifests/date-picker-popover.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +1 -1
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +1 -1
- package/src/manifests/empty-state.manifest.json +1 -1
- package/src/manifests/entity-card.manifest.json +1 -1
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/image.manifest.json +1 -1
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list-toolbar.manifest.json +120 -0
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +13 -2
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +4 -4
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +7 -1
- package/src/manifests/site-header.manifest.json +1 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +1 -1
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +1 -1
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +1 -1
- package/src/manifests/tooltip.manifest.json +1 -1
package/dist/index.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
|
}
|
|
@@ -3664,6 +3665,7 @@ function isActive2(itemHref, activeHref, match) {
|
|
|
3664
3665
|
function SiteFooter({
|
|
3665
3666
|
brand,
|
|
3666
3667
|
tagline,
|
|
3668
|
+
contact,
|
|
3667
3669
|
columns,
|
|
3668
3670
|
legal,
|
|
3669
3671
|
linkComponent,
|
|
@@ -3679,7 +3681,8 @@ function SiteFooter({
|
|
|
3679
3681
|
/* @__PURE__ */ jsxs28("div", { className: "mx-auto grid w-full max-w-7xl gap-8 px-4 py-12 sm:grid-cols-2 sm:px-6 lg:grid-cols-4", children: [
|
|
3680
3682
|
/* @__PURE__ */ jsxs28("div", { className: "min-w-0", children: [
|
|
3681
3683
|
brand,
|
|
3682
|
-
tagline && /* @__PURE__ */ jsx42("p", { className: "mt-3 max-w-56 text-sm text-muted-foreground", children: tagline })
|
|
3684
|
+
tagline && /* @__PURE__ */ jsx42("p", { className: "mt-3 max-w-56 text-sm text-muted-foreground", children: tagline }),
|
|
3685
|
+
contact && /* @__PURE__ */ jsx42("div", { className: "mt-3 max-w-56 text-sm text-muted-foreground", children: contact })
|
|
3683
3686
|
] }),
|
|
3684
3687
|
columns.map((column) => /* @__PURE__ */ jsxs28("div", { children: [
|
|
3685
3688
|
/* @__PURE__ */ jsx42("h2", { className: "mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: column.title }),
|
|
@@ -4348,6 +4351,13 @@ Pagination.displayName = "Pagination";
|
|
|
4348
4351
|
|
|
4349
4352
|
// src/components/data-table/DataTable.tsx
|
|
4350
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
|
+
};
|
|
4351
4361
|
function compareValues(a, b) {
|
|
4352
4362
|
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
4353
4363
|
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
@@ -4382,6 +4392,7 @@ function DataTable({
|
|
|
4382
4392
|
stickyHeader,
|
|
4383
4393
|
density = "default",
|
|
4384
4394
|
zebra,
|
|
4395
|
+
cardLayout,
|
|
4385
4396
|
loading,
|
|
4386
4397
|
loadingRows,
|
|
4387
4398
|
className
|
|
@@ -4455,134 +4466,203 @@ function DataTable({
|
|
|
4455
4466
|
if (typeof raw === "string" || typeof raw === "number") return raw;
|
|
4456
4467
|
return String(raw);
|
|
4457
4468
|
};
|
|
4469
|
+
const cardBreakpoint = typeof cardLayout === "string" ? cardLayout : cardLayout ? "md" : null;
|
|
4470
|
+
const cardClasses = cardBreakpoint ? cardBreakpointClasses[cardBreakpoint] : null;
|
|
4458
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
|
+
};
|
|
4459
4487
|
return /* @__PURE__ */ jsxs32("div", { className: cn("w-full space-y-3", className), children: [
|
|
4460
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: [
|
|
4461
4489
|
/* @__PURE__ */ jsx47("span", { className: "font-medium", children: selectedLabel.replace("{count}", String(selectedIds.length)) }),
|
|
4462
4490
|
/* @__PURE__ */ jsx47("div", { className: "flex flex-wrap items-center gap-2", children: bulkActions })
|
|
4463
4491
|
] }),
|
|
4464
|
-
/* @__PURE__ */ jsx47(
|
|
4465
|
-
"
|
|
4492
|
+
/* @__PURE__ */ jsx47(
|
|
4493
|
+
"div",
|
|
4466
4494
|
{
|
|
4467
|
-
className: cn("w-full
|
|
4468
|
-
children:
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
{
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
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",
|
|
4487
4552
|
{
|
|
4488
|
-
|
|
4489
|
-
"
|
|
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,
|
|
4490
4568
|
className: cn(
|
|
4491
|
-
"border-b border-border
|
|
4492
|
-
|
|
4493
|
-
|
|
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"
|
|
4494
4572
|
),
|
|
4495
|
-
children:
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
type: "button",
|
|
4499
|
-
onClick: () => applySort(column.key),
|
|
4500
|
-
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",
|
|
4501
|
-
children: [
|
|
4502
|
-
column.header,
|
|
4503
|
-
/* @__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" })
|
|
4504
|
-
]
|
|
4505
|
-
}
|
|
4506
|
-
) : column.header
|
|
4507
|
-
},
|
|
4508
|
-
column.key
|
|
4509
|
-
);
|
|
4510
|
-
})
|
|
4511
|
-
] }) }),
|
|
4512
|
-
/* @__PURE__ */ jsx47("tbody", { "aria-busy": loading || void 0, children: loading ? Array.from(
|
|
4513
|
-
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
4514
|
-
(_, skeletonRow) => /* @__PURE__ */ jsxs32("tr", { children: [
|
|
4515
|
-
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" }) }),
|
|
4516
|
-
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))
|
|
4517
|
-
] }, `skeleton-${skeletonRow}`)
|
|
4518
|
-
) : visible.length === 0 ? /* @__PURE__ */ jsx47("tr", { children: /* @__PURE__ */ jsx47(
|
|
4519
|
-
"td",
|
|
4520
|
-
{
|
|
4521
|
-
colSpan: columns.length + (selectionEnabled ? 1 : 0),
|
|
4522
|
-
className: "px-3 py-8 text-center text-sm text-muted-foreground",
|
|
4523
|
-
children: emptyMessage
|
|
4524
|
-
}
|
|
4525
|
-
) }) : visible.map((row, index) => /* @__PURE__ */ jsxs32(
|
|
4526
|
-
"tr",
|
|
4527
|
-
{
|
|
4528
|
-
tabIndex: onRowClick ? 0 : void 0,
|
|
4529
|
-
onClick: onRowClick ? () => onRowClick(row) : void 0,
|
|
4530
|
-
onKeyDown: onRowClick ? (event) => {
|
|
4531
|
-
if (event.key === "Enter" || event.key === " ") {
|
|
4532
|
-
event.preventDefault();
|
|
4533
|
-
onRowClick(row);
|
|
4534
|
-
}
|
|
4535
|
-
} : void 0,
|
|
4536
|
-
className: cn(
|
|
4537
|
-
"border-b border-border last:border-0",
|
|
4538
|
-
zebra && "[&:nth-child(odd)]:bg-muted/30",
|
|
4539
|
-
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"
|
|
4540
|
-
),
|
|
4541
|
-
children: [
|
|
4542
|
-
selectionEnabled && /* @__PURE__ */ jsx47(
|
|
4543
|
-
"td",
|
|
4544
|
-
{
|
|
4545
|
-
className: cn("align-middle", density === "compact" ? "px-2 py-1" : "px-3 py-2"),
|
|
4546
|
-
onClick: (event) => event.stopPropagation(),
|
|
4547
|
-
children: /* @__PURE__ */ jsx47(
|
|
4548
|
-
Checkbox,
|
|
4573
|
+
children: [
|
|
4574
|
+
selectionEnabled && /* @__PURE__ */ jsx47(
|
|
4575
|
+
"td",
|
|
4549
4576
|
{
|
|
4550
|
-
"
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
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
|
+
)
|
|
4554
4588
|
}
|
|
4555
|
-
)
|
|
4556
|
-
}
|
|
4557
|
-
),
|
|
4558
|
-
columns.map((column) => /* @__PURE__ */ jsx47(
|
|
4559
|
-
"td",
|
|
4560
|
-
{
|
|
4561
|
-
className: cn(
|
|
4562
|
-
"align-middle",
|
|
4563
|
-
density === "compact" ? "px-2 py-1" : "px-3 py-2",
|
|
4564
|
-
alignClass(column.align),
|
|
4565
|
-
column.className
|
|
4566
4589
|
),
|
|
4567
|
-
|
|
4568
|
-
"
|
|
4590
|
+
columns.map((column) => /* @__PURE__ */ jsx47(
|
|
4591
|
+
"td",
|
|
4569
4592
|
{
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
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)) })
|
|
4583
4663
|
]
|
|
4584
4664
|
}
|
|
4585
|
-
) }),
|
|
4665
|
+
) }, rowId(row))) }),
|
|
4586
4666
|
pageSize && pageCount > 1 && /* @__PURE__ */ jsxs32("div", { className: "flex flex-wrap items-center justify-between gap-x-4 gap-y-2", children: [
|
|
4587
4667
|
/* @__PURE__ */ jsxs32(
|
|
4588
4668
|
"p",
|
|
@@ -4959,14 +5039,14 @@ var sizeClasses6 = {
|
|
|
4959
5039
|
lg: "text-3xl",
|
|
4960
5040
|
hero: "text-4xl sm:text-5xl lg:text-[3.4rem] lg:leading-[1.1]"
|
|
4961
5041
|
};
|
|
4962
|
-
var PageHeader = React54.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
5042
|
+
var PageHeader = React54.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", as: Heading2 = "h1", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
4963
5043
|
const supporting = description ?? subtitle;
|
|
4964
5044
|
return /* @__PURE__ */ jsxs36("div", { ref, className: cn("flex flex-col gap-2", align === "center" && "items-center text-center", className), ...props, children: [
|
|
4965
5045
|
breadcrumbs && /* @__PURE__ */ jsx55("div", { className: "text-sm text-muted-foreground", children: breadcrumbs }),
|
|
4966
5046
|
eyebrow && /* @__PURE__ */ jsx55("div", { className: cn("text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
4967
5047
|
/* @__PURE__ */ jsxs36("div", { className: cn("flex w-full flex-wrap items-start justify-between gap-3", align === "center" && "justify-center"), children: [
|
|
4968
5048
|
/* @__PURE__ */ jsxs36("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4969
|
-
/* @__PURE__ */ jsx55(
|
|
5049
|
+
/* @__PURE__ */ jsx55(Heading2, { className: cn("font-semibold tracking-tight", sizeClasses6[size], titleClassName), children: title }),
|
|
4970
5050
|
supporting && /* @__PURE__ */ jsx55("p", { className: cn("mt-2 max-w-2xl text-base text-muted-foreground", descriptionClassName), children: supporting })
|
|
4971
5051
|
] }),
|
|
4972
5052
|
actions && /* @__PURE__ */ jsx55("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
@@ -5243,9 +5323,50 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5243
5323
|
);
|
|
5244
5324
|
});
|
|
5245
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
|
+
|
|
5246
5367
|
// src/components/date-picker/DatePicker.tsx
|
|
5247
5368
|
import * as React60 from "react";
|
|
5248
|
-
import { jsx as
|
|
5369
|
+
import { jsx as jsx62, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
5249
5370
|
var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
5250
5371
|
const [internal, setInternal] = React60.useState(defaultValue ?? "");
|
|
5251
5372
|
const current = value ?? internal;
|
|
@@ -5253,8 +5374,8 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5253
5374
|
if (value === void 0) setInternal(next);
|
|
5254
5375
|
onValueChange?.(next);
|
|
5255
5376
|
};
|
|
5256
|
-
return /* @__PURE__ */
|
|
5257
|
-
/* @__PURE__ */
|
|
5377
|
+
return /* @__PURE__ */ jsxs43("div", { className: cn("relative flex items-center", className), children: [
|
|
5378
|
+
/* @__PURE__ */ jsx62(
|
|
5258
5379
|
Input,
|
|
5259
5380
|
{
|
|
5260
5381
|
ref,
|
|
@@ -5268,7 +5389,7 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5268
5389
|
...props
|
|
5269
5390
|
}
|
|
5270
5391
|
),
|
|
5271
|
-
clearable && current && /* @__PURE__ */
|
|
5392
|
+
clearable && current && /* @__PURE__ */ jsx62(
|
|
5272
5393
|
"button",
|
|
5273
5394
|
{
|
|
5274
5395
|
type: "button",
|
|
@@ -5354,7 +5475,7 @@ function computePosition({
|
|
|
5354
5475
|
}
|
|
5355
5476
|
|
|
5356
5477
|
// src/components/popover/Popover.tsx
|
|
5357
|
-
import { jsx as
|
|
5478
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
5358
5479
|
var PopoverContext = React61.createContext({
|
|
5359
5480
|
open: false,
|
|
5360
5481
|
setOpen: () => {
|
|
@@ -5389,7 +5510,7 @@ var Popover = React61.forwardRef(
|
|
|
5389
5510
|
},
|
|
5390
5511
|
[open, onOpenChange]
|
|
5391
5512
|
);
|
|
5392
|
-
return /* @__PURE__ */
|
|
5513
|
+
return /* @__PURE__ */ jsx63("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx63(
|
|
5393
5514
|
PopoverContext.Provider,
|
|
5394
5515
|
{
|
|
5395
5516
|
value: { open: current, setOpen, triggerId, contentId, wrapperRef, anchorRef, triggerRef },
|
|
@@ -5410,7 +5531,7 @@ var PopoverTrigger = React61.forwardRef(
|
|
|
5410
5531
|
},
|
|
5411
5532
|
[ref, triggerRef]
|
|
5412
5533
|
);
|
|
5413
|
-
return /* @__PURE__ */
|
|
5534
|
+
return /* @__PURE__ */ jsx63(
|
|
5414
5535
|
"button",
|
|
5415
5536
|
{
|
|
5416
5537
|
ref: setRefs,
|
|
@@ -5446,7 +5567,7 @@ var PopoverAnchor = React61.forwardRef(
|
|
|
5446
5567
|
},
|
|
5447
5568
|
[anchorRef, ref]
|
|
5448
5569
|
);
|
|
5449
|
-
return /* @__PURE__ */
|
|
5570
|
+
return /* @__PURE__ */ jsx63("span", { ref: setRefs, className: cn("inline-block", className), ...props, children });
|
|
5450
5571
|
}
|
|
5451
5572
|
);
|
|
5452
5573
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
@@ -5546,7 +5667,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5546
5667
|
}, [open, pos]);
|
|
5547
5668
|
if (!open || typeof document === "undefined") return null;
|
|
5548
5669
|
return createPortal7(
|
|
5549
|
-
/* @__PURE__ */
|
|
5670
|
+
/* @__PURE__ */ jsx63(
|
|
5550
5671
|
"div",
|
|
5551
5672
|
{
|
|
5552
5673
|
ref: (node) => {
|
|
@@ -5591,7 +5712,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5591
5712
|
PopoverContent.displayName = "PopoverContent";
|
|
5592
5713
|
|
|
5593
5714
|
// src/components/date-picker-popover/DatePickerPopover.tsx
|
|
5594
|
-
import { Fragment as Fragment12, jsx as
|
|
5715
|
+
import { Fragment as Fragment12, jsx as jsx64, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
5595
5716
|
var DatePickerPopover = React62.forwardRef(
|
|
5596
5717
|
({
|
|
5597
5718
|
value,
|
|
@@ -5624,9 +5745,9 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5624
5745
|
[ref]
|
|
5625
5746
|
);
|
|
5626
5747
|
const label = value ? formatDateLabel(value, locale) : placeholder;
|
|
5627
|
-
return /* @__PURE__ */
|
|
5628
|
-
/* @__PURE__ */
|
|
5629
|
-
/* @__PURE__ */
|
|
5748
|
+
return /* @__PURE__ */ jsxs44(Fragment12, { children: [
|
|
5749
|
+
/* @__PURE__ */ jsxs44(Popover, { open, onOpenChange: setOpen, children: [
|
|
5750
|
+
/* @__PURE__ */ jsx64(
|
|
5630
5751
|
PopoverTrigger,
|
|
5631
5752
|
{
|
|
5632
5753
|
ref: setTriggerRef,
|
|
@@ -5644,7 +5765,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5644
5765
|
children: label
|
|
5645
5766
|
}
|
|
5646
5767
|
),
|
|
5647
|
-
/* @__PURE__ */
|
|
5768
|
+
/* @__PURE__ */ jsx64(PopoverContent, { side, align, matchTriggerWidth: true, className: "w-auto p-3", children: /* @__PURE__ */ jsx64(
|
|
5648
5769
|
Calendar,
|
|
5649
5770
|
{
|
|
5650
5771
|
value,
|
|
@@ -5662,7 +5783,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5662
5783
|
}
|
|
5663
5784
|
) })
|
|
5664
5785
|
] }),
|
|
5665
|
-
name ? /* @__PURE__ */
|
|
5786
|
+
name ? /* @__PURE__ */ jsx64("input", { type: "hidden", name, value: value ?? "", required }) : null
|
|
5666
5787
|
] });
|
|
5667
5788
|
}
|
|
5668
5789
|
);
|
|
@@ -5670,7 +5791,7 @@ DatePickerPopover.displayName = "DatePickerPopover";
|
|
|
5670
5791
|
|
|
5671
5792
|
// src/components/time-picker/TimePicker.tsx
|
|
5672
5793
|
import * as React63 from "react";
|
|
5673
|
-
import { jsx as
|
|
5794
|
+
import { jsx as jsx65, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
5674
5795
|
var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
5675
5796
|
const [internal, setInternal] = React63.useState(defaultValue ?? "");
|
|
5676
5797
|
const current = value ?? internal;
|
|
@@ -5678,8 +5799,8 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5678
5799
|
if (value === void 0) setInternal(next);
|
|
5679
5800
|
onValueChange?.(next);
|
|
5680
5801
|
};
|
|
5681
|
-
return /* @__PURE__ */
|
|
5682
|
-
/* @__PURE__ */
|
|
5802
|
+
return /* @__PURE__ */ jsxs45("div", { className: cn("relative flex items-center", className), children: [
|
|
5803
|
+
/* @__PURE__ */ jsx65(
|
|
5683
5804
|
Input,
|
|
5684
5805
|
{
|
|
5685
5806
|
ref,
|
|
@@ -5693,7 +5814,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5693
5814
|
...props
|
|
5694
5815
|
}
|
|
5695
5816
|
),
|
|
5696
|
-
clearable && current && /* @__PURE__ */
|
|
5817
|
+
clearable && current && /* @__PURE__ */ jsx65(
|
|
5697
5818
|
"button",
|
|
5698
5819
|
{
|
|
5699
5820
|
type: "button",
|
|
@@ -5708,7 +5829,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5708
5829
|
|
|
5709
5830
|
// src/components/stepper/Stepper.tsx
|
|
5710
5831
|
import * as React64 from "react";
|
|
5711
|
-
import { Fragment as Fragment13, jsx as
|
|
5832
|
+
import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
5712
5833
|
var Stepper = React64.forwardRef(function Stepper2({
|
|
5713
5834
|
steps,
|
|
5714
5835
|
current,
|
|
@@ -5732,7 +5853,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5732
5853
|
const verticalTitlePad = size === "sm" ? "pt-0.5" : "pt-1";
|
|
5733
5854
|
const connectorTop = variant === "dots" ? size === "sm" ? "mt-1" : "mt-[5px]" : size === "sm" ? "mt-3" : "mt-3.5";
|
|
5734
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";
|
|
5735
|
-
return /* @__PURE__ */
|
|
5856
|
+
return /* @__PURE__ */ jsx66(
|
|
5736
5857
|
"ol",
|
|
5737
5858
|
{
|
|
5738
5859
|
ref,
|
|
@@ -5746,7 +5867,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5746
5867
|
const isLast = index === steps.length - 1;
|
|
5747
5868
|
const titleCentered = alignTitles === "center" && !step.description;
|
|
5748
5869
|
const below = !vertical && labelPlacement === "below";
|
|
5749
|
-
const marker = /* @__PURE__ */
|
|
5870
|
+
const marker = /* @__PURE__ */ jsx66(
|
|
5750
5871
|
"span",
|
|
5751
5872
|
{
|
|
5752
5873
|
"aria-hidden": "true",
|
|
@@ -5768,8 +5889,8 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5768
5889
|
children: variant === "numbered" ? state === "complete" ? "\u2713" : index + 1 : null
|
|
5769
5890
|
}
|
|
5770
5891
|
);
|
|
5771
|
-
const label = /* @__PURE__ */
|
|
5772
|
-
/* @__PURE__ */
|
|
5892
|
+
const label = /* @__PURE__ */ jsxs46("span", { className: "min-w-0", children: [
|
|
5893
|
+
/* @__PURE__ */ jsx66(
|
|
5773
5894
|
"span",
|
|
5774
5895
|
{
|
|
5775
5896
|
className: cn(
|
|
@@ -5781,7 +5902,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5781
5902
|
children: step.label
|
|
5782
5903
|
}
|
|
5783
5904
|
),
|
|
5784
|
-
step.description && /* @__PURE__ */
|
|
5905
|
+
step.description && /* @__PURE__ */ jsx66(
|
|
5785
5906
|
"span",
|
|
5786
5907
|
{
|
|
5787
5908
|
className: cn(
|
|
@@ -5792,9 +5913,9 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5792
5913
|
children: step.description
|
|
5793
5914
|
}
|
|
5794
5915
|
),
|
|
5795
|
-
/* @__PURE__ */
|
|
5916
|
+
/* @__PURE__ */ jsx66("span", { className: "sr-only", children: state === "complete" ? labels?.completed ?? " (completed)" : state === "current" ? labels?.current ?? " (current step)" : labels?.upcoming ?? " (upcoming)" })
|
|
5796
5917
|
] });
|
|
5797
|
-
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */
|
|
5918
|
+
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ jsx66(
|
|
5798
5919
|
"button",
|
|
5799
5920
|
{
|
|
5800
5921
|
type: "button",
|
|
@@ -5803,29 +5924,29 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5803
5924
|
className: cn(rowClassName, focusClass),
|
|
5804
5925
|
children
|
|
5805
5926
|
}
|
|
5806
|
-
) : /* @__PURE__ */
|
|
5927
|
+
) : /* @__PURE__ */ jsx66("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
5807
5928
|
if (vertical) {
|
|
5808
|
-
return /* @__PURE__ */
|
|
5809
|
-
/* @__PURE__ */
|
|
5810
|
-
/* @__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: [
|
|
5811
5932
|
marker,
|
|
5812
|
-
!isLast && /* @__PURE__ */
|
|
5933
|
+
!isLast && /* @__PURE__ */ jsx66("span", { "aria-hidden": "true", className: "my-1 w-px flex-1 rounded-full bg-border" })
|
|
5813
5934
|
] }),
|
|
5814
|
-
/* @__PURE__ */
|
|
5935
|
+
/* @__PURE__ */ jsx66("div", { className: cn("min-w-0 pb-6", titleCentered && verticalTitlePad), children: label })
|
|
5815
5936
|
] }),
|
|
5816
5937
|
"flex w-full items-stretch gap-3 text-left"
|
|
5817
5938
|
) }, step.label);
|
|
5818
5939
|
}
|
|
5819
5940
|
if (below) {
|
|
5820
|
-
return /* @__PURE__ */
|
|
5941
|
+
return /* @__PURE__ */ jsxs46("li", { className: "flex min-w-0 flex-1 items-start gap-2", children: [
|
|
5821
5942
|
renderRow(
|
|
5822
|
-
/* @__PURE__ */
|
|
5943
|
+
/* @__PURE__ */ jsxs46(Fragment13, { children: [
|
|
5823
5944
|
marker,
|
|
5824
5945
|
label
|
|
5825
5946
|
] }),
|
|
5826
5947
|
"flex min-w-0 flex-1 flex-col items-center gap-2 text-center"
|
|
5827
5948
|
),
|
|
5828
|
-
!isLast && /* @__PURE__ */
|
|
5949
|
+
!isLast && /* @__PURE__ */ jsx66(
|
|
5829
5950
|
"span",
|
|
5830
5951
|
{
|
|
5831
5952
|
"aria-hidden": "true",
|
|
@@ -5834,15 +5955,15 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5834
5955
|
)
|
|
5835
5956
|
] }, step.label);
|
|
5836
5957
|
}
|
|
5837
|
-
return /* @__PURE__ */
|
|
5958
|
+
return /* @__PURE__ */ jsxs46("li", { className: "flex min-w-0 items-start gap-2", children: [
|
|
5838
5959
|
renderRow(
|
|
5839
|
-
/* @__PURE__ */
|
|
5960
|
+
/* @__PURE__ */ jsxs46(Fragment13, { children: [
|
|
5840
5961
|
marker,
|
|
5841
5962
|
label
|
|
5842
5963
|
] }),
|
|
5843
5964
|
cn("flex min-w-0 text-left", gapClass, titleCentered ? "items-center" : "items-start")
|
|
5844
5965
|
),
|
|
5845
|
-
!isLast && /* @__PURE__ */
|
|
5966
|
+
!isLast && /* @__PURE__ */ jsx66(
|
|
5846
5967
|
"span",
|
|
5847
5968
|
{
|
|
5848
5969
|
"aria-hidden": "true",
|
|
@@ -5857,7 +5978,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5857
5978
|
|
|
5858
5979
|
// src/components/file-upload/FileUpload.tsx
|
|
5859
5980
|
import * as React65 from "react";
|
|
5860
|
-
import { jsx as
|
|
5981
|
+
import { jsx as jsx67, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
5861
5982
|
function formatSize(bytes) {
|
|
5862
5983
|
if (bytes < 1024) return `${bytes} B`;
|
|
5863
5984
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -5904,8 +6025,8 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5904
6025
|
const list = Array.from(incoming);
|
|
5905
6026
|
commit(multiple ? [...current, ...list] : list.slice(0, 1));
|
|
5906
6027
|
};
|
|
5907
|
-
return /* @__PURE__ */
|
|
5908
|
-
/* @__PURE__ */
|
|
6028
|
+
return /* @__PURE__ */ jsxs47("div", { className: cn("flex flex-col gap-3", className), children: [
|
|
6029
|
+
/* @__PURE__ */ jsxs47(
|
|
5909
6030
|
"div",
|
|
5910
6031
|
{
|
|
5911
6032
|
onDragOver: (event) => {
|
|
@@ -5926,9 +6047,9 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5926
6047
|
disabled && "opacity-50"
|
|
5927
6048
|
),
|
|
5928
6049
|
children: [
|
|
5929
|
-
/* @__PURE__ */
|
|
6050
|
+
/* @__PURE__ */ jsxs47("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
5930
6051
|
label,
|
|
5931
|
-
/* @__PURE__ */
|
|
6052
|
+
/* @__PURE__ */ jsx67(
|
|
5932
6053
|
"input",
|
|
5933
6054
|
{
|
|
5934
6055
|
ref,
|
|
@@ -5946,15 +6067,15 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5946
6067
|
}
|
|
5947
6068
|
)
|
|
5948
6069
|
] }),
|
|
5949
|
-
/* @__PURE__ */
|
|
6070
|
+
/* @__PURE__ */ jsx67("p", { className: "mt-1 text-xs text-muted-foreground", children: hint ?? (accept ? `Accepted: ${accept}` : "Any file type") })
|
|
5950
6071
|
]
|
|
5951
6072
|
}
|
|
5952
6073
|
),
|
|
5953
|
-
current.length > 0 && /* @__PURE__ */
|
|
5954
|
-
/* @__PURE__ */
|
|
5955
|
-
/* @__PURE__ */
|
|
5956
|
-
/* @__PURE__ */
|
|
5957
|
-
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(
|
|
5958
6079
|
"div",
|
|
5959
6080
|
{
|
|
5960
6081
|
role: "progressbar",
|
|
@@ -5963,11 +6084,11 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5963
6084
|
"aria-valuemax": 100,
|
|
5964
6085
|
"aria-label": uploadingLabel(file),
|
|
5965
6086
|
className: "mt-1 h-1.5 w-40 overflow-hidden rounded-full bg-muted",
|
|
5966
|
-
children: /* @__PURE__ */
|
|
6087
|
+
children: /* @__PURE__ */ jsx67("div", { className: "h-full bg-primary", style: { width: `${progress[file.name]}%` } })
|
|
5967
6088
|
}
|
|
5968
6089
|
)
|
|
5969
6090
|
] }),
|
|
5970
|
-
/* @__PURE__ */
|
|
6091
|
+
/* @__PURE__ */ jsx67(
|
|
5971
6092
|
"button",
|
|
5972
6093
|
{
|
|
5973
6094
|
type: "button",
|
|
@@ -5983,17 +6104,17 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5983
6104
|
|
|
5984
6105
|
// src/components/timeline/Timeline.tsx
|
|
5985
6106
|
import * as React66 from "react";
|
|
5986
|
-
import { jsx as
|
|
6107
|
+
import { jsx as jsx68, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
5987
6108
|
var Timeline = React66.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
5988
|
-
return /* @__PURE__ */
|
|
5989
|
-
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(
|
|
5990
6111
|
"span",
|
|
5991
6112
|
{
|
|
5992
6113
|
"aria-hidden": "true",
|
|
5993
6114
|
className: "absolute left-[5.5px] top-4 -bottom-7 w-px bg-border"
|
|
5994
6115
|
}
|
|
5995
6116
|
),
|
|
5996
|
-
/* @__PURE__ */
|
|
6117
|
+
/* @__PURE__ */ jsx68("div", { className: "relative z-10 flex flex-col items-center", children: /* @__PURE__ */ jsx68(
|
|
5997
6118
|
"span",
|
|
5998
6119
|
{
|
|
5999
6120
|
"aria-hidden": "true",
|
|
@@ -6003,22 +6124,22 @@ var Timeline = React66.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
6003
6124
|
)
|
|
6004
6125
|
}
|
|
6005
6126
|
) }),
|
|
6006
|
-
/* @__PURE__ */
|
|
6007
|
-
item.period && /* @__PURE__ */
|
|
6008
|
-
/* @__PURE__ */
|
|
6009
|
-
item.description && /* @__PURE__ */
|
|
6010
|
-
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 })
|
|
6011
6132
|
] })
|
|
6012
6133
|
] }, `${item.title}-${index}`)) });
|
|
6013
6134
|
});
|
|
6014
6135
|
|
|
6015
6136
|
// src/components/block/Block.tsx
|
|
6016
6137
|
import * as React67 from "react";
|
|
6017
|
-
import { jsx as
|
|
6138
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
6018
6139
|
var Block = React67.forwardRef(
|
|
6019
6140
|
({ as = "div", inline, muted, className, ...props }, ref) => {
|
|
6020
6141
|
const Tag = inline ? "span" : as;
|
|
6021
|
-
return /* @__PURE__ */
|
|
6142
|
+
return /* @__PURE__ */ jsx69(
|
|
6022
6143
|
Tag,
|
|
6023
6144
|
{
|
|
6024
6145
|
ref,
|
|
@@ -6032,7 +6153,7 @@ Block.displayName = "Block";
|
|
|
6032
6153
|
|
|
6033
6154
|
// src/components/flex/Flex.tsx
|
|
6034
6155
|
import * as React68 from "react";
|
|
6035
|
-
import { jsx as
|
|
6156
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
6036
6157
|
var justifyClasses = {
|
|
6037
6158
|
start: "justify-start",
|
|
6038
6159
|
center: "justify-center",
|
|
@@ -6041,7 +6162,7 @@ var justifyClasses = {
|
|
|
6041
6162
|
around: "justify-around",
|
|
6042
6163
|
evenly: "justify-evenly"
|
|
6043
6164
|
};
|
|
6044
|
-
var
|
|
6165
|
+
var alignClasses2 = {
|
|
6045
6166
|
start: "items-start",
|
|
6046
6167
|
center: "items-center",
|
|
6047
6168
|
end: "items-end",
|
|
@@ -6052,7 +6173,7 @@ var Flex = React68.forwardRef(
|
|
|
6052
6173
|
({ direction = "row", align, justify, wrap, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6053
6174
|
const Tag = as;
|
|
6054
6175
|
const gapResolved = resolveGap(gap);
|
|
6055
|
-
return /* @__PURE__ */
|
|
6176
|
+
return /* @__PURE__ */ jsx70(
|
|
6056
6177
|
Tag,
|
|
6057
6178
|
{
|
|
6058
6179
|
ref,
|
|
@@ -6060,7 +6181,7 @@ var Flex = React68.forwardRef(
|
|
|
6060
6181
|
"flex min-w-0",
|
|
6061
6182
|
direction === "column" ? "flex-col" : "flex-row",
|
|
6062
6183
|
wrap && "flex-wrap",
|
|
6063
|
-
align &&
|
|
6184
|
+
align && alignClasses2[align],
|
|
6064
6185
|
justify && justifyClasses[justify],
|
|
6065
6186
|
gapResolved.className,
|
|
6066
6187
|
className
|
|
@@ -6087,7 +6208,7 @@ var FlexItem = React68.forwardRef(
|
|
|
6087
6208
|
...shrink === false ? { flexShrink: 0 } : typeof shrink === "string" && shrink ? { flexShrink: Number(shrink) || shrink } : {},
|
|
6088
6209
|
...basis ? { flexBasis: basis } : {}
|
|
6089
6210
|
};
|
|
6090
|
-
return /* @__PURE__ */
|
|
6211
|
+
return /* @__PURE__ */ jsx70(
|
|
6091
6212
|
Tag,
|
|
6092
6213
|
{
|
|
6093
6214
|
ref,
|
|
@@ -6102,7 +6223,7 @@ FlexItem.displayName = "FlexItem";
|
|
|
6102
6223
|
|
|
6103
6224
|
// src/components/grid/Grid.tsx
|
|
6104
6225
|
import * as React69 from "react";
|
|
6105
|
-
import { jsx as
|
|
6226
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
6106
6227
|
var BASE_COLS = {
|
|
6107
6228
|
1: "grid-cols-1",
|
|
6108
6229
|
2: "grid-cols-2",
|
|
@@ -6171,7 +6292,7 @@ var Grid = React69.forwardRef(
|
|
|
6171
6292
|
({ cols, smCols, mdCols, lgCols, minCol, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6172
6293
|
const Tag = as;
|
|
6173
6294
|
const gapResolved = resolveGap(gap);
|
|
6174
|
-
return /* @__PURE__ */
|
|
6295
|
+
return /* @__PURE__ */ jsx71(
|
|
6175
6296
|
Tag,
|
|
6176
6297
|
{
|
|
6177
6298
|
ref,
|
|
@@ -6198,7 +6319,7 @@ Grid.displayName = "Grid";
|
|
|
6198
6319
|
var GridItem = React69.forwardRef(
|
|
6199
6320
|
({ span, smSpan, mdSpan, lgSpan, as = "div", className, ...props }, ref) => {
|
|
6200
6321
|
const Tag = as;
|
|
6201
|
-
return /* @__PURE__ */
|
|
6322
|
+
return /* @__PURE__ */ jsx71(
|
|
6202
6323
|
Tag,
|
|
6203
6324
|
{
|
|
6204
6325
|
ref,
|
|
@@ -6218,7 +6339,7 @@ GridItem.displayName = "GridItem";
|
|
|
6218
6339
|
|
|
6219
6340
|
// src/components/container/Container.tsx
|
|
6220
6341
|
import * as React70 from "react";
|
|
6221
|
-
import { jsx as
|
|
6342
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
6222
6343
|
var widthClasses = {
|
|
6223
6344
|
sm: "max-w-3xl",
|
|
6224
6345
|
md: "max-w-5xl",
|
|
@@ -6234,7 +6355,7 @@ var paddingClasses = {
|
|
|
6234
6355
|
};
|
|
6235
6356
|
var Container = React70.forwardRef(function Container2({ width = "lg", padding = "md", as = "div", className, ...props }, ref) {
|
|
6236
6357
|
const Tag = as;
|
|
6237
|
-
return /* @__PURE__ */
|
|
6358
|
+
return /* @__PURE__ */ jsx72(
|
|
6238
6359
|
Tag,
|
|
6239
6360
|
{
|
|
6240
6361
|
ref,
|
|
@@ -6246,7 +6367,7 @@ var Container = React70.forwardRef(function Container2({ width = "lg", padding =
|
|
|
6246
6367
|
|
|
6247
6368
|
// src/components/section/Section.tsx
|
|
6248
6369
|
import * as React71 from "react";
|
|
6249
|
-
import { jsx as
|
|
6370
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
6250
6371
|
var toneClasses2 = {
|
|
6251
6372
|
default: "bg-background text-foreground",
|
|
6252
6373
|
muted: "bg-muted/40 text-foreground",
|
|
@@ -6300,7 +6421,7 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6300
6421
|
}, ref) {
|
|
6301
6422
|
const Tag = as;
|
|
6302
6423
|
const toneStyle = tone === "inverse" ? inverseVars : tone === "brand" ? brandVars : void 0;
|
|
6303
|
-
return /* @__PURE__ */
|
|
6424
|
+
return /* @__PURE__ */ jsx73(
|
|
6304
6425
|
Tag,
|
|
6305
6426
|
{
|
|
6306
6427
|
ref,
|
|
@@ -6308,14 +6429,14 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6308
6429
|
className: cn("w-full", toneClasses2[tone], paddingClasses2[padding], className),
|
|
6309
6430
|
style: { ...toneStyle, ...style },
|
|
6310
6431
|
...props,
|
|
6311
|
-
children: container ? /* @__PURE__ */
|
|
6432
|
+
children: container ? /* @__PURE__ */ jsx73(Container, { width, className: containerClassName, children }) : children
|
|
6312
6433
|
}
|
|
6313
6434
|
);
|
|
6314
6435
|
});
|
|
6315
6436
|
|
|
6316
6437
|
// src/components/hero/Hero.tsx
|
|
6317
6438
|
import * as React72 from "react";
|
|
6318
|
-
import { jsx as
|
|
6439
|
+
import { jsx as jsx74, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
6319
6440
|
var titleSizes = {
|
|
6320
6441
|
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
6321
6442
|
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
@@ -6346,7 +6467,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6346
6467
|
const Heading2 = `h${level}`;
|
|
6347
6468
|
const centered = layout === "centered" || align === "center";
|
|
6348
6469
|
const overlay = layout === "overlay";
|
|
6349
|
-
const copy = /* @__PURE__ */
|
|
6470
|
+
const copy = /* @__PURE__ */ jsxs49(
|
|
6350
6471
|
"div",
|
|
6351
6472
|
{
|
|
6352
6473
|
className: cn(
|
|
@@ -6355,7 +6476,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6355
6476
|
overlay && "max-w-2xl"
|
|
6356
6477
|
),
|
|
6357
6478
|
children: [
|
|
6358
|
-
badge && /* @__PURE__ */
|
|
6479
|
+
badge && /* @__PURE__ */ jsx74(
|
|
6359
6480
|
"div",
|
|
6360
6481
|
{
|
|
6361
6482
|
className: cn(
|
|
@@ -6366,7 +6487,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6366
6487
|
children: badge
|
|
6367
6488
|
}
|
|
6368
6489
|
),
|
|
6369
|
-
eyebrow && /* @__PURE__ */
|
|
6490
|
+
eyebrow && /* @__PURE__ */ jsx74(
|
|
6370
6491
|
"p",
|
|
6371
6492
|
{
|
|
6372
6493
|
className: cn(
|
|
@@ -6377,7 +6498,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6377
6498
|
children: eyebrow
|
|
6378
6499
|
}
|
|
6379
6500
|
),
|
|
6380
|
-
/* @__PURE__ */
|
|
6501
|
+
/* @__PURE__ */ jsx74(
|
|
6381
6502
|
Heading2,
|
|
6382
6503
|
{
|
|
6383
6504
|
className: cn(
|
|
@@ -6389,7 +6510,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6389
6510
|
children: title
|
|
6390
6511
|
}
|
|
6391
6512
|
),
|
|
6392
|
-
description && /* @__PURE__ */
|
|
6513
|
+
description && /* @__PURE__ */ jsx74(
|
|
6393
6514
|
"p",
|
|
6394
6515
|
{
|
|
6395
6516
|
className: cn(
|
|
@@ -6401,7 +6522,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6401
6522
|
children: description
|
|
6402
6523
|
}
|
|
6403
6524
|
),
|
|
6404
|
-
actions && /* @__PURE__ */
|
|
6525
|
+
actions && /* @__PURE__ */ jsx74(
|
|
6405
6526
|
"div",
|
|
6406
6527
|
{
|
|
6407
6528
|
className: cn(
|
|
@@ -6415,7 +6536,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6415
6536
|
}
|
|
6416
6537
|
);
|
|
6417
6538
|
if (overlay) {
|
|
6418
|
-
return /* @__PURE__ */
|
|
6539
|
+
return /* @__PURE__ */ jsxs49(
|
|
6419
6540
|
Tag,
|
|
6420
6541
|
{
|
|
6421
6542
|
ref,
|
|
@@ -6425,7 +6546,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6425
6546
|
),
|
|
6426
6547
|
...props,
|
|
6427
6548
|
children: [
|
|
6428
|
-
media && /* @__PURE__ */
|
|
6549
|
+
media && /* @__PURE__ */ jsx74(
|
|
6429
6550
|
"div",
|
|
6430
6551
|
{
|
|
6431
6552
|
className: cn(
|
|
@@ -6435,20 +6556,20 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6435
6556
|
children: media
|
|
6436
6557
|
}
|
|
6437
6558
|
),
|
|
6438
|
-
/* @__PURE__ */
|
|
6439
|
-
/* @__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 })
|
|
6440
6561
|
]
|
|
6441
6562
|
}
|
|
6442
6563
|
);
|
|
6443
6564
|
}
|
|
6444
6565
|
if (layout === "centered") {
|
|
6445
|
-
return /* @__PURE__ */
|
|
6566
|
+
return /* @__PURE__ */ jsxs49(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
6446
6567
|
copy,
|
|
6447
|
-
media && /* @__PURE__ */
|
|
6568
|
+
media && /* @__PURE__ */ jsx74("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
6448
6569
|
] });
|
|
6449
6570
|
}
|
|
6450
6571
|
if (layout === "stacked") {
|
|
6451
|
-
return /* @__PURE__ */
|
|
6572
|
+
return /* @__PURE__ */ jsxs49(
|
|
6452
6573
|
Tag,
|
|
6453
6574
|
{
|
|
6454
6575
|
ref,
|
|
@@ -6456,20 +6577,20 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6456
6577
|
...props,
|
|
6457
6578
|
children: [
|
|
6458
6579
|
copy,
|
|
6459
|
-
media && /* @__PURE__ */
|
|
6580
|
+
media && /* @__PURE__ */ jsx74("div", { className: cn("min-w-0 w-full", mediaClassName), children: media })
|
|
6460
6581
|
]
|
|
6461
6582
|
}
|
|
6462
6583
|
);
|
|
6463
6584
|
}
|
|
6464
|
-
return /* @__PURE__ */
|
|
6585
|
+
return /* @__PURE__ */ jsxs49(
|
|
6465
6586
|
Tag,
|
|
6466
6587
|
{
|
|
6467
6588
|
ref,
|
|
6468
6589
|
className: cn("grid w-full items-center gap-10 lg:grid-cols-2 lg:gap-16 xl:gap-20", className),
|
|
6469
6590
|
...props,
|
|
6470
6591
|
children: [
|
|
6471
|
-
/* @__PURE__ */
|
|
6472
|
-
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 })
|
|
6473
6594
|
]
|
|
6474
6595
|
}
|
|
6475
6596
|
);
|
|
@@ -6477,7 +6598,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6477
6598
|
|
|
6478
6599
|
// src/components/stat-band/StatBand.tsx
|
|
6479
6600
|
import * as React73 from "react";
|
|
6480
|
-
import { jsx as
|
|
6601
|
+
import { jsx as jsx75, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
6481
6602
|
var columnClasses = {
|
|
6482
6603
|
2: "sm:grid-cols-2",
|
|
6483
6604
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6505,7 +6626,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6505
6626
|
...props
|
|
6506
6627
|
}, ref) {
|
|
6507
6628
|
const panel = variant === "panel";
|
|
6508
|
-
return /* @__PURE__ */
|
|
6629
|
+
return /* @__PURE__ */ jsx75(
|
|
6509
6630
|
"dl",
|
|
6510
6631
|
{
|
|
6511
6632
|
ref,
|
|
@@ -6517,7 +6638,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6517
6638
|
className
|
|
6518
6639
|
),
|
|
6519
6640
|
...props,
|
|
6520
|
-
children: items.map((item) => /* @__PURE__ */
|
|
6641
|
+
children: items.map((item) => /* @__PURE__ */ jsxs50(
|
|
6521
6642
|
"div",
|
|
6522
6643
|
{
|
|
6523
6644
|
className: cn(
|
|
@@ -6526,7 +6647,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6526
6647
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6527
6648
|
),
|
|
6528
6649
|
children: [
|
|
6529
|
-
/* @__PURE__ */
|
|
6650
|
+
/* @__PURE__ */ jsxs50(
|
|
6530
6651
|
"dt",
|
|
6531
6652
|
{
|
|
6532
6653
|
className: cn(
|
|
@@ -6535,11 +6656,11 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6535
6656
|
),
|
|
6536
6657
|
children: [
|
|
6537
6658
|
item.label,
|
|
6538
|
-
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 })
|
|
6539
6660
|
]
|
|
6540
6661
|
}
|
|
6541
6662
|
),
|
|
6542
|
-
/* @__PURE__ */
|
|
6663
|
+
/* @__PURE__ */ jsx75(
|
|
6543
6664
|
"dd",
|
|
6544
6665
|
{
|
|
6545
6666
|
className: cn(
|
|
@@ -6560,7 +6681,7 @@ var StatBand = React73.forwardRef(function StatBand2({
|
|
|
6560
6681
|
|
|
6561
6682
|
// src/components/cta-section/CTASection.tsx
|
|
6562
6683
|
import * as React74 from "react";
|
|
6563
|
-
import { jsx as
|
|
6684
|
+
import { jsx as jsx76, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
6564
6685
|
var sizePadding = {
|
|
6565
6686
|
sm: "md",
|
|
6566
6687
|
md: "lg",
|
|
@@ -6578,7 +6699,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6578
6699
|
className,
|
|
6579
6700
|
...props
|
|
6580
6701
|
}, ref) {
|
|
6581
|
-
return /* @__PURE__ */
|
|
6702
|
+
return /* @__PURE__ */ jsx76(
|
|
6582
6703
|
Section,
|
|
6583
6704
|
{
|
|
6584
6705
|
ref,
|
|
@@ -6587,7 +6708,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6587
6708
|
width,
|
|
6588
6709
|
className,
|
|
6589
6710
|
...props,
|
|
6590
|
-
children: /* @__PURE__ */
|
|
6711
|
+
children: /* @__PURE__ */ jsxs51(
|
|
6591
6712
|
"div",
|
|
6592
6713
|
{
|
|
6593
6714
|
className: cn(
|
|
@@ -6595,10 +6716,10 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6595
6716
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6596
6717
|
),
|
|
6597
6718
|
children: [
|
|
6598
|
-
eyebrow && /* @__PURE__ */
|
|
6599
|
-
/* @__PURE__ */
|
|
6600
|
-
description && /* @__PURE__ */
|
|
6601
|
-
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 })
|
|
6602
6723
|
]
|
|
6603
6724
|
}
|
|
6604
6725
|
)
|
|
@@ -6608,9 +6729,9 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6608
6729
|
|
|
6609
6730
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
6610
6731
|
import * as React75 from "react";
|
|
6611
|
-
import { Fragment as Fragment14, jsx as
|
|
6732
|
+
import { Fragment as Fragment14, jsx as jsx77, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
6612
6733
|
function CheckMark() {
|
|
6613
|
-
return /* @__PURE__ */
|
|
6734
|
+
return /* @__PURE__ */ jsx77(
|
|
6614
6735
|
"svg",
|
|
6615
6736
|
{
|
|
6616
6737
|
"aria-hidden": "true",
|
|
@@ -6621,12 +6742,12 @@ function CheckMark() {
|
|
|
6621
6742
|
strokeLinecap: "round",
|
|
6622
6743
|
strokeLinejoin: "round",
|
|
6623
6744
|
className: "mx-auto h-5 w-5 text-success",
|
|
6624
|
-
children: /* @__PURE__ */
|
|
6745
|
+
children: /* @__PURE__ */ jsx77("path", { d: "m4 10.5 4 4 8-9" })
|
|
6625
6746
|
}
|
|
6626
6747
|
);
|
|
6627
6748
|
}
|
|
6628
6749
|
function DashMark() {
|
|
6629
|
-
return /* @__PURE__ */
|
|
6750
|
+
return /* @__PURE__ */ jsx77(
|
|
6630
6751
|
"svg",
|
|
6631
6752
|
{
|
|
6632
6753
|
"aria-hidden": "true",
|
|
@@ -6636,7 +6757,7 @@ function DashMark() {
|
|
|
6636
6757
|
strokeWidth: "2.2",
|
|
6637
6758
|
strokeLinecap: "round",
|
|
6638
6759
|
className: "mx-auto h-5 w-5 text-muted-foreground/60",
|
|
6639
|
-
children: /* @__PURE__ */
|
|
6760
|
+
children: /* @__PURE__ */ jsx77("path", { d: "M5 10h10" })
|
|
6640
6761
|
}
|
|
6641
6762
|
);
|
|
6642
6763
|
}
|
|
@@ -6652,11 +6773,11 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6652
6773
|
}, ref) {
|
|
6653
6774
|
const yes = valueLabels?.yes ?? "Included";
|
|
6654
6775
|
const no = valueLabels?.no ?? "Not included";
|
|
6655
|
-
return /* @__PURE__ */
|
|
6656
|
-
/* @__PURE__ */
|
|
6657
|
-
/* @__PURE__ */
|
|
6658
|
-
/* @__PURE__ */
|
|
6659
|
-
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(
|
|
6660
6781
|
"th",
|
|
6661
6782
|
{
|
|
6662
6783
|
scope: "col",
|
|
@@ -6669,21 +6790,21 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6669
6790
|
column.label
|
|
6670
6791
|
))
|
|
6671
6792
|
] }) }),
|
|
6672
|
-
/* @__PURE__ */
|
|
6673
|
-
/* @__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: [
|
|
6674
6795
|
row.feature,
|
|
6675
|
-
row.hint && /* @__PURE__ */
|
|
6796
|
+
row.hint && /* @__PURE__ */ jsx77("span", { className: "mt-1 block text-xs font-normal text-muted-foreground", children: row.hint })
|
|
6676
6797
|
] }),
|
|
6677
6798
|
columns.map((column, index) => {
|
|
6678
6799
|
const value = row.values[index];
|
|
6679
|
-
return /* @__PURE__ */
|
|
6800
|
+
return /* @__PURE__ */ jsx77(
|
|
6680
6801
|
"td",
|
|
6681
6802
|
{
|
|
6682
6803
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
6683
|
-
children: typeof value === "boolean" ? /* @__PURE__ */
|
|
6684
|
-
value ? /* @__PURE__ */
|
|
6685
|
-
/* @__PURE__ */
|
|
6686
|
-
] }) : /* @__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 ?? "" })
|
|
6687
6808
|
},
|
|
6688
6809
|
`${row.feature}-${column.label}`
|
|
6689
6810
|
);
|
|
@@ -6695,7 +6816,7 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6695
6816
|
|
|
6696
6817
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
6697
6818
|
import * as React76 from "react";
|
|
6698
|
-
import { Fragment as Fragment15, jsx as
|
|
6819
|
+
import { Fragment as Fragment15, jsx as jsx78, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
6699
6820
|
var columnClasses2 = {
|
|
6700
6821
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
6701
6822
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -6725,8 +6846,8 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6725
6846
|
sizeClasses9[size],
|
|
6726
6847
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
6727
6848
|
);
|
|
6728
|
-
return /* @__PURE__ */
|
|
6729
|
-
caption && /* @__PURE__ */
|
|
6849
|
+
return /* @__PURE__ */ jsxs53("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6850
|
+
caption && /* @__PURE__ */ jsx78(
|
|
6730
6851
|
"p",
|
|
6731
6852
|
{
|
|
6732
6853
|
className: cn(
|
|
@@ -6736,12 +6857,12 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6736
6857
|
children: caption
|
|
6737
6858
|
}
|
|
6738
6859
|
),
|
|
6739
|
-
/* @__PURE__ */
|
|
6740
|
-
const content = /* @__PURE__ */
|
|
6741
|
-
/* @__PURE__ */
|
|
6742
|
-
/* @__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 })
|
|
6743
6864
|
] });
|
|
6744
|
-
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(
|
|
6745
6866
|
Link3,
|
|
6746
6867
|
{
|
|
6747
6868
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -6755,7 +6876,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6755
6876
|
|
|
6756
6877
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
6757
6878
|
import * as React77 from "react";
|
|
6758
|
-
import { Fragment as Fragment16, jsx as
|
|
6879
|
+
import { Fragment as Fragment16, jsx as jsx79, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
6759
6880
|
var columnClasses3 = {
|
|
6760
6881
|
2: "sm:grid-cols-2",
|
|
6761
6882
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6768,22 +6889,22 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6768
6889
|
variant === "card" && "border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
|
|
6769
6890
|
align === "center" && "items-center text-center"
|
|
6770
6891
|
);
|
|
6771
|
-
const content = (feature) => /* @__PURE__ */
|
|
6772
|
-
feature.icon && /* @__PURE__ */
|
|
6773
|
-
/* @__PURE__ */
|
|
6774
|
-
feature.description && /* @__PURE__ */
|
|
6775
|
-
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: [
|
|
6776
6897
|
feature.actionLabel,
|
|
6777
6898
|
" ",
|
|
6778
|
-
/* @__PURE__ */
|
|
6899
|
+
/* @__PURE__ */ jsx79("span", { "aria-hidden": "true", children: "\u2192" })
|
|
6779
6900
|
] })
|
|
6780
6901
|
] });
|
|
6781
|
-
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)) });
|
|
6782
6903
|
});
|
|
6783
6904
|
|
|
6784
6905
|
// src/components/feature-row/FeatureRow.tsx
|
|
6785
6906
|
import * as React78 from "react";
|
|
6786
|
-
import { jsx as
|
|
6907
|
+
import { jsx as jsx80, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
6787
6908
|
var titleSizes2 = {
|
|
6788
6909
|
md: "text-3xl",
|
|
6789
6910
|
lg: "text-3xl sm:text-4xl"
|
|
@@ -6801,20 +6922,20 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6801
6922
|
...props
|
|
6802
6923
|
}, ref) {
|
|
6803
6924
|
const Heading2 = `h${level}`;
|
|
6804
|
-
return /* @__PURE__ */
|
|
6925
|
+
return /* @__PURE__ */ jsxs55(
|
|
6805
6926
|
"div",
|
|
6806
6927
|
{
|
|
6807
6928
|
ref,
|
|
6808
6929
|
className: cn("grid items-center gap-10 lg:grid-cols-2 lg:gap-16", className),
|
|
6809
6930
|
...props,
|
|
6810
6931
|
children: [
|
|
6811
|
-
/* @__PURE__ */
|
|
6812
|
-
eyebrow && /* @__PURE__ */
|
|
6813
|
-
/* @__PURE__ */
|
|
6814
|
-
description && /* @__PURE__ */
|
|
6815
|
-
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 })
|
|
6816
6937
|
] }),
|
|
6817
|
-
/* @__PURE__ */
|
|
6938
|
+
/* @__PURE__ */ jsx80("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1"), children: media })
|
|
6818
6939
|
]
|
|
6819
6940
|
}
|
|
6820
6941
|
);
|
|
@@ -6822,14 +6943,14 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6822
6943
|
|
|
6823
6944
|
// src/components/testimonial/Testimonial.tsx
|
|
6824
6945
|
import * as React79 from "react";
|
|
6825
|
-
import { jsx as
|
|
6946
|
+
import { jsx as jsx81, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
6826
6947
|
var quoteSizes = {
|
|
6827
6948
|
sm: "text-base",
|
|
6828
6949
|
md: "text-lg",
|
|
6829
6950
|
lg: "text-xl sm:text-2xl"
|
|
6830
6951
|
};
|
|
6831
6952
|
var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role, company, avatar, logo, variant = "card", size = "md", className, ...props }, ref) {
|
|
6832
|
-
return /* @__PURE__ */
|
|
6953
|
+
return /* @__PURE__ */ jsxs56(
|
|
6833
6954
|
"figure",
|
|
6834
6955
|
{
|
|
6835
6956
|
ref,
|
|
@@ -6840,17 +6961,17 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6840
6961
|
),
|
|
6841
6962
|
...props,
|
|
6842
6963
|
children: [
|
|
6843
|
-
logo && /* @__PURE__ */
|
|
6844
|
-
/* @__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: [
|
|
6845
6966
|
"\u201C",
|
|
6846
6967
|
quote,
|
|
6847
6968
|
"\u201D"
|
|
6848
6969
|
] }) }),
|
|
6849
|
-
/* @__PURE__ */
|
|
6850
|
-
avatar && /* @__PURE__ */
|
|
6851
|
-
/* @__PURE__ */
|
|
6852
|
-
/* @__PURE__ */
|
|
6853
|
-
(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(", ") })
|
|
6854
6975
|
] })
|
|
6855
6976
|
] })
|
|
6856
6977
|
]
|
|
@@ -6860,7 +6981,7 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6860
6981
|
|
|
6861
6982
|
// src/components/process-steps/ProcessSteps.tsx
|
|
6862
6983
|
import * as React80 from "react";
|
|
6863
|
-
import { jsx as
|
|
6984
|
+
import { jsx as jsx82, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
6864
6985
|
var columnClasses4 = {
|
|
6865
6986
|
2: "sm:grid-cols-2",
|
|
6866
6987
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6868,15 +6989,15 @@ var columnClasses4 = {
|
|
|
6868
6989
|
};
|
|
6869
6990
|
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", headingLevel = 3, className, ...props }, ref) {
|
|
6870
6991
|
const HeadingTag = { 2: "h2", 3: "h3", 4: "h4" }[headingLevel];
|
|
6871
|
-
return /* @__PURE__ */
|
|
6992
|
+
return /* @__PURE__ */ jsx82("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ jsxs57(
|
|
6872
6993
|
"li",
|
|
6873
6994
|
{
|
|
6874
6995
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
6875
6996
|
children: [
|
|
6876
|
-
/* @__PURE__ */
|
|
6877
|
-
/* @__PURE__ */
|
|
6878
|
-
/* @__PURE__ */
|
|
6879
|
-
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 })
|
|
6880
7001
|
] })
|
|
6881
7002
|
]
|
|
6882
7003
|
},
|
|
@@ -6886,7 +7007,7 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
6886
7007
|
|
|
6887
7008
|
// src/components/article-card/ArticleCard.tsx
|
|
6888
7009
|
import * as React81 from "react";
|
|
6889
|
-
import { jsx as
|
|
7010
|
+
import { jsx as jsx83, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
6890
7011
|
var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
6891
7012
|
title,
|
|
6892
7013
|
description,
|
|
@@ -6901,7 +7022,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6901
7022
|
}, ref) {
|
|
6902
7023
|
const Link3 = linkComponent ?? "a";
|
|
6903
7024
|
const compact = variant === "compact";
|
|
6904
|
-
return /* @__PURE__ */
|
|
7025
|
+
return /* @__PURE__ */ jsx83("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */ jsxs58(
|
|
6905
7026
|
Link3,
|
|
6906
7027
|
{
|
|
6907
7028
|
href,
|
|
@@ -6910,12 +7031,12 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6910
7031
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
6911
7032
|
),
|
|
6912
7033
|
children: [
|
|
6913
|
-
media && !compact && /* @__PURE__ */
|
|
6914
|
-
/* @__PURE__ */
|
|
6915
|
-
eyebrow && /* @__PURE__ */
|
|
6916
|
-
/* @__PURE__ */
|
|
6917
|
-
description && /* @__PURE__ */
|
|
6918
|
-
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 })
|
|
6919
7040
|
] })
|
|
6920
7041
|
]
|
|
6921
7042
|
}
|
|
@@ -6924,7 +7045,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6924
7045
|
|
|
6925
7046
|
// src/components/newsletter/Newsletter.tsx
|
|
6926
7047
|
import * as React82 from "react";
|
|
6927
|
-
import { jsx as
|
|
7048
|
+
import { jsx as jsx84, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
6928
7049
|
var Newsletter = React82.forwardRef(function Newsletter2({
|
|
6929
7050
|
title,
|
|
6930
7051
|
description,
|
|
@@ -6956,13 +7077,13 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6956
7077
|
setStatus("error");
|
|
6957
7078
|
}
|
|
6958
7079
|
};
|
|
6959
|
-
return /* @__PURE__ */
|
|
6960
|
-
/* @__PURE__ */
|
|
6961
|
-
description && /* @__PURE__ */
|
|
6962
|
-
/* @__PURE__ */
|
|
6963
|
-
/* @__PURE__ */
|
|
6964
|
-
/* @__PURE__ */
|
|
6965
|
-
/* @__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(
|
|
6966
7087
|
Input,
|
|
6967
7088
|
{
|
|
6968
7089
|
id,
|
|
@@ -6977,12 +7098,12 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6977
7098
|
className: "sm:flex-1"
|
|
6978
7099
|
}
|
|
6979
7100
|
),
|
|
6980
|
-
/* @__PURE__ */
|
|
7101
|
+
/* @__PURE__ */ jsx84(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
6981
7102
|
] }),
|
|
6982
|
-
consent && /* @__PURE__ */
|
|
6983
|
-
/* @__PURE__ */
|
|
6984
|
-
status === "success" && /* @__PURE__ */
|
|
6985
|
-
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 })
|
|
6986
7107
|
] })
|
|
6987
7108
|
] })
|
|
6988
7109
|
] });
|
|
@@ -6990,25 +7111,25 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6990
7111
|
|
|
6991
7112
|
// src/components/contact-strip/ContactStrip.tsx
|
|
6992
7113
|
import * as React83 from "react";
|
|
6993
|
-
import { jsx as
|
|
7114
|
+
import { jsx as jsx85, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
6994
7115
|
var columnClasses5 = {
|
|
6995
7116
|
2: "sm:grid-cols-2",
|
|
6996
7117
|
3: "sm:grid-cols-3"
|
|
6997
7118
|
};
|
|
6998
7119
|
var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
6999
7120
|
const Link3 = linkComponent ?? "a";
|
|
7000
|
-
return /* @__PURE__ */
|
|
7001
|
-
item.icon && /* @__PURE__ */
|
|
7002
|
-
/* @__PURE__ */
|
|
7003
|
-
/* @__PURE__ */
|
|
7004
|
-
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 })
|
|
7005
7126
|
] })
|
|
7006
7127
|
] }, item.label)) });
|
|
7007
7128
|
});
|
|
7008
7129
|
|
|
7009
7130
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
7010
7131
|
import * as React84 from "react";
|
|
7011
|
-
import { jsx as
|
|
7132
|
+
import { jsx as jsx86, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
7012
7133
|
var toneClasses3 = {
|
|
7013
7134
|
muted: "bg-muted text-foreground",
|
|
7014
7135
|
brand: "bg-primary text-primary-foreground",
|
|
@@ -7034,7 +7155,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7034
7155
|
setDismissed(true);
|
|
7035
7156
|
onDismiss?.();
|
|
7036
7157
|
};
|
|
7037
|
-
return /* @__PURE__ */
|
|
7158
|
+
return /* @__PURE__ */ jsx86(
|
|
7038
7159
|
"div",
|
|
7039
7160
|
{
|
|
7040
7161
|
ref,
|
|
@@ -7047,9 +7168,9 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7047
7168
|
className
|
|
7048
7169
|
),
|
|
7049
7170
|
...props,
|
|
7050
|
-
children: /* @__PURE__ */
|
|
7051
|
-
/* @__PURE__ */
|
|
7052
|
-
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(
|
|
7053
7174
|
Link3,
|
|
7054
7175
|
{
|
|
7055
7176
|
href,
|
|
@@ -7057,14 +7178,14 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7057
7178
|
children: actionLabel
|
|
7058
7179
|
}
|
|
7059
7180
|
),
|
|
7060
|
-
dismissible && /* @__PURE__ */
|
|
7181
|
+
dismissible && /* @__PURE__ */ jsx86(
|
|
7061
7182
|
"button",
|
|
7062
7183
|
{
|
|
7063
7184
|
type: "button",
|
|
7064
7185
|
onClick: dismiss2,
|
|
7065
7186
|
"aria-label": "Dismiss announcement",
|
|
7066
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",
|
|
7067
|
-
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" }) })
|
|
7068
7189
|
}
|
|
7069
7190
|
)
|
|
7070
7191
|
] })
|
|
@@ -7075,7 +7196,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7075
7196
|
|
|
7076
7197
|
// src/components/deal-card/DealCard.tsx
|
|
7077
7198
|
import * as React85 from "react";
|
|
7078
|
-
import { jsx as
|
|
7199
|
+
import { jsx as jsx87, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
7079
7200
|
var statusConfig = {
|
|
7080
7201
|
available: { label: "Available", variant: "success" },
|
|
7081
7202
|
"under-nda": { label: "Under NDA", variant: "info" },
|
|
@@ -7103,29 +7224,29 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7103
7224
|
}, ref) {
|
|
7104
7225
|
const Link3 = linkComponent ?? "a";
|
|
7105
7226
|
const statusInfo = statusConfig[status];
|
|
7106
|
-
return /* @__PURE__ */
|
|
7107
|
-
/* @__PURE__ */
|
|
7108
|
-
/* @__PURE__ */
|
|
7109
|
-
/* @__PURE__ */
|
|
7110
|
-
/* @__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 })
|
|
7111
7232
|
] }),
|
|
7112
|
-
/* @__PURE__ */
|
|
7113
|
-
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 })
|
|
7114
7235
|
] }),
|
|
7115
|
-
/* @__PURE__ */
|
|
7116
|
-
description && /* @__PURE__ */
|
|
7117
|
-
/* @__PURE__ */
|
|
7118
|
-
/* @__PURE__ */
|
|
7119
|
-
/* @__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 })
|
|
7120
7241
|
] }, metric.label)) }),
|
|
7121
|
-
(ndaAvailable || cimAvailable) && /* @__PURE__ */
|
|
7122
|
-
ndaAvailable && /* @__PURE__ */
|
|
7123
|
-
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" })
|
|
7124
7245
|
] })
|
|
7125
7246
|
] }),
|
|
7126
|
-
/* @__PURE__ */
|
|
7127
|
-
onRequestAccess && /* @__PURE__ */
|
|
7128
|
-
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(
|
|
7129
7250
|
Button,
|
|
7130
7251
|
{
|
|
7131
7252
|
type: "button",
|
|
@@ -7143,7 +7264,7 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7143
7264
|
|
|
7144
7265
|
// src/components/entity-card/EntityCard.tsx
|
|
7145
7266
|
import * as React86 from "react";
|
|
7146
|
-
import { jsx as
|
|
7267
|
+
import { jsx as jsx88, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
7147
7268
|
function initials(name) {
|
|
7148
7269
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
7149
7270
|
}
|
|
@@ -7165,11 +7286,11 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7165
7286
|
const Link3 = linkComponent ?? "a";
|
|
7166
7287
|
const stretched = Boolean(cardHref);
|
|
7167
7288
|
const nameHref = cardHref ?? href;
|
|
7168
|
-
return /* @__PURE__ */
|
|
7169
|
-
/* @__PURE__ */
|
|
7170
|
-
/* @__PURE__ */
|
|
7171
|
-
/* @__PURE__ */
|
|
7172
|
-
/* @__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(
|
|
7173
7294
|
Link3,
|
|
7174
7295
|
{
|
|
7175
7296
|
href: nameHref,
|
|
@@ -7180,20 +7301,20 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7180
7301
|
children: name
|
|
7181
7302
|
}
|
|
7182
7303
|
) : name }),
|
|
7183
|
-
/* @__PURE__ */
|
|
7184
|
-
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 })
|
|
7185
7306
|
] })
|
|
7186
7307
|
] }),
|
|
7187
|
-
/* @__PURE__ */
|
|
7188
|
-
description && /* @__PURE__ */
|
|
7189
|
-
tags && tags.length > 0 && /* @__PURE__ */
|
|
7190
|
-
stats && stats.length > 0 && /* @__PURE__ */
|
|
7191
|
-
/* @__PURE__ */
|
|
7192
|
-
/* @__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 })
|
|
7193
7314
|
] }, stat.label)) })
|
|
7194
7315
|
] }),
|
|
7195
|
-
(href && !stretched || actions) && /* @__PURE__ */
|
|
7196
|
-
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(
|
|
7197
7318
|
Link3,
|
|
7198
7319
|
{
|
|
7199
7320
|
href,
|
|
@@ -7201,7 +7322,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7201
7322
|
children: "View profile"
|
|
7202
7323
|
}
|
|
7203
7324
|
),
|
|
7204
|
-
actions && /* @__PURE__ */
|
|
7325
|
+
actions && /* @__PURE__ */ jsx88("div", { className: "ml-auto flex items-center gap-2", children: actions })
|
|
7205
7326
|
] })
|
|
7206
7327
|
] });
|
|
7207
7328
|
});
|
|
@@ -7209,7 +7330,7 @@ var ProfileCard = EntityCard;
|
|
|
7209
7330
|
|
|
7210
7331
|
// src/components/tombstone-card/TombstoneCard.tsx
|
|
7211
7332
|
import * as React87 from "react";
|
|
7212
|
-
import { jsx as
|
|
7333
|
+
import { jsx as jsx89, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
7213
7334
|
var statusConfig2 = {
|
|
7214
7335
|
archived: { label: "Archived", variant: "secondary" },
|
|
7215
7336
|
unavailable: { label: "Unavailable", variant: "warning" },
|
|
@@ -7228,20 +7349,20 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7228
7349
|
}, ref) {
|
|
7229
7350
|
const Link3 = linkComponent ?? "a";
|
|
7230
7351
|
const statusInfo = statusConfig2[status];
|
|
7231
|
-
return /* @__PURE__ */
|
|
7352
|
+
return /* @__PURE__ */ jsx89(
|
|
7232
7353
|
Card,
|
|
7233
7354
|
{
|
|
7234
7355
|
ref,
|
|
7235
7356
|
className: cn("flex h-full flex-col border-dashed bg-muted/30 shadow-none", className),
|
|
7236
7357
|
...props,
|
|
7237
|
-
children: /* @__PURE__ */
|
|
7238
|
-
/* @__PURE__ */
|
|
7239
|
-
logo && /* @__PURE__ */
|
|
7240
|
-
/* @__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 })
|
|
7241
7362
|
] }),
|
|
7242
|
-
/* @__PURE__ */
|
|
7243
|
-
reason && /* @__PURE__ */
|
|
7244
|
-
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(
|
|
7245
7366
|
Link3,
|
|
7246
7367
|
{
|
|
7247
7368
|
href,
|
|
@@ -7256,7 +7377,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7256
7377
|
|
|
7257
7378
|
// src/components/document-card/DocumentCard.tsx
|
|
7258
7379
|
import * as React88 from "react";
|
|
7259
|
-
import { jsx as
|
|
7380
|
+
import { jsx as jsx90, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
7260
7381
|
var statusConfig3 = {
|
|
7261
7382
|
available: { label: "Available", variant: "success" },
|
|
7262
7383
|
restricted: { label: "Restricted", variant: "warning" },
|
|
@@ -7276,14 +7397,14 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7276
7397
|
}, ref) {
|
|
7277
7398
|
const statusInfo = statusConfig3[status];
|
|
7278
7399
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7279
|
-
return /* @__PURE__ */
|
|
7280
|
-
/* @__PURE__ */
|
|
7281
|
-
/* @__PURE__ */
|
|
7282
|
-
/* @__PURE__ */
|
|
7283
|
-
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 })
|
|
7284
7405
|
] }),
|
|
7285
|
-
/* @__PURE__ */
|
|
7286
|
-
onDownload && /* @__PURE__ */
|
|
7406
|
+
/* @__PURE__ */ jsx90(Badge, { variant: statusInfo.variant, children: statusInfo.label }),
|
|
7407
|
+
onDownload && /* @__PURE__ */ jsx90(
|
|
7287
7408
|
Button,
|
|
7288
7409
|
{
|
|
7289
7410
|
type: "button",
|
|
@@ -7300,7 +7421,7 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7300
7421
|
|
|
7301
7422
|
// src/components/load-more/LoadMore.tsx
|
|
7302
7423
|
import * as React89 from "react";
|
|
7303
|
-
import { jsx as
|
|
7424
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
7304
7425
|
var LoadMore = React89.forwardRef(function LoadMore2({
|
|
7305
7426
|
hasMore,
|
|
7306
7427
|
onLoadMore,
|
|
@@ -7311,17 +7432,24 @@ var LoadMore = React89.forwardRef(function LoadMore2({
|
|
|
7311
7432
|
className,
|
|
7312
7433
|
...props
|
|
7313
7434
|
}, ref) {
|
|
7314
|
-
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 }) });
|
|
7315
7436
|
});
|
|
7316
7437
|
|
|
7317
7438
|
// src/components/segmented-control/SegmentedControl.tsx
|
|
7318
7439
|
import * as React90 from "react";
|
|
7319
|
-
import { Fragment as Fragment17, jsx as
|
|
7440
|
+
import { Fragment as Fragment17, jsx as jsx92, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
7320
7441
|
var sizeClasses10 = {
|
|
7321
7442
|
sm: "h-8 px-2.5 text-xs",
|
|
7322
7443
|
md: "h-9 px-3 text-sm",
|
|
7323
7444
|
lg: "h-10 px-4 text-sm"
|
|
7324
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
|
+
};
|
|
7325
7453
|
var SegmentedControl = React90.forwardRef(
|
|
7326
7454
|
function SegmentedControl2({
|
|
7327
7455
|
options,
|
|
@@ -7343,6 +7471,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7343
7471
|
);
|
|
7344
7472
|
const current = isControlled ? value : internal;
|
|
7345
7473
|
const selected = multiple ? Array.isArray(current) ? current : [] : typeof current === "string" ? current : "";
|
|
7474
|
+
const fullWidthBelow = typeof fullWidth === "string" ? fullWidthBreakpoints[fullWidth] : null;
|
|
7346
7475
|
const linkMode = options.some((option) => option.href !== void 0);
|
|
7347
7476
|
const LinkEl = linkComponent ?? "a";
|
|
7348
7477
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
@@ -7396,7 +7525,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7396
7525
|
moveFocus("last");
|
|
7397
7526
|
}
|
|
7398
7527
|
};
|
|
7399
|
-
return /* @__PURE__ */
|
|
7528
|
+
return /* @__PURE__ */ jsx92(
|
|
7400
7529
|
"div",
|
|
7401
7530
|
{
|
|
7402
7531
|
ref,
|
|
@@ -7404,7 +7533,8 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7404
7533
|
"aria-label": ariaLabel,
|
|
7405
7534
|
className: cn(
|
|
7406
7535
|
"inline-flex items-center gap-1 rounded-lg border border-border bg-muted p-1",
|
|
7407
|
-
fullWidth && "flex w-full",
|
|
7536
|
+
fullWidth === true && "flex w-full",
|
|
7537
|
+
fullWidthBelow && `${fullWidthBelow}:flex ${fullWidthBelow}:w-full`,
|
|
7408
7538
|
className
|
|
7409
7539
|
),
|
|
7410
7540
|
...props,
|
|
@@ -7417,37 +7547,41 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7417
7547
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7418
7548
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
7419
7549
|
sizeClasses10[size],
|
|
7420
|
-
fullWidth && "flex-1",
|
|
7550
|
+
fullWidth === true && "flex-1",
|
|
7551
|
+
fullWidthBelow && `${fullWidthBelow}:flex-1`,
|
|
7421
7552
|
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
7422
7553
|
);
|
|
7423
|
-
const segmentContent = /* @__PURE__ */
|
|
7424
|
-
option.icon && /* @__PURE__ */
|
|
7425
|
-
/* @__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 })
|
|
7426
7558
|
] });
|
|
7427
7559
|
if (option.href !== void 0) {
|
|
7428
7560
|
if (option.disabled || active) {
|
|
7429
|
-
return /* @__PURE__ */
|
|
7561
|
+
return /* @__PURE__ */ jsx92(
|
|
7430
7562
|
"span",
|
|
7431
7563
|
{
|
|
7432
7564
|
"aria-current": active ? "page" : void 0,
|
|
7433
7565
|
"aria-disabled": option.disabled || void 0,
|
|
7566
|
+
"aria-description": option.hint,
|
|
7434
7567
|
className: cn(segmentClass, option.disabled && "opacity-50"),
|
|
7435
7568
|
children: segmentContent
|
|
7436
7569
|
},
|
|
7437
7570
|
option.value
|
|
7438
7571
|
);
|
|
7439
7572
|
}
|
|
7440
|
-
return /* @__PURE__ */
|
|
7573
|
+
return /* @__PURE__ */ jsx92(
|
|
7441
7574
|
LinkEl,
|
|
7442
7575
|
{
|
|
7443
7576
|
...destination(option.href),
|
|
7577
|
+
"aria-description": option.hint,
|
|
7444
7578
|
className: segmentClass,
|
|
7445
7579
|
children: segmentContent
|
|
7446
7580
|
},
|
|
7447
7581
|
option.value
|
|
7448
7582
|
);
|
|
7449
7583
|
}
|
|
7450
|
-
return /* @__PURE__ */
|
|
7584
|
+
return /* @__PURE__ */ jsx92(
|
|
7451
7585
|
"button",
|
|
7452
7586
|
{
|
|
7453
7587
|
ref: (node) => {
|
|
@@ -7458,6 +7592,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7458
7592
|
"aria-checked": multiple || linkMode ? void 0 : active,
|
|
7459
7593
|
"aria-pressed": multiple ? active : void 0,
|
|
7460
7594
|
"aria-current": linkMode && active ? "page" : void 0,
|
|
7595
|
+
"aria-description": option.hint,
|
|
7461
7596
|
disabled: option.disabled,
|
|
7462
7597
|
tabIndex: focusable ? 0 : -1,
|
|
7463
7598
|
onClick: () => select(option),
|
|
@@ -7475,7 +7610,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7475
7610
|
|
|
7476
7611
|
// src/components/range-slider/RangeSlider.tsx
|
|
7477
7612
|
import * as React91 from "react";
|
|
7478
|
-
import { jsx as
|
|
7613
|
+
import { jsx as jsx93, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
7479
7614
|
var rangeInputClass = cn(
|
|
7480
7615
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
7481
7616
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
@@ -7515,21 +7650,21 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7515
7650
|
const span = max - min || 1;
|
|
7516
7651
|
const lowPercent = (low - min) / span * 100;
|
|
7517
7652
|
const highPercent = (high - min) / span * 100;
|
|
7518
|
-
return /* @__PURE__ */
|
|
7519
|
-
showValues && /* @__PURE__ */
|
|
7520
|
-
/* @__PURE__ */
|
|
7521
|
-
/* @__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) })
|
|
7522
7657
|
] }),
|
|
7523
|
-
/* @__PURE__ */
|
|
7524
|
-
/* @__PURE__ */
|
|
7525
|
-
/* @__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(
|
|
7526
7661
|
"div",
|
|
7527
7662
|
{
|
|
7528
7663
|
className: "absolute top-1/2 h-1 -translate-y-1/2 rounded-full bg-primary",
|
|
7529
7664
|
style: { left: `${lowPercent}%`, right: `${100 - highPercent}%` }
|
|
7530
7665
|
}
|
|
7531
7666
|
),
|
|
7532
|
-
/* @__PURE__ */
|
|
7667
|
+
/* @__PURE__ */ jsx93(
|
|
7533
7668
|
"input",
|
|
7534
7669
|
{
|
|
7535
7670
|
type: "range",
|
|
@@ -7544,7 +7679,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7544
7679
|
className: cn(rangeInputClass, "z-10")
|
|
7545
7680
|
}
|
|
7546
7681
|
),
|
|
7547
|
-
/* @__PURE__ */
|
|
7682
|
+
/* @__PURE__ */ jsx93(
|
|
7548
7683
|
"input",
|
|
7549
7684
|
{
|
|
7550
7685
|
type: "range",
|
|
@@ -7565,7 +7700,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7565
7700
|
|
|
7566
7701
|
// src/components/filter-chips/FilterChips.tsx
|
|
7567
7702
|
import * as React92 from "react";
|
|
7568
|
-
import { jsx as
|
|
7703
|
+
import { jsx as jsx94, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
7569
7704
|
var CHIP_SIZES = {
|
|
7570
7705
|
sm: {
|
|
7571
7706
|
chip: "gap-1 py-0.5 pl-2.5 pr-0.5 text-xs",
|
|
@@ -7597,10 +7732,10 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7597
7732
|
...props
|
|
7598
7733
|
}, ref) {
|
|
7599
7734
|
if (filters.length === 0) {
|
|
7600
|
-
return emptyLabel ? /* @__PURE__ */
|
|
7735
|
+
return emptyLabel ? /* @__PURE__ */ jsx94("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7601
7736
|
}
|
|
7602
7737
|
const scale = CHIP_SIZES[size];
|
|
7603
|
-
return /* @__PURE__ */
|
|
7738
|
+
return /* @__PURE__ */ jsxs68(
|
|
7604
7739
|
"div",
|
|
7605
7740
|
{
|
|
7606
7741
|
ref,
|
|
@@ -7609,7 +7744,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7609
7744
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
7610
7745
|
...props,
|
|
7611
7746
|
children: [
|
|
7612
|
-
filters.map((filter) => /* @__PURE__ */
|
|
7747
|
+
filters.map((filter) => /* @__PURE__ */ jsxs68(
|
|
7613
7748
|
"span",
|
|
7614
7749
|
{
|
|
7615
7750
|
className: cn(
|
|
@@ -7617,15 +7752,15 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7617
7752
|
scale.chip
|
|
7618
7753
|
),
|
|
7619
7754
|
children: [
|
|
7620
|
-
/* @__PURE__ */
|
|
7621
|
-
/* @__PURE__ */
|
|
7755
|
+
/* @__PURE__ */ jsxs68("span", { className: "truncate", children: [
|
|
7756
|
+
/* @__PURE__ */ jsxs68("span", { className: "text-muted-foreground", children: [
|
|
7622
7757
|
filter.label,
|
|
7623
7758
|
":"
|
|
7624
7759
|
] }),
|
|
7625
7760
|
" ",
|
|
7626
|
-
/* @__PURE__ */
|
|
7761
|
+
/* @__PURE__ */ jsx94("span", { className: "font-medium", children: filter.value ?? "Any" })
|
|
7627
7762
|
] }),
|
|
7628
|
-
filter.onRemove && /* @__PURE__ */
|
|
7763
|
+
filter.onRemove && /* @__PURE__ */ jsx94(
|
|
7629
7764
|
"button",
|
|
7630
7765
|
{
|
|
7631
7766
|
type: "button",
|
|
@@ -7635,14 +7770,14 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7635
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",
|
|
7636
7771
|
scale.remove
|
|
7637
7772
|
),
|
|
7638
|
-
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" }) })
|
|
7639
7774
|
}
|
|
7640
7775
|
)
|
|
7641
7776
|
]
|
|
7642
7777
|
},
|
|
7643
7778
|
filter.key
|
|
7644
7779
|
)),
|
|
7645
|
-
onClearAll && /* @__PURE__ */
|
|
7780
|
+
onClearAll && /* @__PURE__ */ jsx94(
|
|
7646
7781
|
"button",
|
|
7647
7782
|
{
|
|
7648
7783
|
type: "button",
|
|
@@ -7661,7 +7796,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7661
7796
|
|
|
7662
7797
|
// src/components/multi-select/MultiSelect.tsx
|
|
7663
7798
|
import * as React93 from "react";
|
|
7664
|
-
import { jsx as
|
|
7799
|
+
import { jsx as jsx95, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
7665
7800
|
var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
7666
7801
|
options,
|
|
7667
7802
|
value,
|
|
@@ -7706,16 +7841,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7706
7841
|
}, [filtered]);
|
|
7707
7842
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
7708
7843
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
7709
|
-
return /* @__PURE__ */
|
|
7710
|
-
label && /* @__PURE__ */
|
|
7711
|
-
visibleChips.length > 0 && /* @__PURE__ */
|
|
7712
|
-
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(
|
|
7713
7848
|
"span",
|
|
7714
7849
|
{
|
|
7715
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",
|
|
7716
7851
|
children: [
|
|
7717
|
-
/* @__PURE__ */
|
|
7718
|
-
/* @__PURE__ */
|
|
7852
|
+
/* @__PURE__ */ jsx95("span", { className: "truncate", children: option.label }),
|
|
7853
|
+
/* @__PURE__ */ jsx95(
|
|
7719
7854
|
"button",
|
|
7720
7855
|
{
|
|
7721
7856
|
type: "button",
|
|
@@ -7723,26 +7858,26 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7723
7858
|
disabled,
|
|
7724
7859
|
"aria-label": `Remove ${option.label}`,
|
|
7725
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",
|
|
7726
|
-
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" }) })
|
|
7727
7862
|
}
|
|
7728
7863
|
)
|
|
7729
7864
|
]
|
|
7730
7865
|
},
|
|
7731
7866
|
option.value
|
|
7732
7867
|
)),
|
|
7733
|
-
hiddenCount > 0 && /* @__PURE__ */
|
|
7868
|
+
hiddenCount > 0 && /* @__PURE__ */ jsxs69("span", { className: "self-center text-xs text-muted-foreground", children: [
|
|
7734
7869
|
"+",
|
|
7735
7870
|
hiddenCount,
|
|
7736
7871
|
" more"
|
|
7737
7872
|
] })
|
|
7738
7873
|
] }),
|
|
7739
|
-
/* @__PURE__ */
|
|
7740
|
-
/* @__PURE__ */
|
|
7741
|
-
/* @__PURE__ */
|
|
7742
|
-
/* @__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" })
|
|
7743
7878
|
] }),
|
|
7744
|
-
/* @__PURE__ */
|
|
7745
|
-
/* @__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(
|
|
7746
7881
|
Input,
|
|
7747
7882
|
{
|
|
7748
7883
|
type: "search",
|
|
@@ -7753,9 +7888,9 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7753
7888
|
autoFocus: true
|
|
7754
7889
|
}
|
|
7755
7890
|
) }),
|
|
7756
|
-
/* @__PURE__ */
|
|
7757
|
-
heading && /* @__PURE__ */
|
|
7758
|
-
/* @__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(
|
|
7759
7894
|
"label",
|
|
7760
7895
|
{
|
|
7761
7896
|
className: cn(
|
|
@@ -7763,7 +7898,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7763
7898
|
option.disabled && "cursor-not-allowed opacity-50"
|
|
7764
7899
|
),
|
|
7765
7900
|
children: [
|
|
7766
|
-
/* @__PURE__ */
|
|
7901
|
+
/* @__PURE__ */ jsx95(
|
|
7767
7902
|
Checkbox,
|
|
7768
7903
|
{
|
|
7769
7904
|
checked: selected.includes(option.value),
|
|
@@ -7772,16 +7907,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7772
7907
|
className: "mt-0.5"
|
|
7773
7908
|
}
|
|
7774
7909
|
),
|
|
7775
|
-
/* @__PURE__ */
|
|
7776
|
-
/* @__PURE__ */
|
|
7777
|
-
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 })
|
|
7778
7913
|
] })
|
|
7779
7914
|
]
|
|
7780
7915
|
}
|
|
7781
7916
|
)
|
|
7782
7917
|
] }, option.value)) }),
|
|
7783
|
-
/* @__PURE__ */
|
|
7784
|
-
/* @__PURE__ */
|
|
7918
|
+
/* @__PURE__ */ jsxs69("div", { className: "flex items-center justify-between gap-2 border-t border-border p-2", children: [
|
|
7919
|
+
/* @__PURE__ */ jsx95(
|
|
7785
7920
|
Button,
|
|
7786
7921
|
{
|
|
7787
7922
|
type: "button",
|
|
@@ -7791,7 +7926,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7791
7926
|
children: "Select all"
|
|
7792
7927
|
}
|
|
7793
7928
|
),
|
|
7794
|
-
/* @__PURE__ */
|
|
7929
|
+
/* @__PURE__ */ jsx95(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => commit([]), children: "Clear" })
|
|
7795
7930
|
] })
|
|
7796
7931
|
] })
|
|
7797
7932
|
] })
|
|
@@ -7800,7 +7935,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7800
7935
|
|
|
7801
7936
|
// src/components/filter-panel/FilterPanel.tsx
|
|
7802
7937
|
import * as React94 from "react";
|
|
7803
|
-
import { jsx as
|
|
7938
|
+
import { jsx as jsx96, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
7804
7939
|
var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
7805
7940
|
sections,
|
|
7806
7941
|
title = "Filters",
|
|
@@ -7830,16 +7965,16 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7830
7965
|
(current) => current.includes(index) ? current.filter((entry) => entry !== index) : [...current, index]
|
|
7831
7966
|
);
|
|
7832
7967
|
};
|
|
7833
|
-
return /* @__PURE__ */
|
|
7834
|
-
(title || description) && /* @__PURE__ */
|
|
7835
|
-
title && /* @__PURE__ */
|
|
7836
|
-
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 })
|
|
7837
7972
|
] }),
|
|
7838
|
-
/* @__PURE__ */
|
|
7973
|
+
/* @__PURE__ */ jsx96("div", { className: "divide-y divide-border", children: sections.map((section, index) => {
|
|
7839
7974
|
const expanded = isOpen(index);
|
|
7840
7975
|
const sectionId = `filter-section-${index}`;
|
|
7841
|
-
return /* @__PURE__ */
|
|
7842
|
-
/* @__PURE__ */
|
|
7976
|
+
return /* @__PURE__ */ jsxs70("div", { className: "px-4 py-3", children: [
|
|
7977
|
+
/* @__PURE__ */ jsx96("h3", { children: /* @__PURE__ */ jsxs70(
|
|
7843
7978
|
"button",
|
|
7844
7979
|
{
|
|
7845
7980
|
type: "button",
|
|
@@ -7852,28 +7987,28 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7852
7987
|
collapsible && "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7853
7988
|
),
|
|
7854
7989
|
children: [
|
|
7855
|
-
/* @__PURE__ */
|
|
7990
|
+
/* @__PURE__ */ jsxs70("span", { children: [
|
|
7856
7991
|
section.title,
|
|
7857
|
-
section.description && /* @__PURE__ */
|
|
7992
|
+
section.description && /* @__PURE__ */ jsx96("span", { className: "mt-0.5 block text-xs font-normal text-muted-foreground", children: section.description })
|
|
7858
7993
|
] }),
|
|
7859
|
-
collapsible && /* @__PURE__ */
|
|
7994
|
+
collapsible && /* @__PURE__ */ jsx96("span", { "aria-hidden": "true", className: cn("text-muted-foreground transition-transform", expanded && "rotate-180"), children: "\u2304" })
|
|
7860
7995
|
]
|
|
7861
7996
|
}
|
|
7862
7997
|
) }),
|
|
7863
|
-
expanded && /* @__PURE__ */
|
|
7998
|
+
expanded && /* @__PURE__ */ jsx96("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
7864
7999
|
] }, index);
|
|
7865
8000
|
}) }),
|
|
7866
|
-
(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: [
|
|
7867
8002
|
actions,
|
|
7868
|
-
onReset && /* @__PURE__ */
|
|
7869
|
-
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 })
|
|
7870
8005
|
] })
|
|
7871
8006
|
] });
|
|
7872
8007
|
});
|
|
7873
8008
|
|
|
7874
8009
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
7875
8010
|
import * as React95 from "react";
|
|
7876
|
-
import { jsx as
|
|
8011
|
+
import { jsx as jsx97, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
7877
8012
|
var DEFAULT_PRESETS = [
|
|
7878
8013
|
{ label: "7 days", days: 7 },
|
|
7879
8014
|
{ label: "30 days", days: 30 },
|
|
@@ -7925,8 +8060,8 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7925
8060
|
}
|
|
7926
8061
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
7927
8062
|
};
|
|
7928
|
-
return /* @__PURE__ */
|
|
7929
|
-
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(
|
|
7930
8065
|
Button,
|
|
7931
8066
|
{
|
|
7932
8067
|
type: "button",
|
|
@@ -7938,10 +8073,10 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7938
8073
|
},
|
|
7939
8074
|
preset.label
|
|
7940
8075
|
)) }),
|
|
7941
|
-
/* @__PURE__ */
|
|
7942
|
-
/* @__PURE__ */
|
|
7943
|
-
/* @__PURE__ */
|
|
7944
|
-
/* @__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(
|
|
7945
8080
|
DatePicker,
|
|
7946
8081
|
{
|
|
7947
8082
|
id: startId,
|
|
@@ -7953,9 +8088,9 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7953
8088
|
}
|
|
7954
8089
|
)
|
|
7955
8090
|
] }),
|
|
7956
|
-
/* @__PURE__ */
|
|
7957
|
-
/* @__PURE__ */
|
|
7958
|
-
/* @__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(
|
|
7959
8094
|
DatePicker,
|
|
7960
8095
|
{
|
|
7961
8096
|
id: endId,
|
|
@@ -7974,7 +8109,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7974
8109
|
|
|
7975
8110
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
7976
8111
|
import * as React96 from "react";
|
|
7977
|
-
import { jsx as
|
|
8112
|
+
import { jsx as jsx98, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
7978
8113
|
var AppliedFilters = React96.forwardRef(
|
|
7979
8114
|
function AppliedFilters2({
|
|
7980
8115
|
filters,
|
|
@@ -7988,9 +8123,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
7988
8123
|
}, ref) {
|
|
7989
8124
|
const summary = label ?? `${filters.length} active`;
|
|
7990
8125
|
if (filters.length === 0) {
|
|
7991
|
-
return emptyLabel ? /* @__PURE__ */
|
|
8126
|
+
return emptyLabel ? /* @__PURE__ */ jsx98("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7992
8127
|
}
|
|
7993
|
-
return /* @__PURE__ */
|
|
8128
|
+
return /* @__PURE__ */ jsxs72(
|
|
7994
8129
|
"div",
|
|
7995
8130
|
{
|
|
7996
8131
|
ref,
|
|
@@ -7998,9 +8133,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
7998
8133
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
7999
8134
|
...props,
|
|
8000
8135
|
children: [
|
|
8001
|
-
/* @__PURE__ */
|
|
8002
|
-
/* @__PURE__ */
|
|
8003
|
-
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 })
|
|
8004
8139
|
]
|
|
8005
8140
|
}
|
|
8006
8141
|
);
|
|
@@ -8011,7 +8146,7 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8011
8146
|
import * as React97 from "react";
|
|
8012
8147
|
import { createPortal as createPortal8 } from "react-dom";
|
|
8013
8148
|
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
8014
|
-
import { jsx as
|
|
8149
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
8015
8150
|
var MenuContext = React97.createContext({
|
|
8016
8151
|
open: false,
|
|
8017
8152
|
setOpen: () => {
|
|
@@ -8043,7 +8178,7 @@ var Menu = React97.forwardRef(
|
|
|
8043
8178
|
},
|
|
8044
8179
|
[open, onOpenChange]
|
|
8045
8180
|
);
|
|
8046
|
-
return /* @__PURE__ */
|
|
8181
|
+
return /* @__PURE__ */ jsx99("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx99(
|
|
8047
8182
|
MenuContext.Provider,
|
|
8048
8183
|
{
|
|
8049
8184
|
value: { open: current, setOpen, activeIndex, setActiveIndex, wrapperRef },
|
|
@@ -8056,7 +8191,7 @@ Menu.displayName = "Menu";
|
|
|
8056
8191
|
var MenuTrigger = React97.forwardRef(
|
|
8057
8192
|
({ className, children, ...props }, ref) => {
|
|
8058
8193
|
const { open, setOpen } = React97.useContext(MenuContext);
|
|
8059
|
-
return /* @__PURE__ */
|
|
8194
|
+
return /* @__PURE__ */ jsx99(
|
|
8060
8195
|
"button",
|
|
8061
8196
|
{
|
|
8062
8197
|
ref,
|
|
@@ -8158,7 +8293,7 @@ var MenuContent = React97.forwardRef(
|
|
|
8158
8293
|
};
|
|
8159
8294
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
8160
8295
|
return createPortal8(
|
|
8161
|
-
/* @__PURE__ */
|
|
8296
|
+
/* @__PURE__ */ jsx99(
|
|
8162
8297
|
"div",
|
|
8163
8298
|
{
|
|
8164
8299
|
ref: (node) => {
|
|
@@ -8187,7 +8322,7 @@ var MenuItem = React97.forwardRef(
|
|
|
8187
8322
|
const { setOpen } = React97.useContext(MenuContext);
|
|
8188
8323
|
const Comp = asChild ? Slot5 : "button";
|
|
8189
8324
|
const typeProp = asChild ? {} : { type: "button" };
|
|
8190
|
-
return /* @__PURE__ */
|
|
8325
|
+
return /* @__PURE__ */ jsx99(
|
|
8191
8326
|
Comp,
|
|
8192
8327
|
{
|
|
8193
8328
|
ref,
|
|
@@ -8210,11 +8345,11 @@ var MenuItem = React97.forwardRef(
|
|
|
8210
8345
|
);
|
|
8211
8346
|
MenuItem.displayName = "MenuItem";
|
|
8212
8347
|
var MenuSeparator = React97.forwardRef(
|
|
8213
|
-
({ 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 })
|
|
8214
8349
|
);
|
|
8215
8350
|
MenuSeparator.displayName = "MenuSeparator";
|
|
8216
8351
|
var MenuLabel = React97.forwardRef(
|
|
8217
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8352
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx99(
|
|
8218
8353
|
"div",
|
|
8219
8354
|
{
|
|
8220
8355
|
ref,
|
|
@@ -8228,7 +8363,7 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
8228
8363
|
// src/components/alert/Alert.tsx
|
|
8229
8364
|
import * as React98 from "react";
|
|
8230
8365
|
import { cva as cva8 } from "class-variance-authority";
|
|
8231
|
-
import { jsx as
|
|
8366
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
8232
8367
|
var alertVariants = cva8(
|
|
8233
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",
|
|
8234
8369
|
{
|
|
@@ -8249,7 +8384,7 @@ var alertVariants = cva8(
|
|
|
8249
8384
|
}
|
|
8250
8385
|
);
|
|
8251
8386
|
var Alert = React98.forwardRef(
|
|
8252
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */
|
|
8387
|
+
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx100(
|
|
8253
8388
|
"div",
|
|
8254
8389
|
{
|
|
8255
8390
|
ref,
|
|
@@ -8261,7 +8396,7 @@ var Alert = React98.forwardRef(
|
|
|
8261
8396
|
);
|
|
8262
8397
|
Alert.displayName = "Alert";
|
|
8263
8398
|
var AlertTitle = React98.forwardRef(
|
|
8264
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8399
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx100(
|
|
8265
8400
|
"h5",
|
|
8266
8401
|
{
|
|
8267
8402
|
ref,
|
|
@@ -8272,7 +8407,7 @@ var AlertTitle = React98.forwardRef(
|
|
|
8272
8407
|
);
|
|
8273
8408
|
AlertTitle.displayName = "AlertTitle";
|
|
8274
8409
|
var AlertDescription = React98.forwardRef(
|
|
8275
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8410
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx100(
|
|
8276
8411
|
"div",
|
|
8277
8412
|
{
|
|
8278
8413
|
ref,
|
|
@@ -8285,22 +8420,22 @@ AlertDescription.displayName = "AlertDescription";
|
|
|
8285
8420
|
|
|
8286
8421
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
8287
8422
|
import * as React99 from "react";
|
|
8288
|
-
import { jsx as
|
|
8423
|
+
import { jsx as jsx101, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
8289
8424
|
var Breadcrumb = React99.forwardRef(
|
|
8290
8425
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
8291
8426
|
const LinkEl = linkComponent ?? "a";
|
|
8292
|
-
return /* @__PURE__ */
|
|
8427
|
+
return /* @__PURE__ */ jsx101(
|
|
8293
8428
|
"nav",
|
|
8294
8429
|
{
|
|
8295
8430
|
ref,
|
|
8296
8431
|
"aria-label": label,
|
|
8297
8432
|
className: cn("flex items-center space-x-1.5 text-sm text-muted-foreground", className),
|
|
8298
8433
|
...props,
|
|
8299
|
-
children: /* @__PURE__ */
|
|
8434
|
+
children: /* @__PURE__ */ jsx101("ol", { className: "flex flex-wrap items-center space-x-1.5", children: items.map((item, index) => {
|
|
8300
8435
|
const isLast = index === items.length - 1;
|
|
8301
|
-
return /* @__PURE__ */
|
|
8302
|
-
index > 0 && /* @__PURE__ */
|
|
8303
|
-
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(
|
|
8304
8439
|
LinkEl,
|
|
8305
8440
|
{
|
|
8306
8441
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -8311,7 +8446,7 @@ var Breadcrumb = React99.forwardRef(
|
|
|
8311
8446
|
} : void 0,
|
|
8312
8447
|
children: item.label
|
|
8313
8448
|
}
|
|
8314
|
-
) : /* @__PURE__ */
|
|
8449
|
+
) : /* @__PURE__ */ jsx101(
|
|
8315
8450
|
"span",
|
|
8316
8451
|
{
|
|
8317
8452
|
"aria-current": isLast ? "page" : void 0,
|
|
@@ -8407,6 +8542,7 @@ export {
|
|
|
8407
8542
|
LinkTabs,
|
|
8408
8543
|
List,
|
|
8409
8544
|
ListItem,
|
|
8545
|
+
ListToolbar,
|
|
8410
8546
|
LoadMore,
|
|
8411
8547
|
LogoCloud,
|
|
8412
8548
|
Menu,
|