@slipstream-ui/core 0.11.4 → 0.11.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +107 -4
- package/dist/index.d.ts +107 -4
- package/dist/index.js +594 -442
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +489 -338
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +1 -1
- package/dist/manifests/alert.manifest.json +1 -1
- package/dist/manifests/announcement-bar.manifest.json +1 -1
- package/dist/manifests/app-shell.manifest.json +1 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +1 -1
- package/dist/manifests/auth-layout.manifest.json +1 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +1 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +1 -1
- package/dist/manifests/breadcrumb.manifest.json +1 -1
- package/dist/manifests/button-group.manifest.json +1 -1
- package/dist/manifests/button.manifest.json +1 -1
- package/dist/manifests/calendar.manifest.json +1 -1
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cover-image.manifest.json +151 -0
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +1 -1
- package/dist/manifests/date-picker-popover.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +1 -1
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +1 -1
- package/dist/manifests/empty-state.manifest.json +45 -1
- package/dist/manifests/entity-card.manifest.json +1 -1
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/image.manifest.json +7 -1
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +1 -1
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +29 -2
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +1 -1
- package/dist/manifests/site-header.manifest.json +22 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +23 -1
- package/dist/manifests/stepper.manifest.json +1 -1
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +1 -1
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +1 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +1 -1
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/cover-image/CoverImage.d.ts +34 -0
- package/dist/src/components/cover-image/CoverImage.js +94 -0
- package/dist/src/components/cover-image/CoverImage.js.map +1 -0
- package/dist/src/components/cover-image/CoverImage.mjs +70 -0
- package/dist/src/components/cover-image/CoverImage.mjs.map +1 -0
- package/dist/src/components/cover-image/index.d.ts +1 -0
- package/dist/src/components/cover-image/index.js +29 -0
- package/dist/src/components/cover-image/index.js.map +1 -0
- package/dist/src/components/cover-image/index.mjs +5 -0
- package/dist/src/components/cover-image/index.mjs.map +1 -0
- package/dist/src/components/empty-state/EmptyState.d.ts +24 -0
- package/dist/src/components/empty-state/EmptyState.js +16 -6
- package/dist/src/components/empty-state/EmptyState.js.map +1 -1
- package/dist/src/components/empty-state/EmptyState.mjs +16 -6
- package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
- package/dist/src/components/image/Image.d.ts +3 -1
- package/dist/src/components/image/Image.js +2 -0
- package/dist/src/components/image/Image.js.map +1 -1
- package/dist/src/components/image/Image.mjs +2 -0
- package/dist/src/components/image/Image.mjs.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.d.ts +21 -0
- package/dist/src/components/segmented-control/SegmentedControl.js +47 -16
- package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.mjs +48 -17
- package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
- package/dist/src/components/site-header/SiteHeader.d.ts +7 -1
- package/dist/src/components/site-header/SiteHeader.js +5 -1
- package/dist/src/components/site-header/SiteHeader.js.map +1 -1
- package/dist/src/components/site-header/SiteHeader.mjs +5 -1
- package/dist/src/components/site-header/SiteHeader.mjs.map +1 -1
- package/dist/src/components/stat-band/StatBand.d.ts +16 -0
- package/dist/src/components/stat-band/StatBand.js +46 -9
- package/dist/src/components/stat-band/StatBand.js.map +1 -1
- package/dist/src/components/stat-band/StatBand.mjs +46 -9
- package/dist/src/components/stat-band/StatBand.mjs.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/src/components/cover-image/CoverImage.test.tsx +88 -0
- package/src/components/cover-image/CoverImage.tsx +109 -0
- package/src/components/cover-image/index.ts +1 -0
- package/src/components/empty-state/EmptyState.test.tsx +33 -0
- package/src/components/empty-state/EmptyState.tsx +34 -6
- package/src/components/image/Image.tsx +4 -0
- package/src/components/segmented-control/SegmentedControl.test.tsx +64 -0
- package/src/components/segmented-control/SegmentedControl.tsx +69 -15
- package/src/components/site-header/SiteHeader.test.tsx +18 -0
- package/src/components/site-header/SiteHeader.tsx +11 -1
- package/src/components/stat-band/StatBand.test.tsx +26 -0
- package/src/components/stat-band/StatBand.tsx +52 -7
- package/src/index.ts +1 -0
- package/src/manifests/accordion.manifest.json +1 -1
- package/src/manifests/alert.manifest.json +1 -1
- package/src/manifests/announcement-bar.manifest.json +1 -1
- package/src/manifests/app-shell.manifest.json +1 -1
- package/src/manifests/applied-filters.manifest.json +1 -1
- package/src/manifests/article-card.manifest.json +1 -1
- package/src/manifests/auth-layout.manifest.json +1 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +1 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +1 -1
- package/src/manifests/breadcrumb.manifest.json +1 -1
- package/src/manifests/button-group.manifest.json +1 -1
- package/src/manifests/button.manifest.json +1 -1
- package/src/manifests/calendar.manifest.json +1 -1
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cover-image.manifest.json +151 -0
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +1 -1
- package/src/manifests/date-picker-popover.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +1 -1
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +1 -1
- package/src/manifests/empty-state.manifest.json +45 -1
- package/src/manifests/entity-card.manifest.json +1 -1
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/image.manifest.json +7 -1
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +1 -1
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +29 -2
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +1 -1
- package/src/manifests/site-header.manifest.json +22 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +23 -1
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +1 -1
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +1 -1
- package/src/manifests/tooltip.manifest.json +1 -1
- package/src/styles.css +5 -0
package/dist/index.mjs
CHANGED
|
@@ -3744,6 +3744,9 @@ function SiteHeader({
|
|
|
3744
3744
|
mobileNavLabel = "Mobile",
|
|
3745
3745
|
sticky = true,
|
|
3746
3746
|
mobileLabel = "Menu",
|
|
3747
|
+
mobileMenuOpenLabel = "Open menu",
|
|
3748
|
+
mobileMenuCloseLabel = "Close menu",
|
|
3749
|
+
mobileDrawerCloseLabel = "Close drawer",
|
|
3747
3750
|
showMobileTrigger = true,
|
|
3748
3751
|
desktopBreakpoint = "md",
|
|
3749
3752
|
navClassName,
|
|
@@ -3920,7 +3923,7 @@ function SiteHeader({
|
|
|
3920
3923
|
{
|
|
3921
3924
|
type: "button",
|
|
3922
3925
|
onClick: () => setMobileOpen((open) => !open),
|
|
3923
|
-
"aria-label": mobileOpen ?
|
|
3926
|
+
"aria-label": mobileOpen ? mobileMenuCloseLabel : mobileMenuOpenLabel,
|
|
3924
3927
|
"aria-expanded": mobileOpen,
|
|
3925
3928
|
"aria-controls": menuId,
|
|
3926
3929
|
"aria-haspopup": "dialog",
|
|
@@ -3955,6 +3958,7 @@ function SiteHeader({
|
|
|
3955
3958
|
open: mobileOpen,
|
|
3956
3959
|
onOpenChange: setMobileOpen,
|
|
3957
3960
|
title: mobileLabel,
|
|
3961
|
+
closeLabel: mobileDrawerCloseLabel,
|
|
3958
3962
|
side: "right",
|
|
3959
3963
|
size: "sm",
|
|
3960
3964
|
animate: true,
|
|
@@ -4711,6 +4715,7 @@ function Image2({
|
|
|
4711
4715
|
height = 630,
|
|
4712
4716
|
className,
|
|
4713
4717
|
imgClassName,
|
|
4718
|
+
sizes,
|
|
4714
4719
|
style
|
|
4715
4720
|
}) {
|
|
4716
4721
|
const [stage, setStage] = React50.useState(0);
|
|
@@ -4732,6 +4737,7 @@ function Image2({
|
|
|
4732
4737
|
loading: priority ? "eager" : "lazy",
|
|
4733
4738
|
fetchPriority: priority ? "high" : "auto",
|
|
4734
4739
|
decoding: "async",
|
|
4740
|
+
sizes,
|
|
4735
4741
|
className: cn(className, imgClassName),
|
|
4736
4742
|
style,
|
|
4737
4743
|
onError
|
|
@@ -4740,9 +4746,75 @@ function Image2({
|
|
|
4740
4746
|
}
|
|
4741
4747
|
Image2.displayName = "Image";
|
|
4742
4748
|
|
|
4749
|
+
// src/components/cover-image/CoverImage.tsx
|
|
4750
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
4751
|
+
var aspectClasses = {
|
|
4752
|
+
video: "aspect-video",
|
|
4753
|
+
square: "aspect-square",
|
|
4754
|
+
wide: "aspect-[2/1]"
|
|
4755
|
+
};
|
|
4756
|
+
var gradients = [
|
|
4757
|
+
"linear-gradient(135deg, hsl(var(--primary) / 0.18), hsl(var(--info) / 0.10))",
|
|
4758
|
+
"linear-gradient(135deg, hsl(var(--info) / 0.16), hsl(var(--primary) / 0.08))",
|
|
4759
|
+
"linear-gradient(135deg, hsl(var(--warning) / 0.14), hsl(var(--primary) / 0.10))",
|
|
4760
|
+
"linear-gradient(135deg, hsl(var(--success) / 0.14), hsl(var(--info) / 0.08))"
|
|
4761
|
+
];
|
|
4762
|
+
function hashSeed(seed) {
|
|
4763
|
+
let hash = 0;
|
|
4764
|
+
for (let i = 0; i < seed.length; i += 1) {
|
|
4765
|
+
hash = hash * 31 + seed.charCodeAt(i) >>> 0;
|
|
4766
|
+
}
|
|
4767
|
+
return hash;
|
|
4768
|
+
}
|
|
4769
|
+
function seededGradient(seed) {
|
|
4770
|
+
return { backgroundImage: gradients[hashSeed(seed) % gradients.length] };
|
|
4771
|
+
}
|
|
4772
|
+
function CoverImage({
|
|
4773
|
+
src,
|
|
4774
|
+
alt,
|
|
4775
|
+
aspect = "video",
|
|
4776
|
+
seed,
|
|
4777
|
+
priority = false,
|
|
4778
|
+
sizes,
|
|
4779
|
+
fallback,
|
|
4780
|
+
mark,
|
|
4781
|
+
className
|
|
4782
|
+
}) {
|
|
4783
|
+
const preset = aspectClasses[aspect];
|
|
4784
|
+
const aspectStyle = preset === void 0 && typeof aspect === "string" ? { aspectRatio: aspect } : void 0;
|
|
4785
|
+
const fallbackNode = fallback ?? /* @__PURE__ */ jsx51(
|
|
4786
|
+
"div",
|
|
4787
|
+
{
|
|
4788
|
+
className: "flex h-full w-full items-center justify-center",
|
|
4789
|
+
style: seededGradient(seed ?? alt),
|
|
4790
|
+
"aria-hidden": "true",
|
|
4791
|
+
children: mark && /* @__PURE__ */ jsx51("span", { className: "text-muted-foreground [&_svg]:size-8", children: mark })
|
|
4792
|
+
}
|
|
4793
|
+
);
|
|
4794
|
+
return /* @__PURE__ */ jsx51(
|
|
4795
|
+
"div",
|
|
4796
|
+
{
|
|
4797
|
+
className: cn("relative overflow-hidden rounded-lg bg-muted", preset, className),
|
|
4798
|
+
style: aspectStyle,
|
|
4799
|
+
children: src ? /* @__PURE__ */ jsx51(
|
|
4800
|
+
Image2,
|
|
4801
|
+
{
|
|
4802
|
+
src,
|
|
4803
|
+
alt,
|
|
4804
|
+
priority,
|
|
4805
|
+
sizes,
|
|
4806
|
+
fallback: fallbackNode,
|
|
4807
|
+
className: "h-full w-full object-cover"
|
|
4808
|
+
}
|
|
4809
|
+
) : fallbackNode
|
|
4810
|
+
}
|
|
4811
|
+
);
|
|
4812
|
+
}
|
|
4813
|
+
CoverImage.displayName = "CoverImage";
|
|
4814
|
+
|
|
4743
4815
|
// src/components/text/Text.tsx
|
|
4744
4816
|
import * as React51 from "react";
|
|
4745
|
-
import { jsx as
|
|
4817
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
4746
4818
|
var sizeClasses4 = {
|
|
4747
4819
|
xs: "text-xs",
|
|
4748
4820
|
sm: "text-sm",
|
|
@@ -4759,7 +4831,7 @@ var weightClasses = {
|
|
|
4759
4831
|
var Text = React51.forwardRef(
|
|
4760
4832
|
({ inline, size = "base", weight, muted, className, ...props }, ref) => {
|
|
4761
4833
|
const Tag = inline ? "span" : "p";
|
|
4762
|
-
return /* @__PURE__ */
|
|
4834
|
+
return /* @__PURE__ */ jsx52(
|
|
4763
4835
|
Tag,
|
|
4764
4836
|
{
|
|
4765
4837
|
ref,
|
|
@@ -4779,7 +4851,7 @@ Text.displayName = "Text";
|
|
|
4779
4851
|
|
|
4780
4852
|
// src/components/heading/Heading.tsx
|
|
4781
4853
|
import * as React52 from "react";
|
|
4782
|
-
import { jsx as
|
|
4854
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
4783
4855
|
var levelClasses = {
|
|
4784
4856
|
1: "text-4xl",
|
|
4785
4857
|
2: "text-3xl",
|
|
@@ -4799,7 +4871,7 @@ var sizeClasses5 = {
|
|
|
4799
4871
|
var Heading = React52.forwardRef(
|
|
4800
4872
|
({ level, size, muted, className, ...props }, ref) => {
|
|
4801
4873
|
const Tag = `h${level}`;
|
|
4802
|
-
return /* @__PURE__ */
|
|
4874
|
+
return /* @__PURE__ */ jsx53(
|
|
4803
4875
|
Tag,
|
|
4804
4876
|
{
|
|
4805
4877
|
ref,
|
|
@@ -4818,17 +4890,19 @@ Heading.displayName = "Heading";
|
|
|
4818
4890
|
|
|
4819
4891
|
// src/components/empty-state/EmptyState.tsx
|
|
4820
4892
|
import * as React53 from "react";
|
|
4821
|
-
import { jsx as
|
|
4893
|
+
import { jsx as jsx54, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4822
4894
|
function isActionObject(value) {
|
|
4823
4895
|
return typeof value === "object" && value !== null && !React53.isValidElement(value) && "label" in value;
|
|
4824
4896
|
}
|
|
4825
|
-
function renderAction(action) {
|
|
4897
|
+
function renderAction(action, linkComponent, linkHrefProp = "href") {
|
|
4826
4898
|
if (!isActionObject(action)) return action;
|
|
4827
4899
|
const { label, onClick, href, variant } = action;
|
|
4828
4900
|
if (href) {
|
|
4829
|
-
|
|
4901
|
+
const LinkEl = linkComponent ?? "a";
|
|
4902
|
+
const destination = linkHrefProp === "to" ? { to: href } : { href };
|
|
4903
|
+
return /* @__PURE__ */ jsx54(Button, { variant, asChild: true, children: /* @__PURE__ */ jsx54(LinkEl, { ...destination, children: label }) });
|
|
4830
4904
|
}
|
|
4831
|
-
return /* @__PURE__ */
|
|
4905
|
+
return /* @__PURE__ */ jsx54(Button, { variant, onClick, children: label });
|
|
4832
4906
|
}
|
|
4833
4907
|
var EmptyState = React53.forwardRef(function EmptyState2({
|
|
4834
4908
|
icon,
|
|
@@ -4839,27 +4913,35 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
4839
4913
|
secondaryAction,
|
|
4840
4914
|
titleAs: Title = "p",
|
|
4841
4915
|
size = "md",
|
|
4916
|
+
align = "center",
|
|
4917
|
+
tone = "plain",
|
|
4918
|
+
linkComponent,
|
|
4919
|
+
linkHrefProp = "href",
|
|
4842
4920
|
className,
|
|
4843
4921
|
children,
|
|
4844
4922
|
...props
|
|
4845
4923
|
}, ref) {
|
|
4846
|
-
const primaryAction = renderAction(action) ?? actions;
|
|
4924
|
+
const primaryAction = renderAction(action, linkComponent, linkHrefProp) ?? actions;
|
|
4925
|
+
const start = align === "start";
|
|
4847
4926
|
return /* @__PURE__ */ jsxs35(
|
|
4848
4927
|
"div",
|
|
4849
4928
|
{
|
|
4850
4929
|
ref,
|
|
4851
4930
|
className: cn(
|
|
4852
|
-
"flex flex-col
|
|
4931
|
+
"flex flex-col rounded-lg text-center",
|
|
4932
|
+
start ? "items-start text-left" : "items-center text-center",
|
|
4933
|
+
"justify-center",
|
|
4934
|
+
tone === "panel" ? "border border-border bg-muted" : "border border-dashed border-border",
|
|
4853
4935
|
size === "md" ? "gap-3 px-6 py-12" : "gap-2 px-4 py-6",
|
|
4854
4936
|
className
|
|
4855
4937
|
),
|
|
4856
4938
|
...props,
|
|
4857
4939
|
children: [
|
|
4858
|
-
icon && /* @__PURE__ */
|
|
4859
|
-
/* @__PURE__ */
|
|
4860
|
-
description && /* @__PURE__ */
|
|
4940
|
+
icon && /* @__PURE__ */ jsx54("div", { className: "text-muted-foreground [&_svg]:size-8", children: icon }),
|
|
4941
|
+
/* @__PURE__ */ jsx54(Title, { className: cn("font-semibold", size === "md" ? "text-base" : "text-sm"), children: title }),
|
|
4942
|
+
description && /* @__PURE__ */ jsx54("p", { className: cn("max-w-sm text-sm text-muted-foreground", start && "max-w-md"), children: description }),
|
|
4861
4943
|
children,
|
|
4862
|
-
(primaryAction || secondaryAction) && /* @__PURE__ */ jsxs35("div", { className: "mt-1 flex flex-wrap items-center justify-
|
|
4944
|
+
(primaryAction || secondaryAction) && /* @__PURE__ */ jsxs35("div", { className: cn("mt-1 flex flex-wrap items-center gap-2", start ? "justify-start" : "justify-center"), children: [
|
|
4863
4945
|
primaryAction,
|
|
4864
4946
|
secondaryAction
|
|
4865
4947
|
] })
|
|
@@ -4870,7 +4952,7 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
4870
4952
|
|
|
4871
4953
|
// src/components/page-header/PageHeader.tsx
|
|
4872
4954
|
import * as React54 from "react";
|
|
4873
|
-
import { jsx as
|
|
4955
|
+
import { jsx as jsx55, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4874
4956
|
var sizeClasses6 = {
|
|
4875
4957
|
sm: "text-xl",
|
|
4876
4958
|
md: "text-2xl",
|
|
@@ -4880,16 +4962,16 @@ var sizeClasses6 = {
|
|
|
4880
4962
|
var PageHeader = React54.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
4881
4963
|
const supporting = description ?? subtitle;
|
|
4882
4964
|
return /* @__PURE__ */ jsxs36("div", { ref, className: cn("flex flex-col gap-2", align === "center" && "items-center text-center", className), ...props, children: [
|
|
4883
|
-
breadcrumbs && /* @__PURE__ */
|
|
4884
|
-
eyebrow && /* @__PURE__ */
|
|
4965
|
+
breadcrumbs && /* @__PURE__ */ jsx55("div", { className: "text-sm text-muted-foreground", children: breadcrumbs }),
|
|
4966
|
+
eyebrow && /* @__PURE__ */ jsx55("div", { className: cn("text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
4885
4967
|
/* @__PURE__ */ jsxs36("div", { className: cn("flex w-full flex-wrap items-start justify-between gap-3", align === "center" && "justify-center"), children: [
|
|
4886
4968
|
/* @__PURE__ */ jsxs36("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4887
|
-
/* @__PURE__ */
|
|
4888
|
-
supporting && /* @__PURE__ */
|
|
4969
|
+
/* @__PURE__ */ jsx55("h1", { className: cn("font-semibold tracking-tight", sizeClasses6[size], titleClassName), children: title }),
|
|
4970
|
+
supporting && /* @__PURE__ */ jsx55("p", { className: cn("mt-2 max-w-2xl text-base text-muted-foreground", descriptionClassName), children: supporting })
|
|
4889
4971
|
] }),
|
|
4890
|
-
actions && /* @__PURE__ */
|
|
4972
|
+
actions && /* @__PURE__ */ jsx55("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
4891
4973
|
] }),
|
|
4892
|
-
children && /* @__PURE__ */
|
|
4974
|
+
children && /* @__PURE__ */ jsx55("div", { className: "mt-2", children })
|
|
4893
4975
|
] });
|
|
4894
4976
|
});
|
|
4895
4977
|
|
|
@@ -4910,7 +4992,7 @@ function documentHead({
|
|
|
4910
4992
|
|
|
4911
4993
|
// src/components/section-heading/SectionHeading.tsx
|
|
4912
4994
|
import * as React55 from "react";
|
|
4913
|
-
import { jsx as
|
|
4995
|
+
import { jsx as jsx56, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4914
4996
|
var sizeClasses7 = {
|
|
4915
4997
|
sm: "text-lg",
|
|
4916
4998
|
md: "text-2xl",
|
|
@@ -4930,11 +5012,11 @@ var SectionHeading = React55.forwardRef(function SectionHeading2({ title, descri
|
|
|
4930
5012
|
...props,
|
|
4931
5013
|
children: [
|
|
4932
5014
|
/* @__PURE__ */ jsxs37("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4933
|
-
eyebrow && /* @__PURE__ */
|
|
4934
|
-
/* @__PURE__ */
|
|
4935
|
-
description && /* @__PURE__ */
|
|
5015
|
+
eyebrow && /* @__PURE__ */ jsx56("div", { className: cn("mb-1 text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
5016
|
+
/* @__PURE__ */ jsx56(Heading2, { className: cn("font-semibold tracking-tight", sizeClasses7[size], titleClassName), children: title }),
|
|
5017
|
+
description && /* @__PURE__ */ jsx56("p", { className: cn("mt-2 max-w-2xl text-muted-foreground", align === "center" ? "mx-auto" : "", descriptionClassName), children: description })
|
|
4936
5018
|
] }),
|
|
4937
|
-
actions && /* @__PURE__ */
|
|
5019
|
+
actions && /* @__PURE__ */ jsx56("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
4938
5020
|
]
|
|
4939
5021
|
}
|
|
4940
5022
|
);
|
|
@@ -4942,7 +5024,7 @@ var SectionHeading = React55.forwardRef(function SectionHeading2({ title, descri
|
|
|
4942
5024
|
|
|
4943
5025
|
// src/components/metric-card/MetricCard.tsx
|
|
4944
5026
|
import * as React56 from "react";
|
|
4945
|
-
import { jsx as
|
|
5027
|
+
import { jsx as jsx57, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4946
5028
|
var trendClasses = {
|
|
4947
5029
|
up: "text-success",
|
|
4948
5030
|
down: "text-destructive",
|
|
@@ -4968,40 +5050,40 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
4968
5050
|
...props,
|
|
4969
5051
|
children: [
|
|
4970
5052
|
/* @__PURE__ */ jsxs38("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4971
|
-
heading && /* @__PURE__ */
|
|
4972
|
-
icon && /* @__PURE__ */
|
|
5053
|
+
heading && /* @__PURE__ */ jsx57("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
5054
|
+
icon && /* @__PURE__ */ jsx57("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4973
5055
|
] }),
|
|
4974
|
-
/* @__PURE__ */
|
|
4975
|
-
/* @__PURE__ */
|
|
5056
|
+
/* @__PURE__ */ jsx57("span", { "aria-hidden": "true", className: "mt-3 block h-7 w-24 animate-pulse rounded-md bg-muted" }),
|
|
5057
|
+
/* @__PURE__ */ jsx57("span", { className: "sr-only", children: "Loading" })
|
|
4976
5058
|
]
|
|
4977
5059
|
}
|
|
4978
5060
|
);
|
|
4979
5061
|
}
|
|
4980
5062
|
return /* @__PURE__ */ jsxs38("div", { ref, className: cn("rounded-xl border border-border bg-card p-5", className), ...props, children: [
|
|
4981
5063
|
/* @__PURE__ */ jsxs38("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4982
|
-
heading && /* @__PURE__ */
|
|
4983
|
-
icon && /* @__PURE__ */
|
|
5064
|
+
heading && /* @__PURE__ */ jsx57("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
5065
|
+
icon && /* @__PURE__ */ jsx57("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4984
5066
|
] }),
|
|
4985
|
-
/* @__PURE__ */
|
|
5067
|
+
/* @__PURE__ */ jsx57("p", { className: cn("mt-2 text-2xl font-semibold tabular-nums", toneClasses[tone]), children: value }),
|
|
4986
5068
|
(delta || supporting) && /* @__PURE__ */ jsxs38("p", { className: "mt-1 flex items-center gap-2 text-sm", children: [
|
|
4987
5069
|
delta && /* @__PURE__ */ jsxs38("span", { className: cn("font-medium tabular-nums", trendClasses[trend]), children: [
|
|
4988
|
-
/* @__PURE__ */
|
|
5070
|
+
/* @__PURE__ */ jsx57("span", { "aria-hidden": "true", children: trendGlyph[trend] }),
|
|
4989
5071
|
" ",
|
|
4990
5072
|
delta
|
|
4991
5073
|
] }),
|
|
4992
|
-
supporting && /* @__PURE__ */
|
|
5074
|
+
supporting && /* @__PURE__ */ jsx57("span", { className: "text-muted-foreground", children: supporting })
|
|
4993
5075
|
] })
|
|
4994
5076
|
] });
|
|
4995
5077
|
});
|
|
4996
5078
|
|
|
4997
5079
|
// src/components/password-input/PasswordInput.tsx
|
|
4998
5080
|
import * as React57 from "react";
|
|
4999
|
-
import { jsx as
|
|
5081
|
+
import { jsx as jsx58, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
5000
5082
|
var PasswordInput = React57.forwardRef(function PasswordInput2({ className, showLabel = "Show password", hideLabel = "Hide password", ...props }, ref) {
|
|
5001
5083
|
const [visible, setVisible] = React57.useState(false);
|
|
5002
5084
|
return /* @__PURE__ */ jsxs39("div", { className: cn("relative flex items-center", className), children: [
|
|
5003
|
-
/* @__PURE__ */
|
|
5004
|
-
/* @__PURE__ */
|
|
5085
|
+
/* @__PURE__ */ jsx58(Input, { ref, type: visible ? "text" : "password", className: "pr-24", ...props }),
|
|
5086
|
+
/* @__PURE__ */ jsx58(
|
|
5005
5087
|
Button,
|
|
5006
5088
|
{
|
|
5007
5089
|
type: "button",
|
|
@@ -5019,7 +5101,7 @@ var PasswordInput = React57.forwardRef(function PasswordInput2({ className, show
|
|
|
5019
5101
|
|
|
5020
5102
|
// src/components/auth-layout/AuthLayout.tsx
|
|
5021
5103
|
import * as React58 from "react";
|
|
5022
|
-
import { jsx as
|
|
5104
|
+
import { jsx as jsx59, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
5023
5105
|
var sizeClasses8 = {
|
|
5024
5106
|
sm: "max-w-sm",
|
|
5025
5107
|
md: "max-w-md",
|
|
@@ -5053,7 +5135,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5053
5135
|
),
|
|
5054
5136
|
style: widthStyle,
|
|
5055
5137
|
children: [
|
|
5056
|
-
mark && /* @__PURE__ */
|
|
5138
|
+
mark && /* @__PURE__ */ jsx59("div", { className: "mb-6", children: mark }),
|
|
5057
5139
|
/* @__PURE__ */ jsxs40(
|
|
5058
5140
|
"div",
|
|
5059
5141
|
{
|
|
@@ -5063,18 +5145,18 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5063
5145
|
),
|
|
5064
5146
|
style: widthStyle,
|
|
5065
5147
|
children: [
|
|
5066
|
-
/* @__PURE__ */
|
|
5067
|
-
supporting && /* @__PURE__ */
|
|
5068
|
-
/* @__PURE__ */
|
|
5148
|
+
/* @__PURE__ */ jsx59("h1", { className: "text-xl font-semibold tracking-tight", children: title }),
|
|
5149
|
+
supporting && /* @__PURE__ */ jsx59("p", { className: "mt-1 text-sm text-muted-foreground", children: supporting }),
|
|
5150
|
+
/* @__PURE__ */ jsx59("div", { className: "mt-6", children })
|
|
5069
5151
|
]
|
|
5070
5152
|
}
|
|
5071
5153
|
),
|
|
5072
|
-
footer && /* @__PURE__ */
|
|
5154
|
+
footer && /* @__PURE__ */ jsx59("div", { className: "mt-6 text-center text-sm text-muted-foreground", children: footer })
|
|
5073
5155
|
]
|
|
5074
5156
|
}
|
|
5075
5157
|
);
|
|
5076
5158
|
if (split) {
|
|
5077
|
-
return /* @__PURE__ */
|
|
5159
|
+
return /* @__PURE__ */ jsx59(
|
|
5078
5160
|
"div",
|
|
5079
5161
|
{
|
|
5080
5162
|
ref,
|
|
@@ -5082,12 +5164,12 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5082
5164
|
...props,
|
|
5083
5165
|
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: [
|
|
5084
5166
|
form,
|
|
5085
|
-
/* @__PURE__ */
|
|
5167
|
+
/* @__PURE__ */ jsx59("aside", { className: "w-full", children: aside })
|
|
5086
5168
|
] })
|
|
5087
5169
|
}
|
|
5088
5170
|
);
|
|
5089
5171
|
}
|
|
5090
|
-
return /* @__PURE__ */
|
|
5172
|
+
return /* @__PURE__ */ jsx59(
|
|
5091
5173
|
"div",
|
|
5092
5174
|
{
|
|
5093
5175
|
ref,
|
|
@@ -5103,7 +5185,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5103
5185
|
|
|
5104
5186
|
// src/components/filter-bar/FilterBar.tsx
|
|
5105
5187
|
import * as React59 from "react";
|
|
5106
|
-
import { jsx as
|
|
5188
|
+
import { jsx as jsx60, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
5107
5189
|
var FilterBar = React59.forwardRef(function FilterBar2({
|
|
5108
5190
|
searchValue,
|
|
5109
5191
|
onSearchChange,
|
|
@@ -5130,7 +5212,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5130
5212
|
),
|
|
5131
5213
|
...props,
|
|
5132
5214
|
children: [
|
|
5133
|
-
onSearchChange !== void 0 && /* @__PURE__ */
|
|
5215
|
+
onSearchChange !== void 0 && /* @__PURE__ */ jsx60(
|
|
5134
5216
|
Input,
|
|
5135
5217
|
{
|
|
5136
5218
|
type: "search",
|
|
@@ -5141,7 +5223,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5141
5223
|
className: "h-9 w-full min-w-40 flex-1 sm:w-auto"
|
|
5142
5224
|
}
|
|
5143
5225
|
),
|
|
5144
|
-
/* @__PURE__ */
|
|
5226
|
+
/* @__PURE__ */ jsx60("div", { className: "flex flex-wrap items-center gap-2", children }),
|
|
5145
5227
|
onOpenFilters && /* @__PURE__ */ jsxs41(Button, { type: "button", variant: "outline", size: "sm", onClick: onOpenFilters, children: [
|
|
5146
5228
|
filtersLabel,
|
|
5147
5229
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
@@ -5155,7 +5237,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5155
5237
|
" ",
|
|
5156
5238
|
resultsLabel
|
|
5157
5239
|
] }),
|
|
5158
|
-
trailing && /* @__PURE__ */
|
|
5240
|
+
trailing && /* @__PURE__ */ jsx60("div", { className: cn("flex items-center gap-2", resultsCount === void 0 && "ml-auto"), children: trailing })
|
|
5159
5241
|
]
|
|
5160
5242
|
}
|
|
5161
5243
|
);
|
|
@@ -5163,7 +5245,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5163
5245
|
|
|
5164
5246
|
// src/components/date-picker/DatePicker.tsx
|
|
5165
5247
|
import * as React60 from "react";
|
|
5166
|
-
import { jsx as
|
|
5248
|
+
import { jsx as jsx61, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
5167
5249
|
var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
5168
5250
|
const [internal, setInternal] = React60.useState(defaultValue ?? "");
|
|
5169
5251
|
const current = value ?? internal;
|
|
@@ -5172,7 +5254,7 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5172
5254
|
onValueChange?.(next);
|
|
5173
5255
|
};
|
|
5174
5256
|
return /* @__PURE__ */ jsxs42("div", { className: cn("relative flex items-center", className), children: [
|
|
5175
|
-
/* @__PURE__ */
|
|
5257
|
+
/* @__PURE__ */ jsx61(
|
|
5176
5258
|
Input,
|
|
5177
5259
|
{
|
|
5178
5260
|
ref,
|
|
@@ -5186,7 +5268,7 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5186
5268
|
...props
|
|
5187
5269
|
}
|
|
5188
5270
|
),
|
|
5189
|
-
clearable && current && /* @__PURE__ */
|
|
5271
|
+
clearable && current && /* @__PURE__ */ jsx61(
|
|
5190
5272
|
"button",
|
|
5191
5273
|
{
|
|
5192
5274
|
type: "button",
|
|
@@ -5272,7 +5354,7 @@ function computePosition({
|
|
|
5272
5354
|
}
|
|
5273
5355
|
|
|
5274
5356
|
// src/components/popover/Popover.tsx
|
|
5275
|
-
import { jsx as
|
|
5357
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
5276
5358
|
var PopoverContext = React61.createContext({
|
|
5277
5359
|
open: false,
|
|
5278
5360
|
setOpen: () => {
|
|
@@ -5307,7 +5389,7 @@ var Popover = React61.forwardRef(
|
|
|
5307
5389
|
},
|
|
5308
5390
|
[open, onOpenChange]
|
|
5309
5391
|
);
|
|
5310
|
-
return /* @__PURE__ */
|
|
5392
|
+
return /* @__PURE__ */ jsx62("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx62(
|
|
5311
5393
|
PopoverContext.Provider,
|
|
5312
5394
|
{
|
|
5313
5395
|
value: { open: current, setOpen, triggerId, contentId, wrapperRef, anchorRef, triggerRef },
|
|
@@ -5328,7 +5410,7 @@ var PopoverTrigger = React61.forwardRef(
|
|
|
5328
5410
|
},
|
|
5329
5411
|
[ref, triggerRef]
|
|
5330
5412
|
);
|
|
5331
|
-
return /* @__PURE__ */
|
|
5413
|
+
return /* @__PURE__ */ jsx62(
|
|
5332
5414
|
"button",
|
|
5333
5415
|
{
|
|
5334
5416
|
ref: setRefs,
|
|
@@ -5364,7 +5446,7 @@ var PopoverAnchor = React61.forwardRef(
|
|
|
5364
5446
|
},
|
|
5365
5447
|
[anchorRef, ref]
|
|
5366
5448
|
);
|
|
5367
|
-
return /* @__PURE__ */
|
|
5449
|
+
return /* @__PURE__ */ jsx62("span", { ref: setRefs, className: cn("inline-block", className), ...props, children });
|
|
5368
5450
|
}
|
|
5369
5451
|
);
|
|
5370
5452
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
@@ -5464,7 +5546,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5464
5546
|
}, [open, pos]);
|
|
5465
5547
|
if (!open || typeof document === "undefined") return null;
|
|
5466
5548
|
return createPortal7(
|
|
5467
|
-
/* @__PURE__ */
|
|
5549
|
+
/* @__PURE__ */ jsx62(
|
|
5468
5550
|
"div",
|
|
5469
5551
|
{
|
|
5470
5552
|
ref: (node) => {
|
|
@@ -5509,7 +5591,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5509
5591
|
PopoverContent.displayName = "PopoverContent";
|
|
5510
5592
|
|
|
5511
5593
|
// src/components/date-picker-popover/DatePickerPopover.tsx
|
|
5512
|
-
import { Fragment as Fragment12, jsx as
|
|
5594
|
+
import { Fragment as Fragment12, jsx as jsx63, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
5513
5595
|
var DatePickerPopover = React62.forwardRef(
|
|
5514
5596
|
({
|
|
5515
5597
|
value,
|
|
@@ -5544,7 +5626,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5544
5626
|
const label = value ? formatDateLabel(value, locale) : placeholder;
|
|
5545
5627
|
return /* @__PURE__ */ jsxs43(Fragment12, { children: [
|
|
5546
5628
|
/* @__PURE__ */ jsxs43(Popover, { open, onOpenChange: setOpen, children: [
|
|
5547
|
-
/* @__PURE__ */
|
|
5629
|
+
/* @__PURE__ */ jsx63(
|
|
5548
5630
|
PopoverTrigger,
|
|
5549
5631
|
{
|
|
5550
5632
|
ref: setTriggerRef,
|
|
@@ -5562,7 +5644,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5562
5644
|
children: label
|
|
5563
5645
|
}
|
|
5564
5646
|
),
|
|
5565
|
-
/* @__PURE__ */
|
|
5647
|
+
/* @__PURE__ */ jsx63(PopoverContent, { side, align, matchTriggerWidth: true, className: "w-auto p-3", children: /* @__PURE__ */ jsx63(
|
|
5566
5648
|
Calendar,
|
|
5567
5649
|
{
|
|
5568
5650
|
value,
|
|
@@ -5580,7 +5662,7 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5580
5662
|
}
|
|
5581
5663
|
) })
|
|
5582
5664
|
] }),
|
|
5583
|
-
name ? /* @__PURE__ */
|
|
5665
|
+
name ? /* @__PURE__ */ jsx63("input", { type: "hidden", name, value: value ?? "", required }) : null
|
|
5584
5666
|
] });
|
|
5585
5667
|
}
|
|
5586
5668
|
);
|
|
@@ -5588,7 +5670,7 @@ DatePickerPopover.displayName = "DatePickerPopover";
|
|
|
5588
5670
|
|
|
5589
5671
|
// src/components/time-picker/TimePicker.tsx
|
|
5590
5672
|
import * as React63 from "react";
|
|
5591
|
-
import { jsx as
|
|
5673
|
+
import { jsx as jsx64, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
5592
5674
|
var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
5593
5675
|
const [internal, setInternal] = React63.useState(defaultValue ?? "");
|
|
5594
5676
|
const current = value ?? internal;
|
|
@@ -5597,7 +5679,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5597
5679
|
onValueChange?.(next);
|
|
5598
5680
|
};
|
|
5599
5681
|
return /* @__PURE__ */ jsxs44("div", { className: cn("relative flex items-center", className), children: [
|
|
5600
|
-
/* @__PURE__ */
|
|
5682
|
+
/* @__PURE__ */ jsx64(
|
|
5601
5683
|
Input,
|
|
5602
5684
|
{
|
|
5603
5685
|
ref,
|
|
@@ -5611,7 +5693,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5611
5693
|
...props
|
|
5612
5694
|
}
|
|
5613
5695
|
),
|
|
5614
|
-
clearable && current && /* @__PURE__ */
|
|
5696
|
+
clearable && current && /* @__PURE__ */ jsx64(
|
|
5615
5697
|
"button",
|
|
5616
5698
|
{
|
|
5617
5699
|
type: "button",
|
|
@@ -5626,7 +5708,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5626
5708
|
|
|
5627
5709
|
// src/components/stepper/Stepper.tsx
|
|
5628
5710
|
import * as React64 from "react";
|
|
5629
|
-
import { Fragment as Fragment13, jsx as
|
|
5711
|
+
import { Fragment as Fragment13, jsx as jsx65, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
5630
5712
|
var Stepper = React64.forwardRef(function Stepper2({
|
|
5631
5713
|
steps,
|
|
5632
5714
|
current,
|
|
@@ -5650,7 +5732,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5650
5732
|
const verticalTitlePad = size === "sm" ? "pt-0.5" : "pt-1";
|
|
5651
5733
|
const connectorTop = variant === "dots" ? size === "sm" ? "mt-1" : "mt-[5px]" : size === "sm" ? "mt-3" : "mt-3.5";
|
|
5652
5734
|
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";
|
|
5653
|
-
return /* @__PURE__ */
|
|
5735
|
+
return /* @__PURE__ */ jsx65(
|
|
5654
5736
|
"ol",
|
|
5655
5737
|
{
|
|
5656
5738
|
ref,
|
|
@@ -5664,7 +5746,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5664
5746
|
const isLast = index === steps.length - 1;
|
|
5665
5747
|
const titleCentered = alignTitles === "center" && !step.description;
|
|
5666
5748
|
const below = !vertical && labelPlacement === "below";
|
|
5667
|
-
const marker = /* @__PURE__ */
|
|
5749
|
+
const marker = /* @__PURE__ */ jsx65(
|
|
5668
5750
|
"span",
|
|
5669
5751
|
{
|
|
5670
5752
|
"aria-hidden": "true",
|
|
@@ -5687,7 +5769,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5687
5769
|
}
|
|
5688
5770
|
);
|
|
5689
5771
|
const label = /* @__PURE__ */ jsxs45("span", { className: "min-w-0", children: [
|
|
5690
|
-
/* @__PURE__ */
|
|
5772
|
+
/* @__PURE__ */ jsx65(
|
|
5691
5773
|
"span",
|
|
5692
5774
|
{
|
|
5693
5775
|
className: cn(
|
|
@@ -5699,7 +5781,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5699
5781
|
children: step.label
|
|
5700
5782
|
}
|
|
5701
5783
|
),
|
|
5702
|
-
step.description && /* @__PURE__ */
|
|
5784
|
+
step.description && /* @__PURE__ */ jsx65(
|
|
5703
5785
|
"span",
|
|
5704
5786
|
{
|
|
5705
5787
|
className: cn(
|
|
@@ -5710,9 +5792,9 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5710
5792
|
children: step.description
|
|
5711
5793
|
}
|
|
5712
5794
|
),
|
|
5713
|
-
/* @__PURE__ */
|
|
5795
|
+
/* @__PURE__ */ jsx65("span", { className: "sr-only", children: state === "complete" ? labels?.completed ?? " (completed)" : state === "current" ? labels?.current ?? " (current step)" : labels?.upcoming ?? " (upcoming)" })
|
|
5714
5796
|
] });
|
|
5715
|
-
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */
|
|
5797
|
+
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ jsx65(
|
|
5716
5798
|
"button",
|
|
5717
5799
|
{
|
|
5718
5800
|
type: "button",
|
|
@@ -5721,15 +5803,15 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5721
5803
|
className: cn(rowClassName, focusClass),
|
|
5722
5804
|
children
|
|
5723
5805
|
}
|
|
5724
|
-
) : /* @__PURE__ */
|
|
5806
|
+
) : /* @__PURE__ */ jsx65("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
5725
5807
|
if (vertical) {
|
|
5726
|
-
return /* @__PURE__ */
|
|
5808
|
+
return /* @__PURE__ */ jsx65("li", { className: "flex", children: renderRow(
|
|
5727
5809
|
/* @__PURE__ */ jsxs45(Fragment13, { children: [
|
|
5728
5810
|
/* @__PURE__ */ jsxs45("div", { className: "flex flex-col items-center", children: [
|
|
5729
5811
|
marker,
|
|
5730
|
-
!isLast && /* @__PURE__ */
|
|
5812
|
+
!isLast && /* @__PURE__ */ jsx65("span", { "aria-hidden": "true", className: "my-1 w-px flex-1 rounded-full bg-border" })
|
|
5731
5813
|
] }),
|
|
5732
|
-
/* @__PURE__ */
|
|
5814
|
+
/* @__PURE__ */ jsx65("div", { className: cn("min-w-0 pb-6", titleCentered && verticalTitlePad), children: label })
|
|
5733
5815
|
] }),
|
|
5734
5816
|
"flex w-full items-stretch gap-3 text-left"
|
|
5735
5817
|
) }, step.label);
|
|
@@ -5743,7 +5825,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5743
5825
|
] }),
|
|
5744
5826
|
"flex min-w-0 flex-1 flex-col items-center gap-2 text-center"
|
|
5745
5827
|
),
|
|
5746
|
-
!isLast && /* @__PURE__ */
|
|
5828
|
+
!isLast && /* @__PURE__ */ jsx65(
|
|
5747
5829
|
"span",
|
|
5748
5830
|
{
|
|
5749
5831
|
"aria-hidden": "true",
|
|
@@ -5760,7 +5842,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5760
5842
|
] }),
|
|
5761
5843
|
cn("flex min-w-0 text-left", gapClass, titleCentered ? "items-center" : "items-start")
|
|
5762
5844
|
),
|
|
5763
|
-
!isLast && /* @__PURE__ */
|
|
5845
|
+
!isLast && /* @__PURE__ */ jsx65(
|
|
5764
5846
|
"span",
|
|
5765
5847
|
{
|
|
5766
5848
|
"aria-hidden": "true",
|
|
@@ -5775,7 +5857,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5775
5857
|
|
|
5776
5858
|
// src/components/file-upload/FileUpload.tsx
|
|
5777
5859
|
import * as React65 from "react";
|
|
5778
|
-
import { jsx as
|
|
5860
|
+
import { jsx as jsx66, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
5779
5861
|
function formatSize(bytes) {
|
|
5780
5862
|
if (bytes < 1024) return `${bytes} B`;
|
|
5781
5863
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -5846,7 +5928,7 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5846
5928
|
children: [
|
|
5847
5929
|
/* @__PURE__ */ jsxs46("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
5848
5930
|
label,
|
|
5849
|
-
/* @__PURE__ */
|
|
5931
|
+
/* @__PURE__ */ jsx66(
|
|
5850
5932
|
"input",
|
|
5851
5933
|
{
|
|
5852
5934
|
ref,
|
|
@@ -5864,15 +5946,15 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5864
5946
|
}
|
|
5865
5947
|
)
|
|
5866
5948
|
] }),
|
|
5867
|
-
/* @__PURE__ */
|
|
5949
|
+
/* @__PURE__ */ jsx66("p", { className: "mt-1 text-xs text-muted-foreground", children: hint ?? (accept ? `Accepted: ${accept}` : "Any file type") })
|
|
5868
5950
|
]
|
|
5869
5951
|
}
|
|
5870
5952
|
),
|
|
5871
|
-
current.length > 0 && /* @__PURE__ */
|
|
5953
|
+
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: [
|
|
5872
5954
|
/* @__PURE__ */ jsxs46("div", { className: "min-w-0", children: [
|
|
5873
|
-
/* @__PURE__ */
|
|
5874
|
-
/* @__PURE__ */
|
|
5875
|
-
progress?.[file.name] !== void 0 && /* @__PURE__ */
|
|
5955
|
+
/* @__PURE__ */ jsx66("p", { className: "truncate text-sm", children: file.name }),
|
|
5956
|
+
/* @__PURE__ */ jsx66("p", { className: "text-xs text-muted-foreground", children: formatSize(file.size) }),
|
|
5957
|
+
progress?.[file.name] !== void 0 && /* @__PURE__ */ jsx66(
|
|
5876
5958
|
"div",
|
|
5877
5959
|
{
|
|
5878
5960
|
role: "progressbar",
|
|
@@ -5881,11 +5963,11 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5881
5963
|
"aria-valuemax": 100,
|
|
5882
5964
|
"aria-label": uploadingLabel(file),
|
|
5883
5965
|
className: "mt-1 h-1.5 w-40 overflow-hidden rounded-full bg-muted",
|
|
5884
|
-
children: /* @__PURE__ */
|
|
5966
|
+
children: /* @__PURE__ */ jsx66("div", { className: "h-full bg-primary", style: { width: `${progress[file.name]}%` } })
|
|
5885
5967
|
}
|
|
5886
5968
|
)
|
|
5887
5969
|
] }),
|
|
5888
|
-
/* @__PURE__ */
|
|
5970
|
+
/* @__PURE__ */ jsx66(
|
|
5889
5971
|
"button",
|
|
5890
5972
|
{
|
|
5891
5973
|
type: "button",
|
|
@@ -5901,17 +5983,17 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5901
5983
|
|
|
5902
5984
|
// src/components/timeline/Timeline.tsx
|
|
5903
5985
|
import * as React66 from "react";
|
|
5904
|
-
import { jsx as
|
|
5986
|
+
import { jsx as jsx67, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
5905
5987
|
var Timeline = React66.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
5906
|
-
return /* @__PURE__ */
|
|
5907
|
-
index < items.length - 1 && /* @__PURE__ */
|
|
5988
|
+
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: [
|
|
5989
|
+
index < items.length - 1 && /* @__PURE__ */ jsx67(
|
|
5908
5990
|
"span",
|
|
5909
5991
|
{
|
|
5910
5992
|
"aria-hidden": "true",
|
|
5911
5993
|
className: "absolute left-[5.5px] top-4 -bottom-7 w-px bg-border"
|
|
5912
5994
|
}
|
|
5913
5995
|
),
|
|
5914
|
-
/* @__PURE__ */
|
|
5996
|
+
/* @__PURE__ */ jsx67("div", { className: "relative z-10 flex flex-col items-center", children: /* @__PURE__ */ jsx67(
|
|
5915
5997
|
"span",
|
|
5916
5998
|
{
|
|
5917
5999
|
"aria-hidden": "true",
|
|
@@ -5922,21 +6004,21 @@ var Timeline = React66.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
5922
6004
|
}
|
|
5923
6005
|
) }),
|
|
5924
6006
|
/* @__PURE__ */ jsxs47("div", { className: "min-w-0 pb-1", children: [
|
|
5925
|
-
item.period && /* @__PURE__ */
|
|
5926
|
-
/* @__PURE__ */
|
|
5927
|
-
item.description && /* @__PURE__ */
|
|
5928
|
-
item.icon && /* @__PURE__ */
|
|
6007
|
+
item.period && /* @__PURE__ */ jsx67("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
|
|
6008
|
+
/* @__PURE__ */ jsx67("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
|
|
6009
|
+
item.description && /* @__PURE__ */ jsx67("p", { className: "mt-1 text-sm text-muted-foreground", children: item.description }),
|
|
6010
|
+
item.icon && /* @__PURE__ */ jsx67("div", { className: "mt-1 text-muted-foreground [&_svg]:size-4", children: item.icon })
|
|
5929
6011
|
] })
|
|
5930
6012
|
] }, `${item.title}-${index}`)) });
|
|
5931
6013
|
});
|
|
5932
6014
|
|
|
5933
6015
|
// src/components/block/Block.tsx
|
|
5934
6016
|
import * as React67 from "react";
|
|
5935
|
-
import { jsx as
|
|
6017
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
5936
6018
|
var Block = React67.forwardRef(
|
|
5937
6019
|
({ as = "div", inline, muted, className, ...props }, ref) => {
|
|
5938
6020
|
const Tag = inline ? "span" : as;
|
|
5939
|
-
return /* @__PURE__ */
|
|
6021
|
+
return /* @__PURE__ */ jsx68(
|
|
5940
6022
|
Tag,
|
|
5941
6023
|
{
|
|
5942
6024
|
ref,
|
|
@@ -5950,7 +6032,7 @@ Block.displayName = "Block";
|
|
|
5950
6032
|
|
|
5951
6033
|
// src/components/flex/Flex.tsx
|
|
5952
6034
|
import * as React68 from "react";
|
|
5953
|
-
import { jsx as
|
|
6035
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
5954
6036
|
var justifyClasses = {
|
|
5955
6037
|
start: "justify-start",
|
|
5956
6038
|
center: "justify-center",
|
|
@@ -5970,7 +6052,7 @@ var Flex = React68.forwardRef(
|
|
|
5970
6052
|
({ direction = "row", align, justify, wrap, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
5971
6053
|
const Tag = as;
|
|
5972
6054
|
const gapResolved = resolveGap(gap);
|
|
5973
|
-
return /* @__PURE__ */
|
|
6055
|
+
return /* @__PURE__ */ jsx69(
|
|
5974
6056
|
Tag,
|
|
5975
6057
|
{
|
|
5976
6058
|
ref,
|
|
@@ -6005,7 +6087,7 @@ var FlexItem = React68.forwardRef(
|
|
|
6005
6087
|
...shrink === false ? { flexShrink: 0 } : typeof shrink === "string" && shrink ? { flexShrink: Number(shrink) || shrink } : {},
|
|
6006
6088
|
...basis ? { flexBasis: basis } : {}
|
|
6007
6089
|
};
|
|
6008
|
-
return /* @__PURE__ */
|
|
6090
|
+
return /* @__PURE__ */ jsx69(
|
|
6009
6091
|
Tag,
|
|
6010
6092
|
{
|
|
6011
6093
|
ref,
|
|
@@ -6020,7 +6102,7 @@ FlexItem.displayName = "FlexItem";
|
|
|
6020
6102
|
|
|
6021
6103
|
// src/components/grid/Grid.tsx
|
|
6022
6104
|
import * as React69 from "react";
|
|
6023
|
-
import { jsx as
|
|
6105
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
6024
6106
|
var BASE_COLS = {
|
|
6025
6107
|
1: "grid-cols-1",
|
|
6026
6108
|
2: "grid-cols-2",
|
|
@@ -6089,7 +6171,7 @@ var Grid = React69.forwardRef(
|
|
|
6089
6171
|
({ cols, smCols, mdCols, lgCols, minCol, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
6090
6172
|
const Tag = as;
|
|
6091
6173
|
const gapResolved = resolveGap(gap);
|
|
6092
|
-
return /* @__PURE__ */
|
|
6174
|
+
return /* @__PURE__ */ jsx70(
|
|
6093
6175
|
Tag,
|
|
6094
6176
|
{
|
|
6095
6177
|
ref,
|
|
@@ -6116,7 +6198,7 @@ Grid.displayName = "Grid";
|
|
|
6116
6198
|
var GridItem = React69.forwardRef(
|
|
6117
6199
|
({ span, smSpan, mdSpan, lgSpan, as = "div", className, ...props }, ref) => {
|
|
6118
6200
|
const Tag = as;
|
|
6119
|
-
return /* @__PURE__ */
|
|
6201
|
+
return /* @__PURE__ */ jsx70(
|
|
6120
6202
|
Tag,
|
|
6121
6203
|
{
|
|
6122
6204
|
ref,
|
|
@@ -6136,7 +6218,7 @@ GridItem.displayName = "GridItem";
|
|
|
6136
6218
|
|
|
6137
6219
|
// src/components/container/Container.tsx
|
|
6138
6220
|
import * as React70 from "react";
|
|
6139
|
-
import { jsx as
|
|
6221
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
6140
6222
|
var widthClasses = {
|
|
6141
6223
|
sm: "max-w-3xl",
|
|
6142
6224
|
md: "max-w-5xl",
|
|
@@ -6152,7 +6234,7 @@ var paddingClasses = {
|
|
|
6152
6234
|
};
|
|
6153
6235
|
var Container = React70.forwardRef(function Container2({ width = "lg", padding = "md", as = "div", className, ...props }, ref) {
|
|
6154
6236
|
const Tag = as;
|
|
6155
|
-
return /* @__PURE__ */
|
|
6237
|
+
return /* @__PURE__ */ jsx71(
|
|
6156
6238
|
Tag,
|
|
6157
6239
|
{
|
|
6158
6240
|
ref,
|
|
@@ -6164,7 +6246,7 @@ var Container = React70.forwardRef(function Container2({ width = "lg", padding =
|
|
|
6164
6246
|
|
|
6165
6247
|
// src/components/section/Section.tsx
|
|
6166
6248
|
import * as React71 from "react";
|
|
6167
|
-
import { jsx as
|
|
6249
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
6168
6250
|
var toneClasses2 = {
|
|
6169
6251
|
default: "bg-background text-foreground",
|
|
6170
6252
|
muted: "bg-muted/40 text-foreground",
|
|
@@ -6218,7 +6300,7 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6218
6300
|
}, ref) {
|
|
6219
6301
|
const Tag = as;
|
|
6220
6302
|
const toneStyle = tone === "inverse" ? inverseVars : tone === "brand" ? brandVars : void 0;
|
|
6221
|
-
return /* @__PURE__ */
|
|
6303
|
+
return /* @__PURE__ */ jsx72(
|
|
6222
6304
|
Tag,
|
|
6223
6305
|
{
|
|
6224
6306
|
ref,
|
|
@@ -6226,14 +6308,14 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6226
6308
|
className: cn("w-full", toneClasses2[tone], paddingClasses2[padding], className),
|
|
6227
6309
|
style: { ...toneStyle, ...style },
|
|
6228
6310
|
...props,
|
|
6229
|
-
children: container ? /* @__PURE__ */
|
|
6311
|
+
children: container ? /* @__PURE__ */ jsx72(Container, { width, className: containerClassName, children }) : children
|
|
6230
6312
|
}
|
|
6231
6313
|
);
|
|
6232
6314
|
});
|
|
6233
6315
|
|
|
6234
6316
|
// src/components/hero/Hero.tsx
|
|
6235
6317
|
import * as React72 from "react";
|
|
6236
|
-
import { jsx as
|
|
6318
|
+
import { jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
6237
6319
|
var titleSizes = {
|
|
6238
6320
|
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
6239
6321
|
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
@@ -6273,7 +6355,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6273
6355
|
overlay && "max-w-2xl"
|
|
6274
6356
|
),
|
|
6275
6357
|
children: [
|
|
6276
|
-
badge && /* @__PURE__ */
|
|
6358
|
+
badge && /* @__PURE__ */ jsx73(
|
|
6277
6359
|
"div",
|
|
6278
6360
|
{
|
|
6279
6361
|
className: cn(
|
|
@@ -6284,7 +6366,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6284
6366
|
children: badge
|
|
6285
6367
|
}
|
|
6286
6368
|
),
|
|
6287
|
-
eyebrow && /* @__PURE__ */
|
|
6369
|
+
eyebrow && /* @__PURE__ */ jsx73(
|
|
6288
6370
|
"p",
|
|
6289
6371
|
{
|
|
6290
6372
|
className: cn(
|
|
@@ -6295,7 +6377,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6295
6377
|
children: eyebrow
|
|
6296
6378
|
}
|
|
6297
6379
|
),
|
|
6298
|
-
/* @__PURE__ */
|
|
6380
|
+
/* @__PURE__ */ jsx73(
|
|
6299
6381
|
Heading2,
|
|
6300
6382
|
{
|
|
6301
6383
|
className: cn(
|
|
@@ -6307,7 +6389,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6307
6389
|
children: title
|
|
6308
6390
|
}
|
|
6309
6391
|
),
|
|
6310
|
-
description && /* @__PURE__ */
|
|
6392
|
+
description && /* @__PURE__ */ jsx73(
|
|
6311
6393
|
"p",
|
|
6312
6394
|
{
|
|
6313
6395
|
className: cn(
|
|
@@ -6319,7 +6401,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6319
6401
|
children: description
|
|
6320
6402
|
}
|
|
6321
6403
|
),
|
|
6322
|
-
actions && /* @__PURE__ */
|
|
6404
|
+
actions && /* @__PURE__ */ jsx73(
|
|
6323
6405
|
"div",
|
|
6324
6406
|
{
|
|
6325
6407
|
className: cn(
|
|
@@ -6343,7 +6425,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6343
6425
|
),
|
|
6344
6426
|
...props,
|
|
6345
6427
|
children: [
|
|
6346
|
-
media && /* @__PURE__ */
|
|
6428
|
+
media && /* @__PURE__ */ jsx73(
|
|
6347
6429
|
"div",
|
|
6348
6430
|
{
|
|
6349
6431
|
className: cn(
|
|
@@ -6353,8 +6435,8 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6353
6435
|
children: media
|
|
6354
6436
|
}
|
|
6355
6437
|
),
|
|
6356
|
-
/* @__PURE__ */
|
|
6357
|
-
/* @__PURE__ */
|
|
6438
|
+
/* @__PURE__ */ jsx73("div", { "aria-hidden": "true", className: "absolute inset-0 -z-10 bg-foreground/60" }),
|
|
6439
|
+
/* @__PURE__ */ jsx73("div", { className: "relative w-full px-4 sm:px-6 lg:px-10", children: copy })
|
|
6358
6440
|
]
|
|
6359
6441
|
}
|
|
6360
6442
|
);
|
|
@@ -6362,7 +6444,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6362
6444
|
if (layout === "centered") {
|
|
6363
6445
|
return /* @__PURE__ */ jsxs48(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
6364
6446
|
copy,
|
|
6365
|
-
media && /* @__PURE__ */
|
|
6447
|
+
media && /* @__PURE__ */ jsx73("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
6366
6448
|
] });
|
|
6367
6449
|
}
|
|
6368
6450
|
if (layout === "stacked") {
|
|
@@ -6374,7 +6456,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6374
6456
|
...props,
|
|
6375
6457
|
children: [
|
|
6376
6458
|
copy,
|
|
6377
|
-
media && /* @__PURE__ */
|
|
6459
|
+
media && /* @__PURE__ */ jsx73("div", { className: cn("min-w-0 w-full", mediaClassName), children: media })
|
|
6378
6460
|
]
|
|
6379
6461
|
}
|
|
6380
6462
|
);
|
|
@@ -6386,8 +6468,8 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6386
6468
|
className: cn("grid w-full items-center gap-10 lg:grid-cols-2 lg:gap-16 xl:gap-20", className),
|
|
6387
6469
|
...props,
|
|
6388
6470
|
children: [
|
|
6389
|
-
/* @__PURE__ */
|
|
6390
|
-
media && /* @__PURE__ */
|
|
6471
|
+
/* @__PURE__ */ jsx73("div", { className: cn(mediaPosition === "left" && "lg:order-2"), children: copy }),
|
|
6472
|
+
media && /* @__PURE__ */ jsx73("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1", mediaClassName), children: media })
|
|
6391
6473
|
]
|
|
6392
6474
|
}
|
|
6393
6475
|
);
|
|
@@ -6395,7 +6477,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6395
6477
|
|
|
6396
6478
|
// src/components/stat-band/StatBand.tsx
|
|
6397
6479
|
import * as React73 from "react";
|
|
6398
|
-
import { jsx as
|
|
6480
|
+
import { jsx as jsx74, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
6399
6481
|
var columnClasses = {
|
|
6400
6482
|
2: "sm:grid-cols-2",
|
|
6401
6483
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6406,15 +6488,32 @@ var valueClasses = {
|
|
|
6406
6488
|
md: "text-3xl",
|
|
6407
6489
|
lg: "text-4xl sm:text-5xl"
|
|
6408
6490
|
};
|
|
6409
|
-
var
|
|
6410
|
-
|
|
6491
|
+
var panelValueClasses = {
|
|
6492
|
+
sm: "text-lg",
|
|
6493
|
+
md: "text-xl sm:text-2xl",
|
|
6494
|
+
lg: "text-2xl sm:text-3xl"
|
|
6495
|
+
};
|
|
6496
|
+
var StatBand = React73.forwardRef(function StatBand2({
|
|
6497
|
+
items,
|
|
6498
|
+
columns = 3,
|
|
6499
|
+
align = "center",
|
|
6500
|
+
size = "md",
|
|
6501
|
+
divided = true,
|
|
6502
|
+
variant = "plain",
|
|
6503
|
+
valueClassName,
|
|
6504
|
+
className,
|
|
6505
|
+
...props
|
|
6506
|
+
}, ref) {
|
|
6507
|
+
const panel = variant === "panel";
|
|
6508
|
+
return /* @__PURE__ */ jsx74(
|
|
6411
6509
|
"dl",
|
|
6412
6510
|
{
|
|
6413
6511
|
ref,
|
|
6414
6512
|
className: cn(
|
|
6415
|
-
"grid w-full
|
|
6513
|
+
"grid w-full",
|
|
6514
|
+
panel ? "gap-0 rounded-lg border border-border bg-card" : "gap-8",
|
|
6416
6515
|
columnClasses[columns],
|
|
6417
|
-
divided && "sm:divide-x sm:divide-border",
|
|
6516
|
+
divided && (panel ? "divide-y divide-border sm:divide-x sm:divide-y-0" : "sm:divide-x sm:divide-border"),
|
|
6418
6517
|
className
|
|
6419
6518
|
),
|
|
6420
6519
|
...props,
|
|
@@ -6422,15 +6521,35 @@ var StatBand = React73.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
6422
6521
|
"div",
|
|
6423
6522
|
{
|
|
6424
6523
|
className: cn(
|
|
6425
|
-
"flex min-w-0 flex-col gap-1
|
|
6524
|
+
"flex min-w-0 flex-col gap-1",
|
|
6525
|
+
panel ? "px-4 py-3 sm:px-5 sm:py-4" : "sm:px-6 sm:first:pl-0 sm:last:pr-0",
|
|
6426
6526
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6427
6527
|
),
|
|
6428
6528
|
children: [
|
|
6429
|
-
/* @__PURE__ */ jsxs49(
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6529
|
+
/* @__PURE__ */ jsxs49(
|
|
6530
|
+
"dt",
|
|
6531
|
+
{
|
|
6532
|
+
className: cn(
|
|
6533
|
+
"order-2 text-muted-foreground",
|
|
6534
|
+
panel ? "text-xs font-medium uppercase tracking-wide" : "text-sm font-medium"
|
|
6535
|
+
),
|
|
6536
|
+
children: [
|
|
6537
|
+
item.label,
|
|
6538
|
+
item.hint && /* @__PURE__ */ jsx74("span", { className: cn("mt-1 block font-normal", panel ? "text-xs normal-case tracking-normal" : "text-xs"), children: item.hint })
|
|
6539
|
+
]
|
|
6540
|
+
}
|
|
6541
|
+
),
|
|
6542
|
+
/* @__PURE__ */ jsx74(
|
|
6543
|
+
"dd",
|
|
6544
|
+
{
|
|
6545
|
+
className: cn(
|
|
6546
|
+
"order-1 m-0 font-semibold tracking-tight tabular-nums",
|
|
6547
|
+
panel ? panelValueClasses[size] : valueClasses[size],
|
|
6548
|
+
valueClassName
|
|
6549
|
+
),
|
|
6550
|
+
children: item.value
|
|
6551
|
+
}
|
|
6552
|
+
)
|
|
6434
6553
|
]
|
|
6435
6554
|
},
|
|
6436
6555
|
item.label
|
|
@@ -6441,7 +6560,7 @@ var StatBand = React73.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
6441
6560
|
|
|
6442
6561
|
// src/components/cta-section/CTASection.tsx
|
|
6443
6562
|
import * as React74 from "react";
|
|
6444
|
-
import { jsx as
|
|
6563
|
+
import { jsx as jsx75, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
6445
6564
|
var sizePadding = {
|
|
6446
6565
|
sm: "md",
|
|
6447
6566
|
md: "lg",
|
|
@@ -6459,7 +6578,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6459
6578
|
className,
|
|
6460
6579
|
...props
|
|
6461
6580
|
}, ref) {
|
|
6462
|
-
return /* @__PURE__ */
|
|
6581
|
+
return /* @__PURE__ */ jsx75(
|
|
6463
6582
|
Section,
|
|
6464
6583
|
{
|
|
6465
6584
|
ref,
|
|
@@ -6476,10 +6595,10 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6476
6595
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6477
6596
|
),
|
|
6478
6597
|
children: [
|
|
6479
|
-
eyebrow && /* @__PURE__ */
|
|
6480
|
-
/* @__PURE__ */
|
|
6481
|
-
description && /* @__PURE__ */
|
|
6482
|
-
actions && /* @__PURE__ */
|
|
6598
|
+
eyebrow && /* @__PURE__ */ jsx75("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6599
|
+
/* @__PURE__ */ jsx75("h2", { className: "max-w-3xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl", children: title }),
|
|
6600
|
+
description && /* @__PURE__ */ jsx75("p", { className: cn("max-w-2xl text-base leading-relaxed text-muted-foreground sm:text-lg"), children: description }),
|
|
6601
|
+
actions && /* @__PURE__ */ jsx75("div", { className: cn("mt-2 flex flex-wrap items-center gap-3", align === "center" && "justify-center"), children: actions })
|
|
6483
6602
|
]
|
|
6484
6603
|
}
|
|
6485
6604
|
)
|
|
@@ -6489,9 +6608,9 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6489
6608
|
|
|
6490
6609
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
6491
6610
|
import * as React75 from "react";
|
|
6492
|
-
import { Fragment as Fragment14, jsx as
|
|
6611
|
+
import { Fragment as Fragment14, jsx as jsx76, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
6493
6612
|
function CheckMark() {
|
|
6494
|
-
return /* @__PURE__ */
|
|
6613
|
+
return /* @__PURE__ */ jsx76(
|
|
6495
6614
|
"svg",
|
|
6496
6615
|
{
|
|
6497
6616
|
"aria-hidden": "true",
|
|
@@ -6502,12 +6621,12 @@ function CheckMark() {
|
|
|
6502
6621
|
strokeLinecap: "round",
|
|
6503
6622
|
strokeLinejoin: "round",
|
|
6504
6623
|
className: "mx-auto h-5 w-5 text-success",
|
|
6505
|
-
children: /* @__PURE__ */
|
|
6624
|
+
children: /* @__PURE__ */ jsx76("path", { d: "m4 10.5 4 4 8-9" })
|
|
6506
6625
|
}
|
|
6507
6626
|
);
|
|
6508
6627
|
}
|
|
6509
6628
|
function DashMark() {
|
|
6510
|
-
return /* @__PURE__ */
|
|
6629
|
+
return /* @__PURE__ */ jsx76(
|
|
6511
6630
|
"svg",
|
|
6512
6631
|
{
|
|
6513
6632
|
"aria-hidden": "true",
|
|
@@ -6517,7 +6636,7 @@ function DashMark() {
|
|
|
6517
6636
|
strokeWidth: "2.2",
|
|
6518
6637
|
strokeLinecap: "round",
|
|
6519
6638
|
className: "mx-auto h-5 w-5 text-muted-foreground/60",
|
|
6520
|
-
children: /* @__PURE__ */
|
|
6639
|
+
children: /* @__PURE__ */ jsx76("path", { d: "M5 10h10" })
|
|
6521
6640
|
}
|
|
6522
6641
|
);
|
|
6523
6642
|
}
|
|
@@ -6533,11 +6652,11 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6533
6652
|
}, ref) {
|
|
6534
6653
|
const yes = valueLabels?.yes ?? "Included";
|
|
6535
6654
|
const no = valueLabels?.no ?? "Not included";
|
|
6536
|
-
return /* @__PURE__ */
|
|
6537
|
-
/* @__PURE__ */
|
|
6538
|
-
/* @__PURE__ */
|
|
6539
|
-
/* @__PURE__ */
|
|
6540
|
-
columns.map((column) => /* @__PURE__ */
|
|
6655
|
+
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: [
|
|
6656
|
+
/* @__PURE__ */ jsx76("caption", { className: "sr-only", children: caption }),
|
|
6657
|
+
/* @__PURE__ */ jsx76("thead", { children: /* @__PURE__ */ jsxs51("tr", { className: "border-b border-border", children: [
|
|
6658
|
+
/* @__PURE__ */ jsx76("th", { scope: "col", className: "min-w-48 px-5 py-4 text-left font-medium text-muted-foreground", children: featureLabel }),
|
|
6659
|
+
columns.map((column) => /* @__PURE__ */ jsx76(
|
|
6541
6660
|
"th",
|
|
6542
6661
|
{
|
|
6543
6662
|
scope: "col",
|
|
@@ -6550,21 +6669,21 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6550
6669
|
column.label
|
|
6551
6670
|
))
|
|
6552
6671
|
] }) }),
|
|
6553
|
-
/* @__PURE__ */
|
|
6672
|
+
/* @__PURE__ */ jsx76("tbody", { children: rows.map((row) => /* @__PURE__ */ jsxs51("tr", { className: "border-b border-border last:border-b-0", children: [
|
|
6554
6673
|
/* @__PURE__ */ jsxs51("th", { scope: "row", className: "px-5 py-4 text-left font-medium", children: [
|
|
6555
6674
|
row.feature,
|
|
6556
|
-
row.hint && /* @__PURE__ */
|
|
6675
|
+
row.hint && /* @__PURE__ */ jsx76("span", { className: "mt-1 block text-xs font-normal text-muted-foreground", children: row.hint })
|
|
6557
6676
|
] }),
|
|
6558
6677
|
columns.map((column, index) => {
|
|
6559
6678
|
const value = row.values[index];
|
|
6560
|
-
return /* @__PURE__ */
|
|
6679
|
+
return /* @__PURE__ */ jsx76(
|
|
6561
6680
|
"td",
|
|
6562
6681
|
{
|
|
6563
6682
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
6564
6683
|
children: typeof value === "boolean" ? /* @__PURE__ */ jsxs51(Fragment14, { children: [
|
|
6565
|
-
value ? /* @__PURE__ */
|
|
6566
|
-
/* @__PURE__ */
|
|
6567
|
-
] }) : /* @__PURE__ */
|
|
6684
|
+
value ? /* @__PURE__ */ jsx76(CheckMark, {}) : /* @__PURE__ */ jsx76(DashMark, {}),
|
|
6685
|
+
/* @__PURE__ */ jsx76("span", { className: "sr-only", children: value ? yes : no })
|
|
6686
|
+
] }) : /* @__PURE__ */ jsx76("span", { children: value ?? "" })
|
|
6568
6687
|
},
|
|
6569
6688
|
`${row.feature}-${column.label}`
|
|
6570
6689
|
);
|
|
@@ -6576,7 +6695,7 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6576
6695
|
|
|
6577
6696
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
6578
6697
|
import * as React76 from "react";
|
|
6579
|
-
import { Fragment as Fragment15, jsx as
|
|
6698
|
+
import { Fragment as Fragment15, jsx as jsx77, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
6580
6699
|
var columnClasses2 = {
|
|
6581
6700
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
6582
6701
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -6607,7 +6726,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6607
6726
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
6608
6727
|
);
|
|
6609
6728
|
return /* @__PURE__ */ jsxs52("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6610
|
-
caption && /* @__PURE__ */
|
|
6729
|
+
caption && /* @__PURE__ */ jsx77(
|
|
6611
6730
|
"p",
|
|
6612
6731
|
{
|
|
6613
6732
|
className: cn(
|
|
@@ -6617,12 +6736,12 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6617
6736
|
children: caption
|
|
6618
6737
|
}
|
|
6619
6738
|
),
|
|
6620
|
-
/* @__PURE__ */
|
|
6739
|
+
/* @__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) => {
|
|
6621
6740
|
const content = /* @__PURE__ */ jsxs52(Fragment15, { children: [
|
|
6622
|
-
/* @__PURE__ */
|
|
6623
|
-
/* @__PURE__ */
|
|
6741
|
+
/* @__PURE__ */ jsx77("span", { className: logoClass, "aria-hidden": "true", children: item.logo }),
|
|
6742
|
+
/* @__PURE__ */ jsx77("span", { className: "sr-only", children: item.name })
|
|
6624
6743
|
] });
|
|
6625
|
-
return /* @__PURE__ */
|
|
6744
|
+
return /* @__PURE__ */ jsx77("li", { className: cn("min-w-0", align === "center" ? "justify-self-center" : "justify-self-start"), children: item.href ? /* @__PURE__ */ jsx77(
|
|
6626
6745
|
Link3,
|
|
6627
6746
|
{
|
|
6628
6747
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -6636,7 +6755,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6636
6755
|
|
|
6637
6756
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
6638
6757
|
import * as React77 from "react";
|
|
6639
|
-
import { Fragment as Fragment16, jsx as
|
|
6758
|
+
import { Fragment as Fragment16, jsx as jsx78, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
6640
6759
|
var columnClasses3 = {
|
|
6641
6760
|
2: "sm:grid-cols-2",
|
|
6642
6761
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6650,21 +6769,21 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6650
6769
|
align === "center" && "items-center text-center"
|
|
6651
6770
|
);
|
|
6652
6771
|
const content = (feature) => /* @__PURE__ */ jsxs53(Fragment16, { children: [
|
|
6653
|
-
feature.icon && /* @__PURE__ */
|
|
6654
|
-
/* @__PURE__ */
|
|
6655
|
-
feature.description && /* @__PURE__ */
|
|
6772
|
+
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 }),
|
|
6773
|
+
/* @__PURE__ */ jsx78("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
6774
|
+
feature.description && /* @__PURE__ */ jsx78("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
6656
6775
|
feature.href && feature.actionLabel && /* @__PURE__ */ jsxs53("span", { className: "mt-auto pt-2 text-sm font-medium text-primary-ink", children: [
|
|
6657
6776
|
feature.actionLabel,
|
|
6658
6777
|
" ",
|
|
6659
|
-
/* @__PURE__ */
|
|
6778
|
+
/* @__PURE__ */ jsx78("span", { "aria-hidden": "true", children: "\u2192" })
|
|
6660
6779
|
] })
|
|
6661
6780
|
] });
|
|
6662
|
-
return /* @__PURE__ */
|
|
6781
|
+
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)) });
|
|
6663
6782
|
});
|
|
6664
6783
|
|
|
6665
6784
|
// src/components/feature-row/FeatureRow.tsx
|
|
6666
6785
|
import * as React78 from "react";
|
|
6667
|
-
import { jsx as
|
|
6786
|
+
import { jsx as jsx79, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
6668
6787
|
var titleSizes2 = {
|
|
6669
6788
|
md: "text-3xl",
|
|
6670
6789
|
lg: "text-3xl sm:text-4xl"
|
|
@@ -6690,12 +6809,12 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6690
6809
|
...props,
|
|
6691
6810
|
children: [
|
|
6692
6811
|
/* @__PURE__ */ jsxs54("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
6693
|
-
eyebrow && /* @__PURE__ */
|
|
6694
|
-
/* @__PURE__ */
|
|
6695
|
-
description && /* @__PURE__ */
|
|
6696
|
-
actions && /* @__PURE__ */
|
|
6812
|
+
eyebrow && /* @__PURE__ */ jsx79("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6813
|
+
/* @__PURE__ */ jsx79(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
6814
|
+
description && /* @__PURE__ */ jsx79("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
6815
|
+
actions && /* @__PURE__ */ jsx79("div", { className: "mt-7 flex flex-wrap items-center gap-3", children: actions })
|
|
6697
6816
|
] }),
|
|
6698
|
-
/* @__PURE__ */
|
|
6817
|
+
/* @__PURE__ */ jsx79("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1"), children: media })
|
|
6699
6818
|
]
|
|
6700
6819
|
}
|
|
6701
6820
|
);
|
|
@@ -6703,7 +6822,7 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6703
6822
|
|
|
6704
6823
|
// src/components/testimonial/Testimonial.tsx
|
|
6705
6824
|
import * as React79 from "react";
|
|
6706
|
-
import { jsx as
|
|
6825
|
+
import { jsx as jsx80, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
6707
6826
|
var quoteSizes = {
|
|
6708
6827
|
sm: "text-base",
|
|
6709
6828
|
md: "text-lg",
|
|
@@ -6721,17 +6840,17 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6721
6840
|
),
|
|
6722
6841
|
...props,
|
|
6723
6842
|
children: [
|
|
6724
|
-
logo && /* @__PURE__ */
|
|
6725
|
-
/* @__PURE__ */
|
|
6843
|
+
logo && /* @__PURE__ */ jsx80("div", { className: "flex items-center", children: logo }),
|
|
6844
|
+
/* @__PURE__ */ jsx80("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */ jsxs55("p", { children: [
|
|
6726
6845
|
"\u201C",
|
|
6727
6846
|
quote,
|
|
6728
6847
|
"\u201D"
|
|
6729
6848
|
] }) }),
|
|
6730
6849
|
/* @__PURE__ */ jsxs55("figcaption", { className: "flex items-center gap-3", children: [
|
|
6731
|
-
avatar && /* @__PURE__ */
|
|
6850
|
+
avatar && /* @__PURE__ */ jsx80("div", { className: "shrink-0", children: avatar }),
|
|
6732
6851
|
/* @__PURE__ */ jsxs55("div", { className: "min-w-0", children: [
|
|
6733
|
-
/* @__PURE__ */
|
|
6734
|
-
(role || company) && /* @__PURE__ */
|
|
6852
|
+
/* @__PURE__ */ jsx80("p", { className: "text-sm font-semibold", children: name }),
|
|
6853
|
+
(role || company) && /* @__PURE__ */ jsx80("p", { className: "text-xs text-muted-foreground", children: [role, company].filter(Boolean).join(", ") })
|
|
6735
6854
|
] })
|
|
6736
6855
|
] })
|
|
6737
6856
|
]
|
|
@@ -6741,7 +6860,7 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6741
6860
|
|
|
6742
6861
|
// src/components/process-steps/ProcessSteps.tsx
|
|
6743
6862
|
import * as React80 from "react";
|
|
6744
|
-
import { jsx as
|
|
6863
|
+
import { jsx as jsx81, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
6745
6864
|
var columnClasses4 = {
|
|
6746
6865
|
2: "sm:grid-cols-2",
|
|
6747
6866
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6749,15 +6868,15 @@ var columnClasses4 = {
|
|
|
6749
6868
|
};
|
|
6750
6869
|
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", headingLevel = 3, className, ...props }, ref) {
|
|
6751
6870
|
const HeadingTag = { 2: "h2", 3: "h3", 4: "h4" }[headingLevel];
|
|
6752
|
-
return /* @__PURE__ */
|
|
6871
|
+
return /* @__PURE__ */ jsx81("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ jsxs56(
|
|
6753
6872
|
"li",
|
|
6754
6873
|
{
|
|
6755
6874
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
6756
6875
|
children: [
|
|
6757
|
-
/* @__PURE__ */
|
|
6876
|
+
/* @__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) }),
|
|
6758
6877
|
/* @__PURE__ */ jsxs56("div", { className: "min-w-0", children: [
|
|
6759
|
-
/* @__PURE__ */
|
|
6760
|
-
step.description && /* @__PURE__ */
|
|
6878
|
+
/* @__PURE__ */ jsx81(HeadingTag, { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
6879
|
+
step.description && /* @__PURE__ */ jsx81("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
6761
6880
|
] })
|
|
6762
6881
|
]
|
|
6763
6882
|
},
|
|
@@ -6767,7 +6886,7 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
6767
6886
|
|
|
6768
6887
|
// src/components/article-card/ArticleCard.tsx
|
|
6769
6888
|
import * as React81 from "react";
|
|
6770
|
-
import { jsx as
|
|
6889
|
+
import { jsx as jsx82, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
6771
6890
|
var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
6772
6891
|
title,
|
|
6773
6892
|
description,
|
|
@@ -6782,7 +6901,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6782
6901
|
}, ref) {
|
|
6783
6902
|
const Link3 = linkComponent ?? "a";
|
|
6784
6903
|
const compact = variant === "compact";
|
|
6785
|
-
return /* @__PURE__ */
|
|
6904
|
+
return /* @__PURE__ */ jsx82("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */ jsxs57(
|
|
6786
6905
|
Link3,
|
|
6787
6906
|
{
|
|
6788
6907
|
href,
|
|
@@ -6791,12 +6910,12 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6791
6910
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
6792
6911
|
),
|
|
6793
6912
|
children: [
|
|
6794
|
-
media && !compact && /* @__PURE__ */
|
|
6913
|
+
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 }),
|
|
6795
6914
|
/* @__PURE__ */ jsxs57("div", { className: cn("flex flex-1 flex-col gap-2", compact ? "p-4" : "p-5"), children: [
|
|
6796
|
-
eyebrow && /* @__PURE__ */
|
|
6797
|
-
/* @__PURE__ */
|
|
6798
|
-
description && /* @__PURE__ */
|
|
6799
|
-
meta && /* @__PURE__ */
|
|
6915
|
+
eyebrow && /* @__PURE__ */ jsx82("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6916
|
+
/* @__PURE__ */ jsx82("h3", { className: cn("font-semibold tracking-tight transition-colors group-hover:text-primary-ink", compact ? "text-base" : "text-lg"), children: title }),
|
|
6917
|
+
description && /* @__PURE__ */ jsx82("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6918
|
+
meta && /* @__PURE__ */ jsx82("div", { className: "mt-auto pt-2 text-xs text-muted-foreground", children: meta })
|
|
6800
6919
|
] })
|
|
6801
6920
|
]
|
|
6802
6921
|
}
|
|
@@ -6805,7 +6924,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6805
6924
|
|
|
6806
6925
|
// src/components/newsletter/Newsletter.tsx
|
|
6807
6926
|
import * as React82 from "react";
|
|
6808
|
-
import { jsx as
|
|
6927
|
+
import { jsx as jsx83, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
6809
6928
|
var Newsletter = React82.forwardRef(function Newsletter2({
|
|
6810
6929
|
title,
|
|
6811
6930
|
description,
|
|
@@ -6838,12 +6957,12 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6838
6957
|
}
|
|
6839
6958
|
};
|
|
6840
6959
|
return /* @__PURE__ */ jsxs58("div", { className: "w-full", children: [
|
|
6841
|
-
/* @__PURE__ */
|
|
6842
|
-
description && /* @__PURE__ */
|
|
6960
|
+
/* @__PURE__ */ jsx83(Heading2, { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
6961
|
+
description && /* @__PURE__ */ jsx83("p", { className: "mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6843
6962
|
/* @__PURE__ */ jsxs58("form", { ref, onSubmit: handleSubmit, className: cn("mt-5", className), ...props, children: [
|
|
6844
6963
|
/* @__PURE__ */ jsxs58("div", { className: cn("flex gap-2", layout === "inline" ? "flex-col sm:flex-row" : "flex-col"), children: [
|
|
6845
|
-
/* @__PURE__ */
|
|
6846
|
-
/* @__PURE__ */
|
|
6964
|
+
/* @__PURE__ */ jsx83("label", { htmlFor: id, className: "sr-only", children: label }),
|
|
6965
|
+
/* @__PURE__ */ jsx83(
|
|
6847
6966
|
Input,
|
|
6848
6967
|
{
|
|
6849
6968
|
id,
|
|
@@ -6858,12 +6977,12 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6858
6977
|
className: "sm:flex-1"
|
|
6859
6978
|
}
|
|
6860
6979
|
),
|
|
6861
|
-
/* @__PURE__ */
|
|
6980
|
+
/* @__PURE__ */ jsx83(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
6862
6981
|
] }),
|
|
6863
|
-
consent && /* @__PURE__ */
|
|
6982
|
+
consent && /* @__PURE__ */ jsx83("div", { className: "mt-3 text-xs leading-relaxed text-muted-foreground", children: consent }),
|
|
6864
6983
|
/* @__PURE__ */ jsxs58("div", { "aria-live": "polite", className: "mt-2 min-h-5 text-sm", children: [
|
|
6865
|
-
status === "success" && /* @__PURE__ */
|
|
6866
|
-
status === "error" && /* @__PURE__ */
|
|
6984
|
+
status === "success" && /* @__PURE__ */ jsx83("p", { className: "text-success", children: successMessage }),
|
|
6985
|
+
status === "error" && /* @__PURE__ */ jsx83("p", { role: "alert", className: "text-destructive", children: errorMessage })
|
|
6867
6986
|
] })
|
|
6868
6987
|
] })
|
|
6869
6988
|
] });
|
|
@@ -6871,25 +6990,25 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6871
6990
|
|
|
6872
6991
|
// src/components/contact-strip/ContactStrip.tsx
|
|
6873
6992
|
import * as React83 from "react";
|
|
6874
|
-
import { jsx as
|
|
6993
|
+
import { jsx as jsx84, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
6875
6994
|
var columnClasses5 = {
|
|
6876
6995
|
2: "sm:grid-cols-2",
|
|
6877
6996
|
3: "sm:grid-cols-3"
|
|
6878
6997
|
};
|
|
6879
6998
|
var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
6880
6999
|
const Link3 = linkComponent ?? "a";
|
|
6881
|
-
return /* @__PURE__ */
|
|
6882
|
-
item.icon && /* @__PURE__ */
|
|
7000
|
+
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: [
|
|
7001
|
+
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 }),
|
|
6883
7002
|
/* @__PURE__ */ jsxs59("div", { className: "min-w-0", children: [
|
|
6884
|
-
/* @__PURE__ */
|
|
6885
|
-
item.href ? /* @__PURE__ */
|
|
7003
|
+
/* @__PURE__ */ jsx84("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
7004
|
+
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 })
|
|
6886
7005
|
] })
|
|
6887
7006
|
] }, item.label)) });
|
|
6888
7007
|
});
|
|
6889
7008
|
|
|
6890
7009
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
6891
7010
|
import * as React84 from "react";
|
|
6892
|
-
import { jsx as
|
|
7011
|
+
import { jsx as jsx85, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
6893
7012
|
var toneClasses3 = {
|
|
6894
7013
|
muted: "bg-muted text-foreground",
|
|
6895
7014
|
brand: "bg-primary text-primary-foreground",
|
|
@@ -6915,7 +7034,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
6915
7034
|
setDismissed(true);
|
|
6916
7035
|
onDismiss?.();
|
|
6917
7036
|
};
|
|
6918
|
-
return /* @__PURE__ */
|
|
7037
|
+
return /* @__PURE__ */ jsx85(
|
|
6919
7038
|
"div",
|
|
6920
7039
|
{
|
|
6921
7040
|
ref,
|
|
@@ -6929,8 +7048,8 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
6929
7048
|
),
|
|
6930
7049
|
...props,
|
|
6931
7050
|
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: [
|
|
6932
|
-
/* @__PURE__ */
|
|
6933
|
-
href && actionLabel && /* @__PURE__ */
|
|
7051
|
+
/* @__PURE__ */ jsx85("p", { className: "min-w-0 text-center", children: message }),
|
|
7052
|
+
href && actionLabel && /* @__PURE__ */ jsx85(
|
|
6934
7053
|
Link3,
|
|
6935
7054
|
{
|
|
6936
7055
|
href,
|
|
@@ -6938,14 +7057,14 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
6938
7057
|
children: actionLabel
|
|
6939
7058
|
}
|
|
6940
7059
|
),
|
|
6941
|
-
dismissible && /* @__PURE__ */
|
|
7060
|
+
dismissible && /* @__PURE__ */ jsx85(
|
|
6942
7061
|
"button",
|
|
6943
7062
|
{
|
|
6944
7063
|
type: "button",
|
|
6945
7064
|
onClick: dismiss2,
|
|
6946
7065
|
"aria-label": "Dismiss announcement",
|
|
6947
7066
|
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",
|
|
6948
|
-
children: /* @__PURE__ */
|
|
7067
|
+
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" }) })
|
|
6949
7068
|
}
|
|
6950
7069
|
)
|
|
6951
7070
|
] })
|
|
@@ -6956,7 +7075,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
6956
7075
|
|
|
6957
7076
|
// src/components/deal-card/DealCard.tsx
|
|
6958
7077
|
import * as React85 from "react";
|
|
6959
|
-
import { jsx as
|
|
7078
|
+
import { jsx as jsx86, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
6960
7079
|
var statusConfig = {
|
|
6961
7080
|
available: { label: "Available", variant: "success" },
|
|
6962
7081
|
"under-nda": { label: "Under NDA", variant: "info" },
|
|
@@ -6987,26 +7106,26 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
6987
7106
|
return /* @__PURE__ */ jsxs61(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
6988
7107
|
/* @__PURE__ */ jsxs61(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
6989
7108
|
/* @__PURE__ */ jsxs61("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6990
|
-
/* @__PURE__ */
|
|
6991
|
-
/* @__PURE__ */
|
|
7109
|
+
/* @__PURE__ */ jsx86("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: sector }),
|
|
7110
|
+
/* @__PURE__ */ jsx86(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
6992
7111
|
] }),
|
|
6993
|
-
/* @__PURE__ */
|
|
6994
|
-
location && /* @__PURE__ */
|
|
7112
|
+
/* @__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 }),
|
|
7113
|
+
location && /* @__PURE__ */ jsx86("p", { className: "text-xs text-muted-foreground", children: location })
|
|
6995
7114
|
] }),
|
|
6996
7115
|
/* @__PURE__ */ jsxs61(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
6997
|
-
description && /* @__PURE__ */
|
|
6998
|
-
/* @__PURE__ */
|
|
6999
|
-
/* @__PURE__ */
|
|
7000
|
-
/* @__PURE__ */
|
|
7116
|
+
description && /* @__PURE__ */ jsx86("p", { className: "line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7117
|
+
/* @__PURE__ */ jsx86("dl", { className: "mt-4 grid grid-cols-3 gap-3", children: metrics.map((metric) => /* @__PURE__ */ jsxs61("div", { className: "min-w-0", children: [
|
|
7118
|
+
/* @__PURE__ */ jsx86("dt", { className: "text-xs text-muted-foreground", children: metric.label }),
|
|
7119
|
+
/* @__PURE__ */ jsx86("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: metric.value })
|
|
7001
7120
|
] }, metric.label)) }),
|
|
7002
7121
|
(ndaAvailable || cimAvailable) && /* @__PURE__ */ jsxs61("div", { className: "mt-4 flex flex-wrap gap-1.5", children: [
|
|
7003
|
-
ndaAvailable && /* @__PURE__ */
|
|
7004
|
-
cimAvailable && /* @__PURE__ */
|
|
7122
|
+
ndaAvailable && /* @__PURE__ */ jsx86(Badge, { variant: "info", children: "NDA available" }),
|
|
7123
|
+
cimAvailable && /* @__PURE__ */ jsx86(Badge, { variant: "secondary", children: "CIM available" })
|
|
7005
7124
|
] })
|
|
7006
7125
|
] }),
|
|
7007
7126
|
/* @__PURE__ */ jsxs61(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
7008
|
-
onRequestAccess && /* @__PURE__ */
|
|
7009
|
-
onSave && /* @__PURE__ */
|
|
7127
|
+
onRequestAccess && /* @__PURE__ */ jsx86(Button, { type: "button", size: "sm", onClick: onRequestAccess, children: requestLabel }),
|
|
7128
|
+
onSave && /* @__PURE__ */ jsx86(
|
|
7010
7129
|
Button,
|
|
7011
7130
|
{
|
|
7012
7131
|
type: "button",
|
|
@@ -7024,7 +7143,7 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
7024
7143
|
|
|
7025
7144
|
// src/components/entity-card/EntityCard.tsx
|
|
7026
7145
|
import * as React86 from "react";
|
|
7027
|
-
import { jsx as
|
|
7146
|
+
import { jsx as jsx87, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
7028
7147
|
function initials(name) {
|
|
7029
7148
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
7030
7149
|
}
|
|
@@ -7048,9 +7167,9 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7048
7167
|
const nameHref = cardHref ?? href;
|
|
7049
7168
|
return /* @__PURE__ */ jsxs62(Card, { ref, className: cn("flex h-full flex-col", stretched && "relative isolate", className), ...props, children: [
|
|
7050
7169
|
/* @__PURE__ */ jsxs62(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
7051
|
-
/* @__PURE__ */
|
|
7170
|
+
/* @__PURE__ */ jsx87("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ jsx87(Avatar, { children: /* @__PURE__ */ jsx87(AvatarFallback, { children: initials(name) }) }) }),
|
|
7052
7171
|
/* @__PURE__ */ jsxs62("div", { className: "min-w-0 flex-1", children: [
|
|
7053
|
-
/* @__PURE__ */
|
|
7172
|
+
/* @__PURE__ */ jsx87("h3", { className: "truncate text-base font-semibold tracking-tight", children: nameHref ? /* @__PURE__ */ jsx87(
|
|
7054
7173
|
Link3,
|
|
7055
7174
|
{
|
|
7056
7175
|
href: nameHref,
|
|
@@ -7061,20 +7180,20 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7061
7180
|
children: name
|
|
7062
7181
|
}
|
|
7063
7182
|
) : name }),
|
|
7064
|
-
/* @__PURE__ */
|
|
7065
|
-
location && /* @__PURE__ */
|
|
7183
|
+
/* @__PURE__ */ jsx87("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
7184
|
+
location && /* @__PURE__ */ jsx87("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
7066
7185
|
] })
|
|
7067
7186
|
] }),
|
|
7068
7187
|
/* @__PURE__ */ jsxs62(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7069
|
-
description && /* @__PURE__ */
|
|
7070
|
-
tags && tags.length > 0 && /* @__PURE__ */
|
|
7071
|
-
stats && stats.length > 0 && /* @__PURE__ */
|
|
7072
|
-
/* @__PURE__ */
|
|
7073
|
-
/* @__PURE__ */
|
|
7188
|
+
description && /* @__PURE__ */ jsx87("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7189
|
+
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)) }),
|
|
7190
|
+
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: [
|
|
7191
|
+
/* @__PURE__ */ jsx87("dt", { className: "text-xs text-muted-foreground", children: stat.label }),
|
|
7192
|
+
/* @__PURE__ */ jsx87("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
|
|
7074
7193
|
] }, stat.label)) })
|
|
7075
7194
|
] }),
|
|
7076
7195
|
(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: [
|
|
7077
|
-
href && !stretched && /* @__PURE__ */
|
|
7196
|
+
href && !stretched && /* @__PURE__ */ jsx87(
|
|
7078
7197
|
Link3,
|
|
7079
7198
|
{
|
|
7080
7199
|
href,
|
|
@@ -7082,7 +7201,7 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7082
7201
|
children: "View profile"
|
|
7083
7202
|
}
|
|
7084
7203
|
),
|
|
7085
|
-
actions && /* @__PURE__ */
|
|
7204
|
+
actions && /* @__PURE__ */ jsx87("div", { className: "ml-auto flex items-center gap-2", children: actions })
|
|
7086
7205
|
] })
|
|
7087
7206
|
] });
|
|
7088
7207
|
});
|
|
@@ -7090,7 +7209,7 @@ var ProfileCard = EntityCard;
|
|
|
7090
7209
|
|
|
7091
7210
|
// src/components/tombstone-card/TombstoneCard.tsx
|
|
7092
7211
|
import * as React87 from "react";
|
|
7093
|
-
import { jsx as
|
|
7212
|
+
import { jsx as jsx88, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
7094
7213
|
var statusConfig2 = {
|
|
7095
7214
|
archived: { label: "Archived", variant: "secondary" },
|
|
7096
7215
|
unavailable: { label: "Unavailable", variant: "warning" },
|
|
@@ -7109,7 +7228,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7109
7228
|
}, ref) {
|
|
7110
7229
|
const Link3 = linkComponent ?? "a";
|
|
7111
7230
|
const statusInfo = statusConfig2[status];
|
|
7112
|
-
return /* @__PURE__ */
|
|
7231
|
+
return /* @__PURE__ */ jsx88(
|
|
7113
7232
|
Card,
|
|
7114
7233
|
{
|
|
7115
7234
|
ref,
|
|
@@ -7117,12 +7236,12 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7117
7236
|
...props,
|
|
7118
7237
|
children: /* @__PURE__ */ jsxs63(CardContent, { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
7119
7238
|
/* @__PURE__ */ jsxs63("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7120
|
-
logo && /* @__PURE__ */
|
|
7121
|
-
/* @__PURE__ */
|
|
7239
|
+
logo && /* @__PURE__ */ jsx88("div", { className: "min-w-0 opacity-70", children: logo }),
|
|
7240
|
+
/* @__PURE__ */ jsx88(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7122
7241
|
] }),
|
|
7123
|
-
/* @__PURE__ */
|
|
7124
|
-
reason && /* @__PURE__ */
|
|
7125
|
-
href && /* @__PURE__ */
|
|
7242
|
+
/* @__PURE__ */ jsx88("h3", { className: "text-base font-semibold tracking-tight text-foreground/80", children: title }),
|
|
7243
|
+
reason && /* @__PURE__ */ jsx88("p", { className: "text-sm leading-relaxed text-muted-foreground", children: reason }),
|
|
7244
|
+
href && /* @__PURE__ */ jsx88(
|
|
7126
7245
|
Link3,
|
|
7127
7246
|
{
|
|
7128
7247
|
href,
|
|
@@ -7137,7 +7256,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7137
7256
|
|
|
7138
7257
|
// src/components/document-card/DocumentCard.tsx
|
|
7139
7258
|
import * as React88 from "react";
|
|
7140
|
-
import { jsx as
|
|
7259
|
+
import { jsx as jsx89, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
7141
7260
|
var statusConfig3 = {
|
|
7142
7261
|
available: { label: "Available", variant: "success" },
|
|
7143
7262
|
restricted: { label: "Restricted", variant: "warning" },
|
|
@@ -7157,14 +7276,14 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7157
7276
|
}, ref) {
|
|
7158
7277
|
const statusInfo = statusConfig3[status];
|
|
7159
7278
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7160
|
-
return /* @__PURE__ */
|
|
7161
|
-
/* @__PURE__ */
|
|
7279
|
+
return /* @__PURE__ */ jsx89(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */ jsxs64(CardContent, { className: "flex items-center gap-3 p-4", children: [
|
|
7280
|
+
/* @__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 }) }),
|
|
7162
7281
|
/* @__PURE__ */ jsxs64("div", { className: "min-w-0 flex-1", children: [
|
|
7163
|
-
/* @__PURE__ */
|
|
7164
|
-
meta && /* @__PURE__ */
|
|
7282
|
+
/* @__PURE__ */ jsx89("p", { className: "truncate text-sm font-medium", children: name }),
|
|
7283
|
+
meta && /* @__PURE__ */ jsx89("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
7165
7284
|
] }),
|
|
7166
|
-
/* @__PURE__ */
|
|
7167
|
-
onDownload && /* @__PURE__ */
|
|
7285
|
+
/* @__PURE__ */ jsx89(Badge, { variant: statusInfo.variant, children: statusInfo.label }),
|
|
7286
|
+
onDownload && /* @__PURE__ */ jsx89(
|
|
7168
7287
|
Button,
|
|
7169
7288
|
{
|
|
7170
7289
|
type: "button",
|
|
@@ -7181,7 +7300,7 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7181
7300
|
|
|
7182
7301
|
// src/components/load-more/LoadMore.tsx
|
|
7183
7302
|
import * as React89 from "react";
|
|
7184
|
-
import { jsx as
|
|
7303
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
7185
7304
|
var LoadMore = React89.forwardRef(function LoadMore2({
|
|
7186
7305
|
hasMore,
|
|
7187
7306
|
onLoadMore,
|
|
@@ -7192,12 +7311,12 @@ var LoadMore = React89.forwardRef(function LoadMore2({
|
|
|
7192
7311
|
className,
|
|
7193
7312
|
...props
|
|
7194
7313
|
}, ref) {
|
|
7195
|
-
return /* @__PURE__ */
|
|
7314
|
+
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 }) });
|
|
7196
7315
|
});
|
|
7197
7316
|
|
|
7198
7317
|
// src/components/segmented-control/SegmentedControl.tsx
|
|
7199
7318
|
import * as React90 from "react";
|
|
7200
|
-
import { jsx as
|
|
7319
|
+
import { Fragment as Fragment17, jsx as jsx91, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
7201
7320
|
var sizeClasses10 = {
|
|
7202
7321
|
sm: "h-8 px-2.5 text-xs",
|
|
7203
7322
|
md: "h-9 px-3 text-sm",
|
|
@@ -7212,6 +7331,8 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7212
7331
|
multiple = false,
|
|
7213
7332
|
size = "md",
|
|
7214
7333
|
fullWidth = false,
|
|
7334
|
+
linkComponent,
|
|
7335
|
+
linkHrefProp = "href",
|
|
7215
7336
|
className,
|
|
7216
7337
|
"aria-label": ariaLabel = "Segmented control",
|
|
7217
7338
|
...props
|
|
@@ -7222,6 +7343,9 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7222
7343
|
);
|
|
7223
7344
|
const current = isControlled ? value : internal;
|
|
7224
7345
|
const selected = multiple ? Array.isArray(current) ? current : [] : typeof current === "string" ? current : "";
|
|
7346
|
+
const linkMode = options.some((option) => option.href !== void 0);
|
|
7347
|
+
const LinkEl = linkComponent ?? "a";
|
|
7348
|
+
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
7225
7349
|
const refs = React90.useRef([]);
|
|
7226
7350
|
const commit = (next) => {
|
|
7227
7351
|
if (!isControlled) setInternal(next);
|
|
@@ -7272,11 +7396,11 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7272
7396
|
moveFocus("last");
|
|
7273
7397
|
}
|
|
7274
7398
|
};
|
|
7275
|
-
return /* @__PURE__ */
|
|
7399
|
+
return /* @__PURE__ */ jsx91(
|
|
7276
7400
|
"div",
|
|
7277
7401
|
{
|
|
7278
7402
|
ref,
|
|
7279
|
-
role: multiple ? "group" : "radiogroup",
|
|
7403
|
+
role: multiple || linkMode ? "group" : "radiogroup",
|
|
7280
7404
|
"aria-label": ariaLabel,
|
|
7281
7405
|
className: cn(
|
|
7282
7406
|
"inline-flex items-center gap-1 rounded-lg border border-border bg-muted p-1",
|
|
@@ -7288,32 +7412,58 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7288
7412
|
const active = multiple ? Array.isArray(selected) && selected.includes(option.value) : selected === option.value;
|
|
7289
7413
|
const firstEnabled = options.findIndex((entry) => !entry.disabled);
|
|
7290
7414
|
const focusable = multiple || active || !selected && index === firstEnabled;
|
|
7291
|
-
|
|
7415
|
+
const segmentClass = cn(
|
|
7416
|
+
"inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors",
|
|
7417
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7418
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
7419
|
+
sizeClasses10[size],
|
|
7420
|
+
fullWidth && "flex-1",
|
|
7421
|
+
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
7422
|
+
);
|
|
7423
|
+
const segmentContent = /* @__PURE__ */ jsxs65(Fragment17, { children: [
|
|
7424
|
+
option.icon && /* @__PURE__ */ jsx91("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
7425
|
+
/* @__PURE__ */ jsx91("span", { className: "truncate", children: option.label })
|
|
7426
|
+
] });
|
|
7427
|
+
if (option.href !== void 0) {
|
|
7428
|
+
if (option.disabled || active) {
|
|
7429
|
+
return /* @__PURE__ */ jsx91(
|
|
7430
|
+
"span",
|
|
7431
|
+
{
|
|
7432
|
+
"aria-current": active ? "page" : void 0,
|
|
7433
|
+
"aria-disabled": option.disabled || void 0,
|
|
7434
|
+
className: cn(segmentClass, option.disabled && "opacity-50"),
|
|
7435
|
+
children: segmentContent
|
|
7436
|
+
},
|
|
7437
|
+
option.value
|
|
7438
|
+
);
|
|
7439
|
+
}
|
|
7440
|
+
return /* @__PURE__ */ jsx91(
|
|
7441
|
+
LinkEl,
|
|
7442
|
+
{
|
|
7443
|
+
...destination(option.href),
|
|
7444
|
+
className: segmentClass,
|
|
7445
|
+
children: segmentContent
|
|
7446
|
+
},
|
|
7447
|
+
option.value
|
|
7448
|
+
);
|
|
7449
|
+
}
|
|
7450
|
+
return /* @__PURE__ */ jsx91(
|
|
7292
7451
|
"button",
|
|
7293
7452
|
{
|
|
7294
7453
|
ref: (node) => {
|
|
7295
7454
|
refs.current[index] = node;
|
|
7296
7455
|
},
|
|
7297
7456
|
type: "button",
|
|
7298
|
-
role: multiple ? void 0 : "radio",
|
|
7299
|
-
"aria-checked": multiple ? void 0 : active,
|
|
7457
|
+
role: multiple || linkMode ? void 0 : "radio",
|
|
7458
|
+
"aria-checked": multiple || linkMode ? void 0 : active,
|
|
7300
7459
|
"aria-pressed": multiple ? active : void 0,
|
|
7460
|
+
"aria-current": linkMode && active ? "page" : void 0,
|
|
7301
7461
|
disabled: option.disabled,
|
|
7302
7462
|
tabIndex: focusable ? 0 : -1,
|
|
7303
7463
|
onClick: () => select(option),
|
|
7304
7464
|
onKeyDown,
|
|
7305
|
-
className:
|
|
7306
|
-
|
|
7307
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7308
|
-
"disabled:pointer-events-none disabled:opacity-50",
|
|
7309
|
-
sizeClasses10[size],
|
|
7310
|
-
fullWidth && "flex-1",
|
|
7311
|
-
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
7312
|
-
),
|
|
7313
|
-
children: [
|
|
7314
|
-
option.icon && /* @__PURE__ */ jsx90("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
7315
|
-
/* @__PURE__ */ jsx90("span", { className: "truncate", children: option.label })
|
|
7316
|
-
]
|
|
7465
|
+
className: segmentClass,
|
|
7466
|
+
children: segmentContent
|
|
7317
7467
|
},
|
|
7318
7468
|
option.value
|
|
7319
7469
|
);
|
|
@@ -7325,7 +7475,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7325
7475
|
|
|
7326
7476
|
// src/components/range-slider/RangeSlider.tsx
|
|
7327
7477
|
import * as React91 from "react";
|
|
7328
|
-
import { jsx as
|
|
7478
|
+
import { jsx as jsx92, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
7329
7479
|
var rangeInputClass = cn(
|
|
7330
7480
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
7331
7481
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
@@ -7367,19 +7517,19 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7367
7517
|
const highPercent = (high - min) / span * 100;
|
|
7368
7518
|
return /* @__PURE__ */ jsxs66("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
7369
7519
|
showValues && /* @__PURE__ */ jsxs66("div", { className: "mb-2 flex items-center justify-between text-sm font-medium tabular-nums", children: [
|
|
7370
|
-
/* @__PURE__ */
|
|
7371
|
-
/* @__PURE__ */
|
|
7520
|
+
/* @__PURE__ */ jsx92("span", { children: formatValue(low) }),
|
|
7521
|
+
/* @__PURE__ */ jsx92("span", { children: formatValue(high) })
|
|
7372
7522
|
] }),
|
|
7373
7523
|
/* @__PURE__ */ jsxs66("div", { className: "relative h-6 w-full", children: [
|
|
7374
|
-
/* @__PURE__ */
|
|
7375
|
-
/* @__PURE__ */
|
|
7524
|
+
/* @__PURE__ */ jsx92("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-border" }),
|
|
7525
|
+
/* @__PURE__ */ jsx92(
|
|
7376
7526
|
"div",
|
|
7377
7527
|
{
|
|
7378
7528
|
className: "absolute top-1/2 h-1 -translate-y-1/2 rounded-full bg-primary",
|
|
7379
7529
|
style: { left: `${lowPercent}%`, right: `${100 - highPercent}%` }
|
|
7380
7530
|
}
|
|
7381
7531
|
),
|
|
7382
|
-
/* @__PURE__ */
|
|
7532
|
+
/* @__PURE__ */ jsx92(
|
|
7383
7533
|
"input",
|
|
7384
7534
|
{
|
|
7385
7535
|
type: "range",
|
|
@@ -7394,7 +7544,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7394
7544
|
className: cn(rangeInputClass, "z-10")
|
|
7395
7545
|
}
|
|
7396
7546
|
),
|
|
7397
|
-
/* @__PURE__ */
|
|
7547
|
+
/* @__PURE__ */ jsx92(
|
|
7398
7548
|
"input",
|
|
7399
7549
|
{
|
|
7400
7550
|
type: "range",
|
|
@@ -7415,7 +7565,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7415
7565
|
|
|
7416
7566
|
// src/components/filter-chips/FilterChips.tsx
|
|
7417
7567
|
import * as React92 from "react";
|
|
7418
|
-
import { jsx as
|
|
7568
|
+
import { jsx as jsx93, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
7419
7569
|
var CHIP_SIZES = {
|
|
7420
7570
|
sm: {
|
|
7421
7571
|
chip: "gap-1 py-0.5 pl-2.5 pr-0.5 text-xs",
|
|
@@ -7447,7 +7597,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7447
7597
|
...props
|
|
7448
7598
|
}, ref) {
|
|
7449
7599
|
if (filters.length === 0) {
|
|
7450
|
-
return emptyLabel ? /* @__PURE__ */
|
|
7600
|
+
return emptyLabel ? /* @__PURE__ */ jsx93("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7451
7601
|
}
|
|
7452
7602
|
const scale = CHIP_SIZES[size];
|
|
7453
7603
|
return /* @__PURE__ */ jsxs67(
|
|
@@ -7473,9 +7623,9 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7473
7623
|
":"
|
|
7474
7624
|
] }),
|
|
7475
7625
|
" ",
|
|
7476
|
-
/* @__PURE__ */
|
|
7626
|
+
/* @__PURE__ */ jsx93("span", { className: "font-medium", children: filter.value ?? "Any" })
|
|
7477
7627
|
] }),
|
|
7478
|
-
filter.onRemove && /* @__PURE__ */
|
|
7628
|
+
filter.onRemove && /* @__PURE__ */ jsx93(
|
|
7479
7629
|
"button",
|
|
7480
7630
|
{
|
|
7481
7631
|
type: "button",
|
|
@@ -7485,14 +7635,14 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7485
7635
|
"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",
|
|
7486
7636
|
scale.remove
|
|
7487
7637
|
),
|
|
7488
|
-
children: /* @__PURE__ */
|
|
7638
|
+
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" }) })
|
|
7489
7639
|
}
|
|
7490
7640
|
)
|
|
7491
7641
|
]
|
|
7492
7642
|
},
|
|
7493
7643
|
filter.key
|
|
7494
7644
|
)),
|
|
7495
|
-
onClearAll && /* @__PURE__ */
|
|
7645
|
+
onClearAll && /* @__PURE__ */ jsx93(
|
|
7496
7646
|
"button",
|
|
7497
7647
|
{
|
|
7498
7648
|
type: "button",
|
|
@@ -7511,7 +7661,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7511
7661
|
|
|
7512
7662
|
// src/components/multi-select/MultiSelect.tsx
|
|
7513
7663
|
import * as React93 from "react";
|
|
7514
|
-
import { jsx as
|
|
7664
|
+
import { jsx as jsx94, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
7515
7665
|
var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
7516
7666
|
options,
|
|
7517
7667
|
value,
|
|
@@ -7557,15 +7707,15 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7557
7707
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
7558
7708
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
7559
7709
|
return /* @__PURE__ */ jsxs68("div", { ref, className: cn("flex flex-col gap-2", className), ...props, children: [
|
|
7560
|
-
label && /* @__PURE__ */
|
|
7710
|
+
label && /* @__PURE__ */ jsx94("span", { id: labelId, className: "text-sm font-medium", children: label }),
|
|
7561
7711
|
visibleChips.length > 0 && /* @__PURE__ */ jsxs68("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
7562
7712
|
visibleChips.map((option) => /* @__PURE__ */ jsxs68(
|
|
7563
7713
|
"span",
|
|
7564
7714
|
{
|
|
7565
7715
|
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",
|
|
7566
7716
|
children: [
|
|
7567
|
-
/* @__PURE__ */
|
|
7568
|
-
/* @__PURE__ */
|
|
7717
|
+
/* @__PURE__ */ jsx94("span", { className: "truncate", children: option.label }),
|
|
7718
|
+
/* @__PURE__ */ jsx94(
|
|
7569
7719
|
"button",
|
|
7570
7720
|
{
|
|
7571
7721
|
type: "button",
|
|
@@ -7573,7 +7723,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7573
7723
|
disabled,
|
|
7574
7724
|
"aria-label": `Remove ${option.label}`,
|
|
7575
7725
|
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",
|
|
7576
|
-
children: /* @__PURE__ */
|
|
7726
|
+
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" }) })
|
|
7577
7727
|
}
|
|
7578
7728
|
)
|
|
7579
7729
|
]
|
|
@@ -7588,11 +7738,11 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7588
7738
|
] }),
|
|
7589
7739
|
/* @__PURE__ */ jsxs68(Popover, { open, onOpenChange: setOpen, children: [
|
|
7590
7740
|
/* @__PURE__ */ jsxs68(PopoverTrigger, { "aria-labelledby": label ? labelId : void 0, disabled, className: "w-full justify-between", children: [
|
|
7591
|
-
/* @__PURE__ */
|
|
7592
|
-
/* @__PURE__ */
|
|
7741
|
+
/* @__PURE__ */ jsx94("span", { children: selected.length > 0 ? `${selected.length} selected` : triggerLabel }),
|
|
7742
|
+
/* @__PURE__ */ jsx94("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2304" })
|
|
7593
7743
|
] }),
|
|
7594
7744
|
/* @__PURE__ */ jsxs68(PopoverContent, { className: "w-80 p-0", children: [
|
|
7595
|
-
/* @__PURE__ */
|
|
7745
|
+
/* @__PURE__ */ jsx94("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ jsx94(
|
|
7596
7746
|
Input,
|
|
7597
7747
|
{
|
|
7598
7748
|
type: "search",
|
|
@@ -7603,8 +7753,8 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7603
7753
|
autoFocus: true
|
|
7604
7754
|
}
|
|
7605
7755
|
) }),
|
|
7606
|
-
/* @__PURE__ */
|
|
7607
|
-
heading && /* @__PURE__ */
|
|
7756
|
+
/* @__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: [
|
|
7757
|
+
heading && /* @__PURE__ */ jsx94("p", { className: "px-3 pb-1 pt-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: heading }),
|
|
7608
7758
|
/* @__PURE__ */ jsxs68(
|
|
7609
7759
|
"label",
|
|
7610
7760
|
{
|
|
@@ -7613,7 +7763,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7613
7763
|
option.disabled && "cursor-not-allowed opacity-50"
|
|
7614
7764
|
),
|
|
7615
7765
|
children: [
|
|
7616
|
-
/* @__PURE__ */
|
|
7766
|
+
/* @__PURE__ */ jsx94(
|
|
7617
7767
|
Checkbox,
|
|
7618
7768
|
{
|
|
7619
7769
|
checked: selected.includes(option.value),
|
|
@@ -7623,15 +7773,15 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7623
7773
|
}
|
|
7624
7774
|
),
|
|
7625
7775
|
/* @__PURE__ */ jsxs68("span", { className: "min-w-0", children: [
|
|
7626
|
-
/* @__PURE__ */
|
|
7627
|
-
option.description && /* @__PURE__ */
|
|
7776
|
+
/* @__PURE__ */ jsx94("span", { className: "block", children: option.label }),
|
|
7777
|
+
option.description && /* @__PURE__ */ jsx94("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: option.description })
|
|
7628
7778
|
] })
|
|
7629
7779
|
]
|
|
7630
7780
|
}
|
|
7631
7781
|
)
|
|
7632
7782
|
] }, option.value)) }),
|
|
7633
7783
|
/* @__PURE__ */ jsxs68("div", { className: "flex items-center justify-between gap-2 border-t border-border p-2", children: [
|
|
7634
|
-
/* @__PURE__ */
|
|
7784
|
+
/* @__PURE__ */ jsx94(
|
|
7635
7785
|
Button,
|
|
7636
7786
|
{
|
|
7637
7787
|
type: "button",
|
|
@@ -7641,7 +7791,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7641
7791
|
children: "Select all"
|
|
7642
7792
|
}
|
|
7643
7793
|
),
|
|
7644
|
-
/* @__PURE__ */
|
|
7794
|
+
/* @__PURE__ */ jsx94(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => commit([]), children: "Clear" })
|
|
7645
7795
|
] })
|
|
7646
7796
|
] })
|
|
7647
7797
|
] })
|
|
@@ -7650,7 +7800,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7650
7800
|
|
|
7651
7801
|
// src/components/filter-panel/FilterPanel.tsx
|
|
7652
7802
|
import * as React94 from "react";
|
|
7653
|
-
import { jsx as
|
|
7803
|
+
import { jsx as jsx95, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
7654
7804
|
var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
7655
7805
|
sections,
|
|
7656
7806
|
title = "Filters",
|
|
@@ -7682,14 +7832,14 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7682
7832
|
};
|
|
7683
7833
|
return /* @__PURE__ */ jsxs69(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
7684
7834
|
(title || description) && /* @__PURE__ */ jsxs69("div", { className: "border-b border-border px-4 py-3", children: [
|
|
7685
|
-
title && /* @__PURE__ */
|
|
7686
|
-
description && /* @__PURE__ */
|
|
7835
|
+
title && /* @__PURE__ */ jsx95("h2", { className: "text-sm font-semibold", children: title }),
|
|
7836
|
+
description && /* @__PURE__ */ jsx95("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
7687
7837
|
] }),
|
|
7688
|
-
/* @__PURE__ */
|
|
7838
|
+
/* @__PURE__ */ jsx95("div", { className: "divide-y divide-border", children: sections.map((section, index) => {
|
|
7689
7839
|
const expanded = isOpen(index);
|
|
7690
7840
|
const sectionId = `filter-section-${index}`;
|
|
7691
7841
|
return /* @__PURE__ */ jsxs69("div", { className: "px-4 py-3", children: [
|
|
7692
|
-
/* @__PURE__ */
|
|
7842
|
+
/* @__PURE__ */ jsx95("h3", { children: /* @__PURE__ */ jsxs69(
|
|
7693
7843
|
"button",
|
|
7694
7844
|
{
|
|
7695
7845
|
type: "button",
|
|
@@ -7704,26 +7854,26 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7704
7854
|
children: [
|
|
7705
7855
|
/* @__PURE__ */ jsxs69("span", { children: [
|
|
7706
7856
|
section.title,
|
|
7707
|
-
section.description && /* @__PURE__ */
|
|
7857
|
+
section.description && /* @__PURE__ */ jsx95("span", { className: "mt-0.5 block text-xs font-normal text-muted-foreground", children: section.description })
|
|
7708
7858
|
] }),
|
|
7709
|
-
collapsible && /* @__PURE__ */
|
|
7859
|
+
collapsible && /* @__PURE__ */ jsx95("span", { "aria-hidden": "true", className: cn("text-muted-foreground transition-transform", expanded && "rotate-180"), children: "\u2304" })
|
|
7710
7860
|
]
|
|
7711
7861
|
}
|
|
7712
7862
|
) }),
|
|
7713
|
-
expanded && /* @__PURE__ */
|
|
7863
|
+
expanded && /* @__PURE__ */ jsx95("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
7714
7864
|
] }, index);
|
|
7715
7865
|
}) }),
|
|
7716
7866
|
(onReset || onApply || actions) && /* @__PURE__ */ jsxs69("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
7717
7867
|
actions,
|
|
7718
|
-
onReset && /* @__PURE__ */
|
|
7719
|
-
onApply && /* @__PURE__ */
|
|
7868
|
+
onReset && /* @__PURE__ */ jsx95(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, className: "ml-auto", children: resetLabel }),
|
|
7869
|
+
onApply && /* @__PURE__ */ jsx95(Button, { type: "button", size: "sm", onClick: onApply, children: applyLabel })
|
|
7720
7870
|
] })
|
|
7721
7871
|
] });
|
|
7722
7872
|
});
|
|
7723
7873
|
|
|
7724
7874
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
7725
7875
|
import * as React95 from "react";
|
|
7726
|
-
import { jsx as
|
|
7876
|
+
import { jsx as jsx96, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
7727
7877
|
var DEFAULT_PRESETS = [
|
|
7728
7878
|
{ label: "7 days", days: 7 },
|
|
7729
7879
|
{ label: "30 days", days: 30 },
|
|
@@ -7776,7 +7926,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7776
7926
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
7777
7927
|
};
|
|
7778
7928
|
return /* @__PURE__ */ jsxs70("div", { ref, className: cn("flex flex-col gap-3", className), ...props, children: [
|
|
7779
|
-
showPresets && presets.length > 0 && /* @__PURE__ */
|
|
7929
|
+
showPresets && presets.length > 0 && /* @__PURE__ */ jsx96("div", { className: "flex flex-wrap gap-2", children: presets.map((preset) => /* @__PURE__ */ jsx96(
|
|
7780
7930
|
Button,
|
|
7781
7931
|
{
|
|
7782
7932
|
type: "button",
|
|
@@ -7790,8 +7940,8 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7790
7940
|
)) }),
|
|
7791
7941
|
/* @__PURE__ */ jsxs70("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
7792
7942
|
/* @__PURE__ */ jsxs70("div", { children: [
|
|
7793
|
-
/* @__PURE__ */
|
|
7794
|
-
/* @__PURE__ */
|
|
7943
|
+
/* @__PURE__ */ jsx96("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
7944
|
+
/* @__PURE__ */ jsx96(
|
|
7795
7945
|
DatePicker,
|
|
7796
7946
|
{
|
|
7797
7947
|
id: startId,
|
|
@@ -7804,8 +7954,8 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7804
7954
|
)
|
|
7805
7955
|
] }),
|
|
7806
7956
|
/* @__PURE__ */ jsxs70("div", { children: [
|
|
7807
|
-
/* @__PURE__ */
|
|
7808
|
-
/* @__PURE__ */
|
|
7957
|
+
/* @__PURE__ */ jsx96("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
7958
|
+
/* @__PURE__ */ jsx96(
|
|
7809
7959
|
DatePicker,
|
|
7810
7960
|
{
|
|
7811
7961
|
id: endId,
|
|
@@ -7824,7 +7974,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7824
7974
|
|
|
7825
7975
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
7826
7976
|
import * as React96 from "react";
|
|
7827
|
-
import { jsx as
|
|
7977
|
+
import { jsx as jsx97, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
7828
7978
|
var AppliedFilters = React96.forwardRef(
|
|
7829
7979
|
function AppliedFilters2({
|
|
7830
7980
|
filters,
|
|
@@ -7838,7 +7988,7 @@ var AppliedFilters = React96.forwardRef(
|
|
|
7838
7988
|
}, ref) {
|
|
7839
7989
|
const summary = label ?? `${filters.length} active`;
|
|
7840
7990
|
if (filters.length === 0) {
|
|
7841
|
-
return emptyLabel ? /* @__PURE__ */
|
|
7991
|
+
return emptyLabel ? /* @__PURE__ */ jsx97("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7842
7992
|
}
|
|
7843
7993
|
return /* @__PURE__ */ jsxs71(
|
|
7844
7994
|
"div",
|
|
@@ -7848,9 +7998,9 @@ var AppliedFilters = React96.forwardRef(
|
|
|
7848
7998
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
7849
7999
|
...props,
|
|
7850
8000
|
children: [
|
|
7851
|
-
/* @__PURE__ */
|
|
7852
|
-
/* @__PURE__ */
|
|
7853
|
-
onEdit && /* @__PURE__ */
|
|
8001
|
+
/* @__PURE__ */ jsx97("span", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: summary }),
|
|
8002
|
+
/* @__PURE__ */ jsx97(FilterChips, { filters, onClearAll }),
|
|
8003
|
+
onEdit && /* @__PURE__ */ jsx97(Button, { type: "button", variant: "ghost", size: "sm", onClick: onEdit, children: editLabel })
|
|
7854
8004
|
]
|
|
7855
8005
|
}
|
|
7856
8006
|
);
|
|
@@ -7861,7 +8011,7 @@ var AppliedFilters = React96.forwardRef(
|
|
|
7861
8011
|
import * as React97 from "react";
|
|
7862
8012
|
import { createPortal as createPortal8 } from "react-dom";
|
|
7863
8013
|
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
7864
|
-
import { jsx as
|
|
8014
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
7865
8015
|
var MenuContext = React97.createContext({
|
|
7866
8016
|
open: false,
|
|
7867
8017
|
setOpen: () => {
|
|
@@ -7893,7 +8043,7 @@ var Menu = React97.forwardRef(
|
|
|
7893
8043
|
},
|
|
7894
8044
|
[open, onOpenChange]
|
|
7895
8045
|
);
|
|
7896
|
-
return /* @__PURE__ */
|
|
8046
|
+
return /* @__PURE__ */ jsx98("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx98(
|
|
7897
8047
|
MenuContext.Provider,
|
|
7898
8048
|
{
|
|
7899
8049
|
value: { open: current, setOpen, activeIndex, setActiveIndex, wrapperRef },
|
|
@@ -7906,7 +8056,7 @@ Menu.displayName = "Menu";
|
|
|
7906
8056
|
var MenuTrigger = React97.forwardRef(
|
|
7907
8057
|
({ className, children, ...props }, ref) => {
|
|
7908
8058
|
const { open, setOpen } = React97.useContext(MenuContext);
|
|
7909
|
-
return /* @__PURE__ */
|
|
8059
|
+
return /* @__PURE__ */ jsx98(
|
|
7910
8060
|
"button",
|
|
7911
8061
|
{
|
|
7912
8062
|
ref,
|
|
@@ -8008,7 +8158,7 @@ var MenuContent = React97.forwardRef(
|
|
|
8008
8158
|
};
|
|
8009
8159
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
8010
8160
|
return createPortal8(
|
|
8011
|
-
/* @__PURE__ */
|
|
8161
|
+
/* @__PURE__ */ jsx98(
|
|
8012
8162
|
"div",
|
|
8013
8163
|
{
|
|
8014
8164
|
ref: (node) => {
|
|
@@ -8037,7 +8187,7 @@ var MenuItem = React97.forwardRef(
|
|
|
8037
8187
|
const { setOpen } = React97.useContext(MenuContext);
|
|
8038
8188
|
const Comp = asChild ? Slot5 : "button";
|
|
8039
8189
|
const typeProp = asChild ? {} : { type: "button" };
|
|
8040
|
-
return /* @__PURE__ */
|
|
8190
|
+
return /* @__PURE__ */ jsx98(
|
|
8041
8191
|
Comp,
|
|
8042
8192
|
{
|
|
8043
8193
|
ref,
|
|
@@ -8060,11 +8210,11 @@ var MenuItem = React97.forwardRef(
|
|
|
8060
8210
|
);
|
|
8061
8211
|
MenuItem.displayName = "MenuItem";
|
|
8062
8212
|
var MenuSeparator = React97.forwardRef(
|
|
8063
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8213
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx98("div", { ref, role: "separator", className: cn("-mx-1 my-1 h-px bg-border", className), ...props })
|
|
8064
8214
|
);
|
|
8065
8215
|
MenuSeparator.displayName = "MenuSeparator";
|
|
8066
8216
|
var MenuLabel = React97.forwardRef(
|
|
8067
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8217
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx98(
|
|
8068
8218
|
"div",
|
|
8069
8219
|
{
|
|
8070
8220
|
ref,
|
|
@@ -8078,7 +8228,7 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
8078
8228
|
// src/components/alert/Alert.tsx
|
|
8079
8229
|
import * as React98 from "react";
|
|
8080
8230
|
import { cva as cva8 } from "class-variance-authority";
|
|
8081
|
-
import { jsx as
|
|
8231
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
8082
8232
|
var alertVariants = cva8(
|
|
8083
8233
|
"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",
|
|
8084
8234
|
{
|
|
@@ -8099,7 +8249,7 @@ var alertVariants = cva8(
|
|
|
8099
8249
|
}
|
|
8100
8250
|
);
|
|
8101
8251
|
var Alert = React98.forwardRef(
|
|
8102
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */
|
|
8252
|
+
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx99(
|
|
8103
8253
|
"div",
|
|
8104
8254
|
{
|
|
8105
8255
|
ref,
|
|
@@ -8111,7 +8261,7 @@ var Alert = React98.forwardRef(
|
|
|
8111
8261
|
);
|
|
8112
8262
|
Alert.displayName = "Alert";
|
|
8113
8263
|
var AlertTitle = React98.forwardRef(
|
|
8114
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8264
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx99(
|
|
8115
8265
|
"h5",
|
|
8116
8266
|
{
|
|
8117
8267
|
ref,
|
|
@@ -8122,7 +8272,7 @@ var AlertTitle = React98.forwardRef(
|
|
|
8122
8272
|
);
|
|
8123
8273
|
AlertTitle.displayName = "AlertTitle";
|
|
8124
8274
|
var AlertDescription = React98.forwardRef(
|
|
8125
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8275
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx99(
|
|
8126
8276
|
"div",
|
|
8127
8277
|
{
|
|
8128
8278
|
ref,
|
|
@@ -8135,22 +8285,22 @@ AlertDescription.displayName = "AlertDescription";
|
|
|
8135
8285
|
|
|
8136
8286
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
8137
8287
|
import * as React99 from "react";
|
|
8138
|
-
import { jsx as
|
|
8288
|
+
import { jsx as jsx100, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
8139
8289
|
var Breadcrumb = React99.forwardRef(
|
|
8140
8290
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
8141
8291
|
const LinkEl = linkComponent ?? "a";
|
|
8142
|
-
return /* @__PURE__ */
|
|
8292
|
+
return /* @__PURE__ */ jsx100(
|
|
8143
8293
|
"nav",
|
|
8144
8294
|
{
|
|
8145
8295
|
ref,
|
|
8146
8296
|
"aria-label": label,
|
|
8147
8297
|
className: cn("flex items-center space-x-1.5 text-sm text-muted-foreground", className),
|
|
8148
8298
|
...props,
|
|
8149
|
-
children: /* @__PURE__ */
|
|
8299
|
+
children: /* @__PURE__ */ jsx100("ol", { className: "flex flex-wrap items-center space-x-1.5", children: items.map((item, index) => {
|
|
8150
8300
|
const isLast = index === items.length - 1;
|
|
8151
8301
|
return /* @__PURE__ */ jsxs72("li", { className: cn("flex items-center space-x-1.5", truncateCurrent && isLast && "min-w-0"), children: [
|
|
8152
|
-
index > 0 && /* @__PURE__ */
|
|
8153
|
-
item.href && !isLast ? /* @__PURE__ */
|
|
8302
|
+
index > 0 && /* @__PURE__ */ jsx100("span", { "aria-hidden": "true", className: "text-muted-foreground/50", children: separator }),
|
|
8303
|
+
item.href && !isLast ? /* @__PURE__ */ jsx100(
|
|
8154
8304
|
LinkEl,
|
|
8155
8305
|
{
|
|
8156
8306
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -8161,7 +8311,7 @@ var Breadcrumb = React99.forwardRef(
|
|
|
8161
8311
|
} : void 0,
|
|
8162
8312
|
children: item.label
|
|
8163
8313
|
}
|
|
8164
|
-
) : /* @__PURE__ */
|
|
8314
|
+
) : /* @__PURE__ */ jsx100(
|
|
8165
8315
|
"span",
|
|
8166
8316
|
{
|
|
8167
8317
|
"aria-current": isLast ? "page" : void 0,
|
|
@@ -8215,6 +8365,7 @@ export {
|
|
|
8215
8365
|
ConfirmDialog,
|
|
8216
8366
|
ContactStrip,
|
|
8217
8367
|
Container,
|
|
8368
|
+
CoverImage,
|
|
8218
8369
|
DataTable,
|
|
8219
8370
|
DatePicker,
|
|
8220
8371
|
DatePickerPopover,
|