@slipstream-ui/core 0.11.3 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +126 -7
- package/dist/index.d.ts +126 -7
- package/dist/index.js +605 -444
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +500 -340
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +1 -1
- package/dist/manifests/alert.manifest.json +1 -1
- package/dist/manifests/announcement-bar.manifest.json +1 -1
- package/dist/manifests/app-shell.manifest.json +1 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +1 -1
- package/dist/manifests/auth-layout.manifest.json +1 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +1 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +1 -1
- package/dist/manifests/breadcrumb.manifest.json +1 -1
- package/dist/manifests/button-group.manifest.json +1 -1
- package/dist/manifests/button.manifest.json +1 -1
- package/dist/manifests/calendar.manifest.json +1 -1
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cover-image.manifest.json +151 -0
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +1 -1
- package/dist/manifests/date-picker-popover.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +1 -1
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +1 -1
- package/dist/manifests/empty-state.manifest.json +45 -1
- package/dist/manifests/entity-card.manifest.json +1 -1
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +16 -4
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/image.manifest.json +7 -1
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +1 -1
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +29 -2
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +1 -1
- package/dist/manifests/site-header.manifest.json +1 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +23 -1
- package/dist/manifests/stepper.manifest.json +1 -1
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +1 -1
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +1 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +1 -1
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/cover-image/CoverImage.d.ts +34 -0
- package/dist/src/components/cover-image/CoverImage.js +94 -0
- package/dist/src/components/cover-image/CoverImage.js.map +1 -0
- package/dist/src/components/cover-image/CoverImage.mjs +70 -0
- package/dist/src/components/cover-image/CoverImage.mjs.map +1 -0
- package/dist/src/components/cover-image/index.d.ts +1 -0
- package/dist/src/components/cover-image/index.js +29 -0
- package/dist/src/components/cover-image/index.js.map +1 -0
- package/dist/src/components/cover-image/index.mjs +5 -0
- package/dist/src/components/cover-image/index.mjs.map +1 -0
- package/dist/src/components/empty-state/EmptyState.d.ts +24 -0
- package/dist/src/components/empty-state/EmptyState.js +16 -6
- package/dist/src/components/empty-state/EmptyState.js.map +1 -1
- package/dist/src/components/empty-state/EmptyState.mjs +16 -6
- package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
- package/dist/src/components/form-layout/FormLayout.d.ts +26 -4
- package/dist/src/components/form-layout/FormLayout.js +16 -3
- package/dist/src/components/form-layout/FormLayout.js.map +1 -1
- package/dist/src/components/form-layout/FormLayout.mjs +16 -3
- package/dist/src/components/form-layout/FormLayout.mjs.map +1 -1
- package/dist/src/components/image/Image.d.ts +3 -1
- package/dist/src/components/image/Image.js +2 -0
- package/dist/src/components/image/Image.js.map +1 -1
- package/dist/src/components/image/Image.mjs +2 -0
- package/dist/src/components/image/Image.mjs.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.d.ts +21 -0
- package/dist/src/components/segmented-control/SegmentedControl.js +47 -16
- package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.mjs +48 -17
- package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
- package/dist/src/components/stat-band/StatBand.d.ts +16 -0
- package/dist/src/components/stat-band/StatBand.js +46 -9
- package/dist/src/components/stat-band/StatBand.js.map +1 -1
- package/dist/src/components/stat-band/StatBand.mjs +46 -9
- package/dist/src/components/stat-band/StatBand.mjs.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/cover-image/CoverImage.test.tsx +88 -0
- package/src/components/cover-image/CoverImage.tsx +109 -0
- package/src/components/cover-image/index.ts +1 -0
- package/src/components/empty-state/EmptyState.test.tsx +33 -0
- package/src/components/empty-state/EmptyState.tsx +34 -6
- package/src/components/form-layout/FormLayout.test.tsx +26 -0
- package/src/components/form-layout/FormLayout.tsx +37 -5
- package/src/components/image/Image.tsx +4 -0
- package/src/components/segmented-control/SegmentedControl.test.tsx +64 -0
- package/src/components/segmented-control/SegmentedControl.tsx +69 -15
- package/src/components/stat-band/StatBand.test.tsx +26 -0
- package/src/components/stat-band/StatBand.tsx +52 -7
- package/src/index.ts +1 -0
- package/src/manifests/accordion.manifest.json +1 -1
- package/src/manifests/alert.manifest.json +1 -1
- package/src/manifests/announcement-bar.manifest.json +1 -1
- package/src/manifests/app-shell.manifest.json +1 -1
- package/src/manifests/applied-filters.manifest.json +1 -1
- package/src/manifests/article-card.manifest.json +1 -1
- package/src/manifests/auth-layout.manifest.json +1 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +1 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +1 -1
- package/src/manifests/breadcrumb.manifest.json +1 -1
- package/src/manifests/button-group.manifest.json +1 -1
- package/src/manifests/button.manifest.json +1 -1
- package/src/manifests/calendar.manifest.json +1 -1
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cover-image.manifest.json +151 -0
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +1 -1
- package/src/manifests/date-picker-popover.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +1 -1
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +1 -1
- package/src/manifests/empty-state.manifest.json +45 -1
- package/src/manifests/entity-card.manifest.json +1 -1
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +16 -4
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/image.manifest.json +7 -1
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +1 -1
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +29 -2
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +1 -1
- package/src/manifests/site-header.manifest.json +1 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +23 -1
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +1 -1
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +1 -1
- package/src/manifests/tooltip.manifest.json +1 -1
- package/src/styles.css +5 -0
package/dist/index.mjs
CHANGED
|
@@ -2558,13 +2558,26 @@ var GRID_COLUMNS = {
|
|
|
2558
2558
|
3: "grid-cols-3",
|
|
2559
2559
|
4: "grid-cols-4"
|
|
2560
2560
|
};
|
|
2561
|
+
var GRID_BREAKPOINTS = ["sm", "md", "lg", "xl"];
|
|
2562
|
+
function gridColumnClasses(columns) {
|
|
2563
|
+
if (typeof columns === "number") return GRID_COLUMNS[columns];
|
|
2564
|
+
return [
|
|
2565
|
+
columns.base !== void 0 ? GRID_COLUMNS[columns.base] : "",
|
|
2566
|
+
...GRID_BREAKPOINTS.map((bp) => {
|
|
2567
|
+
const count = columns[bp];
|
|
2568
|
+
return count !== void 0 ? `${bp}:${GRID_COLUMNS[count]}` : "";
|
|
2569
|
+
})
|
|
2570
|
+
].filter(Boolean).join(" ");
|
|
2571
|
+
}
|
|
2561
2572
|
var FormLayout = React30.forwardRef(
|
|
2562
2573
|
({
|
|
2563
2574
|
layout = "stack",
|
|
2564
2575
|
columns = 2,
|
|
2565
2576
|
gap,
|
|
2566
2577
|
legend,
|
|
2578
|
+
legendClassName,
|
|
2567
2579
|
description,
|
|
2580
|
+
descriptionClassName,
|
|
2568
2581
|
as = "div",
|
|
2569
2582
|
className,
|
|
2570
2583
|
style,
|
|
@@ -2581,15 +2594,15 @@ var FormLayout = React30.forwardRef(
|
|
|
2581
2594
|
"flex min-w-0",
|
|
2582
2595
|
layout === "stack" && "flex-col",
|
|
2583
2596
|
layout === "row" && "flex-row flex-wrap items-end",
|
|
2584
|
-
layout === "grid" && `grid ${
|
|
2597
|
+
layout === "grid" && `grid ${gridColumnClasses(columns)}`,
|
|
2585
2598
|
gapResolved.className,
|
|
2586
2599
|
className
|
|
2587
2600
|
),
|
|
2588
2601
|
style: { ...gapResolved.style, ...style },
|
|
2589
2602
|
...props,
|
|
2590
2603
|
children: [
|
|
2591
|
-
legend && as === "fieldset" && /* @__PURE__ */ jsx29("legend", { className: "col-span-full p-0 text-sm font-medium leading-none", children: legend }),
|
|
2592
|
-
description && as === "fieldset" && /* @__PURE__ */ jsx29("p", { className: "col-span-full text-xs text-muted-foreground", children: description }),
|
|
2604
|
+
legend && as === "fieldset" && /* @__PURE__ */ jsx29("legend", { className: cn("col-span-full p-0 text-sm font-medium leading-none", legendClassName), children: legend }),
|
|
2605
|
+
description && as === "fieldset" && /* @__PURE__ */ jsx29("p", { className: cn("col-span-full text-xs text-muted-foreground", descriptionClassName), children: description }),
|
|
2593
2606
|
children
|
|
2594
2607
|
]
|
|
2595
2608
|
}
|
|
@@ -4698,6 +4711,7 @@ function Image2({
|
|
|
4698
4711
|
height = 630,
|
|
4699
4712
|
className,
|
|
4700
4713
|
imgClassName,
|
|
4714
|
+
sizes,
|
|
4701
4715
|
style
|
|
4702
4716
|
}) {
|
|
4703
4717
|
const [stage, setStage] = React50.useState(0);
|
|
@@ -4719,6 +4733,7 @@ function Image2({
|
|
|
4719
4733
|
loading: priority ? "eager" : "lazy",
|
|
4720
4734
|
fetchPriority: priority ? "high" : "auto",
|
|
4721
4735
|
decoding: "async",
|
|
4736
|
+
sizes,
|
|
4722
4737
|
className: cn(className, imgClassName),
|
|
4723
4738
|
style,
|
|
4724
4739
|
onError
|
|
@@ -4727,9 +4742,75 @@ function Image2({
|
|
|
4727
4742
|
}
|
|
4728
4743
|
Image2.displayName = "Image";
|
|
4729
4744
|
|
|
4745
|
+
// src/components/cover-image/CoverImage.tsx
|
|
4746
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
4747
|
+
var aspectClasses = {
|
|
4748
|
+
video: "aspect-video",
|
|
4749
|
+
square: "aspect-square",
|
|
4750
|
+
wide: "aspect-[2/1]"
|
|
4751
|
+
};
|
|
4752
|
+
var gradients = [
|
|
4753
|
+
"linear-gradient(135deg, hsl(var(--primary) / 0.18), hsl(var(--info) / 0.10))",
|
|
4754
|
+
"linear-gradient(135deg, hsl(var(--info) / 0.16), hsl(var(--primary) / 0.08))",
|
|
4755
|
+
"linear-gradient(135deg, hsl(var(--warning) / 0.14), hsl(var(--primary) / 0.10))",
|
|
4756
|
+
"linear-gradient(135deg, hsl(var(--success) / 0.14), hsl(var(--info) / 0.08))"
|
|
4757
|
+
];
|
|
4758
|
+
function hashSeed(seed) {
|
|
4759
|
+
let hash = 0;
|
|
4760
|
+
for (let i = 0; i < seed.length; i += 1) {
|
|
4761
|
+
hash = hash * 31 + seed.charCodeAt(i) >>> 0;
|
|
4762
|
+
}
|
|
4763
|
+
return hash;
|
|
4764
|
+
}
|
|
4765
|
+
function seededGradient(seed) {
|
|
4766
|
+
return { backgroundImage: gradients[hashSeed(seed) % gradients.length] };
|
|
4767
|
+
}
|
|
4768
|
+
function CoverImage({
|
|
4769
|
+
src,
|
|
4770
|
+
alt,
|
|
4771
|
+
aspect = "video",
|
|
4772
|
+
seed,
|
|
4773
|
+
priority = false,
|
|
4774
|
+
sizes,
|
|
4775
|
+
fallback,
|
|
4776
|
+
mark,
|
|
4777
|
+
className
|
|
4778
|
+
}) {
|
|
4779
|
+
const preset = aspectClasses[aspect];
|
|
4780
|
+
const aspectStyle = preset === void 0 && typeof aspect === "string" ? { aspectRatio: aspect } : void 0;
|
|
4781
|
+
const fallbackNode = fallback ?? /* @__PURE__ */ jsx51(
|
|
4782
|
+
"div",
|
|
4783
|
+
{
|
|
4784
|
+
className: "flex h-full w-full items-center justify-center",
|
|
4785
|
+
style: seededGradient(seed ?? alt),
|
|
4786
|
+
"aria-hidden": "true",
|
|
4787
|
+
children: mark && /* @__PURE__ */ jsx51("span", { className: "text-muted-foreground [&_svg]:size-8", children: mark })
|
|
4788
|
+
}
|
|
4789
|
+
);
|
|
4790
|
+
return /* @__PURE__ */ jsx51(
|
|
4791
|
+
"div",
|
|
4792
|
+
{
|
|
4793
|
+
className: cn("relative overflow-hidden rounded-lg bg-muted", preset, className),
|
|
4794
|
+
style: aspectStyle,
|
|
4795
|
+
children: src ? /* @__PURE__ */ jsx51(
|
|
4796
|
+
Image2,
|
|
4797
|
+
{
|
|
4798
|
+
src,
|
|
4799
|
+
alt,
|
|
4800
|
+
priority,
|
|
4801
|
+
sizes,
|
|
4802
|
+
fallback: fallbackNode,
|
|
4803
|
+
className: "h-full w-full object-cover"
|
|
4804
|
+
}
|
|
4805
|
+
) : fallbackNode
|
|
4806
|
+
}
|
|
4807
|
+
);
|
|
4808
|
+
}
|
|
4809
|
+
CoverImage.displayName = "CoverImage";
|
|
4810
|
+
|
|
4730
4811
|
// src/components/text/Text.tsx
|
|
4731
4812
|
import * as React51 from "react";
|
|
4732
|
-
import { jsx as
|
|
4813
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
4733
4814
|
var sizeClasses4 = {
|
|
4734
4815
|
xs: "text-xs",
|
|
4735
4816
|
sm: "text-sm",
|
|
@@ -4746,7 +4827,7 @@ var weightClasses = {
|
|
|
4746
4827
|
var Text = React51.forwardRef(
|
|
4747
4828
|
({ inline, size = "base", weight, muted, className, ...props }, ref) => {
|
|
4748
4829
|
const Tag = inline ? "span" : "p";
|
|
4749
|
-
return /* @__PURE__ */
|
|
4830
|
+
return /* @__PURE__ */ jsx52(
|
|
4750
4831
|
Tag,
|
|
4751
4832
|
{
|
|
4752
4833
|
ref,
|
|
@@ -4766,7 +4847,7 @@ Text.displayName = "Text";
|
|
|
4766
4847
|
|
|
4767
4848
|
// src/components/heading/Heading.tsx
|
|
4768
4849
|
import * as React52 from "react";
|
|
4769
|
-
import { jsx as
|
|
4850
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
4770
4851
|
var levelClasses = {
|
|
4771
4852
|
1: "text-4xl",
|
|
4772
4853
|
2: "text-3xl",
|
|
@@ -4786,7 +4867,7 @@ var sizeClasses5 = {
|
|
|
4786
4867
|
var Heading = React52.forwardRef(
|
|
4787
4868
|
({ level, size, muted, className, ...props }, ref) => {
|
|
4788
4869
|
const Tag = `h${level}`;
|
|
4789
|
-
return /* @__PURE__ */
|
|
4870
|
+
return /* @__PURE__ */ jsx53(
|
|
4790
4871
|
Tag,
|
|
4791
4872
|
{
|
|
4792
4873
|
ref,
|
|
@@ -4805,17 +4886,19 @@ Heading.displayName = "Heading";
|
|
|
4805
4886
|
|
|
4806
4887
|
// src/components/empty-state/EmptyState.tsx
|
|
4807
4888
|
import * as React53 from "react";
|
|
4808
|
-
import { jsx as
|
|
4889
|
+
import { jsx as jsx54, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4809
4890
|
function isActionObject(value) {
|
|
4810
4891
|
return typeof value === "object" && value !== null && !React53.isValidElement(value) && "label" in value;
|
|
4811
4892
|
}
|
|
4812
|
-
function renderAction(action) {
|
|
4893
|
+
function renderAction(action, linkComponent, linkHrefProp = "href") {
|
|
4813
4894
|
if (!isActionObject(action)) return action;
|
|
4814
4895
|
const { label, onClick, href, variant } = action;
|
|
4815
4896
|
if (href) {
|
|
4816
|
-
|
|
4897
|
+
const LinkEl = linkComponent ?? "a";
|
|
4898
|
+
const destination = linkHrefProp === "to" ? { to: href } : { href };
|
|
4899
|
+
return /* @__PURE__ */ jsx54(Button, { variant, asChild: true, children: /* @__PURE__ */ jsx54(LinkEl, { ...destination, children: label }) });
|
|
4817
4900
|
}
|
|
4818
|
-
return /* @__PURE__ */
|
|
4901
|
+
return /* @__PURE__ */ jsx54(Button, { variant, onClick, children: label });
|
|
4819
4902
|
}
|
|
4820
4903
|
var EmptyState = React53.forwardRef(function EmptyState2({
|
|
4821
4904
|
icon,
|
|
@@ -4826,27 +4909,35 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
4826
4909
|
secondaryAction,
|
|
4827
4910
|
titleAs: Title = "p",
|
|
4828
4911
|
size = "md",
|
|
4912
|
+
align = "center",
|
|
4913
|
+
tone = "plain",
|
|
4914
|
+
linkComponent,
|
|
4915
|
+
linkHrefProp = "href",
|
|
4829
4916
|
className,
|
|
4830
4917
|
children,
|
|
4831
4918
|
...props
|
|
4832
4919
|
}, ref) {
|
|
4833
|
-
const primaryAction = renderAction(action) ?? actions;
|
|
4920
|
+
const primaryAction = renderAction(action, linkComponent, linkHrefProp) ?? actions;
|
|
4921
|
+
const start = align === "start";
|
|
4834
4922
|
return /* @__PURE__ */ jsxs35(
|
|
4835
4923
|
"div",
|
|
4836
4924
|
{
|
|
4837
4925
|
ref,
|
|
4838
4926
|
className: cn(
|
|
4839
|
-
"flex flex-col
|
|
4927
|
+
"flex flex-col rounded-lg text-center",
|
|
4928
|
+
start ? "items-start text-left" : "items-center text-center",
|
|
4929
|
+
"justify-center",
|
|
4930
|
+
tone === "panel" ? "border border-border bg-muted" : "border border-dashed border-border",
|
|
4840
4931
|
size === "md" ? "gap-3 px-6 py-12" : "gap-2 px-4 py-6",
|
|
4841
4932
|
className
|
|
4842
4933
|
),
|
|
4843
4934
|
...props,
|
|
4844
4935
|
children: [
|
|
4845
|
-
icon && /* @__PURE__ */
|
|
4846
|
-
/* @__PURE__ */
|
|
4847
|
-
description && /* @__PURE__ */
|
|
4936
|
+
icon && /* @__PURE__ */ jsx54("div", { className: "text-muted-foreground [&_svg]:size-8", children: icon }),
|
|
4937
|
+
/* @__PURE__ */ jsx54(Title, { className: cn("font-semibold", size === "md" ? "text-base" : "text-sm"), children: title }),
|
|
4938
|
+
description && /* @__PURE__ */ jsx54("p", { className: cn("max-w-sm text-sm text-muted-foreground", start && "max-w-md"), children: description }),
|
|
4848
4939
|
children,
|
|
4849
|
-
(primaryAction || secondaryAction) && /* @__PURE__ */ jsxs35("div", { className: "mt-1 flex flex-wrap items-center justify-
|
|
4940
|
+
(primaryAction || secondaryAction) && /* @__PURE__ */ jsxs35("div", { className: cn("mt-1 flex flex-wrap items-center gap-2", start ? "justify-start" : "justify-center"), children: [
|
|
4850
4941
|
primaryAction,
|
|
4851
4942
|
secondaryAction
|
|
4852
4943
|
] })
|
|
@@ -4857,7 +4948,7 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
4857
4948
|
|
|
4858
4949
|
// src/components/page-header/PageHeader.tsx
|
|
4859
4950
|
import * as React54 from "react";
|
|
4860
|
-
import { jsx as
|
|
4951
|
+
import { jsx as jsx55, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4861
4952
|
var sizeClasses6 = {
|
|
4862
4953
|
sm: "text-xl",
|
|
4863
4954
|
md: "text-2xl",
|
|
@@ -4867,16 +4958,16 @@ var sizeClasses6 = {
|
|
|
4867
4958
|
var PageHeader = React54.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
4868
4959
|
const supporting = description ?? subtitle;
|
|
4869
4960
|
return /* @__PURE__ */ jsxs36("div", { ref, className: cn("flex flex-col gap-2", align === "center" && "items-center text-center", className), ...props, children: [
|
|
4870
|
-
breadcrumbs && /* @__PURE__ */
|
|
4871
|
-
eyebrow && /* @__PURE__ */
|
|
4961
|
+
breadcrumbs && /* @__PURE__ */ jsx55("div", { className: "text-sm text-muted-foreground", children: breadcrumbs }),
|
|
4962
|
+
eyebrow && /* @__PURE__ */ jsx55("div", { className: cn("text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
4872
4963
|
/* @__PURE__ */ jsxs36("div", { className: cn("flex w-full flex-wrap items-start justify-between gap-3", align === "center" && "justify-center"), children: [
|
|
4873
4964
|
/* @__PURE__ */ jsxs36("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4874
|
-
/* @__PURE__ */
|
|
4875
|
-
supporting && /* @__PURE__ */
|
|
4965
|
+
/* @__PURE__ */ jsx55("h1", { className: cn("font-semibold tracking-tight", sizeClasses6[size], titleClassName), children: title }),
|
|
4966
|
+
supporting && /* @__PURE__ */ jsx55("p", { className: cn("mt-2 max-w-2xl text-base text-muted-foreground", descriptionClassName), children: supporting })
|
|
4876
4967
|
] }),
|
|
4877
|
-
actions && /* @__PURE__ */
|
|
4968
|
+
actions && /* @__PURE__ */ jsx55("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
4878
4969
|
] }),
|
|
4879
|
-
children && /* @__PURE__ */
|
|
4970
|
+
children && /* @__PURE__ */ jsx55("div", { className: "mt-2", children })
|
|
4880
4971
|
] });
|
|
4881
4972
|
});
|
|
4882
4973
|
|
|
@@ -4897,7 +4988,7 @@ function documentHead({
|
|
|
4897
4988
|
|
|
4898
4989
|
// src/components/section-heading/SectionHeading.tsx
|
|
4899
4990
|
import * as React55 from "react";
|
|
4900
|
-
import { jsx as
|
|
4991
|
+
import { jsx as jsx56, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4901
4992
|
var sizeClasses7 = {
|
|
4902
4993
|
sm: "text-lg",
|
|
4903
4994
|
md: "text-2xl",
|
|
@@ -4917,11 +5008,11 @@ var SectionHeading = React55.forwardRef(function SectionHeading2({ title, descri
|
|
|
4917
5008
|
...props,
|
|
4918
5009
|
children: [
|
|
4919
5010
|
/* @__PURE__ */ jsxs37("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4920
|
-
eyebrow && /* @__PURE__ */
|
|
4921
|
-
/* @__PURE__ */
|
|
4922
|
-
description && /* @__PURE__ */
|
|
5011
|
+
eyebrow && /* @__PURE__ */ jsx56("div", { className: cn("mb-1 text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
5012
|
+
/* @__PURE__ */ jsx56(Heading2, { className: cn("font-semibold tracking-tight", sizeClasses7[size], titleClassName), children: title }),
|
|
5013
|
+
description && /* @__PURE__ */ jsx56("p", { className: cn("mt-2 max-w-2xl text-muted-foreground", align === "center" ? "mx-auto" : "", descriptionClassName), children: description })
|
|
4923
5014
|
] }),
|
|
4924
|
-
actions && /* @__PURE__ */
|
|
5015
|
+
actions && /* @__PURE__ */ jsx56("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
4925
5016
|
]
|
|
4926
5017
|
}
|
|
4927
5018
|
);
|
|
@@ -4929,7 +5020,7 @@ var SectionHeading = React55.forwardRef(function SectionHeading2({ title, descri
|
|
|
4929
5020
|
|
|
4930
5021
|
// src/components/metric-card/MetricCard.tsx
|
|
4931
5022
|
import * as React56 from "react";
|
|
4932
|
-
import { jsx as
|
|
5023
|
+
import { jsx as jsx57, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4933
5024
|
var trendClasses = {
|
|
4934
5025
|
up: "text-success",
|
|
4935
5026
|
down: "text-destructive",
|
|
@@ -4955,40 +5046,40 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
4955
5046
|
...props,
|
|
4956
5047
|
children: [
|
|
4957
5048
|
/* @__PURE__ */ jsxs38("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4958
|
-
heading && /* @__PURE__ */
|
|
4959
|
-
icon && /* @__PURE__ */
|
|
5049
|
+
heading && /* @__PURE__ */ jsx57("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
5050
|
+
icon && /* @__PURE__ */ jsx57("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4960
5051
|
] }),
|
|
4961
|
-
/* @__PURE__ */
|
|
4962
|
-
/* @__PURE__ */
|
|
5052
|
+
/* @__PURE__ */ jsx57("span", { "aria-hidden": "true", className: "mt-3 block h-7 w-24 animate-pulse rounded-md bg-muted" }),
|
|
5053
|
+
/* @__PURE__ */ jsx57("span", { className: "sr-only", children: "Loading" })
|
|
4963
5054
|
]
|
|
4964
5055
|
}
|
|
4965
5056
|
);
|
|
4966
5057
|
}
|
|
4967
5058
|
return /* @__PURE__ */ jsxs38("div", { ref, className: cn("rounded-xl border border-border bg-card p-5", className), ...props, children: [
|
|
4968
5059
|
/* @__PURE__ */ jsxs38("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4969
|
-
heading && /* @__PURE__ */
|
|
4970
|
-
icon && /* @__PURE__ */
|
|
5060
|
+
heading && /* @__PURE__ */ jsx57("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
5061
|
+
icon && /* @__PURE__ */ jsx57("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4971
5062
|
] }),
|
|
4972
|
-
/* @__PURE__ */
|
|
5063
|
+
/* @__PURE__ */ jsx57("p", { className: cn("mt-2 text-2xl font-semibold tabular-nums", toneClasses[tone]), children: value }),
|
|
4973
5064
|
(delta || supporting) && /* @__PURE__ */ jsxs38("p", { className: "mt-1 flex items-center gap-2 text-sm", children: [
|
|
4974
5065
|
delta && /* @__PURE__ */ jsxs38("span", { className: cn("font-medium tabular-nums", trendClasses[trend]), children: [
|
|
4975
|
-
/* @__PURE__ */
|
|
5066
|
+
/* @__PURE__ */ jsx57("span", { "aria-hidden": "true", children: trendGlyph[trend] }),
|
|
4976
5067
|
" ",
|
|
4977
5068
|
delta
|
|
4978
5069
|
] }),
|
|
4979
|
-
supporting && /* @__PURE__ */
|
|
5070
|
+
supporting && /* @__PURE__ */ jsx57("span", { className: "text-muted-foreground", children: supporting })
|
|
4980
5071
|
] })
|
|
4981
5072
|
] });
|
|
4982
5073
|
});
|
|
4983
5074
|
|
|
4984
5075
|
// src/components/password-input/PasswordInput.tsx
|
|
4985
5076
|
import * as React57 from "react";
|
|
4986
|
-
import { jsx as
|
|
5077
|
+
import { jsx as jsx58, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
4987
5078
|
var PasswordInput = React57.forwardRef(function PasswordInput2({ className, showLabel = "Show password", hideLabel = "Hide password", ...props }, ref) {
|
|
4988
5079
|
const [visible, setVisible] = React57.useState(false);
|
|
4989
5080
|
return /* @__PURE__ */ jsxs39("div", { className: cn("relative flex items-center", className), children: [
|
|
4990
|
-
/* @__PURE__ */
|
|
4991
|
-
/* @__PURE__ */
|
|
5081
|
+
/* @__PURE__ */ jsx58(Input, { ref, type: visible ? "text" : "password", className: "pr-24", ...props }),
|
|
5082
|
+
/* @__PURE__ */ jsx58(
|
|
4992
5083
|
Button,
|
|
4993
5084
|
{
|
|
4994
5085
|
type: "button",
|
|
@@ -5006,7 +5097,7 @@ var PasswordInput = React57.forwardRef(function PasswordInput2({ className, show
|
|
|
5006
5097
|
|
|
5007
5098
|
// src/components/auth-layout/AuthLayout.tsx
|
|
5008
5099
|
import * as React58 from "react";
|
|
5009
|
-
import { jsx as
|
|
5100
|
+
import { jsx as jsx59, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
5010
5101
|
var sizeClasses8 = {
|
|
5011
5102
|
sm: "max-w-sm",
|
|
5012
5103
|
md: "max-w-md",
|
|
@@ -5040,7 +5131,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5040
5131
|
),
|
|
5041
5132
|
style: widthStyle,
|
|
5042
5133
|
children: [
|
|
5043
|
-
mark && /* @__PURE__ */
|
|
5134
|
+
mark && /* @__PURE__ */ jsx59("div", { className: "mb-6", children: mark }),
|
|
5044
5135
|
/* @__PURE__ */ jsxs40(
|
|
5045
5136
|
"div",
|
|
5046
5137
|
{
|
|
@@ -5050,18 +5141,18 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5050
5141
|
),
|
|
5051
5142
|
style: widthStyle,
|
|
5052
5143
|
children: [
|
|
5053
|
-
/* @__PURE__ */
|
|
5054
|
-
supporting && /* @__PURE__ */
|
|
5055
|
-
/* @__PURE__ */
|
|
5144
|
+
/* @__PURE__ */ jsx59("h1", { className: "text-xl font-semibold tracking-tight", children: title }),
|
|
5145
|
+
supporting && /* @__PURE__ */ jsx59("p", { className: "mt-1 text-sm text-muted-foreground", children: supporting }),
|
|
5146
|
+
/* @__PURE__ */ jsx59("div", { className: "mt-6", children })
|
|
5056
5147
|
]
|
|
5057
5148
|
}
|
|
5058
5149
|
),
|
|
5059
|
-
footer && /* @__PURE__ */
|
|
5150
|
+
footer && /* @__PURE__ */ jsx59("div", { className: "mt-6 text-center text-sm text-muted-foreground", children: footer })
|
|
5060
5151
|
]
|
|
5061
5152
|
}
|
|
5062
5153
|
);
|
|
5063
5154
|
if (split) {
|
|
5064
|
-
return /* @__PURE__ */
|
|
5155
|
+
return /* @__PURE__ */ jsx59(
|
|
5065
5156
|
"div",
|
|
5066
5157
|
{
|
|
5067
5158
|
ref,
|
|
@@ -5069,12 +5160,12 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5069
5160
|
...props,
|
|
5070
5161
|
children: /* @__PURE__ */ jsxs40("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: [
|
|
5071
5162
|
form,
|
|
5072
|
-
/* @__PURE__ */
|
|
5163
|
+
/* @__PURE__ */ jsx59("aside", { className: "w-full", children: aside })
|
|
5073
5164
|
] })
|
|
5074
5165
|
}
|
|
5075
5166
|
);
|
|
5076
5167
|
}
|
|
5077
|
-
return /* @__PURE__ */
|
|
5168
|
+
return /* @__PURE__ */ jsx59(
|
|
5078
5169
|
"div",
|
|
5079
5170
|
{
|
|
5080
5171
|
ref,
|
|
@@ -5090,7 +5181,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5090
5181
|
|
|
5091
5182
|
// src/components/filter-bar/FilterBar.tsx
|
|
5092
5183
|
import * as React59 from "react";
|
|
5093
|
-
import { jsx as
|
|
5184
|
+
import { jsx as jsx60, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
5094
5185
|
var FilterBar = React59.forwardRef(function FilterBar2({
|
|
5095
5186
|
searchValue,
|
|
5096
5187
|
onSearchChange,
|
|
@@ -5117,7 +5208,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5117
5208
|
),
|
|
5118
5209
|
...props,
|
|
5119
5210
|
children: [
|
|
5120
|
-
onSearchChange !== void 0 && /* @__PURE__ */
|
|
5211
|
+
onSearchChange !== void 0 && /* @__PURE__ */ jsx60(
|
|
5121
5212
|
Input,
|
|
5122
5213
|
{
|
|
5123
5214
|
type: "search",
|
|
@@ -5128,7 +5219,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5128
5219
|
className: "h-9 w-full min-w-40 flex-1 sm:w-auto"
|
|
5129
5220
|
}
|
|
5130
5221
|
),
|
|
5131
|
-
/* @__PURE__ */
|
|
5222
|
+
/* @__PURE__ */ jsx60("div", { className: "flex flex-wrap items-center gap-2", children }),
|
|
5132
5223
|
onOpenFilters && /* @__PURE__ */ jsxs41(Button, { type: "button", variant: "outline", size: "sm", onClick: onOpenFilters, children: [
|
|
5133
5224
|
filtersLabel,
|
|
5134
5225
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
@@ -5142,7 +5233,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5142
5233
|
" ",
|
|
5143
5234
|
resultsLabel
|
|
5144
5235
|
] }),
|
|
5145
|
-
trailing && /* @__PURE__ */
|
|
5236
|
+
trailing && /* @__PURE__ */ jsx60("div", { className: cn("flex items-center gap-2", resultsCount === void 0 && "ml-auto"), children: trailing })
|
|
5146
5237
|
]
|
|
5147
5238
|
}
|
|
5148
5239
|
);
|
|
@@ -5150,7 +5241,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5150
5241
|
|
|
5151
5242
|
// src/components/date-picker/DatePicker.tsx
|
|
5152
5243
|
import * as React60 from "react";
|
|
5153
|
-
import { jsx as
|
|
5244
|
+
import { jsx as jsx61, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
5154
5245
|
var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
5155
5246
|
const [internal, setInternal] = React60.useState(defaultValue ?? "");
|
|
5156
5247
|
const current = value ?? internal;
|
|
@@ -5159,7 +5250,7 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5159
5250
|
onValueChange?.(next);
|
|
5160
5251
|
};
|
|
5161
5252
|
return /* @__PURE__ */ jsxs42("div", { className: cn("relative flex items-center", className), children: [
|
|
5162
|
-
/* @__PURE__ */
|
|
5253
|
+
/* @__PURE__ */ jsx61(
|
|
5163
5254
|
Input,
|
|
5164
5255
|
{
|
|
5165
5256
|
ref,
|
|
@@ -5173,7 +5264,7 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5173
5264
|
...props
|
|
5174
5265
|
}
|
|
5175
5266
|
),
|
|
5176
|
-
clearable && current && /* @__PURE__ */
|
|
5267
|
+
clearable && current && /* @__PURE__ */ jsx61(
|
|
5177
5268
|
"button",
|
|
5178
5269
|
{
|
|
5179
5270
|
type: "button",
|
|
@@ -5259,7 +5350,7 @@ function computePosition({
|
|
|
5259
5350
|
}
|
|
5260
5351
|
|
|
5261
5352
|
// src/components/popover/Popover.tsx
|
|
5262
|
-
import { jsx as
|
|
5353
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
5263
5354
|
var PopoverContext = React61.createContext({
|
|
5264
5355
|
open: false,
|
|
5265
5356
|
setOpen: () => {
|
|
@@ -5294,7 +5385,7 @@ var Popover = React61.forwardRef(
|
|
|
5294
5385
|
},
|
|
5295
5386
|
[open, onOpenChange]
|
|
5296
5387
|
);
|
|
5297
|
-
return /* @__PURE__ */
|
|
5388
|
+
return /* @__PURE__ */ jsx62("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx62(
|
|
5298
5389
|
PopoverContext.Provider,
|
|
5299
5390
|
{
|
|
5300
5391
|
value: { open: current, setOpen, triggerId, contentId, wrapperRef, anchorRef, triggerRef },
|
|
@@ -5315,7 +5406,7 @@ var PopoverTrigger = React61.forwardRef(
|
|
|
5315
5406
|
},
|
|
5316
5407
|
[ref, triggerRef]
|
|
5317
5408
|
);
|
|
5318
|
-
return /* @__PURE__ */
|
|
5409
|
+
return /* @__PURE__ */ jsx62(
|
|
5319
5410
|
"button",
|
|
5320
5411
|
{
|
|
5321
5412
|
ref: setRefs,
|
|
@@ -5351,7 +5442,7 @@ var PopoverAnchor = React61.forwardRef(
|
|
|
5351
5442
|
},
|
|
5352
5443
|
[anchorRef, ref]
|
|
5353
5444
|
);
|
|
5354
|
-
return /* @__PURE__ */
|
|
5445
|
+
return /* @__PURE__ */ jsx62("span", { ref: setRefs, className: cn("inline-block", className), ...props, children });
|
|
5355
5446
|
}
|
|
5356
5447
|
);
|
|
5357
5448
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
@@ -5451,7 +5542,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5451
5542
|
}, [open, pos]);
|
|
5452
5543
|
if (!open || typeof document === "undefined") return null;
|
|
5453
5544
|
return createPortal7(
|
|
5454
|
-
/* @__PURE__ */
|
|
5545
|
+
/* @__PURE__ */ jsx62(
|
|
5455
5546
|
"div",
|
|
5456
5547
|
{
|
|
5457
5548
|
ref: (node) => {
|
|
@@ -5496,7 +5587,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5496
5587
|
PopoverContent.displayName = "PopoverContent";
|
|
5497
5588
|
|
|
5498
5589
|
// src/components/date-picker-popover/DatePickerPopover.tsx
|
|
5499
|
-
import { Fragment as Fragment12, jsx as
|
|
5590
|
+
import { Fragment as Fragment12, jsx as jsx63, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
5500
5591
|
var DatePickerPopover = React62.forwardRef(
|
|
5501
5592
|
({
|
|
5502
5593
|
value,
|
|
@@ -5531,7 +5622,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5531
5622
|
const label = value ? formatDateLabel(value, locale) : placeholder;
|
|
5532
5623
|
return /* @__PURE__ */ jsxs43(Fragment12, { children: [
|
|
5533
5624
|
/* @__PURE__ */ jsxs43(Popover, { open, onOpenChange: setOpen, children: [
|
|
5534
|
-
/* @__PURE__ */
|
|
5625
|
+
/* @__PURE__ */ jsx63(
|
|
5535
5626
|
PopoverTrigger,
|
|
5536
5627
|
{
|
|
5537
5628
|
ref: setTriggerRef,
|
|
@@ -5549,7 +5640,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5549
5640
|
children: label
|
|
5550
5641
|
}
|
|
5551
5642
|
),
|
|
5552
|
-
/* @__PURE__ */
|
|
5643
|
+
/* @__PURE__ */ jsx63(PopoverContent, { side, align, matchTriggerWidth: true, className: "w-auto p-3", children: /* @__PURE__ */ jsx63(
|
|
5553
5644
|
Calendar,
|
|
5554
5645
|
{
|
|
5555
5646
|
value,
|
|
@@ -5567,7 +5658,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5567
5658
|
}
|
|
5568
5659
|
) })
|
|
5569
5660
|
] }),
|
|
5570
|
-
name ? /* @__PURE__ */
|
|
5661
|
+
name ? /* @__PURE__ */ jsx63("input", { type: "hidden", name, value: value ?? "", required }) : null
|
|
5571
5662
|
] });
|
|
5572
5663
|
}
|
|
5573
5664
|
);
|
|
@@ -5575,7 +5666,7 @@ DatePickerPopover.displayName = "DatePickerPopover";
|
|
|
5575
5666
|
|
|
5576
5667
|
// src/components/time-picker/TimePicker.tsx
|
|
5577
5668
|
import * as React63 from "react";
|
|
5578
|
-
import { jsx as
|
|
5669
|
+
import { jsx as jsx64, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
5579
5670
|
var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
5580
5671
|
const [internal, setInternal] = React63.useState(defaultValue ?? "");
|
|
5581
5672
|
const current = value ?? internal;
|
|
@@ -5584,7 +5675,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5584
5675
|
onValueChange?.(next);
|
|
5585
5676
|
};
|
|
5586
5677
|
return /* @__PURE__ */ jsxs44("div", { className: cn("relative flex items-center", className), children: [
|
|
5587
|
-
/* @__PURE__ */
|
|
5678
|
+
/* @__PURE__ */ jsx64(
|
|
5588
5679
|
Input,
|
|
5589
5680
|
{
|
|
5590
5681
|
ref,
|
|
@@ -5598,7 +5689,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5598
5689
|
...props
|
|
5599
5690
|
}
|
|
5600
5691
|
),
|
|
5601
|
-
clearable && current && /* @__PURE__ */
|
|
5692
|
+
clearable && current && /* @__PURE__ */ jsx64(
|
|
5602
5693
|
"button",
|
|
5603
5694
|
{
|
|
5604
5695
|
type: "button",
|
|
@@ -5613,7 +5704,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5613
5704
|
|
|
5614
5705
|
// src/components/stepper/Stepper.tsx
|
|
5615
5706
|
import * as React64 from "react";
|
|
5616
|
-
import { Fragment as Fragment13, jsx as
|
|
5707
|
+
import { Fragment as Fragment13, jsx as jsx65, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
5617
5708
|
var Stepper = React64.forwardRef(function Stepper2({
|
|
5618
5709
|
steps,
|
|
5619
5710
|
current,
|
|
@@ -5637,7 +5728,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5637
5728
|
const verticalTitlePad = size === "sm" ? "pt-0.5" : "pt-1";
|
|
5638
5729
|
const connectorTop = variant === "dots" ? size === "sm" ? "mt-1" : "mt-[5px]" : size === "sm" ? "mt-3" : "mt-3.5";
|
|
5639
5730
|
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";
|
|
5640
|
-
return /* @__PURE__ */
|
|
5731
|
+
return /* @__PURE__ */ jsx65(
|
|
5641
5732
|
"ol",
|
|
5642
5733
|
{
|
|
5643
5734
|
ref,
|
|
@@ -5651,7 +5742,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5651
5742
|
const isLast = index === steps.length - 1;
|
|
5652
5743
|
const titleCentered = alignTitles === "center" && !step.description;
|
|
5653
5744
|
const below = !vertical && labelPlacement === "below";
|
|
5654
|
-
const marker = /* @__PURE__ */
|
|
5745
|
+
const marker = /* @__PURE__ */ jsx65(
|
|
5655
5746
|
"span",
|
|
5656
5747
|
{
|
|
5657
5748
|
"aria-hidden": "true",
|
|
@@ -5674,7 +5765,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5674
5765
|
}
|
|
5675
5766
|
);
|
|
5676
5767
|
const label = /* @__PURE__ */ jsxs45("span", { className: "min-w-0", children: [
|
|
5677
|
-
/* @__PURE__ */
|
|
5768
|
+
/* @__PURE__ */ jsx65(
|
|
5678
5769
|
"span",
|
|
5679
5770
|
{
|
|
5680
5771
|
className: cn(
|
|
@@ -5686,7 +5777,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5686
5777
|
children: step.label
|
|
5687
5778
|
}
|
|
5688
5779
|
),
|
|
5689
|
-
step.description && /* @__PURE__ */
|
|
5780
|
+
step.description && /* @__PURE__ */ jsx65(
|
|
5690
5781
|
"span",
|
|
5691
5782
|
{
|
|
5692
5783
|
className: cn(
|
|
@@ -5697,9 +5788,9 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5697
5788
|
children: step.description
|
|
5698
5789
|
}
|
|
5699
5790
|
),
|
|
5700
|
-
/* @__PURE__ */
|
|
5791
|
+
/* @__PURE__ */ jsx65("span", { className: "sr-only", children: state === "complete" ? labels?.completed ?? " (completed)" : state === "current" ? labels?.current ?? " (current step)" : labels?.upcoming ?? " (upcoming)" })
|
|
5701
5792
|
] });
|
|
5702
|
-
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */
|
|
5793
|
+
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ jsx65(
|
|
5703
5794
|
"button",
|
|
5704
5795
|
{
|
|
5705
5796
|
type: "button",
|
|
@@ -5708,15 +5799,15 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5708
5799
|
className: cn(rowClassName, focusClass),
|
|
5709
5800
|
children
|
|
5710
5801
|
}
|
|
5711
|
-
) : /* @__PURE__ */
|
|
5802
|
+
) : /* @__PURE__ */ jsx65("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
5712
5803
|
if (vertical) {
|
|
5713
|
-
return /* @__PURE__ */
|
|
5804
|
+
return /* @__PURE__ */ jsx65("li", { className: "flex", children: renderRow(
|
|
5714
5805
|
/* @__PURE__ */ jsxs45(Fragment13, { children: [
|
|
5715
5806
|
/* @__PURE__ */ jsxs45("div", { className: "flex flex-col items-center", children: [
|
|
5716
5807
|
marker,
|
|
5717
|
-
!isLast && /* @__PURE__ */
|
|
5808
|
+
!isLast && /* @__PURE__ */ jsx65("span", { "aria-hidden": "true", className: "my-1 w-px flex-1 rounded-full bg-border" })
|
|
5718
5809
|
] }),
|
|
5719
|
-
/* @__PURE__ */
|
|
5810
|
+
/* @__PURE__ */ jsx65("div", { className: cn("min-w-0 pb-6", titleCentered && verticalTitlePad), children: label })
|
|
5720
5811
|
] }),
|
|
5721
5812
|
"flex w-full items-stretch gap-3 text-left"
|
|
5722
5813
|
) }, step.label);
|
|
@@ -5730,7 +5821,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5730
5821
|
] }),
|
|
5731
5822
|
"flex min-w-0 flex-1 flex-col items-center gap-2 text-center"
|
|
5732
5823
|
),
|
|
5733
|
-
!isLast && /* @__PURE__ */
|
|
5824
|
+
!isLast && /* @__PURE__ */ jsx65(
|
|
5734
5825
|
"span",
|
|
5735
5826
|
{
|
|
5736
5827
|
"aria-hidden": "true",
|
|
@@ -5747,7 +5838,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5747
5838
|
] }),
|
|
5748
5839
|
cn("flex min-w-0 text-left", gapClass, titleCentered ? "items-center" : "items-start")
|
|
5749
5840
|
),
|
|
5750
|
-
!isLast && /* @__PURE__ */
|
|
5841
|
+
!isLast && /* @__PURE__ */ jsx65(
|
|
5751
5842
|
"span",
|
|
5752
5843
|
{
|
|
5753
5844
|
"aria-hidden": "true",
|
|
@@ -5762,7 +5853,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5762
5853
|
|
|
5763
5854
|
// src/components/file-upload/FileUpload.tsx
|
|
5764
5855
|
import * as React65 from "react";
|
|
5765
|
-
import { jsx as
|
|
5856
|
+
import { jsx as jsx66, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
5766
5857
|
function formatSize(bytes) {
|
|
5767
5858
|
if (bytes < 1024) return `${bytes} B`;
|
|
5768
5859
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -5833,7 +5924,7 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5833
5924
|
children: [
|
|
5834
5925
|
/* @__PURE__ */ jsxs46("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
5835
5926
|
label,
|
|
5836
|
-
/* @__PURE__ */
|
|
5927
|
+
/* @__PURE__ */ jsx66(
|
|
5837
5928
|
"input",
|
|
5838
5929
|
{
|
|
5839
5930
|
ref,
|
|
@@ -5851,15 +5942,15 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5851
5942
|
}
|
|
5852
5943
|
)
|
|
5853
5944
|
] }),
|
|
5854
|
-
/* @__PURE__ */
|
|
5945
|
+
/* @__PURE__ */ jsx66("p", { className: "mt-1 text-xs text-muted-foreground", children: hint ?? (accept ? `Accepted: ${accept}` : "Any file type") })
|
|
5855
5946
|
]
|
|
5856
5947
|
}
|
|
5857
5948
|
),
|
|
5858
|
-
current.length > 0 && /* @__PURE__ */
|
|
5949
|
+
current.length > 0 && /* @__PURE__ */ jsx66("ul", { "aria-label": selectedFilesLabel, className: "space-y-2", children: current.map((file) => /* @__PURE__ */ jsxs46("li", { className: "flex items-center justify-between gap-3 rounded-md border border-border px-3 py-2", children: [
|
|
5859
5950
|
/* @__PURE__ */ jsxs46("div", { className: "min-w-0", children: [
|
|
5860
|
-
/* @__PURE__ */
|
|
5861
|
-
/* @__PURE__ */
|
|
5862
|
-
progress?.[file.name] !== void 0 && /* @__PURE__ */
|
|
5951
|
+
/* @__PURE__ */ jsx66("p", { className: "truncate text-sm", children: file.name }),
|
|
5952
|
+
/* @__PURE__ */ jsx66("p", { className: "text-xs text-muted-foreground", children: formatSize(file.size) }),
|
|
5953
|
+
progress?.[file.name] !== void 0 && /* @__PURE__ */ jsx66(
|
|
5863
5954
|
"div",
|
|
5864
5955
|
{
|
|
5865
5956
|
role: "progressbar",
|
|
@@ -5868,11 +5959,11 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5868
5959
|
"aria-valuemax": 100,
|
|
5869
5960
|
"aria-label": uploadingLabel(file),
|
|
5870
5961
|
className: "mt-1 h-1.5 w-40 overflow-hidden rounded-full bg-muted",
|
|
5871
|
-
children: /* @__PURE__ */
|
|
5962
|
+
children: /* @__PURE__ */ jsx66("div", { className: "h-full bg-primary", style: { width: `${progress[file.name]}%` } })
|
|
5872
5963
|
}
|
|
5873
5964
|
)
|
|
5874
5965
|
] }),
|
|
5875
|
-
/* @__PURE__ */
|
|
5966
|
+
/* @__PURE__ */ jsx66(
|
|
5876
5967
|
"button",
|
|
5877
5968
|
{
|
|
5878
5969
|
type: "button",
|
|
@@ -5888,17 +5979,17 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5888
5979
|
|
|
5889
5980
|
// src/components/timeline/Timeline.tsx
|
|
5890
5981
|
import * as React66 from "react";
|
|
5891
|
-
import { jsx as
|
|
5982
|
+
import { jsx as jsx67, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
5892
5983
|
var Timeline = React66.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
5893
|
-
return /* @__PURE__ */
|
|
5894
|
-
index < items.length - 1 && /* @__PURE__ */
|
|
5984
|
+
return /* @__PURE__ */ jsx67("ol", { ref, className: cn("relative flex flex-col gap-6", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs47("li", { className: "relative flex gap-4", children: [
|
|
5985
|
+
index < items.length - 1 && /* @__PURE__ */ jsx67(
|
|
5895
5986
|
"span",
|
|
5896
5987
|
{
|
|
5897
5988
|
"aria-hidden": "true",
|
|
5898
5989
|
className: "absolute left-[5.5px] top-4 -bottom-7 w-px bg-border"
|
|
5899
5990
|
}
|
|
5900
5991
|
),
|
|
5901
|
-
/* @__PURE__ */
|
|
5992
|
+
/* @__PURE__ */ jsx67("div", { className: "relative z-10 flex flex-col items-center", children: /* @__PURE__ */ jsx67(
|
|
5902
5993
|
"span",
|
|
5903
5994
|
{
|
|
5904
5995
|
"aria-hidden": "true",
|
|
@@ -5909,21 +6000,21 @@ var Timeline = React66.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
5909
6000
|
}
|
|
5910
6001
|
) }),
|
|
5911
6002
|
/* @__PURE__ */ jsxs47("div", { className: "min-w-0 pb-1", children: [
|
|
5912
|
-
item.period && /* @__PURE__ */
|
|
5913
|
-
/* @__PURE__ */
|
|
5914
|
-
item.description && /* @__PURE__ */
|
|
5915
|
-
item.icon && /* @__PURE__ */
|
|
6003
|
+
item.period && /* @__PURE__ */ jsx67("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
|
|
6004
|
+
/* @__PURE__ */ jsx67("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
|
|
6005
|
+
item.description && /* @__PURE__ */ jsx67("p", { className: "mt-1 text-sm text-muted-foreground", children: item.description }),
|
|
6006
|
+
item.icon && /* @__PURE__ */ jsx67("div", { className: "mt-1 text-muted-foreground [&_svg]:size-4", children: item.icon })
|
|
5916
6007
|
] })
|
|
5917
6008
|
] }, `${item.title}-${index}`)) });
|
|
5918
6009
|
});
|
|
5919
6010
|
|
|
5920
6011
|
// src/components/block/Block.tsx
|
|
5921
6012
|
import * as React67 from "react";
|
|
5922
|
-
import { jsx as
|
|
6013
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
5923
6014
|
var Block = React67.forwardRef(
|
|
5924
6015
|
({ as = "div", inline, muted, className, ...props }, ref) => {
|
|
5925
6016
|
const Tag = inline ? "span" : as;
|
|
5926
|
-
return /* @__PURE__ */
|
|
6017
|
+
return /* @__PURE__ */ jsx68(
|
|
5927
6018
|
Tag,
|
|
5928
6019
|
{
|
|
5929
6020
|
ref,
|
|
@@ -5937,7 +6028,7 @@ Block.displayName = "Block";
|
|
|
5937
6028
|
|
|
5938
6029
|
// src/components/flex/Flex.tsx
|
|
5939
6030
|
import * as React68 from "react";
|
|
5940
|
-
import { jsx as
|
|
6031
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
5941
6032
|
var justifyClasses = {
|
|
5942
6033
|
start: "justify-start",
|
|
5943
6034
|
center: "justify-center",
|
|
@@ -5957,7 +6048,7 @@ var Flex = React68.forwardRef(
|
|
|
5957
6048
|
({ direction = "row", align, justify, wrap, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
5958
6049
|
const Tag = as;
|
|
5959
6050
|
const gapResolved = resolveGap(gap);
|
|
5960
|
-
return /* @__PURE__ */
|
|
6051
|
+
return /* @__PURE__ */ jsx69(
|
|
5961
6052
|
Tag,
|
|
5962
6053
|
{
|
|
5963
6054
|
ref,
|
|
@@ -5992,7 +6083,7 @@ var FlexItem = React68.forwardRef(
|
|
|
5992
6083
|
...shrink === false ? { flexShrink: 0 } : typeof shrink === "string" && shrink ? { flexShrink: Number(shrink) || shrink } : {},
|
|
5993
6084
|
...basis ? { flexBasis: basis } : {}
|
|
5994
6085
|
};
|
|
5995
|
-
return /* @__PURE__ */
|
|
6086
|
+
return /* @__PURE__ */ jsx69(
|
|
5996
6087
|
Tag,
|
|
5997
6088
|
{
|
|
5998
6089
|
ref,
|
|
@@ -6007,7 +6098,7 @@ FlexItem.displayName = "FlexItem";
|
|
|
6007
6098
|
|
|
6008
6099
|
// src/components/grid/Grid.tsx
|
|
6009
6100
|
import * as React69 from "react";
|
|
6010
|
-
import { jsx as
|
|
6101
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
6011
6102
|
var BASE_COLS = {
|
|
6012
6103
|
1: "grid-cols-1",
|
|
6013
6104
|
2: "grid-cols-2",
|
|
@@ -6076,7 +6167,7 @@ var Grid = React69.forwardRef(
|
|
|
6076
6167
|
({ cols, smCols, mdCols, lgCols, minCol, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6077
6168
|
const Tag = as;
|
|
6078
6169
|
const gapResolved = resolveGap(gap);
|
|
6079
|
-
return /* @__PURE__ */
|
|
6170
|
+
return /* @__PURE__ */ jsx70(
|
|
6080
6171
|
Tag,
|
|
6081
6172
|
{
|
|
6082
6173
|
ref,
|
|
@@ -6103,7 +6194,7 @@ Grid.displayName = "Grid";
|
|
|
6103
6194
|
var GridItem = React69.forwardRef(
|
|
6104
6195
|
({ span, smSpan, mdSpan, lgSpan, as = "div", className, ...props }, ref) => {
|
|
6105
6196
|
const Tag = as;
|
|
6106
|
-
return /* @__PURE__ */
|
|
6197
|
+
return /* @__PURE__ */ jsx70(
|
|
6107
6198
|
Tag,
|
|
6108
6199
|
{
|
|
6109
6200
|
ref,
|
|
@@ -6123,7 +6214,7 @@ GridItem.displayName = "GridItem";
|
|
|
6123
6214
|
|
|
6124
6215
|
// src/components/container/Container.tsx
|
|
6125
6216
|
import * as React70 from "react";
|
|
6126
|
-
import { jsx as
|
|
6217
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
6127
6218
|
var widthClasses = {
|
|
6128
6219
|
sm: "max-w-3xl",
|
|
6129
6220
|
md: "max-w-5xl",
|
|
@@ -6139,7 +6230,7 @@ var paddingClasses = {
|
|
|
6139
6230
|
};
|
|
6140
6231
|
var Container = React70.forwardRef(function Container2({ width = "lg", padding = "md", as = "div", className, ...props }, ref) {
|
|
6141
6232
|
const Tag = as;
|
|
6142
|
-
return /* @__PURE__ */
|
|
6233
|
+
return /* @__PURE__ */ jsx71(
|
|
6143
6234
|
Tag,
|
|
6144
6235
|
{
|
|
6145
6236
|
ref,
|
|
@@ -6151,7 +6242,7 @@ var Container = React70.forwardRef(function Container2({ width = "lg", padding =
|
|
|
6151
6242
|
|
|
6152
6243
|
// src/components/section/Section.tsx
|
|
6153
6244
|
import * as React71 from "react";
|
|
6154
|
-
import { jsx as
|
|
6245
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
6155
6246
|
var toneClasses2 = {
|
|
6156
6247
|
default: "bg-background text-foreground",
|
|
6157
6248
|
muted: "bg-muted/40 text-foreground",
|
|
@@ -6205,7 +6296,7 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6205
6296
|
}, ref) {
|
|
6206
6297
|
const Tag = as;
|
|
6207
6298
|
const toneStyle = tone === "inverse" ? inverseVars : tone === "brand" ? brandVars : void 0;
|
|
6208
|
-
return /* @__PURE__ */
|
|
6299
|
+
return /* @__PURE__ */ jsx72(
|
|
6209
6300
|
Tag,
|
|
6210
6301
|
{
|
|
6211
6302
|
ref,
|
|
@@ -6213,14 +6304,14 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6213
6304
|
className: cn("w-full", toneClasses2[tone], paddingClasses2[padding], className),
|
|
6214
6305
|
style: { ...toneStyle, ...style },
|
|
6215
6306
|
...props,
|
|
6216
|
-
children: container ? /* @__PURE__ */
|
|
6307
|
+
children: container ? /* @__PURE__ */ jsx72(Container, { width, className: containerClassName, children }) : children
|
|
6217
6308
|
}
|
|
6218
6309
|
);
|
|
6219
6310
|
});
|
|
6220
6311
|
|
|
6221
6312
|
// src/components/hero/Hero.tsx
|
|
6222
6313
|
import * as React72 from "react";
|
|
6223
|
-
import { jsx as
|
|
6314
|
+
import { jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
6224
6315
|
var titleSizes = {
|
|
6225
6316
|
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
6226
6317
|
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
@@ -6260,7 +6351,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6260
6351
|
overlay && "max-w-2xl"
|
|
6261
6352
|
),
|
|
6262
6353
|
children: [
|
|
6263
|
-
badge && /* @__PURE__ */
|
|
6354
|
+
badge && /* @__PURE__ */ jsx73(
|
|
6264
6355
|
"div",
|
|
6265
6356
|
{
|
|
6266
6357
|
className: cn(
|
|
@@ -6271,7 +6362,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6271
6362
|
children: badge
|
|
6272
6363
|
}
|
|
6273
6364
|
),
|
|
6274
|
-
eyebrow && /* @__PURE__ */
|
|
6365
|
+
eyebrow && /* @__PURE__ */ jsx73(
|
|
6275
6366
|
"p",
|
|
6276
6367
|
{
|
|
6277
6368
|
className: cn(
|
|
@@ -6282,7 +6373,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6282
6373
|
children: eyebrow
|
|
6283
6374
|
}
|
|
6284
6375
|
),
|
|
6285
|
-
/* @__PURE__ */
|
|
6376
|
+
/* @__PURE__ */ jsx73(
|
|
6286
6377
|
Heading2,
|
|
6287
6378
|
{
|
|
6288
6379
|
className: cn(
|
|
@@ -6294,7 +6385,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6294
6385
|
children: title
|
|
6295
6386
|
}
|
|
6296
6387
|
),
|
|
6297
|
-
description && /* @__PURE__ */
|
|
6388
|
+
description && /* @__PURE__ */ jsx73(
|
|
6298
6389
|
"p",
|
|
6299
6390
|
{
|
|
6300
6391
|
className: cn(
|
|
@@ -6306,7 +6397,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6306
6397
|
children: description
|
|
6307
6398
|
}
|
|
6308
6399
|
),
|
|
6309
|
-
actions && /* @__PURE__ */
|
|
6400
|
+
actions && /* @__PURE__ */ jsx73(
|
|
6310
6401
|
"div",
|
|
6311
6402
|
{
|
|
6312
6403
|
className: cn(
|
|
@@ -6330,7 +6421,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6330
6421
|
),
|
|
6331
6422
|
...props,
|
|
6332
6423
|
children: [
|
|
6333
|
-
media && /* @__PURE__ */
|
|
6424
|
+
media && /* @__PURE__ */ jsx73(
|
|
6334
6425
|
"div",
|
|
6335
6426
|
{
|
|
6336
6427
|
className: cn(
|
|
@@ -6340,8 +6431,8 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6340
6431
|
children: media
|
|
6341
6432
|
}
|
|
6342
6433
|
),
|
|
6343
|
-
/* @__PURE__ */
|
|
6344
|
-
/* @__PURE__ */
|
|
6434
|
+
/* @__PURE__ */ jsx73("div", { "aria-hidden": "true", className: "absolute inset-0 -z-10 bg-foreground/60" }),
|
|
6435
|
+
/* @__PURE__ */ jsx73("div", { className: "relative w-full px-4 sm:px-6 lg:px-10", children: copy })
|
|
6345
6436
|
]
|
|
6346
6437
|
}
|
|
6347
6438
|
);
|
|
@@ -6349,7 +6440,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6349
6440
|
if (layout === "centered") {
|
|
6350
6441
|
return /* @__PURE__ */ jsxs48(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
6351
6442
|
copy,
|
|
6352
|
-
media && /* @__PURE__ */
|
|
6443
|
+
media && /* @__PURE__ */ jsx73("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
6353
6444
|
] });
|
|
6354
6445
|
}
|
|
6355
6446
|
if (layout === "stacked") {
|
|
@@ -6361,7 +6452,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6361
6452
|
...props,
|
|
6362
6453
|
children: [
|
|
6363
6454
|
copy,
|
|
6364
|
-
media && /* @__PURE__ */
|
|
6455
|
+
media && /* @__PURE__ */ jsx73("div", { className: cn("min-w-0 w-full", mediaClassName), children: media })
|
|
6365
6456
|
]
|
|
6366
6457
|
}
|
|
6367
6458
|
);
|
|
@@ -6373,8 +6464,8 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6373
6464
|
className: cn("grid w-full items-center gap-10 lg:grid-cols-2 lg:gap-16 xl:gap-20", className),
|
|
6374
6465
|
...props,
|
|
6375
6466
|
children: [
|
|
6376
|
-
/* @__PURE__ */
|
|
6377
|
-
media && /* @__PURE__ */
|
|
6467
|
+
/* @__PURE__ */ jsx73("div", { className: cn(mediaPosition === "left" && "lg:order-2"), children: copy }),
|
|
6468
|
+
media && /* @__PURE__ */ jsx73("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1", mediaClassName), children: media })
|
|
6378
6469
|
]
|
|
6379
6470
|
}
|
|
6380
6471
|
);
|
|
@@ -6382,7 +6473,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6382
6473
|
|
|
6383
6474
|
// src/components/stat-band/StatBand.tsx
|
|
6384
6475
|
import * as React73 from "react";
|
|
6385
|
-
import { jsx as
|
|
6476
|
+
import { jsx as jsx74, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
6386
6477
|
var columnClasses = {
|
|
6387
6478
|
2: "sm:grid-cols-2",
|
|
6388
6479
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6393,15 +6484,32 @@ var valueClasses = {
|
|
|
6393
6484
|
md: "text-3xl",
|
|
6394
6485
|
lg: "text-4xl sm:text-5xl"
|
|
6395
6486
|
};
|
|
6396
|
-
var
|
|
6397
|
-
|
|
6487
|
+
var panelValueClasses = {
|
|
6488
|
+
sm: "text-lg",
|
|
6489
|
+
md: "text-xl sm:text-2xl",
|
|
6490
|
+
lg: "text-2xl sm:text-3xl"
|
|
6491
|
+
};
|
|
6492
|
+
var StatBand = React73.forwardRef(function StatBand2({
|
|
6493
|
+
items,
|
|
6494
|
+
columns = 3,
|
|
6495
|
+
align = "center",
|
|
6496
|
+
size = "md",
|
|
6497
|
+
divided = true,
|
|
6498
|
+
variant = "plain",
|
|
6499
|
+
valueClassName,
|
|
6500
|
+
className,
|
|
6501
|
+
...props
|
|
6502
|
+
}, ref) {
|
|
6503
|
+
const panel = variant === "panel";
|
|
6504
|
+
return /* @__PURE__ */ jsx74(
|
|
6398
6505
|
"dl",
|
|
6399
6506
|
{
|
|
6400
6507
|
ref,
|
|
6401
6508
|
className: cn(
|
|
6402
|
-
"grid w-full
|
|
6509
|
+
"grid w-full",
|
|
6510
|
+
panel ? "gap-0 rounded-lg border border-border bg-card" : "gap-8",
|
|
6403
6511
|
columnClasses[columns],
|
|
6404
|
-
divided && "sm:divide-x sm:divide-border",
|
|
6512
|
+
divided && (panel ? "divide-y divide-border sm:divide-x sm:divide-y-0" : "sm:divide-x sm:divide-border"),
|
|
6405
6513
|
className
|
|
6406
6514
|
),
|
|
6407
6515
|
...props,
|
|
@@ -6409,15 +6517,35 @@ var StatBand = React73.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
6409
6517
|
"div",
|
|
6410
6518
|
{
|
|
6411
6519
|
className: cn(
|
|
6412
|
-
"flex min-w-0 flex-col gap-1
|
|
6520
|
+
"flex min-w-0 flex-col gap-1",
|
|
6521
|
+
panel ? "px-4 py-3 sm:px-5 sm:py-4" : "sm:px-6 sm:first:pl-0 sm:last:pr-0",
|
|
6413
6522
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6414
6523
|
),
|
|
6415
6524
|
children: [
|
|
6416
|
-
/* @__PURE__ */ jsxs49(
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6525
|
+
/* @__PURE__ */ jsxs49(
|
|
6526
|
+
"dt",
|
|
6527
|
+
{
|
|
6528
|
+
className: cn(
|
|
6529
|
+
"order-2 text-muted-foreground",
|
|
6530
|
+
panel ? "text-xs font-medium uppercase tracking-wide" : "text-sm font-medium"
|
|
6531
|
+
),
|
|
6532
|
+
children: [
|
|
6533
|
+
item.label,
|
|
6534
|
+
item.hint && /* @__PURE__ */ jsx74("span", { className: cn("mt-1 block font-normal", panel ? "text-xs normal-case tracking-normal" : "text-xs"), children: item.hint })
|
|
6535
|
+
]
|
|
6536
|
+
}
|
|
6537
|
+
),
|
|
6538
|
+
/* @__PURE__ */ jsx74(
|
|
6539
|
+
"dd",
|
|
6540
|
+
{
|
|
6541
|
+
className: cn(
|
|
6542
|
+
"order-1 m-0 font-semibold tracking-tight tabular-nums",
|
|
6543
|
+
panel ? panelValueClasses[size] : valueClasses[size],
|
|
6544
|
+
valueClassName
|
|
6545
|
+
),
|
|
6546
|
+
children: item.value
|
|
6547
|
+
}
|
|
6548
|
+
)
|
|
6421
6549
|
]
|
|
6422
6550
|
},
|
|
6423
6551
|
item.label
|
|
@@ -6428,7 +6556,7 @@ var StatBand = React73.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
6428
6556
|
|
|
6429
6557
|
// src/components/cta-section/CTASection.tsx
|
|
6430
6558
|
import * as React74 from "react";
|
|
6431
|
-
import { jsx as
|
|
6559
|
+
import { jsx as jsx75, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
6432
6560
|
var sizePadding = {
|
|
6433
6561
|
sm: "md",
|
|
6434
6562
|
md: "lg",
|
|
@@ -6446,7 +6574,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6446
6574
|
className,
|
|
6447
6575
|
...props
|
|
6448
6576
|
}, ref) {
|
|
6449
|
-
return /* @__PURE__ */
|
|
6577
|
+
return /* @__PURE__ */ jsx75(
|
|
6450
6578
|
Section,
|
|
6451
6579
|
{
|
|
6452
6580
|
ref,
|
|
@@ -6463,10 +6591,10 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6463
6591
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6464
6592
|
),
|
|
6465
6593
|
children: [
|
|
6466
|
-
eyebrow && /* @__PURE__ */
|
|
6467
|
-
/* @__PURE__ */
|
|
6468
|
-
description && /* @__PURE__ */
|
|
6469
|
-
actions && /* @__PURE__ */
|
|
6594
|
+
eyebrow && /* @__PURE__ */ jsx75("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6595
|
+
/* @__PURE__ */ jsx75("h2", { className: "max-w-3xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl", children: title }),
|
|
6596
|
+
description && /* @__PURE__ */ jsx75("p", { className: cn("max-w-2xl text-base leading-relaxed text-muted-foreground sm:text-lg"), children: description }),
|
|
6597
|
+
actions && /* @__PURE__ */ jsx75("div", { className: cn("mt-2 flex flex-wrap items-center gap-3", align === "center" && "justify-center"), children: actions })
|
|
6470
6598
|
]
|
|
6471
6599
|
}
|
|
6472
6600
|
)
|
|
@@ -6476,9 +6604,9 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6476
6604
|
|
|
6477
6605
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
6478
6606
|
import * as React75 from "react";
|
|
6479
|
-
import { Fragment as Fragment14, jsx as
|
|
6607
|
+
import { Fragment as Fragment14, jsx as jsx76, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
6480
6608
|
function CheckMark() {
|
|
6481
|
-
return /* @__PURE__ */
|
|
6609
|
+
return /* @__PURE__ */ jsx76(
|
|
6482
6610
|
"svg",
|
|
6483
6611
|
{
|
|
6484
6612
|
"aria-hidden": "true",
|
|
@@ -6489,12 +6617,12 @@ function CheckMark() {
|
|
|
6489
6617
|
strokeLinecap: "round",
|
|
6490
6618
|
strokeLinejoin: "round",
|
|
6491
6619
|
className: "mx-auto h-5 w-5 text-success",
|
|
6492
|
-
children: /* @__PURE__ */
|
|
6620
|
+
children: /* @__PURE__ */ jsx76("path", { d: "m4 10.5 4 4 8-9" })
|
|
6493
6621
|
}
|
|
6494
6622
|
);
|
|
6495
6623
|
}
|
|
6496
6624
|
function DashMark() {
|
|
6497
|
-
return /* @__PURE__ */
|
|
6625
|
+
return /* @__PURE__ */ jsx76(
|
|
6498
6626
|
"svg",
|
|
6499
6627
|
{
|
|
6500
6628
|
"aria-hidden": "true",
|
|
@@ -6504,7 +6632,7 @@ function DashMark() {
|
|
|
6504
6632
|
strokeWidth: "2.2",
|
|
6505
6633
|
strokeLinecap: "round",
|
|
6506
6634
|
className: "mx-auto h-5 w-5 text-muted-foreground/60",
|
|
6507
|
-
children: /* @__PURE__ */
|
|
6635
|
+
children: /* @__PURE__ */ jsx76("path", { d: "M5 10h10" })
|
|
6508
6636
|
}
|
|
6509
6637
|
);
|
|
6510
6638
|
}
|
|
@@ -6520,11 +6648,11 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6520
6648
|
}, ref) {
|
|
6521
6649
|
const yes = valueLabels?.yes ?? "Included";
|
|
6522
6650
|
const no = valueLabels?.no ?? "Not included";
|
|
6523
|
-
return /* @__PURE__ */
|
|
6524
|
-
/* @__PURE__ */
|
|
6525
|
-
/* @__PURE__ */
|
|
6526
|
-
/* @__PURE__ */
|
|
6527
|
-
columns.map((column) => /* @__PURE__ */
|
|
6651
|
+
return /* @__PURE__ */ jsx76("div", { className: "w-full overflow-x-auto rounded-xl border border-border bg-card", children: /* @__PURE__ */ jsxs51("table", { ref, className: cn("w-full border-collapse text-sm", className), ...props, children: [
|
|
6652
|
+
/* @__PURE__ */ jsx76("caption", { className: "sr-only", children: caption }),
|
|
6653
|
+
/* @__PURE__ */ jsx76("thead", { children: /* @__PURE__ */ jsxs51("tr", { className: "border-b border-border", children: [
|
|
6654
|
+
/* @__PURE__ */ jsx76("th", { scope: "col", className: "min-w-48 px-5 py-4 text-left font-medium text-muted-foreground", children: featureLabel }),
|
|
6655
|
+
columns.map((column) => /* @__PURE__ */ jsx76(
|
|
6528
6656
|
"th",
|
|
6529
6657
|
{
|
|
6530
6658
|
scope: "col",
|
|
@@ -6537,21 +6665,21 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6537
6665
|
column.label
|
|
6538
6666
|
))
|
|
6539
6667
|
] }) }),
|
|
6540
|
-
/* @__PURE__ */
|
|
6668
|
+
/* @__PURE__ */ jsx76("tbody", { children: rows.map((row) => /* @__PURE__ */ jsxs51("tr", { className: "border-b border-border last:border-b-0", children: [
|
|
6541
6669
|
/* @__PURE__ */ jsxs51("th", { scope: "row", className: "px-5 py-4 text-left font-medium", children: [
|
|
6542
6670
|
row.feature,
|
|
6543
|
-
row.hint && /* @__PURE__ */
|
|
6671
|
+
row.hint && /* @__PURE__ */ jsx76("span", { className: "mt-1 block text-xs font-normal text-muted-foreground", children: row.hint })
|
|
6544
6672
|
] }),
|
|
6545
6673
|
columns.map((column, index) => {
|
|
6546
6674
|
const value = row.values[index];
|
|
6547
|
-
return /* @__PURE__ */
|
|
6675
|
+
return /* @__PURE__ */ jsx76(
|
|
6548
6676
|
"td",
|
|
6549
6677
|
{
|
|
6550
6678
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
6551
6679
|
children: typeof value === "boolean" ? /* @__PURE__ */ jsxs51(Fragment14, { children: [
|
|
6552
|
-
value ? /* @__PURE__ */
|
|
6553
|
-
/* @__PURE__ */
|
|
6554
|
-
] }) : /* @__PURE__ */
|
|
6680
|
+
value ? /* @__PURE__ */ jsx76(CheckMark, {}) : /* @__PURE__ */ jsx76(DashMark, {}),
|
|
6681
|
+
/* @__PURE__ */ jsx76("span", { className: "sr-only", children: value ? yes : no })
|
|
6682
|
+
] }) : /* @__PURE__ */ jsx76("span", { children: value ?? "" })
|
|
6555
6683
|
},
|
|
6556
6684
|
`${row.feature}-${column.label}`
|
|
6557
6685
|
);
|
|
@@ -6563,7 +6691,7 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6563
6691
|
|
|
6564
6692
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
6565
6693
|
import * as React76 from "react";
|
|
6566
|
-
import { Fragment as Fragment15, jsx as
|
|
6694
|
+
import { Fragment as Fragment15, jsx as jsx77, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
6567
6695
|
var columnClasses2 = {
|
|
6568
6696
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
6569
6697
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -6594,7 +6722,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6594
6722
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
6595
6723
|
);
|
|
6596
6724
|
return /* @__PURE__ */ jsxs52("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6597
|
-
caption && /* @__PURE__ */
|
|
6725
|
+
caption && /* @__PURE__ */ jsx77(
|
|
6598
6726
|
"p",
|
|
6599
6727
|
{
|
|
6600
6728
|
className: cn(
|
|
@@ -6604,12 +6732,12 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6604
6732
|
children: caption
|
|
6605
6733
|
}
|
|
6606
6734
|
),
|
|
6607
|
-
/* @__PURE__ */
|
|
6735
|
+
/* @__PURE__ */ jsx77("ul", { className: cn("grid items-center gap-x-8 gap-y-6", columnClasses2[columns], align === "center" && "justify-items-center"), children: items.map((item) => {
|
|
6608
6736
|
const content = /* @__PURE__ */ jsxs52(Fragment15, { children: [
|
|
6609
|
-
/* @__PURE__ */
|
|
6610
|
-
/* @__PURE__ */
|
|
6737
|
+
/* @__PURE__ */ jsx77("span", { className: logoClass, "aria-hidden": "true", children: item.logo }),
|
|
6738
|
+
/* @__PURE__ */ jsx77("span", { className: "sr-only", children: item.name })
|
|
6611
6739
|
] });
|
|
6612
|
-
return /* @__PURE__ */
|
|
6740
|
+
return /* @__PURE__ */ jsx77("li", { className: cn("min-w-0", align === "center" ? "justify-self-center" : "justify-self-start"), children: item.href ? /* @__PURE__ */ jsx77(
|
|
6613
6741
|
Link3,
|
|
6614
6742
|
{
|
|
6615
6743
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -6623,7 +6751,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6623
6751
|
|
|
6624
6752
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
6625
6753
|
import * as React77 from "react";
|
|
6626
|
-
import { Fragment as Fragment16, jsx as
|
|
6754
|
+
import { Fragment as Fragment16, jsx as jsx78, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
6627
6755
|
var columnClasses3 = {
|
|
6628
6756
|
2: "sm:grid-cols-2",
|
|
6629
6757
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6637,21 +6765,21 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6637
6765
|
align === "center" && "items-center text-center"
|
|
6638
6766
|
);
|
|
6639
6767
|
const content = (feature) => /* @__PURE__ */ jsxs53(Fragment16, { children: [
|
|
6640
|
-
feature.icon && /* @__PURE__ */
|
|
6641
|
-
/* @__PURE__ */
|
|
6642
|
-
feature.description && /* @__PURE__ */
|
|
6768
|
+
feature.icon && /* @__PURE__ */ jsx78("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 }),
|
|
6769
|
+
/* @__PURE__ */ jsx78("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
6770
|
+
feature.description && /* @__PURE__ */ jsx78("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
6643
6771
|
feature.href && feature.actionLabel && /* @__PURE__ */ jsxs53("span", { className: "mt-auto pt-2 text-sm font-medium text-primary-ink", children: [
|
|
6644
6772
|
feature.actionLabel,
|
|
6645
6773
|
" ",
|
|
6646
|
-
/* @__PURE__ */
|
|
6774
|
+
/* @__PURE__ */ jsx78("span", { "aria-hidden": "true", children: "\u2192" })
|
|
6647
6775
|
] })
|
|
6648
6776
|
] });
|
|
6649
|
-
return /* @__PURE__ */
|
|
6777
|
+
return /* @__PURE__ */ jsx78("ul", { ref, className: cn("grid gap-6", columnClasses3[columns], className), ...props, children: features.map((feature) => /* @__PURE__ */ jsx78("li", { className: "min-w-0", children: feature.href ? /* @__PURE__ */ jsx78(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__ */ jsx78("div", { className: cardClass, children: content(feature) }) }, feature.title)) });
|
|
6650
6778
|
});
|
|
6651
6779
|
|
|
6652
6780
|
// src/components/feature-row/FeatureRow.tsx
|
|
6653
6781
|
import * as React78 from "react";
|
|
6654
|
-
import { jsx as
|
|
6782
|
+
import { jsx as jsx79, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
6655
6783
|
var titleSizes2 = {
|
|
6656
6784
|
md: "text-3xl",
|
|
6657
6785
|
lg: "text-3xl sm:text-4xl"
|
|
@@ -6677,12 +6805,12 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6677
6805
|
...props,
|
|
6678
6806
|
children: [
|
|
6679
6807
|
/* @__PURE__ */ jsxs54("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
6680
|
-
eyebrow && /* @__PURE__ */
|
|
6681
|
-
/* @__PURE__ */
|
|
6682
|
-
description && /* @__PURE__ */
|
|
6683
|
-
actions && /* @__PURE__ */
|
|
6808
|
+
eyebrow && /* @__PURE__ */ jsx79("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6809
|
+
/* @__PURE__ */ jsx79(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
6810
|
+
description && /* @__PURE__ */ jsx79("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
6811
|
+
actions && /* @__PURE__ */ jsx79("div", { className: "mt-7 flex flex-wrap items-center gap-3", children: actions })
|
|
6684
6812
|
] }),
|
|
6685
|
-
/* @__PURE__ */
|
|
6813
|
+
/* @__PURE__ */ jsx79("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1"), children: media })
|
|
6686
6814
|
]
|
|
6687
6815
|
}
|
|
6688
6816
|
);
|
|
@@ -6690,7 +6818,7 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6690
6818
|
|
|
6691
6819
|
// src/components/testimonial/Testimonial.tsx
|
|
6692
6820
|
import * as React79 from "react";
|
|
6693
|
-
import { jsx as
|
|
6821
|
+
import { jsx as jsx80, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
6694
6822
|
var quoteSizes = {
|
|
6695
6823
|
sm: "text-base",
|
|
6696
6824
|
md: "text-lg",
|
|
@@ -6708,17 +6836,17 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6708
6836
|
),
|
|
6709
6837
|
...props,
|
|
6710
6838
|
children: [
|
|
6711
|
-
logo && /* @__PURE__ */
|
|
6712
|
-
/* @__PURE__ */
|
|
6839
|
+
logo && /* @__PURE__ */ jsx80("div", { className: "flex items-center", children: logo }),
|
|
6840
|
+
/* @__PURE__ */ jsx80("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */ jsxs55("p", { children: [
|
|
6713
6841
|
"\u201C",
|
|
6714
6842
|
quote,
|
|
6715
6843
|
"\u201D"
|
|
6716
6844
|
] }) }),
|
|
6717
6845
|
/* @__PURE__ */ jsxs55("figcaption", { className: "flex items-center gap-3", children: [
|
|
6718
|
-
avatar && /* @__PURE__ */
|
|
6846
|
+
avatar && /* @__PURE__ */ jsx80("div", { className: "shrink-0", children: avatar }),
|
|
6719
6847
|
/* @__PURE__ */ jsxs55("div", { className: "min-w-0", children: [
|
|
6720
|
-
/* @__PURE__ */
|
|
6721
|
-
(role || company) && /* @__PURE__ */
|
|
6848
|
+
/* @__PURE__ */ jsx80("p", { className: "text-sm font-semibold", children: name }),
|
|
6849
|
+
(role || company) && /* @__PURE__ */ jsx80("p", { className: "text-xs text-muted-foreground", children: [role, company].filter(Boolean).join(", ") })
|
|
6722
6850
|
] })
|
|
6723
6851
|
] })
|
|
6724
6852
|
]
|
|
@@ -6728,7 +6856,7 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6728
6856
|
|
|
6729
6857
|
// src/components/process-steps/ProcessSteps.tsx
|
|
6730
6858
|
import * as React80 from "react";
|
|
6731
|
-
import { jsx as
|
|
6859
|
+
import { jsx as jsx81, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
6732
6860
|
var columnClasses4 = {
|
|
6733
6861
|
2: "sm:grid-cols-2",
|
|
6734
6862
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6736,15 +6864,15 @@ var columnClasses4 = {
|
|
|
6736
6864
|
};
|
|
6737
6865
|
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", headingLevel = 3, className, ...props }, ref) {
|
|
6738
6866
|
const HeadingTag = { 2: "h2", 3: "h3", 4: "h4" }[headingLevel];
|
|
6739
|
-
return /* @__PURE__ */
|
|
6867
|
+
return /* @__PURE__ */ jsx81("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ jsxs56(
|
|
6740
6868
|
"li",
|
|
6741
6869
|
{
|
|
6742
6870
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
6743
6871
|
children: [
|
|
6744
|
-
/* @__PURE__ */
|
|
6872
|
+
/* @__PURE__ */ jsx81("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) }),
|
|
6745
6873
|
/* @__PURE__ */ jsxs56("div", { className: "min-w-0", children: [
|
|
6746
|
-
/* @__PURE__ */
|
|
6747
|
-
step.description && /* @__PURE__ */
|
|
6874
|
+
/* @__PURE__ */ jsx81(HeadingTag, { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
6875
|
+
step.description && /* @__PURE__ */ jsx81("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
6748
6876
|
] })
|
|
6749
6877
|
]
|
|
6750
6878
|
},
|
|
@@ -6754,7 +6882,7 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
6754
6882
|
|
|
6755
6883
|
// src/components/article-card/ArticleCard.tsx
|
|
6756
6884
|
import * as React81 from "react";
|
|
6757
|
-
import { jsx as
|
|
6885
|
+
import { jsx as jsx82, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
6758
6886
|
var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
6759
6887
|
title,
|
|
6760
6888
|
description,
|
|
@@ -6769,7 +6897,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6769
6897
|
}, ref) {
|
|
6770
6898
|
const Link3 = linkComponent ?? "a";
|
|
6771
6899
|
const compact = variant === "compact";
|
|
6772
|
-
return /* @__PURE__ */
|
|
6900
|
+
return /* @__PURE__ */ jsx82("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */ jsxs57(
|
|
6773
6901
|
Link3,
|
|
6774
6902
|
{
|
|
6775
6903
|
href,
|
|
@@ -6778,12 +6906,12 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6778
6906
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
6779
6907
|
),
|
|
6780
6908
|
children: [
|
|
6781
|
-
media && !compact && /* @__PURE__ */
|
|
6909
|
+
media && !compact && /* @__PURE__ */ jsx82("div", { className: "aspect-[16/10] w-full overflow-hidden bg-muted [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: media }),
|
|
6782
6910
|
/* @__PURE__ */ jsxs57("div", { className: cn("flex flex-1 flex-col gap-2", compact ? "p-4" : "p-5"), children: [
|
|
6783
|
-
eyebrow && /* @__PURE__ */
|
|
6784
|
-
/* @__PURE__ */
|
|
6785
|
-
description && /* @__PURE__ */
|
|
6786
|
-
meta && /* @__PURE__ */
|
|
6911
|
+
eyebrow && /* @__PURE__ */ jsx82("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6912
|
+
/* @__PURE__ */ jsx82("h3", { className: cn("font-semibold tracking-tight transition-colors group-hover:text-primary-ink", compact ? "text-base" : "text-lg"), children: title }),
|
|
6913
|
+
description && /* @__PURE__ */ jsx82("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6914
|
+
meta && /* @__PURE__ */ jsx82("div", { className: "mt-auto pt-2 text-xs text-muted-foreground", children: meta })
|
|
6787
6915
|
] })
|
|
6788
6916
|
]
|
|
6789
6917
|
}
|
|
@@ -6792,7 +6920,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6792
6920
|
|
|
6793
6921
|
// src/components/newsletter/Newsletter.tsx
|
|
6794
6922
|
import * as React82 from "react";
|
|
6795
|
-
import { jsx as
|
|
6923
|
+
import { jsx as jsx83, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
6796
6924
|
var Newsletter = React82.forwardRef(function Newsletter2({
|
|
6797
6925
|
title,
|
|
6798
6926
|
description,
|
|
@@ -6825,12 +6953,12 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6825
6953
|
}
|
|
6826
6954
|
};
|
|
6827
6955
|
return /* @__PURE__ */ jsxs58("div", { className: "w-full", children: [
|
|
6828
|
-
/* @__PURE__ */
|
|
6829
|
-
description && /* @__PURE__ */
|
|
6956
|
+
/* @__PURE__ */ jsx83(Heading2, { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
6957
|
+
description && /* @__PURE__ */ jsx83("p", { className: "mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6830
6958
|
/* @__PURE__ */ jsxs58("form", { ref, onSubmit: handleSubmit, className: cn("mt-5", className), ...props, children: [
|
|
6831
6959
|
/* @__PURE__ */ jsxs58("div", { className: cn("flex gap-2", layout === "inline" ? "flex-col sm:flex-row" : "flex-col"), children: [
|
|
6832
|
-
/* @__PURE__ */
|
|
6833
|
-
/* @__PURE__ */
|
|
6960
|
+
/* @__PURE__ */ jsx83("label", { htmlFor: id, className: "sr-only", children: label }),
|
|
6961
|
+
/* @__PURE__ */ jsx83(
|
|
6834
6962
|
Input,
|
|
6835
6963
|
{
|
|
6836
6964
|
id,
|
|
@@ -6845,12 +6973,12 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6845
6973
|
className: "sm:flex-1"
|
|
6846
6974
|
}
|
|
6847
6975
|
),
|
|
6848
|
-
/* @__PURE__ */
|
|
6976
|
+
/* @__PURE__ */ jsx83(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
6849
6977
|
] }),
|
|
6850
|
-
consent && /* @__PURE__ */
|
|
6978
|
+
consent && /* @__PURE__ */ jsx83("div", { className: "mt-3 text-xs leading-relaxed text-muted-foreground", children: consent }),
|
|
6851
6979
|
/* @__PURE__ */ jsxs58("div", { "aria-live": "polite", className: "mt-2 min-h-5 text-sm", children: [
|
|
6852
|
-
status === "success" && /* @__PURE__ */
|
|
6853
|
-
status === "error" && /* @__PURE__ */
|
|
6980
|
+
status === "success" && /* @__PURE__ */ jsx83("p", { className: "text-success", children: successMessage }),
|
|
6981
|
+
status === "error" && /* @__PURE__ */ jsx83("p", { role: "alert", className: "text-destructive", children: errorMessage })
|
|
6854
6982
|
] })
|
|
6855
6983
|
] })
|
|
6856
6984
|
] });
|
|
@@ -6858,25 +6986,25 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6858
6986
|
|
|
6859
6987
|
// src/components/contact-strip/ContactStrip.tsx
|
|
6860
6988
|
import * as React83 from "react";
|
|
6861
|
-
import { jsx as
|
|
6989
|
+
import { jsx as jsx84, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
6862
6990
|
var columnClasses5 = {
|
|
6863
6991
|
2: "sm:grid-cols-2",
|
|
6864
6992
|
3: "sm:grid-cols-3"
|
|
6865
6993
|
};
|
|
6866
6994
|
var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
6867
6995
|
const Link3 = linkComponent ?? "a";
|
|
6868
|
-
return /* @__PURE__ */
|
|
6869
|
-
item.icon && /* @__PURE__ */
|
|
6996
|
+
return /* @__PURE__ */ jsx84("ul", { ref, className: cn("grid gap-6", columnClasses5[columns], className), ...props, children: items.map((item) => /* @__PURE__ */ jsxs59("li", { className: cn("flex min-w-0 items-start gap-3", align === "center" && "justify-center text-center"), children: [
|
|
6997
|
+
item.icon && /* @__PURE__ */ jsx84("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 }),
|
|
6870
6998
|
/* @__PURE__ */ jsxs59("div", { className: "min-w-0", children: [
|
|
6871
|
-
/* @__PURE__ */
|
|
6872
|
-
item.href ? /* @__PURE__ */
|
|
6999
|
+
/* @__PURE__ */ jsx84("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
7000
|
+
item.href ? /* @__PURE__ */ jsx84(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__ */ jsx84("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
6873
7001
|
] })
|
|
6874
7002
|
] }, item.label)) });
|
|
6875
7003
|
});
|
|
6876
7004
|
|
|
6877
7005
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
6878
7006
|
import * as React84 from "react";
|
|
6879
|
-
import { jsx as
|
|
7007
|
+
import { jsx as jsx85, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
6880
7008
|
var toneClasses3 = {
|
|
6881
7009
|
muted: "bg-muted text-foreground",
|
|
6882
7010
|
brand: "bg-primary text-primary-foreground",
|
|
@@ -6902,7 +7030,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
6902
7030
|
setDismissed(true);
|
|
6903
7031
|
onDismiss?.();
|
|
6904
7032
|
};
|
|
6905
|
-
return /* @__PURE__ */
|
|
7033
|
+
return /* @__PURE__ */ jsx85(
|
|
6906
7034
|
"div",
|
|
6907
7035
|
{
|
|
6908
7036
|
ref,
|
|
@@ -6916,8 +7044,8 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
6916
7044
|
),
|
|
6917
7045
|
...props,
|
|
6918
7046
|
children: /* @__PURE__ */ jsxs60("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: [
|
|
6919
|
-
/* @__PURE__ */
|
|
6920
|
-
href && actionLabel && /* @__PURE__ */
|
|
7047
|
+
/* @__PURE__ */ jsx85("p", { className: "min-w-0 text-center", children: message }),
|
|
7048
|
+
href && actionLabel && /* @__PURE__ */ jsx85(
|
|
6921
7049
|
Link3,
|
|
6922
7050
|
{
|
|
6923
7051
|
href,
|
|
@@ -6925,14 +7053,14 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
6925
7053
|
children: actionLabel
|
|
6926
7054
|
}
|
|
6927
7055
|
),
|
|
6928
|
-
dismissible && /* @__PURE__ */
|
|
7056
|
+
dismissible && /* @__PURE__ */ jsx85(
|
|
6929
7057
|
"button",
|
|
6930
7058
|
{
|
|
6931
7059
|
type: "button",
|
|
6932
7060
|
onClick: dismiss2,
|
|
6933
7061
|
"aria-label": "Dismiss announcement",
|
|
6934
7062
|
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",
|
|
6935
|
-
children: /* @__PURE__ */
|
|
7063
|
+
children: /* @__PURE__ */ jsx85("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx85("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
6936
7064
|
}
|
|
6937
7065
|
)
|
|
6938
7066
|
] })
|
|
@@ -6943,7 +7071,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
6943
7071
|
|
|
6944
7072
|
// src/components/deal-card/DealCard.tsx
|
|
6945
7073
|
import * as React85 from "react";
|
|
6946
|
-
import { jsx as
|
|
7074
|
+
import { jsx as jsx86, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
6947
7075
|
var statusConfig = {
|
|
6948
7076
|
available: { label: "Available", variant: "success" },
|
|
6949
7077
|
"under-nda": { label: "Under NDA", variant: "info" },
|
|
@@ -6974,26 +7102,26 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
6974
7102
|
return /* @__PURE__ */ jsxs61(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
6975
7103
|
/* @__PURE__ */ jsxs61(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
6976
7104
|
/* @__PURE__ */ jsxs61("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6977
|
-
/* @__PURE__ */
|
|
6978
|
-
/* @__PURE__ */
|
|
7105
|
+
/* @__PURE__ */ jsx86("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: sector }),
|
|
7106
|
+
/* @__PURE__ */ jsx86(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
6979
7107
|
] }),
|
|
6980
|
-
/* @__PURE__ */
|
|
6981
|
-
location && /* @__PURE__ */
|
|
7108
|
+
/* @__PURE__ */ jsx86("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ jsx86(Link3, { href, className: "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
7109
|
+
location && /* @__PURE__ */ jsx86("p", { className: "text-xs text-muted-foreground", children: location })
|
|
6982
7110
|
] }),
|
|
6983
7111
|
/* @__PURE__ */ jsxs61(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
6984
|
-
description && /* @__PURE__ */
|
|
6985
|
-
/* @__PURE__ */
|
|
6986
|
-
/* @__PURE__ */
|
|
6987
|
-
/* @__PURE__ */
|
|
7112
|
+
description && /* @__PURE__ */ jsx86("p", { className: "line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7113
|
+
/* @__PURE__ */ jsx86("dl", { className: "mt-4 grid grid-cols-3 gap-3", children: metrics.map((metric) => /* @__PURE__ */ jsxs61("div", { className: "min-w-0", children: [
|
|
7114
|
+
/* @__PURE__ */ jsx86("dt", { className: "text-xs text-muted-foreground", children: metric.label }),
|
|
7115
|
+
/* @__PURE__ */ jsx86("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: metric.value })
|
|
6988
7116
|
] }, metric.label)) }),
|
|
6989
7117
|
(ndaAvailable || cimAvailable) && /* @__PURE__ */ jsxs61("div", { className: "mt-4 flex flex-wrap gap-1.5", children: [
|
|
6990
|
-
ndaAvailable && /* @__PURE__ */
|
|
6991
|
-
cimAvailable && /* @__PURE__ */
|
|
7118
|
+
ndaAvailable && /* @__PURE__ */ jsx86(Badge, { variant: "info", children: "NDA available" }),
|
|
7119
|
+
cimAvailable && /* @__PURE__ */ jsx86(Badge, { variant: "secondary", children: "CIM available" })
|
|
6992
7120
|
] })
|
|
6993
7121
|
] }),
|
|
6994
7122
|
/* @__PURE__ */ jsxs61(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
6995
|
-
onRequestAccess && /* @__PURE__ */
|
|
6996
|
-
onSave && /* @__PURE__ */
|
|
7123
|
+
onRequestAccess && /* @__PURE__ */ jsx86(Button, { type: "button", size: "sm", onClick: onRequestAccess, children: requestLabel }),
|
|
7124
|
+
onSave && /* @__PURE__ */ jsx86(
|
|
6997
7125
|
Button,
|
|
6998
7126
|
{
|
|
6999
7127
|
type: "button",
|
|
@@ -7011,7 +7139,7 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7011
7139
|
|
|
7012
7140
|
// src/components/entity-card/EntityCard.tsx
|
|
7013
7141
|
import * as React86 from "react";
|
|
7014
|
-
import { jsx as
|
|
7142
|
+
import { jsx as jsx87, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
7015
7143
|
function initials(name) {
|
|
7016
7144
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
7017
7145
|
}
|
|
@@ -7035,9 +7163,9 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7035
7163
|
const nameHref = cardHref ?? href;
|
|
7036
7164
|
return /* @__PURE__ */ jsxs62(Card, { ref, className: cn("flex h-full flex-col", stretched && "relative isolate", className), ...props, children: [
|
|
7037
7165
|
/* @__PURE__ */ jsxs62(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
7038
|
-
/* @__PURE__ */
|
|
7166
|
+
/* @__PURE__ */ jsx87("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ jsx87(Avatar, { children: /* @__PURE__ */ jsx87(AvatarFallback, { children: initials(name) }) }) }),
|
|
7039
7167
|
/* @__PURE__ */ jsxs62("div", { className: "min-w-0 flex-1", children: [
|
|
7040
|
-
/* @__PURE__ */
|
|
7168
|
+
/* @__PURE__ */ jsx87("h3", { className: "truncate text-base font-semibold tracking-tight", children: nameHref ? /* @__PURE__ */ jsx87(
|
|
7041
7169
|
Link3,
|
|
7042
7170
|
{
|
|
7043
7171
|
href: nameHref,
|
|
@@ -7048,20 +7176,20 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7048
7176
|
children: name
|
|
7049
7177
|
}
|
|
7050
7178
|
) : name }),
|
|
7051
|
-
/* @__PURE__ */
|
|
7052
|
-
location && /* @__PURE__ */
|
|
7179
|
+
/* @__PURE__ */ jsx87("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
7180
|
+
location && /* @__PURE__ */ jsx87("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
7053
7181
|
] })
|
|
7054
7182
|
] }),
|
|
7055
7183
|
/* @__PURE__ */ jsxs62(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7056
|
-
description && /* @__PURE__ */
|
|
7057
|
-
tags && tags.length > 0 && /* @__PURE__ */
|
|
7058
|
-
stats && stats.length > 0 && /* @__PURE__ */
|
|
7059
|
-
/* @__PURE__ */
|
|
7060
|
-
/* @__PURE__ */
|
|
7184
|
+
description && /* @__PURE__ */ jsx87("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7185
|
+
tags && tags.length > 0 && /* @__PURE__ */ jsx87("div", { className: "mt-3 flex flex-wrap gap-1.5", children: tags.map((tag) => /* @__PURE__ */ jsx87(Badge, { variant: "secondary", children: tag }, tag)) }),
|
|
7186
|
+
stats && stats.length > 0 && /* @__PURE__ */ jsx87("dl", { className: "mt-4 grid grid-cols-2 gap-3", children: stats.map((stat) => /* @__PURE__ */ jsxs62("div", { className: "min-w-0", children: [
|
|
7187
|
+
/* @__PURE__ */ jsx87("dt", { className: "text-xs text-muted-foreground", children: stat.label }),
|
|
7188
|
+
/* @__PURE__ */ jsx87("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
|
|
7061
7189
|
] }, stat.label)) })
|
|
7062
7190
|
] }),
|
|
7063
7191
|
(href && !stretched || actions) && /* @__PURE__ */ jsxs62(CardFooter, { className: cn("flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", stretched && "relative z-10"), children: [
|
|
7064
|
-
href && !stretched && /* @__PURE__ */
|
|
7192
|
+
href && !stretched && /* @__PURE__ */ jsx87(
|
|
7065
7193
|
Link3,
|
|
7066
7194
|
{
|
|
7067
7195
|
href,
|
|
@@ -7069,7 +7197,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7069
7197
|
children: "View profile"
|
|
7070
7198
|
}
|
|
7071
7199
|
),
|
|
7072
|
-
actions && /* @__PURE__ */
|
|
7200
|
+
actions && /* @__PURE__ */ jsx87("div", { className: "ml-auto flex items-center gap-2", children: actions })
|
|
7073
7201
|
] })
|
|
7074
7202
|
] });
|
|
7075
7203
|
});
|
|
@@ -7077,7 +7205,7 @@ var ProfileCard = EntityCard;
|
|
|
7077
7205
|
|
|
7078
7206
|
// src/components/tombstone-card/TombstoneCard.tsx
|
|
7079
7207
|
import * as React87 from "react";
|
|
7080
|
-
import { jsx as
|
|
7208
|
+
import { jsx as jsx88, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
7081
7209
|
var statusConfig2 = {
|
|
7082
7210
|
archived: { label: "Archived", variant: "secondary" },
|
|
7083
7211
|
unavailable: { label: "Unavailable", variant: "warning" },
|
|
@@ -7096,7 +7224,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7096
7224
|
}, ref) {
|
|
7097
7225
|
const Link3 = linkComponent ?? "a";
|
|
7098
7226
|
const statusInfo = statusConfig2[status];
|
|
7099
|
-
return /* @__PURE__ */
|
|
7227
|
+
return /* @__PURE__ */ jsx88(
|
|
7100
7228
|
Card,
|
|
7101
7229
|
{
|
|
7102
7230
|
ref,
|
|
@@ -7104,12 +7232,12 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7104
7232
|
...props,
|
|
7105
7233
|
children: /* @__PURE__ */ jsxs63(CardContent, { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
7106
7234
|
/* @__PURE__ */ jsxs63("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7107
|
-
logo && /* @__PURE__ */
|
|
7108
|
-
/* @__PURE__ */
|
|
7235
|
+
logo && /* @__PURE__ */ jsx88("div", { className: "min-w-0 opacity-70", children: logo }),
|
|
7236
|
+
/* @__PURE__ */ jsx88(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7109
7237
|
] }),
|
|
7110
|
-
/* @__PURE__ */
|
|
7111
|
-
reason && /* @__PURE__ */
|
|
7112
|
-
href && /* @__PURE__ */
|
|
7238
|
+
/* @__PURE__ */ jsx88("h3", { className: "text-base font-semibold tracking-tight text-foreground/80", children: title }),
|
|
7239
|
+
reason && /* @__PURE__ */ jsx88("p", { className: "text-sm leading-relaxed text-muted-foreground", children: reason }),
|
|
7240
|
+
href && /* @__PURE__ */ jsx88(
|
|
7113
7241
|
Link3,
|
|
7114
7242
|
{
|
|
7115
7243
|
href,
|
|
@@ -7124,7 +7252,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7124
7252
|
|
|
7125
7253
|
// src/components/document-card/DocumentCard.tsx
|
|
7126
7254
|
import * as React88 from "react";
|
|
7127
|
-
import { jsx as
|
|
7255
|
+
import { jsx as jsx89, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
7128
7256
|
var statusConfig3 = {
|
|
7129
7257
|
available: { label: "Available", variant: "success" },
|
|
7130
7258
|
restricted: { label: "Restricted", variant: "warning" },
|
|
@@ -7144,14 +7272,14 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7144
7272
|
}, ref) {
|
|
7145
7273
|
const statusInfo = statusConfig3[status];
|
|
7146
7274
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7147
|
-
return /* @__PURE__ */
|
|
7148
|
-
/* @__PURE__ */
|
|
7275
|
+
return /* @__PURE__ */ jsx89(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */ jsxs64(CardContent, { className: "flex items-center gap-3 p-4", children: [
|
|
7276
|
+
/* @__PURE__ */ jsx89("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__ */ jsx89("span", { className: "text-[10px] font-bold uppercase tracking-wide", children: fileType }) }),
|
|
7149
7277
|
/* @__PURE__ */ jsxs64("div", { className: "min-w-0 flex-1", children: [
|
|
7150
|
-
/* @__PURE__ */
|
|
7151
|
-
meta && /* @__PURE__ */
|
|
7278
|
+
/* @__PURE__ */ jsx89("p", { className: "truncate text-sm font-medium", children: name }),
|
|
7279
|
+
meta && /* @__PURE__ */ jsx89("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
7152
7280
|
] }),
|
|
7153
|
-
/* @__PURE__ */
|
|
7154
|
-
onDownload && /* @__PURE__ */
|
|
7281
|
+
/* @__PURE__ */ jsx89(Badge, { variant: statusInfo.variant, children: statusInfo.label }),
|
|
7282
|
+
onDownload && /* @__PURE__ */ jsx89(
|
|
7155
7283
|
Button,
|
|
7156
7284
|
{
|
|
7157
7285
|
type: "button",
|
|
@@ -7168,7 +7296,7 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7168
7296
|
|
|
7169
7297
|
// src/components/load-more/LoadMore.tsx
|
|
7170
7298
|
import * as React89 from "react";
|
|
7171
|
-
import { jsx as
|
|
7299
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
7172
7300
|
var LoadMore = React89.forwardRef(function LoadMore2({
|
|
7173
7301
|
hasMore,
|
|
7174
7302
|
onLoadMore,
|
|
@@ -7179,12 +7307,12 @@ var LoadMore = React89.forwardRef(function LoadMore2({
|
|
|
7179
7307
|
className,
|
|
7180
7308
|
...props
|
|
7181
7309
|
}, ref) {
|
|
7182
|
-
return /* @__PURE__ */
|
|
7310
|
+
return /* @__PURE__ */ jsx90("div", { ref, "aria-live": "polite", className: cn("flex w-full justify-center py-4", className), ...props, children: hasMore ? /* @__PURE__ */ jsx90(Button, { type: "button", variant: "outline", onClick: onLoadMore, loading, children: loading ? loadingLabel : loadLabel }) : /* @__PURE__ */ jsx90("p", { role: "status", className: "text-sm text-muted-foreground", children: endLabel }) });
|
|
7183
7311
|
});
|
|
7184
7312
|
|
|
7185
7313
|
// src/components/segmented-control/SegmentedControl.tsx
|
|
7186
7314
|
import * as React90 from "react";
|
|
7187
|
-
import { jsx as
|
|
7315
|
+
import { Fragment as Fragment17, jsx as jsx91, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
7188
7316
|
var sizeClasses10 = {
|
|
7189
7317
|
sm: "h-8 px-2.5 text-xs",
|
|
7190
7318
|
md: "h-9 px-3 text-sm",
|
|
@@ -7199,6 +7327,8 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7199
7327
|
multiple = false,
|
|
7200
7328
|
size = "md",
|
|
7201
7329
|
fullWidth = false,
|
|
7330
|
+
linkComponent,
|
|
7331
|
+
linkHrefProp = "href",
|
|
7202
7332
|
className,
|
|
7203
7333
|
"aria-label": ariaLabel = "Segmented control",
|
|
7204
7334
|
...props
|
|
@@ -7209,6 +7339,9 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7209
7339
|
);
|
|
7210
7340
|
const current = isControlled ? value : internal;
|
|
7211
7341
|
const selected = multiple ? Array.isArray(current) ? current : [] : typeof current === "string" ? current : "";
|
|
7342
|
+
const linkMode = options.some((option) => option.href !== void 0);
|
|
7343
|
+
const LinkEl = linkComponent ?? "a";
|
|
7344
|
+
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
7212
7345
|
const refs = React90.useRef([]);
|
|
7213
7346
|
const commit = (next) => {
|
|
7214
7347
|
if (!isControlled) setInternal(next);
|
|
@@ -7259,11 +7392,11 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7259
7392
|
moveFocus("last");
|
|
7260
7393
|
}
|
|
7261
7394
|
};
|
|
7262
|
-
return /* @__PURE__ */
|
|
7395
|
+
return /* @__PURE__ */ jsx91(
|
|
7263
7396
|
"div",
|
|
7264
7397
|
{
|
|
7265
7398
|
ref,
|
|
7266
|
-
role: multiple ? "group" : "radiogroup",
|
|
7399
|
+
role: multiple || linkMode ? "group" : "radiogroup",
|
|
7267
7400
|
"aria-label": ariaLabel,
|
|
7268
7401
|
className: cn(
|
|
7269
7402
|
"inline-flex items-center gap-1 rounded-lg border border-border bg-muted p-1",
|
|
@@ -7275,32 +7408,58 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7275
7408
|
const active = multiple ? Array.isArray(selected) && selected.includes(option.value) : selected === option.value;
|
|
7276
7409
|
const firstEnabled = options.findIndex((entry) => !entry.disabled);
|
|
7277
7410
|
const focusable = multiple || active || !selected && index === firstEnabled;
|
|
7278
|
-
|
|
7411
|
+
const segmentClass = cn(
|
|
7412
|
+
"inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors",
|
|
7413
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7414
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
7415
|
+
sizeClasses10[size],
|
|
7416
|
+
fullWidth && "flex-1",
|
|
7417
|
+
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
7418
|
+
);
|
|
7419
|
+
const segmentContent = /* @__PURE__ */ jsxs65(Fragment17, { children: [
|
|
7420
|
+
option.icon && /* @__PURE__ */ jsx91("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
7421
|
+
/* @__PURE__ */ jsx91("span", { className: "truncate", children: option.label })
|
|
7422
|
+
] });
|
|
7423
|
+
if (option.href !== void 0) {
|
|
7424
|
+
if (option.disabled || active) {
|
|
7425
|
+
return /* @__PURE__ */ jsx91(
|
|
7426
|
+
"span",
|
|
7427
|
+
{
|
|
7428
|
+
"aria-current": active ? "page" : void 0,
|
|
7429
|
+
"aria-disabled": option.disabled || void 0,
|
|
7430
|
+
className: cn(segmentClass, option.disabled && "opacity-50"),
|
|
7431
|
+
children: segmentContent
|
|
7432
|
+
},
|
|
7433
|
+
option.value
|
|
7434
|
+
);
|
|
7435
|
+
}
|
|
7436
|
+
return /* @__PURE__ */ jsx91(
|
|
7437
|
+
LinkEl,
|
|
7438
|
+
{
|
|
7439
|
+
...destination(option.href),
|
|
7440
|
+
className: segmentClass,
|
|
7441
|
+
children: segmentContent
|
|
7442
|
+
},
|
|
7443
|
+
option.value
|
|
7444
|
+
);
|
|
7445
|
+
}
|
|
7446
|
+
return /* @__PURE__ */ jsx91(
|
|
7279
7447
|
"button",
|
|
7280
7448
|
{
|
|
7281
7449
|
ref: (node) => {
|
|
7282
7450
|
refs.current[index] = node;
|
|
7283
7451
|
},
|
|
7284
7452
|
type: "button",
|
|
7285
|
-
role: multiple ? void 0 : "radio",
|
|
7286
|
-
"aria-checked": multiple ? void 0 : active,
|
|
7453
|
+
role: multiple || linkMode ? void 0 : "radio",
|
|
7454
|
+
"aria-checked": multiple || linkMode ? void 0 : active,
|
|
7287
7455
|
"aria-pressed": multiple ? active : void 0,
|
|
7456
|
+
"aria-current": linkMode && active ? "page" : void 0,
|
|
7288
7457
|
disabled: option.disabled,
|
|
7289
7458
|
tabIndex: focusable ? 0 : -1,
|
|
7290
7459
|
onClick: () => select(option),
|
|
7291
7460
|
onKeyDown,
|
|
7292
|
-
className:
|
|
7293
|
-
|
|
7294
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7295
|
-
"disabled:pointer-events-none disabled:opacity-50",
|
|
7296
|
-
sizeClasses10[size],
|
|
7297
|
-
fullWidth && "flex-1",
|
|
7298
|
-
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
7299
|
-
),
|
|
7300
|
-
children: [
|
|
7301
|
-
option.icon && /* @__PURE__ */ jsx90("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
7302
|
-
/* @__PURE__ */ jsx90("span", { className: "truncate", children: option.label })
|
|
7303
|
-
]
|
|
7461
|
+
className: segmentClass,
|
|
7462
|
+
children: segmentContent
|
|
7304
7463
|
},
|
|
7305
7464
|
option.value
|
|
7306
7465
|
);
|
|
@@ -7312,7 +7471,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7312
7471
|
|
|
7313
7472
|
// src/components/range-slider/RangeSlider.tsx
|
|
7314
7473
|
import * as React91 from "react";
|
|
7315
|
-
import { jsx as
|
|
7474
|
+
import { jsx as jsx92, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
7316
7475
|
var rangeInputClass = cn(
|
|
7317
7476
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
7318
7477
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
@@ -7354,19 +7513,19 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7354
7513
|
const highPercent = (high - min) / span * 100;
|
|
7355
7514
|
return /* @__PURE__ */ jsxs66("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
7356
7515
|
showValues && /* @__PURE__ */ jsxs66("div", { className: "mb-2 flex items-center justify-between text-sm font-medium tabular-nums", children: [
|
|
7357
|
-
/* @__PURE__ */
|
|
7358
|
-
/* @__PURE__ */
|
|
7516
|
+
/* @__PURE__ */ jsx92("span", { children: formatValue(low) }),
|
|
7517
|
+
/* @__PURE__ */ jsx92("span", { children: formatValue(high) })
|
|
7359
7518
|
] }),
|
|
7360
7519
|
/* @__PURE__ */ jsxs66("div", { className: "relative h-6 w-full", children: [
|
|
7361
|
-
/* @__PURE__ */
|
|
7362
|
-
/* @__PURE__ */
|
|
7520
|
+
/* @__PURE__ */ jsx92("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-border" }),
|
|
7521
|
+
/* @__PURE__ */ jsx92(
|
|
7363
7522
|
"div",
|
|
7364
7523
|
{
|
|
7365
7524
|
className: "absolute top-1/2 h-1 -translate-y-1/2 rounded-full bg-primary",
|
|
7366
7525
|
style: { left: `${lowPercent}%`, right: `${100 - highPercent}%` }
|
|
7367
7526
|
}
|
|
7368
7527
|
),
|
|
7369
|
-
/* @__PURE__ */
|
|
7528
|
+
/* @__PURE__ */ jsx92(
|
|
7370
7529
|
"input",
|
|
7371
7530
|
{
|
|
7372
7531
|
type: "range",
|
|
@@ -7381,7 +7540,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7381
7540
|
className: cn(rangeInputClass, "z-10")
|
|
7382
7541
|
}
|
|
7383
7542
|
),
|
|
7384
|
-
/* @__PURE__ */
|
|
7543
|
+
/* @__PURE__ */ jsx92(
|
|
7385
7544
|
"input",
|
|
7386
7545
|
{
|
|
7387
7546
|
type: "range",
|
|
@@ -7402,7 +7561,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7402
7561
|
|
|
7403
7562
|
// src/components/filter-chips/FilterChips.tsx
|
|
7404
7563
|
import * as React92 from "react";
|
|
7405
|
-
import { jsx as
|
|
7564
|
+
import { jsx as jsx93, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
7406
7565
|
var CHIP_SIZES = {
|
|
7407
7566
|
sm: {
|
|
7408
7567
|
chip: "gap-1 py-0.5 pl-2.5 pr-0.5 text-xs",
|
|
@@ -7434,7 +7593,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7434
7593
|
...props
|
|
7435
7594
|
}, ref) {
|
|
7436
7595
|
if (filters.length === 0) {
|
|
7437
|
-
return emptyLabel ? /* @__PURE__ */
|
|
7596
|
+
return emptyLabel ? /* @__PURE__ */ jsx93("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7438
7597
|
}
|
|
7439
7598
|
const scale = CHIP_SIZES[size];
|
|
7440
7599
|
return /* @__PURE__ */ jsxs67(
|
|
@@ -7460,9 +7619,9 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7460
7619
|
":"
|
|
7461
7620
|
] }),
|
|
7462
7621
|
" ",
|
|
7463
|
-
/* @__PURE__ */
|
|
7622
|
+
/* @__PURE__ */ jsx93("span", { className: "font-medium", children: filter.value ?? "Any" })
|
|
7464
7623
|
] }),
|
|
7465
|
-
filter.onRemove && /* @__PURE__ */
|
|
7624
|
+
filter.onRemove && /* @__PURE__ */ jsx93(
|
|
7466
7625
|
"button",
|
|
7467
7626
|
{
|
|
7468
7627
|
type: "button",
|
|
@@ -7472,14 +7631,14 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7472
7631
|
"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",
|
|
7473
7632
|
scale.remove
|
|
7474
7633
|
),
|
|
7475
|
-
children: /* @__PURE__ */
|
|
7634
|
+
children: /* @__PURE__ */ jsx93("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: scale.icon, fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx93("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7476
7635
|
}
|
|
7477
7636
|
)
|
|
7478
7637
|
]
|
|
7479
7638
|
},
|
|
7480
7639
|
filter.key
|
|
7481
7640
|
)),
|
|
7482
|
-
onClearAll && /* @__PURE__ */
|
|
7641
|
+
onClearAll && /* @__PURE__ */ jsx93(
|
|
7483
7642
|
"button",
|
|
7484
7643
|
{
|
|
7485
7644
|
type: "button",
|
|
@@ -7498,7 +7657,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7498
7657
|
|
|
7499
7658
|
// src/components/multi-select/MultiSelect.tsx
|
|
7500
7659
|
import * as React93 from "react";
|
|
7501
|
-
import { jsx as
|
|
7660
|
+
import { jsx as jsx94, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
7502
7661
|
var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
7503
7662
|
options,
|
|
7504
7663
|
value,
|
|
@@ -7544,15 +7703,15 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7544
7703
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
7545
7704
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
7546
7705
|
return /* @__PURE__ */ jsxs68("div", { ref, className: cn("flex flex-col gap-2", className), ...props, children: [
|
|
7547
|
-
label && /* @__PURE__ */
|
|
7706
|
+
label && /* @__PURE__ */ jsx94("span", { id: labelId, className: "text-sm font-medium", children: label }),
|
|
7548
7707
|
visibleChips.length > 0 && /* @__PURE__ */ jsxs68("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
7549
7708
|
visibleChips.map((option) => /* @__PURE__ */ jsxs68(
|
|
7550
7709
|
"span",
|
|
7551
7710
|
{
|
|
7552
7711
|
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",
|
|
7553
7712
|
children: [
|
|
7554
|
-
/* @__PURE__ */
|
|
7555
|
-
/* @__PURE__ */
|
|
7713
|
+
/* @__PURE__ */ jsx94("span", { className: "truncate", children: option.label }),
|
|
7714
|
+
/* @__PURE__ */ jsx94(
|
|
7556
7715
|
"button",
|
|
7557
7716
|
{
|
|
7558
7717
|
type: "button",
|
|
@@ -7560,7 +7719,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7560
7719
|
disabled,
|
|
7561
7720
|
"aria-label": `Remove ${option.label}`,
|
|
7562
7721
|
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",
|
|
7563
|
-
children: /* @__PURE__ */
|
|
7722
|
+
children: /* @__PURE__ */ jsx94("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx94("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
7564
7723
|
}
|
|
7565
7724
|
)
|
|
7566
7725
|
]
|
|
@@ -7575,11 +7734,11 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7575
7734
|
] }),
|
|
7576
7735
|
/* @__PURE__ */ jsxs68(Popover, { open, onOpenChange: setOpen, children: [
|
|
7577
7736
|
/* @__PURE__ */ jsxs68(PopoverTrigger, { "aria-labelledby": label ? labelId : void 0, disabled, className: "w-full justify-between", children: [
|
|
7578
|
-
/* @__PURE__ */
|
|
7579
|
-
/* @__PURE__ */
|
|
7737
|
+
/* @__PURE__ */ jsx94("span", { children: selected.length > 0 ? `${selected.length} selected` : triggerLabel }),
|
|
7738
|
+
/* @__PURE__ */ jsx94("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2304" })
|
|
7580
7739
|
] }),
|
|
7581
7740
|
/* @__PURE__ */ jsxs68(PopoverContent, { className: "w-80 p-0", children: [
|
|
7582
|
-
/* @__PURE__ */
|
|
7741
|
+
/* @__PURE__ */ jsx94("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ jsx94(
|
|
7583
7742
|
Input,
|
|
7584
7743
|
{
|
|
7585
7744
|
type: "search",
|
|
@@ -7590,8 +7749,8 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7590
7749
|
autoFocus: true
|
|
7591
7750
|
}
|
|
7592
7751
|
) }),
|
|
7593
|
-
/* @__PURE__ */
|
|
7594
|
-
heading && /* @__PURE__ */
|
|
7752
|
+
/* @__PURE__ */ jsx94("div", { className: "max-h-64 overflow-y-auto p-1", children: groups.length === 0 ? /* @__PURE__ */ jsx94("p", { className: "px-3 py-3 text-sm text-muted-foreground", children: emptyText }) : groups.map(({ option, heading }) => /* @__PURE__ */ jsxs68(React93.Fragment, { children: [
|
|
7753
|
+
heading && /* @__PURE__ */ jsx94("p", { className: "px-3 pb-1 pt-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: heading }),
|
|
7595
7754
|
/* @__PURE__ */ jsxs68(
|
|
7596
7755
|
"label",
|
|
7597
7756
|
{
|
|
@@ -7600,7 +7759,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7600
7759
|
option.disabled && "cursor-not-allowed opacity-50"
|
|
7601
7760
|
),
|
|
7602
7761
|
children: [
|
|
7603
|
-
/* @__PURE__ */
|
|
7762
|
+
/* @__PURE__ */ jsx94(
|
|
7604
7763
|
Checkbox,
|
|
7605
7764
|
{
|
|
7606
7765
|
checked: selected.includes(option.value),
|
|
@@ -7610,15 +7769,15 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7610
7769
|
}
|
|
7611
7770
|
),
|
|
7612
7771
|
/* @__PURE__ */ jsxs68("span", { className: "min-w-0", children: [
|
|
7613
|
-
/* @__PURE__ */
|
|
7614
|
-
option.description && /* @__PURE__ */
|
|
7772
|
+
/* @__PURE__ */ jsx94("span", { className: "block", children: option.label }),
|
|
7773
|
+
option.description && /* @__PURE__ */ jsx94("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: option.description })
|
|
7615
7774
|
] })
|
|
7616
7775
|
]
|
|
7617
7776
|
}
|
|
7618
7777
|
)
|
|
7619
7778
|
] }, option.value)) }),
|
|
7620
7779
|
/* @__PURE__ */ jsxs68("div", { className: "flex items-center justify-between gap-2 border-t border-border p-2", children: [
|
|
7621
|
-
/* @__PURE__ */
|
|
7780
|
+
/* @__PURE__ */ jsx94(
|
|
7622
7781
|
Button,
|
|
7623
7782
|
{
|
|
7624
7783
|
type: "button",
|
|
@@ -7628,7 +7787,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7628
7787
|
children: "Select all"
|
|
7629
7788
|
}
|
|
7630
7789
|
),
|
|
7631
|
-
/* @__PURE__ */
|
|
7790
|
+
/* @__PURE__ */ jsx94(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => commit([]), children: "Clear" })
|
|
7632
7791
|
] })
|
|
7633
7792
|
] })
|
|
7634
7793
|
] })
|
|
@@ -7637,7 +7796,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7637
7796
|
|
|
7638
7797
|
// src/components/filter-panel/FilterPanel.tsx
|
|
7639
7798
|
import * as React94 from "react";
|
|
7640
|
-
import { jsx as
|
|
7799
|
+
import { jsx as jsx95, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
7641
7800
|
var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
7642
7801
|
sections,
|
|
7643
7802
|
title = "Filters",
|
|
@@ -7669,14 +7828,14 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7669
7828
|
};
|
|
7670
7829
|
return /* @__PURE__ */ jsxs69(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
7671
7830
|
(title || description) && /* @__PURE__ */ jsxs69("div", { className: "border-b border-border px-4 py-3", children: [
|
|
7672
|
-
title && /* @__PURE__ */
|
|
7673
|
-
description && /* @__PURE__ */
|
|
7831
|
+
title && /* @__PURE__ */ jsx95("h2", { className: "text-sm font-semibold", children: title }),
|
|
7832
|
+
description && /* @__PURE__ */ jsx95("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
7674
7833
|
] }),
|
|
7675
|
-
/* @__PURE__ */
|
|
7834
|
+
/* @__PURE__ */ jsx95("div", { className: "divide-y divide-border", children: sections.map((section, index) => {
|
|
7676
7835
|
const expanded = isOpen(index);
|
|
7677
7836
|
const sectionId = `filter-section-${index}`;
|
|
7678
7837
|
return /* @__PURE__ */ jsxs69("div", { className: "px-4 py-3", children: [
|
|
7679
|
-
/* @__PURE__ */
|
|
7838
|
+
/* @__PURE__ */ jsx95("h3", { children: /* @__PURE__ */ jsxs69(
|
|
7680
7839
|
"button",
|
|
7681
7840
|
{
|
|
7682
7841
|
type: "button",
|
|
@@ -7691,26 +7850,26 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7691
7850
|
children: [
|
|
7692
7851
|
/* @__PURE__ */ jsxs69("span", { children: [
|
|
7693
7852
|
section.title,
|
|
7694
|
-
section.description && /* @__PURE__ */
|
|
7853
|
+
section.description && /* @__PURE__ */ jsx95("span", { className: "mt-0.5 block text-xs font-normal text-muted-foreground", children: section.description })
|
|
7695
7854
|
] }),
|
|
7696
|
-
collapsible && /* @__PURE__ */
|
|
7855
|
+
collapsible && /* @__PURE__ */ jsx95("span", { "aria-hidden": "true", className: cn("text-muted-foreground transition-transform", expanded && "rotate-180"), children: "\u2304" })
|
|
7697
7856
|
]
|
|
7698
7857
|
}
|
|
7699
7858
|
) }),
|
|
7700
|
-
expanded && /* @__PURE__ */
|
|
7859
|
+
expanded && /* @__PURE__ */ jsx95("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
7701
7860
|
] }, index);
|
|
7702
7861
|
}) }),
|
|
7703
7862
|
(onReset || onApply || actions) && /* @__PURE__ */ jsxs69("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
7704
7863
|
actions,
|
|
7705
|
-
onReset && /* @__PURE__ */
|
|
7706
|
-
onApply && /* @__PURE__ */
|
|
7864
|
+
onReset && /* @__PURE__ */ jsx95(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, className: "ml-auto", children: resetLabel }),
|
|
7865
|
+
onApply && /* @__PURE__ */ jsx95(Button, { type: "button", size: "sm", onClick: onApply, children: applyLabel })
|
|
7707
7866
|
] })
|
|
7708
7867
|
] });
|
|
7709
7868
|
});
|
|
7710
7869
|
|
|
7711
7870
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
7712
7871
|
import * as React95 from "react";
|
|
7713
|
-
import { jsx as
|
|
7872
|
+
import { jsx as jsx96, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
7714
7873
|
var DEFAULT_PRESETS = [
|
|
7715
7874
|
{ label: "7 days", days: 7 },
|
|
7716
7875
|
{ label: "30 days", days: 30 },
|
|
@@ -7763,7 +7922,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7763
7922
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
7764
7923
|
};
|
|
7765
7924
|
return /* @__PURE__ */ jsxs70("div", { ref, className: cn("flex flex-col gap-3", className), ...props, children: [
|
|
7766
|
-
showPresets && presets.length > 0 && /* @__PURE__ */
|
|
7925
|
+
showPresets && presets.length > 0 && /* @__PURE__ */ jsx96("div", { className: "flex flex-wrap gap-2", children: presets.map((preset) => /* @__PURE__ */ jsx96(
|
|
7767
7926
|
Button,
|
|
7768
7927
|
{
|
|
7769
7928
|
type: "button",
|
|
@@ -7777,8 +7936,8 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7777
7936
|
)) }),
|
|
7778
7937
|
/* @__PURE__ */ jsxs70("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
7779
7938
|
/* @__PURE__ */ jsxs70("div", { children: [
|
|
7780
|
-
/* @__PURE__ */
|
|
7781
|
-
/* @__PURE__ */
|
|
7939
|
+
/* @__PURE__ */ jsx96("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
7940
|
+
/* @__PURE__ */ jsx96(
|
|
7782
7941
|
DatePicker,
|
|
7783
7942
|
{
|
|
7784
7943
|
id: startId,
|
|
@@ -7791,8 +7950,8 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7791
7950
|
)
|
|
7792
7951
|
] }),
|
|
7793
7952
|
/* @__PURE__ */ jsxs70("div", { children: [
|
|
7794
|
-
/* @__PURE__ */
|
|
7795
|
-
/* @__PURE__ */
|
|
7953
|
+
/* @__PURE__ */ jsx96("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
7954
|
+
/* @__PURE__ */ jsx96(
|
|
7796
7955
|
DatePicker,
|
|
7797
7956
|
{
|
|
7798
7957
|
id: endId,
|
|
@@ -7811,7 +7970,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7811
7970
|
|
|
7812
7971
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
7813
7972
|
import * as React96 from "react";
|
|
7814
|
-
import { jsx as
|
|
7973
|
+
import { jsx as jsx97, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
7815
7974
|
var AppliedFilters = React96.forwardRef(
|
|
7816
7975
|
function AppliedFilters2({
|
|
7817
7976
|
filters,
|
|
@@ -7825,7 +7984,7 @@ var AppliedFilters = React96.forwardRef(
|
|
|
7825
7984
|
}, ref) {
|
|
7826
7985
|
const summary = label ?? `${filters.length} active`;
|
|
7827
7986
|
if (filters.length === 0) {
|
|
7828
|
-
return emptyLabel ? /* @__PURE__ */
|
|
7987
|
+
return emptyLabel ? /* @__PURE__ */ jsx97("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7829
7988
|
}
|
|
7830
7989
|
return /* @__PURE__ */ jsxs71(
|
|
7831
7990
|
"div",
|
|
@@ -7835,9 +7994,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
7835
7994
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
7836
7995
|
...props,
|
|
7837
7996
|
children: [
|
|
7838
|
-
/* @__PURE__ */
|
|
7839
|
-
/* @__PURE__ */
|
|
7840
|
-
onEdit && /* @__PURE__ */
|
|
7997
|
+
/* @__PURE__ */ jsx97("span", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: summary }),
|
|
7998
|
+
/* @__PURE__ */ jsx97(FilterChips, { filters, onClearAll }),
|
|
7999
|
+
onEdit && /* @__PURE__ */ jsx97(Button, { type: "button", variant: "ghost", size: "sm", onClick: onEdit, children: editLabel })
|
|
7841
8000
|
]
|
|
7842
8001
|
}
|
|
7843
8002
|
);
|
|
@@ -7848,7 +8007,7 @@ var AppliedFilters = React96.forwardRef(
|
|
|
7848
8007
|
import * as React97 from "react";
|
|
7849
8008
|
import { createPortal as createPortal8 } from "react-dom";
|
|
7850
8009
|
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
7851
|
-
import { jsx as
|
|
8010
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
7852
8011
|
var MenuContext = React97.createContext({
|
|
7853
8012
|
open: false,
|
|
7854
8013
|
setOpen: () => {
|
|
@@ -7880,7 +8039,7 @@ var Menu = React97.forwardRef(
|
|
|
7880
8039
|
},
|
|
7881
8040
|
[open, onOpenChange]
|
|
7882
8041
|
);
|
|
7883
|
-
return /* @__PURE__ */
|
|
8042
|
+
return /* @__PURE__ */ jsx98("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx98(
|
|
7884
8043
|
MenuContext.Provider,
|
|
7885
8044
|
{
|
|
7886
8045
|
value: { open: current, setOpen, activeIndex, setActiveIndex, wrapperRef },
|
|
@@ -7893,7 +8052,7 @@ Menu.displayName = "Menu";
|
|
|
7893
8052
|
var MenuTrigger = React97.forwardRef(
|
|
7894
8053
|
({ className, children, ...props }, ref) => {
|
|
7895
8054
|
const { open, setOpen } = React97.useContext(MenuContext);
|
|
7896
|
-
return /* @__PURE__ */
|
|
8055
|
+
return /* @__PURE__ */ jsx98(
|
|
7897
8056
|
"button",
|
|
7898
8057
|
{
|
|
7899
8058
|
ref,
|
|
@@ -7995,7 +8154,7 @@ var MenuContent = React97.forwardRef(
|
|
|
7995
8154
|
};
|
|
7996
8155
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
7997
8156
|
return createPortal8(
|
|
7998
|
-
/* @__PURE__ */
|
|
8157
|
+
/* @__PURE__ */ jsx98(
|
|
7999
8158
|
"div",
|
|
8000
8159
|
{
|
|
8001
8160
|
ref: (node) => {
|
|
@@ -8024,7 +8183,7 @@ var MenuItem = React97.forwardRef(
|
|
|
8024
8183
|
const { setOpen } = React97.useContext(MenuContext);
|
|
8025
8184
|
const Comp = asChild ? Slot5 : "button";
|
|
8026
8185
|
const typeProp = asChild ? {} : { type: "button" };
|
|
8027
|
-
return /* @__PURE__ */
|
|
8186
|
+
return /* @__PURE__ */ jsx98(
|
|
8028
8187
|
Comp,
|
|
8029
8188
|
{
|
|
8030
8189
|
ref,
|
|
@@ -8047,11 +8206,11 @@ var MenuItem = React97.forwardRef(
|
|
|
8047
8206
|
);
|
|
8048
8207
|
MenuItem.displayName = "MenuItem";
|
|
8049
8208
|
var MenuSeparator = React97.forwardRef(
|
|
8050
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8209
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx98("div", { ref, role: "separator", className: cn("-mx-1 my-1 h-px bg-border", className), ...props })
|
|
8051
8210
|
);
|
|
8052
8211
|
MenuSeparator.displayName = "MenuSeparator";
|
|
8053
8212
|
var MenuLabel = React97.forwardRef(
|
|
8054
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8213
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx98(
|
|
8055
8214
|
"div",
|
|
8056
8215
|
{
|
|
8057
8216
|
ref,
|
|
@@ -8065,7 +8224,7 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
8065
8224
|
// src/components/alert/Alert.tsx
|
|
8066
8225
|
import * as React98 from "react";
|
|
8067
8226
|
import { cva as cva8 } from "class-variance-authority";
|
|
8068
|
-
import { jsx as
|
|
8227
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
8069
8228
|
var alertVariants = cva8(
|
|
8070
8229
|
"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",
|
|
8071
8230
|
{
|
|
@@ -8086,7 +8245,7 @@ var alertVariants = cva8(
|
|
|
8086
8245
|
}
|
|
8087
8246
|
);
|
|
8088
8247
|
var Alert = React98.forwardRef(
|
|
8089
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */
|
|
8248
|
+
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx99(
|
|
8090
8249
|
"div",
|
|
8091
8250
|
{
|
|
8092
8251
|
ref,
|
|
@@ -8098,7 +8257,7 @@ var Alert = React98.forwardRef(
|
|
|
8098
8257
|
);
|
|
8099
8258
|
Alert.displayName = "Alert";
|
|
8100
8259
|
var AlertTitle = React98.forwardRef(
|
|
8101
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8260
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx99(
|
|
8102
8261
|
"h5",
|
|
8103
8262
|
{
|
|
8104
8263
|
ref,
|
|
@@ -8109,7 +8268,7 @@ var AlertTitle = React98.forwardRef(
|
|
|
8109
8268
|
);
|
|
8110
8269
|
AlertTitle.displayName = "AlertTitle";
|
|
8111
8270
|
var AlertDescription = React98.forwardRef(
|
|
8112
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8271
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx99(
|
|
8113
8272
|
"div",
|
|
8114
8273
|
{
|
|
8115
8274
|
ref,
|
|
@@ -8122,22 +8281,22 @@ AlertDescription.displayName = "AlertDescription";
|
|
|
8122
8281
|
|
|
8123
8282
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
8124
8283
|
import * as React99 from "react";
|
|
8125
|
-
import { jsx as
|
|
8284
|
+
import { jsx as jsx100, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
8126
8285
|
var Breadcrumb = React99.forwardRef(
|
|
8127
8286
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
8128
8287
|
const LinkEl = linkComponent ?? "a";
|
|
8129
|
-
return /* @__PURE__ */
|
|
8288
|
+
return /* @__PURE__ */ jsx100(
|
|
8130
8289
|
"nav",
|
|
8131
8290
|
{
|
|
8132
8291
|
ref,
|
|
8133
8292
|
"aria-label": label,
|
|
8134
8293
|
className: cn("flex items-center space-x-1.5 text-sm text-muted-foreground", className),
|
|
8135
8294
|
...props,
|
|
8136
|
-
children: /* @__PURE__ */
|
|
8295
|
+
children: /* @__PURE__ */ jsx100("ol", { className: "flex flex-wrap items-center space-x-1.5", children: items.map((item, index) => {
|
|
8137
8296
|
const isLast = index === items.length - 1;
|
|
8138
8297
|
return /* @__PURE__ */ jsxs72("li", { className: cn("flex items-center space-x-1.5", truncateCurrent && isLast && "min-w-0"), children: [
|
|
8139
|
-
index > 0 && /* @__PURE__ */
|
|
8140
|
-
item.href && !isLast ? /* @__PURE__ */
|
|
8298
|
+
index > 0 && /* @__PURE__ */ jsx100("span", { "aria-hidden": "true", className: "text-muted-foreground/50", children: separator }),
|
|
8299
|
+
item.href && !isLast ? /* @__PURE__ */ jsx100(
|
|
8141
8300
|
LinkEl,
|
|
8142
8301
|
{
|
|
8143
8302
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -8148,7 +8307,7 @@ var Breadcrumb = React99.forwardRef(
|
|
|
8148
8307
|
} : void 0,
|
|
8149
8308
|
children: item.label
|
|
8150
8309
|
}
|
|
8151
|
-
) : /* @__PURE__ */
|
|
8310
|
+
) : /* @__PURE__ */ jsx100(
|
|
8152
8311
|
"span",
|
|
8153
8312
|
{
|
|
8154
8313
|
"aria-current": isLast ? "page" : void 0,
|
|
@@ -8202,6 +8361,7 @@ export {
|
|
|
8202
8361
|
ConfirmDialog,
|
|
8203
8362
|
ContactStrip,
|
|
8204
8363
|
Container,
|
|
8364
|
+
CoverImage,
|
|
8205
8365
|
DataTable,
|
|
8206
8366
|
DatePicker,
|
|
8207
8367
|
DatePickerPopover,
|