@slipstream-ui/core 0.11.4 → 0.11.7
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 +107 -4
- package/dist/index.d.ts +107 -4
- package/dist/index.js +594 -442
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +489 -338
- 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 +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/image.manifest.json +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 +22 -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/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/site-header/SiteHeader.d.ts +7 -1
- package/dist/src/components/site-header/SiteHeader.js +5 -1
- package/dist/src/components/site-header/SiteHeader.js.map +1 -1
- package/dist/src/components/site-header/SiteHeader.mjs +5 -1
- package/dist/src/components/site-header/SiteHeader.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 +2 -2
- 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/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/site-header/SiteHeader.test.tsx +18 -0
- package/src/components/site-header/SiteHeader.tsx +11 -1
- 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 +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/image.manifest.json +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 +22 -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,
|
|
@@ -3936,6 +3937,9 @@ function SiteHeader({
|
|
|
3936
3937
|
mobileNavLabel = "Mobile",
|
|
3937
3938
|
sticky = true,
|
|
3938
3939
|
mobileLabel = "Menu",
|
|
3940
|
+
mobileMenuOpenLabel = "Open menu",
|
|
3941
|
+
mobileMenuCloseLabel = "Close menu",
|
|
3942
|
+
mobileDrawerCloseLabel = "Close drawer",
|
|
3939
3943
|
showMobileTrigger = true,
|
|
3940
3944
|
desktopBreakpoint = "md",
|
|
3941
3945
|
navClassName,
|
|
@@ -4112,7 +4116,7 @@ function SiteHeader({
|
|
|
4112
4116
|
{
|
|
4113
4117
|
type: "button",
|
|
4114
4118
|
onClick: () => setMobileOpen((open) => !open),
|
|
4115
|
-
"aria-label": mobileOpen ?
|
|
4119
|
+
"aria-label": mobileOpen ? mobileMenuCloseLabel : mobileMenuOpenLabel,
|
|
4116
4120
|
"aria-expanded": mobileOpen,
|
|
4117
4121
|
"aria-controls": menuId,
|
|
4118
4122
|
"aria-haspopup": "dialog",
|
|
@@ -4147,6 +4151,7 @@ function SiteHeader({
|
|
|
4147
4151
|
open: mobileOpen,
|
|
4148
4152
|
onOpenChange: setMobileOpen,
|
|
4149
4153
|
title: mobileLabel,
|
|
4154
|
+
closeLabel: mobileDrawerCloseLabel,
|
|
4150
4155
|
side: "right",
|
|
4151
4156
|
size: "sm",
|
|
4152
4157
|
animate: true,
|
|
@@ -4903,6 +4908,7 @@ function Image2({
|
|
|
4903
4908
|
height = 630,
|
|
4904
4909
|
className,
|
|
4905
4910
|
imgClassName,
|
|
4911
|
+
sizes,
|
|
4906
4912
|
style
|
|
4907
4913
|
}) {
|
|
4908
4914
|
const [stage, setStage] = React50.useState(0);
|
|
@@ -4924,6 +4930,7 @@ function Image2({
|
|
|
4924
4930
|
loading: priority ? "eager" : "lazy",
|
|
4925
4931
|
fetchPriority: priority ? "high" : "auto",
|
|
4926
4932
|
decoding: "async",
|
|
4933
|
+
sizes,
|
|
4927
4934
|
className: cn(className, imgClassName),
|
|
4928
4935
|
style,
|
|
4929
4936
|
onError
|
|
@@ -4932,9 +4939,75 @@ function Image2({
|
|
|
4932
4939
|
}
|
|
4933
4940
|
Image2.displayName = "Image";
|
|
4934
4941
|
|
|
4942
|
+
// src/components/cover-image/CoverImage.tsx
|
|
4943
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4944
|
+
var aspectClasses = {
|
|
4945
|
+
video: "aspect-video",
|
|
4946
|
+
square: "aspect-square",
|
|
4947
|
+
wide: "aspect-[2/1]"
|
|
4948
|
+
};
|
|
4949
|
+
var gradients = [
|
|
4950
|
+
"linear-gradient(135deg, hsl(var(--primary) / 0.18), hsl(var(--info) / 0.10))",
|
|
4951
|
+
"linear-gradient(135deg, hsl(var(--info) / 0.16), hsl(var(--primary) / 0.08))",
|
|
4952
|
+
"linear-gradient(135deg, hsl(var(--warning) / 0.14), hsl(var(--primary) / 0.10))",
|
|
4953
|
+
"linear-gradient(135deg, hsl(var(--success) / 0.14), hsl(var(--info) / 0.08))"
|
|
4954
|
+
];
|
|
4955
|
+
function hashSeed(seed) {
|
|
4956
|
+
let hash = 0;
|
|
4957
|
+
for (let i = 0; i < seed.length; i += 1) {
|
|
4958
|
+
hash = hash * 31 + seed.charCodeAt(i) >>> 0;
|
|
4959
|
+
}
|
|
4960
|
+
return hash;
|
|
4961
|
+
}
|
|
4962
|
+
function seededGradient(seed) {
|
|
4963
|
+
return { backgroundImage: gradients[hashSeed(seed) % gradients.length] };
|
|
4964
|
+
}
|
|
4965
|
+
function CoverImage({
|
|
4966
|
+
src,
|
|
4967
|
+
alt,
|
|
4968
|
+
aspect = "video",
|
|
4969
|
+
seed,
|
|
4970
|
+
priority = false,
|
|
4971
|
+
sizes,
|
|
4972
|
+
fallback,
|
|
4973
|
+
mark,
|
|
4974
|
+
className
|
|
4975
|
+
}) {
|
|
4976
|
+
const preset = aspectClasses[aspect];
|
|
4977
|
+
const aspectStyle = preset === void 0 && typeof aspect === "string" ? { aspectRatio: aspect } : void 0;
|
|
4978
|
+
const fallbackNode = fallback ?? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4979
|
+
"div",
|
|
4980
|
+
{
|
|
4981
|
+
className: "flex h-full w-full items-center justify-center",
|
|
4982
|
+
style: seededGradient(seed ?? alt),
|
|
4983
|
+
"aria-hidden": "true",
|
|
4984
|
+
children: mark && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-muted-foreground [&_svg]:size-8", children: mark })
|
|
4985
|
+
}
|
|
4986
|
+
);
|
|
4987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4988
|
+
"div",
|
|
4989
|
+
{
|
|
4990
|
+
className: cn("relative overflow-hidden rounded-lg bg-muted", preset, className),
|
|
4991
|
+
style: aspectStyle,
|
|
4992
|
+
children: src ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4993
|
+
Image2,
|
|
4994
|
+
{
|
|
4995
|
+
src,
|
|
4996
|
+
alt,
|
|
4997
|
+
priority,
|
|
4998
|
+
sizes,
|
|
4999
|
+
fallback: fallbackNode,
|
|
5000
|
+
className: "h-full w-full object-cover"
|
|
5001
|
+
}
|
|
5002
|
+
) : fallbackNode
|
|
5003
|
+
}
|
|
5004
|
+
);
|
|
5005
|
+
}
|
|
5006
|
+
CoverImage.displayName = "CoverImage";
|
|
5007
|
+
|
|
4935
5008
|
// src/components/text/Text.tsx
|
|
4936
5009
|
var React51 = __toESM(require("react"));
|
|
4937
|
-
var
|
|
5010
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4938
5011
|
var sizeClasses4 = {
|
|
4939
5012
|
xs: "text-xs",
|
|
4940
5013
|
sm: "text-sm",
|
|
@@ -4951,7 +5024,7 @@ var weightClasses = {
|
|
|
4951
5024
|
var Text = React51.forwardRef(
|
|
4952
5025
|
({ inline, size = "base", weight, muted, className, ...props }, ref) => {
|
|
4953
5026
|
const Tag = inline ? "span" : "p";
|
|
4954
|
-
return /* @__PURE__ */ (0,
|
|
5027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4955
5028
|
Tag,
|
|
4956
5029
|
{
|
|
4957
5030
|
ref,
|
|
@@ -4971,7 +5044,7 @@ Text.displayName = "Text";
|
|
|
4971
5044
|
|
|
4972
5045
|
// src/components/heading/Heading.tsx
|
|
4973
5046
|
var React52 = __toESM(require("react"));
|
|
4974
|
-
var
|
|
5047
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4975
5048
|
var levelClasses = {
|
|
4976
5049
|
1: "text-4xl",
|
|
4977
5050
|
2: "text-3xl",
|
|
@@ -4991,7 +5064,7 @@ var sizeClasses5 = {
|
|
|
4991
5064
|
var Heading = React52.forwardRef(
|
|
4992
5065
|
({ level, size, muted, className, ...props }, ref) => {
|
|
4993
5066
|
const Tag = `h${level}`;
|
|
4994
|
-
return /* @__PURE__ */ (0,
|
|
5067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4995
5068
|
Tag,
|
|
4996
5069
|
{
|
|
4997
5070
|
ref,
|
|
@@ -5010,17 +5083,19 @@ Heading.displayName = "Heading";
|
|
|
5010
5083
|
|
|
5011
5084
|
// src/components/empty-state/EmptyState.tsx
|
|
5012
5085
|
var React53 = __toESM(require("react"));
|
|
5013
|
-
var
|
|
5086
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5014
5087
|
function isActionObject(value) {
|
|
5015
5088
|
return typeof value === "object" && value !== null && !React53.isValidElement(value) && "label" in value;
|
|
5016
5089
|
}
|
|
5017
|
-
function renderAction(action) {
|
|
5090
|
+
function renderAction(action, linkComponent, linkHrefProp = "href") {
|
|
5018
5091
|
if (!isActionObject(action)) return action;
|
|
5019
5092
|
const { label, onClick, href, variant } = action;
|
|
5020
5093
|
if (href) {
|
|
5021
|
-
|
|
5094
|
+
const LinkEl = linkComponent ?? "a";
|
|
5095
|
+
const destination = linkHrefProp === "to" ? { to: href } : { href };
|
|
5096
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { variant, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(LinkEl, { ...destination, children: label }) });
|
|
5022
5097
|
}
|
|
5023
|
-
return /* @__PURE__ */ (0,
|
|
5098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { variant, onClick, children: label });
|
|
5024
5099
|
}
|
|
5025
5100
|
var EmptyState = React53.forwardRef(function EmptyState2({
|
|
5026
5101
|
icon,
|
|
@@ -5031,27 +5106,35 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
5031
5106
|
secondaryAction,
|
|
5032
5107
|
titleAs: Title = "p",
|
|
5033
5108
|
size = "md",
|
|
5109
|
+
align = "center",
|
|
5110
|
+
tone = "plain",
|
|
5111
|
+
linkComponent,
|
|
5112
|
+
linkHrefProp = "href",
|
|
5034
5113
|
className,
|
|
5035
5114
|
children,
|
|
5036
5115
|
...props
|
|
5037
5116
|
}, ref) {
|
|
5038
|
-
const primaryAction = renderAction(action) ?? actions;
|
|
5039
|
-
|
|
5117
|
+
const primaryAction = renderAction(action, linkComponent, linkHrefProp) ?? actions;
|
|
5118
|
+
const start = align === "start";
|
|
5119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
5040
5120
|
"div",
|
|
5041
5121
|
{
|
|
5042
5122
|
ref,
|
|
5043
5123
|
className: cn(
|
|
5044
|
-
"flex flex-col
|
|
5124
|
+
"flex flex-col rounded-lg text-center",
|
|
5125
|
+
start ? "items-start text-left" : "items-center text-center",
|
|
5126
|
+
"justify-center",
|
|
5127
|
+
tone === "panel" ? "border border-border bg-muted" : "border border-dashed border-border",
|
|
5045
5128
|
size === "md" ? "gap-3 px-6 py-12" : "gap-2 px-4 py-6",
|
|
5046
5129
|
className
|
|
5047
5130
|
),
|
|
5048
5131
|
...props,
|
|
5049
5132
|
children: [
|
|
5050
|
-
icon && /* @__PURE__ */ (0,
|
|
5051
|
-
/* @__PURE__ */ (0,
|
|
5052
|
-
description && /* @__PURE__ */ (0,
|
|
5133
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "text-muted-foreground [&_svg]:size-8", children: icon }),
|
|
5134
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Title, { className: cn("font-semibold", size === "md" ? "text-base" : "text-sm"), children: title }),
|
|
5135
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: cn("max-w-sm text-sm text-muted-foreground", start && "max-w-md"), children: description }),
|
|
5053
5136
|
children,
|
|
5054
|
-
(primaryAction || secondaryAction) && /* @__PURE__ */ (0,
|
|
5137
|
+
(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: [
|
|
5055
5138
|
primaryAction,
|
|
5056
5139
|
secondaryAction
|
|
5057
5140
|
] })
|
|
@@ -5062,7 +5145,7 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
5062
5145
|
|
|
5063
5146
|
// src/components/page-header/PageHeader.tsx
|
|
5064
5147
|
var React54 = __toESM(require("react"));
|
|
5065
|
-
var
|
|
5148
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5066
5149
|
var sizeClasses6 = {
|
|
5067
5150
|
sm: "text-xl",
|
|
5068
5151
|
md: "text-2xl",
|
|
@@ -5071,17 +5154,17 @@ var sizeClasses6 = {
|
|
|
5071
5154
|
};
|
|
5072
5155
|
var PageHeader = React54.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
5073
5156
|
const supporting = description ?? subtitle;
|
|
5074
|
-
return /* @__PURE__ */ (0,
|
|
5075
|
-
breadcrumbs && /* @__PURE__ */ (0,
|
|
5076
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
5077
|
-
/* @__PURE__ */ (0,
|
|
5078
|
-
/* @__PURE__ */ (0,
|
|
5079
|
-
/* @__PURE__ */ (0,
|
|
5080
|
-
supporting && /* @__PURE__ */ (0,
|
|
5157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { ref, className: cn("flex flex-col gap-2", align === "center" && "items-center text-center", className), ...props, children: [
|
|
5158
|
+
breadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "text-sm text-muted-foreground", children: breadcrumbs }),
|
|
5159
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: cn("text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
5160
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: cn("flex w-full flex-wrap items-start justify-between gap-3", align === "center" && "justify-center"), children: [
|
|
5161
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
5162
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("h1", { className: cn("font-semibold tracking-tight", sizeClasses6[size], titleClassName), children: title }),
|
|
5163
|
+
supporting && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: cn("mt-2 max-w-2xl text-base text-muted-foreground", descriptionClassName), children: supporting })
|
|
5081
5164
|
] }),
|
|
5082
|
-
actions && /* @__PURE__ */ (0,
|
|
5165
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
5083
5166
|
] }),
|
|
5084
|
-
children && /* @__PURE__ */ (0,
|
|
5167
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "mt-2", children })
|
|
5085
5168
|
] });
|
|
5086
5169
|
});
|
|
5087
5170
|
|
|
@@ -5102,7 +5185,7 @@ function documentHead({
|
|
|
5102
5185
|
|
|
5103
5186
|
// src/components/section-heading/SectionHeading.tsx
|
|
5104
5187
|
var React55 = __toESM(require("react"));
|
|
5105
|
-
var
|
|
5188
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5106
5189
|
var sizeClasses7 = {
|
|
5107
5190
|
sm: "text-lg",
|
|
5108
5191
|
md: "text-2xl",
|
|
@@ -5110,7 +5193,7 @@ var sizeClasses7 = {
|
|
|
5110
5193
|
};
|
|
5111
5194
|
var SectionHeading = React55.forwardRef(function SectionHeading2({ title, description, eyebrow, actions, level = 2, align = "left", size = "md", titleClassName, descriptionClassName, eyebrowClassName, className, ...props }, ref) {
|
|
5112
5195
|
const Heading2 = `h${level}`;
|
|
5113
|
-
return /* @__PURE__ */ (0,
|
|
5196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
5114
5197
|
"div",
|
|
5115
5198
|
{
|
|
5116
5199
|
ref,
|
|
@@ -5121,12 +5204,12 @@ var SectionHeading = React55.forwardRef(function SectionHeading2({ title, descri
|
|
|
5121
5204
|
),
|
|
5122
5205
|
...props,
|
|
5123
5206
|
children: [
|
|
5124
|
-
/* @__PURE__ */ (0,
|
|
5125
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
5126
|
-
/* @__PURE__ */ (0,
|
|
5127
|
-
description && /* @__PURE__ */ (0,
|
|
5207
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
5208
|
+
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 }),
|
|
5209
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Heading2, { className: cn("font-semibold tracking-tight", sizeClasses7[size], titleClassName), children: title }),
|
|
5210
|
+
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 })
|
|
5128
5211
|
] }),
|
|
5129
|
-
actions && /* @__PURE__ */ (0,
|
|
5212
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
5130
5213
|
]
|
|
5131
5214
|
}
|
|
5132
5215
|
);
|
|
@@ -5134,7 +5217,7 @@ var SectionHeading = React55.forwardRef(function SectionHeading2({ title, descri
|
|
|
5134
5217
|
|
|
5135
5218
|
// src/components/metric-card/MetricCard.tsx
|
|
5136
5219
|
var React56 = __toESM(require("react"));
|
|
5137
|
-
var
|
|
5220
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5138
5221
|
var trendClasses = {
|
|
5139
5222
|
up: "text-success",
|
|
5140
5223
|
down: "text-destructive",
|
|
@@ -5151,7 +5234,7 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
5151
5234
|
const heading = label ?? title;
|
|
5152
5235
|
const supporting = hint ?? description;
|
|
5153
5236
|
if (loading) {
|
|
5154
|
-
return /* @__PURE__ */ (0,
|
|
5237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
5155
5238
|
"div",
|
|
5156
5239
|
{
|
|
5157
5240
|
ref,
|
|
@@ -5159,41 +5242,41 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
5159
5242
|
className: cn("rounded-xl border border-border bg-card p-5", className),
|
|
5160
5243
|
...props,
|
|
5161
5244
|
children: [
|
|
5162
|
-
/* @__PURE__ */ (0,
|
|
5163
|
-
heading && /* @__PURE__ */ (0,
|
|
5164
|
-
icon && /* @__PURE__ */ (0,
|
|
5245
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
|
|
5246
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
5247
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
5165
5248
|
] }),
|
|
5166
|
-
/* @__PURE__ */ (0,
|
|
5167
|
-
/* @__PURE__ */ (0,
|
|
5249
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { "aria-hidden": "true", className: "mt-3 block h-7 w-24 animate-pulse rounded-md bg-muted" }),
|
|
5250
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "sr-only", children: "Loading" })
|
|
5168
5251
|
]
|
|
5169
5252
|
}
|
|
5170
5253
|
);
|
|
5171
5254
|
}
|
|
5172
|
-
return /* @__PURE__ */ (0,
|
|
5173
|
-
/* @__PURE__ */ (0,
|
|
5174
|
-
heading && /* @__PURE__ */ (0,
|
|
5175
|
-
icon && /* @__PURE__ */ (0,
|
|
5255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { ref, className: cn("rounded-xl border border-border bg-card p-5", className), ...props, children: [
|
|
5256
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
|
|
5257
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
5258
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
5176
5259
|
] }),
|
|
5177
|
-
/* @__PURE__ */ (0,
|
|
5178
|
-
(delta || supporting) && /* @__PURE__ */ (0,
|
|
5179
|
-
delta && /* @__PURE__ */ (0,
|
|
5180
|
-
/* @__PURE__ */ (0,
|
|
5260
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: cn("mt-2 text-2xl font-semibold tabular-nums", toneClasses[tone]), children: value }),
|
|
5261
|
+
(delta || supporting) && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("p", { className: "mt-1 flex items-center gap-2 text-sm", children: [
|
|
5262
|
+
delta && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { className: cn("font-medium tabular-nums", trendClasses[trend]), children: [
|
|
5263
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { "aria-hidden": "true", children: trendGlyph[trend] }),
|
|
5181
5264
|
" ",
|
|
5182
5265
|
delta
|
|
5183
5266
|
] }),
|
|
5184
|
-
supporting && /* @__PURE__ */ (0,
|
|
5267
|
+
supporting && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-muted-foreground", children: supporting })
|
|
5185
5268
|
] })
|
|
5186
5269
|
] });
|
|
5187
5270
|
});
|
|
5188
5271
|
|
|
5189
5272
|
// src/components/password-input/PasswordInput.tsx
|
|
5190
5273
|
var React57 = __toESM(require("react"));
|
|
5191
|
-
var
|
|
5274
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5192
5275
|
var PasswordInput = React57.forwardRef(function PasswordInput2({ className, showLabel = "Show password", hideLabel = "Hide password", ...props }, ref) {
|
|
5193
5276
|
const [visible, setVisible] = React57.useState(false);
|
|
5194
|
-
return /* @__PURE__ */ (0,
|
|
5195
|
-
/* @__PURE__ */ (0,
|
|
5196
|
-
/* @__PURE__ */ (0,
|
|
5277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: cn("relative flex items-center", className), children: [
|
|
5278
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Input, { ref, type: visible ? "text" : "password", className: "pr-24", ...props }),
|
|
5279
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5197
5280
|
Button,
|
|
5198
5281
|
{
|
|
5199
5282
|
type: "button",
|
|
@@ -5211,7 +5294,7 @@ var PasswordInput = React57.forwardRef(function PasswordInput2({ className, show
|
|
|
5211
5294
|
|
|
5212
5295
|
// src/components/auth-layout/AuthLayout.tsx
|
|
5213
5296
|
var React58 = __toESM(require("react"));
|
|
5214
|
-
var
|
|
5297
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5215
5298
|
var sizeClasses8 = {
|
|
5216
5299
|
sm: "max-w-sm",
|
|
5217
5300
|
md: "max-w-md",
|
|
@@ -5236,7 +5319,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5236
5319
|
const supporting = description ?? subtitle;
|
|
5237
5320
|
const mark = brand ?? logo;
|
|
5238
5321
|
const widthStyle = maxWidth === void 0 ? void 0 : { maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth };
|
|
5239
|
-
const form = /* @__PURE__ */ (0,
|
|
5322
|
+
const form = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
5240
5323
|
"div",
|
|
5241
5324
|
{
|
|
5242
5325
|
className: cn(
|
|
@@ -5245,8 +5328,8 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5245
5328
|
),
|
|
5246
5329
|
style: widthStyle,
|
|
5247
5330
|
children: [
|
|
5248
|
-
mark && /* @__PURE__ */ (0,
|
|
5249
|
-
/* @__PURE__ */ (0,
|
|
5331
|
+
mark && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-6", children: mark }),
|
|
5332
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
5250
5333
|
"div",
|
|
5251
5334
|
{
|
|
5252
5335
|
className: cn(
|
|
@@ -5255,31 +5338,31 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5255
5338
|
),
|
|
5256
5339
|
style: widthStyle,
|
|
5257
5340
|
children: [
|
|
5258
|
-
/* @__PURE__ */ (0,
|
|
5259
|
-
supporting && /* @__PURE__ */ (0,
|
|
5260
|
-
/* @__PURE__ */ (0,
|
|
5341
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("h1", { className: "text-xl font-semibold tracking-tight", children: title }),
|
|
5342
|
+
supporting && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "mt-1 text-sm text-muted-foreground", children: supporting }),
|
|
5343
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mt-6", children })
|
|
5261
5344
|
]
|
|
5262
5345
|
}
|
|
5263
5346
|
),
|
|
5264
|
-
footer && /* @__PURE__ */ (0,
|
|
5347
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mt-6 text-center text-sm text-muted-foreground", children: footer })
|
|
5265
5348
|
]
|
|
5266
5349
|
}
|
|
5267
5350
|
);
|
|
5268
5351
|
if (split) {
|
|
5269
|
-
return /* @__PURE__ */ (0,
|
|
5352
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
5270
5353
|
"div",
|
|
5271
5354
|
{
|
|
5272
5355
|
ref,
|
|
5273
5356
|
className: cn("min-h-screen bg-muted/30 px-4 py-12 lg:px-8", className),
|
|
5274
5357
|
...props,
|
|
5275
|
-
children: /* @__PURE__ */ (0,
|
|
5358
|
+
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: [
|
|
5276
5359
|
form,
|
|
5277
|
-
/* @__PURE__ */ (0,
|
|
5360
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("aside", { className: "w-full", children: aside })
|
|
5278
5361
|
] })
|
|
5279
5362
|
}
|
|
5280
5363
|
);
|
|
5281
5364
|
}
|
|
5282
|
-
return /* @__PURE__ */ (0,
|
|
5365
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
5283
5366
|
"div",
|
|
5284
5367
|
{
|
|
5285
5368
|
ref,
|
|
@@ -5295,7 +5378,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5295
5378
|
|
|
5296
5379
|
// src/components/filter-bar/FilterBar.tsx
|
|
5297
5380
|
var React59 = __toESM(require("react"));
|
|
5298
|
-
var
|
|
5381
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5299
5382
|
var FilterBar = React59.forwardRef(function FilterBar2({
|
|
5300
5383
|
searchValue,
|
|
5301
5384
|
onSearchChange,
|
|
@@ -5311,7 +5394,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5311
5394
|
children,
|
|
5312
5395
|
...props
|
|
5313
5396
|
}, ref) {
|
|
5314
|
-
return /* @__PURE__ */ (0,
|
|
5397
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
5315
5398
|
"div",
|
|
5316
5399
|
{
|
|
5317
5400
|
ref,
|
|
@@ -5322,7 +5405,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5322
5405
|
),
|
|
5323
5406
|
...props,
|
|
5324
5407
|
children: [
|
|
5325
|
-
onSearchChange !== void 0 && /* @__PURE__ */ (0,
|
|
5408
|
+
onSearchChange !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
5326
5409
|
Input,
|
|
5327
5410
|
{
|
|
5328
5411
|
type: "search",
|
|
@@ -5333,21 +5416,21 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5333
5416
|
className: "h-9 w-full min-w-40 flex-1 sm:w-auto"
|
|
5334
5417
|
}
|
|
5335
5418
|
),
|
|
5336
|
-
/* @__PURE__ */ (0,
|
|
5337
|
-
onOpenFilters && /* @__PURE__ */ (0,
|
|
5419
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "flex flex-wrap items-center gap-2", children }),
|
|
5420
|
+
onOpenFilters && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Button, { type: "button", variant: "outline", size: "sm", onClick: onOpenFilters, children: [
|
|
5338
5421
|
filtersLabel,
|
|
5339
5422
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
5340
5423
|
] }),
|
|
5341
|
-
onReset && /* @__PURE__ */ (0,
|
|
5424
|
+
onReset && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, children: [
|
|
5342
5425
|
"Reset",
|
|
5343
5426
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
5344
5427
|
] }),
|
|
5345
|
-
resultsCount !== void 0 && /* @__PURE__ */ (0,
|
|
5428
|
+
resultsCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("span", { className: "ml-auto text-sm text-muted-foreground", children: [
|
|
5346
5429
|
resultsCount,
|
|
5347
5430
|
" ",
|
|
5348
5431
|
resultsLabel
|
|
5349
5432
|
] }),
|
|
5350
|
-
trailing && /* @__PURE__ */ (0,
|
|
5433
|
+
trailing && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: cn("flex items-center gap-2", resultsCount === void 0 && "ml-auto"), children: trailing })
|
|
5351
5434
|
]
|
|
5352
5435
|
}
|
|
5353
5436
|
);
|
|
@@ -5355,7 +5438,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5355
5438
|
|
|
5356
5439
|
// src/components/date-picker/DatePicker.tsx
|
|
5357
5440
|
var React60 = __toESM(require("react"));
|
|
5358
|
-
var
|
|
5441
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5359
5442
|
var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
5360
5443
|
const [internal, setInternal] = React60.useState(defaultValue ?? "");
|
|
5361
5444
|
const current = value ?? internal;
|
|
@@ -5363,8 +5446,8 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5363
5446
|
if (value === void 0) setInternal(next);
|
|
5364
5447
|
onValueChange?.(next);
|
|
5365
5448
|
};
|
|
5366
|
-
return /* @__PURE__ */ (0,
|
|
5367
|
-
/* @__PURE__ */ (0,
|
|
5449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: cn("relative flex items-center", className), children: [
|
|
5450
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
5368
5451
|
Input,
|
|
5369
5452
|
{
|
|
5370
5453
|
ref,
|
|
@@ -5378,7 +5461,7 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5378
5461
|
...props
|
|
5379
5462
|
}
|
|
5380
5463
|
),
|
|
5381
|
-
clearable && current && /* @__PURE__ */ (0,
|
|
5464
|
+
clearable && current && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
5382
5465
|
"button",
|
|
5383
5466
|
{
|
|
5384
5467
|
type: "button",
|
|
@@ -5464,7 +5547,7 @@ function computePosition({
|
|
|
5464
5547
|
}
|
|
5465
5548
|
|
|
5466
5549
|
// src/components/popover/Popover.tsx
|
|
5467
|
-
var
|
|
5550
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5468
5551
|
var PopoverContext = React61.createContext({
|
|
5469
5552
|
open: false,
|
|
5470
5553
|
setOpen: () => {
|
|
@@ -5499,7 +5582,7 @@ var Popover = React61.forwardRef(
|
|
|
5499
5582
|
},
|
|
5500
5583
|
[open, onOpenChange]
|
|
5501
5584
|
);
|
|
5502
|
-
return /* @__PURE__ */ (0,
|
|
5585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5503
5586
|
PopoverContext.Provider,
|
|
5504
5587
|
{
|
|
5505
5588
|
value: { open: current, setOpen, triggerId, contentId, wrapperRef, anchorRef, triggerRef },
|
|
@@ -5520,7 +5603,7 @@ var PopoverTrigger = React61.forwardRef(
|
|
|
5520
5603
|
},
|
|
5521
5604
|
[ref, triggerRef]
|
|
5522
5605
|
);
|
|
5523
|
-
return /* @__PURE__ */ (0,
|
|
5606
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5524
5607
|
"button",
|
|
5525
5608
|
{
|
|
5526
5609
|
ref: setRefs,
|
|
@@ -5556,7 +5639,7 @@ var PopoverAnchor = React61.forwardRef(
|
|
|
5556
5639
|
},
|
|
5557
5640
|
[anchorRef, ref]
|
|
5558
5641
|
);
|
|
5559
|
-
return /* @__PURE__ */ (0,
|
|
5642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { ref: setRefs, className: cn("inline-block", className), ...props, children });
|
|
5560
5643
|
}
|
|
5561
5644
|
);
|
|
5562
5645
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
@@ -5656,7 +5739,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5656
5739
|
}, [open, pos]);
|
|
5657
5740
|
if (!open || typeof document === "undefined") return null;
|
|
5658
5741
|
return (0, import_react_dom7.createPortal)(
|
|
5659
|
-
/* @__PURE__ */ (0,
|
|
5742
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5660
5743
|
"div",
|
|
5661
5744
|
{
|
|
5662
5745
|
ref: (node) => {
|
|
@@ -5701,7 +5784,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5701
5784
|
PopoverContent.displayName = "PopoverContent";
|
|
5702
5785
|
|
|
5703
5786
|
// src/components/date-picker-popover/DatePickerPopover.tsx
|
|
5704
|
-
var
|
|
5787
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5705
5788
|
var DatePickerPopover = React62.forwardRef(
|
|
5706
5789
|
({
|
|
5707
5790
|
value,
|
|
@@ -5734,9 +5817,9 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5734
5817
|
[ref]
|
|
5735
5818
|
);
|
|
5736
5819
|
const label = value ? formatDateLabel(value, locale) : placeholder;
|
|
5737
|
-
return /* @__PURE__ */ (0,
|
|
5738
|
-
/* @__PURE__ */ (0,
|
|
5739
|
-
/* @__PURE__ */ (0,
|
|
5820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
|
|
5821
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
5822
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5740
5823
|
PopoverTrigger,
|
|
5741
5824
|
{
|
|
5742
5825
|
ref: setTriggerRef,
|
|
@@ -5754,7 +5837,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5754
5837
|
children: label
|
|
5755
5838
|
}
|
|
5756
5839
|
),
|
|
5757
|
-
/* @__PURE__ */ (0,
|
|
5840
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(PopoverContent, { side, align, matchTriggerWidth: true, className: "w-auto p-3", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5758
5841
|
Calendar,
|
|
5759
5842
|
{
|
|
5760
5843
|
value,
|
|
@@ -5772,7 +5855,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5772
5855
|
}
|
|
5773
5856
|
) })
|
|
5774
5857
|
] }),
|
|
5775
|
-
name ? /* @__PURE__ */ (0,
|
|
5858
|
+
name ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("input", { type: "hidden", name, value: value ?? "", required }) : null
|
|
5776
5859
|
] });
|
|
5777
5860
|
}
|
|
5778
5861
|
);
|
|
@@ -5780,7 +5863,7 @@ DatePickerPopover.displayName = "DatePickerPopover";
|
|
|
5780
5863
|
|
|
5781
5864
|
// src/components/time-picker/TimePicker.tsx
|
|
5782
5865
|
var React63 = __toESM(require("react"));
|
|
5783
|
-
var
|
|
5866
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5784
5867
|
var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
5785
5868
|
const [internal, setInternal] = React63.useState(defaultValue ?? "");
|
|
5786
5869
|
const current = value ?? internal;
|
|
@@ -5788,8 +5871,8 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5788
5871
|
if (value === void 0) setInternal(next);
|
|
5789
5872
|
onValueChange?.(next);
|
|
5790
5873
|
};
|
|
5791
|
-
return /* @__PURE__ */ (0,
|
|
5792
|
-
/* @__PURE__ */ (0,
|
|
5874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: cn("relative flex items-center", className), children: [
|
|
5875
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
5793
5876
|
Input,
|
|
5794
5877
|
{
|
|
5795
5878
|
ref,
|
|
@@ -5803,7 +5886,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5803
5886
|
...props
|
|
5804
5887
|
}
|
|
5805
5888
|
),
|
|
5806
|
-
clearable && current && /* @__PURE__ */ (0,
|
|
5889
|
+
clearable && current && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
5807
5890
|
"button",
|
|
5808
5891
|
{
|
|
5809
5892
|
type: "button",
|
|
@@ -5818,7 +5901,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5818
5901
|
|
|
5819
5902
|
// src/components/stepper/Stepper.tsx
|
|
5820
5903
|
var React64 = __toESM(require("react"));
|
|
5821
|
-
var
|
|
5904
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5822
5905
|
var Stepper = React64.forwardRef(function Stepper2({
|
|
5823
5906
|
steps,
|
|
5824
5907
|
current,
|
|
@@ -5842,7 +5925,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5842
5925
|
const verticalTitlePad = size === "sm" ? "pt-0.5" : "pt-1";
|
|
5843
5926
|
const connectorTop = variant === "dots" ? size === "sm" ? "mt-1" : "mt-[5px]" : size === "sm" ? "mt-3" : "mt-3.5";
|
|
5844
5927
|
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";
|
|
5845
|
-
return /* @__PURE__ */ (0,
|
|
5928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5846
5929
|
"ol",
|
|
5847
5930
|
{
|
|
5848
5931
|
ref,
|
|
@@ -5856,7 +5939,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5856
5939
|
const isLast = index === steps.length - 1;
|
|
5857
5940
|
const titleCentered = alignTitles === "center" && !step.description;
|
|
5858
5941
|
const below = !vertical && labelPlacement === "below";
|
|
5859
|
-
const marker = /* @__PURE__ */ (0,
|
|
5942
|
+
const marker = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5860
5943
|
"span",
|
|
5861
5944
|
{
|
|
5862
5945
|
"aria-hidden": "true",
|
|
@@ -5878,8 +5961,8 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5878
5961
|
children: variant === "numbered" ? state === "complete" ? "\u2713" : index + 1 : null
|
|
5879
5962
|
}
|
|
5880
5963
|
);
|
|
5881
|
-
const label = /* @__PURE__ */ (0,
|
|
5882
|
-
/* @__PURE__ */ (0,
|
|
5964
|
+
const label = /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("span", { className: "min-w-0", children: [
|
|
5965
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5883
5966
|
"span",
|
|
5884
5967
|
{
|
|
5885
5968
|
className: cn(
|
|
@@ -5891,7 +5974,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5891
5974
|
children: step.label
|
|
5892
5975
|
}
|
|
5893
5976
|
),
|
|
5894
|
-
step.description && /* @__PURE__ */ (0,
|
|
5977
|
+
step.description && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5895
5978
|
"span",
|
|
5896
5979
|
{
|
|
5897
5980
|
className: cn(
|
|
@@ -5902,9 +5985,9 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5902
5985
|
children: step.description
|
|
5903
5986
|
}
|
|
5904
5987
|
),
|
|
5905
|
-
/* @__PURE__ */ (0,
|
|
5988
|
+
/* @__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)" })
|
|
5906
5989
|
] });
|
|
5907
|
-
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ (0,
|
|
5990
|
+
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5908
5991
|
"button",
|
|
5909
5992
|
{
|
|
5910
5993
|
type: "button",
|
|
@@ -5913,29 +5996,29 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5913
5996
|
className: cn(rowClassName, focusClass),
|
|
5914
5997
|
children
|
|
5915
5998
|
}
|
|
5916
|
-
) : /* @__PURE__ */ (0,
|
|
5999
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
5917
6000
|
if (vertical) {
|
|
5918
|
-
return /* @__PURE__ */ (0,
|
|
5919
|
-
/* @__PURE__ */ (0,
|
|
5920
|
-
/* @__PURE__ */ (0,
|
|
6001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { className: "flex", children: renderRow(
|
|
6002
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
6003
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-col items-center", children: [
|
|
5921
6004
|
marker,
|
|
5922
|
-
!isLast && /* @__PURE__ */ (0,
|
|
6005
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { "aria-hidden": "true", className: "my-1 w-px flex-1 rounded-full bg-border" })
|
|
5923
6006
|
] }),
|
|
5924
|
-
/* @__PURE__ */ (0,
|
|
6007
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: cn("min-w-0 pb-6", titleCentered && verticalTitlePad), children: label })
|
|
5925
6008
|
] }),
|
|
5926
6009
|
"flex w-full items-stretch gap-3 text-left"
|
|
5927
6010
|
) }, step.label);
|
|
5928
6011
|
}
|
|
5929
6012
|
if (below) {
|
|
5930
|
-
return /* @__PURE__ */ (0,
|
|
6013
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("li", { className: "flex min-w-0 flex-1 items-start gap-2", children: [
|
|
5931
6014
|
renderRow(
|
|
5932
|
-
/* @__PURE__ */ (0,
|
|
6015
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
5933
6016
|
marker,
|
|
5934
6017
|
label
|
|
5935
6018
|
] }),
|
|
5936
6019
|
"flex min-w-0 flex-1 flex-col items-center gap-2 text-center"
|
|
5937
6020
|
),
|
|
5938
|
-
!isLast && /* @__PURE__ */ (0,
|
|
6021
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5939
6022
|
"span",
|
|
5940
6023
|
{
|
|
5941
6024
|
"aria-hidden": "true",
|
|
@@ -5944,15 +6027,15 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5944
6027
|
)
|
|
5945
6028
|
] }, step.label);
|
|
5946
6029
|
}
|
|
5947
|
-
return /* @__PURE__ */ (0,
|
|
6030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("li", { className: "flex min-w-0 items-start gap-2", children: [
|
|
5948
6031
|
renderRow(
|
|
5949
|
-
/* @__PURE__ */ (0,
|
|
6032
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
5950
6033
|
marker,
|
|
5951
6034
|
label
|
|
5952
6035
|
] }),
|
|
5953
6036
|
cn("flex min-w-0 text-left", gapClass, titleCentered ? "items-center" : "items-start")
|
|
5954
6037
|
),
|
|
5955
|
-
!isLast && /* @__PURE__ */ (0,
|
|
6038
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5956
6039
|
"span",
|
|
5957
6040
|
{
|
|
5958
6041
|
"aria-hidden": "true",
|
|
@@ -5967,7 +6050,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5967
6050
|
|
|
5968
6051
|
// src/components/file-upload/FileUpload.tsx
|
|
5969
6052
|
var React65 = __toESM(require("react"));
|
|
5970
|
-
var
|
|
6053
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5971
6054
|
function formatSize(bytes) {
|
|
5972
6055
|
if (bytes < 1024) return `${bytes} B`;
|
|
5973
6056
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -6014,8 +6097,8 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6014
6097
|
const list = Array.from(incoming);
|
|
6015
6098
|
commit(multiple ? [...current, ...list] : list.slice(0, 1));
|
|
6016
6099
|
};
|
|
6017
|
-
return /* @__PURE__ */ (0,
|
|
6018
|
-
/* @__PURE__ */ (0,
|
|
6100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: cn("flex flex-col gap-3", className), children: [
|
|
6101
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
6019
6102
|
"div",
|
|
6020
6103
|
{
|
|
6021
6104
|
onDragOver: (event) => {
|
|
@@ -6036,9 +6119,9 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6036
6119
|
disabled && "opacity-50"
|
|
6037
6120
|
),
|
|
6038
6121
|
children: [
|
|
6039
|
-
/* @__PURE__ */ (0,
|
|
6122
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
6040
6123
|
label,
|
|
6041
|
-
/* @__PURE__ */ (0,
|
|
6124
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6042
6125
|
"input",
|
|
6043
6126
|
{
|
|
6044
6127
|
ref,
|
|
@@ -6056,15 +6139,15 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6056
6139
|
}
|
|
6057
6140
|
)
|
|
6058
6141
|
] }),
|
|
6059
|
-
/* @__PURE__ */ (0,
|
|
6142
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "mt-1 text-xs text-muted-foreground", children: hint ?? (accept ? `Accepted: ${accept}` : "Any file type") })
|
|
6060
6143
|
]
|
|
6061
6144
|
}
|
|
6062
6145
|
),
|
|
6063
|
-
current.length > 0 && /* @__PURE__ */ (0,
|
|
6064
|
-
/* @__PURE__ */ (0,
|
|
6065
|
-
/* @__PURE__ */ (0,
|
|
6066
|
-
/* @__PURE__ */ (0,
|
|
6067
|
-
progress?.[file.name] !== void 0 && /* @__PURE__ */ (0,
|
|
6146
|
+
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: [
|
|
6147
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "min-w-0", children: [
|
|
6148
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "truncate text-sm", children: file.name }),
|
|
6149
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "text-xs text-muted-foreground", children: formatSize(file.size) }),
|
|
6150
|
+
progress?.[file.name] !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6068
6151
|
"div",
|
|
6069
6152
|
{
|
|
6070
6153
|
role: "progressbar",
|
|
@@ -6073,11 +6156,11 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6073
6156
|
"aria-valuemax": 100,
|
|
6074
6157
|
"aria-label": uploadingLabel(file),
|
|
6075
6158
|
className: "mt-1 h-1.5 w-40 overflow-hidden rounded-full bg-muted",
|
|
6076
|
-
children: /* @__PURE__ */ (0,
|
|
6159
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "h-full bg-primary", style: { width: `${progress[file.name]}%` } })
|
|
6077
6160
|
}
|
|
6078
6161
|
)
|
|
6079
6162
|
] }),
|
|
6080
|
-
/* @__PURE__ */ (0,
|
|
6163
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6081
6164
|
"button",
|
|
6082
6165
|
{
|
|
6083
6166
|
type: "button",
|
|
@@ -6093,17 +6176,17 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
6093
6176
|
|
|
6094
6177
|
// src/components/timeline/Timeline.tsx
|
|
6095
6178
|
var React66 = __toESM(require("react"));
|
|
6096
|
-
var
|
|
6179
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6097
6180
|
var Timeline = React66.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
6098
|
-
return /* @__PURE__ */ (0,
|
|
6099
|
-
index < items.length - 1 && /* @__PURE__ */ (0,
|
|
6181
|
+
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: [
|
|
6182
|
+
index < items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6100
6183
|
"span",
|
|
6101
6184
|
{
|
|
6102
6185
|
"aria-hidden": "true",
|
|
6103
6186
|
className: "absolute left-[5.5px] top-4 -bottom-7 w-px bg-border"
|
|
6104
6187
|
}
|
|
6105
6188
|
),
|
|
6106
|
-
/* @__PURE__ */ (0,
|
|
6189
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "relative z-10 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6107
6190
|
"span",
|
|
6108
6191
|
{
|
|
6109
6192
|
"aria-hidden": "true",
|
|
@@ -6113,22 +6196,22 @@ var Timeline = React66.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
6113
6196
|
)
|
|
6114
6197
|
}
|
|
6115
6198
|
) }),
|
|
6116
|
-
/* @__PURE__ */ (0,
|
|
6117
|
-
item.period && /* @__PURE__ */ (0,
|
|
6118
|
-
/* @__PURE__ */ (0,
|
|
6119
|
-
item.description && /* @__PURE__ */ (0,
|
|
6120
|
-
item.icon && /* @__PURE__ */ (0,
|
|
6199
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "min-w-0 pb-1", children: [
|
|
6200
|
+
item.period && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
|
|
6201
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
|
|
6202
|
+
item.description && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "mt-1 text-sm text-muted-foreground", children: item.description }),
|
|
6203
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "mt-1 text-muted-foreground [&_svg]:size-4", children: item.icon })
|
|
6121
6204
|
] })
|
|
6122
6205
|
] }, `${item.title}-${index}`)) });
|
|
6123
6206
|
});
|
|
6124
6207
|
|
|
6125
6208
|
// src/components/block/Block.tsx
|
|
6126
6209
|
var React67 = __toESM(require("react"));
|
|
6127
|
-
var
|
|
6210
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
6128
6211
|
var Block = React67.forwardRef(
|
|
6129
6212
|
({ as = "div", inline, muted, className, ...props }, ref) => {
|
|
6130
6213
|
const Tag = inline ? "span" : as;
|
|
6131
|
-
return /* @__PURE__ */ (0,
|
|
6214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6132
6215
|
Tag,
|
|
6133
6216
|
{
|
|
6134
6217
|
ref,
|
|
@@ -6142,7 +6225,7 @@ Block.displayName = "Block";
|
|
|
6142
6225
|
|
|
6143
6226
|
// src/components/flex/Flex.tsx
|
|
6144
6227
|
var React68 = __toESM(require("react"));
|
|
6145
|
-
var
|
|
6228
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
6146
6229
|
var justifyClasses = {
|
|
6147
6230
|
start: "justify-start",
|
|
6148
6231
|
center: "justify-center",
|
|
@@ -6162,7 +6245,7 @@ var Flex = React68.forwardRef(
|
|
|
6162
6245
|
({ direction = "row", align, justify, wrap, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6163
6246
|
const Tag = as;
|
|
6164
6247
|
const gapResolved = resolveGap(gap);
|
|
6165
|
-
return /* @__PURE__ */ (0,
|
|
6248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6166
6249
|
Tag,
|
|
6167
6250
|
{
|
|
6168
6251
|
ref,
|
|
@@ -6197,7 +6280,7 @@ var FlexItem = React68.forwardRef(
|
|
|
6197
6280
|
...shrink === false ? { flexShrink: 0 } : typeof shrink === "string" && shrink ? { flexShrink: Number(shrink) || shrink } : {},
|
|
6198
6281
|
...basis ? { flexBasis: basis } : {}
|
|
6199
6282
|
};
|
|
6200
|
-
return /* @__PURE__ */ (0,
|
|
6283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6201
6284
|
Tag,
|
|
6202
6285
|
{
|
|
6203
6286
|
ref,
|
|
@@ -6212,7 +6295,7 @@ FlexItem.displayName = "FlexItem";
|
|
|
6212
6295
|
|
|
6213
6296
|
// src/components/grid/Grid.tsx
|
|
6214
6297
|
var React69 = __toESM(require("react"));
|
|
6215
|
-
var
|
|
6298
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
6216
6299
|
var BASE_COLS = {
|
|
6217
6300
|
1: "grid-cols-1",
|
|
6218
6301
|
2: "grid-cols-2",
|
|
@@ -6281,7 +6364,7 @@ var Grid = React69.forwardRef(
|
|
|
6281
6364
|
({ cols, smCols, mdCols, lgCols, minCol, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6282
6365
|
const Tag = as;
|
|
6283
6366
|
const gapResolved = resolveGap(gap);
|
|
6284
|
-
return /* @__PURE__ */ (0,
|
|
6367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6285
6368
|
Tag,
|
|
6286
6369
|
{
|
|
6287
6370
|
ref,
|
|
@@ -6308,7 +6391,7 @@ Grid.displayName = "Grid";
|
|
|
6308
6391
|
var GridItem = React69.forwardRef(
|
|
6309
6392
|
({ span, smSpan, mdSpan, lgSpan, as = "div", className, ...props }, ref) => {
|
|
6310
6393
|
const Tag = as;
|
|
6311
|
-
return /* @__PURE__ */ (0,
|
|
6394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6312
6395
|
Tag,
|
|
6313
6396
|
{
|
|
6314
6397
|
ref,
|
|
@@ -6328,7 +6411,7 @@ GridItem.displayName = "GridItem";
|
|
|
6328
6411
|
|
|
6329
6412
|
// src/components/container/Container.tsx
|
|
6330
6413
|
var React70 = __toESM(require("react"));
|
|
6331
|
-
var
|
|
6414
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
6332
6415
|
var widthClasses = {
|
|
6333
6416
|
sm: "max-w-3xl",
|
|
6334
6417
|
md: "max-w-5xl",
|
|
@@ -6344,7 +6427,7 @@ var paddingClasses = {
|
|
|
6344
6427
|
};
|
|
6345
6428
|
var Container = React70.forwardRef(function Container2({ width = "lg", padding = "md", as = "div", className, ...props }, ref) {
|
|
6346
6429
|
const Tag = as;
|
|
6347
|
-
return /* @__PURE__ */ (0,
|
|
6430
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6348
6431
|
Tag,
|
|
6349
6432
|
{
|
|
6350
6433
|
ref,
|
|
@@ -6356,7 +6439,7 @@ var Container = React70.forwardRef(function Container2({ width = "lg", padding =
|
|
|
6356
6439
|
|
|
6357
6440
|
// src/components/section/Section.tsx
|
|
6358
6441
|
var React71 = __toESM(require("react"));
|
|
6359
|
-
var
|
|
6442
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
6360
6443
|
var toneClasses2 = {
|
|
6361
6444
|
default: "bg-background text-foreground",
|
|
6362
6445
|
muted: "bg-muted/40 text-foreground",
|
|
@@ -6410,7 +6493,7 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6410
6493
|
}, ref) {
|
|
6411
6494
|
const Tag = as;
|
|
6412
6495
|
const toneStyle = tone === "inverse" ? inverseVars : tone === "brand" ? brandVars : void 0;
|
|
6413
|
-
return /* @__PURE__ */ (0,
|
|
6496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6414
6497
|
Tag,
|
|
6415
6498
|
{
|
|
6416
6499
|
ref,
|
|
@@ -6418,14 +6501,14 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6418
6501
|
className: cn("w-full", toneClasses2[tone], paddingClasses2[padding], className),
|
|
6419
6502
|
style: { ...toneStyle, ...style },
|
|
6420
6503
|
...props,
|
|
6421
|
-
children: container ? /* @__PURE__ */ (0,
|
|
6504
|
+
children: container ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Container, { width, className: containerClassName, children }) : children
|
|
6422
6505
|
}
|
|
6423
6506
|
);
|
|
6424
6507
|
});
|
|
6425
6508
|
|
|
6426
6509
|
// src/components/hero/Hero.tsx
|
|
6427
6510
|
var React72 = __toESM(require("react"));
|
|
6428
|
-
var
|
|
6511
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
6429
6512
|
var titleSizes = {
|
|
6430
6513
|
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
6431
6514
|
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
@@ -6456,7 +6539,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6456
6539
|
const Heading2 = `h${level}`;
|
|
6457
6540
|
const centered = layout === "centered" || align === "center";
|
|
6458
6541
|
const overlay = layout === "overlay";
|
|
6459
|
-
const copy = /* @__PURE__ */ (0,
|
|
6542
|
+
const copy = /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6460
6543
|
"div",
|
|
6461
6544
|
{
|
|
6462
6545
|
className: cn(
|
|
@@ -6465,7 +6548,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6465
6548
|
overlay && "max-w-2xl"
|
|
6466
6549
|
),
|
|
6467
6550
|
children: [
|
|
6468
|
-
badge && /* @__PURE__ */ (0,
|
|
6551
|
+
badge && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6469
6552
|
"div",
|
|
6470
6553
|
{
|
|
6471
6554
|
className: cn(
|
|
@@ -6476,7 +6559,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6476
6559
|
children: badge
|
|
6477
6560
|
}
|
|
6478
6561
|
),
|
|
6479
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
6562
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6480
6563
|
"p",
|
|
6481
6564
|
{
|
|
6482
6565
|
className: cn(
|
|
@@ -6487,7 +6570,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6487
6570
|
children: eyebrow
|
|
6488
6571
|
}
|
|
6489
6572
|
),
|
|
6490
|
-
/* @__PURE__ */ (0,
|
|
6573
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6491
6574
|
Heading2,
|
|
6492
6575
|
{
|
|
6493
6576
|
className: cn(
|
|
@@ -6499,7 +6582,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6499
6582
|
children: title
|
|
6500
6583
|
}
|
|
6501
6584
|
),
|
|
6502
|
-
description && /* @__PURE__ */ (0,
|
|
6585
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6503
6586
|
"p",
|
|
6504
6587
|
{
|
|
6505
6588
|
className: cn(
|
|
@@ -6511,7 +6594,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6511
6594
|
children: description
|
|
6512
6595
|
}
|
|
6513
6596
|
),
|
|
6514
|
-
actions && /* @__PURE__ */ (0,
|
|
6597
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6515
6598
|
"div",
|
|
6516
6599
|
{
|
|
6517
6600
|
className: cn(
|
|
@@ -6525,7 +6608,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6525
6608
|
}
|
|
6526
6609
|
);
|
|
6527
6610
|
if (overlay) {
|
|
6528
|
-
return /* @__PURE__ */ (0,
|
|
6611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6529
6612
|
Tag,
|
|
6530
6613
|
{
|
|
6531
6614
|
ref,
|
|
@@ -6535,7 +6618,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6535
6618
|
),
|
|
6536
6619
|
...props,
|
|
6537
6620
|
children: [
|
|
6538
|
-
media && /* @__PURE__ */ (0,
|
|
6621
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6539
6622
|
"div",
|
|
6540
6623
|
{
|
|
6541
6624
|
className: cn(
|
|
@@ -6545,20 +6628,20 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6545
6628
|
children: media
|
|
6546
6629
|
}
|
|
6547
6630
|
),
|
|
6548
|
-
/* @__PURE__ */ (0,
|
|
6549
|
-
/* @__PURE__ */ (0,
|
|
6631
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { "aria-hidden": "true", className: "absolute inset-0 -z-10 bg-foreground/60" }),
|
|
6632
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "relative w-full px-4 sm:px-6 lg:px-10", children: copy })
|
|
6550
6633
|
]
|
|
6551
6634
|
}
|
|
6552
6635
|
);
|
|
6553
6636
|
}
|
|
6554
6637
|
if (layout === "centered") {
|
|
6555
|
-
return /* @__PURE__ */ (0,
|
|
6638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
6556
6639
|
copy,
|
|
6557
|
-
media && /* @__PURE__ */ (0,
|
|
6640
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
6558
6641
|
] });
|
|
6559
6642
|
}
|
|
6560
6643
|
if (layout === "stacked") {
|
|
6561
|
-
return /* @__PURE__ */ (0,
|
|
6644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6562
6645
|
Tag,
|
|
6563
6646
|
{
|
|
6564
6647
|
ref,
|
|
@@ -6566,20 +6649,20 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6566
6649
|
...props,
|
|
6567
6650
|
children: [
|
|
6568
6651
|
copy,
|
|
6569
|
-
media && /* @__PURE__ */ (0,
|
|
6652
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: cn("min-w-0 w-full", mediaClassName), children: media })
|
|
6570
6653
|
]
|
|
6571
6654
|
}
|
|
6572
6655
|
);
|
|
6573
6656
|
}
|
|
6574
|
-
return /* @__PURE__ */ (0,
|
|
6657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6575
6658
|
Tag,
|
|
6576
6659
|
{
|
|
6577
6660
|
ref,
|
|
6578
6661
|
className: cn("grid w-full items-center gap-10 lg:grid-cols-2 lg:gap-16 xl:gap-20", className),
|
|
6579
6662
|
...props,
|
|
6580
6663
|
children: [
|
|
6581
|
-
/* @__PURE__ */ (0,
|
|
6582
|
-
media && /* @__PURE__ */ (0,
|
|
6664
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: cn(mediaPosition === "left" && "lg:order-2"), children: copy }),
|
|
6665
|
+
media && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1", mediaClassName), children: media })
|
|
6583
6666
|
]
|
|
6584
6667
|
}
|
|
6585
6668
|
);
|
|
@@ -6587,7 +6670,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6587
6670
|
|
|
6588
6671
|
// src/components/stat-band/StatBand.tsx
|
|
6589
6672
|
var React73 = __toESM(require("react"));
|
|
6590
|
-
var
|
|
6673
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
6591
6674
|
var columnClasses = {
|
|
6592
6675
|
2: "sm:grid-cols-2",
|
|
6593
6676
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6598,31 +6681,68 @@ var valueClasses = {
|
|
|
6598
6681
|
md: "text-3xl",
|
|
6599
6682
|
lg: "text-4xl sm:text-5xl"
|
|
6600
6683
|
};
|
|
6601
|
-
var
|
|
6602
|
-
|
|
6684
|
+
var panelValueClasses = {
|
|
6685
|
+
sm: "text-lg",
|
|
6686
|
+
md: "text-xl sm:text-2xl",
|
|
6687
|
+
lg: "text-2xl sm:text-3xl"
|
|
6688
|
+
};
|
|
6689
|
+
var StatBand = React73.forwardRef(function StatBand2({
|
|
6690
|
+
items,
|
|
6691
|
+
columns = 3,
|
|
6692
|
+
align = "center",
|
|
6693
|
+
size = "md",
|
|
6694
|
+
divided = true,
|
|
6695
|
+
variant = "plain",
|
|
6696
|
+
valueClassName,
|
|
6697
|
+
className,
|
|
6698
|
+
...props
|
|
6699
|
+
}, ref) {
|
|
6700
|
+
const panel = variant === "panel";
|
|
6701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6603
6702
|
"dl",
|
|
6604
6703
|
{
|
|
6605
6704
|
ref,
|
|
6606
6705
|
className: cn(
|
|
6607
|
-
"grid w-full
|
|
6706
|
+
"grid w-full",
|
|
6707
|
+
panel ? "gap-0 rounded-lg border border-border bg-card" : "gap-8",
|
|
6608
6708
|
columnClasses[columns],
|
|
6609
|
-
divided && "sm:divide-x sm:divide-border",
|
|
6709
|
+
divided && (panel ? "divide-y divide-border sm:divide-x sm:divide-y-0" : "sm:divide-x sm:divide-border"),
|
|
6610
6710
|
className
|
|
6611
6711
|
),
|
|
6612
6712
|
...props,
|
|
6613
|
-
children: items.map((item) => /* @__PURE__ */ (0,
|
|
6713
|
+
children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6614
6714
|
"div",
|
|
6615
6715
|
{
|
|
6616
6716
|
className: cn(
|
|
6617
|
-
"flex min-w-0 flex-col gap-1
|
|
6717
|
+
"flex min-w-0 flex-col gap-1",
|
|
6718
|
+
panel ? "px-4 py-3 sm:px-5 sm:py-4" : "sm:px-6 sm:first:pl-0 sm:last:pr-0",
|
|
6618
6719
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6619
6720
|
),
|
|
6620
6721
|
children: [
|
|
6621
|
-
/* @__PURE__ */ (0,
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6722
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6723
|
+
"dt",
|
|
6724
|
+
{
|
|
6725
|
+
className: cn(
|
|
6726
|
+
"order-2 text-muted-foreground",
|
|
6727
|
+
panel ? "text-xs font-medium uppercase tracking-wide" : "text-sm font-medium"
|
|
6728
|
+
),
|
|
6729
|
+
children: [
|
|
6730
|
+
item.label,
|
|
6731
|
+
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 })
|
|
6732
|
+
]
|
|
6733
|
+
}
|
|
6734
|
+
),
|
|
6735
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6736
|
+
"dd",
|
|
6737
|
+
{
|
|
6738
|
+
className: cn(
|
|
6739
|
+
"order-1 m-0 font-semibold tracking-tight tabular-nums",
|
|
6740
|
+
panel ? panelValueClasses[size] : valueClasses[size],
|
|
6741
|
+
valueClassName
|
|
6742
|
+
),
|
|
6743
|
+
children: item.value
|
|
6744
|
+
}
|
|
6745
|
+
)
|
|
6626
6746
|
]
|
|
6627
6747
|
},
|
|
6628
6748
|
item.label
|
|
@@ -6633,7 +6753,7 @@ var StatBand = React73.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
6633
6753
|
|
|
6634
6754
|
// src/components/cta-section/CTASection.tsx
|
|
6635
6755
|
var React74 = __toESM(require("react"));
|
|
6636
|
-
var
|
|
6756
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
6637
6757
|
var sizePadding = {
|
|
6638
6758
|
sm: "md",
|
|
6639
6759
|
md: "lg",
|
|
@@ -6651,7 +6771,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6651
6771
|
className,
|
|
6652
6772
|
...props
|
|
6653
6773
|
}, ref) {
|
|
6654
|
-
return /* @__PURE__ */ (0,
|
|
6774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6655
6775
|
Section,
|
|
6656
6776
|
{
|
|
6657
6777
|
ref,
|
|
@@ -6660,7 +6780,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6660
6780
|
width,
|
|
6661
6781
|
className,
|
|
6662
6782
|
...props,
|
|
6663
|
-
children: /* @__PURE__ */ (0,
|
|
6783
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
6664
6784
|
"div",
|
|
6665
6785
|
{
|
|
6666
6786
|
className: cn(
|
|
@@ -6668,10 +6788,10 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6668
6788
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6669
6789
|
),
|
|
6670
6790
|
children: [
|
|
6671
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
6672
|
-
/* @__PURE__ */ (0,
|
|
6673
|
-
description && /* @__PURE__ */ (0,
|
|
6674
|
-
actions && /* @__PURE__ */ (0,
|
|
6791
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6792
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("h2", { className: "max-w-3xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl", children: title }),
|
|
6793
|
+
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 }),
|
|
6794
|
+
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 })
|
|
6675
6795
|
]
|
|
6676
6796
|
}
|
|
6677
6797
|
)
|
|
@@ -6681,9 +6801,9 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6681
6801
|
|
|
6682
6802
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
6683
6803
|
var React75 = __toESM(require("react"));
|
|
6684
|
-
var
|
|
6804
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6685
6805
|
function CheckMark() {
|
|
6686
|
-
return /* @__PURE__ */ (0,
|
|
6806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6687
6807
|
"svg",
|
|
6688
6808
|
{
|
|
6689
6809
|
"aria-hidden": "true",
|
|
@@ -6694,12 +6814,12 @@ function CheckMark() {
|
|
|
6694
6814
|
strokeLinecap: "round",
|
|
6695
6815
|
strokeLinejoin: "round",
|
|
6696
6816
|
className: "mx-auto h-5 w-5 text-success",
|
|
6697
|
-
children: /* @__PURE__ */ (0,
|
|
6817
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("path", { d: "m4 10.5 4 4 8-9" })
|
|
6698
6818
|
}
|
|
6699
6819
|
);
|
|
6700
6820
|
}
|
|
6701
6821
|
function DashMark() {
|
|
6702
|
-
return /* @__PURE__ */ (0,
|
|
6822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6703
6823
|
"svg",
|
|
6704
6824
|
{
|
|
6705
6825
|
"aria-hidden": "true",
|
|
@@ -6709,7 +6829,7 @@ function DashMark() {
|
|
|
6709
6829
|
strokeWidth: "2.2",
|
|
6710
6830
|
strokeLinecap: "round",
|
|
6711
6831
|
className: "mx-auto h-5 w-5 text-muted-foreground/60",
|
|
6712
|
-
children: /* @__PURE__ */ (0,
|
|
6832
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("path", { d: "M5 10h10" })
|
|
6713
6833
|
}
|
|
6714
6834
|
);
|
|
6715
6835
|
}
|
|
@@ -6725,11 +6845,11 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6725
6845
|
}, ref) {
|
|
6726
6846
|
const yes = valueLabels?.yes ?? "Included";
|
|
6727
6847
|
const no = valueLabels?.no ?? "Not included";
|
|
6728
|
-
return /* @__PURE__ */ (0,
|
|
6729
|
-
/* @__PURE__ */ (0,
|
|
6730
|
-
/* @__PURE__ */ (0,
|
|
6731
|
-
/* @__PURE__ */ (0,
|
|
6732
|
-
columns.map((column) => /* @__PURE__ */ (0,
|
|
6848
|
+
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: [
|
|
6849
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("caption", { className: "sr-only", children: caption }),
|
|
6850
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("tr", { className: "border-b border-border", children: [
|
|
6851
|
+
/* @__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 }),
|
|
6852
|
+
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6733
6853
|
"th",
|
|
6734
6854
|
{
|
|
6735
6855
|
scope: "col",
|
|
@@ -6742,21 +6862,21 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6742
6862
|
column.label
|
|
6743
6863
|
))
|
|
6744
6864
|
] }) }),
|
|
6745
|
-
/* @__PURE__ */ (0,
|
|
6746
|
-
/* @__PURE__ */ (0,
|
|
6865
|
+
/* @__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: [
|
|
6866
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("th", { scope: "row", className: "px-5 py-4 text-left font-medium", children: [
|
|
6747
6867
|
row.feature,
|
|
6748
|
-
row.hint && /* @__PURE__ */ (0,
|
|
6868
|
+
row.hint && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "mt-1 block text-xs font-normal text-muted-foreground", children: row.hint })
|
|
6749
6869
|
] }),
|
|
6750
6870
|
columns.map((column, index) => {
|
|
6751
6871
|
const value = row.values[index];
|
|
6752
|
-
return /* @__PURE__ */ (0,
|
|
6872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6753
6873
|
"td",
|
|
6754
6874
|
{
|
|
6755
6875
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
6756
|
-
children: typeof value === "boolean" ? /* @__PURE__ */ (0,
|
|
6757
|
-
value ? /* @__PURE__ */ (0,
|
|
6758
|
-
/* @__PURE__ */ (0,
|
|
6759
|
-
] }) : /* @__PURE__ */ (0,
|
|
6876
|
+
children: typeof value === "boolean" ? /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
|
|
6877
|
+
value ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(CheckMark, {}) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DashMark, {}),
|
|
6878
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "sr-only", children: value ? yes : no })
|
|
6879
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { children: value ?? "" })
|
|
6760
6880
|
},
|
|
6761
6881
|
`${row.feature}-${column.label}`
|
|
6762
6882
|
);
|
|
@@ -6768,7 +6888,7 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6768
6888
|
|
|
6769
6889
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
6770
6890
|
var React76 = __toESM(require("react"));
|
|
6771
|
-
var
|
|
6891
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
6772
6892
|
var columnClasses2 = {
|
|
6773
6893
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
6774
6894
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -6798,8 +6918,8 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6798
6918
|
sizeClasses9[size],
|
|
6799
6919
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
6800
6920
|
);
|
|
6801
|
-
return /* @__PURE__ */ (0,
|
|
6802
|
-
caption && /* @__PURE__ */ (0,
|
|
6921
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6922
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6803
6923
|
"p",
|
|
6804
6924
|
{
|
|
6805
6925
|
className: cn(
|
|
@@ -6809,12 +6929,12 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6809
6929
|
children: caption
|
|
6810
6930
|
}
|
|
6811
6931
|
),
|
|
6812
|
-
/* @__PURE__ */ (0,
|
|
6813
|
-
const content = /* @__PURE__ */ (0,
|
|
6814
|
-
/* @__PURE__ */ (0,
|
|
6815
|
-
/* @__PURE__ */ (0,
|
|
6932
|
+
/* @__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) => {
|
|
6933
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
|
|
6934
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: logoClass, "aria-hidden": "true", children: item.logo }),
|
|
6935
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "sr-only", children: item.name })
|
|
6816
6936
|
] });
|
|
6817
|
-
return /* @__PURE__ */ (0,
|
|
6937
|
+
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)(
|
|
6818
6938
|
Link3,
|
|
6819
6939
|
{
|
|
6820
6940
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -6828,7 +6948,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6828
6948
|
|
|
6829
6949
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
6830
6950
|
var React77 = __toESM(require("react"));
|
|
6831
|
-
var
|
|
6951
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
6832
6952
|
var columnClasses3 = {
|
|
6833
6953
|
2: "sm:grid-cols-2",
|
|
6834
6954
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6841,22 +6961,22 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6841
6961
|
variant === "card" && "border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
|
|
6842
6962
|
align === "center" && "items-center text-center"
|
|
6843
6963
|
);
|
|
6844
|
-
const content = (feature) => /* @__PURE__ */ (0,
|
|
6845
|
-
feature.icon && /* @__PURE__ */ (0,
|
|
6846
|
-
/* @__PURE__ */ (0,
|
|
6847
|
-
feature.description && /* @__PURE__ */ (0,
|
|
6848
|
-
feature.href && feature.actionLabel && /* @__PURE__ */ (0,
|
|
6964
|
+
const content = (feature) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
|
|
6965
|
+
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 }),
|
|
6966
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
6967
|
+
feature.description && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
6968
|
+
feature.href && feature.actionLabel && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: "mt-auto pt-2 text-sm font-medium text-primary-ink", children: [
|
|
6849
6969
|
feature.actionLabel,
|
|
6850
6970
|
" ",
|
|
6851
|
-
/* @__PURE__ */ (0,
|
|
6971
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { "aria-hidden": "true", children: "\u2192" })
|
|
6852
6972
|
] })
|
|
6853
6973
|
] });
|
|
6854
|
-
return /* @__PURE__ */ (0,
|
|
6974
|
+
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)) });
|
|
6855
6975
|
});
|
|
6856
6976
|
|
|
6857
6977
|
// src/components/feature-row/FeatureRow.tsx
|
|
6858
6978
|
var React78 = __toESM(require("react"));
|
|
6859
|
-
var
|
|
6979
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
6860
6980
|
var titleSizes2 = {
|
|
6861
6981
|
md: "text-3xl",
|
|
6862
6982
|
lg: "text-3xl sm:text-4xl"
|
|
@@ -6874,20 +6994,20 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6874
6994
|
...props
|
|
6875
6995
|
}, ref) {
|
|
6876
6996
|
const Heading2 = `h${level}`;
|
|
6877
|
-
return /* @__PURE__ */ (0,
|
|
6997
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
6878
6998
|
"div",
|
|
6879
6999
|
{
|
|
6880
7000
|
ref,
|
|
6881
7001
|
className: cn("grid items-center gap-10 lg:grid-cols-2 lg:gap-16", className),
|
|
6882
7002
|
...props,
|
|
6883
7003
|
children: [
|
|
6884
|
-
/* @__PURE__ */ (0,
|
|
6885
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
6886
|
-
/* @__PURE__ */ (0,
|
|
6887
|
-
description && /* @__PURE__ */ (0,
|
|
6888
|
-
actions && /* @__PURE__ */ (0,
|
|
7004
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
7005
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
7006
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
7007
|
+
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 }),
|
|
7008
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "mt-7 flex flex-wrap items-center gap-3", children: actions })
|
|
6889
7009
|
] }),
|
|
6890
|
-
/* @__PURE__ */ (0,
|
|
7010
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1"), children: media })
|
|
6891
7011
|
]
|
|
6892
7012
|
}
|
|
6893
7013
|
);
|
|
@@ -6895,14 +7015,14 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6895
7015
|
|
|
6896
7016
|
// src/components/testimonial/Testimonial.tsx
|
|
6897
7017
|
var React79 = __toESM(require("react"));
|
|
6898
|
-
var
|
|
7018
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
6899
7019
|
var quoteSizes = {
|
|
6900
7020
|
sm: "text-base",
|
|
6901
7021
|
md: "text-lg",
|
|
6902
7022
|
lg: "text-xl sm:text-2xl"
|
|
6903
7023
|
};
|
|
6904
7024
|
var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role, company, avatar, logo, variant = "card", size = "md", className, ...props }, ref) {
|
|
6905
|
-
return /* @__PURE__ */ (0,
|
|
7025
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
6906
7026
|
"figure",
|
|
6907
7027
|
{
|
|
6908
7028
|
ref,
|
|
@@ -6913,17 +7033,17 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6913
7033
|
),
|
|
6914
7034
|
...props,
|
|
6915
7035
|
children: [
|
|
6916
|
-
logo && /* @__PURE__ */ (0,
|
|
6917
|
-
/* @__PURE__ */ (0,
|
|
7036
|
+
logo && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "flex items-center", children: logo }),
|
|
7037
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("p", { children: [
|
|
6918
7038
|
"\u201C",
|
|
6919
7039
|
quote,
|
|
6920
7040
|
"\u201D"
|
|
6921
7041
|
] }) }),
|
|
6922
|
-
/* @__PURE__ */ (0,
|
|
6923
|
-
avatar && /* @__PURE__ */ (0,
|
|
6924
|
-
/* @__PURE__ */ (0,
|
|
6925
|
-
/* @__PURE__ */ (0,
|
|
6926
|
-
(role || company) && /* @__PURE__ */ (0,
|
|
7042
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("figcaption", { className: "flex items-center gap-3", children: [
|
|
7043
|
+
avatar && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "shrink-0", children: avatar }),
|
|
7044
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "min-w-0", children: [
|
|
7045
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-sm font-semibold", children: name }),
|
|
7046
|
+
(role || company) && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-xs text-muted-foreground", children: [role, company].filter(Boolean).join(", ") })
|
|
6927
7047
|
] })
|
|
6928
7048
|
] })
|
|
6929
7049
|
]
|
|
@@ -6933,7 +7053,7 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6933
7053
|
|
|
6934
7054
|
// src/components/process-steps/ProcessSteps.tsx
|
|
6935
7055
|
var React80 = __toESM(require("react"));
|
|
6936
|
-
var
|
|
7056
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
6937
7057
|
var columnClasses4 = {
|
|
6938
7058
|
2: "sm:grid-cols-2",
|
|
6939
7059
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6941,15 +7061,15 @@ var columnClasses4 = {
|
|
|
6941
7061
|
};
|
|
6942
7062
|
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", headingLevel = 3, className, ...props }, ref) {
|
|
6943
7063
|
const HeadingTag = { 2: "h2", 3: "h3", 4: "h4" }[headingLevel];
|
|
6944
|
-
return /* @__PURE__ */ (0,
|
|
7064
|
+
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)(
|
|
6945
7065
|
"li",
|
|
6946
7066
|
{
|
|
6947
7067
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
6948
7068
|
children: [
|
|
6949
|
-
/* @__PURE__ */ (0,
|
|
6950
|
-
/* @__PURE__ */ (0,
|
|
6951
|
-
/* @__PURE__ */ (0,
|
|
6952
|
-
step.description && /* @__PURE__ */ (0,
|
|
7069
|
+
/* @__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) }),
|
|
7070
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "min-w-0", children: [
|
|
7071
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(HeadingTag, { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
7072
|
+
step.description && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
6953
7073
|
] })
|
|
6954
7074
|
]
|
|
6955
7075
|
},
|
|
@@ -6959,7 +7079,7 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
6959
7079
|
|
|
6960
7080
|
// src/components/article-card/ArticleCard.tsx
|
|
6961
7081
|
var React81 = __toESM(require("react"));
|
|
6962
|
-
var
|
|
7082
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
6963
7083
|
var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
6964
7084
|
title,
|
|
6965
7085
|
description,
|
|
@@ -6974,7 +7094,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6974
7094
|
}, ref) {
|
|
6975
7095
|
const Link3 = linkComponent ?? "a";
|
|
6976
7096
|
const compact = variant === "compact";
|
|
6977
|
-
return /* @__PURE__ */ (0,
|
|
7097
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
6978
7098
|
Link3,
|
|
6979
7099
|
{
|
|
6980
7100
|
href,
|
|
@@ -6983,12 +7103,12 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6983
7103
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
6984
7104
|
),
|
|
6985
7105
|
children: [
|
|
6986
|
-
media && !compact && /* @__PURE__ */ (0,
|
|
6987
|
-
/* @__PURE__ */ (0,
|
|
6988
|
-
eyebrow && /* @__PURE__ */ (0,
|
|
6989
|
-
/* @__PURE__ */ (0,
|
|
6990
|
-
description && /* @__PURE__ */ (0,
|
|
6991
|
-
meta && /* @__PURE__ */ (0,
|
|
7106
|
+
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 }),
|
|
7107
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: cn("flex flex-1 flex-col gap-2", compact ? "p-4" : "p-5"), children: [
|
|
7108
|
+
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
7109
|
+
/* @__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 }),
|
|
7110
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7111
|
+
meta && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "mt-auto pt-2 text-xs text-muted-foreground", children: meta })
|
|
6992
7112
|
] })
|
|
6993
7113
|
]
|
|
6994
7114
|
}
|
|
@@ -6997,7 +7117,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6997
7117
|
|
|
6998
7118
|
// src/components/newsletter/Newsletter.tsx
|
|
6999
7119
|
var React82 = __toESM(require("react"));
|
|
7000
|
-
var
|
|
7120
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
7001
7121
|
var Newsletter = React82.forwardRef(function Newsletter2({
|
|
7002
7122
|
title,
|
|
7003
7123
|
description,
|
|
@@ -7029,13 +7149,13 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7029
7149
|
setStatus("error");
|
|
7030
7150
|
}
|
|
7031
7151
|
};
|
|
7032
|
-
return /* @__PURE__ */ (0,
|
|
7033
|
-
/* @__PURE__ */ (0,
|
|
7034
|
-
description && /* @__PURE__ */ (0,
|
|
7035
|
-
/* @__PURE__ */ (0,
|
|
7036
|
-
/* @__PURE__ */ (0,
|
|
7037
|
-
/* @__PURE__ */ (0,
|
|
7038
|
-
/* @__PURE__ */ (0,
|
|
7152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "w-full", children: [
|
|
7153
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Heading2, { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
7154
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7155
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("form", { ref, onSubmit: handleSubmit, className: cn("mt-5", className), ...props, children: [
|
|
7156
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: cn("flex gap-2", layout === "inline" ? "flex-col sm:flex-row" : "flex-col"), children: [
|
|
7157
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("label", { htmlFor: id, className: "sr-only", children: label }),
|
|
7158
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7039
7159
|
Input,
|
|
7040
7160
|
{
|
|
7041
7161
|
id,
|
|
@@ -7050,12 +7170,12 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7050
7170
|
className: "sm:flex-1"
|
|
7051
7171
|
}
|
|
7052
7172
|
),
|
|
7053
|
-
/* @__PURE__ */ (0,
|
|
7173
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
7054
7174
|
] }),
|
|
7055
|
-
consent && /* @__PURE__ */ (0,
|
|
7056
|
-
/* @__PURE__ */ (0,
|
|
7057
|
-
status === "success" && /* @__PURE__ */ (0,
|
|
7058
|
-
status === "error" && /* @__PURE__ */ (0,
|
|
7175
|
+
consent && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "mt-3 text-xs leading-relaxed text-muted-foreground", children: consent }),
|
|
7176
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { "aria-live": "polite", className: "mt-2 min-h-5 text-sm", children: [
|
|
7177
|
+
status === "success" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "text-success", children: successMessage }),
|
|
7178
|
+
status === "error" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { role: "alert", className: "text-destructive", children: errorMessage })
|
|
7059
7179
|
] })
|
|
7060
7180
|
] })
|
|
7061
7181
|
] });
|
|
@@ -7063,25 +7183,25 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
7063
7183
|
|
|
7064
7184
|
// src/components/contact-strip/ContactStrip.tsx
|
|
7065
7185
|
var React83 = __toESM(require("react"));
|
|
7066
|
-
var
|
|
7186
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
7067
7187
|
var columnClasses5 = {
|
|
7068
7188
|
2: "sm:grid-cols-2",
|
|
7069
7189
|
3: "sm:grid-cols-3"
|
|
7070
7190
|
};
|
|
7071
7191
|
var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
7072
7192
|
const Link3 = linkComponent ?? "a";
|
|
7073
|
-
return /* @__PURE__ */ (0,
|
|
7074
|
-
item.icon && /* @__PURE__ */ (0,
|
|
7075
|
-
/* @__PURE__ */ (0,
|
|
7076
|
-
/* @__PURE__ */ (0,
|
|
7077
|
-
item.href ? /* @__PURE__ */ (0,
|
|
7193
|
+
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: [
|
|
7194
|
+
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 }),
|
|
7195
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "min-w-0", children: [
|
|
7196
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
7197
|
+
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 })
|
|
7078
7198
|
] })
|
|
7079
7199
|
] }, item.label)) });
|
|
7080
7200
|
});
|
|
7081
7201
|
|
|
7082
7202
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
7083
7203
|
var React84 = __toESM(require("react"));
|
|
7084
|
-
var
|
|
7204
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
7085
7205
|
var toneClasses3 = {
|
|
7086
7206
|
muted: "bg-muted text-foreground",
|
|
7087
7207
|
brand: "bg-primary text-primary-foreground",
|
|
@@ -7107,7 +7227,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7107
7227
|
setDismissed(true);
|
|
7108
7228
|
onDismiss?.();
|
|
7109
7229
|
};
|
|
7110
|
-
return /* @__PURE__ */ (0,
|
|
7230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
7111
7231
|
"div",
|
|
7112
7232
|
{
|
|
7113
7233
|
ref,
|
|
@@ -7120,9 +7240,9 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7120
7240
|
className
|
|
7121
7241
|
),
|
|
7122
7242
|
...props,
|
|
7123
|
-
children: /* @__PURE__ */ (0,
|
|
7124
|
-
/* @__PURE__ */ (0,
|
|
7125
|
-
href && actionLabel && /* @__PURE__ */ (0,
|
|
7243
|
+
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: [
|
|
7244
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "min-w-0 text-center", children: message }),
|
|
7245
|
+
href && actionLabel && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
7126
7246
|
Link3,
|
|
7127
7247
|
{
|
|
7128
7248
|
href,
|
|
@@ -7130,14 +7250,14 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7130
7250
|
children: actionLabel
|
|
7131
7251
|
}
|
|
7132
7252
|
),
|
|
7133
|
-
dismissible && /* @__PURE__ */ (0,
|
|
7253
|
+
dismissible && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
7134
7254
|
"button",
|
|
7135
7255
|
{
|
|
7136
7256
|
type: "button",
|
|
7137
7257
|
onClick: dismiss2,
|
|
7138
7258
|
"aria-label": "Dismiss announcement",
|
|
7139
7259
|
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",
|
|
7140
|
-
children: /* @__PURE__ */ (0,
|
|
7260
|
+
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" }) })
|
|
7141
7261
|
}
|
|
7142
7262
|
)
|
|
7143
7263
|
] })
|
|
@@ -7148,7 +7268,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
7148
7268
|
|
|
7149
7269
|
// src/components/deal-card/DealCard.tsx
|
|
7150
7270
|
var React85 = __toESM(require("react"));
|
|
7151
|
-
var
|
|
7271
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
7152
7272
|
var statusConfig = {
|
|
7153
7273
|
available: { label: "Available", variant: "success" },
|
|
7154
7274
|
"under-nda": { label: "Under NDA", variant: "info" },
|
|
@@ -7176,29 +7296,29 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7176
7296
|
}, ref) {
|
|
7177
7297
|
const Link3 = linkComponent ?? "a";
|
|
7178
7298
|
const statusInfo = statusConfig[status];
|
|
7179
|
-
return /* @__PURE__ */ (0,
|
|
7180
|
-
/* @__PURE__ */ (0,
|
|
7181
|
-
/* @__PURE__ */ (0,
|
|
7182
|
-
/* @__PURE__ */ (0,
|
|
7183
|
-
/* @__PURE__ */ (0,
|
|
7299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
7300
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
7301
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7302
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: sector }),
|
|
7303
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7184
7304
|
] }),
|
|
7185
|
-
/* @__PURE__ */ (0,
|
|
7186
|
-
location && /* @__PURE__ */ (0,
|
|
7305
|
+
/* @__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 }),
|
|
7306
|
+
location && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "text-xs text-muted-foreground", children: location })
|
|
7187
7307
|
] }),
|
|
7188
|
-
/* @__PURE__ */ (0,
|
|
7189
|
-
description && /* @__PURE__ */ (0,
|
|
7190
|
-
/* @__PURE__ */ (0,
|
|
7191
|
-
/* @__PURE__ */ (0,
|
|
7192
|
-
/* @__PURE__ */ (0,
|
|
7308
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7309
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7310
|
+
/* @__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: [
|
|
7311
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("dt", { className: "text-xs text-muted-foreground", children: metric.label }),
|
|
7312
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: metric.value })
|
|
7193
7313
|
] }, metric.label)) }),
|
|
7194
|
-
(ndaAvailable || cimAvailable) && /* @__PURE__ */ (0,
|
|
7195
|
-
ndaAvailable && /* @__PURE__ */ (0,
|
|
7196
|
-
cimAvailable && /* @__PURE__ */ (0,
|
|
7314
|
+
(ndaAvailable || cimAvailable) && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "mt-4 flex flex-wrap gap-1.5", children: [
|
|
7315
|
+
ndaAvailable && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Badge, { variant: "info", children: "NDA available" }),
|
|
7316
|
+
cimAvailable && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Badge, { variant: "secondary", children: "CIM available" })
|
|
7197
7317
|
] })
|
|
7198
7318
|
] }),
|
|
7199
|
-
/* @__PURE__ */ (0,
|
|
7200
|
-
onRequestAccess && /* @__PURE__ */ (0,
|
|
7201
|
-
onSave && /* @__PURE__ */ (0,
|
|
7319
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
7320
|
+
onRequestAccess && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Button, { type: "button", size: "sm", onClick: onRequestAccess, children: requestLabel }),
|
|
7321
|
+
onSave && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7202
7322
|
Button,
|
|
7203
7323
|
{
|
|
7204
7324
|
type: "button",
|
|
@@ -7216,7 +7336,7 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7216
7336
|
|
|
7217
7337
|
// src/components/entity-card/EntityCard.tsx
|
|
7218
7338
|
var React86 = __toESM(require("react"));
|
|
7219
|
-
var
|
|
7339
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
7220
7340
|
function initials(name) {
|
|
7221
7341
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
7222
7342
|
}
|
|
@@ -7238,11 +7358,11 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7238
7358
|
const Link3 = linkComponent ?? "a";
|
|
7239
7359
|
const stretched = Boolean(cardHref);
|
|
7240
7360
|
const nameHref = cardHref ?? href;
|
|
7241
|
-
return /* @__PURE__ */ (0,
|
|
7242
|
-
/* @__PURE__ */ (0,
|
|
7243
|
-
/* @__PURE__ */ (0,
|
|
7244
|
-
/* @__PURE__ */ (0,
|
|
7245
|
-
/* @__PURE__ */ (0,
|
|
7361
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Card, { ref, className: cn("flex h-full flex-col", stretched && "relative isolate", className), ...props, children: [
|
|
7362
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
7363
|
+
/* @__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) }) }) }),
|
|
7364
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
7365
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("h3", { className: "truncate text-base font-semibold tracking-tight", children: nameHref ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
7246
7366
|
Link3,
|
|
7247
7367
|
{
|
|
7248
7368
|
href: nameHref,
|
|
@@ -7253,20 +7373,20 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7253
7373
|
children: name
|
|
7254
7374
|
}
|
|
7255
7375
|
) : name }),
|
|
7256
|
-
/* @__PURE__ */ (0,
|
|
7257
|
-
location && /* @__PURE__ */ (0,
|
|
7376
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
7377
|
+
location && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
7258
7378
|
] })
|
|
7259
7379
|
] }),
|
|
7260
|
-
/* @__PURE__ */ (0,
|
|
7261
|
-
description && /* @__PURE__ */ (0,
|
|
7262
|
-
tags && tags.length > 0 && /* @__PURE__ */ (0,
|
|
7263
|
-
stats && stats.length > 0 && /* @__PURE__ */ (0,
|
|
7264
|
-
/* @__PURE__ */ (0,
|
|
7265
|
-
/* @__PURE__ */ (0,
|
|
7380
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7381
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7382
|
+
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)) }),
|
|
7383
|
+
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: [
|
|
7384
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("dt", { className: "text-xs text-muted-foreground", children: stat.label }),
|
|
7385
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
|
|
7266
7386
|
] }, stat.label)) })
|
|
7267
7387
|
] }),
|
|
7268
|
-
(href && !stretched || actions) && /* @__PURE__ */ (0,
|
|
7269
|
-
href && !stretched && /* @__PURE__ */ (0,
|
|
7388
|
+
(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: [
|
|
7389
|
+
href && !stretched && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
7270
7390
|
Link3,
|
|
7271
7391
|
{
|
|
7272
7392
|
href,
|
|
@@ -7274,7 +7394,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7274
7394
|
children: "View profile"
|
|
7275
7395
|
}
|
|
7276
7396
|
),
|
|
7277
|
-
actions && /* @__PURE__ */ (0,
|
|
7397
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "ml-auto flex items-center gap-2", children: actions })
|
|
7278
7398
|
] })
|
|
7279
7399
|
] });
|
|
7280
7400
|
});
|
|
@@ -7282,7 +7402,7 @@ var ProfileCard = EntityCard;
|
|
|
7282
7402
|
|
|
7283
7403
|
// src/components/tombstone-card/TombstoneCard.tsx
|
|
7284
7404
|
var React87 = __toESM(require("react"));
|
|
7285
|
-
var
|
|
7405
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
7286
7406
|
var statusConfig2 = {
|
|
7287
7407
|
archived: { label: "Archived", variant: "secondary" },
|
|
7288
7408
|
unavailable: { label: "Unavailable", variant: "warning" },
|
|
@@ -7301,20 +7421,20 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7301
7421
|
}, ref) {
|
|
7302
7422
|
const Link3 = linkComponent ?? "a";
|
|
7303
7423
|
const statusInfo = statusConfig2[status];
|
|
7304
|
-
return /* @__PURE__ */ (0,
|
|
7424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7305
7425
|
Card,
|
|
7306
7426
|
{
|
|
7307
7427
|
ref,
|
|
7308
7428
|
className: cn("flex h-full flex-col border-dashed bg-muted/30 shadow-none", className),
|
|
7309
7429
|
...props,
|
|
7310
|
-
children: /* @__PURE__ */ (0,
|
|
7311
|
-
/* @__PURE__ */ (0,
|
|
7312
|
-
logo && /* @__PURE__ */ (0,
|
|
7313
|
-
/* @__PURE__ */ (0,
|
|
7430
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(CardContent, { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
7431
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7432
|
+
logo && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "min-w-0 opacity-70", children: logo }),
|
|
7433
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7314
7434
|
] }),
|
|
7315
|
-
/* @__PURE__ */ (0,
|
|
7316
|
-
reason && /* @__PURE__ */ (0,
|
|
7317
|
-
href && /* @__PURE__ */ (0,
|
|
7435
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("h3", { className: "text-base font-semibold tracking-tight text-foreground/80", children: title }),
|
|
7436
|
+
reason && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "text-sm leading-relaxed text-muted-foreground", children: reason }),
|
|
7437
|
+
href && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7318
7438
|
Link3,
|
|
7319
7439
|
{
|
|
7320
7440
|
href,
|
|
@@ -7329,7 +7449,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7329
7449
|
|
|
7330
7450
|
// src/components/document-card/DocumentCard.tsx
|
|
7331
7451
|
var React88 = __toESM(require("react"));
|
|
7332
|
-
var
|
|
7452
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
7333
7453
|
var statusConfig3 = {
|
|
7334
7454
|
available: { label: "Available", variant: "success" },
|
|
7335
7455
|
restricted: { label: "Restricted", variant: "warning" },
|
|
@@ -7349,14 +7469,14 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7349
7469
|
}, ref) {
|
|
7350
7470
|
const statusInfo = statusConfig3[status];
|
|
7351
7471
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7352
|
-
return /* @__PURE__ */ (0,
|
|
7353
|
-
/* @__PURE__ */ (0,
|
|
7354
|
-
/* @__PURE__ */ (0,
|
|
7355
|
-
/* @__PURE__ */ (0,
|
|
7356
|
-
meta && /* @__PURE__ */ (0,
|
|
7472
|
+
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: [
|
|
7473
|
+
/* @__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 }) }),
|
|
7474
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
7475
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "truncate text-sm font-medium", children: name }),
|
|
7476
|
+
meta && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
7357
7477
|
] }),
|
|
7358
|
-
/* @__PURE__ */ (0,
|
|
7359
|
-
onDownload && /* @__PURE__ */ (0,
|
|
7478
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Badge, { variant: statusInfo.variant, children: statusInfo.label }),
|
|
7479
|
+
onDownload && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7360
7480
|
Button,
|
|
7361
7481
|
{
|
|
7362
7482
|
type: "button",
|
|
@@ -7373,7 +7493,7 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7373
7493
|
|
|
7374
7494
|
// src/components/load-more/LoadMore.tsx
|
|
7375
7495
|
var React89 = __toESM(require("react"));
|
|
7376
|
-
var
|
|
7496
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
7377
7497
|
var LoadMore = React89.forwardRef(function LoadMore2({
|
|
7378
7498
|
hasMore,
|
|
7379
7499
|
onLoadMore,
|
|
@@ -7384,12 +7504,12 @@ var LoadMore = React89.forwardRef(function LoadMore2({
|
|
|
7384
7504
|
className,
|
|
7385
7505
|
...props
|
|
7386
7506
|
}, ref) {
|
|
7387
|
-
return /* @__PURE__ */ (0,
|
|
7507
|
+
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 }) });
|
|
7388
7508
|
});
|
|
7389
7509
|
|
|
7390
7510
|
// src/components/segmented-control/SegmentedControl.tsx
|
|
7391
7511
|
var React90 = __toESM(require("react"));
|
|
7392
|
-
var
|
|
7512
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
7393
7513
|
var sizeClasses10 = {
|
|
7394
7514
|
sm: "h-8 px-2.5 text-xs",
|
|
7395
7515
|
md: "h-9 px-3 text-sm",
|
|
@@ -7404,6 +7524,8 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7404
7524
|
multiple = false,
|
|
7405
7525
|
size = "md",
|
|
7406
7526
|
fullWidth = false,
|
|
7527
|
+
linkComponent,
|
|
7528
|
+
linkHrefProp = "href",
|
|
7407
7529
|
className,
|
|
7408
7530
|
"aria-label": ariaLabel = "Segmented control",
|
|
7409
7531
|
...props
|
|
@@ -7414,6 +7536,9 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7414
7536
|
);
|
|
7415
7537
|
const current = isControlled ? value : internal;
|
|
7416
7538
|
const selected = multiple ? Array.isArray(current) ? current : [] : typeof current === "string" ? current : "";
|
|
7539
|
+
const linkMode = options.some((option) => option.href !== void 0);
|
|
7540
|
+
const LinkEl = linkComponent ?? "a";
|
|
7541
|
+
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
7417
7542
|
const refs = React90.useRef([]);
|
|
7418
7543
|
const commit = (next) => {
|
|
7419
7544
|
if (!isControlled) setInternal(next);
|
|
@@ -7464,11 +7589,11 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7464
7589
|
moveFocus("last");
|
|
7465
7590
|
}
|
|
7466
7591
|
};
|
|
7467
|
-
return /* @__PURE__ */ (0,
|
|
7592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7468
7593
|
"div",
|
|
7469
7594
|
{
|
|
7470
7595
|
ref,
|
|
7471
|
-
role: multiple ? "group" : "radiogroup",
|
|
7596
|
+
role: multiple || linkMode ? "group" : "radiogroup",
|
|
7472
7597
|
"aria-label": ariaLabel,
|
|
7473
7598
|
className: cn(
|
|
7474
7599
|
"inline-flex items-center gap-1 rounded-lg border border-border bg-muted p-1",
|
|
@@ -7480,32 +7605,58 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7480
7605
|
const active = multiple ? Array.isArray(selected) && selected.includes(option.value) : selected === option.value;
|
|
7481
7606
|
const firstEnabled = options.findIndex((entry) => !entry.disabled);
|
|
7482
7607
|
const focusable = multiple || active || !selected && index === firstEnabled;
|
|
7483
|
-
|
|
7608
|
+
const segmentClass = cn(
|
|
7609
|
+
"inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors",
|
|
7610
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7611
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
7612
|
+
sizeClasses10[size],
|
|
7613
|
+
fullWidth && "flex-1",
|
|
7614
|
+
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
7615
|
+
);
|
|
7616
|
+
const segmentContent = /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_jsx_runtime91.Fragment, { children: [
|
|
7617
|
+
option.icon && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
7618
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "truncate", children: option.label })
|
|
7619
|
+
] });
|
|
7620
|
+
if (option.href !== void 0) {
|
|
7621
|
+
if (option.disabled || active) {
|
|
7622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7623
|
+
"span",
|
|
7624
|
+
{
|
|
7625
|
+
"aria-current": active ? "page" : void 0,
|
|
7626
|
+
"aria-disabled": option.disabled || void 0,
|
|
7627
|
+
className: cn(segmentClass, option.disabled && "opacity-50"),
|
|
7628
|
+
children: segmentContent
|
|
7629
|
+
},
|
|
7630
|
+
option.value
|
|
7631
|
+
);
|
|
7632
|
+
}
|
|
7633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7634
|
+
LinkEl,
|
|
7635
|
+
{
|
|
7636
|
+
...destination(option.href),
|
|
7637
|
+
className: segmentClass,
|
|
7638
|
+
children: segmentContent
|
|
7639
|
+
},
|
|
7640
|
+
option.value
|
|
7641
|
+
);
|
|
7642
|
+
}
|
|
7643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7484
7644
|
"button",
|
|
7485
7645
|
{
|
|
7486
7646
|
ref: (node) => {
|
|
7487
7647
|
refs.current[index] = node;
|
|
7488
7648
|
},
|
|
7489
7649
|
type: "button",
|
|
7490
|
-
role: multiple ? void 0 : "radio",
|
|
7491
|
-
"aria-checked": multiple ? void 0 : active,
|
|
7650
|
+
role: multiple || linkMode ? void 0 : "radio",
|
|
7651
|
+
"aria-checked": multiple || linkMode ? void 0 : active,
|
|
7492
7652
|
"aria-pressed": multiple ? active : void 0,
|
|
7653
|
+
"aria-current": linkMode && active ? "page" : void 0,
|
|
7493
7654
|
disabled: option.disabled,
|
|
7494
7655
|
tabIndex: focusable ? 0 : -1,
|
|
7495
7656
|
onClick: () => select(option),
|
|
7496
7657
|
onKeyDown,
|
|
7497
|
-
className:
|
|
7498
|
-
|
|
7499
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7500
|
-
"disabled:pointer-events-none disabled:opacity-50",
|
|
7501
|
-
sizeClasses10[size],
|
|
7502
|
-
fullWidth && "flex-1",
|
|
7503
|
-
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
7504
|
-
),
|
|
7505
|
-
children: [
|
|
7506
|
-
option.icon && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
7507
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "truncate", children: option.label })
|
|
7508
|
-
]
|
|
7658
|
+
className: segmentClass,
|
|
7659
|
+
children: segmentContent
|
|
7509
7660
|
},
|
|
7510
7661
|
option.value
|
|
7511
7662
|
);
|
|
@@ -7517,7 +7668,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7517
7668
|
|
|
7518
7669
|
// src/components/range-slider/RangeSlider.tsx
|
|
7519
7670
|
var React91 = __toESM(require("react"));
|
|
7520
|
-
var
|
|
7671
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
7521
7672
|
var rangeInputClass = cn(
|
|
7522
7673
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
7523
7674
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
@@ -7557,21 +7708,21 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7557
7708
|
const span = max - min || 1;
|
|
7558
7709
|
const lowPercent = (low - min) / span * 100;
|
|
7559
7710
|
const highPercent = (high - min) / span * 100;
|
|
7560
|
-
return /* @__PURE__ */ (0,
|
|
7561
|
-
showValues && /* @__PURE__ */ (0,
|
|
7562
|
-
/* @__PURE__ */ (0,
|
|
7563
|
-
/* @__PURE__ */ (0,
|
|
7711
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
7712
|
+
showValues && /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "mb-2 flex items-center justify-between text-sm font-medium tabular-nums", children: [
|
|
7713
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { children: formatValue(low) }),
|
|
7714
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { children: formatValue(high) })
|
|
7564
7715
|
] }),
|
|
7565
|
-
/* @__PURE__ */ (0,
|
|
7566
|
-
/* @__PURE__ */ (0,
|
|
7567
|
-
/* @__PURE__ */ (0,
|
|
7716
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "relative h-6 w-full", children: [
|
|
7717
|
+
/* @__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" }),
|
|
7718
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7568
7719
|
"div",
|
|
7569
7720
|
{
|
|
7570
7721
|
className: "absolute top-1/2 h-1 -translate-y-1/2 rounded-full bg-primary",
|
|
7571
7722
|
style: { left: `${lowPercent}%`, right: `${100 - highPercent}%` }
|
|
7572
7723
|
}
|
|
7573
7724
|
),
|
|
7574
|
-
/* @__PURE__ */ (0,
|
|
7725
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7575
7726
|
"input",
|
|
7576
7727
|
{
|
|
7577
7728
|
type: "range",
|
|
@@ -7586,7 +7737,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7586
7737
|
className: cn(rangeInputClass, "z-10")
|
|
7587
7738
|
}
|
|
7588
7739
|
),
|
|
7589
|
-
/* @__PURE__ */ (0,
|
|
7740
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7590
7741
|
"input",
|
|
7591
7742
|
{
|
|
7592
7743
|
type: "range",
|
|
@@ -7607,7 +7758,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7607
7758
|
|
|
7608
7759
|
// src/components/filter-chips/FilterChips.tsx
|
|
7609
7760
|
var React92 = __toESM(require("react"));
|
|
7610
|
-
var
|
|
7761
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
7611
7762
|
var CHIP_SIZES = {
|
|
7612
7763
|
sm: {
|
|
7613
7764
|
chip: "gap-1 py-0.5 pl-2.5 pr-0.5 text-xs",
|
|
@@ -7639,10 +7790,10 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7639
7790
|
...props
|
|
7640
7791
|
}, ref) {
|
|
7641
7792
|
if (filters.length === 0) {
|
|
7642
|
-
return emptyLabel ? /* @__PURE__ */ (0,
|
|
7793
|
+
return emptyLabel ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7643
7794
|
}
|
|
7644
7795
|
const scale = CHIP_SIZES[size];
|
|
7645
|
-
return /* @__PURE__ */ (0,
|
|
7796
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
7646
7797
|
"div",
|
|
7647
7798
|
{
|
|
7648
7799
|
ref,
|
|
@@ -7651,7 +7802,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7651
7802
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
7652
7803
|
...props,
|
|
7653
7804
|
children: [
|
|
7654
|
-
filters.map((filter) => /* @__PURE__ */ (0,
|
|
7805
|
+
filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
7655
7806
|
"span",
|
|
7656
7807
|
{
|
|
7657
7808
|
className: cn(
|
|
@@ -7659,15 +7810,15 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7659
7810
|
scale.chip
|
|
7660
7811
|
),
|
|
7661
7812
|
children: [
|
|
7662
|
-
/* @__PURE__ */ (0,
|
|
7663
|
-
/* @__PURE__ */ (0,
|
|
7813
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { className: "truncate", children: [
|
|
7814
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { className: "text-muted-foreground", children: [
|
|
7664
7815
|
filter.label,
|
|
7665
7816
|
":"
|
|
7666
7817
|
] }),
|
|
7667
7818
|
" ",
|
|
7668
|
-
/* @__PURE__ */ (0,
|
|
7819
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "font-medium", children: filter.value ?? "Any" })
|
|
7669
7820
|
] }),
|
|
7670
|
-
filter.onRemove && /* @__PURE__ */ (0,
|
|
7821
|
+
filter.onRemove && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
7671
7822
|
"button",
|
|
7672
7823
|
{
|
|
7673
7824
|
type: "button",
|
|
@@ -7677,14 +7828,14 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7677
7828
|
"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",
|
|
7678
7829
|
scale.remove
|
|
7679
7830
|
),
|
|
7680
|
-
children: /* @__PURE__ */ (0,
|
|
7831
|
+
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" }) })
|
|
7681
7832
|
}
|
|
7682
7833
|
)
|
|
7683
7834
|
]
|
|
7684
7835
|
},
|
|
7685
7836
|
filter.key
|
|
7686
7837
|
)),
|
|
7687
|
-
onClearAll && /* @__PURE__ */ (0,
|
|
7838
|
+
onClearAll && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
7688
7839
|
"button",
|
|
7689
7840
|
{
|
|
7690
7841
|
type: "button",
|
|
@@ -7703,7 +7854,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7703
7854
|
|
|
7704
7855
|
// src/components/multi-select/MultiSelect.tsx
|
|
7705
7856
|
var React93 = __toESM(require("react"));
|
|
7706
|
-
var
|
|
7857
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
7707
7858
|
var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
7708
7859
|
options,
|
|
7709
7860
|
value,
|
|
@@ -7748,16 +7899,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7748
7899
|
}, [filtered]);
|
|
7749
7900
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
7750
7901
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
7751
|
-
return /* @__PURE__ */ (0,
|
|
7752
|
-
label && /* @__PURE__ */ (0,
|
|
7753
|
-
visibleChips.length > 0 && /* @__PURE__ */ (0,
|
|
7754
|
-
visibleChips.map((option) => /* @__PURE__ */ (0,
|
|
7902
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { ref, className: cn("flex flex-col gap-2", className), ...props, children: [
|
|
7903
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { id: labelId, className: "text-sm font-medium", children: label }),
|
|
7904
|
+
visibleChips.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
7905
|
+
visibleChips.map((option) => /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
7755
7906
|
"span",
|
|
7756
7907
|
{
|
|
7757
7908
|
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",
|
|
7758
7909
|
children: [
|
|
7759
|
-
/* @__PURE__ */ (0,
|
|
7760
|
-
/* @__PURE__ */ (0,
|
|
7910
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "truncate", children: option.label }),
|
|
7911
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7761
7912
|
"button",
|
|
7762
7913
|
{
|
|
7763
7914
|
type: "button",
|
|
@@ -7765,26 +7916,26 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7765
7916
|
disabled,
|
|
7766
7917
|
"aria-label": `Remove ${option.label}`,
|
|
7767
7918
|
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",
|
|
7768
|
-
children: /* @__PURE__ */ (0,
|
|
7919
|
+
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" }) })
|
|
7769
7920
|
}
|
|
7770
7921
|
)
|
|
7771
7922
|
]
|
|
7772
7923
|
},
|
|
7773
7924
|
option.value
|
|
7774
7925
|
)),
|
|
7775
|
-
hiddenCount > 0 && /* @__PURE__ */ (0,
|
|
7926
|
+
hiddenCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: "self-center text-xs text-muted-foreground", children: [
|
|
7776
7927
|
"+",
|
|
7777
7928
|
hiddenCount,
|
|
7778
7929
|
" more"
|
|
7779
7930
|
] })
|
|
7780
7931
|
] }),
|
|
7781
|
-
/* @__PURE__ */ (0,
|
|
7782
|
-
/* @__PURE__ */ (0,
|
|
7783
|
-
/* @__PURE__ */ (0,
|
|
7784
|
-
/* @__PURE__ */ (0,
|
|
7932
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
7933
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(PopoverTrigger, { "aria-labelledby": label ? labelId : void 0, disabled, className: "w-full justify-between", children: [
|
|
7934
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { children: selected.length > 0 ? `${selected.length} selected` : triggerLabel }),
|
|
7935
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2304" })
|
|
7785
7936
|
] }),
|
|
7786
|
-
/* @__PURE__ */ (0,
|
|
7787
|
-
/* @__PURE__ */ (0,
|
|
7937
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(PopoverContent, { className: "w-80 p-0", children: [
|
|
7938
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7788
7939
|
Input,
|
|
7789
7940
|
{
|
|
7790
7941
|
type: "search",
|
|
@@ -7795,9 +7946,9 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7795
7946
|
autoFocus: true
|
|
7796
7947
|
}
|
|
7797
7948
|
) }),
|
|
7798
|
-
/* @__PURE__ */ (0,
|
|
7799
|
-
heading && /* @__PURE__ */ (0,
|
|
7800
|
-
/* @__PURE__ */ (0,
|
|
7949
|
+
/* @__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: [
|
|
7950
|
+
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 }),
|
|
7951
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
7801
7952
|
"label",
|
|
7802
7953
|
{
|
|
7803
7954
|
className: cn(
|
|
@@ -7805,7 +7956,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7805
7956
|
option.disabled && "cursor-not-allowed opacity-50"
|
|
7806
7957
|
),
|
|
7807
7958
|
children: [
|
|
7808
|
-
/* @__PURE__ */ (0,
|
|
7959
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7809
7960
|
Checkbox,
|
|
7810
7961
|
{
|
|
7811
7962
|
checked: selected.includes(option.value),
|
|
@@ -7814,16 +7965,16 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7814
7965
|
className: "mt-0.5"
|
|
7815
7966
|
}
|
|
7816
7967
|
),
|
|
7817
|
-
/* @__PURE__ */ (0,
|
|
7818
|
-
/* @__PURE__ */ (0,
|
|
7819
|
-
option.description && /* @__PURE__ */ (0,
|
|
7968
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: "min-w-0", children: [
|
|
7969
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "block", children: option.label }),
|
|
7970
|
+
option.description && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: option.description })
|
|
7820
7971
|
] })
|
|
7821
7972
|
]
|
|
7822
7973
|
}
|
|
7823
7974
|
)
|
|
7824
7975
|
] }, option.value)) }),
|
|
7825
|
-
/* @__PURE__ */ (0,
|
|
7826
|
-
/* @__PURE__ */ (0,
|
|
7976
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center justify-between gap-2 border-t border-border p-2", children: [
|
|
7977
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7827
7978
|
Button,
|
|
7828
7979
|
{
|
|
7829
7980
|
type: "button",
|
|
@@ -7833,7 +7984,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7833
7984
|
children: "Select all"
|
|
7834
7985
|
}
|
|
7835
7986
|
),
|
|
7836
|
-
/* @__PURE__ */ (0,
|
|
7987
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => commit([]), children: "Clear" })
|
|
7837
7988
|
] })
|
|
7838
7989
|
] })
|
|
7839
7990
|
] })
|
|
@@ -7842,7 +7993,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7842
7993
|
|
|
7843
7994
|
// src/components/filter-panel/FilterPanel.tsx
|
|
7844
7995
|
var React94 = __toESM(require("react"));
|
|
7845
|
-
var
|
|
7996
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
7846
7997
|
var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
7847
7998
|
sections,
|
|
7848
7999
|
title = "Filters",
|
|
@@ -7872,16 +8023,16 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7872
8023
|
(current) => current.includes(index) ? current.filter((entry) => entry !== index) : [...current, index]
|
|
7873
8024
|
);
|
|
7874
8025
|
};
|
|
7875
|
-
return /* @__PURE__ */ (0,
|
|
7876
|
-
(title || description) && /* @__PURE__ */ (0,
|
|
7877
|
-
title && /* @__PURE__ */ (0,
|
|
7878
|
-
description && /* @__PURE__ */ (0,
|
|
8026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
8027
|
+
(title || description) && /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "border-b border-border px-4 py-3", children: [
|
|
8028
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("h2", { className: "text-sm font-semibold", children: title }),
|
|
8029
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
7879
8030
|
] }),
|
|
7880
|
-
/* @__PURE__ */ (0,
|
|
8031
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "divide-y divide-border", children: sections.map((section, index) => {
|
|
7881
8032
|
const expanded = isOpen(index);
|
|
7882
8033
|
const sectionId = `filter-section-${index}`;
|
|
7883
|
-
return /* @__PURE__ */ (0,
|
|
7884
|
-
/* @__PURE__ */ (0,
|
|
8034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "px-4 py-3", children: [
|
|
8035
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("h3", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
7885
8036
|
"button",
|
|
7886
8037
|
{
|
|
7887
8038
|
type: "button",
|
|
@@ -7894,28 +8045,28 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7894
8045
|
collapsible && "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7895
8046
|
),
|
|
7896
8047
|
children: [
|
|
7897
|
-
/* @__PURE__ */ (0,
|
|
8048
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("span", { children: [
|
|
7898
8049
|
section.title,
|
|
7899
|
-
section.description && /* @__PURE__ */ (0,
|
|
8050
|
+
section.description && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "mt-0.5 block text-xs font-normal text-muted-foreground", children: section.description })
|
|
7900
8051
|
] }),
|
|
7901
|
-
collapsible && /* @__PURE__ */ (0,
|
|
8052
|
+
collapsible && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { "aria-hidden": "true", className: cn("text-muted-foreground transition-transform", expanded && "rotate-180"), children: "\u2304" })
|
|
7902
8053
|
]
|
|
7903
8054
|
}
|
|
7904
8055
|
) }),
|
|
7905
|
-
expanded && /* @__PURE__ */ (0,
|
|
8056
|
+
expanded && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
7906
8057
|
] }, index);
|
|
7907
8058
|
}) }),
|
|
7908
|
-
(onReset || onApply || actions) && /* @__PURE__ */ (0,
|
|
8059
|
+
(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: [
|
|
7909
8060
|
actions,
|
|
7910
|
-
onReset && /* @__PURE__ */ (0,
|
|
7911
|
-
onApply && /* @__PURE__ */ (0,
|
|
8061
|
+
onReset && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, className: "ml-auto", children: resetLabel }),
|
|
8062
|
+
onApply && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { type: "button", size: "sm", onClick: onApply, children: applyLabel })
|
|
7912
8063
|
] })
|
|
7913
8064
|
] });
|
|
7914
8065
|
});
|
|
7915
8066
|
|
|
7916
8067
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
7917
8068
|
var React95 = __toESM(require("react"));
|
|
7918
|
-
var
|
|
8069
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
7919
8070
|
var DEFAULT_PRESETS = [
|
|
7920
8071
|
{ label: "7 days", days: 7 },
|
|
7921
8072
|
{ label: "30 days", days: 30 },
|
|
@@ -7967,8 +8118,8 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7967
8118
|
}
|
|
7968
8119
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
7969
8120
|
};
|
|
7970
|
-
return /* @__PURE__ */ (0,
|
|
7971
|
-
showPresets && presets.length > 0 && /* @__PURE__ */ (0,
|
|
8121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { ref, className: cn("flex flex-col gap-3", className), ...props, children: [
|
|
8122
|
+
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)(
|
|
7972
8123
|
Button,
|
|
7973
8124
|
{
|
|
7974
8125
|
type: "button",
|
|
@@ -7980,10 +8131,10 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7980
8131
|
},
|
|
7981
8132
|
preset.label
|
|
7982
8133
|
)) }),
|
|
7983
|
-
/* @__PURE__ */ (0,
|
|
7984
|
-
/* @__PURE__ */ (0,
|
|
7985
|
-
/* @__PURE__ */ (0,
|
|
7986
|
-
/* @__PURE__ */ (0,
|
|
8134
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
8135
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { children: [
|
|
8136
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
8137
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7987
8138
|
DatePicker,
|
|
7988
8139
|
{
|
|
7989
8140
|
id: startId,
|
|
@@ -7995,9 +8146,9 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7995
8146
|
}
|
|
7996
8147
|
)
|
|
7997
8148
|
] }),
|
|
7998
|
-
/* @__PURE__ */ (0,
|
|
7999
|
-
/* @__PURE__ */ (0,
|
|
8000
|
-
/* @__PURE__ */ (0,
|
|
8149
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { children: [
|
|
8150
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
8151
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
8001
8152
|
DatePicker,
|
|
8002
8153
|
{
|
|
8003
8154
|
id: endId,
|
|
@@ -8016,7 +8167,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
8016
8167
|
|
|
8017
8168
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
8018
8169
|
var React96 = __toESM(require("react"));
|
|
8019
|
-
var
|
|
8170
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
8020
8171
|
var AppliedFilters = React96.forwardRef(
|
|
8021
8172
|
function AppliedFilters2({
|
|
8022
8173
|
filters,
|
|
@@ -8030,9 +8181,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8030
8181
|
}, ref) {
|
|
8031
8182
|
const summary = label ?? `${filters.length} active`;
|
|
8032
8183
|
if (filters.length === 0) {
|
|
8033
|
-
return emptyLabel ? /* @__PURE__ */ (0,
|
|
8184
|
+
return emptyLabel ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
8034
8185
|
}
|
|
8035
|
-
return /* @__PURE__ */ (0,
|
|
8186
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
8036
8187
|
"div",
|
|
8037
8188
|
{
|
|
8038
8189
|
ref,
|
|
@@ -8040,9 +8191,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8040
8191
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
8041
8192
|
...props,
|
|
8042
8193
|
children: [
|
|
8043
|
-
/* @__PURE__ */ (0,
|
|
8044
|
-
/* @__PURE__ */ (0,
|
|
8045
|
-
onEdit && /* @__PURE__ */ (0,
|
|
8194
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: summary }),
|
|
8195
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(FilterChips, { filters, onClearAll }),
|
|
8196
|
+
onEdit && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: onEdit, children: editLabel })
|
|
8046
8197
|
]
|
|
8047
8198
|
}
|
|
8048
8199
|
);
|
|
@@ -8053,7 +8204,7 @@ var AppliedFilters = React96.forwardRef(
|
|
|
8053
8204
|
var React97 = __toESM(require("react"));
|
|
8054
8205
|
var import_react_dom8 = require("react-dom");
|
|
8055
8206
|
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
8056
|
-
var
|
|
8207
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
8057
8208
|
var MenuContext = React97.createContext({
|
|
8058
8209
|
open: false,
|
|
8059
8210
|
setOpen: () => {
|
|
@@ -8085,7 +8236,7 @@ var Menu = React97.forwardRef(
|
|
|
8085
8236
|
},
|
|
8086
8237
|
[open, onOpenChange]
|
|
8087
8238
|
);
|
|
8088
|
-
return /* @__PURE__ */ (0,
|
|
8239
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
8089
8240
|
MenuContext.Provider,
|
|
8090
8241
|
{
|
|
8091
8242
|
value: { open: current, setOpen, activeIndex, setActiveIndex, wrapperRef },
|
|
@@ -8098,7 +8249,7 @@ Menu.displayName = "Menu";
|
|
|
8098
8249
|
var MenuTrigger = React97.forwardRef(
|
|
8099
8250
|
({ className, children, ...props }, ref) => {
|
|
8100
8251
|
const { open, setOpen } = React97.useContext(MenuContext);
|
|
8101
|
-
return /* @__PURE__ */ (0,
|
|
8252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
8102
8253
|
"button",
|
|
8103
8254
|
{
|
|
8104
8255
|
ref,
|
|
@@ -8200,7 +8351,7 @@ var MenuContent = React97.forwardRef(
|
|
|
8200
8351
|
};
|
|
8201
8352
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
8202
8353
|
return (0, import_react_dom8.createPortal)(
|
|
8203
|
-
/* @__PURE__ */ (0,
|
|
8354
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
8204
8355
|
"div",
|
|
8205
8356
|
{
|
|
8206
8357
|
ref: (node) => {
|
|
@@ -8229,7 +8380,7 @@ var MenuItem = React97.forwardRef(
|
|
|
8229
8380
|
const { setOpen } = React97.useContext(MenuContext);
|
|
8230
8381
|
const Comp = asChild ? import_react_slot5.Slot : "button";
|
|
8231
8382
|
const typeProp = asChild ? {} : { type: "button" };
|
|
8232
|
-
return /* @__PURE__ */ (0,
|
|
8383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
8233
8384
|
Comp,
|
|
8234
8385
|
{
|
|
8235
8386
|
ref,
|
|
@@ -8252,11 +8403,11 @@ var MenuItem = React97.forwardRef(
|
|
|
8252
8403
|
);
|
|
8253
8404
|
MenuItem.displayName = "MenuItem";
|
|
8254
8405
|
var MenuSeparator = React97.forwardRef(
|
|
8255
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8406
|
+
({ 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 })
|
|
8256
8407
|
);
|
|
8257
8408
|
MenuSeparator.displayName = "MenuSeparator";
|
|
8258
8409
|
var MenuLabel = React97.forwardRef(
|
|
8259
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8410
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
8260
8411
|
"div",
|
|
8261
8412
|
{
|
|
8262
8413
|
ref,
|
|
@@ -8270,7 +8421,7 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
8270
8421
|
// src/components/alert/Alert.tsx
|
|
8271
8422
|
var React98 = __toESM(require("react"));
|
|
8272
8423
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
8273
|
-
var
|
|
8424
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
8274
8425
|
var alertVariants = (0, import_class_variance_authority8.cva)(
|
|
8275
8426
|
"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",
|
|
8276
8427
|
{
|
|
@@ -8291,7 +8442,7 @@ var alertVariants = (0, import_class_variance_authority8.cva)(
|
|
|
8291
8442
|
}
|
|
8292
8443
|
);
|
|
8293
8444
|
var Alert = React98.forwardRef(
|
|
8294
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8445
|
+
({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8295
8446
|
"div",
|
|
8296
8447
|
{
|
|
8297
8448
|
ref,
|
|
@@ -8303,7 +8454,7 @@ var Alert = React98.forwardRef(
|
|
|
8303
8454
|
);
|
|
8304
8455
|
Alert.displayName = "Alert";
|
|
8305
8456
|
var AlertTitle = React98.forwardRef(
|
|
8306
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8457
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8307
8458
|
"h5",
|
|
8308
8459
|
{
|
|
8309
8460
|
ref,
|
|
@@ -8314,7 +8465,7 @@ var AlertTitle = React98.forwardRef(
|
|
|
8314
8465
|
);
|
|
8315
8466
|
AlertTitle.displayName = "AlertTitle";
|
|
8316
8467
|
var AlertDescription = React98.forwardRef(
|
|
8317
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8468
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8318
8469
|
"div",
|
|
8319
8470
|
{
|
|
8320
8471
|
ref,
|
|
@@ -8327,22 +8478,22 @@ AlertDescription.displayName = "AlertDescription";
|
|
|
8327
8478
|
|
|
8328
8479
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
8329
8480
|
var React99 = __toESM(require("react"));
|
|
8330
|
-
var
|
|
8481
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
8331
8482
|
var Breadcrumb = React99.forwardRef(
|
|
8332
8483
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
8333
8484
|
const LinkEl = linkComponent ?? "a";
|
|
8334
|
-
return /* @__PURE__ */ (0,
|
|
8485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8335
8486
|
"nav",
|
|
8336
8487
|
{
|
|
8337
8488
|
ref,
|
|
8338
8489
|
"aria-label": label,
|
|
8339
8490
|
className: cn("flex items-center space-x-1.5 text-sm text-muted-foreground", className),
|
|
8340
8491
|
...props,
|
|
8341
|
-
children: /* @__PURE__ */ (0,
|
|
8492
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("ol", { className: "flex flex-wrap items-center space-x-1.5", children: items.map((item, index) => {
|
|
8342
8493
|
const isLast = index === items.length - 1;
|
|
8343
|
-
return /* @__PURE__ */ (0,
|
|
8344
|
-
index > 0 && /* @__PURE__ */ (0,
|
|
8345
|
-
item.href && !isLast ? /* @__PURE__ */ (0,
|
|
8494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("li", { className: cn("flex items-center space-x-1.5", truncateCurrent && isLast && "min-w-0"), children: [
|
|
8495
|
+
index > 0 && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { "aria-hidden": "true", className: "text-muted-foreground/50", children: separator }),
|
|
8496
|
+
item.href && !isLast ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8346
8497
|
LinkEl,
|
|
8347
8498
|
{
|
|
8348
8499
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -8353,7 +8504,7 @@ var Breadcrumb = React99.forwardRef(
|
|
|
8353
8504
|
} : void 0,
|
|
8354
8505
|
children: item.label
|
|
8355
8506
|
}
|
|
8356
|
-
) : /* @__PURE__ */ (0,
|
|
8507
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8357
8508
|
"span",
|
|
8358
8509
|
{
|
|
8359
8510
|
"aria-current": isLast ? "page" : void 0,
|
|
@@ -8408,6 +8559,7 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
8408
8559
|
ConfirmDialog,
|
|
8409
8560
|
ContactStrip,
|
|
8410
8561
|
Container,
|
|
8562
|
+
CoverImage,
|
|
8411
8563
|
DataTable,
|
|
8412
8564
|
DatePicker,
|
|
8413
8565
|
DatePickerPopover,
|