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