@slipstream-ui/core 0.11.1 → 0.11.3
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 +33 -2
- package/dist/index.d.ts +33 -2
- package/dist/index.js +61 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +328 -275
- 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 +17 -5
- 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/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 +1 -1
- package/dist/manifests/entity-card.manifest.json +9 -3
- 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 +1 -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 +1 -1
- 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 +1 -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/badge/Badge.d.ts +12 -2
- package/dist/src/components/badge/Badge.js +44 -4
- package/dist/src/components/badge/Badge.js.map +1 -1
- package/dist/src/components/badge/Badge.mjs +46 -6
- package/dist/src/components/badge/Badge.mjs.map +1 -1
- package/dist/src/components/entity-card/EntityCard.d.ts +21 -0
- package/dist/src/components/entity-card/EntityCard.js +17 -4
- package/dist/src/components/entity-card/EntityCard.js.map +1 -1
- package/dist/src/components/entity-card/EntityCard.mjs +17 -4
- package/dist/src/components/entity-card/EntityCard.mjs.map +1 -1
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/src/components/badge/Badge.test.tsx +46 -0
- package/src/components/badge/Badge.tsx +58 -4
- package/src/components/entity-card/EntityCard.test.tsx +27 -0
- package/src/components/entity-card/EntityCard.tsx +22 -6
- 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 +17 -5
- 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/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 +1 -1
- package/src/manifests/entity-card.manifest.json +9 -3
- 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 +1 -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 +1 -1
- 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 +1 -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/dist/index.mjs
CHANGED
|
@@ -784,9 +784,9 @@ InputGroupAddon.displayName = "InputGroupAddon";
|
|
|
784
784
|
|
|
785
785
|
// src/components/badge/Badge.tsx
|
|
786
786
|
import * as React11 from "react";
|
|
787
|
-
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
787
|
+
import { Slot as Slot2, Slottable } from "@radix-ui/react-slot";
|
|
788
788
|
import { cva as cva2 } from "class-variance-authority";
|
|
789
|
-
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
789
|
+
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
790
790
|
var badgeVariants = cva2(
|
|
791
791
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
792
792
|
{
|
|
@@ -805,7 +805,14 @@ var badgeVariants = cva2(
|
|
|
805
805
|
info: "border-transparent bg-info text-info-foreground hover:bg-info/80",
|
|
806
806
|
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
807
807
|
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
808
|
-
outline: "text-foreground"
|
|
808
|
+
outline: "text-foreground",
|
|
809
|
+
// Quiet outline tones for status metadata (directory chips, filter
|
|
810
|
+
// tags): tinted border and ink text, subtle tint on hover. Follows the
|
|
811
|
+
// Alert/Button outline language.
|
|
812
|
+
"outline-success": "border-success/50 bg-background text-success-ink hover:bg-success/10",
|
|
813
|
+
"outline-warning": "border-warning/50 bg-background text-warning-ink hover:bg-warning/10",
|
|
814
|
+
"outline-info": "border-info/50 bg-background text-info-ink hover:bg-info/10",
|
|
815
|
+
"outline-danger": "border-destructive/50 bg-background text-destructive hover:bg-destructive/10"
|
|
809
816
|
},
|
|
810
817
|
size: {
|
|
811
818
|
sm: "px-2 py-0 text-[11px]",
|
|
@@ -819,16 +826,49 @@ var badgeVariants = cva2(
|
|
|
819
826
|
}
|
|
820
827
|
}
|
|
821
828
|
);
|
|
829
|
+
var dotVariants = {
|
|
830
|
+
default: "bg-primary-foreground",
|
|
831
|
+
primary: "bg-primary-foreground",
|
|
832
|
+
neutral: "bg-muted-foreground",
|
|
833
|
+
accent: "bg-accent-foreground",
|
|
834
|
+
danger: "bg-destructive-foreground",
|
|
835
|
+
destructive: "bg-destructive-foreground",
|
|
836
|
+
success: "bg-success-foreground",
|
|
837
|
+
warning: "bg-warning-foreground",
|
|
838
|
+
info: "bg-info-foreground",
|
|
839
|
+
secondary: "bg-secondary-foreground",
|
|
840
|
+
outline: "bg-foreground",
|
|
841
|
+
"outline-success": "bg-success",
|
|
842
|
+
"outline-warning": "bg-warning",
|
|
843
|
+
"outline-info": "bg-info",
|
|
844
|
+
"outline-danger": "bg-destructive"
|
|
845
|
+
};
|
|
822
846
|
var Badge = React11.forwardRef(
|
|
823
|
-
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
824
|
-
const
|
|
825
|
-
|
|
847
|
+
({ className, variant, size, asChild = false, dot = false, children, ...props }, ref) => {
|
|
848
|
+
const classNames = cn(badgeVariants({ variant, size }), dot && "gap-1.5", className);
|
|
849
|
+
const dotEl = dot ? /* @__PURE__ */ jsx9(
|
|
850
|
+
"span",
|
|
851
|
+
{
|
|
852
|
+
"aria-hidden": "true",
|
|
853
|
+
className: cn("h-1.5 w-1.5 shrink-0 rounded-full", dotVariants[variant ?? "default"])
|
|
854
|
+
}
|
|
855
|
+
) : null;
|
|
856
|
+
if (asChild) {
|
|
857
|
+
return /* @__PURE__ */ jsxs5(Slot2, { ref, className: classNames, ...props, children: [
|
|
858
|
+
dotEl,
|
|
859
|
+
/* @__PURE__ */ jsx9(Slottable, { children })
|
|
860
|
+
] });
|
|
861
|
+
}
|
|
862
|
+
return /* @__PURE__ */ jsxs5("span", { ref, className: classNames, ...props, children: [
|
|
863
|
+
dotEl,
|
|
864
|
+
children
|
|
865
|
+
] });
|
|
826
866
|
}
|
|
827
867
|
);
|
|
828
868
|
Badge.displayName = "Badge";
|
|
829
869
|
|
|
830
870
|
// src/components/bottom-nav/BottomNav.tsx
|
|
831
|
-
import { Fragment, jsx as jsx10, jsxs as
|
|
871
|
+
import { Fragment, jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
832
872
|
var tabClass = "relative flex min-h-14 w-full flex-col items-center justify-center gap-0.5 px-2 py-2 text-[11px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset";
|
|
833
873
|
function BottomNav({
|
|
834
874
|
items,
|
|
@@ -859,7 +899,7 @@ function BottomNav({
|
|
|
859
899
|
className: "mx-auto grid w-full max-w-lg",
|
|
860
900
|
style: { gridTemplateColumns: `repeat(${Math.max(items.length, 1)}, minmax(0, 1fr))` },
|
|
861
901
|
children: items.map((item) => {
|
|
862
|
-
const content = /* @__PURE__ */
|
|
902
|
+
const content = /* @__PURE__ */ jsxs6(Fragment, { children: [
|
|
863
903
|
item.icon && /* @__PURE__ */ jsx10("span", { "aria-hidden": "true", className: "[&_svg]:size-5", children: item.icon }),
|
|
864
904
|
/* @__PURE__ */ jsx10("span", { children: item.label }),
|
|
865
905
|
item.badge != null && /* @__PURE__ */ jsx10("span", { className: "absolute right-1/4 top-1 rounded-full bg-primary px-1.5 text-[10px] font-semibold leading-4 text-primary-foreground", children: item.badge })
|
|
@@ -960,7 +1000,7 @@ function Spinner({ className, size, label = "Loading...", ...props }) {
|
|
|
960
1000
|
|
|
961
1001
|
// src/components/toast/Toast.tsx
|
|
962
1002
|
import * as React13 from "react";
|
|
963
|
-
import { jsx as jsx13, jsxs as
|
|
1003
|
+
import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
964
1004
|
var ToastContext = React13.createContext(null);
|
|
965
1005
|
var DEFAULT_DURATION = 5e3;
|
|
966
1006
|
function ToastProvider({ children, label = "Notifications" }) {
|
|
@@ -997,7 +1037,7 @@ function ToastProvider({ children, label = "Notifications" }) {
|
|
|
997
1037
|
};
|
|
998
1038
|
}, []);
|
|
999
1039
|
const value = React13.useMemo(() => ({ toasts: toasts2, toast: toast2, dismiss: dismiss2 }), [toasts2, toast2, dismiss2]);
|
|
1000
|
-
return /* @__PURE__ */
|
|
1040
|
+
return /* @__PURE__ */ jsxs7(ToastContext.Provider, { value, children: [
|
|
1001
1041
|
children,
|
|
1002
1042
|
/* @__PURE__ */ jsx13(ToastRegion, { toasts: toasts2, onDismiss: dismiss2, label })
|
|
1003
1043
|
] });
|
|
@@ -1017,9 +1057,9 @@ function ToastRegion({
|
|
|
1017
1057
|
{
|
|
1018
1058
|
"aria-label": label,
|
|
1019
1059
|
className: "fixed bottom-4 right-4 z-50 flex w-full max-w-sm flex-col gap-2",
|
|
1020
|
-
children: toasts2.map((entry) => /* @__PURE__ */
|
|
1021
|
-
/* @__PURE__ */
|
|
1022
|
-
/* @__PURE__ */
|
|
1060
|
+
children: toasts2.map((entry) => /* @__PURE__ */ jsxs7("li", { className: "rounded-lg border border-border bg-card p-4 shadow-lg", children: [
|
|
1061
|
+
/* @__PURE__ */ jsxs7("div", { role: "status", className: "flex items-start justify-between gap-3", children: [
|
|
1062
|
+
/* @__PURE__ */ jsxs7("div", { children: [
|
|
1023
1063
|
/* @__PURE__ */ jsx13("p", { className: "text-sm font-semibold", children: entry.title }),
|
|
1024
1064
|
entry.description && /* @__PURE__ */ jsx13("p", { className: "mt-1 text-sm text-muted-foreground", children: entry.description })
|
|
1025
1065
|
] }),
|
|
@@ -1116,7 +1156,7 @@ function getToastServerSnapshot() {
|
|
|
1116
1156
|
}
|
|
1117
1157
|
|
|
1118
1158
|
// src/components/toast/Toaster.tsx
|
|
1119
|
-
import { jsx as jsx14, jsxs as
|
|
1159
|
+
import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1120
1160
|
var positionClasses = {
|
|
1121
1161
|
"top-left": "left-4 top-4 items-start",
|
|
1122
1162
|
"top-center": "left-1/2 top-4 -translate-x-1/2 items-center",
|
|
@@ -1155,9 +1195,9 @@ function Toaster({ position = "bottom-right", label = "Notifications", dismissLa
|
|
|
1155
1195
|
"rounded-lg border p-4 shadow-lg",
|
|
1156
1196
|
richColors ? richClasses[variant] : "border-border bg-card"
|
|
1157
1197
|
),
|
|
1158
|
-
children: /* @__PURE__ */
|
|
1198
|
+
children: /* @__PURE__ */ jsxs8("div", { role: "status", className: "flex items-start gap-3", children: [
|
|
1159
1199
|
/* @__PURE__ */ jsx14("span", { "aria-hidden": "true", className: cn("mt-1 h-2 w-2 shrink-0 rounded-full", dotClasses[variant]) }),
|
|
1160
|
-
/* @__PURE__ */
|
|
1200
|
+
/* @__PURE__ */ jsxs8("div", { className: "min-w-0 flex-1", children: [
|
|
1161
1201
|
/* @__PURE__ */ jsx14("p", { className: "text-sm font-semibold", children: entry.title }),
|
|
1162
1202
|
entry.description && /* @__PURE__ */ jsx14("p", { className: "mt-1 text-sm text-muted-foreground", children: entry.description }),
|
|
1163
1203
|
entry.action && /* @__PURE__ */ jsx14(
|
|
@@ -1196,7 +1236,7 @@ function Toaster({ position = "bottom-right", label = "Notifications", dismissLa
|
|
|
1196
1236
|
// src/components/dialog/Dialog.tsx
|
|
1197
1237
|
import * as React15 from "react";
|
|
1198
1238
|
import { createPortal as createPortal2 } from "react-dom";
|
|
1199
|
-
import { jsx as jsx15, jsxs as
|
|
1239
|
+
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1200
1240
|
var FOCUSABLE2 = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1201
1241
|
var sizeClasses2 = {
|
|
1202
1242
|
sm: "max-w-sm",
|
|
@@ -1317,9 +1357,9 @@ function Dialog({
|
|
|
1317
1357
|
sizeClasses2[size],
|
|
1318
1358
|
motion
|
|
1319
1359
|
),
|
|
1320
|
-
children: /* @__PURE__ */
|
|
1321
|
-
header ?? /* @__PURE__ */
|
|
1322
|
-
/* @__PURE__ */
|
|
1360
|
+
children: /* @__PURE__ */ jsxs9(DialogIdsContext.Provider, { value: { titleId, descriptionId }, children: [
|
|
1361
|
+
header ?? /* @__PURE__ */ jsxs9(DialogHeader, { children: [
|
|
1362
|
+
/* @__PURE__ */ jsxs9("div", { className: "min-w-0", children: [
|
|
1323
1363
|
title && /* @__PURE__ */ jsx15(DialogTitle, { children: title }),
|
|
1324
1364
|
description && /* @__PURE__ */ jsx15(DialogDescription, { children: description })
|
|
1325
1365
|
] }),
|
|
@@ -1357,17 +1397,17 @@ function Dialog({
|
|
|
1357
1397
|
|
|
1358
1398
|
// src/components/table-card/TableCard.tsx
|
|
1359
1399
|
import * as React16 from "react";
|
|
1360
|
-
import { jsx as jsx16, jsxs as
|
|
1400
|
+
import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1361
1401
|
var TableCard = React16.forwardRef(function TableCard2({ title, description, actions, toolbar, children, footer, flush = true, className, ...props }, ref) {
|
|
1362
|
-
return /* @__PURE__ */
|
|
1402
|
+
return /* @__PURE__ */ jsxs10(
|
|
1363
1403
|
"div",
|
|
1364
1404
|
{
|
|
1365
1405
|
ref,
|
|
1366
1406
|
className: cn("overflow-hidden rounded-xl border border-border bg-card text-card-foreground", className),
|
|
1367
1407
|
...props,
|
|
1368
1408
|
children: [
|
|
1369
|
-
(title || description || actions) && /* @__PURE__ */
|
|
1370
|
-
/* @__PURE__ */
|
|
1409
|
+
(title || description || actions) && /* @__PURE__ */ jsxs10("div", { className: "flex flex-wrap items-start justify-between gap-3 border-b border-border px-4 py-3", children: [
|
|
1410
|
+
/* @__PURE__ */ jsxs10("div", { className: "min-w-0", children: [
|
|
1371
1411
|
title && /* @__PURE__ */ jsx16("h2", { className: "text-sm font-semibold", children: title }),
|
|
1372
1412
|
description && /* @__PURE__ */ jsx16("p", { className: "mt-0.5 text-sm text-muted-foreground", children: description })
|
|
1373
1413
|
] }),
|
|
@@ -1384,7 +1424,7 @@ var TableCard = React16.forwardRef(function TableCard2({ title, description, act
|
|
|
1384
1424
|
// src/components/select-menu/SelectMenu.tsx
|
|
1385
1425
|
import * as React17 from "react";
|
|
1386
1426
|
import { createPortal as createPortal3 } from "react-dom";
|
|
1387
|
-
import { Fragment as Fragment2, jsx as jsx17, jsxs as
|
|
1427
|
+
import { Fragment as Fragment2, jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1388
1428
|
function useOutsideClose(open, close, refs) {
|
|
1389
1429
|
React17.useEffect(() => {
|
|
1390
1430
|
if (!open) return;
|
|
@@ -1559,10 +1599,10 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1559
1599
|
});
|
|
1560
1600
|
return out;
|
|
1561
1601
|
}, [items]);
|
|
1562
|
-
return /* @__PURE__ */
|
|
1602
|
+
return /* @__PURE__ */ jsxs11(Fragment2, { children: [
|
|
1563
1603
|
/* @__PURE__ */ jsx17("span", { id: labelId, className: "sr-only", children: typeof buttonProps["aria-label"] === "string" ? buttonProps["aria-label"] : "Select" }),
|
|
1564
1604
|
name && selectedValues.map((selected) => /* @__PURE__ */ jsx17("input", { type: "hidden", name, value: selected }, selected)),
|
|
1565
|
-
/* @__PURE__ */
|
|
1605
|
+
/* @__PURE__ */ jsxs11(
|
|
1566
1606
|
"button",
|
|
1567
1607
|
{
|
|
1568
1608
|
ref: setTriggerRef,
|
|
@@ -1634,9 +1674,9 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1634
1674
|
children: renderItem ? renderItem(row.item, {
|
|
1635
1675
|
selected: selectedValues.includes(row.item.value),
|
|
1636
1676
|
active: row.index === activeIndex
|
|
1637
|
-
}) : /* @__PURE__ */
|
|
1677
|
+
}) : /* @__PURE__ */ jsxs11(Fragment2, { children: [
|
|
1638
1678
|
row.item.icon && /* @__PURE__ */ jsx17("span", { className: "mt-0.5 shrink-0 [&_svg]:size-4", children: row.item.icon }),
|
|
1639
|
-
/* @__PURE__ */
|
|
1679
|
+
/* @__PURE__ */ jsxs11("span", { className: "min-w-0 flex-1", children: [
|
|
1640
1680
|
/* @__PURE__ */ jsx17("span", { className: "block", children: row.item.label }),
|
|
1641
1681
|
row.item.description && /* @__PURE__ */ jsx17("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: row.item.description })
|
|
1642
1682
|
] }),
|
|
@@ -1778,7 +1818,7 @@ function useCombobox({
|
|
|
1778
1818
|
}
|
|
1779
1819
|
|
|
1780
1820
|
// src/components/search/Search.tsx
|
|
1781
|
-
import { jsx as jsx18, jsxs as
|
|
1821
|
+
import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1782
1822
|
function Search({
|
|
1783
1823
|
options,
|
|
1784
1824
|
value,
|
|
@@ -1821,7 +1861,7 @@ function Search({
|
|
|
1821
1861
|
onValueChange?.(item.value);
|
|
1822
1862
|
combobox.setOpen(false);
|
|
1823
1863
|
};
|
|
1824
|
-
return /* @__PURE__ */
|
|
1864
|
+
return /* @__PURE__ */ jsxs12("div", { ref: combobox.anchorRef, className: cn("relative w-full", className), children: [
|
|
1825
1865
|
/* @__PURE__ */ jsx18(
|
|
1826
1866
|
Input,
|
|
1827
1867
|
{
|
|
@@ -1860,7 +1900,7 @@ function Search({
|
|
|
1860
1900
|
zIndex: 50
|
|
1861
1901
|
},
|
|
1862
1902
|
className: "max-h-64 overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1863
|
-
children: filtered.length === 0 ? /* @__PURE__ */ jsx18("li", { role: "presentation", className: "px-3 py-2 text-sm text-muted-foreground", children: emptyText }) : filtered.map((option, index) => /* @__PURE__ */
|
|
1903
|
+
children: filtered.length === 0 ? /* @__PURE__ */ jsx18("li", { role: "presentation", className: "px-3 py-2 text-sm text-muted-foreground", children: emptyText }) : filtered.map((option, index) => /* @__PURE__ */ jsxs12(
|
|
1864
1904
|
"li",
|
|
1865
1905
|
{
|
|
1866
1906
|
id: combobox.optionId(index),
|
|
@@ -1890,7 +1930,7 @@ function Search({
|
|
|
1890
1930
|
// src/components/autocomplete/Autocomplete.tsx
|
|
1891
1931
|
import * as React20 from "react";
|
|
1892
1932
|
import { createPortal as createPortal5 } from "react-dom";
|
|
1893
|
-
import { Fragment as Fragment3, jsx as jsx19, jsxs as
|
|
1933
|
+
import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1894
1934
|
function normalize(entry) {
|
|
1895
1935
|
if (typeof entry === "string") return { value: entry, label: entry };
|
|
1896
1936
|
return { value: entry.value, label: entry.label ?? entry.value, group: entry.group, description: entry.description };
|
|
@@ -1971,7 +2011,7 @@ function Autocomplete({
|
|
|
1971
2011
|
});
|
|
1972
2012
|
return out;
|
|
1973
2013
|
}, [items]);
|
|
1974
|
-
return /* @__PURE__ */
|
|
2014
|
+
return /* @__PURE__ */ jsxs13("div", { ref: combobox.anchorRef, className: cn("relative w-full", className), children: [
|
|
1975
2015
|
/* @__PURE__ */ jsx19(
|
|
1976
2016
|
Input,
|
|
1977
2017
|
{
|
|
@@ -2050,7 +2090,7 @@ function Autocomplete({
|
|
|
2050
2090
|
"cursor-pointer rounded-sm px-3 py-1.5 text-sm outline-none",
|
|
2051
2091
|
combobox.activeIndex === entry.index ? "bg-accent text-accent-foreground" : "hover:bg-accent/60"
|
|
2052
2092
|
),
|
|
2053
|
-
children: renderOption ? renderOption(entry.option, { active: combobox.activeIndex === entry.index }) : /* @__PURE__ */
|
|
2093
|
+
children: renderOption ? renderOption(entry.option, { active: combobox.activeIndex === entry.index }) : /* @__PURE__ */ jsxs13(Fragment3, { children: [
|
|
2054
2094
|
/* @__PURE__ */ jsx19("span", { className: "block", children: entry.option.label }),
|
|
2055
2095
|
entry.option.description && /* @__PURE__ */ jsx19("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: entry.option.description })
|
|
2056
2096
|
] })
|
|
@@ -2094,7 +2134,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
2094
2134
|
|
|
2095
2135
|
// src/components/checkbox/CheckboxGroup.tsx
|
|
2096
2136
|
import * as React22 from "react";
|
|
2097
|
-
import { jsx as jsx21, jsxs as
|
|
2137
|
+
import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2098
2138
|
var CheckboxGroupContext = React22.createContext({
|
|
2099
2139
|
name: "",
|
|
2100
2140
|
values: [],
|
|
@@ -2110,7 +2150,7 @@ var CheckboxGroup = React22.forwardRef(
|
|
|
2110
2150
|
if (value === void 0) setInternalValue(updated);
|
|
2111
2151
|
onValueChange?.(updated);
|
|
2112
2152
|
};
|
|
2113
|
-
return /* @__PURE__ */
|
|
2153
|
+
return /* @__PURE__ */ jsxs14("fieldset", { ref, className: cn(orientation === "vertical" ? "space-y-2" : "flex flex-row flex-wrap gap-x-4 gap-y-2", className), children: [
|
|
2114
2154
|
legend && /* @__PURE__ */ jsx21("legend", { className: "text-sm font-medium", children: legend }),
|
|
2115
2155
|
/* @__PURE__ */ jsx21(CheckboxGroupContext.Provider, { value: { name, values: currentValue, toggle }, children }),
|
|
2116
2156
|
error && /* @__PURE__ */ jsx21("p", { role: "alert", className: "text-xs text-destructive", children: error })
|
|
@@ -2123,7 +2163,7 @@ var CheckboxGroupItem = React22.forwardRef(
|
|
|
2123
2163
|
const group = React22.useContext(CheckboxGroupContext);
|
|
2124
2164
|
const generatedId = React22.useId();
|
|
2125
2165
|
const inputId = id ?? generatedId;
|
|
2126
|
-
return /* @__PURE__ */
|
|
2166
|
+
return /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-2", children: [
|
|
2127
2167
|
/* @__PURE__ */ jsx21(
|
|
2128
2168
|
Checkbox,
|
|
2129
2169
|
{
|
|
@@ -2152,7 +2192,7 @@ CheckboxGroupItem.displayName = "CheckboxGroupItem";
|
|
|
2152
2192
|
|
|
2153
2193
|
// src/components/radio/Radio.tsx
|
|
2154
2194
|
import * as React23 from "react";
|
|
2155
|
-
import { jsx as jsx22, jsxs as
|
|
2195
|
+
import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2156
2196
|
var Radio = React23.forwardRef(
|
|
2157
2197
|
({ className, checked, onCheckedChange, onChange, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2158
2198
|
"input",
|
|
@@ -2184,7 +2224,7 @@ var RadioGroup = React23.forwardRef(
|
|
|
2184
2224
|
if (value === void 0) setInternalValue(next);
|
|
2185
2225
|
onValueChange?.(next);
|
|
2186
2226
|
};
|
|
2187
|
-
return /* @__PURE__ */
|
|
2227
|
+
return /* @__PURE__ */ jsxs15(
|
|
2188
2228
|
"fieldset",
|
|
2189
2229
|
{
|
|
2190
2230
|
ref,
|
|
@@ -2213,7 +2253,7 @@ var RadioGroupItem = React23.forwardRef(
|
|
|
2213
2253
|
const group = React23.useContext(RadioGroupContext);
|
|
2214
2254
|
const generatedId = React23.useId();
|
|
2215
2255
|
const inputId = id ?? generatedId;
|
|
2216
|
-
return /* @__PURE__ */
|
|
2256
|
+
return /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2", children: [
|
|
2217
2257
|
/* @__PURE__ */ jsx22(
|
|
2218
2258
|
Radio,
|
|
2219
2259
|
{
|
|
@@ -2235,13 +2275,13 @@ RadioGroupItem.displayName = "RadioGroupItem";
|
|
|
2235
2275
|
|
|
2236
2276
|
// src/components/radio/RadioCard.tsx
|
|
2237
2277
|
import * as React24 from "react";
|
|
2238
|
-
import { jsx as jsx23, jsxs as
|
|
2278
|
+
import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2239
2279
|
var RadioCard = React24.forwardRef(
|
|
2240
2280
|
({ value, title, description, children, rounded = true, disabled, className, id }, ref) => {
|
|
2241
2281
|
const group = React24.useContext(RadioGroupContext);
|
|
2242
2282
|
const generatedId = React24.useId();
|
|
2243
2283
|
const inputId = id ?? generatedId;
|
|
2244
|
-
return /* @__PURE__ */
|
|
2284
|
+
return /* @__PURE__ */ jsxs16(
|
|
2245
2285
|
"label",
|
|
2246
2286
|
{
|
|
2247
2287
|
ref,
|
|
@@ -2298,9 +2338,9 @@ Label.displayName = "Label";
|
|
|
2298
2338
|
|
|
2299
2339
|
// src/components/fieldset/Fieldset.tsx
|
|
2300
2340
|
import * as React26 from "react";
|
|
2301
|
-
import { jsx as jsx25, jsxs as
|
|
2341
|
+
import { jsx as jsx25, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2302
2342
|
var Fieldset = React26.forwardRef(
|
|
2303
|
-
({ legend, description, error, className, children, ...props }, ref) => /* @__PURE__ */
|
|
2343
|
+
({ legend, description, error, className, children, ...props }, ref) => /* @__PURE__ */ jsxs17(
|
|
2304
2344
|
"fieldset",
|
|
2305
2345
|
{
|
|
2306
2346
|
ref,
|
|
@@ -2323,7 +2363,7 @@ import * as React28 from "react";
|
|
|
2323
2363
|
// src/components/tooltip/Tooltip.tsx
|
|
2324
2364
|
import * as React27 from "react";
|
|
2325
2365
|
import { createPortal as createPortal6 } from "react-dom";
|
|
2326
|
-
import { jsx as jsx26, jsxs as
|
|
2366
|
+
import { jsx as jsx26, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2327
2367
|
var GAP = 8;
|
|
2328
2368
|
var VARIANTS = {
|
|
2329
2369
|
default: "border-border bg-popover text-popover-foreground",
|
|
@@ -2368,7 +2408,7 @@ var Tooltip = React27.forwardRef(
|
|
|
2368
2408
|
const trigger = React27.cloneElement(children, {
|
|
2369
2409
|
"aria-describedby": open ? id : void 0
|
|
2370
2410
|
});
|
|
2371
|
-
return /* @__PURE__ */
|
|
2411
|
+
return /* @__PURE__ */ jsxs18(
|
|
2372
2412
|
"div",
|
|
2373
2413
|
{
|
|
2374
2414
|
ref: (node) => {
|
|
@@ -2413,7 +2453,7 @@ var Tooltip = React27.forwardRef(
|
|
|
2413
2453
|
Tooltip.displayName = "Tooltip";
|
|
2414
2454
|
|
|
2415
2455
|
// src/components/form-field/FormField.tsx
|
|
2416
|
-
import { Fragment as Fragment5, jsx as jsx27, jsxs as
|
|
2456
|
+
import { Fragment as Fragment5, jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2417
2457
|
var FormField = ({
|
|
2418
2458
|
id,
|
|
2419
2459
|
label,
|
|
@@ -2438,9 +2478,9 @@ var FormField = ({
|
|
|
2438
2478
|
...error ? { "aria-invalid": true } : {}
|
|
2439
2479
|
});
|
|
2440
2480
|
}
|
|
2441
|
-
const labelNode = /* @__PURE__ */
|
|
2481
|
+
const labelNode = /* @__PURE__ */ jsxs19(Label, { htmlFor: id, className: labelHidden ? "sr-only" : void 0, children: [
|
|
2442
2482
|
label,
|
|
2443
|
-
required && /* @__PURE__ */
|
|
2483
|
+
required && /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
2444
2484
|
" ",
|
|
2445
2485
|
/* @__PURE__ */ jsx27("span", { "aria-hidden": "true", className: "ml-0.5 text-destructive", children: "*" })
|
|
2446
2486
|
] })
|
|
@@ -2456,13 +2496,13 @@ var FormField = ({
|
|
|
2456
2496
|
) }) : null;
|
|
2457
2497
|
const hintOrError = error ? /* @__PURE__ */ jsx27("p", { id: errorId, role: "alert", className: "text-xs text-destructive", children: error }) : hint ? /* @__PURE__ */ jsx27("p", { id: hintId, className: "text-xs text-muted-foreground", children: hint }) : null;
|
|
2458
2498
|
if (labelPlacement === "left") {
|
|
2459
|
-
return /* @__PURE__ */ jsx27("div", { className: cn("flex min-w-0 flex-col gap-1.5", className), children: /* @__PURE__ */
|
|
2460
|
-
/* @__PURE__ */
|
|
2499
|
+
return /* @__PURE__ */ jsx27("div", { className: cn("flex min-w-0 flex-col gap-1.5", className), children: /* @__PURE__ */ jsxs19("div", { className: "flex items-start gap-3", children: [
|
|
2500
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex w-40 shrink-0 items-center gap-1 pt-2", children: [
|
|
2461
2501
|
labelNode,
|
|
2462
2502
|
tooltipNode
|
|
2463
2503
|
] }),
|
|
2464
|
-
/* @__PURE__ */
|
|
2465
|
-
/* @__PURE__ */
|
|
2504
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
|
|
2505
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
2466
2506
|
/* @__PURE__ */ jsx27("div", { className: "min-w-0 flex-1", children: control }),
|
|
2467
2507
|
trailing && /* @__PURE__ */ jsx27("span", { className: "shrink-0 text-xs text-muted-foreground", children: trailing })
|
|
2468
2508
|
] }),
|
|
@@ -2470,9 +2510,9 @@ var FormField = ({
|
|
|
2470
2510
|
] })
|
|
2471
2511
|
] }) });
|
|
2472
2512
|
}
|
|
2473
|
-
return /* @__PURE__ */
|
|
2474
|
-
/* @__PURE__ */
|
|
2475
|
-
/* @__PURE__ */
|
|
2513
|
+
return /* @__PURE__ */ jsxs19("div", { className: cn("flex min-w-0 flex-col gap-1.5", className), children: [
|
|
2514
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2515
|
+
/* @__PURE__ */ jsxs19("span", { className: "flex min-w-0 items-center", children: [
|
|
2476
2516
|
labelNode,
|
|
2477
2517
|
tooltipNode
|
|
2478
2518
|
] }),
|
|
@@ -2511,7 +2551,7 @@ Form.displayName = "Form";
|
|
|
2511
2551
|
|
|
2512
2552
|
// src/components/form-layout/FormLayout.tsx
|
|
2513
2553
|
import * as React30 from "react";
|
|
2514
|
-
import { jsx as jsx29, jsxs as
|
|
2554
|
+
import { jsx as jsx29, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2515
2555
|
var GRID_COLUMNS = {
|
|
2516
2556
|
1: "grid-cols-1",
|
|
2517
2557
|
2: "grid-cols-2",
|
|
@@ -2533,7 +2573,7 @@ var FormLayout = React30.forwardRef(
|
|
|
2533
2573
|
}, ref) => {
|
|
2534
2574
|
const Tag = as;
|
|
2535
2575
|
const gapResolved = resolveGap(gap ?? "md");
|
|
2536
|
-
return /* @__PURE__ */
|
|
2576
|
+
return /* @__PURE__ */ jsxs20(
|
|
2537
2577
|
Tag,
|
|
2538
2578
|
{
|
|
2539
2579
|
ref,
|
|
@@ -2560,7 +2600,7 @@ FormLayout.displayName = "FormLayout";
|
|
|
2560
2600
|
|
|
2561
2601
|
// src/components/switch/Switch.tsx
|
|
2562
2602
|
import * as React31 from "react";
|
|
2563
|
-
import { Fragment as Fragment6, jsx as jsx30, jsxs as
|
|
2603
|
+
import { Fragment as Fragment6, jsx as jsx30, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2564
2604
|
var Switch = React31.forwardRef(
|
|
2565
2605
|
({ className, checked, defaultChecked, onCheckedChange, disabled, name, value, ...props }, ref) => {
|
|
2566
2606
|
const [internalChecked, setInternalChecked] = React31.useState(defaultChecked ?? false);
|
|
@@ -2569,7 +2609,7 @@ var Switch = React31.forwardRef(
|
|
|
2569
2609
|
if (checked === void 0) setInternalChecked((prev) => !prev);
|
|
2570
2610
|
onCheckedChange?.(!isOn);
|
|
2571
2611
|
};
|
|
2572
|
-
return /* @__PURE__ */
|
|
2612
|
+
return /* @__PURE__ */ jsxs21(Fragment6, { children: [
|
|
2573
2613
|
name && /* @__PURE__ */ jsx30(
|
|
2574
2614
|
"input",
|
|
2575
2615
|
{
|
|
@@ -2648,7 +2688,7 @@ var Divider = Separator;
|
|
|
2648
2688
|
|
|
2649
2689
|
// src/components/skeleton/Skeleton.tsx
|
|
2650
2690
|
import * as React33 from "react";
|
|
2651
|
-
import { jsx as jsx32, jsxs as
|
|
2691
|
+
import { jsx as jsx32, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2652
2692
|
var roundedClasses = {
|
|
2653
2693
|
none: "rounded-none",
|
|
2654
2694
|
sm: "rounded-sm",
|
|
@@ -2657,7 +2697,7 @@ var roundedClasses = {
|
|
|
2657
2697
|
full: "rounded-full"
|
|
2658
2698
|
};
|
|
2659
2699
|
var Skeleton = React33.forwardRef(
|
|
2660
|
-
({ className, height, width, rounded = "md", label, children, ...props }, ref) => /* @__PURE__ */
|
|
2700
|
+
({ className, height, width, rounded = "md", label, children, ...props }, ref) => /* @__PURE__ */ jsxs22(
|
|
2661
2701
|
"div",
|
|
2662
2702
|
{
|
|
2663
2703
|
ref,
|
|
@@ -2929,7 +2969,7 @@ TabsContent.displayName = "TabsContent";
|
|
|
2929
2969
|
// src/components/link-tabs/LinkTabs.tsx
|
|
2930
2970
|
import * as React36 from "react";
|
|
2931
2971
|
import { cva as cva6 } from "class-variance-authority";
|
|
2932
|
-
import { Fragment as Fragment7, jsx as jsx35, jsxs as
|
|
2972
|
+
import { Fragment as Fragment7, jsx as jsx35, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2933
2973
|
var listVariants = cva6("inline-flex items-center", {
|
|
2934
2974
|
variants: {
|
|
2935
2975
|
variant: {
|
|
@@ -2983,7 +3023,7 @@ var LinkTabs = React36.forwardRef(function LinkTabs2({
|
|
|
2983
3023
|
const Link3 = linkComponent ?? "a";
|
|
2984
3024
|
return /* @__PURE__ */ jsx35("nav", { ref, "aria-label": label, className: cn(listVariants({ variant, size }), className), ...props, children: items.map((item) => {
|
|
2985
3025
|
const active = isActive(item, activeHref);
|
|
2986
|
-
const content = /* @__PURE__ */
|
|
3026
|
+
const content = /* @__PURE__ */ jsxs23(Fragment7, { children: [
|
|
2987
3027
|
item.icon,
|
|
2988
3028
|
item.label
|
|
2989
3029
|
] });
|
|
@@ -3016,7 +3056,7 @@ LinkTabs.displayName = "LinkTabs";
|
|
|
3016
3056
|
|
|
3017
3057
|
// src/components/theme-toggle/ThemeToggle.tsx
|
|
3018
3058
|
import * as React37 from "react";
|
|
3019
|
-
import { jsx as jsx36, jsxs as
|
|
3059
|
+
import { jsx as jsx36, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3020
3060
|
var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChange, labels, size = "md", className, ...props }, ref) {
|
|
3021
3061
|
const next = theme === "dark" ? "light" : "dark";
|
|
3022
3062
|
const label = next === "dark" ? labels?.toDark ?? "Switch to dark theme" : labels?.toLight ?? "Switch to light theme";
|
|
@@ -3036,7 +3076,7 @@ var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChang
|
|
|
3036
3076
|
className
|
|
3037
3077
|
),
|
|
3038
3078
|
...props,
|
|
3039
|
-
children: theme === "dark" ? /* @__PURE__ */
|
|
3079
|
+
children: theme === "dark" ? /* @__PURE__ */ jsxs24(
|
|
3040
3080
|
"svg",
|
|
3041
3081
|
{
|
|
3042
3082
|
viewBox: "0 0 24 24",
|
|
@@ -3188,7 +3228,7 @@ function formatDateLabel(key, locale = "en-US") {
|
|
|
3188
3228
|
}
|
|
3189
3229
|
|
|
3190
3230
|
// src/components/calendar/Calendar.tsx
|
|
3191
|
-
import { jsx as jsx37, jsxs as
|
|
3231
|
+
import { jsx as jsx37, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3192
3232
|
var MOVES = {
|
|
3193
3233
|
ArrowLeft: "left",
|
|
3194
3234
|
ArrowRight: "right",
|
|
@@ -3278,7 +3318,7 @@ var Calendar = React38.forwardRef(
|
|
|
3278
3318
|
return () => clearTimeout(timer);
|
|
3279
3319
|
}, [autoFocus, tabbable, view.year, view.month]);
|
|
3280
3320
|
const monthName = monthLabel(view.year, view.month, locale);
|
|
3281
|
-
return /* @__PURE__ */
|
|
3321
|
+
return /* @__PURE__ */ jsxs25(
|
|
3282
3322
|
"div",
|
|
3283
3323
|
{
|
|
3284
3324
|
ref,
|
|
@@ -3286,7 +3326,7 @@ var Calendar = React38.forwardRef(
|
|
|
3286
3326
|
"data-disabled": disabled ? "" : void 0,
|
|
3287
3327
|
...props,
|
|
3288
3328
|
children: [
|
|
3289
|
-
/* @__PURE__ */
|
|
3329
|
+
/* @__PURE__ */ jsxs25("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
3290
3330
|
/* @__PURE__ */ jsx37(
|
|
3291
3331
|
Button,
|
|
3292
3332
|
{
|
|
@@ -3313,7 +3353,7 @@ var Calendar = React38.forwardRef(
|
|
|
3313
3353
|
}
|
|
3314
3354
|
)
|
|
3315
3355
|
] }),
|
|
3316
|
-
/* @__PURE__ */
|
|
3356
|
+
/* @__PURE__ */ jsxs25(
|
|
3317
3357
|
"div",
|
|
3318
3358
|
{
|
|
3319
3359
|
ref: gridRef,
|
|
@@ -3427,7 +3467,7 @@ CardFooter.displayName = "CardFooter";
|
|
|
3427
3467
|
|
|
3428
3468
|
// src/components/confirm-dialog/ConfirmDialog.tsx
|
|
3429
3469
|
import * as React40 from "react";
|
|
3430
|
-
import { jsx as jsx39, jsxs as
|
|
3470
|
+
import { jsx as jsx39, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3431
3471
|
function ConfirmDialog({
|
|
3432
3472
|
open,
|
|
3433
3473
|
onOpenChange,
|
|
@@ -3461,7 +3501,7 @@ function ConfirmDialog({
|
|
|
3461
3501
|
title,
|
|
3462
3502
|
description,
|
|
3463
3503
|
size: "sm",
|
|
3464
|
-
footer: /* @__PURE__ */
|
|
3504
|
+
footer: /* @__PURE__ */ jsxs26(DialogFooter, { children: [
|
|
3465
3505
|
/* @__PURE__ */ jsx39(Button, { variant: "ghost", onClick: () => onOpenChange(false), disabled: pending, children: cancelLabel }),
|
|
3466
3506
|
/* @__PURE__ */ jsx39(
|
|
3467
3507
|
Button,
|
|
@@ -3480,7 +3520,7 @@ function ConfirmDialog({
|
|
|
3480
3520
|
|
|
3481
3521
|
// src/components/table-of-contents/TableOfContents.tsx
|
|
3482
3522
|
import * as React41 from "react";
|
|
3483
|
-
import { jsx as jsx40, jsxs as
|
|
3523
|
+
import { jsx as jsx40, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3484
3524
|
function TableOfContents({
|
|
3485
3525
|
headings,
|
|
3486
3526
|
activeId,
|
|
@@ -3492,7 +3532,7 @@ function TableOfContents({
|
|
|
3492
3532
|
className,
|
|
3493
3533
|
...props
|
|
3494
3534
|
}) {
|
|
3495
|
-
return /* @__PURE__ */
|
|
3535
|
+
return /* @__PURE__ */ jsxs27(
|
|
3496
3536
|
"nav",
|
|
3497
3537
|
{
|
|
3498
3538
|
"aria-label": ariaLabel ?? label,
|
|
@@ -3601,7 +3641,7 @@ var Prose = React42.forwardRef(function Prose2({ size = "md", className, ...prop
|
|
|
3601
3641
|
});
|
|
3602
3642
|
|
|
3603
3643
|
// src/components/site-footer/SiteFooter.tsx
|
|
3604
|
-
import { jsx as jsx42, jsxs as
|
|
3644
|
+
import { jsx as jsx42, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3605
3645
|
function isActive2(itemHref, activeHref, match) {
|
|
3606
3646
|
if (!activeHref) return false;
|
|
3607
3647
|
if (itemHref === activeHref) return true;
|
|
@@ -3622,13 +3662,13 @@ function SiteFooter({
|
|
|
3622
3662
|
}) {
|
|
3623
3663
|
const Link3 = linkComponent ?? "a";
|
|
3624
3664
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
3625
|
-
return /* @__PURE__ */
|
|
3626
|
-
/* @__PURE__ */
|
|
3627
|
-
/* @__PURE__ */
|
|
3665
|
+
return /* @__PURE__ */ jsxs28("footer", { className: cn("border-t border-border bg-muted/30", className), ...props, children: [
|
|
3666
|
+
/* @__PURE__ */ jsxs28("div", { className: "mx-auto grid w-full max-w-7xl gap-8 px-4 py-12 sm:grid-cols-2 sm:px-6 lg:grid-cols-4", children: [
|
|
3667
|
+
/* @__PURE__ */ jsxs28("div", { className: "min-w-0", children: [
|
|
3628
3668
|
brand,
|
|
3629
3669
|
tagline && /* @__PURE__ */ jsx42("p", { className: "mt-3 max-w-56 text-sm text-muted-foreground", children: tagline })
|
|
3630
3670
|
] }),
|
|
3631
|
-
columns.map((column) => /* @__PURE__ */
|
|
3671
|
+
columns.map((column) => /* @__PURE__ */ jsxs28("div", { children: [
|
|
3632
3672
|
/* @__PURE__ */ jsx42("h2", { className: "mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: column.title }),
|
|
3633
3673
|
/* @__PURE__ */ jsx42("ul", { className: "m-0 list-none space-y-2 p-0 text-sm", children: column.links.map((link) => {
|
|
3634
3674
|
const active = isActive2(link.href, activeHref, match);
|
|
@@ -3654,7 +3694,7 @@ function SiteFooter({
|
|
|
3654
3694
|
|
|
3655
3695
|
// src/components/site-header/SiteHeader.tsx
|
|
3656
3696
|
import * as React43 from "react";
|
|
3657
|
-
import { Fragment as Fragment8, jsx as jsx43, jsxs as
|
|
3697
|
+
import { Fragment as Fragment8, jsx as jsx43, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3658
3698
|
function isActive3(itemHref, activeHref, match) {
|
|
3659
3699
|
if (!activeHref) return false;
|
|
3660
3700
|
if (itemHref === activeHref) return true;
|
|
@@ -3743,7 +3783,7 @@ function SiteHeader({
|
|
|
3743
3783
|
!extra && "text-sm hover:text-foreground",
|
|
3744
3784
|
!extra && (active ? "font-medium text-foreground" : "text-muted-foreground")
|
|
3745
3785
|
),
|
|
3746
|
-
children: extra === "panel" ? /* @__PURE__ */
|
|
3786
|
+
children: extra === "panel" ? /* @__PURE__ */ jsxs29(Fragment8, { children: [
|
|
3747
3787
|
/* @__PURE__ */ jsx43("span", { className: "block text-sm font-medium", children: item.label }),
|
|
3748
3788
|
item.description && /* @__PURE__ */ jsx43("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: item.description })
|
|
3749
3789
|
] }) : item.label
|
|
@@ -3752,7 +3792,7 @@ function SiteHeader({
|
|
|
3752
3792
|
);
|
|
3753
3793
|
};
|
|
3754
3794
|
const hasColumns = (item) => Array.isArray(item.columns) && item.columns.length > 0;
|
|
3755
|
-
return /* @__PURE__ */
|
|
3795
|
+
return /* @__PURE__ */ jsxs29(Fragment8, { children: [
|
|
3756
3796
|
/* @__PURE__ */ jsx43(
|
|
3757
3797
|
"header",
|
|
3758
3798
|
{
|
|
@@ -3762,7 +3802,7 @@ function SiteHeader({
|
|
|
3762
3802
|
className
|
|
3763
3803
|
),
|
|
3764
3804
|
...props,
|
|
3765
|
-
children: /* @__PURE__ */
|
|
3805
|
+
children: /* @__PURE__ */ jsxs29(
|
|
3766
3806
|
"nav",
|
|
3767
3807
|
{
|
|
3768
3808
|
"aria-label": navLabel,
|
|
@@ -3771,7 +3811,7 @@ function SiteHeader({
|
|
|
3771
3811
|
navClassName
|
|
3772
3812
|
),
|
|
3773
3813
|
children: [
|
|
3774
|
-
/* @__PURE__ */
|
|
3814
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex min-w-0 items-center gap-6", children: [
|
|
3775
3815
|
/* @__PURE__ */ jsx43(
|
|
3776
3816
|
Link3,
|
|
3777
3817
|
{
|
|
@@ -3794,7 +3834,7 @@ function SiteHeader({
|
|
|
3794
3834
|
}
|
|
3795
3835
|
const panelId = `${generatedId}-panel-${item.label.replace(/\s+/g, "-").toLowerCase()}`;
|
|
3796
3836
|
const open = openMenu === item.label;
|
|
3797
|
-
return /* @__PURE__ */
|
|
3837
|
+
return /* @__PURE__ */ jsxs29(
|
|
3798
3838
|
"li",
|
|
3799
3839
|
{
|
|
3800
3840
|
"data-site-nav-item": true,
|
|
@@ -3808,7 +3848,7 @@ function SiteHeader({
|
|
|
3808
3848
|
}
|
|
3809
3849
|
},
|
|
3810
3850
|
children: [
|
|
3811
|
-
/* @__PURE__ */
|
|
3851
|
+
/* @__PURE__ */ jsxs29(
|
|
3812
3852
|
"button",
|
|
3813
3853
|
{
|
|
3814
3854
|
type: "button",
|
|
@@ -3846,7 +3886,7 @@ function SiteHeader({
|
|
|
3846
3886
|
item.columns.length > 1 ? "grid-cols-2" : "grid-cols-1",
|
|
3847
3887
|
"min-w-[22rem]"
|
|
3848
3888
|
),
|
|
3849
|
-
children: item.columns.map((column, index) => /* @__PURE__ */
|
|
3889
|
+
children: item.columns.map((column, index) => /* @__PURE__ */ jsxs29("div", { className: "min-w-40", children: [
|
|
3850
3890
|
column.heading && /* @__PURE__ */ jsx43("p", { className: "mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: column.heading }),
|
|
3851
3891
|
/* @__PURE__ */ jsx43("ul", { className: "flex flex-col gap-0.5", children: column.items.map((link) => /* @__PURE__ */ jsx43("li", { children: navLink(link, "panel") }, `${column.heading ?? index}-${link.href}-${link.label}`)) })
|
|
3852
3892
|
] }, column.heading ?? index))
|
|
@@ -3860,7 +3900,7 @@ function SiteHeader({
|
|
|
3860
3900
|
}
|
|
3861
3901
|
)
|
|
3862
3902
|
] }),
|
|
3863
|
-
/* @__PURE__ */
|
|
3903
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-2", children: [
|
|
3864
3904
|
actions,
|
|
3865
3905
|
showMobileTrigger && /* @__PURE__ */ jsx43(
|
|
3866
3906
|
"button",
|
|
@@ -3896,7 +3936,7 @@ function SiteHeader({
|
|
|
3896
3936
|
)
|
|
3897
3937
|
}
|
|
3898
3938
|
),
|
|
3899
|
-
showMobileTrigger && /* @__PURE__ */
|
|
3939
|
+
showMobileTrigger && /* @__PURE__ */ jsxs29(
|
|
3900
3940
|
Drawer,
|
|
3901
3941
|
{
|
|
3902
3942
|
open: mobileOpen,
|
|
@@ -3907,9 +3947,9 @@ function SiteHeader({
|
|
|
3907
3947
|
animate: true,
|
|
3908
3948
|
children: [
|
|
3909
3949
|
/* @__PURE__ */ jsx43("nav", { id: menuId, "aria-label": mobileNavLabel, className: "flex flex-col gap-1", children: items.map(
|
|
3910
|
-
(item) => hasColumns(item) ? /* @__PURE__ */
|
|
3950
|
+
(item) => hasColumns(item) ? /* @__PURE__ */ jsxs29("details", { className: "rounded-md", children: [
|
|
3911
3951
|
/* @__PURE__ */ jsx43("summary", { className: "cursor-pointer rounded-md px-3 py-2 text-base font-medium hover:bg-accent", children: item.label }),
|
|
3912
|
-
/* @__PURE__ */ jsx43("div", { className: "mt-1 flex flex-col gap-2 pb-2", children: item.columns.map((column, index) => /* @__PURE__ */
|
|
3952
|
+
/* @__PURE__ */ jsx43("div", { className: "mt-1 flex flex-col gap-2 pb-2", children: item.columns.map((column, index) => /* @__PURE__ */ jsxs29("div", { className: "px-3", children: [
|
|
3913
3953
|
column.heading && /* @__PURE__ */ jsx43("p", { className: "mb-1 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: column.heading }),
|
|
3914
3954
|
/* @__PURE__ */ jsx43("ul", { className: "flex flex-col gap-1", children: column.items.map((link) => /* @__PURE__ */ jsx43("li", { children: navLink(link, "mobile") }, `${column.heading ?? index}-${link.href}-${link.label}`)) })
|
|
3915
3955
|
] }, column.heading ?? index)) })
|
|
@@ -3924,7 +3964,7 @@ function SiteHeader({
|
|
|
3924
3964
|
|
|
3925
3965
|
// src/components/accordion/Accordion.tsx
|
|
3926
3966
|
import * as React44 from "react";
|
|
3927
|
-
import { jsx as jsx44, jsxs as
|
|
3967
|
+
import { jsx as jsx44, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3928
3968
|
var AccordionContext = React44.createContext({
|
|
3929
3969
|
openItems: /* @__PURE__ */ new Set(),
|
|
3930
3970
|
toggle: () => {
|
|
@@ -3968,7 +4008,7 @@ var Accordion = React44.forwardRef(
|
|
|
3968
4008
|
className
|
|
3969
4009
|
),
|
|
3970
4010
|
style: { ...gapResolved.style, ...style },
|
|
3971
|
-
children: /* @__PURE__ */ jsx44(AccordionContext.Provider, { value: { openItems: new Set(current), toggle, collapsible }, children: items ? items.map((item) => /* @__PURE__ */
|
|
4011
|
+
children: /* @__PURE__ */ jsx44(AccordionContext.Provider, { value: { openItems: new Set(current), toggle, collapsible }, children: items ? items.map((item) => /* @__PURE__ */ jsxs30(AccordionItem, { id: item.id, children: [
|
|
3972
4012
|
/* @__PURE__ */ jsx44(AccordionTrigger, { disabled: item.disabled, children: item.title }),
|
|
3973
4013
|
/* @__PURE__ */ jsx44(AccordionContent, { children: item.content })
|
|
3974
4014
|
] }, item.id)) : children })
|
|
@@ -3989,7 +4029,7 @@ var AccordionTrigger = React44.forwardRef(
|
|
|
3989
4029
|
const open = openItems.has(id);
|
|
3990
4030
|
const panelId = `${id}-panel`;
|
|
3991
4031
|
const triggerId = `${id}-trigger`;
|
|
3992
|
-
return /* @__PURE__ */
|
|
4032
|
+
return /* @__PURE__ */ jsxs30(
|
|
3993
4033
|
"button",
|
|
3994
4034
|
{
|
|
3995
4035
|
ref,
|
|
@@ -4161,7 +4201,7 @@ import * as React47 from "react";
|
|
|
4161
4201
|
|
|
4162
4202
|
// src/components/pagination/Pagination.tsx
|
|
4163
4203
|
import * as React46 from "react";
|
|
4164
|
-
import { jsx as jsx46, jsxs as
|
|
4204
|
+
import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4165
4205
|
var controlClass = "inline-flex h-8 items-center rounded-md border border-border px-2.5 text-sm transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50";
|
|
4166
4206
|
var controlDisabledClass = "pointer-events-none opacity-50";
|
|
4167
4207
|
var pageClass = "inline-flex h-8 w-8 items-center justify-center rounded-md border text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";
|
|
@@ -4254,7 +4294,7 @@ var Pagination = React46.forwardRef(
|
|
|
4254
4294
|
entry
|
|
4255
4295
|
);
|
|
4256
4296
|
};
|
|
4257
|
-
const nav = /* @__PURE__ */
|
|
4297
|
+
const nav = /* @__PURE__ */ jsxs31(
|
|
4258
4298
|
"nav",
|
|
4259
4299
|
{
|
|
4260
4300
|
ref,
|
|
@@ -4281,7 +4321,7 @@ var Pagination = React46.forwardRef(
|
|
|
4281
4321
|
}
|
|
4282
4322
|
);
|
|
4283
4323
|
if (!summaryEnabled) return nav;
|
|
4284
|
-
return /* @__PURE__ */
|
|
4324
|
+
return /* @__PURE__ */ jsxs31("div", { className: cn("flex flex-wrap items-center justify-between gap-3", className), children: [
|
|
4285
4325
|
/* @__PURE__ */ jsx46("p", { className: "text-sm text-muted-foreground", children: rangeStart !== void 0 && rangeEnd !== void 0 && total !== void 0 ? `Showing ${rangeStart}\u2013${rangeEnd} of ${total} ${itemLabel}` : `Page ${page} of ${pageCount}` }),
|
|
4286
4326
|
nav
|
|
4287
4327
|
] });
|
|
@@ -4290,7 +4330,7 @@ var Pagination = React46.forwardRef(
|
|
|
4290
4330
|
Pagination.displayName = "Pagination";
|
|
4291
4331
|
|
|
4292
4332
|
// src/components/data-table/DataTable.tsx
|
|
4293
|
-
import { jsx as jsx47, jsxs as
|
|
4333
|
+
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4294
4334
|
function compareValues(a, b) {
|
|
4295
4335
|
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
4296
4336
|
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
@@ -4399,18 +4439,18 @@ function DataTable({
|
|
|
4399
4439
|
return String(raw);
|
|
4400
4440
|
};
|
|
4401
4441
|
const alignClass = (align) => align === "right" ? "text-right" : align === "center" ? "text-center" : "text-left";
|
|
4402
|
-
return /* @__PURE__ */
|
|
4403
|
-
selectionEnabled && selectedIds.length > 0 && bulkActions && /* @__PURE__ */
|
|
4442
|
+
return /* @__PURE__ */ jsxs32("div", { className: cn("w-full space-y-3", className), children: [
|
|
4443
|
+
selectionEnabled && selectedIds.length > 0 && bulkActions && /* @__PURE__ */ jsxs32("div", { className: "flex flex-wrap items-center justify-between gap-2 rounded-lg border border-border bg-muted/40 px-3 py-2 text-sm", children: [
|
|
4404
4444
|
/* @__PURE__ */ jsx47("span", { className: "font-medium", children: selectedLabel.replace("{count}", String(selectedIds.length)) }),
|
|
4405
4445
|
/* @__PURE__ */ jsx47("div", { className: "flex flex-wrap items-center gap-2", children: bulkActions })
|
|
4406
4446
|
] }),
|
|
4407
|
-
/* @__PURE__ */ jsx47("div", { className: "w-full overflow-x-auto rounded-lg border border-border", children: /* @__PURE__ */
|
|
4447
|
+
/* @__PURE__ */ jsx47("div", { className: "w-full overflow-x-auto rounded-lg border border-border", children: /* @__PURE__ */ jsxs32(
|
|
4408
4448
|
"table",
|
|
4409
4449
|
{
|
|
4410
4450
|
className: cn("w-full caption-bottom", density === "compact" ? "text-xs" : "text-sm"),
|
|
4411
4451
|
children: [
|
|
4412
4452
|
caption && /* @__PURE__ */ jsx47("caption", { className: "px-3 py-2 text-left text-xs text-muted-foreground", children: caption }),
|
|
4413
|
-
/* @__PURE__ */ jsx47("thead", { className: cn("bg-muted/50", stickyHeader && "sticky top-0 z-10 bg-background"), children: /* @__PURE__ */
|
|
4453
|
+
/* @__PURE__ */ jsx47("thead", { className: cn("bg-muted/50", stickyHeader && "sticky top-0 z-10 bg-background"), children: /* @__PURE__ */ jsxs32("tr", { children: [
|
|
4414
4454
|
selectionEnabled && /* @__PURE__ */ jsx47("th", { scope: "col", className: "w-10 border-b border-border px-3 py-2", children: /* @__PURE__ */ jsx47(
|
|
4415
4455
|
Checkbox,
|
|
4416
4456
|
{
|
|
@@ -4435,7 +4475,7 @@ function DataTable({
|
|
|
4435
4475
|
alignClass(column.align),
|
|
4436
4476
|
column.className
|
|
4437
4477
|
),
|
|
4438
|
-
children: column.sortable ? /* @__PURE__ */
|
|
4478
|
+
children: column.sortable ? /* @__PURE__ */ jsxs32(
|
|
4439
4479
|
"button",
|
|
4440
4480
|
{
|
|
4441
4481
|
type: "button",
|
|
@@ -4454,7 +4494,7 @@ function DataTable({
|
|
|
4454
4494
|
] }) }),
|
|
4455
4495
|
/* @__PURE__ */ jsx47("tbody", { "aria-busy": loading || void 0, children: loading ? Array.from(
|
|
4456
4496
|
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
4457
|
-
(_, skeletonRow) => /* @__PURE__ */
|
|
4497
|
+
(_, skeletonRow) => /* @__PURE__ */ jsxs32("tr", { children: [
|
|
4458
4498
|
selectionEnabled && /* @__PURE__ */ jsx47("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ jsx47(Skeleton, { className: "h-4 w-4" }) }),
|
|
4459
4499
|
columns.map((column) => /* @__PURE__ */ jsx47("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ jsx47(Skeleton, { className: density === "compact" ? "h-3 w-full" : "h-4 w-full" }) }, column.key))
|
|
4460
4500
|
] }, `skeleton-${skeletonRow}`)
|
|
@@ -4465,7 +4505,7 @@ function DataTable({
|
|
|
4465
4505
|
className: "px-3 py-8 text-center text-sm text-muted-foreground",
|
|
4466
4506
|
children: emptyMessage
|
|
4467
4507
|
}
|
|
4468
|
-
) }) : visible.map((row, index) => /* @__PURE__ */
|
|
4508
|
+
) }) : visible.map((row, index) => /* @__PURE__ */ jsxs32(
|
|
4469
4509
|
"tr",
|
|
4470
4510
|
{
|
|
4471
4511
|
tabIndex: onRowClick ? 0 : void 0,
|
|
@@ -4526,8 +4566,8 @@ function DataTable({
|
|
|
4526
4566
|
]
|
|
4527
4567
|
}
|
|
4528
4568
|
) }),
|
|
4529
|
-
pageSize && pageCount > 1 && /* @__PURE__ */
|
|
4530
|
-
/* @__PURE__ */
|
|
4569
|
+
pageSize && pageCount > 1 && /* @__PURE__ */ jsxs32("div", { className: "flex flex-wrap items-center justify-between gap-x-4 gap-y-2", children: [
|
|
4570
|
+
/* @__PURE__ */ jsxs32(
|
|
4531
4571
|
"p",
|
|
4532
4572
|
{
|
|
4533
4573
|
className: "min-h-8 leading-none text-xs text-muted-foreground",
|
|
@@ -4549,7 +4589,7 @@ function DataTable({
|
|
|
4549
4589
|
|
|
4550
4590
|
// src/components/list/List.tsx
|
|
4551
4591
|
import * as React48 from "react";
|
|
4552
|
-
import { Fragment as Fragment9, jsx as jsx48, jsxs as
|
|
4592
|
+
import { Fragment as Fragment9, jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4553
4593
|
var ListDensityContext = React48.createContext("default");
|
|
4554
4594
|
var List = React48.forwardRef(
|
|
4555
4595
|
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */ jsx48(ListDensityContext.Provider, { value: size, children: /* @__PURE__ */ jsx48(
|
|
@@ -4578,9 +4618,9 @@ var ListItem = React48.forwardRef(
|
|
|
4578
4618
|
disabled && "opacity-50",
|
|
4579
4619
|
className
|
|
4580
4620
|
);
|
|
4581
|
-
const body = /* @__PURE__ */
|
|
4621
|
+
const body = /* @__PURE__ */ jsxs33(Fragment9, { children: [
|
|
4582
4622
|
leading && /* @__PURE__ */ jsx48("span", { className: "flex shrink-0 items-center", children: leading }),
|
|
4583
|
-
/* @__PURE__ */
|
|
4623
|
+
/* @__PURE__ */ jsxs33("span", { className: "min-w-0 flex-1", children: [
|
|
4584
4624
|
/* @__PURE__ */ jsx48("span", { className: "block truncate", children }),
|
|
4585
4625
|
description && /* @__PURE__ */ jsx48("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: description })
|
|
4586
4626
|
] }),
|
|
@@ -4595,7 +4635,7 @@ ListItem.displayName = "ListItem";
|
|
|
4595
4635
|
import * as React49 from "react";
|
|
4596
4636
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
4597
4637
|
import { cva as cva7 } from "class-variance-authority";
|
|
4598
|
-
import { Fragment as Fragment10, jsx as jsx49, jsxs as
|
|
4638
|
+
import { Fragment as Fragment10, jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4599
4639
|
var linkVariants = cva7("inline-flex items-center gap-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background rounded-sm", {
|
|
4600
4640
|
variants: {
|
|
4601
4641
|
variant: {
|
|
@@ -4626,7 +4666,7 @@ var Link = React49.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4626
4666
|
}
|
|
4627
4667
|
);
|
|
4628
4668
|
}
|
|
4629
|
-
return /* @__PURE__ */
|
|
4669
|
+
return /* @__PURE__ */ jsxs34(
|
|
4630
4670
|
Comp,
|
|
4631
4671
|
{
|
|
4632
4672
|
ref,
|
|
@@ -4636,7 +4676,7 @@ var Link = React49.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4636
4676
|
...props,
|
|
4637
4677
|
children: [
|
|
4638
4678
|
children,
|
|
4639
|
-
isExternal && variant !== "muted" && /* @__PURE__ */
|
|
4679
|
+
isExternal && variant !== "muted" && /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
4640
4680
|
/* @__PURE__ */ jsx49("span", { "aria-hidden": "true", className: "text-[0.75em]", children: "\u2197" }),
|
|
4641
4681
|
/* @__PURE__ */ jsx49("span", { className: "sr-only", children: "(opens in a new tab)" })
|
|
4642
4682
|
] })
|
|
@@ -4765,7 +4805,7 @@ Heading.displayName = "Heading";
|
|
|
4765
4805
|
|
|
4766
4806
|
// src/components/empty-state/EmptyState.tsx
|
|
4767
4807
|
import * as React53 from "react";
|
|
4768
|
-
import { jsx as jsx53, jsxs as
|
|
4808
|
+
import { jsx as jsx53, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4769
4809
|
function isActionObject(value) {
|
|
4770
4810
|
return typeof value === "object" && value !== null && !React53.isValidElement(value) && "label" in value;
|
|
4771
4811
|
}
|
|
@@ -4791,7 +4831,7 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
4791
4831
|
...props
|
|
4792
4832
|
}, ref) {
|
|
4793
4833
|
const primaryAction = renderAction(action) ?? actions;
|
|
4794
|
-
return /* @__PURE__ */
|
|
4834
|
+
return /* @__PURE__ */ jsxs35(
|
|
4795
4835
|
"div",
|
|
4796
4836
|
{
|
|
4797
4837
|
ref,
|
|
@@ -4806,7 +4846,7 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
4806
4846
|
/* @__PURE__ */ jsx53(Title, { className: cn("font-semibold", size === "md" ? "text-base" : "text-sm"), children: title }),
|
|
4807
4847
|
description && /* @__PURE__ */ jsx53("p", { className: "max-w-sm text-sm text-muted-foreground", children: description }),
|
|
4808
4848
|
children,
|
|
4809
|
-
(primaryAction || secondaryAction) && /* @__PURE__ */
|
|
4849
|
+
(primaryAction || secondaryAction) && /* @__PURE__ */ jsxs35("div", { className: "mt-1 flex flex-wrap items-center justify-center gap-2", children: [
|
|
4810
4850
|
primaryAction,
|
|
4811
4851
|
secondaryAction
|
|
4812
4852
|
] })
|
|
@@ -4817,7 +4857,7 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
4817
4857
|
|
|
4818
4858
|
// src/components/page-header/PageHeader.tsx
|
|
4819
4859
|
import * as React54 from "react";
|
|
4820
|
-
import { jsx as jsx54, jsxs as
|
|
4860
|
+
import { jsx as jsx54, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4821
4861
|
var sizeClasses6 = {
|
|
4822
4862
|
sm: "text-xl",
|
|
4823
4863
|
md: "text-2xl",
|
|
@@ -4826,11 +4866,11 @@ var sizeClasses6 = {
|
|
|
4826
4866
|
};
|
|
4827
4867
|
var PageHeader = React54.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
4828
4868
|
const supporting = description ?? subtitle;
|
|
4829
|
-
return /* @__PURE__ */
|
|
4869
|
+
return /* @__PURE__ */ jsxs36("div", { ref, className: cn("flex flex-col gap-2", align === "center" && "items-center text-center", className), ...props, children: [
|
|
4830
4870
|
breadcrumbs && /* @__PURE__ */ jsx54("div", { className: "text-sm text-muted-foreground", children: breadcrumbs }),
|
|
4831
4871
|
eyebrow && /* @__PURE__ */ jsx54("div", { className: cn("text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
4832
|
-
/* @__PURE__ */
|
|
4833
|
-
/* @__PURE__ */
|
|
4872
|
+
/* @__PURE__ */ jsxs36("div", { className: cn("flex w-full flex-wrap items-start justify-between gap-3", align === "center" && "justify-center"), children: [
|
|
4873
|
+
/* @__PURE__ */ jsxs36("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4834
4874
|
/* @__PURE__ */ jsx54("h1", { className: cn("font-semibold tracking-tight", sizeClasses6[size], titleClassName), children: title }),
|
|
4835
4875
|
supporting && /* @__PURE__ */ jsx54("p", { className: cn("mt-2 max-w-2xl text-base text-muted-foreground", descriptionClassName), children: supporting })
|
|
4836
4876
|
] }),
|
|
@@ -4857,7 +4897,7 @@ function documentHead({
|
|
|
4857
4897
|
|
|
4858
4898
|
// src/components/section-heading/SectionHeading.tsx
|
|
4859
4899
|
import * as React55 from "react";
|
|
4860
|
-
import { jsx as jsx55, jsxs as
|
|
4900
|
+
import { jsx as jsx55, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4861
4901
|
var sizeClasses7 = {
|
|
4862
4902
|
sm: "text-lg",
|
|
4863
4903
|
md: "text-2xl",
|
|
@@ -4865,7 +4905,7 @@ var sizeClasses7 = {
|
|
|
4865
4905
|
};
|
|
4866
4906
|
var SectionHeading = React55.forwardRef(function SectionHeading2({ title, description, eyebrow, actions, level = 2, align = "left", size = "md", titleClassName, descriptionClassName, eyebrowClassName, className, ...props }, ref) {
|
|
4867
4907
|
const Heading2 = `h${level}`;
|
|
4868
|
-
return /* @__PURE__ */
|
|
4908
|
+
return /* @__PURE__ */ jsxs37(
|
|
4869
4909
|
"div",
|
|
4870
4910
|
{
|
|
4871
4911
|
ref,
|
|
@@ -4876,7 +4916,7 @@ var SectionHeading = React55.forwardRef(function SectionHeading2({ title, descri
|
|
|
4876
4916
|
),
|
|
4877
4917
|
...props,
|
|
4878
4918
|
children: [
|
|
4879
|
-
/* @__PURE__ */
|
|
4919
|
+
/* @__PURE__ */ jsxs37("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4880
4920
|
eyebrow && /* @__PURE__ */ jsx55("div", { className: cn("mb-1 text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
4881
4921
|
/* @__PURE__ */ jsx55(Heading2, { className: cn("font-semibold tracking-tight", sizeClasses7[size], titleClassName), children: title }),
|
|
4882
4922
|
description && /* @__PURE__ */ jsx55("p", { className: cn("mt-2 max-w-2xl text-muted-foreground", align === "center" ? "mx-auto" : "", descriptionClassName), children: description })
|
|
@@ -4889,7 +4929,7 @@ var SectionHeading = React55.forwardRef(function SectionHeading2({ title, descri
|
|
|
4889
4929
|
|
|
4890
4930
|
// src/components/metric-card/MetricCard.tsx
|
|
4891
4931
|
import * as React56 from "react";
|
|
4892
|
-
import { jsx as jsx56, jsxs as
|
|
4932
|
+
import { jsx as jsx56, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4893
4933
|
var trendClasses = {
|
|
4894
4934
|
up: "text-success",
|
|
4895
4935
|
down: "text-destructive",
|
|
@@ -4906,7 +4946,7 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
4906
4946
|
const heading = label ?? title;
|
|
4907
4947
|
const supporting = hint ?? description;
|
|
4908
4948
|
if (loading) {
|
|
4909
|
-
return /* @__PURE__ */
|
|
4949
|
+
return /* @__PURE__ */ jsxs38(
|
|
4910
4950
|
"div",
|
|
4911
4951
|
{
|
|
4912
4952
|
ref,
|
|
@@ -4914,7 +4954,7 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
4914
4954
|
className: cn("rounded-xl border border-border bg-card p-5", className),
|
|
4915
4955
|
...props,
|
|
4916
4956
|
children: [
|
|
4917
|
-
/* @__PURE__ */
|
|
4957
|
+
/* @__PURE__ */ jsxs38("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4918
4958
|
heading && /* @__PURE__ */ jsx56("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
4919
4959
|
icon && /* @__PURE__ */ jsx56("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4920
4960
|
] }),
|
|
@@ -4924,14 +4964,14 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
4924
4964
|
}
|
|
4925
4965
|
);
|
|
4926
4966
|
}
|
|
4927
|
-
return /* @__PURE__ */
|
|
4928
|
-
/* @__PURE__ */
|
|
4967
|
+
return /* @__PURE__ */ jsxs38("div", { ref, className: cn("rounded-xl border border-border bg-card p-5", className), ...props, children: [
|
|
4968
|
+
/* @__PURE__ */ jsxs38("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4929
4969
|
heading && /* @__PURE__ */ jsx56("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
4930
4970
|
icon && /* @__PURE__ */ jsx56("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4931
4971
|
] }),
|
|
4932
4972
|
/* @__PURE__ */ jsx56("p", { className: cn("mt-2 text-2xl font-semibold tabular-nums", toneClasses[tone]), children: value }),
|
|
4933
|
-
(delta || supporting) && /* @__PURE__ */
|
|
4934
|
-
delta && /* @__PURE__ */
|
|
4973
|
+
(delta || supporting) && /* @__PURE__ */ jsxs38("p", { className: "mt-1 flex items-center gap-2 text-sm", children: [
|
|
4974
|
+
delta && /* @__PURE__ */ jsxs38("span", { className: cn("font-medium tabular-nums", trendClasses[trend]), children: [
|
|
4935
4975
|
/* @__PURE__ */ jsx56("span", { "aria-hidden": "true", children: trendGlyph[trend] }),
|
|
4936
4976
|
" ",
|
|
4937
4977
|
delta
|
|
@@ -4943,10 +4983,10 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
4943
4983
|
|
|
4944
4984
|
// src/components/password-input/PasswordInput.tsx
|
|
4945
4985
|
import * as React57 from "react";
|
|
4946
|
-
import { jsx as jsx57, jsxs as
|
|
4986
|
+
import { jsx as jsx57, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
4947
4987
|
var PasswordInput = React57.forwardRef(function PasswordInput2({ className, showLabel = "Show password", hideLabel = "Hide password", ...props }, ref) {
|
|
4948
4988
|
const [visible, setVisible] = React57.useState(false);
|
|
4949
|
-
return /* @__PURE__ */
|
|
4989
|
+
return /* @__PURE__ */ jsxs39("div", { className: cn("relative flex items-center", className), children: [
|
|
4950
4990
|
/* @__PURE__ */ jsx57(Input, { ref, type: visible ? "text" : "password", className: "pr-24", ...props }),
|
|
4951
4991
|
/* @__PURE__ */ jsx57(
|
|
4952
4992
|
Button,
|
|
@@ -4966,7 +5006,7 @@ var PasswordInput = React57.forwardRef(function PasswordInput2({ className, show
|
|
|
4966
5006
|
|
|
4967
5007
|
// src/components/auth-layout/AuthLayout.tsx
|
|
4968
5008
|
import * as React58 from "react";
|
|
4969
|
-
import { jsx as jsx58, jsxs as
|
|
5009
|
+
import { jsx as jsx58, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
4970
5010
|
var sizeClasses8 = {
|
|
4971
5011
|
sm: "max-w-sm",
|
|
4972
5012
|
md: "max-w-md",
|
|
@@ -4991,7 +5031,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
4991
5031
|
const supporting = description ?? subtitle;
|
|
4992
5032
|
const mark = brand ?? logo;
|
|
4993
5033
|
const widthStyle = maxWidth === void 0 ? void 0 : { maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth };
|
|
4994
|
-
const form = /* @__PURE__ */
|
|
5034
|
+
const form = /* @__PURE__ */ jsxs40(
|
|
4995
5035
|
"div",
|
|
4996
5036
|
{
|
|
4997
5037
|
className: cn(
|
|
@@ -5001,7 +5041,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5001
5041
|
style: widthStyle,
|
|
5002
5042
|
children: [
|
|
5003
5043
|
mark && /* @__PURE__ */ jsx58("div", { className: "mb-6", children: mark }),
|
|
5004
|
-
/* @__PURE__ */
|
|
5044
|
+
/* @__PURE__ */ jsxs40(
|
|
5005
5045
|
"div",
|
|
5006
5046
|
{
|
|
5007
5047
|
className: cn(
|
|
@@ -5027,7 +5067,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5027
5067
|
ref,
|
|
5028
5068
|
className: cn("min-h-screen bg-muted/30 px-4 py-12 lg:px-8", className),
|
|
5029
5069
|
...props,
|
|
5030
|
-
children: /* @__PURE__ */
|
|
5070
|
+
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: [
|
|
5031
5071
|
form,
|
|
5032
5072
|
/* @__PURE__ */ jsx58("aside", { className: "w-full", children: aside })
|
|
5033
5073
|
] })
|
|
@@ -5050,7 +5090,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5050
5090
|
|
|
5051
5091
|
// src/components/filter-bar/FilterBar.tsx
|
|
5052
5092
|
import * as React59 from "react";
|
|
5053
|
-
import { jsx as jsx59, jsxs as
|
|
5093
|
+
import { jsx as jsx59, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
5054
5094
|
var FilterBar = React59.forwardRef(function FilterBar2({
|
|
5055
5095
|
searchValue,
|
|
5056
5096
|
onSearchChange,
|
|
@@ -5066,7 +5106,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5066
5106
|
children,
|
|
5067
5107
|
...props
|
|
5068
5108
|
}, ref) {
|
|
5069
|
-
return /* @__PURE__ */
|
|
5109
|
+
return /* @__PURE__ */ jsxs41(
|
|
5070
5110
|
"div",
|
|
5071
5111
|
{
|
|
5072
5112
|
ref,
|
|
@@ -5089,15 +5129,15 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5089
5129
|
}
|
|
5090
5130
|
),
|
|
5091
5131
|
/* @__PURE__ */ jsx59("div", { className: "flex flex-wrap items-center gap-2", children }),
|
|
5092
|
-
onOpenFilters && /* @__PURE__ */
|
|
5132
|
+
onOpenFilters && /* @__PURE__ */ jsxs41(Button, { type: "button", variant: "outline", size: "sm", onClick: onOpenFilters, children: [
|
|
5093
5133
|
filtersLabel,
|
|
5094
5134
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
5095
5135
|
] }),
|
|
5096
|
-
onReset && /* @__PURE__ */
|
|
5136
|
+
onReset && /* @__PURE__ */ jsxs41(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, children: [
|
|
5097
5137
|
"Reset",
|
|
5098
5138
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
5099
5139
|
] }),
|
|
5100
|
-
resultsCount !== void 0 && /* @__PURE__ */
|
|
5140
|
+
resultsCount !== void 0 && /* @__PURE__ */ jsxs41("span", { className: "ml-auto text-sm text-muted-foreground", children: [
|
|
5101
5141
|
resultsCount,
|
|
5102
5142
|
" ",
|
|
5103
5143
|
resultsLabel
|
|
@@ -5110,7 +5150,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5110
5150
|
|
|
5111
5151
|
// src/components/date-picker/DatePicker.tsx
|
|
5112
5152
|
import * as React60 from "react";
|
|
5113
|
-
import { jsx as jsx60, jsxs as
|
|
5153
|
+
import { jsx as jsx60, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
5114
5154
|
var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
5115
5155
|
const [internal, setInternal] = React60.useState(defaultValue ?? "");
|
|
5116
5156
|
const current = value ?? internal;
|
|
@@ -5118,7 +5158,7 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5118
5158
|
if (value === void 0) setInternal(next);
|
|
5119
5159
|
onValueChange?.(next);
|
|
5120
5160
|
};
|
|
5121
|
-
return /* @__PURE__ */
|
|
5161
|
+
return /* @__PURE__ */ jsxs42("div", { className: cn("relative flex items-center", className), children: [
|
|
5122
5162
|
/* @__PURE__ */ jsx60(
|
|
5123
5163
|
Input,
|
|
5124
5164
|
{
|
|
@@ -5456,7 +5496,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5456
5496
|
PopoverContent.displayName = "PopoverContent";
|
|
5457
5497
|
|
|
5458
5498
|
// src/components/date-picker-popover/DatePickerPopover.tsx
|
|
5459
|
-
import { Fragment as Fragment12, jsx as jsx62, jsxs as
|
|
5499
|
+
import { Fragment as Fragment12, jsx as jsx62, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
5460
5500
|
var DatePickerPopover = React62.forwardRef(
|
|
5461
5501
|
({
|
|
5462
5502
|
value,
|
|
@@ -5489,8 +5529,8 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5489
5529
|
[ref]
|
|
5490
5530
|
);
|
|
5491
5531
|
const label = value ? formatDateLabel(value, locale) : placeholder;
|
|
5492
|
-
return /* @__PURE__ */
|
|
5493
|
-
/* @__PURE__ */
|
|
5532
|
+
return /* @__PURE__ */ jsxs43(Fragment12, { children: [
|
|
5533
|
+
/* @__PURE__ */ jsxs43(Popover, { open, onOpenChange: setOpen, children: [
|
|
5494
5534
|
/* @__PURE__ */ jsx62(
|
|
5495
5535
|
PopoverTrigger,
|
|
5496
5536
|
{
|
|
@@ -5535,7 +5575,7 @@ DatePickerPopover.displayName = "DatePickerPopover";
|
|
|
5535
5575
|
|
|
5536
5576
|
// src/components/time-picker/TimePicker.tsx
|
|
5537
5577
|
import * as React63 from "react";
|
|
5538
|
-
import { jsx as jsx63, jsxs as
|
|
5578
|
+
import { jsx as jsx63, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
5539
5579
|
var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
5540
5580
|
const [internal, setInternal] = React63.useState(defaultValue ?? "");
|
|
5541
5581
|
const current = value ?? internal;
|
|
@@ -5543,7 +5583,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5543
5583
|
if (value === void 0) setInternal(next);
|
|
5544
5584
|
onValueChange?.(next);
|
|
5545
5585
|
};
|
|
5546
|
-
return /* @__PURE__ */
|
|
5586
|
+
return /* @__PURE__ */ jsxs44("div", { className: cn("relative flex items-center", className), children: [
|
|
5547
5587
|
/* @__PURE__ */ jsx63(
|
|
5548
5588
|
Input,
|
|
5549
5589
|
{
|
|
@@ -5573,7 +5613,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5573
5613
|
|
|
5574
5614
|
// src/components/stepper/Stepper.tsx
|
|
5575
5615
|
import * as React64 from "react";
|
|
5576
|
-
import { Fragment as Fragment13, jsx as jsx64, jsxs as
|
|
5616
|
+
import { Fragment as Fragment13, jsx as jsx64, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
5577
5617
|
var Stepper = React64.forwardRef(function Stepper2({
|
|
5578
5618
|
steps,
|
|
5579
5619
|
current,
|
|
@@ -5633,7 +5673,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5633
5673
|
children: variant === "numbered" ? state === "complete" ? "\u2713" : index + 1 : null
|
|
5634
5674
|
}
|
|
5635
5675
|
);
|
|
5636
|
-
const label = /* @__PURE__ */
|
|
5676
|
+
const label = /* @__PURE__ */ jsxs45("span", { className: "min-w-0", children: [
|
|
5637
5677
|
/* @__PURE__ */ jsx64(
|
|
5638
5678
|
"span",
|
|
5639
5679
|
{
|
|
@@ -5671,8 +5711,8 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5671
5711
|
) : /* @__PURE__ */ jsx64("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
5672
5712
|
if (vertical) {
|
|
5673
5713
|
return /* @__PURE__ */ jsx64("li", { className: "flex", children: renderRow(
|
|
5674
|
-
/* @__PURE__ */
|
|
5675
|
-
/* @__PURE__ */
|
|
5714
|
+
/* @__PURE__ */ jsxs45(Fragment13, { children: [
|
|
5715
|
+
/* @__PURE__ */ jsxs45("div", { className: "flex flex-col items-center", children: [
|
|
5676
5716
|
marker,
|
|
5677
5717
|
!isLast && /* @__PURE__ */ jsx64("span", { "aria-hidden": "true", className: "my-1 w-px flex-1 rounded-full bg-border" })
|
|
5678
5718
|
] }),
|
|
@@ -5682,9 +5722,9 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5682
5722
|
) }, step.label);
|
|
5683
5723
|
}
|
|
5684
5724
|
if (below) {
|
|
5685
|
-
return /* @__PURE__ */
|
|
5725
|
+
return /* @__PURE__ */ jsxs45("li", { className: "flex min-w-0 flex-1 items-start gap-2", children: [
|
|
5686
5726
|
renderRow(
|
|
5687
|
-
/* @__PURE__ */
|
|
5727
|
+
/* @__PURE__ */ jsxs45(Fragment13, { children: [
|
|
5688
5728
|
marker,
|
|
5689
5729
|
label
|
|
5690
5730
|
] }),
|
|
@@ -5699,9 +5739,9 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5699
5739
|
)
|
|
5700
5740
|
] }, step.label);
|
|
5701
5741
|
}
|
|
5702
|
-
return /* @__PURE__ */
|
|
5742
|
+
return /* @__PURE__ */ jsxs45("li", { className: "flex min-w-0 items-start gap-2", children: [
|
|
5703
5743
|
renderRow(
|
|
5704
|
-
/* @__PURE__ */
|
|
5744
|
+
/* @__PURE__ */ jsxs45(Fragment13, { children: [
|
|
5705
5745
|
marker,
|
|
5706
5746
|
label
|
|
5707
5747
|
] }),
|
|
@@ -5722,7 +5762,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5722
5762
|
|
|
5723
5763
|
// src/components/file-upload/FileUpload.tsx
|
|
5724
5764
|
import * as React65 from "react";
|
|
5725
|
-
import { jsx as jsx65, jsxs as
|
|
5765
|
+
import { jsx as jsx65, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
5726
5766
|
function formatSize(bytes) {
|
|
5727
5767
|
if (bytes < 1024) return `${bytes} B`;
|
|
5728
5768
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -5769,8 +5809,8 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5769
5809
|
const list = Array.from(incoming);
|
|
5770
5810
|
commit(multiple ? [...current, ...list] : list.slice(0, 1));
|
|
5771
5811
|
};
|
|
5772
|
-
return /* @__PURE__ */
|
|
5773
|
-
/* @__PURE__ */
|
|
5812
|
+
return /* @__PURE__ */ jsxs46("div", { className: cn("flex flex-col gap-3", className), children: [
|
|
5813
|
+
/* @__PURE__ */ jsxs46(
|
|
5774
5814
|
"div",
|
|
5775
5815
|
{
|
|
5776
5816
|
onDragOver: (event) => {
|
|
@@ -5791,7 +5831,7 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5791
5831
|
disabled && "opacity-50"
|
|
5792
5832
|
),
|
|
5793
5833
|
children: [
|
|
5794
|
-
/* @__PURE__ */
|
|
5834
|
+
/* @__PURE__ */ jsxs46("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
5795
5835
|
label,
|
|
5796
5836
|
/* @__PURE__ */ jsx65(
|
|
5797
5837
|
"input",
|
|
@@ -5815,8 +5855,8 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5815
5855
|
]
|
|
5816
5856
|
}
|
|
5817
5857
|
),
|
|
5818
|
-
current.length > 0 && /* @__PURE__ */ jsx65("ul", { "aria-label": selectedFilesLabel, className: "space-y-2", children: current.map((file) => /* @__PURE__ */
|
|
5819
|
-
/* @__PURE__ */
|
|
5858
|
+
current.length > 0 && /* @__PURE__ */ jsx65("ul", { "aria-label": selectedFilesLabel, className: "space-y-2", children: current.map((file) => /* @__PURE__ */ jsxs46("li", { className: "flex items-center justify-between gap-3 rounded-md border border-border px-3 py-2", children: [
|
|
5859
|
+
/* @__PURE__ */ jsxs46("div", { className: "min-w-0", children: [
|
|
5820
5860
|
/* @__PURE__ */ jsx65("p", { className: "truncate text-sm", children: file.name }),
|
|
5821
5861
|
/* @__PURE__ */ jsx65("p", { className: "text-xs text-muted-foreground", children: formatSize(file.size) }),
|
|
5822
5862
|
progress?.[file.name] !== void 0 && /* @__PURE__ */ jsx65(
|
|
@@ -5848,9 +5888,9 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5848
5888
|
|
|
5849
5889
|
// src/components/timeline/Timeline.tsx
|
|
5850
5890
|
import * as React66 from "react";
|
|
5851
|
-
import { jsx as jsx66, jsxs as
|
|
5891
|
+
import { jsx as jsx66, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
5852
5892
|
var Timeline = React66.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
5853
|
-
return /* @__PURE__ */ jsx66("ol", { ref, className: cn("relative flex flex-col gap-6", className), ...props, children: items.map((item, index) => /* @__PURE__ */
|
|
5893
|
+
return /* @__PURE__ */ jsx66("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: [
|
|
5854
5894
|
index < items.length - 1 && /* @__PURE__ */ jsx66(
|
|
5855
5895
|
"span",
|
|
5856
5896
|
{
|
|
@@ -5868,7 +5908,7 @@ var Timeline = React66.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
5868
5908
|
)
|
|
5869
5909
|
}
|
|
5870
5910
|
) }),
|
|
5871
|
-
/* @__PURE__ */
|
|
5911
|
+
/* @__PURE__ */ jsxs47("div", { className: "min-w-0 pb-1", children: [
|
|
5872
5912
|
item.period && /* @__PURE__ */ jsx66("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
|
|
5873
5913
|
/* @__PURE__ */ jsx66("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
|
|
5874
5914
|
item.description && /* @__PURE__ */ jsx66("p", { className: "mt-1 text-sm text-muted-foreground", children: item.description }),
|
|
@@ -6180,7 +6220,7 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6180
6220
|
|
|
6181
6221
|
// src/components/hero/Hero.tsx
|
|
6182
6222
|
import * as React72 from "react";
|
|
6183
|
-
import { jsx as jsx72, jsxs as
|
|
6223
|
+
import { jsx as jsx72, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
6184
6224
|
var titleSizes = {
|
|
6185
6225
|
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
6186
6226
|
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
@@ -6211,7 +6251,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6211
6251
|
const Heading2 = `h${level}`;
|
|
6212
6252
|
const centered = layout === "centered" || align === "center";
|
|
6213
6253
|
const overlay = layout === "overlay";
|
|
6214
|
-
const copy = /* @__PURE__ */
|
|
6254
|
+
const copy = /* @__PURE__ */ jsxs48(
|
|
6215
6255
|
"div",
|
|
6216
6256
|
{
|
|
6217
6257
|
className: cn(
|
|
@@ -6280,7 +6320,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6280
6320
|
}
|
|
6281
6321
|
);
|
|
6282
6322
|
if (overlay) {
|
|
6283
|
-
return /* @__PURE__ */
|
|
6323
|
+
return /* @__PURE__ */ jsxs48(
|
|
6284
6324
|
Tag,
|
|
6285
6325
|
{
|
|
6286
6326
|
ref,
|
|
@@ -6307,13 +6347,13 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6307
6347
|
);
|
|
6308
6348
|
}
|
|
6309
6349
|
if (layout === "centered") {
|
|
6310
|
-
return /* @__PURE__ */
|
|
6350
|
+
return /* @__PURE__ */ jsxs48(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
6311
6351
|
copy,
|
|
6312
6352
|
media && /* @__PURE__ */ jsx72("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
6313
6353
|
] });
|
|
6314
6354
|
}
|
|
6315
6355
|
if (layout === "stacked") {
|
|
6316
|
-
return /* @__PURE__ */
|
|
6356
|
+
return /* @__PURE__ */ jsxs48(
|
|
6317
6357
|
Tag,
|
|
6318
6358
|
{
|
|
6319
6359
|
ref,
|
|
@@ -6326,7 +6366,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6326
6366
|
}
|
|
6327
6367
|
);
|
|
6328
6368
|
}
|
|
6329
|
-
return /* @__PURE__ */
|
|
6369
|
+
return /* @__PURE__ */ jsxs48(
|
|
6330
6370
|
Tag,
|
|
6331
6371
|
{
|
|
6332
6372
|
ref,
|
|
@@ -6342,7 +6382,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6342
6382
|
|
|
6343
6383
|
// src/components/stat-band/StatBand.tsx
|
|
6344
6384
|
import * as React73 from "react";
|
|
6345
|
-
import { jsx as jsx73, jsxs as
|
|
6385
|
+
import { jsx as jsx73, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
6346
6386
|
var columnClasses = {
|
|
6347
6387
|
2: "sm:grid-cols-2",
|
|
6348
6388
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6365,7 +6405,7 @@ var StatBand = React73.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
6365
6405
|
className
|
|
6366
6406
|
),
|
|
6367
6407
|
...props,
|
|
6368
|
-
children: items.map((item) => /* @__PURE__ */
|
|
6408
|
+
children: items.map((item) => /* @__PURE__ */ jsxs49(
|
|
6369
6409
|
"div",
|
|
6370
6410
|
{
|
|
6371
6411
|
className: cn(
|
|
@@ -6373,7 +6413,7 @@ var StatBand = React73.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
6373
6413
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6374
6414
|
),
|
|
6375
6415
|
children: [
|
|
6376
|
-
/* @__PURE__ */
|
|
6416
|
+
/* @__PURE__ */ jsxs49("dt", { className: "order-2 text-sm font-medium text-muted-foreground", children: [
|
|
6377
6417
|
item.label,
|
|
6378
6418
|
item.hint && /* @__PURE__ */ jsx73("span", { className: "mt-1 block text-xs font-normal", children: item.hint })
|
|
6379
6419
|
] }),
|
|
@@ -6388,7 +6428,7 @@ var StatBand = React73.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
6388
6428
|
|
|
6389
6429
|
// src/components/cta-section/CTASection.tsx
|
|
6390
6430
|
import * as React74 from "react";
|
|
6391
|
-
import { jsx as jsx74, jsxs as
|
|
6431
|
+
import { jsx as jsx74, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
6392
6432
|
var sizePadding = {
|
|
6393
6433
|
sm: "md",
|
|
6394
6434
|
md: "lg",
|
|
@@ -6415,7 +6455,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6415
6455
|
width,
|
|
6416
6456
|
className,
|
|
6417
6457
|
...props,
|
|
6418
|
-
children: /* @__PURE__ */
|
|
6458
|
+
children: /* @__PURE__ */ jsxs50(
|
|
6419
6459
|
"div",
|
|
6420
6460
|
{
|
|
6421
6461
|
className: cn(
|
|
@@ -6436,7 +6476,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6436
6476
|
|
|
6437
6477
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
6438
6478
|
import * as React75 from "react";
|
|
6439
|
-
import { Fragment as Fragment14, jsx as jsx75, jsxs as
|
|
6479
|
+
import { Fragment as Fragment14, jsx as jsx75, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
6440
6480
|
function CheckMark() {
|
|
6441
6481
|
return /* @__PURE__ */ jsx75(
|
|
6442
6482
|
"svg",
|
|
@@ -6480,9 +6520,9 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6480
6520
|
}, ref) {
|
|
6481
6521
|
const yes = valueLabels?.yes ?? "Included";
|
|
6482
6522
|
const no = valueLabels?.no ?? "Not included";
|
|
6483
|
-
return /* @__PURE__ */ jsx75("div", { className: "w-full overflow-x-auto rounded-xl border border-border bg-card", children: /* @__PURE__ */
|
|
6523
|
+
return /* @__PURE__ */ jsx75("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: [
|
|
6484
6524
|
/* @__PURE__ */ jsx75("caption", { className: "sr-only", children: caption }),
|
|
6485
|
-
/* @__PURE__ */ jsx75("thead", { children: /* @__PURE__ */
|
|
6525
|
+
/* @__PURE__ */ jsx75("thead", { children: /* @__PURE__ */ jsxs51("tr", { className: "border-b border-border", children: [
|
|
6486
6526
|
/* @__PURE__ */ jsx75("th", { scope: "col", className: "min-w-48 px-5 py-4 text-left font-medium text-muted-foreground", children: featureLabel }),
|
|
6487
6527
|
columns.map((column) => /* @__PURE__ */ jsx75(
|
|
6488
6528
|
"th",
|
|
@@ -6497,8 +6537,8 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6497
6537
|
column.label
|
|
6498
6538
|
))
|
|
6499
6539
|
] }) }),
|
|
6500
|
-
/* @__PURE__ */ jsx75("tbody", { children: rows.map((row) => /* @__PURE__ */
|
|
6501
|
-
/* @__PURE__ */
|
|
6540
|
+
/* @__PURE__ */ jsx75("tbody", { children: rows.map((row) => /* @__PURE__ */ jsxs51("tr", { className: "border-b border-border last:border-b-0", children: [
|
|
6541
|
+
/* @__PURE__ */ jsxs51("th", { scope: "row", className: "px-5 py-4 text-left font-medium", children: [
|
|
6502
6542
|
row.feature,
|
|
6503
6543
|
row.hint && /* @__PURE__ */ jsx75("span", { className: "mt-1 block text-xs font-normal text-muted-foreground", children: row.hint })
|
|
6504
6544
|
] }),
|
|
@@ -6508,7 +6548,7 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6508
6548
|
"td",
|
|
6509
6549
|
{
|
|
6510
6550
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
6511
|
-
children: typeof value === "boolean" ? /* @__PURE__ */
|
|
6551
|
+
children: typeof value === "boolean" ? /* @__PURE__ */ jsxs51(Fragment14, { children: [
|
|
6512
6552
|
value ? /* @__PURE__ */ jsx75(CheckMark, {}) : /* @__PURE__ */ jsx75(DashMark, {}),
|
|
6513
6553
|
/* @__PURE__ */ jsx75("span", { className: "sr-only", children: value ? yes : no })
|
|
6514
6554
|
] }) : /* @__PURE__ */ jsx75("span", { children: value ?? "" })
|
|
@@ -6523,7 +6563,7 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6523
6563
|
|
|
6524
6564
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
6525
6565
|
import * as React76 from "react";
|
|
6526
|
-
import { Fragment as Fragment15, jsx as jsx76, jsxs as
|
|
6566
|
+
import { Fragment as Fragment15, jsx as jsx76, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
6527
6567
|
var columnClasses2 = {
|
|
6528
6568
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
6529
6569
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -6553,7 +6593,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6553
6593
|
sizeClasses9[size],
|
|
6554
6594
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
6555
6595
|
);
|
|
6556
|
-
return /* @__PURE__ */
|
|
6596
|
+
return /* @__PURE__ */ jsxs52("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6557
6597
|
caption && /* @__PURE__ */ jsx76(
|
|
6558
6598
|
"p",
|
|
6559
6599
|
{
|
|
@@ -6565,7 +6605,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6565
6605
|
}
|
|
6566
6606
|
),
|
|
6567
6607
|
/* @__PURE__ */ jsx76("ul", { className: cn("grid items-center gap-x-8 gap-y-6", columnClasses2[columns], align === "center" && "justify-items-center"), children: items.map((item) => {
|
|
6568
|
-
const content = /* @__PURE__ */
|
|
6608
|
+
const content = /* @__PURE__ */ jsxs52(Fragment15, { children: [
|
|
6569
6609
|
/* @__PURE__ */ jsx76("span", { className: logoClass, "aria-hidden": "true", children: item.logo }),
|
|
6570
6610
|
/* @__PURE__ */ jsx76("span", { className: "sr-only", children: item.name })
|
|
6571
6611
|
] });
|
|
@@ -6583,7 +6623,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6583
6623
|
|
|
6584
6624
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
6585
6625
|
import * as React77 from "react";
|
|
6586
|
-
import { Fragment as Fragment16, jsx as jsx77, jsxs as
|
|
6626
|
+
import { Fragment as Fragment16, jsx as jsx77, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
6587
6627
|
var columnClasses3 = {
|
|
6588
6628
|
2: "sm:grid-cols-2",
|
|
6589
6629
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6596,11 +6636,11 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6596
6636
|
variant === "card" && "border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
|
|
6597
6637
|
align === "center" && "items-center text-center"
|
|
6598
6638
|
);
|
|
6599
|
-
const content = (feature) => /* @__PURE__ */
|
|
6639
|
+
const content = (feature) => /* @__PURE__ */ jsxs53(Fragment16, { children: [
|
|
6600
6640
|
feature.icon && /* @__PURE__ */ jsx77("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 }),
|
|
6601
6641
|
/* @__PURE__ */ jsx77("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
6602
6642
|
feature.description && /* @__PURE__ */ jsx77("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
6603
|
-
feature.href && feature.actionLabel && /* @__PURE__ */
|
|
6643
|
+
feature.href && feature.actionLabel && /* @__PURE__ */ jsxs53("span", { className: "mt-auto pt-2 text-sm font-medium text-primary-ink", children: [
|
|
6604
6644
|
feature.actionLabel,
|
|
6605
6645
|
" ",
|
|
6606
6646
|
/* @__PURE__ */ jsx77("span", { "aria-hidden": "true", children: "\u2192" })
|
|
@@ -6611,7 +6651,7 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6611
6651
|
|
|
6612
6652
|
// src/components/feature-row/FeatureRow.tsx
|
|
6613
6653
|
import * as React78 from "react";
|
|
6614
|
-
import { jsx as jsx78, jsxs as
|
|
6654
|
+
import { jsx as jsx78, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
6615
6655
|
var titleSizes2 = {
|
|
6616
6656
|
md: "text-3xl",
|
|
6617
6657
|
lg: "text-3xl sm:text-4xl"
|
|
@@ -6629,14 +6669,14 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6629
6669
|
...props
|
|
6630
6670
|
}, ref) {
|
|
6631
6671
|
const Heading2 = `h${level}`;
|
|
6632
|
-
return /* @__PURE__ */
|
|
6672
|
+
return /* @__PURE__ */ jsxs54(
|
|
6633
6673
|
"div",
|
|
6634
6674
|
{
|
|
6635
6675
|
ref,
|
|
6636
6676
|
className: cn("grid items-center gap-10 lg:grid-cols-2 lg:gap-16", className),
|
|
6637
6677
|
...props,
|
|
6638
6678
|
children: [
|
|
6639
|
-
/* @__PURE__ */
|
|
6679
|
+
/* @__PURE__ */ jsxs54("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
6640
6680
|
eyebrow && /* @__PURE__ */ jsx78("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6641
6681
|
/* @__PURE__ */ jsx78(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
6642
6682
|
description && /* @__PURE__ */ jsx78("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
@@ -6650,14 +6690,14 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6650
6690
|
|
|
6651
6691
|
// src/components/testimonial/Testimonial.tsx
|
|
6652
6692
|
import * as React79 from "react";
|
|
6653
|
-
import { jsx as jsx79, jsxs as
|
|
6693
|
+
import { jsx as jsx79, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
6654
6694
|
var quoteSizes = {
|
|
6655
6695
|
sm: "text-base",
|
|
6656
6696
|
md: "text-lg",
|
|
6657
6697
|
lg: "text-xl sm:text-2xl"
|
|
6658
6698
|
};
|
|
6659
6699
|
var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role, company, avatar, logo, variant = "card", size = "md", className, ...props }, ref) {
|
|
6660
|
-
return /* @__PURE__ */
|
|
6700
|
+
return /* @__PURE__ */ jsxs55(
|
|
6661
6701
|
"figure",
|
|
6662
6702
|
{
|
|
6663
6703
|
ref,
|
|
@@ -6669,14 +6709,14 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6669
6709
|
...props,
|
|
6670
6710
|
children: [
|
|
6671
6711
|
logo && /* @__PURE__ */ jsx79("div", { className: "flex items-center", children: logo }),
|
|
6672
|
-
/* @__PURE__ */ jsx79("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */
|
|
6712
|
+
/* @__PURE__ */ jsx79("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */ jsxs55("p", { children: [
|
|
6673
6713
|
"\u201C",
|
|
6674
6714
|
quote,
|
|
6675
6715
|
"\u201D"
|
|
6676
6716
|
] }) }),
|
|
6677
|
-
/* @__PURE__ */
|
|
6717
|
+
/* @__PURE__ */ jsxs55("figcaption", { className: "flex items-center gap-3", children: [
|
|
6678
6718
|
avatar && /* @__PURE__ */ jsx79("div", { className: "shrink-0", children: avatar }),
|
|
6679
|
-
/* @__PURE__ */
|
|
6719
|
+
/* @__PURE__ */ jsxs55("div", { className: "min-w-0", children: [
|
|
6680
6720
|
/* @__PURE__ */ jsx79("p", { className: "text-sm font-semibold", children: name }),
|
|
6681
6721
|
(role || company) && /* @__PURE__ */ jsx79("p", { className: "text-xs text-muted-foreground", children: [role, company].filter(Boolean).join(", ") })
|
|
6682
6722
|
] })
|
|
@@ -6688,7 +6728,7 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6688
6728
|
|
|
6689
6729
|
// src/components/process-steps/ProcessSteps.tsx
|
|
6690
6730
|
import * as React80 from "react";
|
|
6691
|
-
import { jsx as jsx80, jsxs as
|
|
6731
|
+
import { jsx as jsx80, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
6692
6732
|
var columnClasses4 = {
|
|
6693
6733
|
2: "sm:grid-cols-2",
|
|
6694
6734
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6696,13 +6736,13 @@ var columnClasses4 = {
|
|
|
6696
6736
|
};
|
|
6697
6737
|
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", headingLevel = 3, className, ...props }, ref) {
|
|
6698
6738
|
const HeadingTag = { 2: "h2", 3: "h3", 4: "h4" }[headingLevel];
|
|
6699
|
-
return /* @__PURE__ */ jsx80("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */
|
|
6739
|
+
return /* @__PURE__ */ jsx80("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ jsxs56(
|
|
6700
6740
|
"li",
|
|
6701
6741
|
{
|
|
6702
6742
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
6703
6743
|
children: [
|
|
6704
6744
|
/* @__PURE__ */ jsx80("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) }),
|
|
6705
|
-
/* @__PURE__ */
|
|
6745
|
+
/* @__PURE__ */ jsxs56("div", { className: "min-w-0", children: [
|
|
6706
6746
|
/* @__PURE__ */ jsx80(HeadingTag, { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
6707
6747
|
step.description && /* @__PURE__ */ jsx80("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
6708
6748
|
] })
|
|
@@ -6714,7 +6754,7 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
6714
6754
|
|
|
6715
6755
|
// src/components/article-card/ArticleCard.tsx
|
|
6716
6756
|
import * as React81 from "react";
|
|
6717
|
-
import { jsx as jsx81, jsxs as
|
|
6757
|
+
import { jsx as jsx81, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
6718
6758
|
var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
6719
6759
|
title,
|
|
6720
6760
|
description,
|
|
@@ -6729,7 +6769,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6729
6769
|
}, ref) {
|
|
6730
6770
|
const Link3 = linkComponent ?? "a";
|
|
6731
6771
|
const compact = variant === "compact";
|
|
6732
|
-
return /* @__PURE__ */ jsx81("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */
|
|
6772
|
+
return /* @__PURE__ */ jsx81("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */ jsxs57(
|
|
6733
6773
|
Link3,
|
|
6734
6774
|
{
|
|
6735
6775
|
href,
|
|
@@ -6739,7 +6779,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6739
6779
|
),
|
|
6740
6780
|
children: [
|
|
6741
6781
|
media && !compact && /* @__PURE__ */ jsx81("div", { className: "aspect-[16/10] w-full overflow-hidden bg-muted [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: media }),
|
|
6742
|
-
/* @__PURE__ */
|
|
6782
|
+
/* @__PURE__ */ jsxs57("div", { className: cn("flex flex-1 flex-col gap-2", compact ? "p-4" : "p-5"), children: [
|
|
6743
6783
|
eyebrow && /* @__PURE__ */ jsx81("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6744
6784
|
/* @__PURE__ */ jsx81("h3", { className: cn("font-semibold tracking-tight transition-colors group-hover:text-primary-ink", compact ? "text-base" : "text-lg"), children: title }),
|
|
6745
6785
|
description && /* @__PURE__ */ jsx81("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
@@ -6752,7 +6792,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6752
6792
|
|
|
6753
6793
|
// src/components/newsletter/Newsletter.tsx
|
|
6754
6794
|
import * as React82 from "react";
|
|
6755
|
-
import { jsx as jsx82, jsxs as
|
|
6795
|
+
import { jsx as jsx82, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
6756
6796
|
var Newsletter = React82.forwardRef(function Newsletter2({
|
|
6757
6797
|
title,
|
|
6758
6798
|
description,
|
|
@@ -6784,11 +6824,11 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6784
6824
|
setStatus("error");
|
|
6785
6825
|
}
|
|
6786
6826
|
};
|
|
6787
|
-
return /* @__PURE__ */
|
|
6827
|
+
return /* @__PURE__ */ jsxs58("div", { className: "w-full", children: [
|
|
6788
6828
|
/* @__PURE__ */ jsx82(Heading2, { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
6789
6829
|
description && /* @__PURE__ */ jsx82("p", { className: "mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6790
|
-
/* @__PURE__ */
|
|
6791
|
-
/* @__PURE__ */
|
|
6830
|
+
/* @__PURE__ */ jsxs58("form", { ref, onSubmit: handleSubmit, className: cn("mt-5", className), ...props, children: [
|
|
6831
|
+
/* @__PURE__ */ jsxs58("div", { className: cn("flex gap-2", layout === "inline" ? "flex-col sm:flex-row" : "flex-col"), children: [
|
|
6792
6832
|
/* @__PURE__ */ jsx82("label", { htmlFor: id, className: "sr-only", children: label }),
|
|
6793
6833
|
/* @__PURE__ */ jsx82(
|
|
6794
6834
|
Input,
|
|
@@ -6808,7 +6848,7 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6808
6848
|
/* @__PURE__ */ jsx82(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
6809
6849
|
] }),
|
|
6810
6850
|
consent && /* @__PURE__ */ jsx82("div", { className: "mt-3 text-xs leading-relaxed text-muted-foreground", children: consent }),
|
|
6811
|
-
/* @__PURE__ */
|
|
6851
|
+
/* @__PURE__ */ jsxs58("div", { "aria-live": "polite", className: "mt-2 min-h-5 text-sm", children: [
|
|
6812
6852
|
status === "success" && /* @__PURE__ */ jsx82("p", { className: "text-success", children: successMessage }),
|
|
6813
6853
|
status === "error" && /* @__PURE__ */ jsx82("p", { role: "alert", className: "text-destructive", children: errorMessage })
|
|
6814
6854
|
] })
|
|
@@ -6818,16 +6858,16 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6818
6858
|
|
|
6819
6859
|
// src/components/contact-strip/ContactStrip.tsx
|
|
6820
6860
|
import * as React83 from "react";
|
|
6821
|
-
import { jsx as jsx83, jsxs as
|
|
6861
|
+
import { jsx as jsx83, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
6822
6862
|
var columnClasses5 = {
|
|
6823
6863
|
2: "sm:grid-cols-2",
|
|
6824
6864
|
3: "sm:grid-cols-3"
|
|
6825
6865
|
};
|
|
6826
6866
|
var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
6827
6867
|
const Link3 = linkComponent ?? "a";
|
|
6828
|
-
return /* @__PURE__ */ jsx83("ul", { ref, className: cn("grid gap-6", columnClasses5[columns], className), ...props, children: items.map((item) => /* @__PURE__ */
|
|
6868
|
+
return /* @__PURE__ */ jsx83("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: [
|
|
6829
6869
|
item.icon && /* @__PURE__ */ jsx83("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 }),
|
|
6830
|
-
/* @__PURE__ */
|
|
6870
|
+
/* @__PURE__ */ jsxs59("div", { className: "min-w-0", children: [
|
|
6831
6871
|
/* @__PURE__ */ jsx83("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
6832
6872
|
item.href ? /* @__PURE__ */ jsx83(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__ */ jsx83("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
6833
6873
|
] })
|
|
@@ -6836,7 +6876,7 @@ var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns =
|
|
|
6836
6876
|
|
|
6837
6877
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
6838
6878
|
import * as React84 from "react";
|
|
6839
|
-
import { jsx as jsx84, jsxs as
|
|
6879
|
+
import { jsx as jsx84, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
6840
6880
|
var toneClasses3 = {
|
|
6841
6881
|
muted: "bg-muted text-foreground",
|
|
6842
6882
|
brand: "bg-primary text-primary-foreground",
|
|
@@ -6875,7 +6915,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
6875
6915
|
className
|
|
6876
6916
|
),
|
|
6877
6917
|
...props,
|
|
6878
|
-
children: /* @__PURE__ */
|
|
6918
|
+
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: [
|
|
6879
6919
|
/* @__PURE__ */ jsx84("p", { className: "min-w-0 text-center", children: message }),
|
|
6880
6920
|
href && actionLabel && /* @__PURE__ */ jsx84(
|
|
6881
6921
|
Link3,
|
|
@@ -6903,7 +6943,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
6903
6943
|
|
|
6904
6944
|
// src/components/deal-card/DealCard.tsx
|
|
6905
6945
|
import * as React85 from "react";
|
|
6906
|
-
import { jsx as jsx85, jsxs as
|
|
6946
|
+
import { jsx as jsx85, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
6907
6947
|
var statusConfig = {
|
|
6908
6948
|
available: { label: "Available", variant: "success" },
|
|
6909
6949
|
"under-nda": { label: "Under NDA", variant: "info" },
|
|
@@ -6931,27 +6971,27 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
6931
6971
|
}, ref) {
|
|
6932
6972
|
const Link3 = linkComponent ?? "a";
|
|
6933
6973
|
const statusInfo = statusConfig[status];
|
|
6934
|
-
return /* @__PURE__ */
|
|
6935
|
-
/* @__PURE__ */
|
|
6936
|
-
/* @__PURE__ */
|
|
6974
|
+
return /* @__PURE__ */ jsxs61(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
6975
|
+
/* @__PURE__ */ jsxs61(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
6976
|
+
/* @__PURE__ */ jsxs61("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6937
6977
|
/* @__PURE__ */ jsx85("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: sector }),
|
|
6938
6978
|
/* @__PURE__ */ jsx85(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
6939
6979
|
] }),
|
|
6940
6980
|
/* @__PURE__ */ jsx85("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ jsx85(Link3, { href, className: "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
6941
6981
|
location && /* @__PURE__ */ jsx85("p", { className: "text-xs text-muted-foreground", children: location })
|
|
6942
6982
|
] }),
|
|
6943
|
-
/* @__PURE__ */
|
|
6983
|
+
/* @__PURE__ */ jsxs61(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
6944
6984
|
description && /* @__PURE__ */ jsx85("p", { className: "line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6945
|
-
/* @__PURE__ */ jsx85("dl", { className: "mt-4 grid grid-cols-3 gap-3", children: metrics.map((metric) => /* @__PURE__ */
|
|
6985
|
+
/* @__PURE__ */ jsx85("dl", { className: "mt-4 grid grid-cols-3 gap-3", children: metrics.map((metric) => /* @__PURE__ */ jsxs61("div", { className: "min-w-0", children: [
|
|
6946
6986
|
/* @__PURE__ */ jsx85("dt", { className: "text-xs text-muted-foreground", children: metric.label }),
|
|
6947
6987
|
/* @__PURE__ */ jsx85("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: metric.value })
|
|
6948
6988
|
] }, metric.label)) }),
|
|
6949
|
-
(ndaAvailable || cimAvailable) && /* @__PURE__ */
|
|
6989
|
+
(ndaAvailable || cimAvailable) && /* @__PURE__ */ jsxs61("div", { className: "mt-4 flex flex-wrap gap-1.5", children: [
|
|
6950
6990
|
ndaAvailable && /* @__PURE__ */ jsx85(Badge, { variant: "info", children: "NDA available" }),
|
|
6951
6991
|
cimAvailable && /* @__PURE__ */ jsx85(Badge, { variant: "secondary", children: "CIM available" })
|
|
6952
6992
|
] })
|
|
6953
6993
|
] }),
|
|
6954
|
-
/* @__PURE__ */
|
|
6994
|
+
/* @__PURE__ */ jsxs61(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
6955
6995
|
onRequestAccess && /* @__PURE__ */ jsx85(Button, { type: "button", size: "sm", onClick: onRequestAccess, children: requestLabel }),
|
|
6956
6996
|
onSave && /* @__PURE__ */ jsx85(
|
|
6957
6997
|
Button,
|
|
@@ -6971,7 +7011,7 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
6971
7011
|
|
|
6972
7012
|
// src/components/entity-card/EntityCard.tsx
|
|
6973
7013
|
import * as React86 from "react";
|
|
6974
|
-
import { jsx as jsx86, jsxs as
|
|
7014
|
+
import { jsx as jsx86, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
6975
7015
|
function initials(name) {
|
|
6976
7016
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
6977
7017
|
}
|
|
@@ -6984,31 +7024,44 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
6984
7024
|
stats,
|
|
6985
7025
|
tags,
|
|
6986
7026
|
href,
|
|
7027
|
+
cardHref,
|
|
6987
7028
|
linkComponent,
|
|
6988
7029
|
actions,
|
|
6989
7030
|
className,
|
|
6990
7031
|
...props
|
|
6991
7032
|
}, ref) {
|
|
6992
7033
|
const Link3 = linkComponent ?? "a";
|
|
6993
|
-
|
|
6994
|
-
|
|
7034
|
+
const stretched = Boolean(cardHref);
|
|
7035
|
+
const nameHref = cardHref ?? href;
|
|
7036
|
+
return /* @__PURE__ */ jsxs62(Card, { ref, className: cn("flex h-full flex-col", stretched && "relative isolate", className), ...props, children: [
|
|
7037
|
+
/* @__PURE__ */ jsxs62(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
6995
7038
|
/* @__PURE__ */ jsx86("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ jsx86(Avatar, { children: /* @__PURE__ */ jsx86(AvatarFallback, { children: initials(name) }) }) }),
|
|
6996
|
-
/* @__PURE__ */
|
|
6997
|
-
/* @__PURE__ */ jsx86("h3", { className: "truncate text-base font-semibold tracking-tight", children:
|
|
7039
|
+
/* @__PURE__ */ jsxs62("div", { className: "min-w-0 flex-1", children: [
|
|
7040
|
+
/* @__PURE__ */ jsx86("h3", { className: "truncate text-base font-semibold tracking-tight", children: nameHref ? /* @__PURE__ */ jsx86(
|
|
7041
|
+
Link3,
|
|
7042
|
+
{
|
|
7043
|
+
href: nameHref,
|
|
7044
|
+
className: cn(
|
|
7045
|
+
"rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7046
|
+
stretched && 'after:absolute after:inset-0 after:content-[""]'
|
|
7047
|
+
),
|
|
7048
|
+
children: name
|
|
7049
|
+
}
|
|
7050
|
+
) : name }),
|
|
6998
7051
|
/* @__PURE__ */ jsx86("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
6999
7052
|
location && /* @__PURE__ */ jsx86("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
7000
7053
|
] })
|
|
7001
7054
|
] }),
|
|
7002
|
-
/* @__PURE__ */
|
|
7055
|
+
/* @__PURE__ */ jsxs62(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7003
7056
|
description && /* @__PURE__ */ jsx86("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7004
7057
|
tags && tags.length > 0 && /* @__PURE__ */ jsx86("div", { className: "mt-3 flex flex-wrap gap-1.5", children: tags.map((tag) => /* @__PURE__ */ jsx86(Badge, { variant: "secondary", children: tag }, tag)) }),
|
|
7005
|
-
stats && stats.length > 0 && /* @__PURE__ */ jsx86("dl", { className: "mt-4 grid grid-cols-2 gap-3", children: stats.map((stat) => /* @__PURE__ */
|
|
7058
|
+
stats && stats.length > 0 && /* @__PURE__ */ jsx86("dl", { className: "mt-4 grid grid-cols-2 gap-3", children: stats.map((stat) => /* @__PURE__ */ jsxs62("div", { className: "min-w-0", children: [
|
|
7006
7059
|
/* @__PURE__ */ jsx86("dt", { className: "text-xs text-muted-foreground", children: stat.label }),
|
|
7007
7060
|
/* @__PURE__ */ jsx86("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
|
|
7008
7061
|
] }, stat.label)) })
|
|
7009
7062
|
] }),
|
|
7010
|
-
(href || actions) && /* @__PURE__ */
|
|
7011
|
-
href && /* @__PURE__ */ jsx86(
|
|
7063
|
+
(href && !stretched || actions) && /* @__PURE__ */ jsxs62(CardFooter, { className: cn("flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", stretched && "relative z-10"), children: [
|
|
7064
|
+
href && !stretched && /* @__PURE__ */ jsx86(
|
|
7012
7065
|
Link3,
|
|
7013
7066
|
{
|
|
7014
7067
|
href,
|
|
@@ -7024,7 +7077,7 @@ var ProfileCard = EntityCard;
|
|
|
7024
7077
|
|
|
7025
7078
|
// src/components/tombstone-card/TombstoneCard.tsx
|
|
7026
7079
|
import * as React87 from "react";
|
|
7027
|
-
import { jsx as jsx87, jsxs as
|
|
7080
|
+
import { jsx as jsx87, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
7028
7081
|
var statusConfig2 = {
|
|
7029
7082
|
archived: { label: "Archived", variant: "secondary" },
|
|
7030
7083
|
unavailable: { label: "Unavailable", variant: "warning" },
|
|
@@ -7049,8 +7102,8 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7049
7102
|
ref,
|
|
7050
7103
|
className: cn("flex h-full flex-col border-dashed bg-muted/30 shadow-none", className),
|
|
7051
7104
|
...props,
|
|
7052
|
-
children: /* @__PURE__ */
|
|
7053
|
-
/* @__PURE__ */
|
|
7105
|
+
children: /* @__PURE__ */ jsxs63(CardContent, { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
7106
|
+
/* @__PURE__ */ jsxs63("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7054
7107
|
logo && /* @__PURE__ */ jsx87("div", { className: "min-w-0 opacity-70", children: logo }),
|
|
7055
7108
|
/* @__PURE__ */ jsx87(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7056
7109
|
] }),
|
|
@@ -7071,7 +7124,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7071
7124
|
|
|
7072
7125
|
// src/components/document-card/DocumentCard.tsx
|
|
7073
7126
|
import * as React88 from "react";
|
|
7074
|
-
import { jsx as jsx88, jsxs as
|
|
7127
|
+
import { jsx as jsx88, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
7075
7128
|
var statusConfig3 = {
|
|
7076
7129
|
available: { label: "Available", variant: "success" },
|
|
7077
7130
|
restricted: { label: "Restricted", variant: "warning" },
|
|
@@ -7091,9 +7144,9 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7091
7144
|
}, ref) {
|
|
7092
7145
|
const statusInfo = statusConfig3[status];
|
|
7093
7146
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7094
|
-
return /* @__PURE__ */ jsx88(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */
|
|
7147
|
+
return /* @__PURE__ */ jsx88(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */ jsxs64(CardContent, { className: "flex items-center gap-3 p-4", children: [
|
|
7095
7148
|
/* @__PURE__ */ jsx88("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__ */ jsx88("span", { className: "text-[10px] font-bold uppercase tracking-wide", children: fileType }) }),
|
|
7096
|
-
/* @__PURE__ */
|
|
7149
|
+
/* @__PURE__ */ jsxs64("div", { className: "min-w-0 flex-1", children: [
|
|
7097
7150
|
/* @__PURE__ */ jsx88("p", { className: "truncate text-sm font-medium", children: name }),
|
|
7098
7151
|
meta && /* @__PURE__ */ jsx88("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
7099
7152
|
] }),
|
|
@@ -7131,7 +7184,7 @@ var LoadMore = React89.forwardRef(function LoadMore2({
|
|
|
7131
7184
|
|
|
7132
7185
|
// src/components/segmented-control/SegmentedControl.tsx
|
|
7133
7186
|
import * as React90 from "react";
|
|
7134
|
-
import { jsx as jsx90, jsxs as
|
|
7187
|
+
import { jsx as jsx90, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
7135
7188
|
var sizeClasses10 = {
|
|
7136
7189
|
sm: "h-8 px-2.5 text-xs",
|
|
7137
7190
|
md: "h-9 px-3 text-sm",
|
|
@@ -7222,7 +7275,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7222
7275
|
const active = multiple ? Array.isArray(selected) && selected.includes(option.value) : selected === option.value;
|
|
7223
7276
|
const firstEnabled = options.findIndex((entry) => !entry.disabled);
|
|
7224
7277
|
const focusable = multiple || active || !selected && index === firstEnabled;
|
|
7225
|
-
return /* @__PURE__ */
|
|
7278
|
+
return /* @__PURE__ */ jsxs65(
|
|
7226
7279
|
"button",
|
|
7227
7280
|
{
|
|
7228
7281
|
ref: (node) => {
|
|
@@ -7259,7 +7312,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7259
7312
|
|
|
7260
7313
|
// src/components/range-slider/RangeSlider.tsx
|
|
7261
7314
|
import * as React91 from "react";
|
|
7262
|
-
import { jsx as jsx91, jsxs as
|
|
7315
|
+
import { jsx as jsx91, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
7263
7316
|
var rangeInputClass = cn(
|
|
7264
7317
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
7265
7318
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
@@ -7299,12 +7352,12 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7299
7352
|
const span = max - min || 1;
|
|
7300
7353
|
const lowPercent = (low - min) / span * 100;
|
|
7301
7354
|
const highPercent = (high - min) / span * 100;
|
|
7302
|
-
return /* @__PURE__ */
|
|
7303
|
-
showValues && /* @__PURE__ */
|
|
7355
|
+
return /* @__PURE__ */ jsxs66("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
7356
|
+
showValues && /* @__PURE__ */ jsxs66("div", { className: "mb-2 flex items-center justify-between text-sm font-medium tabular-nums", children: [
|
|
7304
7357
|
/* @__PURE__ */ jsx91("span", { children: formatValue(low) }),
|
|
7305
7358
|
/* @__PURE__ */ jsx91("span", { children: formatValue(high) })
|
|
7306
7359
|
] }),
|
|
7307
|
-
/* @__PURE__ */
|
|
7360
|
+
/* @__PURE__ */ jsxs66("div", { className: "relative h-6 w-full", children: [
|
|
7308
7361
|
/* @__PURE__ */ jsx91("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-border" }),
|
|
7309
7362
|
/* @__PURE__ */ jsx91(
|
|
7310
7363
|
"div",
|
|
@@ -7349,7 +7402,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7349
7402
|
|
|
7350
7403
|
// src/components/filter-chips/FilterChips.tsx
|
|
7351
7404
|
import * as React92 from "react";
|
|
7352
|
-
import { jsx as jsx92, jsxs as
|
|
7405
|
+
import { jsx as jsx92, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
7353
7406
|
var CHIP_SIZES = {
|
|
7354
7407
|
sm: {
|
|
7355
7408
|
chip: "gap-1 py-0.5 pl-2.5 pr-0.5 text-xs",
|
|
@@ -7384,7 +7437,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7384
7437
|
return emptyLabel ? /* @__PURE__ */ jsx92("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7385
7438
|
}
|
|
7386
7439
|
const scale = CHIP_SIZES[size];
|
|
7387
|
-
return /* @__PURE__ */
|
|
7440
|
+
return /* @__PURE__ */ jsxs67(
|
|
7388
7441
|
"div",
|
|
7389
7442
|
{
|
|
7390
7443
|
ref,
|
|
@@ -7393,7 +7446,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7393
7446
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
7394
7447
|
...props,
|
|
7395
7448
|
children: [
|
|
7396
|
-
filters.map((filter) => /* @__PURE__ */
|
|
7449
|
+
filters.map((filter) => /* @__PURE__ */ jsxs67(
|
|
7397
7450
|
"span",
|
|
7398
7451
|
{
|
|
7399
7452
|
className: cn(
|
|
@@ -7401,8 +7454,8 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7401
7454
|
scale.chip
|
|
7402
7455
|
),
|
|
7403
7456
|
children: [
|
|
7404
|
-
/* @__PURE__ */
|
|
7405
|
-
/* @__PURE__ */
|
|
7457
|
+
/* @__PURE__ */ jsxs67("span", { className: "truncate", children: [
|
|
7458
|
+
/* @__PURE__ */ jsxs67("span", { className: "text-muted-foreground", children: [
|
|
7406
7459
|
filter.label,
|
|
7407
7460
|
":"
|
|
7408
7461
|
] }),
|
|
@@ -7445,7 +7498,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7445
7498
|
|
|
7446
7499
|
// src/components/multi-select/MultiSelect.tsx
|
|
7447
7500
|
import * as React93 from "react";
|
|
7448
|
-
import { jsx as jsx93, jsxs as
|
|
7501
|
+
import { jsx as jsx93, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
7449
7502
|
var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
7450
7503
|
options,
|
|
7451
7504
|
value,
|
|
@@ -7490,10 +7543,10 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7490
7543
|
}, [filtered]);
|
|
7491
7544
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
7492
7545
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
7493
|
-
return /* @__PURE__ */
|
|
7546
|
+
return /* @__PURE__ */ jsxs68("div", { ref, className: cn("flex flex-col gap-2", className), ...props, children: [
|
|
7494
7547
|
label && /* @__PURE__ */ jsx93("span", { id: labelId, className: "text-sm font-medium", children: label }),
|
|
7495
|
-
visibleChips.length > 0 && /* @__PURE__ */
|
|
7496
|
-
visibleChips.map((option) => /* @__PURE__ */
|
|
7548
|
+
visibleChips.length > 0 && /* @__PURE__ */ jsxs68("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
7549
|
+
visibleChips.map((option) => /* @__PURE__ */ jsxs68(
|
|
7497
7550
|
"span",
|
|
7498
7551
|
{
|
|
7499
7552
|
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",
|
|
@@ -7514,18 +7567,18 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7514
7567
|
},
|
|
7515
7568
|
option.value
|
|
7516
7569
|
)),
|
|
7517
|
-
hiddenCount > 0 && /* @__PURE__ */
|
|
7570
|
+
hiddenCount > 0 && /* @__PURE__ */ jsxs68("span", { className: "self-center text-xs text-muted-foreground", children: [
|
|
7518
7571
|
"+",
|
|
7519
7572
|
hiddenCount,
|
|
7520
7573
|
" more"
|
|
7521
7574
|
] })
|
|
7522
7575
|
] }),
|
|
7523
|
-
/* @__PURE__ */
|
|
7524
|
-
/* @__PURE__ */
|
|
7576
|
+
/* @__PURE__ */ jsxs68(Popover, { open, onOpenChange: setOpen, children: [
|
|
7577
|
+
/* @__PURE__ */ jsxs68(PopoverTrigger, { "aria-labelledby": label ? labelId : void 0, disabled, className: "w-full justify-between", children: [
|
|
7525
7578
|
/* @__PURE__ */ jsx93("span", { children: selected.length > 0 ? `${selected.length} selected` : triggerLabel }),
|
|
7526
7579
|
/* @__PURE__ */ jsx93("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2304" })
|
|
7527
7580
|
] }),
|
|
7528
|
-
/* @__PURE__ */
|
|
7581
|
+
/* @__PURE__ */ jsxs68(PopoverContent, { className: "w-80 p-0", children: [
|
|
7529
7582
|
/* @__PURE__ */ jsx93("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ jsx93(
|
|
7530
7583
|
Input,
|
|
7531
7584
|
{
|
|
@@ -7537,9 +7590,9 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7537
7590
|
autoFocus: true
|
|
7538
7591
|
}
|
|
7539
7592
|
) }),
|
|
7540
|
-
/* @__PURE__ */ jsx93("div", { className: "max-h-64 overflow-y-auto p-1", children: groups.length === 0 ? /* @__PURE__ */ jsx93("p", { className: "px-3 py-3 text-sm text-muted-foreground", children: emptyText }) : groups.map(({ option, heading }) => /* @__PURE__ */
|
|
7593
|
+
/* @__PURE__ */ jsx93("div", { className: "max-h-64 overflow-y-auto p-1", children: groups.length === 0 ? /* @__PURE__ */ jsx93("p", { className: "px-3 py-3 text-sm text-muted-foreground", children: emptyText }) : groups.map(({ option, heading }) => /* @__PURE__ */ jsxs68(React93.Fragment, { children: [
|
|
7541
7594
|
heading && /* @__PURE__ */ jsx93("p", { className: "px-3 pb-1 pt-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: heading }),
|
|
7542
|
-
/* @__PURE__ */
|
|
7595
|
+
/* @__PURE__ */ jsxs68(
|
|
7543
7596
|
"label",
|
|
7544
7597
|
{
|
|
7545
7598
|
className: cn(
|
|
@@ -7556,7 +7609,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7556
7609
|
className: "mt-0.5"
|
|
7557
7610
|
}
|
|
7558
7611
|
),
|
|
7559
|
-
/* @__PURE__ */
|
|
7612
|
+
/* @__PURE__ */ jsxs68("span", { className: "min-w-0", children: [
|
|
7560
7613
|
/* @__PURE__ */ jsx93("span", { className: "block", children: option.label }),
|
|
7561
7614
|
option.description && /* @__PURE__ */ jsx93("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: option.description })
|
|
7562
7615
|
] })
|
|
@@ -7564,7 +7617,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7564
7617
|
}
|
|
7565
7618
|
)
|
|
7566
7619
|
] }, option.value)) }),
|
|
7567
|
-
/* @__PURE__ */
|
|
7620
|
+
/* @__PURE__ */ jsxs68("div", { className: "flex items-center justify-between gap-2 border-t border-border p-2", children: [
|
|
7568
7621
|
/* @__PURE__ */ jsx93(
|
|
7569
7622
|
Button,
|
|
7570
7623
|
{
|
|
@@ -7584,7 +7637,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7584
7637
|
|
|
7585
7638
|
// src/components/filter-panel/FilterPanel.tsx
|
|
7586
7639
|
import * as React94 from "react";
|
|
7587
|
-
import { jsx as jsx94, jsxs as
|
|
7640
|
+
import { jsx as jsx94, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
7588
7641
|
var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
7589
7642
|
sections,
|
|
7590
7643
|
title = "Filters",
|
|
@@ -7614,16 +7667,16 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7614
7667
|
(current) => current.includes(index) ? current.filter((entry) => entry !== index) : [...current, index]
|
|
7615
7668
|
);
|
|
7616
7669
|
};
|
|
7617
|
-
return /* @__PURE__ */
|
|
7618
|
-
(title || description) && /* @__PURE__ */
|
|
7670
|
+
return /* @__PURE__ */ jsxs69(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
7671
|
+
(title || description) && /* @__PURE__ */ jsxs69("div", { className: "border-b border-border px-4 py-3", children: [
|
|
7619
7672
|
title && /* @__PURE__ */ jsx94("h2", { className: "text-sm font-semibold", children: title }),
|
|
7620
7673
|
description && /* @__PURE__ */ jsx94("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
7621
7674
|
] }),
|
|
7622
7675
|
/* @__PURE__ */ jsx94("div", { className: "divide-y divide-border", children: sections.map((section, index) => {
|
|
7623
7676
|
const expanded = isOpen(index);
|
|
7624
7677
|
const sectionId = `filter-section-${index}`;
|
|
7625
|
-
return /* @__PURE__ */
|
|
7626
|
-
/* @__PURE__ */ jsx94("h3", { children: /* @__PURE__ */
|
|
7678
|
+
return /* @__PURE__ */ jsxs69("div", { className: "px-4 py-3", children: [
|
|
7679
|
+
/* @__PURE__ */ jsx94("h3", { children: /* @__PURE__ */ jsxs69(
|
|
7627
7680
|
"button",
|
|
7628
7681
|
{
|
|
7629
7682
|
type: "button",
|
|
@@ -7636,7 +7689,7 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7636
7689
|
collapsible && "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7637
7690
|
),
|
|
7638
7691
|
children: [
|
|
7639
|
-
/* @__PURE__ */
|
|
7692
|
+
/* @__PURE__ */ jsxs69("span", { children: [
|
|
7640
7693
|
section.title,
|
|
7641
7694
|
section.description && /* @__PURE__ */ jsx94("span", { className: "mt-0.5 block text-xs font-normal text-muted-foreground", children: section.description })
|
|
7642
7695
|
] }),
|
|
@@ -7647,7 +7700,7 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7647
7700
|
expanded && /* @__PURE__ */ jsx94("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
7648
7701
|
] }, index);
|
|
7649
7702
|
}) }),
|
|
7650
|
-
(onReset || onApply || actions) && /* @__PURE__ */
|
|
7703
|
+
(onReset || onApply || actions) && /* @__PURE__ */ jsxs69("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
7651
7704
|
actions,
|
|
7652
7705
|
onReset && /* @__PURE__ */ jsx94(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, className: "ml-auto", children: resetLabel }),
|
|
7653
7706
|
onApply && /* @__PURE__ */ jsx94(Button, { type: "button", size: "sm", onClick: onApply, children: applyLabel })
|
|
@@ -7657,7 +7710,7 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7657
7710
|
|
|
7658
7711
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
7659
7712
|
import * as React95 from "react";
|
|
7660
|
-
import { jsx as jsx95, jsxs as
|
|
7713
|
+
import { jsx as jsx95, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
7661
7714
|
var DEFAULT_PRESETS = [
|
|
7662
7715
|
{ label: "7 days", days: 7 },
|
|
7663
7716
|
{ label: "30 days", days: 30 },
|
|
@@ -7709,7 +7762,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7709
7762
|
}
|
|
7710
7763
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
7711
7764
|
};
|
|
7712
|
-
return /* @__PURE__ */
|
|
7765
|
+
return /* @__PURE__ */ jsxs70("div", { ref, className: cn("flex flex-col gap-3", className), ...props, children: [
|
|
7713
7766
|
showPresets && presets.length > 0 && /* @__PURE__ */ jsx95("div", { className: "flex flex-wrap gap-2", children: presets.map((preset) => /* @__PURE__ */ jsx95(
|
|
7714
7767
|
Button,
|
|
7715
7768
|
{
|
|
@@ -7722,8 +7775,8 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7722
7775
|
},
|
|
7723
7776
|
preset.label
|
|
7724
7777
|
)) }),
|
|
7725
|
-
/* @__PURE__ */
|
|
7726
|
-
/* @__PURE__ */
|
|
7778
|
+
/* @__PURE__ */ jsxs70("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
7779
|
+
/* @__PURE__ */ jsxs70("div", { children: [
|
|
7727
7780
|
/* @__PURE__ */ jsx95("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
7728
7781
|
/* @__PURE__ */ jsx95(
|
|
7729
7782
|
DatePicker,
|
|
@@ -7737,7 +7790,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7737
7790
|
}
|
|
7738
7791
|
)
|
|
7739
7792
|
] }),
|
|
7740
|
-
/* @__PURE__ */
|
|
7793
|
+
/* @__PURE__ */ jsxs70("div", { children: [
|
|
7741
7794
|
/* @__PURE__ */ jsx95("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
7742
7795
|
/* @__PURE__ */ jsx95(
|
|
7743
7796
|
DatePicker,
|
|
@@ -7758,7 +7811,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7758
7811
|
|
|
7759
7812
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
7760
7813
|
import * as React96 from "react";
|
|
7761
|
-
import { jsx as jsx96, jsxs as
|
|
7814
|
+
import { jsx as jsx96, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
7762
7815
|
var AppliedFilters = React96.forwardRef(
|
|
7763
7816
|
function AppliedFilters2({
|
|
7764
7817
|
filters,
|
|
@@ -7774,7 +7827,7 @@ var AppliedFilters = React96.forwardRef(
|
|
|
7774
7827
|
if (filters.length === 0) {
|
|
7775
7828
|
return emptyLabel ? /* @__PURE__ */ jsx96("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7776
7829
|
}
|
|
7777
|
-
return /* @__PURE__ */
|
|
7830
|
+
return /* @__PURE__ */ jsxs71(
|
|
7778
7831
|
"div",
|
|
7779
7832
|
{
|
|
7780
7833
|
ref,
|
|
@@ -8069,7 +8122,7 @@ AlertDescription.displayName = "AlertDescription";
|
|
|
8069
8122
|
|
|
8070
8123
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
8071
8124
|
import * as React99 from "react";
|
|
8072
|
-
import { jsx as jsx99, jsxs as
|
|
8125
|
+
import { jsx as jsx99, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
8073
8126
|
var Breadcrumb = React99.forwardRef(
|
|
8074
8127
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
8075
8128
|
const LinkEl = linkComponent ?? "a";
|
|
@@ -8082,7 +8135,7 @@ var Breadcrumb = React99.forwardRef(
|
|
|
8082
8135
|
...props,
|
|
8083
8136
|
children: /* @__PURE__ */ jsx99("ol", { className: "flex flex-wrap items-center space-x-1.5", children: items.map((item, index) => {
|
|
8084
8137
|
const isLast = index === items.length - 1;
|
|
8085
|
-
return /* @__PURE__ */
|
|
8138
|
+
return /* @__PURE__ */ jsxs72("li", { className: cn("flex items-center space-x-1.5", truncateCurrent && isLast && "min-w-0"), children: [
|
|
8086
8139
|
index > 0 && /* @__PURE__ */ jsx99("span", { "aria-hidden": "true", className: "text-muted-foreground/50", children: separator }),
|
|
8087
8140
|
item.href && !isLast ? /* @__PURE__ */ jsx99(
|
|
8088
8141
|
LinkEl,
|