@slipstream-ui/core 0.11.3 → 0.11.6
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 +126 -7
- package/dist/index.d.ts +126 -7
- package/dist/index.js +605 -444
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +500 -340
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +1 -1
- package/dist/manifests/alert.manifest.json +1 -1
- package/dist/manifests/announcement-bar.manifest.json +1 -1
- package/dist/manifests/app-shell.manifest.json +1 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +1 -1
- package/dist/manifests/auth-layout.manifest.json +1 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +1 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +1 -1
- package/dist/manifests/breadcrumb.manifest.json +1 -1
- package/dist/manifests/button-group.manifest.json +1 -1
- package/dist/manifests/button.manifest.json +1 -1
- package/dist/manifests/calendar.manifest.json +1 -1
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cover-image.manifest.json +151 -0
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +1 -1
- package/dist/manifests/date-picker-popover.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +1 -1
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +1 -1
- package/dist/manifests/empty-state.manifest.json +45 -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 +16 -4
- 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 +7 -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.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +1 -1
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +29 -2
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +1 -1
- package/dist/manifests/site-header.manifest.json +1 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +23 -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/cover-image/CoverImage.d.ts +34 -0
- package/dist/src/components/cover-image/CoverImage.js +94 -0
- package/dist/src/components/cover-image/CoverImage.js.map +1 -0
- package/dist/src/components/cover-image/CoverImage.mjs +70 -0
- package/dist/src/components/cover-image/CoverImage.mjs.map +1 -0
- package/dist/src/components/cover-image/index.d.ts +1 -0
- package/dist/src/components/cover-image/index.js +29 -0
- package/dist/src/components/cover-image/index.js.map +1 -0
- package/dist/src/components/cover-image/index.mjs +5 -0
- package/dist/src/components/cover-image/index.mjs.map +1 -0
- package/dist/src/components/empty-state/EmptyState.d.ts +24 -0
- package/dist/src/components/empty-state/EmptyState.js +16 -6
- package/dist/src/components/empty-state/EmptyState.js.map +1 -1
- package/dist/src/components/empty-state/EmptyState.mjs +16 -6
- package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
- package/dist/src/components/form-layout/FormLayout.d.ts +26 -4
- package/dist/src/components/form-layout/FormLayout.js +16 -3
- package/dist/src/components/form-layout/FormLayout.js.map +1 -1
- package/dist/src/components/form-layout/FormLayout.mjs +16 -3
- package/dist/src/components/form-layout/FormLayout.mjs.map +1 -1
- package/dist/src/components/image/Image.d.ts +3 -1
- package/dist/src/components/image/Image.js +2 -0
- package/dist/src/components/image/Image.js.map +1 -1
- package/dist/src/components/image/Image.mjs +2 -0
- package/dist/src/components/image/Image.mjs.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.d.ts +21 -0
- package/dist/src/components/segmented-control/SegmentedControl.js +47 -16
- package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.mjs +48 -17
- package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
- package/dist/src/components/stat-band/StatBand.d.ts +16 -0
- package/dist/src/components/stat-band/StatBand.js +46 -9
- package/dist/src/components/stat-band/StatBand.js.map +1 -1
- package/dist/src/components/stat-band/StatBand.mjs +46 -9
- package/dist/src/components/stat-band/StatBand.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/cover-image/CoverImage.test.tsx +88 -0
- package/src/components/cover-image/CoverImage.tsx +109 -0
- package/src/components/cover-image/index.ts +1 -0
- package/src/components/empty-state/EmptyState.test.tsx +33 -0
- package/src/components/empty-state/EmptyState.tsx +34 -6
- package/src/components/form-layout/FormLayout.test.tsx +26 -0
- package/src/components/form-layout/FormLayout.tsx +37 -5
- package/src/components/image/Image.tsx +4 -0
- package/src/components/segmented-control/SegmentedControl.test.tsx +64 -0
- package/src/components/segmented-control/SegmentedControl.tsx +69 -15
- package/src/components/stat-band/StatBand.test.tsx +26 -0
- package/src/components/stat-band/StatBand.tsx +52 -7
- 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 +1 -1
- package/src/manifests/calendar.manifest.json +1 -1
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cover-image.manifest.json +151 -0
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +1 -1
- package/src/manifests/date-picker-popover.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +1 -1
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +1 -1
- package/src/manifests/empty-state.manifest.json +45 -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 +16 -4
- 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 +7 -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.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +1 -1
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +29 -2
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +1 -1
- package/src/manifests/site-header.manifest.json +1 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +23 -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/src/styles.css +5 -0
package/dist/index.js
CHANGED
|
@@ -67,6 +67,7 @@ __export(index_exports, {
|
|
|
67
67
|
ConfirmDialog: () => ConfirmDialog,
|
|
68
68
|
ContactStrip: () => ContactStrip,
|
|
69
69
|
Container: () => Container,
|
|
70
|
+
CoverImage: () => CoverImage,
|
|
70
71
|
DataTable: () => DataTable,
|
|
71
72
|
DatePicker: () => DatePicker,
|
|
72
73
|
DatePickerPopover: () => DatePickerPopover,
|
|
@@ -2750,13 +2751,26 @@ var GRID_COLUMNS = {
|
|
|
2750
2751
|
3: "grid-cols-3",
|
|
2751
2752
|
4: "grid-cols-4"
|
|
2752
2753
|
};
|
|
2754
|
+
var GRID_BREAKPOINTS = ["sm", "md", "lg", "xl"];
|
|
2755
|
+
function gridColumnClasses(columns) {
|
|
2756
|
+
if (typeof columns === "number") return GRID_COLUMNS[columns];
|
|
2757
|
+
return [
|
|
2758
|
+
columns.base !== void 0 ? GRID_COLUMNS[columns.base] : "",
|
|
2759
|
+
...GRID_BREAKPOINTS.map((bp) => {
|
|
2760
|
+
const count = columns[bp];
|
|
2761
|
+
return count !== void 0 ? `${bp}:${GRID_COLUMNS[count]}` : "";
|
|
2762
|
+
})
|
|
2763
|
+
].filter(Boolean).join(" ");
|
|
2764
|
+
}
|
|
2753
2765
|
var FormLayout = React30.forwardRef(
|
|
2754
2766
|
({
|
|
2755
2767
|
layout = "stack",
|
|
2756
2768
|
columns = 2,
|
|
2757
2769
|
gap,
|
|
2758
2770
|
legend,
|
|
2771
|
+
legendClassName,
|
|
2759
2772
|
description,
|
|
2773
|
+
descriptionClassName,
|
|
2760
2774
|
as = "div",
|
|
2761
2775
|
className,
|
|
2762
2776
|
style,
|
|
@@ -2773,15 +2787,15 @@ var FormLayout = React30.forwardRef(
|
|
|
2773
2787
|
"flex min-w-0",
|
|
2774
2788
|
layout === "stack" && "flex-col",
|
|
2775
2789
|
layout === "row" && "flex-row flex-wrap items-end",
|
|
2776
|
-
layout === "grid" && `grid ${
|
|
2790
|
+
layout === "grid" && `grid ${gridColumnClasses(columns)}`,
|
|
2777
2791
|
gapResolved.className,
|
|
2778
2792
|
className
|
|
2779
2793
|
),
|
|
2780
2794
|
style: { ...gapResolved.style, ...style },
|
|
2781
2795
|
...props,
|
|
2782
2796
|
children: [
|
|
2783
|
-
legend && as === "fieldset" && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("legend", { className: "col-span-full p-0 text-sm font-medium leading-none", children: legend }),
|
|
2784
|
-
description && as === "fieldset" && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "col-span-full text-xs text-muted-foreground", children: description }),
|
|
2797
|
+
legend && as === "fieldset" && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("legend", { className: cn("col-span-full p-0 text-sm font-medium leading-none", legendClassName), children: legend }),
|
|
2798
|
+
description && as === "fieldset" && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: cn("col-span-full text-xs text-muted-foreground", descriptionClassName), children: description }),
|
|
2785
2799
|
children
|
|
2786
2800
|
]
|
|
2787
2801
|
}
|
|
@@ -4890,6 +4904,7 @@ function Image2({
|
|
|
4890
4904
|
height = 630,
|
|
4891
4905
|
className,
|
|
4892
4906
|
imgClassName,
|
|
4907
|
+
sizes,
|
|
4893
4908
|
style
|
|
4894
4909
|
}) {
|
|
4895
4910
|
const [stage, setStage] = React50.useState(0);
|
|
@@ -4911,6 +4926,7 @@ function Image2({
|
|
|
4911
4926
|
loading: priority ? "eager" : "lazy",
|
|
4912
4927
|
fetchPriority: priority ? "high" : "auto",
|
|
4913
4928
|
decoding: "async",
|
|
4929
|
+
sizes,
|
|
4914
4930
|
className: cn(className, imgClassName),
|
|
4915
4931
|
style,
|
|
4916
4932
|
onError
|
|
@@ -4919,9 +4935,75 @@ function Image2({
|
|
|
4919
4935
|
}
|
|
4920
4936
|
Image2.displayName = "Image";
|
|
4921
4937
|
|
|
4938
|
+
// src/components/cover-image/CoverImage.tsx
|
|
4939
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4940
|
+
var aspectClasses = {
|
|
4941
|
+
video: "aspect-video",
|
|
4942
|
+
square: "aspect-square",
|
|
4943
|
+
wide: "aspect-[2/1]"
|
|
4944
|
+
};
|
|
4945
|
+
var gradients = [
|
|
4946
|
+
"linear-gradient(135deg, hsl(var(--primary) / 0.18), hsl(var(--info) / 0.10))",
|
|
4947
|
+
"linear-gradient(135deg, hsl(var(--info) / 0.16), hsl(var(--primary) / 0.08))",
|
|
4948
|
+
"linear-gradient(135deg, hsl(var(--warning) / 0.14), hsl(var(--primary) / 0.10))",
|
|
4949
|
+
"linear-gradient(135deg, hsl(var(--success) / 0.14), hsl(var(--info) / 0.08))"
|
|
4950
|
+
];
|
|
4951
|
+
function hashSeed(seed) {
|
|
4952
|
+
let hash = 0;
|
|
4953
|
+
for (let i = 0; i < seed.length; i += 1) {
|
|
4954
|
+
hash = hash * 31 + seed.charCodeAt(i) >>> 0;
|
|
4955
|
+
}
|
|
4956
|
+
return hash;
|
|
4957
|
+
}
|
|
4958
|
+
function seededGradient(seed) {
|
|
4959
|
+
return { backgroundImage: gradients[hashSeed(seed) % gradients.length] };
|
|
4960
|
+
}
|
|
4961
|
+
function CoverImage({
|
|
4962
|
+
src,
|
|
4963
|
+
alt,
|
|
4964
|
+
aspect = "video",
|
|
4965
|
+
seed,
|
|
4966
|
+
priority = false,
|
|
4967
|
+
sizes,
|
|
4968
|
+
fallback,
|
|
4969
|
+
mark,
|
|
4970
|
+
className
|
|
4971
|
+
}) {
|
|
4972
|
+
const preset = aspectClasses[aspect];
|
|
4973
|
+
const aspectStyle = preset === void 0 && typeof aspect === "string" ? { aspectRatio: aspect } : void 0;
|
|
4974
|
+
const fallbackNode = fallback ?? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4975
|
+
"div",
|
|
4976
|
+
{
|
|
4977
|
+
className: "flex h-full w-full items-center justify-center",
|
|
4978
|
+
style: seededGradient(seed ?? alt),
|
|
4979
|
+
"aria-hidden": "true",
|
|
4980
|
+
children: mark && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-muted-foreground [&_svg]:size-8", children: mark })
|
|
4981
|
+
}
|
|
4982
|
+
);
|
|
4983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4984
|
+
"div",
|
|
4985
|
+
{
|
|
4986
|
+
className: cn("relative overflow-hidden rounded-lg bg-muted", preset, className),
|
|
4987
|
+
style: aspectStyle,
|
|
4988
|
+
children: src ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4989
|
+
Image2,
|
|
4990
|
+
{
|
|
4991
|
+
src,
|
|
4992
|
+
alt,
|
|
4993
|
+
priority,
|
|
4994
|
+
sizes,
|
|
4995
|
+
fallback: fallbackNode,
|
|
4996
|
+
className: "h-full w-full object-cover"
|
|
4997
|
+
}
|
|
4998
|
+
) : fallbackNode
|
|
4999
|
+
}
|
|
5000
|
+
);
|
|
5001
|
+
}
|
|
5002
|
+
CoverImage.displayName = "CoverImage";
|
|
5003
|
+
|
|
4922
5004
|
// src/components/text/Text.tsx
|
|
4923
5005
|
var React51 = __toESM(require("react"));
|
|
4924
|
-
var
|
|
5006
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4925
5007
|
var sizeClasses4 = {
|
|
4926
5008
|
xs: "text-xs",
|
|
4927
5009
|
sm: "text-sm",
|
|
@@ -4938,7 +5020,7 @@ var weightClasses = {
|
|
|
4938
5020
|
var Text = React51.forwardRef(
|
|
4939
5021
|
({ inline, size = "base", weight, muted, className, ...props }, ref) => {
|
|
4940
5022
|
const Tag = inline ? "span" : "p";
|
|
4941
|
-
return /* @__PURE__ */ (0,
|
|
5023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4942
5024
|
Tag,
|
|
4943
5025
|
{
|
|
4944
5026
|
ref,
|
|
@@ -4958,7 +5040,7 @@ Text.displayName = "Text";
|
|
|
4958
5040
|
|
|
4959
5041
|
// src/components/heading/Heading.tsx
|
|
4960
5042
|
var React52 = __toESM(require("react"));
|
|
4961
|
-
var
|
|
5043
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4962
5044
|
var levelClasses = {
|
|
4963
5045
|
1: "text-4xl",
|
|
4964
5046
|
2: "text-3xl",
|
|
@@ -4978,7 +5060,7 @@ var sizeClasses5 = {
|
|
|
4978
5060
|
var Heading = React52.forwardRef(
|
|
4979
5061
|
({ level, size, muted, className, ...props }, ref) => {
|
|
4980
5062
|
const Tag = `h${level}`;
|
|
4981
|
-
return /* @__PURE__ */ (0,
|
|
5063
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4982
5064
|
Tag,
|
|
4983
5065
|
{
|
|
4984
5066
|
ref,
|
|
@@ -4997,17 +5079,19 @@ Heading.displayName = "Heading";
|
|
|
4997
5079
|
|
|
4998
5080
|
// src/components/empty-state/EmptyState.tsx
|
|
4999
5081
|
var React53 = __toESM(require("react"));
|
|
5000
|
-
var
|
|
5082
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5001
5083
|
function isActionObject(value) {
|
|
5002
5084
|
return typeof value === "object" && value !== null && !React53.isValidElement(value) && "label" in value;
|
|
5003
5085
|
}
|
|
5004
|
-
function renderAction(action) {
|
|
5086
|
+
function renderAction(action, linkComponent, linkHrefProp = "href") {
|
|
5005
5087
|
if (!isActionObject(action)) return action;
|
|
5006
5088
|
const { label, onClick, href, variant } = action;
|
|
5007
5089
|
if (href) {
|
|
5008
|
-
|
|
5090
|
+
const LinkEl = linkComponent ?? "a";
|
|
5091
|
+
const destination = linkHrefProp === "to" ? { to: href } : { href };
|
|
5092
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { variant, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(LinkEl, { ...destination, children: label }) });
|
|
5009
5093
|
}
|
|
5010
|
-
return /* @__PURE__ */ (0,
|
|
5094
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { variant, onClick, children: label });
|
|
5011
5095
|
}
|
|
5012
5096
|
var EmptyState = React53.forwardRef(function EmptyState2({
|
|
5013
5097
|
icon,
|
|
@@ -5018,27 +5102,35 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
5018
5102
|
secondaryAction,
|
|
5019
5103
|
titleAs: Title = "p",
|
|
5020
5104
|
size = "md",
|
|
5105
|
+
align = "center",
|
|
5106
|
+
tone = "plain",
|
|
5107
|
+
linkComponent,
|
|
5108
|
+
linkHrefProp = "href",
|
|
5021
5109
|
className,
|
|
5022
5110
|
children,
|
|
5023
5111
|
...props
|
|
5024
5112
|
}, ref) {
|
|
5025
|
-
const primaryAction = renderAction(action) ?? actions;
|
|
5026
|
-
|
|
5113
|
+
const primaryAction = renderAction(action, linkComponent, linkHrefProp) ?? actions;
|
|
5114
|
+
const start = align === "start";
|
|
5115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
5027
5116
|
"div",
|
|
5028
5117
|
{
|
|
5029
5118
|
ref,
|
|
5030
5119
|
className: cn(
|
|
5031
|
-
"flex flex-col
|
|
5120
|
+
"flex flex-col rounded-lg text-center",
|
|
5121
|
+
start ? "items-start text-left" : "items-center text-center",
|
|
5122
|
+
"justify-center",
|
|
5123
|
+
tone === "panel" ? "border border-border bg-muted" : "border border-dashed border-border",
|
|
5032
5124
|
size === "md" ? "gap-3 px-6 py-12" : "gap-2 px-4 py-6",
|
|
5033
5125
|
className
|
|
5034
5126
|
),
|
|
5035
5127
|
...props,
|
|
5036
5128
|
children: [
|
|
5037
|
-
icon && /* @__PURE__ */ (0,
|
|
5038
|
-
/* @__PURE__ */ (0,
|
|
5039
|
-
description && /* @__PURE__ */ (0,
|
|
5129
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "text-muted-foreground [&_svg]:size-8", children: icon }),
|
|
5130
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Title, { className: cn("font-semibold", size === "md" ? "text-base" : "text-sm"), children: title }),
|
|
5131
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: cn("max-w-sm text-sm text-muted-foreground", start && "max-w-md"), children: description }),
|
|
5040
5132
|
children,
|
|
5041
|
-
(primaryAction || secondaryAction) && /* @__PURE__ */ (0,
|
|
5133
|
+
(primaryAction || secondaryAction) && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: cn("mt-1 flex flex-wrap items-center gap-2", start ? "justify-start" : "justify-center"), children: [
|
|
5042
5134
|
primaryAction,
|
|
5043
5135
|
secondaryAction
|
|
5044
5136
|
] })
|
|
@@ -5049,7 +5141,7 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
5049
5141
|
|
|
5050
5142
|
// src/components/page-header/PageHeader.tsx
|
|
5051
5143
|
var React54 = __toESM(require("react"));
|
|
5052
|
-
var
|
|
5144
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5053
5145
|
var sizeClasses6 = {
|
|
5054
5146
|
sm: "text-xl",
|
|
5055
5147
|
md: "text-2xl",
|
|
@@ -5058,17 +5150,17 @@ var sizeClasses6 = {
|
|
|
5058
5150
|
};
|
|
5059
5151
|
var PageHeader = React54.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
5060
5152
|
const supporting = description ?? subtitle;
|
|
5061
|
-
return /* @__PURE__ */ (0,
|
|
5062
|
-
breadcrumbs && /* @__PURE__ */ (0,
|
|
5063
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
5064
|
-
/* @__PURE__ */ (0,
|
|
5065
|
-
/* @__PURE__ */ (0,
|
|
5066
|
-
/* @__PURE__ */ (0,
|
|
5067
|
-
supporting && /* @__PURE__ */ (0,
|
|
5153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { ref, className: cn("flex flex-col gap-2", align === "center" && "items-center text-center", className), ...props, children: [
|
|
5154
|
+
breadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "text-sm text-muted-foreground", children: breadcrumbs }),
|
|
5155
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: cn("text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
5156
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: cn("flex w-full flex-wrap items-start justify-between gap-3", align === "center" && "justify-center"), children: [
|
|
5157
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
5158
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("h1", { className: cn("font-semibold tracking-tight", sizeClasses6[size], titleClassName), children: title }),
|
|
5159
|
+
supporting && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: cn("mt-2 max-w-2xl text-base text-muted-foreground", descriptionClassName), children: supporting })
|
|
5068
5160
|
] }),
|
|
5069
|
-
actions && /* @__PURE__ */ (0,
|
|
5161
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
5070
5162
|
] }),
|
|
5071
|
-
children && /* @__PURE__ */ (0,
|
|
5163
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "mt-2", children })
|
|
5072
5164
|
] });
|
|
5073
5165
|
});
|
|
5074
5166
|
|
|
@@ -5089,7 +5181,7 @@ function documentHead({
|
|
|
5089
5181
|
|
|
5090
5182
|
// src/components/section-heading/SectionHeading.tsx
|
|
5091
5183
|
var React55 = __toESM(require("react"));
|
|
5092
|
-
var
|
|
5184
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5093
5185
|
var sizeClasses7 = {
|
|
5094
5186
|
sm: "text-lg",
|
|
5095
5187
|
md: "text-2xl",
|
|
@@ -5097,7 +5189,7 @@ var sizeClasses7 = {
|
|
|
5097
5189
|
};
|
|
5098
5190
|
var SectionHeading = React55.forwardRef(function SectionHeading2({ title, description, eyebrow, actions, level = 2, align = "left", size = "md", titleClassName, descriptionClassName, eyebrowClassName, className, ...props }, ref) {
|
|
5099
5191
|
const Heading2 = `h${level}`;
|
|
5100
|
-
return /* @__PURE__ */ (0,
|
|
5192
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
5101
5193
|
"div",
|
|
5102
5194
|
{
|
|
5103
5195
|
ref,
|
|
@@ -5108,12 +5200,12 @@ var SectionHeading = React55.forwardRef(function SectionHeading2({ title, descri
|
|
|
5108
5200
|
),
|
|
5109
5201
|
...props,
|
|
5110
5202
|
children: [
|
|
5111
|
-
/* @__PURE__ */ (0,
|
|
5112
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
5113
|
-
/* @__PURE__ */ (0,
|
|
5114
|
-
description && /* @__PURE__ */ (0,
|
|
5203
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
5204
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: cn("mb-1 text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
5205
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Heading2, { className: cn("font-semibold tracking-tight", sizeClasses7[size], titleClassName), children: title }),
|
|
5206
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: cn("mt-2 max-w-2xl text-muted-foreground", align === "center" ? "mx-auto" : "", descriptionClassName), children: description })
|
|
5115
5207
|
] }),
|
|
5116
|
-
actions && /* @__PURE__ */ (0,
|
|
5208
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
5117
5209
|
]
|
|
5118
5210
|
}
|
|
5119
5211
|
);
|
|
@@ -5121,7 +5213,7 @@ var SectionHeading = React55.forwardRef(function SectionHeading2({ title, descri
|
|
|
5121
5213
|
|
|
5122
5214
|
// src/components/metric-card/MetricCard.tsx
|
|
5123
5215
|
var React56 = __toESM(require("react"));
|
|
5124
|
-
var
|
|
5216
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5125
5217
|
var trendClasses = {
|
|
5126
5218
|
up: "text-success",
|
|
5127
5219
|
down: "text-destructive",
|
|
@@ -5138,7 +5230,7 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
5138
5230
|
const heading = label ?? title;
|
|
5139
5231
|
const supporting = hint ?? description;
|
|
5140
5232
|
if (loading) {
|
|
5141
|
-
return /* @__PURE__ */ (0,
|
|
5233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
5142
5234
|
"div",
|
|
5143
5235
|
{
|
|
5144
5236
|
ref,
|
|
@@ -5146,41 +5238,41 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
5146
5238
|
className: cn("rounded-xl border border-border bg-card p-5", className),
|
|
5147
5239
|
...props,
|
|
5148
5240
|
children: [
|
|
5149
|
-
/* @__PURE__ */ (0,
|
|
5150
|
-
heading && /* @__PURE__ */ (0,
|
|
5151
|
-
icon && /* @__PURE__ */ (0,
|
|
5241
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
|
|
5242
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
5243
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
5152
5244
|
] }),
|
|
5153
|
-
/* @__PURE__ */ (0,
|
|
5154
|
-
/* @__PURE__ */ (0,
|
|
5245
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { "aria-hidden": "true", className: "mt-3 block h-7 w-24 animate-pulse rounded-md bg-muted" }),
|
|
5246
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "sr-only", children: "Loading" })
|
|
5155
5247
|
]
|
|
5156
5248
|
}
|
|
5157
5249
|
);
|
|
5158
5250
|
}
|
|
5159
|
-
return /* @__PURE__ */ (0,
|
|
5160
|
-
/* @__PURE__ */ (0,
|
|
5161
|
-
heading && /* @__PURE__ */ (0,
|
|
5162
|
-
icon && /* @__PURE__ */ (0,
|
|
5251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { ref, className: cn("rounded-xl border border-border bg-card p-5", className), ...props, children: [
|
|
5252
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
|
|
5253
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
5254
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
5163
5255
|
] }),
|
|
5164
|
-
/* @__PURE__ */ (0,
|
|
5165
|
-
(delta || supporting) && /* @__PURE__ */ (0,
|
|
5166
|
-
delta && /* @__PURE__ */ (0,
|
|
5167
|
-
/* @__PURE__ */ (0,
|
|
5256
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: cn("mt-2 text-2xl font-semibold tabular-nums", toneClasses[tone]), children: value }),
|
|
5257
|
+
(delta || supporting) && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("p", { className: "mt-1 flex items-center gap-2 text-sm", children: [
|
|
5258
|
+
delta && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { className: cn("font-medium tabular-nums", trendClasses[trend]), children: [
|
|
5259
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { "aria-hidden": "true", children: trendGlyph[trend] }),
|
|
5168
5260
|
" ",
|
|
5169
5261
|
delta
|
|
5170
5262
|
] }),
|
|
5171
|
-
supporting && /* @__PURE__ */ (0,
|
|
5263
|
+
supporting && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-muted-foreground", children: supporting })
|
|
5172
5264
|
] })
|
|
5173
5265
|
] });
|
|
5174
5266
|
});
|
|
5175
5267
|
|
|
5176
5268
|
// src/components/password-input/PasswordInput.tsx
|
|
5177
5269
|
var React57 = __toESM(require("react"));
|
|
5178
|
-
var
|
|
5270
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5179
5271
|
var PasswordInput = React57.forwardRef(function PasswordInput2({ className, showLabel = "Show password", hideLabel = "Hide password", ...props }, ref) {
|
|
5180
5272
|
const [visible, setVisible] = React57.useState(false);
|
|
5181
|
-
return /* @__PURE__ */ (0,
|
|
5182
|
-
/* @__PURE__ */ (0,
|
|
5183
|
-
/* @__PURE__ */ (0,
|
|
5273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: cn("relative flex items-center", className), children: [
|
|
5274
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Input, { ref, type: visible ? "text" : "password", className: "pr-24", ...props }),
|
|
5275
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5184
5276
|
Button,
|
|
5185
5277
|
{
|
|
5186
5278
|
type: "button",
|
|
@@ -5198,7 +5290,7 @@ var PasswordInput = React57.forwardRef(function PasswordInput2({ className, show
|
|
|
5198
5290
|
|
|
5199
5291
|
// src/components/auth-layout/AuthLayout.tsx
|
|
5200
5292
|
var React58 = __toESM(require("react"));
|
|
5201
|
-
var
|
|
5293
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5202
5294
|
var sizeClasses8 = {
|
|
5203
5295
|
sm: "max-w-sm",
|
|
5204
5296
|
md: "max-w-md",
|
|
@@ -5223,7 +5315,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5223
5315
|
const supporting = description ?? subtitle;
|
|
5224
5316
|
const mark = brand ?? logo;
|
|
5225
5317
|
const widthStyle = maxWidth === void 0 ? void 0 : { maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth };
|
|
5226
|
-
const form = /* @__PURE__ */ (0,
|
|
5318
|
+
const form = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
5227
5319
|
"div",
|
|
5228
5320
|
{
|
|
5229
5321
|
className: cn(
|
|
@@ -5232,8 +5324,8 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5232
5324
|
),
|
|
5233
5325
|
style: widthStyle,
|
|
5234
5326
|
children: [
|
|
5235
|
-
mark && /* @__PURE__ */ (0,
|
|
5236
|
-
/* @__PURE__ */ (0,
|
|
5327
|
+
mark && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-6", children: mark }),
|
|
5328
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
5237
5329
|
"div",
|
|
5238
5330
|
{
|
|
5239
5331
|
className: cn(
|
|
@@ -5242,31 +5334,31 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5242
5334
|
),
|
|
5243
5335
|
style: widthStyle,
|
|
5244
5336
|
children: [
|
|
5245
|
-
/* @__PURE__ */ (0,
|
|
5246
|
-
supporting && /* @__PURE__ */ (0,
|
|
5247
|
-
/* @__PURE__ */ (0,
|
|
5337
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("h1", { className: "text-xl font-semibold tracking-tight", children: title }),
|
|
5338
|
+
supporting && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "mt-1 text-sm text-muted-foreground", children: supporting }),
|
|
5339
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mt-6", children })
|
|
5248
5340
|
]
|
|
5249
5341
|
}
|
|
5250
5342
|
),
|
|
5251
|
-
footer && /* @__PURE__ */ (0,
|
|
5343
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mt-6 text-center text-sm text-muted-foreground", children: footer })
|
|
5252
5344
|
]
|
|
5253
5345
|
}
|
|
5254
5346
|
);
|
|
5255
5347
|
if (split) {
|
|
5256
|
-
return /* @__PURE__ */ (0,
|
|
5348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
5257
5349
|
"div",
|
|
5258
5350
|
{
|
|
5259
5351
|
ref,
|
|
5260
5352
|
className: cn("min-h-screen bg-muted/30 px-4 py-12 lg:px-8", className),
|
|
5261
5353
|
...props,
|
|
5262
|
-
children: /* @__PURE__ */ (0,
|
|
5354
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "mx-auto grid min-h-[calc(100vh-6rem)] w-full max-w-6xl items-center gap-10 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.1fr)]", children: [
|
|
5263
5355
|
form,
|
|
5264
|
-
/* @__PURE__ */ (0,
|
|
5356
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("aside", { className: "w-full", children: aside })
|
|
5265
5357
|
] })
|
|
5266
5358
|
}
|
|
5267
5359
|
);
|
|
5268
5360
|
}
|
|
5269
|
-
return /* @__PURE__ */ (0,
|
|
5361
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
5270
5362
|
"div",
|
|
5271
5363
|
{
|
|
5272
5364
|
ref,
|
|
@@ -5282,7 +5374,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5282
5374
|
|
|
5283
5375
|
// src/components/filter-bar/FilterBar.tsx
|
|
5284
5376
|
var React59 = __toESM(require("react"));
|
|
5285
|
-
var
|
|
5377
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5286
5378
|
var FilterBar = React59.forwardRef(function FilterBar2({
|
|
5287
5379
|
searchValue,
|
|
5288
5380
|
onSearchChange,
|
|
@@ -5298,7 +5390,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5298
5390
|
children,
|
|
5299
5391
|
...props
|
|
5300
5392
|
}, ref) {
|
|
5301
|
-
return /* @__PURE__ */ (0,
|
|
5393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
5302
5394
|
"div",
|
|
5303
5395
|
{
|
|
5304
5396
|
ref,
|
|
@@ -5309,7 +5401,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5309
5401
|
),
|
|
5310
5402
|
...props,
|
|
5311
5403
|
children: [
|
|
5312
|
-
onSearchChange !== void 0 && /* @__PURE__ */ (0,
|
|
5404
|
+
onSearchChange !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
5313
5405
|
Input,
|
|
5314
5406
|
{
|
|
5315
5407
|
type: "search",
|
|
@@ -5320,21 +5412,21 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5320
5412
|
className: "h-9 w-full min-w-40 flex-1 sm:w-auto"
|
|
5321
5413
|
}
|
|
5322
5414
|
),
|
|
5323
|
-
/* @__PURE__ */ (0,
|
|
5324
|
-
onOpenFilters && /* @__PURE__ */ (0,
|
|
5415
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "flex flex-wrap items-center gap-2", children }),
|
|
5416
|
+
onOpenFilters && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Button, { type: "button", variant: "outline", size: "sm", onClick: onOpenFilters, children: [
|
|
5325
5417
|
filtersLabel,
|
|
5326
5418
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
5327
5419
|
] }),
|
|
5328
|
-
onReset && /* @__PURE__ */ (0,
|
|
5420
|
+
onReset && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, children: [
|
|
5329
5421
|
"Reset",
|
|
5330
5422
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
5331
5423
|
] }),
|
|
5332
|
-
resultsCount !== void 0 && /* @__PURE__ */ (0,
|
|
5424
|
+
resultsCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("span", { className: "ml-auto text-sm text-muted-foreground", children: [
|
|
5333
5425
|
resultsCount,
|
|
5334
5426
|
" ",
|
|
5335
5427
|
resultsLabel
|
|
5336
5428
|
] }),
|
|
5337
|
-
trailing && /* @__PURE__ */ (0,
|
|
5429
|
+
trailing && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: cn("flex items-center gap-2", resultsCount === void 0 && "ml-auto"), children: trailing })
|
|
5338
5430
|
]
|
|
5339
5431
|
}
|
|
5340
5432
|
);
|
|
@@ -5342,7 +5434,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5342
5434
|
|
|
5343
5435
|
// src/components/date-picker/DatePicker.tsx
|
|
5344
5436
|
var React60 = __toESM(require("react"));
|
|
5345
|
-
var
|
|
5437
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5346
5438
|
var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
5347
5439
|
const [internal, setInternal] = React60.useState(defaultValue ?? "");
|
|
5348
5440
|
const current = value ?? internal;
|
|
@@ -5350,8 +5442,8 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5350
5442
|
if (value === void 0) setInternal(next);
|
|
5351
5443
|
onValueChange?.(next);
|
|
5352
5444
|
};
|
|
5353
|
-
return /* @__PURE__ */ (0,
|
|
5354
|
-
/* @__PURE__ */ (0,
|
|
5445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: cn("relative flex items-center", className), children: [
|
|
5446
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
5355
5447
|
Input,
|
|
5356
5448
|
{
|
|
5357
5449
|
ref,
|
|
@@ -5365,7 +5457,7 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5365
5457
|
...props
|
|
5366
5458
|
}
|
|
5367
5459
|
),
|
|
5368
|
-
clearable && current && /* @__PURE__ */ (0,
|
|
5460
|
+
clearable && current && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
5369
5461
|
"button",
|
|
5370
5462
|
{
|
|
5371
5463
|
type: "button",
|
|
@@ -5451,7 +5543,7 @@ function computePosition({
|
|
|
5451
5543
|
}
|
|
5452
5544
|
|
|
5453
5545
|
// src/components/popover/Popover.tsx
|
|
5454
|
-
var
|
|
5546
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5455
5547
|
var PopoverContext = React61.createContext({
|
|
5456
5548
|
open: false,
|
|
5457
5549
|
setOpen: () => {
|
|
@@ -5486,7 +5578,7 @@ var Popover = React61.forwardRef(
|
|
|
5486
5578
|
},
|
|
5487
5579
|
[open, onOpenChange]
|
|
5488
5580
|
);
|
|
5489
|
-
return /* @__PURE__ */ (0,
|
|
5581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5490
5582
|
PopoverContext.Provider,
|
|
5491
5583
|
{
|
|
5492
5584
|
value: { open: current, setOpen, triggerId, contentId, wrapperRef, anchorRef, triggerRef },
|
|
@@ -5507,7 +5599,7 @@ var PopoverTrigger = React61.forwardRef(
|
|
|
5507
5599
|
},
|
|
5508
5600
|
[ref, triggerRef]
|
|
5509
5601
|
);
|
|
5510
|
-
return /* @__PURE__ */ (0,
|
|
5602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5511
5603
|
"button",
|
|
5512
5604
|
{
|
|
5513
5605
|
ref: setRefs,
|
|
@@ -5543,7 +5635,7 @@ var PopoverAnchor = React61.forwardRef(
|
|
|
5543
5635
|
},
|
|
5544
5636
|
[anchorRef, ref]
|
|
5545
5637
|
);
|
|
5546
|
-
return /* @__PURE__ */ (0,
|
|
5638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { ref: setRefs, className: cn("inline-block", className), ...props, children });
|
|
5547
5639
|
}
|
|
5548
5640
|
);
|
|
5549
5641
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
@@ -5643,7 +5735,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5643
5735
|
}, [open, pos]);
|
|
5644
5736
|
if (!open || typeof document === "undefined") return null;
|
|
5645
5737
|
return (0, import_react_dom7.createPortal)(
|
|
5646
|
-
/* @__PURE__ */ (0,
|
|
5738
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5647
5739
|
"div",
|
|
5648
5740
|
{
|
|
5649
5741
|
ref: (node) => {
|
|
@@ -5688,7 +5780,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5688
5780
|
PopoverContent.displayName = "PopoverContent";
|
|
5689
5781
|
|
|
5690
5782
|
// src/components/date-picker-popover/DatePickerPopover.tsx
|
|
5691
|
-
var
|
|
5783
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5692
5784
|
var DatePickerPopover = React62.forwardRef(
|
|
5693
5785
|
({
|
|
5694
5786
|
value,
|
|
@@ -5721,9 +5813,9 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5721
5813
|
[ref]
|
|
5722
5814
|
);
|
|
5723
5815
|
const label = value ? formatDateLabel(value, locale) : placeholder;
|
|
5724
|
-
return /* @__PURE__ */ (0,
|
|
5725
|
-
/* @__PURE__ */ (0,
|
|
5726
|
-
/* @__PURE__ */ (0,
|
|
5816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
|
|
5817
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
5818
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5727
5819
|
PopoverTrigger,
|
|
5728
5820
|
{
|
|
5729
5821
|
ref: setTriggerRef,
|
|
@@ -5741,7 +5833,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5741
5833
|
children: label
|
|
5742
5834
|
}
|
|
5743
5835
|
),
|
|
5744
|
-
/* @__PURE__ */ (0,
|
|
5836
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(PopoverContent, { side, align, matchTriggerWidth: true, className: "w-auto p-3", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5745
5837
|
Calendar,
|
|
5746
5838
|
{
|
|
5747
5839
|
value,
|
|
@@ -5759,7 +5851,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5759
5851
|
}
|
|
5760
5852
|
) })
|
|
5761
5853
|
] }),
|
|
5762
|
-
name ? /* @__PURE__ */ (0,
|
|
5854
|
+
name ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("input", { type: "hidden", name, value: value ?? "", required }) : null
|
|
5763
5855
|
] });
|
|
5764
5856
|
}
|
|
5765
5857
|
);
|
|
@@ -5767,7 +5859,7 @@ DatePickerPopover.displayName = "DatePickerPopover";
|
|
|
5767
5859
|
|
|
5768
5860
|
// src/components/time-picker/TimePicker.tsx
|
|
5769
5861
|
var React63 = __toESM(require("react"));
|
|
5770
|
-
var
|
|
5862
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5771
5863
|
var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
5772
5864
|
const [internal, setInternal] = React63.useState(defaultValue ?? "");
|
|
5773
5865
|
const current = value ?? internal;
|
|
@@ -5775,8 +5867,8 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5775
5867
|
if (value === void 0) setInternal(next);
|
|
5776
5868
|
onValueChange?.(next);
|
|
5777
5869
|
};
|
|
5778
|
-
return /* @__PURE__ */ (0,
|
|
5779
|
-
/* @__PURE__ */ (0,
|
|
5870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: cn("relative flex items-center", className), children: [
|
|
5871
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
5780
5872
|
Input,
|
|
5781
5873
|
{
|
|
5782
5874
|
ref,
|
|
@@ -5790,7 +5882,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5790
5882
|
...props
|
|
5791
5883
|
}
|
|
5792
5884
|
),
|
|
5793
|
-
clearable && current && /* @__PURE__ */ (0,
|
|
5885
|
+
clearable && current && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
5794
5886
|
"button",
|
|
5795
5887
|
{
|
|
5796
5888
|
type: "button",
|
|
@@ -5805,7 +5897,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5805
5897
|
|
|
5806
5898
|
// src/components/stepper/Stepper.tsx
|
|
5807
5899
|
var React64 = __toESM(require("react"));
|
|
5808
|
-
var
|
|
5900
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5809
5901
|
var Stepper = React64.forwardRef(function Stepper2({
|
|
5810
5902
|
steps,
|
|
5811
5903
|
current,
|
|
@@ -5829,7 +5921,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5829
5921
|
const verticalTitlePad = size === "sm" ? "pt-0.5" : "pt-1";
|
|
5830
5922
|
const connectorTop = variant === "dots" ? size === "sm" ? "mt-1" : "mt-[5px]" : size === "sm" ? "mt-3" : "mt-3.5";
|
|
5831
5923
|
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";
|
|
5832
|
-
return /* @__PURE__ */ (0,
|
|
5924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5833
5925
|
"ol",
|
|
5834
5926
|
{
|
|
5835
5927
|
ref,
|
|
@@ -5843,7 +5935,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5843
5935
|
const isLast = index === steps.length - 1;
|
|
5844
5936
|
const titleCentered = alignTitles === "center" && !step.description;
|
|
5845
5937
|
const below = !vertical && labelPlacement === "below";
|
|
5846
|
-
const marker = /* @__PURE__ */ (0,
|
|
5938
|
+
const marker = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5847
5939
|
"span",
|
|
5848
5940
|
{
|
|
5849
5941
|
"aria-hidden": "true",
|
|
@@ -5865,8 +5957,8 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5865
5957
|
children: variant === "numbered" ? state === "complete" ? "\u2713" : index + 1 : null
|
|
5866
5958
|
}
|
|
5867
5959
|
);
|
|
5868
|
-
const label = /* @__PURE__ */ (0,
|
|
5869
|
-
/* @__PURE__ */ (0,
|
|
5960
|
+
const label = /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("span", { className: "min-w-0", children: [
|
|
5961
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5870
5962
|
"span",
|
|
5871
5963
|
{
|
|
5872
5964
|
className: cn(
|
|
@@ -5878,7 +5970,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5878
5970
|
children: step.label
|
|
5879
5971
|
}
|
|
5880
5972
|
),
|
|
5881
|
-
step.description && /* @__PURE__ */ (0,
|
|
5973
|
+
step.description && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5882
5974
|
"span",
|
|
5883
5975
|
{
|
|
5884
5976
|
className: cn(
|
|
@@ -5889,9 +5981,9 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5889
5981
|
children: step.description
|
|
5890
5982
|
}
|
|
5891
5983
|
),
|
|
5892
|
-
/* @__PURE__ */ (0,
|
|
5984
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "sr-only", children: state === "complete" ? labels?.completed ?? " (completed)" : state === "current" ? labels?.current ?? " (current step)" : labels?.upcoming ?? " (upcoming)" })
|
|
5893
5985
|
] });
|
|
5894
|
-
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ (0,
|
|
5986
|
+
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5895
5987
|
"button",
|
|
5896
5988
|
{
|
|
5897
5989
|
type: "button",
|
|
@@ -5900,29 +5992,29 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5900
5992
|
className: cn(rowClassName, focusClass),
|
|
5901
5993
|
children
|
|
5902
5994
|
}
|
|
5903
|
-
) : /* @__PURE__ */ (0,
|
|
5995
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
5904
5996
|
if (vertical) {
|
|
5905
|
-
return /* @__PURE__ */ (0,
|
|
5906
|
-
/* @__PURE__ */ (0,
|
|
5907
|
-
/* @__PURE__ */ (0,
|
|
5997
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { className: "flex", children: renderRow(
|
|
5998
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
5999
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-col items-center", children: [
|
|
5908
6000
|
marker,
|
|
5909
|
-
!isLast && /* @__PURE__ */ (0,
|
|
6001
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { "aria-hidden": "true", className: "my-1 w-px flex-1 rounded-full bg-border" })
|
|
5910
6002
|
] }),
|
|
5911
|
-
/* @__PURE__ */ (0,
|
|
6003
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: cn("min-w-0 pb-6", titleCentered && verticalTitlePad), children: label })
|
|
5912
6004
|
] }),
|
|
5913
6005
|
"flex w-full items-stretch gap-3 text-left"
|
|
5914
6006
|
) }, step.label);
|
|
5915
6007
|
}
|
|
5916
6008
|
if (below) {
|
|
5917
|
-
return /* @__PURE__ */ (0,
|
|
6009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("li", { className: "flex min-w-0 flex-1 items-start gap-2", children: [
|
|
5918
6010
|
renderRow(
|
|
5919
|
-
/* @__PURE__ */ (0,
|
|
6011
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
5920
6012
|
marker,
|
|
5921
6013
|
label
|
|
5922
6014
|
] }),
|
|
5923
6015
|
"flex min-w-0 flex-1 flex-col items-center gap-2 text-center"
|
|
5924
6016
|
),
|
|
5925
|
-
!isLast && /* @__PURE__ */ (0,
|
|
6017
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5926
6018
|
"span",
|
|
5927
6019
|
{
|
|
5928
6020
|
"aria-hidden": "true",
|
|
@@ -5931,15 +6023,15 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5931
6023
|
)
|
|
5932
6024
|
] }, step.label);
|
|
5933
6025
|
}
|
|
5934
|
-
return /* @__PURE__ */ (0,
|
|
6026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("li", { className: "flex min-w-0 items-start gap-2", children: [
|
|
5935
6027
|
renderRow(
|
|
5936
|
-
/* @__PURE__ */ (0,
|
|
6028
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
5937
6029
|
marker,
|
|
5938
6030
|
label
|
|
5939
6031
|
] }),
|
|
5940
6032
|
cn("flex min-w-0 text-left", gapClass, titleCentered ? "items-center" : "items-start")
|
|
5941
6033
|
),
|
|
5942
|
-
!isLast && /* @__PURE__ */ (0,
|
|
6034
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5943
6035
|
"span",
|
|
5944
6036
|
{
|
|
5945
6037
|
"aria-hidden": "true",
|
|
@@ -5954,7 +6046,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5954
6046
|
|
|
5955
6047
|
// src/components/file-upload/FileUpload.tsx
|
|
5956
6048
|
var React65 = __toESM(require("react"));
|
|
5957
|
-
var
|
|
6049
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5958
6050
|
function formatSize(bytes) {
|
|
5959
6051
|
if (bytes < 1024) return `${bytes} B`;
|
|
5960
6052
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -6001,8 +6093,8 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6001
6093
|
const list = Array.from(incoming);
|
|
6002
6094
|
commit(multiple ? [...current, ...list] : list.slice(0, 1));
|
|
6003
6095
|
};
|
|
6004
|
-
return /* @__PURE__ */ (0,
|
|
6005
|
-
/* @__PURE__ */ (0,
|
|
6096
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: cn("flex flex-col gap-3", className), children: [
|
|
6097
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
6006
6098
|
"div",
|
|
6007
6099
|
{
|
|
6008
6100
|
onDragOver: (event) => {
|
|
@@ -6023,9 +6115,9 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6023
6115
|
disabled && "opacity-50"
|
|
6024
6116
|
),
|
|
6025
6117
|
children: [
|
|
6026
|
-
/* @__PURE__ */ (0,
|
|
6118
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
6027
6119
|
label,
|
|
6028
|
-
/* @__PURE__ */ (0,
|
|
6120
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6029
6121
|
"input",
|
|
6030
6122
|
{
|
|
6031
6123
|
ref,
|
|
@@ -6043,15 +6135,15 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6043
6135
|
}
|
|
6044
6136
|
)
|
|
6045
6137
|
] }),
|
|
6046
|
-
/* @__PURE__ */ (0,
|
|
6138
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "mt-1 text-xs text-muted-foreground", children: hint ?? (accept ? `Accepted: ${accept}` : "Any file type") })
|
|
6047
6139
|
]
|
|
6048
6140
|
}
|
|
6049
6141
|
),
|
|
6050
|
-
current.length > 0 && /* @__PURE__ */ (0,
|
|
6051
|
-
/* @__PURE__ */ (0,
|
|
6052
|
-
/* @__PURE__ */ (0,
|
|
6053
|
-
/* @__PURE__ */ (0,
|
|
6054
|
-
progress?.[file.name] !== void 0 && /* @__PURE__ */ (0,
|
|
6142
|
+
current.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("ul", { "aria-label": selectedFilesLabel, className: "space-y-2", children: current.map((file) => /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("li", { className: "flex items-center justify-between gap-3 rounded-md border border-border px-3 py-2", children: [
|
|
6143
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "min-w-0", children: [
|
|
6144
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "truncate text-sm", children: file.name }),
|
|
6145
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "text-xs text-muted-foreground", children: formatSize(file.size) }),
|
|
6146
|
+
progress?.[file.name] !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6055
6147
|
"div",
|
|
6056
6148
|
{
|
|
6057
6149
|
role: "progressbar",
|
|
@@ -6060,11 +6152,11 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6060
6152
|
"aria-valuemax": 100,
|
|
6061
6153
|
"aria-label": uploadingLabel(file),
|
|
6062
6154
|
className: "mt-1 h-1.5 w-40 overflow-hidden rounded-full bg-muted",
|
|
6063
|
-
children: /* @__PURE__ */ (0,
|
|
6155
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "h-full bg-primary", style: { width: `${progress[file.name]}%` } })
|
|
6064
6156
|
}
|
|
6065
6157
|
)
|
|
6066
6158
|
] }),
|
|
6067
|
-
/* @__PURE__ */ (0,
|
|
6159
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6068
6160
|
"button",
|
|
6069
6161
|
{
|
|
6070
6162
|
type: "button",
|
|
@@ -6080,17 +6172,17 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6080
6172
|
|
|
6081
6173
|
// src/components/timeline/Timeline.tsx
|
|
6082
6174
|
var React66 = __toESM(require("react"));
|
|
6083
|
-
var
|
|
6175
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6084
6176
|
var Timeline = React66.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
6085
|
-
return /* @__PURE__ */ (0,
|
|
6086
|
-
index < items.length - 1 && /* @__PURE__ */ (0,
|
|
6177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("ol", { ref, className: cn("relative flex flex-col gap-6", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("li", { className: "relative flex gap-4", children: [
|
|
6178
|
+
index < items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6087
6179
|
"span",
|
|
6088
6180
|
{
|
|
6089
6181
|
"aria-hidden": "true",
|
|
6090
6182
|
className: "absolute left-[5.5px] top-4 -bottom-7 w-px bg-border"
|
|
6091
6183
|
}
|
|
6092
6184
|
),
|
|
6093
|
-
/* @__PURE__ */ (0,
|
|
6185
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "relative z-10 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6094
6186
|
"span",
|
|
6095
6187
|
{
|
|
6096
6188
|
"aria-hidden": "true",
|
|
@@ -6100,22 +6192,22 @@ var Timeline = React66.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
6100
6192
|
)
|
|
6101
6193
|
}
|
|
6102
6194
|
) }),
|
|
6103
|
-
/* @__PURE__ */ (0,
|
|
6104
|
-
item.period && /* @__PURE__ */ (0,
|
|
6105
|
-
/* @__PURE__ */ (0,
|
|
6106
|
-
item.description && /* @__PURE__ */ (0,
|
|
6107
|
-
item.icon && /* @__PURE__ */ (0,
|
|
6195
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "min-w-0 pb-1", children: [
|
|
6196
|
+
item.period && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
|
|
6197
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
|
|
6198
|
+
item.description && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "mt-1 text-sm text-muted-foreground", children: item.description }),
|
|
6199
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "mt-1 text-muted-foreground [&_svg]:size-4", children: item.icon })
|
|
6108
6200
|
] })
|
|
6109
6201
|
] }, `${item.title}-${index}`)) });
|
|
6110
6202
|
});
|
|
6111
6203
|
|
|
6112
6204
|
// src/components/block/Block.tsx
|
|
6113
6205
|
var React67 = __toESM(require("react"));
|
|
6114
|
-
var
|
|
6206
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
6115
6207
|
var Block = React67.forwardRef(
|
|
6116
6208
|
({ as = "div", inline, muted, className, ...props }, ref) => {
|
|
6117
6209
|
const Tag = inline ? "span" : as;
|
|
6118
|
-
return /* @__PURE__ */ (0,
|
|
6210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6119
6211
|
Tag,
|
|
6120
6212
|
{
|
|
6121
6213
|
ref,
|
|
@@ -6129,7 +6221,7 @@ Block.displayName = "Block";
|
|
|
6129
6221
|
|
|
6130
6222
|
// src/components/flex/Flex.tsx
|
|
6131
6223
|
var React68 = __toESM(require("react"));
|
|
6132
|
-
var
|
|
6224
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
6133
6225
|
var justifyClasses = {
|
|
6134
6226
|
start: "justify-start",
|
|
6135
6227
|
center: "justify-center",
|
|
@@ -6149,7 +6241,7 @@ var Flex = React68.forwardRef(
|
|
|
6149
6241
|
({ direction = "row", align, justify, wrap, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6150
6242
|
const Tag = as;
|
|
6151
6243
|
const gapResolved = resolveGap(gap);
|
|
6152
|
-
return /* @__PURE__ */ (0,
|
|
6244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6153
6245
|
Tag,
|
|
6154
6246
|
{
|
|
6155
6247
|
ref,
|
|
@@ -6184,7 +6276,7 @@ var FlexItem = React68.forwardRef(
|
|
|
6184
6276
|
...shrink === false ? { flexShrink: 0 } : typeof shrink === "string" && shrink ? { flexShrink: Number(shrink) || shrink } : {},
|
|
6185
6277
|
...basis ? { flexBasis: basis } : {}
|
|
6186
6278
|
};
|
|
6187
|
-
return /* @__PURE__ */ (0,
|
|
6279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6188
6280
|
Tag,
|
|
6189
6281
|
{
|
|
6190
6282
|
ref,
|
|
@@ -6199,7 +6291,7 @@ FlexItem.displayName = "FlexItem";
|
|
|
6199
6291
|
|
|
6200
6292
|
// src/components/grid/Grid.tsx
|
|
6201
6293
|
var React69 = __toESM(require("react"));
|
|
6202
|
-
var
|
|
6294
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
6203
6295
|
var BASE_COLS = {
|
|
6204
6296
|
1: "grid-cols-1",
|
|
6205
6297
|
2: "grid-cols-2",
|
|
@@ -6268,7 +6360,7 @@ var Grid = React69.forwardRef(
|
|
|
6268
6360
|
({ cols, smCols, mdCols, lgCols, minCol, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6269
6361
|
const Tag = as;
|
|
6270
6362
|
const gapResolved = resolveGap(gap);
|
|
6271
|
-
return /* @__PURE__ */ (0,
|
|
6363
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6272
6364
|
Tag,
|
|
6273
6365
|
{
|
|
6274
6366
|
ref,
|
|
@@ -6295,7 +6387,7 @@ Grid.displayName = "Grid";
|
|
|
6295
6387
|
var GridItem = React69.forwardRef(
|
|
6296
6388
|
({ span, smSpan, mdSpan, lgSpan, as = "div", className, ...props }, ref) => {
|
|
6297
6389
|
const Tag = as;
|
|
6298
|
-
return /* @__PURE__ */ (0,
|
|
6390
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6299
6391
|
Tag,
|
|
6300
6392
|
{
|
|
6301
6393
|
ref,
|
|
@@ -6315,7 +6407,7 @@ GridItem.displayName = "GridItem";
|
|
|
6315
6407
|
|
|
6316
6408
|
// src/components/container/Container.tsx
|
|
6317
6409
|
var React70 = __toESM(require("react"));
|
|
6318
|
-
var
|
|
6410
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
6319
6411
|
var widthClasses = {
|
|
6320
6412
|
sm: "max-w-3xl",
|
|
6321
6413
|
md: "max-w-5xl",
|
|
@@ -6331,7 +6423,7 @@ var paddingClasses = {
|
|
|
6331
6423
|
};
|
|
6332
6424
|
var Container = React70.forwardRef(function Container2({ width = "lg", padding = "md", as = "div", className, ...props }, ref) {
|
|
6333
6425
|
const Tag = as;
|
|
6334
|
-
return /* @__PURE__ */ (0,
|
|
6426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6335
6427
|
Tag,
|
|
6336
6428
|
{
|
|
6337
6429
|
ref,
|
|
@@ -6343,7 +6435,7 @@ var Container = React70.forwardRef(function Container2({ width = "lg", padding =
|
|
|
6343
6435
|
|
|
6344
6436
|
// src/components/section/Section.tsx
|
|
6345
6437
|
var React71 = __toESM(require("react"));
|
|
6346
|
-
var
|
|
6438
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
6347
6439
|
var toneClasses2 = {
|
|
6348
6440
|
default: "bg-background text-foreground",
|
|
6349
6441
|
muted: "bg-muted/40 text-foreground",
|
|
@@ -6397,7 +6489,7 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6397
6489
|
}, ref) {
|
|
6398
6490
|
const Tag = as;
|
|
6399
6491
|
const toneStyle = tone === "inverse" ? inverseVars : tone === "brand" ? brandVars : void 0;
|
|
6400
|
-
return /* @__PURE__ */ (0,
|
|
6492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6401
6493
|
Tag,
|
|
6402
6494
|
{
|
|
6403
6495
|
ref,
|
|
@@ -6405,14 +6497,14 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6405
6497
|
className: cn("w-full", toneClasses2[tone], paddingClasses2[padding], className),
|
|
6406
6498
|
style: { ...toneStyle, ...style },
|
|
6407
6499
|
...props,
|
|
6408
|
-
children: container ? /* @__PURE__ */ (0,
|
|
6500
|
+
children: container ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Container, { width, className: containerClassName, children }) : children
|
|
6409
6501
|
}
|
|
6410
6502
|
);
|
|
6411
6503
|
});
|
|
6412
6504
|
|
|
6413
6505
|
// src/components/hero/Hero.tsx
|
|
6414
6506
|
var React72 = __toESM(require("react"));
|
|
6415
|
-
var
|
|
6507
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
6416
6508
|
var titleSizes = {
|
|
6417
6509
|
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
6418
6510
|
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
@@ -6443,7 +6535,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6443
6535
|
const Heading2 = `h${level}`;
|
|
6444
6536
|
const centered = layout === "centered" || align === "center";
|
|
6445
6537
|
const overlay = layout === "overlay";
|
|
6446
|
-
const copy = /* @__PURE__ */ (0,
|
|
6538
|
+
const copy = /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6447
6539
|
"div",
|
|
6448
6540
|
{
|
|
6449
6541
|
className: cn(
|
|
@@ -6452,7 +6544,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6452
6544
|
overlay && "max-w-2xl"
|
|
6453
6545
|
),
|
|
6454
6546
|
children: [
|
|
6455
|
-
badge && /* @__PURE__ */ (0,
|
|
6547
|
+
badge && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6456
6548
|
"div",
|
|
6457
6549
|
{
|
|
6458
6550
|
className: cn(
|
|
@@ -6463,7 +6555,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6463
6555
|
children: badge
|
|
6464
6556
|
}
|
|
6465
6557
|
),
|
|
6466
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
6558
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6467
6559
|
"p",
|
|
6468
6560
|
{
|
|
6469
6561
|
className: cn(
|
|
@@ -6474,7 +6566,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6474
6566
|
children: eyebrow
|
|
6475
6567
|
}
|
|
6476
6568
|
),
|
|
6477
|
-
/* @__PURE__ */ (0,
|
|
6569
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6478
6570
|
Heading2,
|
|
6479
6571
|
{
|
|
6480
6572
|
className: cn(
|
|
@@ -6486,7 +6578,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6486
6578
|
children: title
|
|
6487
6579
|
}
|
|
6488
6580
|
),
|
|
6489
|
-
description && /* @__PURE__ */ (0,
|
|
6581
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6490
6582
|
"p",
|
|
6491
6583
|
{
|
|
6492
6584
|
className: cn(
|
|
@@ -6498,7 +6590,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6498
6590
|
children: description
|
|
6499
6591
|
}
|
|
6500
6592
|
),
|
|
6501
|
-
actions && /* @__PURE__ */ (0,
|
|
6593
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6502
6594
|
"div",
|
|
6503
6595
|
{
|
|
6504
6596
|
className: cn(
|
|
@@ -6512,7 +6604,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6512
6604
|
}
|
|
6513
6605
|
);
|
|
6514
6606
|
if (overlay) {
|
|
6515
|
-
return /* @__PURE__ */ (0,
|
|
6607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6516
6608
|
Tag,
|
|
6517
6609
|
{
|
|
6518
6610
|
ref,
|
|
@@ -6522,7 +6614,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6522
6614
|
),
|
|
6523
6615
|
...props,
|
|
6524
6616
|
children: [
|
|
6525
|
-
media && /* @__PURE__ */ (0,
|
|
6617
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6526
6618
|
"div",
|
|
6527
6619
|
{
|
|
6528
6620
|
className: cn(
|
|
@@ -6532,20 +6624,20 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6532
6624
|
children: media
|
|
6533
6625
|
}
|
|
6534
6626
|
),
|
|
6535
|
-
/* @__PURE__ */ (0,
|
|
6536
|
-
/* @__PURE__ */ (0,
|
|
6627
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { "aria-hidden": "true", className: "absolute inset-0 -z-10 bg-foreground/60" }),
|
|
6628
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "relative w-full px-4 sm:px-6 lg:px-10", children: copy })
|
|
6537
6629
|
]
|
|
6538
6630
|
}
|
|
6539
6631
|
);
|
|
6540
6632
|
}
|
|
6541
6633
|
if (layout === "centered") {
|
|
6542
|
-
return /* @__PURE__ */ (0,
|
|
6634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
6543
6635
|
copy,
|
|
6544
|
-
media && /* @__PURE__ */ (0,
|
|
6636
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
6545
6637
|
] });
|
|
6546
6638
|
}
|
|
6547
6639
|
if (layout === "stacked") {
|
|
6548
|
-
return /* @__PURE__ */ (0,
|
|
6640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6549
6641
|
Tag,
|
|
6550
6642
|
{
|
|
6551
6643
|
ref,
|
|
@@ -6553,20 +6645,20 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6553
6645
|
...props,
|
|
6554
6646
|
children: [
|
|
6555
6647
|
copy,
|
|
6556
|
-
media && /* @__PURE__ */ (0,
|
|
6648
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: cn("min-w-0 w-full", mediaClassName), children: media })
|
|
6557
6649
|
]
|
|
6558
6650
|
}
|
|
6559
6651
|
);
|
|
6560
6652
|
}
|
|
6561
|
-
return /* @__PURE__ */ (0,
|
|
6653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6562
6654
|
Tag,
|
|
6563
6655
|
{
|
|
6564
6656
|
ref,
|
|
6565
6657
|
className: cn("grid w-full items-center gap-10 lg:grid-cols-2 lg:gap-16 xl:gap-20", className),
|
|
6566
6658
|
...props,
|
|
6567
6659
|
children: [
|
|
6568
|
-
/* @__PURE__ */ (0,
|
|
6569
|
-
media && /* @__PURE__ */ (0,
|
|
6660
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: cn(mediaPosition === "left" && "lg:order-2"), children: copy }),
|
|
6661
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1", mediaClassName), children: media })
|
|
6570
6662
|
]
|
|
6571
6663
|
}
|
|
6572
6664
|
);
|
|
@@ -6574,7 +6666,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6574
6666
|
|
|
6575
6667
|
// src/components/stat-band/StatBand.tsx
|
|
6576
6668
|
var React73 = __toESM(require("react"));
|
|
6577
|
-
var
|
|
6669
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
6578
6670
|
var columnClasses = {
|
|
6579
6671
|
2: "sm:grid-cols-2",
|
|
6580
6672
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6585,31 +6677,68 @@ var valueClasses = {
|
|
|
6585
6677
|
md: "text-3xl",
|
|
6586
6678
|
lg: "text-4xl sm:text-5xl"
|
|
6587
6679
|
};
|
|
6588
|
-
var
|
|
6589
|
-
|
|
6680
|
+
var panelValueClasses = {
|
|
6681
|
+
sm: "text-lg",
|
|
6682
|
+
md: "text-xl sm:text-2xl",
|
|
6683
|
+
lg: "text-2xl sm:text-3xl"
|
|
6684
|
+
};
|
|
6685
|
+
var StatBand = React73.forwardRef(function StatBand2({
|
|
6686
|
+
items,
|
|
6687
|
+
columns = 3,
|
|
6688
|
+
align = "center",
|
|
6689
|
+
size = "md",
|
|
6690
|
+
divided = true,
|
|
6691
|
+
variant = "plain",
|
|
6692
|
+
valueClassName,
|
|
6693
|
+
className,
|
|
6694
|
+
...props
|
|
6695
|
+
}, ref) {
|
|
6696
|
+
const panel = variant === "panel";
|
|
6697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6590
6698
|
"dl",
|
|
6591
6699
|
{
|
|
6592
6700
|
ref,
|
|
6593
6701
|
className: cn(
|
|
6594
|
-
"grid w-full
|
|
6702
|
+
"grid w-full",
|
|
6703
|
+
panel ? "gap-0 rounded-lg border border-border bg-card" : "gap-8",
|
|
6595
6704
|
columnClasses[columns],
|
|
6596
|
-
divided && "sm:divide-x sm:divide-border",
|
|
6705
|
+
divided && (panel ? "divide-y divide-border sm:divide-x sm:divide-y-0" : "sm:divide-x sm:divide-border"),
|
|
6597
6706
|
className
|
|
6598
6707
|
),
|
|
6599
6708
|
...props,
|
|
6600
|
-
children: items.map((item) => /* @__PURE__ */ (0,
|
|
6709
|
+
children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6601
6710
|
"div",
|
|
6602
6711
|
{
|
|
6603
6712
|
className: cn(
|
|
6604
|
-
"flex min-w-0 flex-col gap-1
|
|
6713
|
+
"flex min-w-0 flex-col gap-1",
|
|
6714
|
+
panel ? "px-4 py-3 sm:px-5 sm:py-4" : "sm:px-6 sm:first:pl-0 sm:last:pr-0",
|
|
6605
6715
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6606
6716
|
),
|
|
6607
6717
|
children: [
|
|
6608
|
-
/* @__PURE__ */ (0,
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6718
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6719
|
+
"dt",
|
|
6720
|
+
{
|
|
6721
|
+
className: cn(
|
|
6722
|
+
"order-2 text-muted-foreground",
|
|
6723
|
+
panel ? "text-xs font-medium uppercase tracking-wide" : "text-sm font-medium"
|
|
6724
|
+
),
|
|
6725
|
+
children: [
|
|
6726
|
+
item.label,
|
|
6727
|
+
item.hint && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: cn("mt-1 block font-normal", panel ? "text-xs normal-case tracking-normal" : "text-xs"), children: item.hint })
|
|
6728
|
+
]
|
|
6729
|
+
}
|
|
6730
|
+
),
|
|
6731
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6732
|
+
"dd",
|
|
6733
|
+
{
|
|
6734
|
+
className: cn(
|
|
6735
|
+
"order-1 m-0 font-semibold tracking-tight tabular-nums",
|
|
6736
|
+
panel ? panelValueClasses[size] : valueClasses[size],
|
|
6737
|
+
valueClassName
|
|
6738
|
+
),
|
|
6739
|
+
children: item.value
|
|
6740
|
+
}
|
|
6741
|
+
)
|
|
6613
6742
|
]
|
|
6614
6743
|
},
|
|
6615
6744
|
item.label
|
|
@@ -6620,7 +6749,7 @@ var StatBand = React73.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
6620
6749
|
|
|
6621
6750
|
// src/components/cta-section/CTASection.tsx
|
|
6622
6751
|
var React74 = __toESM(require("react"));
|
|
6623
|
-
var
|
|
6752
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
6624
6753
|
var sizePadding = {
|
|
6625
6754
|
sm: "md",
|
|
6626
6755
|
md: "lg",
|
|
@@ -6638,7 +6767,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6638
6767
|
className,
|
|
6639
6768
|
...props
|
|
6640
6769
|
}, ref) {
|
|
6641
|
-
return /* @__PURE__ */ (0,
|
|
6770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6642
6771
|
Section,
|
|
6643
6772
|
{
|
|
6644
6773
|
ref,
|
|
@@ -6647,7 +6776,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6647
6776
|
width,
|
|
6648
6777
|
className,
|
|
6649
6778
|
...props,
|
|
6650
|
-
children: /* @__PURE__ */ (0,
|
|
6779
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
6651
6780
|
"div",
|
|
6652
6781
|
{
|
|
6653
6782
|
className: cn(
|
|
@@ -6655,10 +6784,10 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6655
6784
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6656
6785
|
),
|
|
6657
6786
|
children: [
|
|
6658
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
6659
|
-
/* @__PURE__ */ (0,
|
|
6660
|
-
description && /* @__PURE__ */ (0,
|
|
6661
|
-
actions && /* @__PURE__ */ (0,
|
|
6787
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6788
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("h2", { className: "max-w-3xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl", children: title }),
|
|
6789
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: cn("max-w-2xl text-base leading-relaxed text-muted-foreground sm:text-lg"), children: description }),
|
|
6790
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: cn("mt-2 flex flex-wrap items-center gap-3", align === "center" && "justify-center"), children: actions })
|
|
6662
6791
|
]
|
|
6663
6792
|
}
|
|
6664
6793
|
)
|
|
@@ -6668,9 +6797,9 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6668
6797
|
|
|
6669
6798
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
6670
6799
|
var React75 = __toESM(require("react"));
|
|
6671
|
-
var
|
|
6800
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6672
6801
|
function CheckMark() {
|
|
6673
|
-
return /* @__PURE__ */ (0,
|
|
6802
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6674
6803
|
"svg",
|
|
6675
6804
|
{
|
|
6676
6805
|
"aria-hidden": "true",
|
|
@@ -6681,12 +6810,12 @@ function CheckMark() {
|
|
|
6681
6810
|
strokeLinecap: "round",
|
|
6682
6811
|
strokeLinejoin: "round",
|
|
6683
6812
|
className: "mx-auto h-5 w-5 text-success",
|
|
6684
|
-
children: /* @__PURE__ */ (0,
|
|
6813
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("path", { d: "m4 10.5 4 4 8-9" })
|
|
6685
6814
|
}
|
|
6686
6815
|
);
|
|
6687
6816
|
}
|
|
6688
6817
|
function DashMark() {
|
|
6689
|
-
return /* @__PURE__ */ (0,
|
|
6818
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6690
6819
|
"svg",
|
|
6691
6820
|
{
|
|
6692
6821
|
"aria-hidden": "true",
|
|
@@ -6696,7 +6825,7 @@ function DashMark() {
|
|
|
6696
6825
|
strokeWidth: "2.2",
|
|
6697
6826
|
strokeLinecap: "round",
|
|
6698
6827
|
className: "mx-auto h-5 w-5 text-muted-foreground/60",
|
|
6699
|
-
children: /* @__PURE__ */ (0,
|
|
6828
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("path", { d: "M5 10h10" })
|
|
6700
6829
|
}
|
|
6701
6830
|
);
|
|
6702
6831
|
}
|
|
@@ -6712,11 +6841,11 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6712
6841
|
}, ref) {
|
|
6713
6842
|
const yes = valueLabels?.yes ?? "Included";
|
|
6714
6843
|
const no = valueLabels?.no ?? "Not included";
|
|
6715
|
-
return /* @__PURE__ */ (0,
|
|
6716
|
-
/* @__PURE__ */ (0,
|
|
6717
|
-
/* @__PURE__ */ (0,
|
|
6718
|
-
/* @__PURE__ */ (0,
|
|
6719
|
-
columns.map((column) => /* @__PURE__ */ (0,
|
|
6844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "w-full overflow-x-auto rounded-xl border border-border bg-card", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("table", { ref, className: cn("w-full border-collapse text-sm", className), ...props, children: [
|
|
6845
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("caption", { className: "sr-only", children: caption }),
|
|
6846
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("tr", { className: "border-b border-border", children: [
|
|
6847
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("th", { scope: "col", className: "min-w-48 px-5 py-4 text-left font-medium text-muted-foreground", children: featureLabel }),
|
|
6848
|
+
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6720
6849
|
"th",
|
|
6721
6850
|
{
|
|
6722
6851
|
scope: "col",
|
|
@@ -6729,21 +6858,21 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6729
6858
|
column.label
|
|
6730
6859
|
))
|
|
6731
6860
|
] }) }),
|
|
6732
|
-
/* @__PURE__ */ (0,
|
|
6733
|
-
/* @__PURE__ */ (0,
|
|
6861
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("tbody", { children: rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("tr", { className: "border-b border-border last:border-b-0", children: [
|
|
6862
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("th", { scope: "row", className: "px-5 py-4 text-left font-medium", children: [
|
|
6734
6863
|
row.feature,
|
|
6735
|
-
row.hint && /* @__PURE__ */ (0,
|
|
6864
|
+
row.hint && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "mt-1 block text-xs font-normal text-muted-foreground", children: row.hint })
|
|
6736
6865
|
] }),
|
|
6737
6866
|
columns.map((column, index) => {
|
|
6738
6867
|
const value = row.values[index];
|
|
6739
|
-
return /* @__PURE__ */ (0,
|
|
6868
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6740
6869
|
"td",
|
|
6741
6870
|
{
|
|
6742
6871
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
6743
|
-
children: typeof value === "boolean" ? /* @__PURE__ */ (0,
|
|
6744
|
-
value ? /* @__PURE__ */ (0,
|
|
6745
|
-
/* @__PURE__ */ (0,
|
|
6746
|
-
] }) : /* @__PURE__ */ (0,
|
|
6872
|
+
children: typeof value === "boolean" ? /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
|
|
6873
|
+
value ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(CheckMark, {}) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DashMark, {}),
|
|
6874
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "sr-only", children: value ? yes : no })
|
|
6875
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { children: value ?? "" })
|
|
6747
6876
|
},
|
|
6748
6877
|
`${row.feature}-${column.label}`
|
|
6749
6878
|
);
|
|
@@ -6755,7 +6884,7 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6755
6884
|
|
|
6756
6885
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
6757
6886
|
var React76 = __toESM(require("react"));
|
|
6758
|
-
var
|
|
6887
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
6759
6888
|
var columnClasses2 = {
|
|
6760
6889
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
6761
6890
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -6785,8 +6914,8 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6785
6914
|
sizeClasses9[size],
|
|
6786
6915
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
6787
6916
|
);
|
|
6788
|
-
return /* @__PURE__ */ (0,
|
|
6789
|
-
caption && /* @__PURE__ */ (0,
|
|
6917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6918
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6790
6919
|
"p",
|
|
6791
6920
|
{
|
|
6792
6921
|
className: cn(
|
|
@@ -6796,12 +6925,12 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6796
6925
|
children: caption
|
|
6797
6926
|
}
|
|
6798
6927
|
),
|
|
6799
|
-
/* @__PURE__ */ (0,
|
|
6800
|
-
const content = /* @__PURE__ */ (0,
|
|
6801
|
-
/* @__PURE__ */ (0,
|
|
6802
|
-
/* @__PURE__ */ (0,
|
|
6928
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("ul", { className: cn("grid items-center gap-x-8 gap-y-6", columnClasses2[columns], align === "center" && "justify-items-center"), children: items.map((item) => {
|
|
6929
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
|
|
6930
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: logoClass, "aria-hidden": "true", children: item.logo }),
|
|
6931
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "sr-only", children: item.name })
|
|
6803
6932
|
] });
|
|
6804
|
-
return /* @__PURE__ */ (0,
|
|
6933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("li", { className: cn("min-w-0", align === "center" ? "justify-self-center" : "justify-self-start"), children: item.href ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6805
6934
|
Link3,
|
|
6806
6935
|
{
|
|
6807
6936
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -6815,7 +6944,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6815
6944
|
|
|
6816
6945
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
6817
6946
|
var React77 = __toESM(require("react"));
|
|
6818
|
-
var
|
|
6947
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
6819
6948
|
var columnClasses3 = {
|
|
6820
6949
|
2: "sm:grid-cols-2",
|
|
6821
6950
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6828,22 +6957,22 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6828
6957
|
variant === "card" && "border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
|
|
6829
6958
|
align === "center" && "items-center text-center"
|
|
6830
6959
|
);
|
|
6831
|
-
const content = (feature) => /* @__PURE__ */ (0,
|
|
6832
|
-
feature.icon && /* @__PURE__ */ (0,
|
|
6833
|
-
/* @__PURE__ */ (0,
|
|
6834
|
-
feature.description && /* @__PURE__ */ (0,
|
|
6835
|
-
feature.href && feature.actionLabel && /* @__PURE__ */ (0,
|
|
6960
|
+
const content = (feature) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
|
|
6961
|
+
feature.icon && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary-ink [&_svg]:size-5", children: feature.icon }),
|
|
6962
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
6963
|
+
feature.description && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
6964
|
+
feature.href && feature.actionLabel && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: "mt-auto pt-2 text-sm font-medium text-primary-ink", children: [
|
|
6836
6965
|
feature.actionLabel,
|
|
6837
6966
|
" ",
|
|
6838
|
-
/* @__PURE__ */ (0,
|
|
6967
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { "aria-hidden": "true", children: "\u2192" })
|
|
6839
6968
|
] })
|
|
6840
6969
|
] });
|
|
6841
|
-
return /* @__PURE__ */ (0,
|
|
6970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("ul", { ref, className: cn("grid gap-6", columnClasses3[columns], className), ...props, children: features.map((feature) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("li", { className: "min-w-0", children: feature.href ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Link3, { href: feature.href, className: cn(cardClass, "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"), children: content(feature) }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: cardClass, children: content(feature) }) }, feature.title)) });
|
|
6842
6971
|
});
|
|
6843
6972
|
|
|
6844
6973
|
// src/components/feature-row/FeatureRow.tsx
|
|
6845
6974
|
var React78 = __toESM(require("react"));
|
|
6846
|
-
var
|
|
6975
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
6847
6976
|
var titleSizes2 = {
|
|
6848
6977
|
md: "text-3xl",
|
|
6849
6978
|
lg: "text-3xl sm:text-4xl"
|
|
@@ -6861,20 +6990,20 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6861
6990
|
...props
|
|
6862
6991
|
}, ref) {
|
|
6863
6992
|
const Heading2 = `h${level}`;
|
|
6864
|
-
return /* @__PURE__ */ (0,
|
|
6993
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
6865
6994
|
"div",
|
|
6866
6995
|
{
|
|
6867
6996
|
ref,
|
|
6868
6997
|
className: cn("grid items-center gap-10 lg:grid-cols-2 lg:gap-16", className),
|
|
6869
6998
|
...props,
|
|
6870
6999
|
children: [
|
|
6871
|
-
/* @__PURE__ */ (0,
|
|
6872
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
6873
|
-
/* @__PURE__ */ (0,
|
|
6874
|
-
description && /* @__PURE__ */ (0,
|
|
6875
|
-
actions && /* @__PURE__ */ (0,
|
|
7000
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
7001
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
7002
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
7003
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
7004
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "mt-7 flex flex-wrap items-center gap-3", children: actions })
|
|
6876
7005
|
] }),
|
|
6877
|
-
/* @__PURE__ */ (0,
|
|
7006
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1"), children: media })
|
|
6878
7007
|
]
|
|
6879
7008
|
}
|
|
6880
7009
|
);
|
|
@@ -6882,14 +7011,14 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6882
7011
|
|
|
6883
7012
|
// src/components/testimonial/Testimonial.tsx
|
|
6884
7013
|
var React79 = __toESM(require("react"));
|
|
6885
|
-
var
|
|
7014
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
6886
7015
|
var quoteSizes = {
|
|
6887
7016
|
sm: "text-base",
|
|
6888
7017
|
md: "text-lg",
|
|
6889
7018
|
lg: "text-xl sm:text-2xl"
|
|
6890
7019
|
};
|
|
6891
7020
|
var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role, company, avatar, logo, variant = "card", size = "md", className, ...props }, ref) {
|
|
6892
|
-
return /* @__PURE__ */ (0,
|
|
7021
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
6893
7022
|
"figure",
|
|
6894
7023
|
{
|
|
6895
7024
|
ref,
|
|
@@ -6900,17 +7029,17 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6900
7029
|
),
|
|
6901
7030
|
...props,
|
|
6902
7031
|
children: [
|
|
6903
|
-
logo && /* @__PURE__ */ (0,
|
|
6904
|
-
/* @__PURE__ */ (0,
|
|
7032
|
+
logo && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "flex items-center", children: logo }),
|
|
7033
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("p", { children: [
|
|
6905
7034
|
"\u201C",
|
|
6906
7035
|
quote,
|
|
6907
7036
|
"\u201D"
|
|
6908
7037
|
] }) }),
|
|
6909
|
-
/* @__PURE__ */ (0,
|
|
6910
|
-
avatar && /* @__PURE__ */ (0,
|
|
6911
|
-
/* @__PURE__ */ (0,
|
|
6912
|
-
/* @__PURE__ */ (0,
|
|
6913
|
-
(role || company) && /* @__PURE__ */ (0,
|
|
7038
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("figcaption", { className: "flex items-center gap-3", children: [
|
|
7039
|
+
avatar && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "shrink-0", children: avatar }),
|
|
7040
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "min-w-0", children: [
|
|
7041
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-sm font-semibold", children: name }),
|
|
7042
|
+
(role || company) && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-xs text-muted-foreground", children: [role, company].filter(Boolean).join(", ") })
|
|
6914
7043
|
] })
|
|
6915
7044
|
] })
|
|
6916
7045
|
]
|
|
@@ -6920,7 +7049,7 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6920
7049
|
|
|
6921
7050
|
// src/components/process-steps/ProcessSteps.tsx
|
|
6922
7051
|
var React80 = __toESM(require("react"));
|
|
6923
|
-
var
|
|
7052
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
6924
7053
|
var columnClasses4 = {
|
|
6925
7054
|
2: "sm:grid-cols-2",
|
|
6926
7055
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6928,15 +7057,15 @@ var columnClasses4 = {
|
|
|
6928
7057
|
};
|
|
6929
7058
|
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", headingLevel = 3, className, ...props }, ref) {
|
|
6930
7059
|
const HeadingTag = { 2: "h2", 3: "h3", 4: "h4" }[headingLevel];
|
|
6931
|
-
return /* @__PURE__ */ (0,
|
|
7060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
6932
7061
|
"li",
|
|
6933
7062
|
{
|
|
6934
7063
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
6935
7064
|
children: [
|
|
6936
|
-
/* @__PURE__ */ (0,
|
|
6937
|
-
/* @__PURE__ */ (0,
|
|
6938
|
-
/* @__PURE__ */ (0,
|
|
6939
|
-
step.description && /* @__PURE__ */ (0,
|
|
7065
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 text-sm font-semibold text-primary-ink [&_svg]:size-5", children: step.icon ?? (numbered ? String(index + 1).padStart(2, "0") : null) }),
|
|
7066
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "min-w-0", children: [
|
|
7067
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(HeadingTag, { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
7068
|
+
step.description && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
6940
7069
|
] })
|
|
6941
7070
|
]
|
|
6942
7071
|
},
|
|
@@ -6946,7 +7075,7 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
6946
7075
|
|
|
6947
7076
|
// src/components/article-card/ArticleCard.tsx
|
|
6948
7077
|
var React81 = __toESM(require("react"));
|
|
6949
|
-
var
|
|
7078
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
6950
7079
|
var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
6951
7080
|
title,
|
|
6952
7081
|
description,
|
|
@@ -6961,7 +7090,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6961
7090
|
}, ref) {
|
|
6962
7091
|
const Link3 = linkComponent ?? "a";
|
|
6963
7092
|
const compact = variant === "compact";
|
|
6964
|
-
return /* @__PURE__ */ (0,
|
|
7093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
6965
7094
|
Link3,
|
|
6966
7095
|
{
|
|
6967
7096
|
href,
|
|
@@ -6970,12 +7099,12 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6970
7099
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
6971
7100
|
),
|
|
6972
7101
|
children: [
|
|
6973
|
-
media && !compact && /* @__PURE__ */ (0,
|
|
6974
|
-
/* @__PURE__ */ (0,
|
|
6975
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
6976
|
-
/* @__PURE__ */ (0,
|
|
6977
|
-
description && /* @__PURE__ */ (0,
|
|
6978
|
-
meta && /* @__PURE__ */ (0,
|
|
7102
|
+
media && !compact && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "aspect-[16/10] w-full overflow-hidden bg-muted [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: media }),
|
|
7103
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: cn("flex flex-1 flex-col gap-2", compact ? "p-4" : "p-5"), children: [
|
|
7104
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
7105
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("h3", { className: cn("font-semibold tracking-tight transition-colors group-hover:text-primary-ink", compact ? "text-base" : "text-lg"), children: title }),
|
|
7106
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7107
|
+
meta && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "mt-auto pt-2 text-xs text-muted-foreground", children: meta })
|
|
6979
7108
|
] })
|
|
6980
7109
|
]
|
|
6981
7110
|
}
|
|
@@ -6984,7 +7113,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6984
7113
|
|
|
6985
7114
|
// src/components/newsletter/Newsletter.tsx
|
|
6986
7115
|
var React82 = __toESM(require("react"));
|
|
6987
|
-
var
|
|
7116
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
6988
7117
|
var Newsletter = React82.forwardRef(function Newsletter2({
|
|
6989
7118
|
title,
|
|
6990
7119
|
description,
|
|
@@ -7016,13 +7145,13 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7016
7145
|
setStatus("error");
|
|
7017
7146
|
}
|
|
7018
7147
|
};
|
|
7019
|
-
return /* @__PURE__ */ (0,
|
|
7020
|
-
/* @__PURE__ */ (0,
|
|
7021
|
-
description && /* @__PURE__ */ (0,
|
|
7022
|
-
/* @__PURE__ */ (0,
|
|
7023
|
-
/* @__PURE__ */ (0,
|
|
7024
|
-
/* @__PURE__ */ (0,
|
|
7025
|
-
/* @__PURE__ */ (0,
|
|
7148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "w-full", children: [
|
|
7149
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Heading2, { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
7150
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7151
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("form", { ref, onSubmit: handleSubmit, className: cn("mt-5", className), ...props, children: [
|
|
7152
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: cn("flex gap-2", layout === "inline" ? "flex-col sm:flex-row" : "flex-col"), children: [
|
|
7153
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("label", { htmlFor: id, className: "sr-only", children: label }),
|
|
7154
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7026
7155
|
Input,
|
|
7027
7156
|
{
|
|
7028
7157
|
id,
|
|
@@ -7037,12 +7166,12 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7037
7166
|
className: "sm:flex-1"
|
|
7038
7167
|
}
|
|
7039
7168
|
),
|
|
7040
|
-
/* @__PURE__ */ (0,
|
|
7169
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
7041
7170
|
] }),
|
|
7042
|
-
consent && /* @__PURE__ */ (0,
|
|
7043
|
-
/* @__PURE__ */ (0,
|
|
7044
|
-
status === "success" && /* @__PURE__ */ (0,
|
|
7045
|
-
status === "error" && /* @__PURE__ */ (0,
|
|
7171
|
+
consent && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "mt-3 text-xs leading-relaxed text-muted-foreground", children: consent }),
|
|
7172
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { "aria-live": "polite", className: "mt-2 min-h-5 text-sm", children: [
|
|
7173
|
+
status === "success" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "text-success", children: successMessage }),
|
|
7174
|
+
status === "error" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { role: "alert", className: "text-destructive", children: errorMessage })
|
|
7046
7175
|
] })
|
|
7047
7176
|
] })
|
|
7048
7177
|
] });
|
|
@@ -7050,25 +7179,25 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7050
7179
|
|
|
7051
7180
|
// src/components/contact-strip/ContactStrip.tsx
|
|
7052
7181
|
var React83 = __toESM(require("react"));
|
|
7053
|
-
var
|
|
7182
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
7054
7183
|
var columnClasses5 = {
|
|
7055
7184
|
2: "sm:grid-cols-2",
|
|
7056
7185
|
3: "sm:grid-cols-3"
|
|
7057
7186
|
};
|
|
7058
7187
|
var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
7059
7188
|
const Link3 = linkComponent ?? "a";
|
|
7060
|
-
return /* @__PURE__ */ (0,
|
|
7061
|
-
item.icon && /* @__PURE__ */ (0,
|
|
7062
|
-
/* @__PURE__ */ (0,
|
|
7063
|
-
/* @__PURE__ */ (0,
|
|
7064
|
-
item.href ? /* @__PURE__ */ (0,
|
|
7189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("ul", { ref, className: cn("grid gap-6", columnClasses5[columns], className), ...props, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("li", { className: cn("flex min-w-0 items-start gap-3", align === "center" && "justify-center text-center"), children: [
|
|
7190
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary-ink [&_svg]:size-4", children: item.icon }),
|
|
7191
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "min-w-0", children: [
|
|
7192
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
7193
|
+
item.href ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Link3, { href: item.href, className: "mt-0.5 block break-words text-sm font-medium text-primary-ink underline-offset-4 hover:underline", children: item.value }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
7065
7194
|
] })
|
|
7066
7195
|
] }, item.label)) });
|
|
7067
7196
|
});
|
|
7068
7197
|
|
|
7069
7198
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
7070
7199
|
var React84 = __toESM(require("react"));
|
|
7071
|
-
var
|
|
7200
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
7072
7201
|
var toneClasses3 = {
|
|
7073
7202
|
muted: "bg-muted text-foreground",
|
|
7074
7203
|
brand: "bg-primary text-primary-foreground",
|
|
@@ -7094,7 +7223,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7094
7223
|
setDismissed(true);
|
|
7095
7224
|
onDismiss?.();
|
|
7096
7225
|
};
|
|
7097
|
-
return /* @__PURE__ */ (0,
|
|
7226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
7098
7227
|
"div",
|
|
7099
7228
|
{
|
|
7100
7229
|
ref,
|
|
@@ -7107,9 +7236,9 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7107
7236
|
className
|
|
7108
7237
|
),
|
|
7109
7238
|
...props,
|
|
7110
|
-
children: /* @__PURE__ */ (0,
|
|
7111
|
-
/* @__PURE__ */ (0,
|
|
7112
|
-
href && actionLabel && /* @__PURE__ */ (0,
|
|
7239
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "mx-auto flex w-full max-w-7xl items-center justify-center gap-3 px-4 py-2 text-sm sm:px-6", children: [
|
|
7240
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "min-w-0 text-center", children: message }),
|
|
7241
|
+
href && actionLabel && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
7113
7242
|
Link3,
|
|
7114
7243
|
{
|
|
7115
7244
|
href,
|
|
@@ -7117,14 +7246,14 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7117
7246
|
children: actionLabel
|
|
7118
7247
|
}
|
|
7119
7248
|
),
|
|
7120
|
-
dismissible && /* @__PURE__ */ (0,
|
|
7249
|
+
dismissible && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
7121
7250
|
"button",
|
|
7122
7251
|
{
|
|
7123
7252
|
type: "button",
|
|
7124
7253
|
onClick: dismiss2,
|
|
7125
7254
|
"aria-label": "Dismiss announcement",
|
|
7126
7255
|
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",
|
|
7127
|
-
children: /* @__PURE__ */ (0,
|
|
7256
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7128
7257
|
}
|
|
7129
7258
|
)
|
|
7130
7259
|
] })
|
|
@@ -7135,7 +7264,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7135
7264
|
|
|
7136
7265
|
// src/components/deal-card/DealCard.tsx
|
|
7137
7266
|
var React85 = __toESM(require("react"));
|
|
7138
|
-
var
|
|
7267
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
7139
7268
|
var statusConfig = {
|
|
7140
7269
|
available: { label: "Available", variant: "success" },
|
|
7141
7270
|
"under-nda": { label: "Under NDA", variant: "info" },
|
|
@@ -7163,29 +7292,29 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7163
7292
|
}, ref) {
|
|
7164
7293
|
const Link3 = linkComponent ?? "a";
|
|
7165
7294
|
const statusInfo = statusConfig[status];
|
|
7166
|
-
return /* @__PURE__ */ (0,
|
|
7167
|
-
/* @__PURE__ */ (0,
|
|
7168
|
-
/* @__PURE__ */ (0,
|
|
7169
|
-
/* @__PURE__ */ (0,
|
|
7170
|
-
/* @__PURE__ */ (0,
|
|
7295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
7296
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
7297
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7298
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: sector }),
|
|
7299
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7171
7300
|
] }),
|
|
7172
|
-
/* @__PURE__ */ (0,
|
|
7173
|
-
location && /* @__PURE__ */ (0,
|
|
7301
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Link3, { href, className: "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
7302
|
+
location && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "text-xs text-muted-foreground", children: location })
|
|
7174
7303
|
] }),
|
|
7175
|
-
/* @__PURE__ */ (0,
|
|
7176
|
-
description && /* @__PURE__ */ (0,
|
|
7177
|
-
/* @__PURE__ */ (0,
|
|
7178
|
-
/* @__PURE__ */ (0,
|
|
7179
|
-
/* @__PURE__ */ (0,
|
|
7304
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7305
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7306
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("dl", { className: "mt-4 grid grid-cols-3 gap-3", children: metrics.map((metric) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "min-w-0", children: [
|
|
7307
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("dt", { className: "text-xs text-muted-foreground", children: metric.label }),
|
|
7308
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: metric.value })
|
|
7180
7309
|
] }, metric.label)) }),
|
|
7181
|
-
(ndaAvailable || cimAvailable) && /* @__PURE__ */ (0,
|
|
7182
|
-
ndaAvailable && /* @__PURE__ */ (0,
|
|
7183
|
-
cimAvailable && /* @__PURE__ */ (0,
|
|
7310
|
+
(ndaAvailable || cimAvailable) && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "mt-4 flex flex-wrap gap-1.5", children: [
|
|
7311
|
+
ndaAvailable && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Badge, { variant: "info", children: "NDA available" }),
|
|
7312
|
+
cimAvailable && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Badge, { variant: "secondary", children: "CIM available" })
|
|
7184
7313
|
] })
|
|
7185
7314
|
] }),
|
|
7186
|
-
/* @__PURE__ */ (0,
|
|
7187
|
-
onRequestAccess && /* @__PURE__ */ (0,
|
|
7188
|
-
onSave && /* @__PURE__ */ (0,
|
|
7315
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
7316
|
+
onRequestAccess && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Button, { type: "button", size: "sm", onClick: onRequestAccess, children: requestLabel }),
|
|
7317
|
+
onSave && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7189
7318
|
Button,
|
|
7190
7319
|
{
|
|
7191
7320
|
type: "button",
|
|
@@ -7203,7 +7332,7 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7203
7332
|
|
|
7204
7333
|
// src/components/entity-card/EntityCard.tsx
|
|
7205
7334
|
var React86 = __toESM(require("react"));
|
|
7206
|
-
var
|
|
7335
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
7207
7336
|
function initials(name) {
|
|
7208
7337
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
7209
7338
|
}
|
|
@@ -7225,11 +7354,11 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7225
7354
|
const Link3 = linkComponent ?? "a";
|
|
7226
7355
|
const stretched = Boolean(cardHref);
|
|
7227
7356
|
const nameHref = cardHref ?? href;
|
|
7228
|
-
return /* @__PURE__ */ (0,
|
|
7229
|
-
/* @__PURE__ */ (0,
|
|
7230
|
-
/* @__PURE__ */ (0,
|
|
7231
|
-
/* @__PURE__ */ (0,
|
|
7232
|
-
/* @__PURE__ */ (0,
|
|
7357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Card, { ref, className: cn("flex h-full flex-col", stretched && "relative isolate", className), ...props, children: [
|
|
7358
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
7359
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Avatar, { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(AvatarFallback, { children: initials(name) }) }) }),
|
|
7360
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
7361
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("h3", { className: "truncate text-base font-semibold tracking-tight", children: nameHref ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
7233
7362
|
Link3,
|
|
7234
7363
|
{
|
|
7235
7364
|
href: nameHref,
|
|
@@ -7240,20 +7369,20 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7240
7369
|
children: name
|
|
7241
7370
|
}
|
|
7242
7371
|
) : name }),
|
|
7243
|
-
/* @__PURE__ */ (0,
|
|
7244
|
-
location && /* @__PURE__ */ (0,
|
|
7372
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
7373
|
+
location && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
7245
7374
|
] })
|
|
7246
7375
|
] }),
|
|
7247
|
-
/* @__PURE__ */ (0,
|
|
7248
|
-
description && /* @__PURE__ */ (0,
|
|
7249
|
-
tags && tags.length > 0 && /* @__PURE__ */ (0,
|
|
7250
|
-
stats && stats.length > 0 && /* @__PURE__ */ (0,
|
|
7251
|
-
/* @__PURE__ */ (0,
|
|
7252
|
-
/* @__PURE__ */ (0,
|
|
7376
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7377
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7378
|
+
tags && tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "mt-3 flex flex-wrap gap-1.5", children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Badge, { variant: "secondary", children: tag }, tag)) }),
|
|
7379
|
+
stats && stats.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("dl", { className: "mt-4 grid grid-cols-2 gap-3", children: stats.map((stat) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "min-w-0", children: [
|
|
7380
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("dt", { className: "text-xs text-muted-foreground", children: stat.label }),
|
|
7381
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
|
|
7253
7382
|
] }, stat.label)) })
|
|
7254
7383
|
] }),
|
|
7255
|
-
(href && !stretched || actions) && /* @__PURE__ */ (0,
|
|
7256
|
-
href && !stretched && /* @__PURE__ */ (0,
|
|
7384
|
+
(href && !stretched || actions) && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(CardFooter, { className: cn("flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", stretched && "relative z-10"), children: [
|
|
7385
|
+
href && !stretched && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
7257
7386
|
Link3,
|
|
7258
7387
|
{
|
|
7259
7388
|
href,
|
|
@@ -7261,7 +7390,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7261
7390
|
children: "View profile"
|
|
7262
7391
|
}
|
|
7263
7392
|
),
|
|
7264
|
-
actions && /* @__PURE__ */ (0,
|
|
7393
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "ml-auto flex items-center gap-2", children: actions })
|
|
7265
7394
|
] })
|
|
7266
7395
|
] });
|
|
7267
7396
|
});
|
|
@@ -7269,7 +7398,7 @@ var ProfileCard = EntityCard;
|
|
|
7269
7398
|
|
|
7270
7399
|
// src/components/tombstone-card/TombstoneCard.tsx
|
|
7271
7400
|
var React87 = __toESM(require("react"));
|
|
7272
|
-
var
|
|
7401
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
7273
7402
|
var statusConfig2 = {
|
|
7274
7403
|
archived: { label: "Archived", variant: "secondary" },
|
|
7275
7404
|
unavailable: { label: "Unavailable", variant: "warning" },
|
|
@@ -7288,20 +7417,20 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7288
7417
|
}, ref) {
|
|
7289
7418
|
const Link3 = linkComponent ?? "a";
|
|
7290
7419
|
const statusInfo = statusConfig2[status];
|
|
7291
|
-
return /* @__PURE__ */ (0,
|
|
7420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7292
7421
|
Card,
|
|
7293
7422
|
{
|
|
7294
7423
|
ref,
|
|
7295
7424
|
className: cn("flex h-full flex-col border-dashed bg-muted/30 shadow-none", className),
|
|
7296
7425
|
...props,
|
|
7297
|
-
children: /* @__PURE__ */ (0,
|
|
7298
|
-
/* @__PURE__ */ (0,
|
|
7299
|
-
logo && /* @__PURE__ */ (0,
|
|
7300
|
-
/* @__PURE__ */ (0,
|
|
7426
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(CardContent, { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
7427
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7428
|
+
logo && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "min-w-0 opacity-70", children: logo }),
|
|
7429
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7301
7430
|
] }),
|
|
7302
|
-
/* @__PURE__ */ (0,
|
|
7303
|
-
reason && /* @__PURE__ */ (0,
|
|
7304
|
-
href && /* @__PURE__ */ (0,
|
|
7431
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("h3", { className: "text-base font-semibold tracking-tight text-foreground/80", children: title }),
|
|
7432
|
+
reason && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "text-sm leading-relaxed text-muted-foreground", children: reason }),
|
|
7433
|
+
href && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7305
7434
|
Link3,
|
|
7306
7435
|
{
|
|
7307
7436
|
href,
|
|
@@ -7316,7 +7445,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7316
7445
|
|
|
7317
7446
|
// src/components/document-card/DocumentCard.tsx
|
|
7318
7447
|
var React88 = __toESM(require("react"));
|
|
7319
|
-
var
|
|
7448
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
7320
7449
|
var statusConfig3 = {
|
|
7321
7450
|
available: { label: "Available", variant: "success" },
|
|
7322
7451
|
restricted: { label: "Restricted", variant: "warning" },
|
|
@@ -7336,14 +7465,14 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7336
7465
|
}, ref) {
|
|
7337
7466
|
const statusInfo = statusConfig3[status];
|
|
7338
7467
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7339
|
-
return /* @__PURE__ */ (0,
|
|
7340
|
-
/* @__PURE__ */ (0,
|
|
7341
|
-
/* @__PURE__ */ (0,
|
|
7342
|
-
/* @__PURE__ */ (0,
|
|
7343
|
-
meta && /* @__PURE__ */ (0,
|
|
7468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(CardContent, { className: "flex items-center gap-3 p-4", children: [
|
|
7469
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary-ink [&_svg]:size-5", children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-wide", children: fileType }) }),
|
|
7470
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
7471
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "truncate text-sm font-medium", children: name }),
|
|
7472
|
+
meta && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
7344
7473
|
] }),
|
|
7345
|
-
/* @__PURE__ */ (0,
|
|
7346
|
-
onDownload && /* @__PURE__ */ (0,
|
|
7474
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Badge, { variant: statusInfo.variant, children: statusInfo.label }),
|
|
7475
|
+
onDownload && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7347
7476
|
Button,
|
|
7348
7477
|
{
|
|
7349
7478
|
type: "button",
|
|
@@ -7360,7 +7489,7 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7360
7489
|
|
|
7361
7490
|
// src/components/load-more/LoadMore.tsx
|
|
7362
7491
|
var React89 = __toESM(require("react"));
|
|
7363
|
-
var
|
|
7492
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
7364
7493
|
var LoadMore = React89.forwardRef(function LoadMore2({
|
|
7365
7494
|
hasMore,
|
|
7366
7495
|
onLoadMore,
|
|
@@ -7371,12 +7500,12 @@ var LoadMore = React89.forwardRef(function LoadMore2({
|
|
|
7371
7500
|
className,
|
|
7372
7501
|
...props
|
|
7373
7502
|
}, ref) {
|
|
7374
|
-
return /* @__PURE__ */ (0,
|
|
7503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { ref, "aria-live": "polite", className: cn("flex w-full justify-center py-4", className), ...props, children: hasMore ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { type: "button", variant: "outline", onClick: onLoadMore, loading, children: loading ? loadingLabel : loadLabel }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { role: "status", className: "text-sm text-muted-foreground", children: endLabel }) });
|
|
7375
7504
|
});
|
|
7376
7505
|
|
|
7377
7506
|
// src/components/segmented-control/SegmentedControl.tsx
|
|
7378
7507
|
var React90 = __toESM(require("react"));
|
|
7379
|
-
var
|
|
7508
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
7380
7509
|
var sizeClasses10 = {
|
|
7381
7510
|
sm: "h-8 px-2.5 text-xs",
|
|
7382
7511
|
md: "h-9 px-3 text-sm",
|
|
@@ -7391,6 +7520,8 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7391
7520
|
multiple = false,
|
|
7392
7521
|
size = "md",
|
|
7393
7522
|
fullWidth = false,
|
|
7523
|
+
linkComponent,
|
|
7524
|
+
linkHrefProp = "href",
|
|
7394
7525
|
className,
|
|
7395
7526
|
"aria-label": ariaLabel = "Segmented control",
|
|
7396
7527
|
...props
|
|
@@ -7401,6 +7532,9 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7401
7532
|
);
|
|
7402
7533
|
const current = isControlled ? value : internal;
|
|
7403
7534
|
const selected = multiple ? Array.isArray(current) ? current : [] : typeof current === "string" ? current : "";
|
|
7535
|
+
const linkMode = options.some((option) => option.href !== void 0);
|
|
7536
|
+
const LinkEl = linkComponent ?? "a";
|
|
7537
|
+
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
7404
7538
|
const refs = React90.useRef([]);
|
|
7405
7539
|
const commit = (next) => {
|
|
7406
7540
|
if (!isControlled) setInternal(next);
|
|
@@ -7451,11 +7585,11 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7451
7585
|
moveFocus("last");
|
|
7452
7586
|
}
|
|
7453
7587
|
};
|
|
7454
|
-
return /* @__PURE__ */ (0,
|
|
7588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7455
7589
|
"div",
|
|
7456
7590
|
{
|
|
7457
7591
|
ref,
|
|
7458
|
-
role: multiple ? "group" : "radiogroup",
|
|
7592
|
+
role: multiple || linkMode ? "group" : "radiogroup",
|
|
7459
7593
|
"aria-label": ariaLabel,
|
|
7460
7594
|
className: cn(
|
|
7461
7595
|
"inline-flex items-center gap-1 rounded-lg border border-border bg-muted p-1",
|
|
@@ -7467,32 +7601,58 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7467
7601
|
const active = multiple ? Array.isArray(selected) && selected.includes(option.value) : selected === option.value;
|
|
7468
7602
|
const firstEnabled = options.findIndex((entry) => !entry.disabled);
|
|
7469
7603
|
const focusable = multiple || active || !selected && index === firstEnabled;
|
|
7470
|
-
|
|
7604
|
+
const segmentClass = cn(
|
|
7605
|
+
"inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors",
|
|
7606
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7607
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
7608
|
+
sizeClasses10[size],
|
|
7609
|
+
fullWidth && "flex-1",
|
|
7610
|
+
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
7611
|
+
);
|
|
7612
|
+
const segmentContent = /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_jsx_runtime91.Fragment, { children: [
|
|
7613
|
+
option.icon && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
7614
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "truncate", children: option.label })
|
|
7615
|
+
] });
|
|
7616
|
+
if (option.href !== void 0) {
|
|
7617
|
+
if (option.disabled || active) {
|
|
7618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7619
|
+
"span",
|
|
7620
|
+
{
|
|
7621
|
+
"aria-current": active ? "page" : void 0,
|
|
7622
|
+
"aria-disabled": option.disabled || void 0,
|
|
7623
|
+
className: cn(segmentClass, option.disabled && "opacity-50"),
|
|
7624
|
+
children: segmentContent
|
|
7625
|
+
},
|
|
7626
|
+
option.value
|
|
7627
|
+
);
|
|
7628
|
+
}
|
|
7629
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7630
|
+
LinkEl,
|
|
7631
|
+
{
|
|
7632
|
+
...destination(option.href),
|
|
7633
|
+
className: segmentClass,
|
|
7634
|
+
children: segmentContent
|
|
7635
|
+
},
|
|
7636
|
+
option.value
|
|
7637
|
+
);
|
|
7638
|
+
}
|
|
7639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7471
7640
|
"button",
|
|
7472
7641
|
{
|
|
7473
7642
|
ref: (node) => {
|
|
7474
7643
|
refs.current[index] = node;
|
|
7475
7644
|
},
|
|
7476
7645
|
type: "button",
|
|
7477
|
-
role: multiple ? void 0 : "radio",
|
|
7478
|
-
"aria-checked": multiple ? void 0 : active,
|
|
7646
|
+
role: multiple || linkMode ? void 0 : "radio",
|
|
7647
|
+
"aria-checked": multiple || linkMode ? void 0 : active,
|
|
7479
7648
|
"aria-pressed": multiple ? active : void 0,
|
|
7649
|
+
"aria-current": linkMode && active ? "page" : void 0,
|
|
7480
7650
|
disabled: option.disabled,
|
|
7481
7651
|
tabIndex: focusable ? 0 : -1,
|
|
7482
7652
|
onClick: () => select(option),
|
|
7483
7653
|
onKeyDown,
|
|
7484
|
-
className:
|
|
7485
|
-
|
|
7486
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7487
|
-
"disabled:pointer-events-none disabled:opacity-50",
|
|
7488
|
-
sizeClasses10[size],
|
|
7489
|
-
fullWidth && "flex-1",
|
|
7490
|
-
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
7491
|
-
),
|
|
7492
|
-
children: [
|
|
7493
|
-
option.icon && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
7494
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "truncate", children: option.label })
|
|
7495
|
-
]
|
|
7654
|
+
className: segmentClass,
|
|
7655
|
+
children: segmentContent
|
|
7496
7656
|
},
|
|
7497
7657
|
option.value
|
|
7498
7658
|
);
|
|
@@ -7504,7 +7664,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7504
7664
|
|
|
7505
7665
|
// src/components/range-slider/RangeSlider.tsx
|
|
7506
7666
|
var React91 = __toESM(require("react"));
|
|
7507
|
-
var
|
|
7667
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
7508
7668
|
var rangeInputClass = cn(
|
|
7509
7669
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
7510
7670
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
@@ -7544,21 +7704,21 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7544
7704
|
const span = max - min || 1;
|
|
7545
7705
|
const lowPercent = (low - min) / span * 100;
|
|
7546
7706
|
const highPercent = (high - min) / span * 100;
|
|
7547
|
-
return /* @__PURE__ */ (0,
|
|
7548
|
-
showValues && /* @__PURE__ */ (0,
|
|
7549
|
-
/* @__PURE__ */ (0,
|
|
7550
|
-
/* @__PURE__ */ (0,
|
|
7707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
7708
|
+
showValues && /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "mb-2 flex items-center justify-between text-sm font-medium tabular-nums", children: [
|
|
7709
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { children: formatValue(low) }),
|
|
7710
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { children: formatValue(high) })
|
|
7551
7711
|
] }),
|
|
7552
|
-
/* @__PURE__ */ (0,
|
|
7553
|
-
/* @__PURE__ */ (0,
|
|
7554
|
-
/* @__PURE__ */ (0,
|
|
7712
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "relative h-6 w-full", children: [
|
|
7713
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-border" }),
|
|
7714
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7555
7715
|
"div",
|
|
7556
7716
|
{
|
|
7557
7717
|
className: "absolute top-1/2 h-1 -translate-y-1/2 rounded-full bg-primary",
|
|
7558
7718
|
style: { left: `${lowPercent}%`, right: `${100 - highPercent}%` }
|
|
7559
7719
|
}
|
|
7560
7720
|
),
|
|
7561
|
-
/* @__PURE__ */ (0,
|
|
7721
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7562
7722
|
"input",
|
|
7563
7723
|
{
|
|
7564
7724
|
type: "range",
|
|
@@ -7573,7 +7733,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7573
7733
|
className: cn(rangeInputClass, "z-10")
|
|
7574
7734
|
}
|
|
7575
7735
|
),
|
|
7576
|
-
/* @__PURE__ */ (0,
|
|
7736
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7577
7737
|
"input",
|
|
7578
7738
|
{
|
|
7579
7739
|
type: "range",
|
|
@@ -7594,7 +7754,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7594
7754
|
|
|
7595
7755
|
// src/components/filter-chips/FilterChips.tsx
|
|
7596
7756
|
var React92 = __toESM(require("react"));
|
|
7597
|
-
var
|
|
7757
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
7598
7758
|
var CHIP_SIZES = {
|
|
7599
7759
|
sm: {
|
|
7600
7760
|
chip: "gap-1 py-0.5 pl-2.5 pr-0.5 text-xs",
|
|
@@ -7626,10 +7786,10 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7626
7786
|
...props
|
|
7627
7787
|
}, ref) {
|
|
7628
7788
|
if (filters.length === 0) {
|
|
7629
|
-
return emptyLabel ? /* @__PURE__ */ (0,
|
|
7789
|
+
return emptyLabel ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7630
7790
|
}
|
|
7631
7791
|
const scale = CHIP_SIZES[size];
|
|
7632
|
-
return /* @__PURE__ */ (0,
|
|
7792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
7633
7793
|
"div",
|
|
7634
7794
|
{
|
|
7635
7795
|
ref,
|
|
@@ -7638,7 +7798,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7638
7798
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
7639
7799
|
...props,
|
|
7640
7800
|
children: [
|
|
7641
|
-
filters.map((filter) => /* @__PURE__ */ (0,
|
|
7801
|
+
filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
7642
7802
|
"span",
|
|
7643
7803
|
{
|
|
7644
7804
|
className: cn(
|
|
@@ -7646,15 +7806,15 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7646
7806
|
scale.chip
|
|
7647
7807
|
),
|
|
7648
7808
|
children: [
|
|
7649
|
-
/* @__PURE__ */ (0,
|
|
7650
|
-
/* @__PURE__ */ (0,
|
|
7809
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { className: "truncate", children: [
|
|
7810
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { className: "text-muted-foreground", children: [
|
|
7651
7811
|
filter.label,
|
|
7652
7812
|
":"
|
|
7653
7813
|
] }),
|
|
7654
7814
|
" ",
|
|
7655
|
-
/* @__PURE__ */ (0,
|
|
7815
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "font-medium", children: filter.value ?? "Any" })
|
|
7656
7816
|
] }),
|
|
7657
|
-
filter.onRemove && /* @__PURE__ */ (0,
|
|
7817
|
+
filter.onRemove && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
7658
7818
|
"button",
|
|
7659
7819
|
{
|
|
7660
7820
|
type: "button",
|
|
@@ -7664,14 +7824,14 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7664
7824
|
"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",
|
|
7665
7825
|
scale.remove
|
|
7666
7826
|
),
|
|
7667
|
-
children: /* @__PURE__ */ (0,
|
|
7827
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: scale.icon, fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7668
7828
|
}
|
|
7669
7829
|
)
|
|
7670
7830
|
]
|
|
7671
7831
|
},
|
|
7672
7832
|
filter.key
|
|
7673
7833
|
)),
|
|
7674
|
-
onClearAll && /* @__PURE__ */ (0,
|
|
7834
|
+
onClearAll && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
7675
7835
|
"button",
|
|
7676
7836
|
{
|
|
7677
7837
|
type: "button",
|
|
@@ -7690,7 +7850,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7690
7850
|
|
|
7691
7851
|
// src/components/multi-select/MultiSelect.tsx
|
|
7692
7852
|
var React93 = __toESM(require("react"));
|
|
7693
|
-
var
|
|
7853
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
7694
7854
|
var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
7695
7855
|
options,
|
|
7696
7856
|
value,
|
|
@@ -7735,16 +7895,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7735
7895
|
}, [filtered]);
|
|
7736
7896
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
7737
7897
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
7738
|
-
return /* @__PURE__ */ (0,
|
|
7739
|
-
label && /* @__PURE__ */ (0,
|
|
7740
|
-
visibleChips.length > 0 && /* @__PURE__ */ (0,
|
|
7741
|
-
visibleChips.map((option) => /* @__PURE__ */ (0,
|
|
7898
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { ref, className: cn("flex flex-col gap-2", className), ...props, children: [
|
|
7899
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { id: labelId, className: "text-sm font-medium", children: label }),
|
|
7900
|
+
visibleChips.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
7901
|
+
visibleChips.map((option) => /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
7742
7902
|
"span",
|
|
7743
7903
|
{
|
|
7744
7904
|
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",
|
|
7745
7905
|
children: [
|
|
7746
|
-
/* @__PURE__ */ (0,
|
|
7747
|
-
/* @__PURE__ */ (0,
|
|
7906
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "truncate", children: option.label }),
|
|
7907
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7748
7908
|
"button",
|
|
7749
7909
|
{
|
|
7750
7910
|
type: "button",
|
|
@@ -7752,26 +7912,26 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7752
7912
|
disabled,
|
|
7753
7913
|
"aria-label": `Remove ${option.label}`,
|
|
7754
7914
|
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",
|
|
7755
|
-
children: /* @__PURE__ */ (0,
|
|
7915
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7756
7916
|
}
|
|
7757
7917
|
)
|
|
7758
7918
|
]
|
|
7759
7919
|
},
|
|
7760
7920
|
option.value
|
|
7761
7921
|
)),
|
|
7762
|
-
hiddenCount > 0 && /* @__PURE__ */ (0,
|
|
7922
|
+
hiddenCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: "self-center text-xs text-muted-foreground", children: [
|
|
7763
7923
|
"+",
|
|
7764
7924
|
hiddenCount,
|
|
7765
7925
|
" more"
|
|
7766
7926
|
] })
|
|
7767
7927
|
] }),
|
|
7768
|
-
/* @__PURE__ */ (0,
|
|
7769
|
-
/* @__PURE__ */ (0,
|
|
7770
|
-
/* @__PURE__ */ (0,
|
|
7771
|
-
/* @__PURE__ */ (0,
|
|
7928
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
7929
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(PopoverTrigger, { "aria-labelledby": label ? labelId : void 0, disabled, className: "w-full justify-between", children: [
|
|
7930
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { children: selected.length > 0 ? `${selected.length} selected` : triggerLabel }),
|
|
7931
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2304" })
|
|
7772
7932
|
] }),
|
|
7773
|
-
/* @__PURE__ */ (0,
|
|
7774
|
-
/* @__PURE__ */ (0,
|
|
7933
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(PopoverContent, { className: "w-80 p-0", children: [
|
|
7934
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7775
7935
|
Input,
|
|
7776
7936
|
{
|
|
7777
7937
|
type: "search",
|
|
@@ -7782,9 +7942,9 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7782
7942
|
autoFocus: true
|
|
7783
7943
|
}
|
|
7784
7944
|
) }),
|
|
7785
|
-
/* @__PURE__ */ (0,
|
|
7786
|
-
heading && /* @__PURE__ */ (0,
|
|
7787
|
-
/* @__PURE__ */ (0,
|
|
7945
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "max-h-64 overflow-y-auto p-1", children: groups.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "px-3 py-3 text-sm text-muted-foreground", children: emptyText }) : groups.map(({ option, heading }) => /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(React93.Fragment, { children: [
|
|
7946
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "px-3 pb-1 pt-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: heading }),
|
|
7947
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
7788
7948
|
"label",
|
|
7789
7949
|
{
|
|
7790
7950
|
className: cn(
|
|
@@ -7792,7 +7952,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7792
7952
|
option.disabled && "cursor-not-allowed opacity-50"
|
|
7793
7953
|
),
|
|
7794
7954
|
children: [
|
|
7795
|
-
/* @__PURE__ */ (0,
|
|
7955
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7796
7956
|
Checkbox,
|
|
7797
7957
|
{
|
|
7798
7958
|
checked: selected.includes(option.value),
|
|
@@ -7801,16 +7961,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7801
7961
|
className: "mt-0.5"
|
|
7802
7962
|
}
|
|
7803
7963
|
),
|
|
7804
|
-
/* @__PURE__ */ (0,
|
|
7805
|
-
/* @__PURE__ */ (0,
|
|
7806
|
-
option.description && /* @__PURE__ */ (0,
|
|
7964
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: "min-w-0", children: [
|
|
7965
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "block", children: option.label }),
|
|
7966
|
+
option.description && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: option.description })
|
|
7807
7967
|
] })
|
|
7808
7968
|
]
|
|
7809
7969
|
}
|
|
7810
7970
|
)
|
|
7811
7971
|
] }, option.value)) }),
|
|
7812
|
-
/* @__PURE__ */ (0,
|
|
7813
|
-
/* @__PURE__ */ (0,
|
|
7972
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center justify-between gap-2 border-t border-border p-2", children: [
|
|
7973
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7814
7974
|
Button,
|
|
7815
7975
|
{
|
|
7816
7976
|
type: "button",
|
|
@@ -7820,7 +7980,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7820
7980
|
children: "Select all"
|
|
7821
7981
|
}
|
|
7822
7982
|
),
|
|
7823
|
-
/* @__PURE__ */ (0,
|
|
7983
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => commit([]), children: "Clear" })
|
|
7824
7984
|
] })
|
|
7825
7985
|
] })
|
|
7826
7986
|
] })
|
|
@@ -7829,7 +7989,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7829
7989
|
|
|
7830
7990
|
// src/components/filter-panel/FilterPanel.tsx
|
|
7831
7991
|
var React94 = __toESM(require("react"));
|
|
7832
|
-
var
|
|
7992
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
7833
7993
|
var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
7834
7994
|
sections,
|
|
7835
7995
|
title = "Filters",
|
|
@@ -7859,16 +8019,16 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7859
8019
|
(current) => current.includes(index) ? current.filter((entry) => entry !== index) : [...current, index]
|
|
7860
8020
|
);
|
|
7861
8021
|
};
|
|
7862
|
-
return /* @__PURE__ */ (0,
|
|
7863
|
-
(title || description) && /* @__PURE__ */ (0,
|
|
7864
|
-
title && /* @__PURE__ */ (0,
|
|
7865
|
-
description && /* @__PURE__ */ (0,
|
|
8022
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
8023
|
+
(title || description) && /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "border-b border-border px-4 py-3", children: [
|
|
8024
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("h2", { className: "text-sm font-semibold", children: title }),
|
|
8025
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
7866
8026
|
] }),
|
|
7867
|
-
/* @__PURE__ */ (0,
|
|
8027
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "divide-y divide-border", children: sections.map((section, index) => {
|
|
7868
8028
|
const expanded = isOpen(index);
|
|
7869
8029
|
const sectionId = `filter-section-${index}`;
|
|
7870
|
-
return /* @__PURE__ */ (0,
|
|
7871
|
-
/* @__PURE__ */ (0,
|
|
8030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "px-4 py-3", children: [
|
|
8031
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("h3", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
7872
8032
|
"button",
|
|
7873
8033
|
{
|
|
7874
8034
|
type: "button",
|
|
@@ -7881,28 +8041,28 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7881
8041
|
collapsible && "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7882
8042
|
),
|
|
7883
8043
|
children: [
|
|
7884
|
-
/* @__PURE__ */ (0,
|
|
8044
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("span", { children: [
|
|
7885
8045
|
section.title,
|
|
7886
|
-
section.description && /* @__PURE__ */ (0,
|
|
8046
|
+
section.description && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "mt-0.5 block text-xs font-normal text-muted-foreground", children: section.description })
|
|
7887
8047
|
] }),
|
|
7888
|
-
collapsible && /* @__PURE__ */ (0,
|
|
8048
|
+
collapsible && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { "aria-hidden": "true", className: cn("text-muted-foreground transition-transform", expanded && "rotate-180"), children: "\u2304" })
|
|
7889
8049
|
]
|
|
7890
8050
|
}
|
|
7891
8051
|
) }),
|
|
7892
|
-
expanded && /* @__PURE__ */ (0,
|
|
8052
|
+
expanded && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
7893
8053
|
] }, index);
|
|
7894
8054
|
}) }),
|
|
7895
|
-
(onReset || onApply || actions) && /* @__PURE__ */ (0,
|
|
8055
|
+
(onReset || onApply || actions) && /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
7896
8056
|
actions,
|
|
7897
|
-
onReset && /* @__PURE__ */ (0,
|
|
7898
|
-
onApply && /* @__PURE__ */ (0,
|
|
8057
|
+
onReset && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, className: "ml-auto", children: resetLabel }),
|
|
8058
|
+
onApply && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { type: "button", size: "sm", onClick: onApply, children: applyLabel })
|
|
7899
8059
|
] })
|
|
7900
8060
|
] });
|
|
7901
8061
|
});
|
|
7902
8062
|
|
|
7903
8063
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
7904
8064
|
var React95 = __toESM(require("react"));
|
|
7905
|
-
var
|
|
8065
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
7906
8066
|
var DEFAULT_PRESETS = [
|
|
7907
8067
|
{ label: "7 days", days: 7 },
|
|
7908
8068
|
{ label: "30 days", days: 30 },
|
|
@@ -7954,8 +8114,8 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7954
8114
|
}
|
|
7955
8115
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
7956
8116
|
};
|
|
7957
|
-
return /* @__PURE__ */ (0,
|
|
7958
|
-
showPresets && presets.length > 0 && /* @__PURE__ */ (0,
|
|
8117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { ref, className: cn("flex flex-col gap-3", className), ...props, children: [
|
|
8118
|
+
showPresets && presets.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex flex-wrap gap-2", children: presets.map((preset) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7959
8119
|
Button,
|
|
7960
8120
|
{
|
|
7961
8121
|
type: "button",
|
|
@@ -7967,10 +8127,10 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7967
8127
|
},
|
|
7968
8128
|
preset.label
|
|
7969
8129
|
)) }),
|
|
7970
|
-
/* @__PURE__ */ (0,
|
|
7971
|
-
/* @__PURE__ */ (0,
|
|
7972
|
-
/* @__PURE__ */ (0,
|
|
7973
|
-
/* @__PURE__ */ (0,
|
|
8130
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
8131
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { children: [
|
|
8132
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
8133
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7974
8134
|
DatePicker,
|
|
7975
8135
|
{
|
|
7976
8136
|
id: startId,
|
|
@@ -7982,9 +8142,9 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7982
8142
|
}
|
|
7983
8143
|
)
|
|
7984
8144
|
] }),
|
|
7985
|
-
/* @__PURE__ */ (0,
|
|
7986
|
-
/* @__PURE__ */ (0,
|
|
7987
|
-
/* @__PURE__ */ (0,
|
|
8145
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { children: [
|
|
8146
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
8147
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7988
8148
|
DatePicker,
|
|
7989
8149
|
{
|
|
7990
8150
|
id: endId,
|
|
@@ -8003,7 +8163,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8003
8163
|
|
|
8004
8164
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
8005
8165
|
var React96 = __toESM(require("react"));
|
|
8006
|
-
var
|
|
8166
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
8007
8167
|
var AppliedFilters = React96.forwardRef(
|
|
8008
8168
|
function AppliedFilters2({
|
|
8009
8169
|
filters,
|
|
@@ -8017,9 +8177,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8017
8177
|
}, ref) {
|
|
8018
8178
|
const summary = label ?? `${filters.length} active`;
|
|
8019
8179
|
if (filters.length === 0) {
|
|
8020
|
-
return emptyLabel ? /* @__PURE__ */ (0,
|
|
8180
|
+
return emptyLabel ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
8021
8181
|
}
|
|
8022
|
-
return /* @__PURE__ */ (0,
|
|
8182
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
8023
8183
|
"div",
|
|
8024
8184
|
{
|
|
8025
8185
|
ref,
|
|
@@ -8027,9 +8187,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8027
8187
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
8028
8188
|
...props,
|
|
8029
8189
|
children: [
|
|
8030
|
-
/* @__PURE__ */ (0,
|
|
8031
|
-
/* @__PURE__ */ (0,
|
|
8032
|
-
onEdit && /* @__PURE__ */ (0,
|
|
8190
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: summary }),
|
|
8191
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(FilterChips, { filters, onClearAll }),
|
|
8192
|
+
onEdit && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: onEdit, children: editLabel })
|
|
8033
8193
|
]
|
|
8034
8194
|
}
|
|
8035
8195
|
);
|
|
@@ -8040,7 +8200,7 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8040
8200
|
var React97 = __toESM(require("react"));
|
|
8041
8201
|
var import_react_dom8 = require("react-dom");
|
|
8042
8202
|
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
8043
|
-
var
|
|
8203
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
8044
8204
|
var MenuContext = React97.createContext({
|
|
8045
8205
|
open: false,
|
|
8046
8206
|
setOpen: () => {
|
|
@@ -8072,7 +8232,7 @@ var Menu = React97.forwardRef(
|
|
|
8072
8232
|
},
|
|
8073
8233
|
[open, onOpenChange]
|
|
8074
8234
|
);
|
|
8075
|
-
return /* @__PURE__ */ (0,
|
|
8235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
8076
8236
|
MenuContext.Provider,
|
|
8077
8237
|
{
|
|
8078
8238
|
value: { open: current, setOpen, activeIndex, setActiveIndex, wrapperRef },
|
|
@@ -8085,7 +8245,7 @@ Menu.displayName = "Menu";
|
|
|
8085
8245
|
var MenuTrigger = React97.forwardRef(
|
|
8086
8246
|
({ className, children, ...props }, ref) => {
|
|
8087
8247
|
const { open, setOpen } = React97.useContext(MenuContext);
|
|
8088
|
-
return /* @__PURE__ */ (0,
|
|
8248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
8089
8249
|
"button",
|
|
8090
8250
|
{
|
|
8091
8251
|
ref,
|
|
@@ -8187,7 +8347,7 @@ var MenuContent = React97.forwardRef(
|
|
|
8187
8347
|
};
|
|
8188
8348
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
8189
8349
|
return (0, import_react_dom8.createPortal)(
|
|
8190
|
-
/* @__PURE__ */ (0,
|
|
8350
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
8191
8351
|
"div",
|
|
8192
8352
|
{
|
|
8193
8353
|
ref: (node) => {
|
|
@@ -8216,7 +8376,7 @@ var MenuItem = React97.forwardRef(
|
|
|
8216
8376
|
const { setOpen } = React97.useContext(MenuContext);
|
|
8217
8377
|
const Comp = asChild ? import_react_slot5.Slot : "button";
|
|
8218
8378
|
const typeProp = asChild ? {} : { type: "button" };
|
|
8219
|
-
return /* @__PURE__ */ (0,
|
|
8379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
8220
8380
|
Comp,
|
|
8221
8381
|
{
|
|
8222
8382
|
ref,
|
|
@@ -8239,11 +8399,11 @@ var MenuItem = React97.forwardRef(
|
|
|
8239
8399
|
);
|
|
8240
8400
|
MenuItem.displayName = "MenuItem";
|
|
8241
8401
|
var MenuSeparator = React97.forwardRef(
|
|
8242
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8402
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { ref, role: "separator", className: cn("-mx-1 my-1 h-px bg-border", className), ...props })
|
|
8243
8403
|
);
|
|
8244
8404
|
MenuSeparator.displayName = "MenuSeparator";
|
|
8245
8405
|
var MenuLabel = React97.forwardRef(
|
|
8246
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8406
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
8247
8407
|
"div",
|
|
8248
8408
|
{
|
|
8249
8409
|
ref,
|
|
@@ -8257,7 +8417,7 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
8257
8417
|
// src/components/alert/Alert.tsx
|
|
8258
8418
|
var React98 = __toESM(require("react"));
|
|
8259
8419
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
8260
|
-
var
|
|
8420
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
8261
8421
|
var alertVariants = (0, import_class_variance_authority8.cva)(
|
|
8262
8422
|
"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",
|
|
8263
8423
|
{
|
|
@@ -8278,7 +8438,7 @@ var alertVariants = (0, import_class_variance_authority8.cva)(
|
|
|
8278
8438
|
}
|
|
8279
8439
|
);
|
|
8280
8440
|
var Alert = React98.forwardRef(
|
|
8281
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8441
|
+
({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8282
8442
|
"div",
|
|
8283
8443
|
{
|
|
8284
8444
|
ref,
|
|
@@ -8290,7 +8450,7 @@ var Alert = React98.forwardRef(
|
|
|
8290
8450
|
);
|
|
8291
8451
|
Alert.displayName = "Alert";
|
|
8292
8452
|
var AlertTitle = React98.forwardRef(
|
|
8293
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8453
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8294
8454
|
"h5",
|
|
8295
8455
|
{
|
|
8296
8456
|
ref,
|
|
@@ -8301,7 +8461,7 @@ var AlertTitle = React98.forwardRef(
|
|
|
8301
8461
|
);
|
|
8302
8462
|
AlertTitle.displayName = "AlertTitle";
|
|
8303
8463
|
var AlertDescription = React98.forwardRef(
|
|
8304
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8464
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8305
8465
|
"div",
|
|
8306
8466
|
{
|
|
8307
8467
|
ref,
|
|
@@ -8314,22 +8474,22 @@ AlertDescription.displayName = "AlertDescription";
|
|
|
8314
8474
|
|
|
8315
8475
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
8316
8476
|
var React99 = __toESM(require("react"));
|
|
8317
|
-
var
|
|
8477
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
8318
8478
|
var Breadcrumb = React99.forwardRef(
|
|
8319
8479
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
8320
8480
|
const LinkEl = linkComponent ?? "a";
|
|
8321
|
-
return /* @__PURE__ */ (0,
|
|
8481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8322
8482
|
"nav",
|
|
8323
8483
|
{
|
|
8324
8484
|
ref,
|
|
8325
8485
|
"aria-label": label,
|
|
8326
8486
|
className: cn("flex items-center space-x-1.5 text-sm text-muted-foreground", className),
|
|
8327
8487
|
...props,
|
|
8328
|
-
children: /* @__PURE__ */ (0,
|
|
8488
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("ol", { className: "flex flex-wrap items-center space-x-1.5", children: items.map((item, index) => {
|
|
8329
8489
|
const isLast = index === items.length - 1;
|
|
8330
|
-
return /* @__PURE__ */ (0,
|
|
8331
|
-
index > 0 && /* @__PURE__ */ (0,
|
|
8332
|
-
item.href && !isLast ? /* @__PURE__ */ (0,
|
|
8490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("li", { className: cn("flex items-center space-x-1.5", truncateCurrent && isLast && "min-w-0"), children: [
|
|
8491
|
+
index > 0 && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { "aria-hidden": "true", className: "text-muted-foreground/50", children: separator }),
|
|
8492
|
+
item.href && !isLast ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8333
8493
|
LinkEl,
|
|
8334
8494
|
{
|
|
8335
8495
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -8340,7 +8500,7 @@ var Breadcrumb = React99.forwardRef(
|
|
|
8340
8500
|
} : void 0,
|
|
8341
8501
|
children: item.label
|
|
8342
8502
|
}
|
|
8343
|
-
) : /* @__PURE__ */ (0,
|
|
8503
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8344
8504
|
"span",
|
|
8345
8505
|
{
|
|
8346
8506
|
"aria-current": isLast ? "page" : void 0,
|
|
@@ -8395,6 +8555,7 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
8395
8555
|
ConfirmDialog,
|
|
8396
8556
|
ContactStrip,
|
|
8397
8557
|
Container,
|
|
8558
|
+
CoverImage,
|
|
8398
8559
|
DataTable,
|
|
8399
8560
|
DatePicker,
|
|
8400
8561
|
DatePickerPopover,
|