@slipstream-ui/core 0.11.2 → 0.11.4
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 +39 -7
- package/dist/index.d.ts +39 -7
- package/dist/index.js +60 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +329 -276
- 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 +1 -1
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +16 -4
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/image.manifest.json +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/form-layout/FormLayout.d.ts +26 -4
- package/dist/src/components/form-layout/FormLayout.js +16 -3
- package/dist/src/components/form-layout/FormLayout.js.map +1 -1
- package/dist/src/components/form-layout/FormLayout.mjs +16 -3
- package/dist/src/components/form-layout/FormLayout.mjs.map +1 -1
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/components/badge/Badge.test.tsx +46 -0
- package/src/components/badge/Badge.tsx +58 -4
- package/src/components/form-layout/FormLayout.test.tsx +26 -0
- package/src/components/form-layout/FormLayout.tsx +37 -5
- 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 +1 -1
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +16 -4
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/image.manifest.json +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,20 +2551,33 @@ 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",
|
|
2518
2558
|
3: "grid-cols-3",
|
|
2519
2559
|
4: "grid-cols-4"
|
|
2520
2560
|
};
|
|
2561
|
+
var GRID_BREAKPOINTS = ["sm", "md", "lg", "xl"];
|
|
2562
|
+
function gridColumnClasses(columns) {
|
|
2563
|
+
if (typeof columns === "number") return GRID_COLUMNS[columns];
|
|
2564
|
+
return [
|
|
2565
|
+
columns.base !== void 0 ? GRID_COLUMNS[columns.base] : "",
|
|
2566
|
+
...GRID_BREAKPOINTS.map((bp) => {
|
|
2567
|
+
const count = columns[bp];
|
|
2568
|
+
return count !== void 0 ? `${bp}:${GRID_COLUMNS[count]}` : "";
|
|
2569
|
+
})
|
|
2570
|
+
].filter(Boolean).join(" ");
|
|
2571
|
+
}
|
|
2521
2572
|
var FormLayout = React30.forwardRef(
|
|
2522
2573
|
({
|
|
2523
2574
|
layout = "stack",
|
|
2524
2575
|
columns = 2,
|
|
2525
2576
|
gap,
|
|
2526
2577
|
legend,
|
|
2578
|
+
legendClassName,
|
|
2527
2579
|
description,
|
|
2580
|
+
descriptionClassName,
|
|
2528
2581
|
as = "div",
|
|
2529
2582
|
className,
|
|
2530
2583
|
style,
|
|
@@ -2533,7 +2586,7 @@ var FormLayout = React30.forwardRef(
|
|
|
2533
2586
|
}, ref) => {
|
|
2534
2587
|
const Tag = as;
|
|
2535
2588
|
const gapResolved = resolveGap(gap ?? "md");
|
|
2536
|
-
return /* @__PURE__ */
|
|
2589
|
+
return /* @__PURE__ */ jsxs20(
|
|
2537
2590
|
Tag,
|
|
2538
2591
|
{
|
|
2539
2592
|
ref,
|
|
@@ -2541,15 +2594,15 @@ var FormLayout = React30.forwardRef(
|
|
|
2541
2594
|
"flex min-w-0",
|
|
2542
2595
|
layout === "stack" && "flex-col",
|
|
2543
2596
|
layout === "row" && "flex-row flex-wrap items-end",
|
|
2544
|
-
layout === "grid" && `grid ${
|
|
2597
|
+
layout === "grid" && `grid ${gridColumnClasses(columns)}`,
|
|
2545
2598
|
gapResolved.className,
|
|
2546
2599
|
className
|
|
2547
2600
|
),
|
|
2548
2601
|
style: { ...gapResolved.style, ...style },
|
|
2549
2602
|
...props,
|
|
2550
2603
|
children: [
|
|
2551
|
-
legend && as === "fieldset" && /* @__PURE__ */ jsx29("legend", { className: "col-span-full p-0 text-sm font-medium leading-none", children: legend }),
|
|
2552
|
-
description && as === "fieldset" && /* @__PURE__ */ jsx29("p", { className: "col-span-full text-xs text-muted-foreground", children: description }),
|
|
2604
|
+
legend && as === "fieldset" && /* @__PURE__ */ jsx29("legend", { className: cn("col-span-full p-0 text-sm font-medium leading-none", legendClassName), children: legend }),
|
|
2605
|
+
description && as === "fieldset" && /* @__PURE__ */ jsx29("p", { className: cn("col-span-full text-xs text-muted-foreground", descriptionClassName), children: description }),
|
|
2553
2606
|
children
|
|
2554
2607
|
]
|
|
2555
2608
|
}
|
|
@@ -2560,7 +2613,7 @@ FormLayout.displayName = "FormLayout";
|
|
|
2560
2613
|
|
|
2561
2614
|
// src/components/switch/Switch.tsx
|
|
2562
2615
|
import * as React31 from "react";
|
|
2563
|
-
import { Fragment as Fragment6, jsx as jsx30, jsxs as
|
|
2616
|
+
import { Fragment as Fragment6, jsx as jsx30, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2564
2617
|
var Switch = React31.forwardRef(
|
|
2565
2618
|
({ className, checked, defaultChecked, onCheckedChange, disabled, name, value, ...props }, ref) => {
|
|
2566
2619
|
const [internalChecked, setInternalChecked] = React31.useState(defaultChecked ?? false);
|
|
@@ -2569,7 +2622,7 @@ var Switch = React31.forwardRef(
|
|
|
2569
2622
|
if (checked === void 0) setInternalChecked((prev) => !prev);
|
|
2570
2623
|
onCheckedChange?.(!isOn);
|
|
2571
2624
|
};
|
|
2572
|
-
return /* @__PURE__ */
|
|
2625
|
+
return /* @__PURE__ */ jsxs21(Fragment6, { children: [
|
|
2573
2626
|
name && /* @__PURE__ */ jsx30(
|
|
2574
2627
|
"input",
|
|
2575
2628
|
{
|
|
@@ -2648,7 +2701,7 @@ var Divider = Separator;
|
|
|
2648
2701
|
|
|
2649
2702
|
// src/components/skeleton/Skeleton.tsx
|
|
2650
2703
|
import * as React33 from "react";
|
|
2651
|
-
import { jsx as jsx32, jsxs as
|
|
2704
|
+
import { jsx as jsx32, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2652
2705
|
var roundedClasses = {
|
|
2653
2706
|
none: "rounded-none",
|
|
2654
2707
|
sm: "rounded-sm",
|
|
@@ -2657,7 +2710,7 @@ var roundedClasses = {
|
|
|
2657
2710
|
full: "rounded-full"
|
|
2658
2711
|
};
|
|
2659
2712
|
var Skeleton = React33.forwardRef(
|
|
2660
|
-
({ className, height, width, rounded = "md", label, children, ...props }, ref) => /* @__PURE__ */
|
|
2713
|
+
({ className, height, width, rounded = "md", label, children, ...props }, ref) => /* @__PURE__ */ jsxs22(
|
|
2661
2714
|
"div",
|
|
2662
2715
|
{
|
|
2663
2716
|
ref,
|
|
@@ -2929,7 +2982,7 @@ TabsContent.displayName = "TabsContent";
|
|
|
2929
2982
|
// src/components/link-tabs/LinkTabs.tsx
|
|
2930
2983
|
import * as React36 from "react";
|
|
2931
2984
|
import { cva as cva6 } from "class-variance-authority";
|
|
2932
|
-
import { Fragment as Fragment7, jsx as jsx35, jsxs as
|
|
2985
|
+
import { Fragment as Fragment7, jsx as jsx35, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2933
2986
|
var listVariants = cva6("inline-flex items-center", {
|
|
2934
2987
|
variants: {
|
|
2935
2988
|
variant: {
|
|
@@ -2983,7 +3036,7 @@ var LinkTabs = React36.forwardRef(function LinkTabs2({
|
|
|
2983
3036
|
const Link3 = linkComponent ?? "a";
|
|
2984
3037
|
return /* @__PURE__ */ jsx35("nav", { ref, "aria-label": label, className: cn(listVariants({ variant, size }), className), ...props, children: items.map((item) => {
|
|
2985
3038
|
const active = isActive(item, activeHref);
|
|
2986
|
-
const content = /* @__PURE__ */
|
|
3039
|
+
const content = /* @__PURE__ */ jsxs23(Fragment7, { children: [
|
|
2987
3040
|
item.icon,
|
|
2988
3041
|
item.label
|
|
2989
3042
|
] });
|
|
@@ -3016,7 +3069,7 @@ LinkTabs.displayName = "LinkTabs";
|
|
|
3016
3069
|
|
|
3017
3070
|
// src/components/theme-toggle/ThemeToggle.tsx
|
|
3018
3071
|
import * as React37 from "react";
|
|
3019
|
-
import { jsx as jsx36, jsxs as
|
|
3072
|
+
import { jsx as jsx36, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3020
3073
|
var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChange, labels, size = "md", className, ...props }, ref) {
|
|
3021
3074
|
const next = theme === "dark" ? "light" : "dark";
|
|
3022
3075
|
const label = next === "dark" ? labels?.toDark ?? "Switch to dark theme" : labels?.toLight ?? "Switch to light theme";
|
|
@@ -3036,7 +3089,7 @@ var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChang
|
|
|
3036
3089
|
className
|
|
3037
3090
|
),
|
|
3038
3091
|
...props,
|
|
3039
|
-
children: theme === "dark" ? /* @__PURE__ */
|
|
3092
|
+
children: theme === "dark" ? /* @__PURE__ */ jsxs24(
|
|
3040
3093
|
"svg",
|
|
3041
3094
|
{
|
|
3042
3095
|
viewBox: "0 0 24 24",
|
|
@@ -3188,7 +3241,7 @@ function formatDateLabel(key, locale = "en-US") {
|
|
|
3188
3241
|
}
|
|
3189
3242
|
|
|
3190
3243
|
// src/components/calendar/Calendar.tsx
|
|
3191
|
-
import { jsx as jsx37, jsxs as
|
|
3244
|
+
import { jsx as jsx37, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3192
3245
|
var MOVES = {
|
|
3193
3246
|
ArrowLeft: "left",
|
|
3194
3247
|
ArrowRight: "right",
|
|
@@ -3278,7 +3331,7 @@ var Calendar = React38.forwardRef(
|
|
|
3278
3331
|
return () => clearTimeout(timer);
|
|
3279
3332
|
}, [autoFocus, tabbable, view.year, view.month]);
|
|
3280
3333
|
const monthName = monthLabel(view.year, view.month, locale);
|
|
3281
|
-
return /* @__PURE__ */
|
|
3334
|
+
return /* @__PURE__ */ jsxs25(
|
|
3282
3335
|
"div",
|
|
3283
3336
|
{
|
|
3284
3337
|
ref,
|
|
@@ -3286,7 +3339,7 @@ var Calendar = React38.forwardRef(
|
|
|
3286
3339
|
"data-disabled": disabled ? "" : void 0,
|
|
3287
3340
|
...props,
|
|
3288
3341
|
children: [
|
|
3289
|
-
/* @__PURE__ */
|
|
3342
|
+
/* @__PURE__ */ jsxs25("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
3290
3343
|
/* @__PURE__ */ jsx37(
|
|
3291
3344
|
Button,
|
|
3292
3345
|
{
|
|
@@ -3313,7 +3366,7 @@ var Calendar = React38.forwardRef(
|
|
|
3313
3366
|
}
|
|
3314
3367
|
)
|
|
3315
3368
|
] }),
|
|
3316
|
-
/* @__PURE__ */
|
|
3369
|
+
/* @__PURE__ */ jsxs25(
|
|
3317
3370
|
"div",
|
|
3318
3371
|
{
|
|
3319
3372
|
ref: gridRef,
|
|
@@ -3427,7 +3480,7 @@ CardFooter.displayName = "CardFooter";
|
|
|
3427
3480
|
|
|
3428
3481
|
// src/components/confirm-dialog/ConfirmDialog.tsx
|
|
3429
3482
|
import * as React40 from "react";
|
|
3430
|
-
import { jsx as jsx39, jsxs as
|
|
3483
|
+
import { jsx as jsx39, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3431
3484
|
function ConfirmDialog({
|
|
3432
3485
|
open,
|
|
3433
3486
|
onOpenChange,
|
|
@@ -3461,7 +3514,7 @@ function ConfirmDialog({
|
|
|
3461
3514
|
title,
|
|
3462
3515
|
description,
|
|
3463
3516
|
size: "sm",
|
|
3464
|
-
footer: /* @__PURE__ */
|
|
3517
|
+
footer: /* @__PURE__ */ jsxs26(DialogFooter, { children: [
|
|
3465
3518
|
/* @__PURE__ */ jsx39(Button, { variant: "ghost", onClick: () => onOpenChange(false), disabled: pending, children: cancelLabel }),
|
|
3466
3519
|
/* @__PURE__ */ jsx39(
|
|
3467
3520
|
Button,
|
|
@@ -3480,7 +3533,7 @@ function ConfirmDialog({
|
|
|
3480
3533
|
|
|
3481
3534
|
// src/components/table-of-contents/TableOfContents.tsx
|
|
3482
3535
|
import * as React41 from "react";
|
|
3483
|
-
import { jsx as jsx40, jsxs as
|
|
3536
|
+
import { jsx as jsx40, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3484
3537
|
function TableOfContents({
|
|
3485
3538
|
headings,
|
|
3486
3539
|
activeId,
|
|
@@ -3492,7 +3545,7 @@ function TableOfContents({
|
|
|
3492
3545
|
className,
|
|
3493
3546
|
...props
|
|
3494
3547
|
}) {
|
|
3495
|
-
return /* @__PURE__ */
|
|
3548
|
+
return /* @__PURE__ */ jsxs27(
|
|
3496
3549
|
"nav",
|
|
3497
3550
|
{
|
|
3498
3551
|
"aria-label": ariaLabel ?? label,
|
|
@@ -3601,7 +3654,7 @@ var Prose = React42.forwardRef(function Prose2({ size = "md", className, ...prop
|
|
|
3601
3654
|
});
|
|
3602
3655
|
|
|
3603
3656
|
// src/components/site-footer/SiteFooter.tsx
|
|
3604
|
-
import { jsx as jsx42, jsxs as
|
|
3657
|
+
import { jsx as jsx42, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3605
3658
|
function isActive2(itemHref, activeHref, match) {
|
|
3606
3659
|
if (!activeHref) return false;
|
|
3607
3660
|
if (itemHref === activeHref) return true;
|
|
@@ -3622,13 +3675,13 @@ function SiteFooter({
|
|
|
3622
3675
|
}) {
|
|
3623
3676
|
const Link3 = linkComponent ?? "a";
|
|
3624
3677
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
3625
|
-
return /* @__PURE__ */
|
|
3626
|
-
/* @__PURE__ */
|
|
3627
|
-
/* @__PURE__ */
|
|
3678
|
+
return /* @__PURE__ */ jsxs28("footer", { className: cn("border-t border-border bg-muted/30", className), ...props, children: [
|
|
3679
|
+
/* @__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: [
|
|
3680
|
+
/* @__PURE__ */ jsxs28("div", { className: "min-w-0", children: [
|
|
3628
3681
|
brand,
|
|
3629
3682
|
tagline && /* @__PURE__ */ jsx42("p", { className: "mt-3 max-w-56 text-sm text-muted-foreground", children: tagline })
|
|
3630
3683
|
] }),
|
|
3631
|
-
columns.map((column) => /* @__PURE__ */
|
|
3684
|
+
columns.map((column) => /* @__PURE__ */ jsxs28("div", { children: [
|
|
3632
3685
|
/* @__PURE__ */ jsx42("h2", { className: "mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: column.title }),
|
|
3633
3686
|
/* @__PURE__ */ jsx42("ul", { className: "m-0 list-none space-y-2 p-0 text-sm", children: column.links.map((link) => {
|
|
3634
3687
|
const active = isActive2(link.href, activeHref, match);
|
|
@@ -3654,7 +3707,7 @@ function SiteFooter({
|
|
|
3654
3707
|
|
|
3655
3708
|
// src/components/site-header/SiteHeader.tsx
|
|
3656
3709
|
import * as React43 from "react";
|
|
3657
|
-
import { Fragment as Fragment8, jsx as jsx43, jsxs as
|
|
3710
|
+
import { Fragment as Fragment8, jsx as jsx43, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3658
3711
|
function isActive3(itemHref, activeHref, match) {
|
|
3659
3712
|
if (!activeHref) return false;
|
|
3660
3713
|
if (itemHref === activeHref) return true;
|
|
@@ -3743,7 +3796,7 @@ function SiteHeader({
|
|
|
3743
3796
|
!extra && "text-sm hover:text-foreground",
|
|
3744
3797
|
!extra && (active ? "font-medium text-foreground" : "text-muted-foreground")
|
|
3745
3798
|
),
|
|
3746
|
-
children: extra === "panel" ? /* @__PURE__ */
|
|
3799
|
+
children: extra === "panel" ? /* @__PURE__ */ jsxs29(Fragment8, { children: [
|
|
3747
3800
|
/* @__PURE__ */ jsx43("span", { className: "block text-sm font-medium", children: item.label }),
|
|
3748
3801
|
item.description && /* @__PURE__ */ jsx43("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: item.description })
|
|
3749
3802
|
] }) : item.label
|
|
@@ -3752,7 +3805,7 @@ function SiteHeader({
|
|
|
3752
3805
|
);
|
|
3753
3806
|
};
|
|
3754
3807
|
const hasColumns = (item) => Array.isArray(item.columns) && item.columns.length > 0;
|
|
3755
|
-
return /* @__PURE__ */
|
|
3808
|
+
return /* @__PURE__ */ jsxs29(Fragment8, { children: [
|
|
3756
3809
|
/* @__PURE__ */ jsx43(
|
|
3757
3810
|
"header",
|
|
3758
3811
|
{
|
|
@@ -3762,7 +3815,7 @@ function SiteHeader({
|
|
|
3762
3815
|
className
|
|
3763
3816
|
),
|
|
3764
3817
|
...props,
|
|
3765
|
-
children: /* @__PURE__ */
|
|
3818
|
+
children: /* @__PURE__ */ jsxs29(
|
|
3766
3819
|
"nav",
|
|
3767
3820
|
{
|
|
3768
3821
|
"aria-label": navLabel,
|
|
@@ -3771,7 +3824,7 @@ function SiteHeader({
|
|
|
3771
3824
|
navClassName
|
|
3772
3825
|
),
|
|
3773
3826
|
children: [
|
|
3774
|
-
/* @__PURE__ */
|
|
3827
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex min-w-0 items-center gap-6", children: [
|
|
3775
3828
|
/* @__PURE__ */ jsx43(
|
|
3776
3829
|
Link3,
|
|
3777
3830
|
{
|
|
@@ -3794,7 +3847,7 @@ function SiteHeader({
|
|
|
3794
3847
|
}
|
|
3795
3848
|
const panelId = `${generatedId}-panel-${item.label.replace(/\s+/g, "-").toLowerCase()}`;
|
|
3796
3849
|
const open = openMenu === item.label;
|
|
3797
|
-
return /* @__PURE__ */
|
|
3850
|
+
return /* @__PURE__ */ jsxs29(
|
|
3798
3851
|
"li",
|
|
3799
3852
|
{
|
|
3800
3853
|
"data-site-nav-item": true,
|
|
@@ -3808,7 +3861,7 @@ function SiteHeader({
|
|
|
3808
3861
|
}
|
|
3809
3862
|
},
|
|
3810
3863
|
children: [
|
|
3811
|
-
/* @__PURE__ */
|
|
3864
|
+
/* @__PURE__ */ jsxs29(
|
|
3812
3865
|
"button",
|
|
3813
3866
|
{
|
|
3814
3867
|
type: "button",
|
|
@@ -3846,7 +3899,7 @@ function SiteHeader({
|
|
|
3846
3899
|
item.columns.length > 1 ? "grid-cols-2" : "grid-cols-1",
|
|
3847
3900
|
"min-w-[22rem]"
|
|
3848
3901
|
),
|
|
3849
|
-
children: item.columns.map((column, index) => /* @__PURE__ */
|
|
3902
|
+
children: item.columns.map((column, index) => /* @__PURE__ */ jsxs29("div", { className: "min-w-40", children: [
|
|
3850
3903
|
column.heading && /* @__PURE__ */ jsx43("p", { className: "mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: column.heading }),
|
|
3851
3904
|
/* @__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
3905
|
] }, column.heading ?? index))
|
|
@@ -3860,7 +3913,7 @@ function SiteHeader({
|
|
|
3860
3913
|
}
|
|
3861
3914
|
)
|
|
3862
3915
|
] }),
|
|
3863
|
-
/* @__PURE__ */
|
|
3916
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-2", children: [
|
|
3864
3917
|
actions,
|
|
3865
3918
|
showMobileTrigger && /* @__PURE__ */ jsx43(
|
|
3866
3919
|
"button",
|
|
@@ -3896,7 +3949,7 @@ function SiteHeader({
|
|
|
3896
3949
|
)
|
|
3897
3950
|
}
|
|
3898
3951
|
),
|
|
3899
|
-
showMobileTrigger && /* @__PURE__ */
|
|
3952
|
+
showMobileTrigger && /* @__PURE__ */ jsxs29(
|
|
3900
3953
|
Drawer,
|
|
3901
3954
|
{
|
|
3902
3955
|
open: mobileOpen,
|
|
@@ -3907,9 +3960,9 @@ function SiteHeader({
|
|
|
3907
3960
|
animate: true,
|
|
3908
3961
|
children: [
|
|
3909
3962
|
/* @__PURE__ */ jsx43("nav", { id: menuId, "aria-label": mobileNavLabel, className: "flex flex-col gap-1", children: items.map(
|
|
3910
|
-
(item) => hasColumns(item) ? /* @__PURE__ */
|
|
3963
|
+
(item) => hasColumns(item) ? /* @__PURE__ */ jsxs29("details", { className: "rounded-md", children: [
|
|
3911
3964
|
/* @__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__ */
|
|
3965
|
+
/* @__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
3966
|
column.heading && /* @__PURE__ */ jsx43("p", { className: "mb-1 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: column.heading }),
|
|
3914
3967
|
/* @__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
3968
|
] }, column.heading ?? index)) })
|
|
@@ -3924,7 +3977,7 @@ function SiteHeader({
|
|
|
3924
3977
|
|
|
3925
3978
|
// src/components/accordion/Accordion.tsx
|
|
3926
3979
|
import * as React44 from "react";
|
|
3927
|
-
import { jsx as jsx44, jsxs as
|
|
3980
|
+
import { jsx as jsx44, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3928
3981
|
var AccordionContext = React44.createContext({
|
|
3929
3982
|
openItems: /* @__PURE__ */ new Set(),
|
|
3930
3983
|
toggle: () => {
|
|
@@ -3968,7 +4021,7 @@ var Accordion = React44.forwardRef(
|
|
|
3968
4021
|
className
|
|
3969
4022
|
),
|
|
3970
4023
|
style: { ...gapResolved.style, ...style },
|
|
3971
|
-
children: /* @__PURE__ */ jsx44(AccordionContext.Provider, { value: { openItems: new Set(current), toggle, collapsible }, children: items ? items.map((item) => /* @__PURE__ */
|
|
4024
|
+
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
4025
|
/* @__PURE__ */ jsx44(AccordionTrigger, { disabled: item.disabled, children: item.title }),
|
|
3973
4026
|
/* @__PURE__ */ jsx44(AccordionContent, { children: item.content })
|
|
3974
4027
|
] }, item.id)) : children })
|
|
@@ -3989,7 +4042,7 @@ var AccordionTrigger = React44.forwardRef(
|
|
|
3989
4042
|
const open = openItems.has(id);
|
|
3990
4043
|
const panelId = `${id}-panel`;
|
|
3991
4044
|
const triggerId = `${id}-trigger`;
|
|
3992
|
-
return /* @__PURE__ */
|
|
4045
|
+
return /* @__PURE__ */ jsxs30(
|
|
3993
4046
|
"button",
|
|
3994
4047
|
{
|
|
3995
4048
|
ref,
|
|
@@ -4161,7 +4214,7 @@ import * as React47 from "react";
|
|
|
4161
4214
|
|
|
4162
4215
|
// src/components/pagination/Pagination.tsx
|
|
4163
4216
|
import * as React46 from "react";
|
|
4164
|
-
import { jsx as jsx46, jsxs as
|
|
4217
|
+
import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4165
4218
|
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
4219
|
var controlDisabledClass = "pointer-events-none opacity-50";
|
|
4167
4220
|
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 +4307,7 @@ var Pagination = React46.forwardRef(
|
|
|
4254
4307
|
entry
|
|
4255
4308
|
);
|
|
4256
4309
|
};
|
|
4257
|
-
const nav = /* @__PURE__ */
|
|
4310
|
+
const nav = /* @__PURE__ */ jsxs31(
|
|
4258
4311
|
"nav",
|
|
4259
4312
|
{
|
|
4260
4313
|
ref,
|
|
@@ -4281,7 +4334,7 @@ var Pagination = React46.forwardRef(
|
|
|
4281
4334
|
}
|
|
4282
4335
|
);
|
|
4283
4336
|
if (!summaryEnabled) return nav;
|
|
4284
|
-
return /* @__PURE__ */
|
|
4337
|
+
return /* @__PURE__ */ jsxs31("div", { className: cn("flex flex-wrap items-center justify-between gap-3", className), children: [
|
|
4285
4338
|
/* @__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
4339
|
nav
|
|
4287
4340
|
] });
|
|
@@ -4290,7 +4343,7 @@ var Pagination = React46.forwardRef(
|
|
|
4290
4343
|
Pagination.displayName = "Pagination";
|
|
4291
4344
|
|
|
4292
4345
|
// src/components/data-table/DataTable.tsx
|
|
4293
|
-
import { jsx as jsx47, jsxs as
|
|
4346
|
+
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4294
4347
|
function compareValues(a, b) {
|
|
4295
4348
|
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
4296
4349
|
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
@@ -4399,18 +4452,18 @@ function DataTable({
|
|
|
4399
4452
|
return String(raw);
|
|
4400
4453
|
};
|
|
4401
4454
|
const alignClass = (align) => align === "right" ? "text-right" : align === "center" ? "text-center" : "text-left";
|
|
4402
|
-
return /* @__PURE__ */
|
|
4403
|
-
selectionEnabled && selectedIds.length > 0 && bulkActions && /* @__PURE__ */
|
|
4455
|
+
return /* @__PURE__ */ jsxs32("div", { className: cn("w-full space-y-3", className), children: [
|
|
4456
|
+
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
4457
|
/* @__PURE__ */ jsx47("span", { className: "font-medium", children: selectedLabel.replace("{count}", String(selectedIds.length)) }),
|
|
4405
4458
|
/* @__PURE__ */ jsx47("div", { className: "flex flex-wrap items-center gap-2", children: bulkActions })
|
|
4406
4459
|
] }),
|
|
4407
|
-
/* @__PURE__ */ jsx47("div", { className: "w-full overflow-x-auto rounded-lg border border-border", children: /* @__PURE__ */
|
|
4460
|
+
/* @__PURE__ */ jsx47("div", { className: "w-full overflow-x-auto rounded-lg border border-border", children: /* @__PURE__ */ jsxs32(
|
|
4408
4461
|
"table",
|
|
4409
4462
|
{
|
|
4410
4463
|
className: cn("w-full caption-bottom", density === "compact" ? "text-xs" : "text-sm"),
|
|
4411
4464
|
children: [
|
|
4412
4465
|
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__ */
|
|
4466
|
+
/* @__PURE__ */ jsx47("thead", { className: cn("bg-muted/50", stickyHeader && "sticky top-0 z-10 bg-background"), children: /* @__PURE__ */ jsxs32("tr", { children: [
|
|
4414
4467
|
selectionEnabled && /* @__PURE__ */ jsx47("th", { scope: "col", className: "w-10 border-b border-border px-3 py-2", children: /* @__PURE__ */ jsx47(
|
|
4415
4468
|
Checkbox,
|
|
4416
4469
|
{
|
|
@@ -4435,7 +4488,7 @@ function DataTable({
|
|
|
4435
4488
|
alignClass(column.align),
|
|
4436
4489
|
column.className
|
|
4437
4490
|
),
|
|
4438
|
-
children: column.sortable ? /* @__PURE__ */
|
|
4491
|
+
children: column.sortable ? /* @__PURE__ */ jsxs32(
|
|
4439
4492
|
"button",
|
|
4440
4493
|
{
|
|
4441
4494
|
type: "button",
|
|
@@ -4454,7 +4507,7 @@ function DataTable({
|
|
|
4454
4507
|
] }) }),
|
|
4455
4508
|
/* @__PURE__ */ jsx47("tbody", { "aria-busy": loading || void 0, children: loading ? Array.from(
|
|
4456
4509
|
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
4457
|
-
(_, skeletonRow) => /* @__PURE__ */
|
|
4510
|
+
(_, skeletonRow) => /* @__PURE__ */ jsxs32("tr", { children: [
|
|
4458
4511
|
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
4512
|
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
4513
|
] }, `skeleton-${skeletonRow}`)
|
|
@@ -4465,7 +4518,7 @@ function DataTable({
|
|
|
4465
4518
|
className: "px-3 py-8 text-center text-sm text-muted-foreground",
|
|
4466
4519
|
children: emptyMessage
|
|
4467
4520
|
}
|
|
4468
|
-
) }) : visible.map((row, index) => /* @__PURE__ */
|
|
4521
|
+
) }) : visible.map((row, index) => /* @__PURE__ */ jsxs32(
|
|
4469
4522
|
"tr",
|
|
4470
4523
|
{
|
|
4471
4524
|
tabIndex: onRowClick ? 0 : void 0,
|
|
@@ -4526,8 +4579,8 @@ function DataTable({
|
|
|
4526
4579
|
]
|
|
4527
4580
|
}
|
|
4528
4581
|
) }),
|
|
4529
|
-
pageSize && pageCount > 1 && /* @__PURE__ */
|
|
4530
|
-
/* @__PURE__ */
|
|
4582
|
+
pageSize && pageCount > 1 && /* @__PURE__ */ jsxs32("div", { className: "flex flex-wrap items-center justify-between gap-x-4 gap-y-2", children: [
|
|
4583
|
+
/* @__PURE__ */ jsxs32(
|
|
4531
4584
|
"p",
|
|
4532
4585
|
{
|
|
4533
4586
|
className: "min-h-8 leading-none text-xs text-muted-foreground",
|
|
@@ -4549,7 +4602,7 @@ function DataTable({
|
|
|
4549
4602
|
|
|
4550
4603
|
// src/components/list/List.tsx
|
|
4551
4604
|
import * as React48 from "react";
|
|
4552
|
-
import { Fragment as Fragment9, jsx as jsx48, jsxs as
|
|
4605
|
+
import { Fragment as Fragment9, jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4553
4606
|
var ListDensityContext = React48.createContext("default");
|
|
4554
4607
|
var List = React48.forwardRef(
|
|
4555
4608
|
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */ jsx48(ListDensityContext.Provider, { value: size, children: /* @__PURE__ */ jsx48(
|
|
@@ -4578,9 +4631,9 @@ var ListItem = React48.forwardRef(
|
|
|
4578
4631
|
disabled && "opacity-50",
|
|
4579
4632
|
className
|
|
4580
4633
|
);
|
|
4581
|
-
const body = /* @__PURE__ */
|
|
4634
|
+
const body = /* @__PURE__ */ jsxs33(Fragment9, { children: [
|
|
4582
4635
|
leading && /* @__PURE__ */ jsx48("span", { className: "flex shrink-0 items-center", children: leading }),
|
|
4583
|
-
/* @__PURE__ */
|
|
4636
|
+
/* @__PURE__ */ jsxs33("span", { className: "min-w-0 flex-1", children: [
|
|
4584
4637
|
/* @__PURE__ */ jsx48("span", { className: "block truncate", children }),
|
|
4585
4638
|
description && /* @__PURE__ */ jsx48("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: description })
|
|
4586
4639
|
] }),
|
|
@@ -4595,7 +4648,7 @@ ListItem.displayName = "ListItem";
|
|
|
4595
4648
|
import * as React49 from "react";
|
|
4596
4649
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
4597
4650
|
import { cva as cva7 } from "class-variance-authority";
|
|
4598
|
-
import { Fragment as Fragment10, jsx as jsx49, jsxs as
|
|
4651
|
+
import { Fragment as Fragment10, jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4599
4652
|
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
4653
|
variants: {
|
|
4601
4654
|
variant: {
|
|
@@ -4626,7 +4679,7 @@ var Link = React49.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4626
4679
|
}
|
|
4627
4680
|
);
|
|
4628
4681
|
}
|
|
4629
|
-
return /* @__PURE__ */
|
|
4682
|
+
return /* @__PURE__ */ jsxs34(
|
|
4630
4683
|
Comp,
|
|
4631
4684
|
{
|
|
4632
4685
|
ref,
|
|
@@ -4636,7 +4689,7 @@ var Link = React49.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4636
4689
|
...props,
|
|
4637
4690
|
children: [
|
|
4638
4691
|
children,
|
|
4639
|
-
isExternal && variant !== "muted" && /* @__PURE__ */
|
|
4692
|
+
isExternal && variant !== "muted" && /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
4640
4693
|
/* @__PURE__ */ jsx49("span", { "aria-hidden": "true", className: "text-[0.75em]", children: "\u2197" }),
|
|
4641
4694
|
/* @__PURE__ */ jsx49("span", { className: "sr-only", children: "(opens in a new tab)" })
|
|
4642
4695
|
] })
|
|
@@ -4765,7 +4818,7 @@ Heading.displayName = "Heading";
|
|
|
4765
4818
|
|
|
4766
4819
|
// src/components/empty-state/EmptyState.tsx
|
|
4767
4820
|
import * as React53 from "react";
|
|
4768
|
-
import { jsx as jsx53, jsxs as
|
|
4821
|
+
import { jsx as jsx53, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4769
4822
|
function isActionObject(value) {
|
|
4770
4823
|
return typeof value === "object" && value !== null && !React53.isValidElement(value) && "label" in value;
|
|
4771
4824
|
}
|
|
@@ -4791,7 +4844,7 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
4791
4844
|
...props
|
|
4792
4845
|
}, ref) {
|
|
4793
4846
|
const primaryAction = renderAction(action) ?? actions;
|
|
4794
|
-
return /* @__PURE__ */
|
|
4847
|
+
return /* @__PURE__ */ jsxs35(
|
|
4795
4848
|
"div",
|
|
4796
4849
|
{
|
|
4797
4850
|
ref,
|
|
@@ -4806,7 +4859,7 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
4806
4859
|
/* @__PURE__ */ jsx53(Title, { className: cn("font-semibold", size === "md" ? "text-base" : "text-sm"), children: title }),
|
|
4807
4860
|
description && /* @__PURE__ */ jsx53("p", { className: "max-w-sm text-sm text-muted-foreground", children: description }),
|
|
4808
4861
|
children,
|
|
4809
|
-
(primaryAction || secondaryAction) && /* @__PURE__ */
|
|
4862
|
+
(primaryAction || secondaryAction) && /* @__PURE__ */ jsxs35("div", { className: "mt-1 flex flex-wrap items-center justify-center gap-2", children: [
|
|
4810
4863
|
primaryAction,
|
|
4811
4864
|
secondaryAction
|
|
4812
4865
|
] })
|
|
@@ -4817,7 +4870,7 @@ var EmptyState = React53.forwardRef(function EmptyState2({
|
|
|
4817
4870
|
|
|
4818
4871
|
// src/components/page-header/PageHeader.tsx
|
|
4819
4872
|
import * as React54 from "react";
|
|
4820
|
-
import { jsx as jsx54, jsxs as
|
|
4873
|
+
import { jsx as jsx54, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4821
4874
|
var sizeClasses6 = {
|
|
4822
4875
|
sm: "text-xl",
|
|
4823
4876
|
md: "text-2xl",
|
|
@@ -4826,11 +4879,11 @@ var sizeClasses6 = {
|
|
|
4826
4879
|
};
|
|
4827
4880
|
var PageHeader = React54.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
4828
4881
|
const supporting = description ?? subtitle;
|
|
4829
|
-
return /* @__PURE__ */
|
|
4882
|
+
return /* @__PURE__ */ jsxs36("div", { ref, className: cn("flex flex-col gap-2", align === "center" && "items-center text-center", className), ...props, children: [
|
|
4830
4883
|
breadcrumbs && /* @__PURE__ */ jsx54("div", { className: "text-sm text-muted-foreground", children: breadcrumbs }),
|
|
4831
4884
|
eyebrow && /* @__PURE__ */ jsx54("div", { className: cn("text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
4832
|
-
/* @__PURE__ */
|
|
4833
|
-
/* @__PURE__ */
|
|
4885
|
+
/* @__PURE__ */ jsxs36("div", { className: cn("flex w-full flex-wrap items-start justify-between gap-3", align === "center" && "justify-center"), children: [
|
|
4886
|
+
/* @__PURE__ */ jsxs36("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4834
4887
|
/* @__PURE__ */ jsx54("h1", { className: cn("font-semibold tracking-tight", sizeClasses6[size], titleClassName), children: title }),
|
|
4835
4888
|
supporting && /* @__PURE__ */ jsx54("p", { className: cn("mt-2 max-w-2xl text-base text-muted-foreground", descriptionClassName), children: supporting })
|
|
4836
4889
|
] }),
|
|
@@ -4857,7 +4910,7 @@ function documentHead({
|
|
|
4857
4910
|
|
|
4858
4911
|
// src/components/section-heading/SectionHeading.tsx
|
|
4859
4912
|
import * as React55 from "react";
|
|
4860
|
-
import { jsx as jsx55, jsxs as
|
|
4913
|
+
import { jsx as jsx55, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4861
4914
|
var sizeClasses7 = {
|
|
4862
4915
|
sm: "text-lg",
|
|
4863
4916
|
md: "text-2xl",
|
|
@@ -4865,7 +4918,7 @@ var sizeClasses7 = {
|
|
|
4865
4918
|
};
|
|
4866
4919
|
var SectionHeading = React55.forwardRef(function SectionHeading2({ title, description, eyebrow, actions, level = 2, align = "left", size = "md", titleClassName, descriptionClassName, eyebrowClassName, className, ...props }, ref) {
|
|
4867
4920
|
const Heading2 = `h${level}`;
|
|
4868
|
-
return /* @__PURE__ */
|
|
4921
|
+
return /* @__PURE__ */ jsxs37(
|
|
4869
4922
|
"div",
|
|
4870
4923
|
{
|
|
4871
4924
|
ref,
|
|
@@ -4876,7 +4929,7 @@ var SectionHeading = React55.forwardRef(function SectionHeading2({ title, descri
|
|
|
4876
4929
|
),
|
|
4877
4930
|
...props,
|
|
4878
4931
|
children: [
|
|
4879
|
-
/* @__PURE__ */
|
|
4932
|
+
/* @__PURE__ */ jsxs37("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4880
4933
|
eyebrow && /* @__PURE__ */ jsx55("div", { className: cn("mb-1 text-xs font-medium uppercase tracking-wide text-primary-ink", eyebrowClassName), children: eyebrow }),
|
|
4881
4934
|
/* @__PURE__ */ jsx55(Heading2, { className: cn("font-semibold tracking-tight", sizeClasses7[size], titleClassName), children: title }),
|
|
4882
4935
|
description && /* @__PURE__ */ jsx55("p", { className: cn("mt-2 max-w-2xl text-muted-foreground", align === "center" ? "mx-auto" : "", descriptionClassName), children: description })
|
|
@@ -4889,7 +4942,7 @@ var SectionHeading = React55.forwardRef(function SectionHeading2({ title, descri
|
|
|
4889
4942
|
|
|
4890
4943
|
// src/components/metric-card/MetricCard.tsx
|
|
4891
4944
|
import * as React56 from "react";
|
|
4892
|
-
import { jsx as jsx56, jsxs as
|
|
4945
|
+
import { jsx as jsx56, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4893
4946
|
var trendClasses = {
|
|
4894
4947
|
up: "text-success",
|
|
4895
4948
|
down: "text-destructive",
|
|
@@ -4906,7 +4959,7 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
4906
4959
|
const heading = label ?? title;
|
|
4907
4960
|
const supporting = hint ?? description;
|
|
4908
4961
|
if (loading) {
|
|
4909
|
-
return /* @__PURE__ */
|
|
4962
|
+
return /* @__PURE__ */ jsxs38(
|
|
4910
4963
|
"div",
|
|
4911
4964
|
{
|
|
4912
4965
|
ref,
|
|
@@ -4914,7 +4967,7 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
4914
4967
|
className: cn("rounded-xl border border-border bg-card p-5", className),
|
|
4915
4968
|
...props,
|
|
4916
4969
|
children: [
|
|
4917
|
-
/* @__PURE__ */
|
|
4970
|
+
/* @__PURE__ */ jsxs38("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4918
4971
|
heading && /* @__PURE__ */ jsx56("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
4919
4972
|
icon && /* @__PURE__ */ jsx56("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4920
4973
|
] }),
|
|
@@ -4924,14 +4977,14 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
4924
4977
|
}
|
|
4925
4978
|
);
|
|
4926
4979
|
}
|
|
4927
|
-
return /* @__PURE__ */
|
|
4928
|
-
/* @__PURE__ */
|
|
4980
|
+
return /* @__PURE__ */ jsxs38("div", { ref, className: cn("rounded-xl border border-border bg-card p-5", className), ...props, children: [
|
|
4981
|
+
/* @__PURE__ */ jsxs38("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4929
4982
|
heading && /* @__PURE__ */ jsx56("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
4930
4983
|
icon && /* @__PURE__ */ jsx56("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4931
4984
|
] }),
|
|
4932
4985
|
/* @__PURE__ */ jsx56("p", { className: cn("mt-2 text-2xl font-semibold tabular-nums", toneClasses[tone]), children: value }),
|
|
4933
|
-
(delta || supporting) && /* @__PURE__ */
|
|
4934
|
-
delta && /* @__PURE__ */
|
|
4986
|
+
(delta || supporting) && /* @__PURE__ */ jsxs38("p", { className: "mt-1 flex items-center gap-2 text-sm", children: [
|
|
4987
|
+
delta && /* @__PURE__ */ jsxs38("span", { className: cn("font-medium tabular-nums", trendClasses[trend]), children: [
|
|
4935
4988
|
/* @__PURE__ */ jsx56("span", { "aria-hidden": "true", children: trendGlyph[trend] }),
|
|
4936
4989
|
" ",
|
|
4937
4990
|
delta
|
|
@@ -4943,10 +4996,10 @@ var MetricCard = React56.forwardRef(function MetricCard2({ label, value, hint, t
|
|
|
4943
4996
|
|
|
4944
4997
|
// src/components/password-input/PasswordInput.tsx
|
|
4945
4998
|
import * as React57 from "react";
|
|
4946
|
-
import { jsx as jsx57, jsxs as
|
|
4999
|
+
import { jsx as jsx57, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
4947
5000
|
var PasswordInput = React57.forwardRef(function PasswordInput2({ className, showLabel = "Show password", hideLabel = "Hide password", ...props }, ref) {
|
|
4948
5001
|
const [visible, setVisible] = React57.useState(false);
|
|
4949
|
-
return /* @__PURE__ */
|
|
5002
|
+
return /* @__PURE__ */ jsxs39("div", { className: cn("relative flex items-center", className), children: [
|
|
4950
5003
|
/* @__PURE__ */ jsx57(Input, { ref, type: visible ? "text" : "password", className: "pr-24", ...props }),
|
|
4951
5004
|
/* @__PURE__ */ jsx57(
|
|
4952
5005
|
Button,
|
|
@@ -4966,7 +5019,7 @@ var PasswordInput = React57.forwardRef(function PasswordInput2({ className, show
|
|
|
4966
5019
|
|
|
4967
5020
|
// src/components/auth-layout/AuthLayout.tsx
|
|
4968
5021
|
import * as React58 from "react";
|
|
4969
|
-
import { jsx as jsx58, jsxs as
|
|
5022
|
+
import { jsx as jsx58, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
4970
5023
|
var sizeClasses8 = {
|
|
4971
5024
|
sm: "max-w-sm",
|
|
4972
5025
|
md: "max-w-md",
|
|
@@ -4991,7 +5044,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
4991
5044
|
const supporting = description ?? subtitle;
|
|
4992
5045
|
const mark = brand ?? logo;
|
|
4993
5046
|
const widthStyle = maxWidth === void 0 ? void 0 : { maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth };
|
|
4994
|
-
const form = /* @__PURE__ */
|
|
5047
|
+
const form = /* @__PURE__ */ jsxs40(
|
|
4995
5048
|
"div",
|
|
4996
5049
|
{
|
|
4997
5050
|
className: cn(
|
|
@@ -5001,7 +5054,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5001
5054
|
style: widthStyle,
|
|
5002
5055
|
children: [
|
|
5003
5056
|
mark && /* @__PURE__ */ jsx58("div", { className: "mb-6", children: mark }),
|
|
5004
|
-
/* @__PURE__ */
|
|
5057
|
+
/* @__PURE__ */ jsxs40(
|
|
5005
5058
|
"div",
|
|
5006
5059
|
{
|
|
5007
5060
|
className: cn(
|
|
@@ -5027,7 +5080,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5027
5080
|
ref,
|
|
5028
5081
|
className: cn("min-h-screen bg-muted/30 px-4 py-12 lg:px-8", className),
|
|
5029
5082
|
...props,
|
|
5030
|
-
children: /* @__PURE__ */
|
|
5083
|
+
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
5084
|
form,
|
|
5032
5085
|
/* @__PURE__ */ jsx58("aside", { className: "w-full", children: aside })
|
|
5033
5086
|
] })
|
|
@@ -5050,7 +5103,7 @@ var AuthLayout = React58.forwardRef(function AuthLayout2({
|
|
|
5050
5103
|
|
|
5051
5104
|
// src/components/filter-bar/FilterBar.tsx
|
|
5052
5105
|
import * as React59 from "react";
|
|
5053
|
-
import { jsx as jsx59, jsxs as
|
|
5106
|
+
import { jsx as jsx59, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
5054
5107
|
var FilterBar = React59.forwardRef(function FilterBar2({
|
|
5055
5108
|
searchValue,
|
|
5056
5109
|
onSearchChange,
|
|
@@ -5066,7 +5119,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5066
5119
|
children,
|
|
5067
5120
|
...props
|
|
5068
5121
|
}, ref) {
|
|
5069
|
-
return /* @__PURE__ */
|
|
5122
|
+
return /* @__PURE__ */ jsxs41(
|
|
5070
5123
|
"div",
|
|
5071
5124
|
{
|
|
5072
5125
|
ref,
|
|
@@ -5089,15 +5142,15 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5089
5142
|
}
|
|
5090
5143
|
),
|
|
5091
5144
|
/* @__PURE__ */ jsx59("div", { className: "flex flex-wrap items-center gap-2", children }),
|
|
5092
|
-
onOpenFilters && /* @__PURE__ */
|
|
5145
|
+
onOpenFilters && /* @__PURE__ */ jsxs41(Button, { type: "button", variant: "outline", size: "sm", onClick: onOpenFilters, children: [
|
|
5093
5146
|
filtersLabel,
|
|
5094
5147
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
5095
5148
|
] }),
|
|
5096
|
-
onReset && /* @__PURE__ */
|
|
5149
|
+
onReset && /* @__PURE__ */ jsxs41(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, children: [
|
|
5097
5150
|
"Reset",
|
|
5098
5151
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
5099
5152
|
] }),
|
|
5100
|
-
resultsCount !== void 0 && /* @__PURE__ */
|
|
5153
|
+
resultsCount !== void 0 && /* @__PURE__ */ jsxs41("span", { className: "ml-auto text-sm text-muted-foreground", children: [
|
|
5101
5154
|
resultsCount,
|
|
5102
5155
|
" ",
|
|
5103
5156
|
resultsLabel
|
|
@@ -5110,7 +5163,7 @@ var FilterBar = React59.forwardRef(function FilterBar2({
|
|
|
5110
5163
|
|
|
5111
5164
|
// src/components/date-picker/DatePicker.tsx
|
|
5112
5165
|
import * as React60 from "react";
|
|
5113
|
-
import { jsx as jsx60, jsxs as
|
|
5166
|
+
import { jsx as jsx60, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
5114
5167
|
var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
5115
5168
|
const [internal, setInternal] = React60.useState(defaultValue ?? "");
|
|
5116
5169
|
const current = value ?? internal;
|
|
@@ -5118,7 +5171,7 @@ var DatePicker = React60.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
5118
5171
|
if (value === void 0) setInternal(next);
|
|
5119
5172
|
onValueChange?.(next);
|
|
5120
5173
|
};
|
|
5121
|
-
return /* @__PURE__ */
|
|
5174
|
+
return /* @__PURE__ */ jsxs42("div", { className: cn("relative flex items-center", className), children: [
|
|
5122
5175
|
/* @__PURE__ */ jsx60(
|
|
5123
5176
|
Input,
|
|
5124
5177
|
{
|
|
@@ -5456,7 +5509,7 @@ var PopoverContent = React61.forwardRef(
|
|
|
5456
5509
|
PopoverContent.displayName = "PopoverContent";
|
|
5457
5510
|
|
|
5458
5511
|
// src/components/date-picker-popover/DatePickerPopover.tsx
|
|
5459
|
-
import { Fragment as Fragment12, jsx as jsx62, jsxs as
|
|
5512
|
+
import { Fragment as Fragment12, jsx as jsx62, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
5460
5513
|
var DatePickerPopover = React62.forwardRef(
|
|
5461
5514
|
({
|
|
5462
5515
|
value,
|
|
@@ -5489,8 +5542,8 @@ var DatePickerPopover = React62.forwardRef(
|
|
|
5489
5542
|
[ref]
|
|
5490
5543
|
);
|
|
5491
5544
|
const label = value ? formatDateLabel(value, locale) : placeholder;
|
|
5492
|
-
return /* @__PURE__ */
|
|
5493
|
-
/* @__PURE__ */
|
|
5545
|
+
return /* @__PURE__ */ jsxs43(Fragment12, { children: [
|
|
5546
|
+
/* @__PURE__ */ jsxs43(Popover, { open, onOpenChange: setOpen, children: [
|
|
5494
5547
|
/* @__PURE__ */ jsx62(
|
|
5495
5548
|
PopoverTrigger,
|
|
5496
5549
|
{
|
|
@@ -5535,7 +5588,7 @@ DatePickerPopover.displayName = "DatePickerPopover";
|
|
|
5535
5588
|
|
|
5536
5589
|
// src/components/time-picker/TimePicker.tsx
|
|
5537
5590
|
import * as React63 from "react";
|
|
5538
|
-
import { jsx as jsx63, jsxs as
|
|
5591
|
+
import { jsx as jsx63, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
5539
5592
|
var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
5540
5593
|
const [internal, setInternal] = React63.useState(defaultValue ?? "");
|
|
5541
5594
|
const current = value ?? internal;
|
|
@@ -5543,7 +5596,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5543
5596
|
if (value === void 0) setInternal(next);
|
|
5544
5597
|
onValueChange?.(next);
|
|
5545
5598
|
};
|
|
5546
|
-
return /* @__PURE__ */
|
|
5599
|
+
return /* @__PURE__ */ jsxs44("div", { className: cn("relative flex items-center", className), children: [
|
|
5547
5600
|
/* @__PURE__ */ jsx63(
|
|
5548
5601
|
Input,
|
|
5549
5602
|
{
|
|
@@ -5573,7 +5626,7 @@ var TimePicker = React63.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
5573
5626
|
|
|
5574
5627
|
// src/components/stepper/Stepper.tsx
|
|
5575
5628
|
import * as React64 from "react";
|
|
5576
|
-
import { Fragment as Fragment13, jsx as jsx64, jsxs as
|
|
5629
|
+
import { Fragment as Fragment13, jsx as jsx64, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
5577
5630
|
var Stepper = React64.forwardRef(function Stepper2({
|
|
5578
5631
|
steps,
|
|
5579
5632
|
current,
|
|
@@ -5633,7 +5686,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5633
5686
|
children: variant === "numbered" ? state === "complete" ? "\u2713" : index + 1 : null
|
|
5634
5687
|
}
|
|
5635
5688
|
);
|
|
5636
|
-
const label = /* @__PURE__ */
|
|
5689
|
+
const label = /* @__PURE__ */ jsxs45("span", { className: "min-w-0", children: [
|
|
5637
5690
|
/* @__PURE__ */ jsx64(
|
|
5638
5691
|
"span",
|
|
5639
5692
|
{
|
|
@@ -5671,8 +5724,8 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5671
5724
|
) : /* @__PURE__ */ jsx64("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
5672
5725
|
if (vertical) {
|
|
5673
5726
|
return /* @__PURE__ */ jsx64("li", { className: "flex", children: renderRow(
|
|
5674
|
-
/* @__PURE__ */
|
|
5675
|
-
/* @__PURE__ */
|
|
5727
|
+
/* @__PURE__ */ jsxs45(Fragment13, { children: [
|
|
5728
|
+
/* @__PURE__ */ jsxs45("div", { className: "flex flex-col items-center", children: [
|
|
5676
5729
|
marker,
|
|
5677
5730
|
!isLast && /* @__PURE__ */ jsx64("span", { "aria-hidden": "true", className: "my-1 w-px flex-1 rounded-full bg-border" })
|
|
5678
5731
|
] }),
|
|
@@ -5682,9 +5735,9 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5682
5735
|
) }, step.label);
|
|
5683
5736
|
}
|
|
5684
5737
|
if (below) {
|
|
5685
|
-
return /* @__PURE__ */
|
|
5738
|
+
return /* @__PURE__ */ jsxs45("li", { className: "flex min-w-0 flex-1 items-start gap-2", children: [
|
|
5686
5739
|
renderRow(
|
|
5687
|
-
/* @__PURE__ */
|
|
5740
|
+
/* @__PURE__ */ jsxs45(Fragment13, { children: [
|
|
5688
5741
|
marker,
|
|
5689
5742
|
label
|
|
5690
5743
|
] }),
|
|
@@ -5699,9 +5752,9 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5699
5752
|
)
|
|
5700
5753
|
] }, step.label);
|
|
5701
5754
|
}
|
|
5702
|
-
return /* @__PURE__ */
|
|
5755
|
+
return /* @__PURE__ */ jsxs45("li", { className: "flex min-w-0 items-start gap-2", children: [
|
|
5703
5756
|
renderRow(
|
|
5704
|
-
/* @__PURE__ */
|
|
5757
|
+
/* @__PURE__ */ jsxs45(Fragment13, { children: [
|
|
5705
5758
|
marker,
|
|
5706
5759
|
label
|
|
5707
5760
|
] }),
|
|
@@ -5722,7 +5775,7 @@ var Stepper = React64.forwardRef(function Stepper2({
|
|
|
5722
5775
|
|
|
5723
5776
|
// src/components/file-upload/FileUpload.tsx
|
|
5724
5777
|
import * as React65 from "react";
|
|
5725
|
-
import { jsx as jsx65, jsxs as
|
|
5778
|
+
import { jsx as jsx65, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
5726
5779
|
function formatSize(bytes) {
|
|
5727
5780
|
if (bytes < 1024) return `${bytes} B`;
|
|
5728
5781
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -5769,8 +5822,8 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5769
5822
|
const list = Array.from(incoming);
|
|
5770
5823
|
commit(multiple ? [...current, ...list] : list.slice(0, 1));
|
|
5771
5824
|
};
|
|
5772
|
-
return /* @__PURE__ */
|
|
5773
|
-
/* @__PURE__ */
|
|
5825
|
+
return /* @__PURE__ */ jsxs46("div", { className: cn("flex flex-col gap-3", className), children: [
|
|
5826
|
+
/* @__PURE__ */ jsxs46(
|
|
5774
5827
|
"div",
|
|
5775
5828
|
{
|
|
5776
5829
|
onDragOver: (event) => {
|
|
@@ -5791,7 +5844,7 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5791
5844
|
disabled && "opacity-50"
|
|
5792
5845
|
),
|
|
5793
5846
|
children: [
|
|
5794
|
-
/* @__PURE__ */
|
|
5847
|
+
/* @__PURE__ */ jsxs46("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
5795
5848
|
label,
|
|
5796
5849
|
/* @__PURE__ */ jsx65(
|
|
5797
5850
|
"input",
|
|
@@ -5815,8 +5868,8 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5815
5868
|
]
|
|
5816
5869
|
}
|
|
5817
5870
|
),
|
|
5818
|
-
current.length > 0 && /* @__PURE__ */ jsx65("ul", { "aria-label": selectedFilesLabel, className: "space-y-2", children: current.map((file) => /* @__PURE__ */
|
|
5819
|
-
/* @__PURE__ */
|
|
5871
|
+
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: [
|
|
5872
|
+
/* @__PURE__ */ jsxs46("div", { className: "min-w-0", children: [
|
|
5820
5873
|
/* @__PURE__ */ jsx65("p", { className: "truncate text-sm", children: file.name }),
|
|
5821
5874
|
/* @__PURE__ */ jsx65("p", { className: "text-xs text-muted-foreground", children: formatSize(file.size) }),
|
|
5822
5875
|
progress?.[file.name] !== void 0 && /* @__PURE__ */ jsx65(
|
|
@@ -5848,9 +5901,9 @@ var FileUpload = React65.forwardRef(function FileUpload2({
|
|
|
5848
5901
|
|
|
5849
5902
|
// src/components/timeline/Timeline.tsx
|
|
5850
5903
|
import * as React66 from "react";
|
|
5851
|
-
import { jsx as jsx66, jsxs as
|
|
5904
|
+
import { jsx as jsx66, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
5852
5905
|
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__ */
|
|
5906
|
+
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
5907
|
index < items.length - 1 && /* @__PURE__ */ jsx66(
|
|
5855
5908
|
"span",
|
|
5856
5909
|
{
|
|
@@ -5868,7 +5921,7 @@ var Timeline = React66.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
5868
5921
|
)
|
|
5869
5922
|
}
|
|
5870
5923
|
) }),
|
|
5871
|
-
/* @__PURE__ */
|
|
5924
|
+
/* @__PURE__ */ jsxs47("div", { className: "min-w-0 pb-1", children: [
|
|
5872
5925
|
item.period && /* @__PURE__ */ jsx66("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
|
|
5873
5926
|
/* @__PURE__ */ jsx66("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
|
|
5874
5927
|
item.description && /* @__PURE__ */ jsx66("p", { className: "mt-1 text-sm text-muted-foreground", children: item.description }),
|
|
@@ -6180,7 +6233,7 @@ var Section = React71.forwardRef(function Section2({
|
|
|
6180
6233
|
|
|
6181
6234
|
// src/components/hero/Hero.tsx
|
|
6182
6235
|
import * as React72 from "react";
|
|
6183
|
-
import { jsx as jsx72, jsxs as
|
|
6236
|
+
import { jsx as jsx72, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
6184
6237
|
var titleSizes = {
|
|
6185
6238
|
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
6186
6239
|
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
@@ -6211,7 +6264,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6211
6264
|
const Heading2 = `h${level}`;
|
|
6212
6265
|
const centered = layout === "centered" || align === "center";
|
|
6213
6266
|
const overlay = layout === "overlay";
|
|
6214
|
-
const copy = /* @__PURE__ */
|
|
6267
|
+
const copy = /* @__PURE__ */ jsxs48(
|
|
6215
6268
|
"div",
|
|
6216
6269
|
{
|
|
6217
6270
|
className: cn(
|
|
@@ -6280,7 +6333,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6280
6333
|
}
|
|
6281
6334
|
);
|
|
6282
6335
|
if (overlay) {
|
|
6283
|
-
return /* @__PURE__ */
|
|
6336
|
+
return /* @__PURE__ */ jsxs48(
|
|
6284
6337
|
Tag,
|
|
6285
6338
|
{
|
|
6286
6339
|
ref,
|
|
@@ -6307,13 +6360,13 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6307
6360
|
);
|
|
6308
6361
|
}
|
|
6309
6362
|
if (layout === "centered") {
|
|
6310
|
-
return /* @__PURE__ */
|
|
6363
|
+
return /* @__PURE__ */ jsxs48(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
6311
6364
|
copy,
|
|
6312
6365
|
media && /* @__PURE__ */ jsx72("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
6313
6366
|
] });
|
|
6314
6367
|
}
|
|
6315
6368
|
if (layout === "stacked") {
|
|
6316
|
-
return /* @__PURE__ */
|
|
6369
|
+
return /* @__PURE__ */ jsxs48(
|
|
6317
6370
|
Tag,
|
|
6318
6371
|
{
|
|
6319
6372
|
ref,
|
|
@@ -6326,7 +6379,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6326
6379
|
}
|
|
6327
6380
|
);
|
|
6328
6381
|
}
|
|
6329
|
-
return /* @__PURE__ */
|
|
6382
|
+
return /* @__PURE__ */ jsxs48(
|
|
6330
6383
|
Tag,
|
|
6331
6384
|
{
|
|
6332
6385
|
ref,
|
|
@@ -6342,7 +6395,7 @@ var Hero = React72.forwardRef(function Hero2({
|
|
|
6342
6395
|
|
|
6343
6396
|
// src/components/stat-band/StatBand.tsx
|
|
6344
6397
|
import * as React73 from "react";
|
|
6345
|
-
import { jsx as jsx73, jsxs as
|
|
6398
|
+
import { jsx as jsx73, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
6346
6399
|
var columnClasses = {
|
|
6347
6400
|
2: "sm:grid-cols-2",
|
|
6348
6401
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6365,7 +6418,7 @@ var StatBand = React73.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
6365
6418
|
className
|
|
6366
6419
|
),
|
|
6367
6420
|
...props,
|
|
6368
|
-
children: items.map((item) => /* @__PURE__ */
|
|
6421
|
+
children: items.map((item) => /* @__PURE__ */ jsxs49(
|
|
6369
6422
|
"div",
|
|
6370
6423
|
{
|
|
6371
6424
|
className: cn(
|
|
@@ -6373,7 +6426,7 @@ var StatBand = React73.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
6373
6426
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
6374
6427
|
),
|
|
6375
6428
|
children: [
|
|
6376
|
-
/* @__PURE__ */
|
|
6429
|
+
/* @__PURE__ */ jsxs49("dt", { className: "order-2 text-sm font-medium text-muted-foreground", children: [
|
|
6377
6430
|
item.label,
|
|
6378
6431
|
item.hint && /* @__PURE__ */ jsx73("span", { className: "mt-1 block text-xs font-normal", children: item.hint })
|
|
6379
6432
|
] }),
|
|
@@ -6388,7 +6441,7 @@ var StatBand = React73.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
6388
6441
|
|
|
6389
6442
|
// src/components/cta-section/CTASection.tsx
|
|
6390
6443
|
import * as React74 from "react";
|
|
6391
|
-
import { jsx as jsx74, jsxs as
|
|
6444
|
+
import { jsx as jsx74, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
6392
6445
|
var sizePadding = {
|
|
6393
6446
|
sm: "md",
|
|
6394
6447
|
md: "lg",
|
|
@@ -6415,7 +6468,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6415
6468
|
width,
|
|
6416
6469
|
className,
|
|
6417
6470
|
...props,
|
|
6418
|
-
children: /* @__PURE__ */
|
|
6471
|
+
children: /* @__PURE__ */ jsxs50(
|
|
6419
6472
|
"div",
|
|
6420
6473
|
{
|
|
6421
6474
|
className: cn(
|
|
@@ -6436,7 +6489,7 @@ var CTASection = React74.forwardRef(function CTASection2({
|
|
|
6436
6489
|
|
|
6437
6490
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
6438
6491
|
import * as React75 from "react";
|
|
6439
|
-
import { Fragment as Fragment14, jsx as jsx75, jsxs as
|
|
6492
|
+
import { Fragment as Fragment14, jsx as jsx75, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
6440
6493
|
function CheckMark() {
|
|
6441
6494
|
return /* @__PURE__ */ jsx75(
|
|
6442
6495
|
"svg",
|
|
@@ -6480,9 +6533,9 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6480
6533
|
}, ref) {
|
|
6481
6534
|
const yes = valueLabels?.yes ?? "Included";
|
|
6482
6535
|
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__ */
|
|
6536
|
+
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
6537
|
/* @__PURE__ */ jsx75("caption", { className: "sr-only", children: caption }),
|
|
6485
|
-
/* @__PURE__ */ jsx75("thead", { children: /* @__PURE__ */
|
|
6538
|
+
/* @__PURE__ */ jsx75("thead", { children: /* @__PURE__ */ jsxs51("tr", { className: "border-b border-border", children: [
|
|
6486
6539
|
/* @__PURE__ */ jsx75("th", { scope: "col", className: "min-w-48 px-5 py-4 text-left font-medium text-muted-foreground", children: featureLabel }),
|
|
6487
6540
|
columns.map((column) => /* @__PURE__ */ jsx75(
|
|
6488
6541
|
"th",
|
|
@@ -6497,8 +6550,8 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6497
6550
|
column.label
|
|
6498
6551
|
))
|
|
6499
6552
|
] }) }),
|
|
6500
|
-
/* @__PURE__ */ jsx75("tbody", { children: rows.map((row) => /* @__PURE__ */
|
|
6501
|
-
/* @__PURE__ */
|
|
6553
|
+
/* @__PURE__ */ jsx75("tbody", { children: rows.map((row) => /* @__PURE__ */ jsxs51("tr", { className: "border-b border-border last:border-b-0", children: [
|
|
6554
|
+
/* @__PURE__ */ jsxs51("th", { scope: "row", className: "px-5 py-4 text-left font-medium", children: [
|
|
6502
6555
|
row.feature,
|
|
6503
6556
|
row.hint && /* @__PURE__ */ jsx75("span", { className: "mt-1 block text-xs font-normal text-muted-foreground", children: row.hint })
|
|
6504
6557
|
] }),
|
|
@@ -6508,7 +6561,7 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6508
6561
|
"td",
|
|
6509
6562
|
{
|
|
6510
6563
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
6511
|
-
children: typeof value === "boolean" ? /* @__PURE__ */
|
|
6564
|
+
children: typeof value === "boolean" ? /* @__PURE__ */ jsxs51(Fragment14, { children: [
|
|
6512
6565
|
value ? /* @__PURE__ */ jsx75(CheckMark, {}) : /* @__PURE__ */ jsx75(DashMark, {}),
|
|
6513
6566
|
/* @__PURE__ */ jsx75("span", { className: "sr-only", children: value ? yes : no })
|
|
6514
6567
|
] }) : /* @__PURE__ */ jsx75("span", { children: value ?? "" })
|
|
@@ -6523,7 +6576,7 @@ var ComparisonTable = React75.forwardRef(
|
|
|
6523
6576
|
|
|
6524
6577
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
6525
6578
|
import * as React76 from "react";
|
|
6526
|
-
import { Fragment as Fragment15, jsx as jsx76, jsxs as
|
|
6579
|
+
import { Fragment as Fragment15, jsx as jsx76, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
6527
6580
|
var columnClasses2 = {
|
|
6528
6581
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
6529
6582
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -6553,7 +6606,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6553
6606
|
sizeClasses9[size],
|
|
6554
6607
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
6555
6608
|
);
|
|
6556
|
-
return /* @__PURE__ */
|
|
6609
|
+
return /* @__PURE__ */ jsxs52("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6557
6610
|
caption && /* @__PURE__ */ jsx76(
|
|
6558
6611
|
"p",
|
|
6559
6612
|
{
|
|
@@ -6565,7 +6618,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6565
6618
|
}
|
|
6566
6619
|
),
|
|
6567
6620
|
/* @__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__ */
|
|
6621
|
+
const content = /* @__PURE__ */ jsxs52(Fragment15, { children: [
|
|
6569
6622
|
/* @__PURE__ */ jsx76("span", { className: logoClass, "aria-hidden": "true", children: item.logo }),
|
|
6570
6623
|
/* @__PURE__ */ jsx76("span", { className: "sr-only", children: item.name })
|
|
6571
6624
|
] });
|
|
@@ -6583,7 +6636,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6583
6636
|
|
|
6584
6637
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
6585
6638
|
import * as React77 from "react";
|
|
6586
|
-
import { Fragment as Fragment16, jsx as jsx77, jsxs as
|
|
6639
|
+
import { Fragment as Fragment16, jsx as jsx77, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
6587
6640
|
var columnClasses3 = {
|
|
6588
6641
|
2: "sm:grid-cols-2",
|
|
6589
6642
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6596,11 +6649,11 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6596
6649
|
variant === "card" && "border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
|
|
6597
6650
|
align === "center" && "items-center text-center"
|
|
6598
6651
|
);
|
|
6599
|
-
const content = (feature) => /* @__PURE__ */
|
|
6652
|
+
const content = (feature) => /* @__PURE__ */ jsxs53(Fragment16, { children: [
|
|
6600
6653
|
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
6654
|
/* @__PURE__ */ jsx77("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
6602
6655
|
feature.description && /* @__PURE__ */ jsx77("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
6603
|
-
feature.href && feature.actionLabel && /* @__PURE__ */
|
|
6656
|
+
feature.href && feature.actionLabel && /* @__PURE__ */ jsxs53("span", { className: "mt-auto pt-2 text-sm font-medium text-primary-ink", children: [
|
|
6604
6657
|
feature.actionLabel,
|
|
6605
6658
|
" ",
|
|
6606
6659
|
/* @__PURE__ */ jsx77("span", { "aria-hidden": "true", children: "\u2192" })
|
|
@@ -6611,7 +6664,7 @@ var FeatureGrid = React77.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
6611
6664
|
|
|
6612
6665
|
// src/components/feature-row/FeatureRow.tsx
|
|
6613
6666
|
import * as React78 from "react";
|
|
6614
|
-
import { jsx as jsx78, jsxs as
|
|
6667
|
+
import { jsx as jsx78, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
6615
6668
|
var titleSizes2 = {
|
|
6616
6669
|
md: "text-3xl",
|
|
6617
6670
|
lg: "text-3xl sm:text-4xl"
|
|
@@ -6629,14 +6682,14 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6629
6682
|
...props
|
|
6630
6683
|
}, ref) {
|
|
6631
6684
|
const Heading2 = `h${level}`;
|
|
6632
|
-
return /* @__PURE__ */
|
|
6685
|
+
return /* @__PURE__ */ jsxs54(
|
|
6633
6686
|
"div",
|
|
6634
6687
|
{
|
|
6635
6688
|
ref,
|
|
6636
6689
|
className: cn("grid items-center gap-10 lg:grid-cols-2 lg:gap-16", className),
|
|
6637
6690
|
...props,
|
|
6638
6691
|
children: [
|
|
6639
|
-
/* @__PURE__ */
|
|
6692
|
+
/* @__PURE__ */ jsxs54("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
6640
6693
|
eyebrow && /* @__PURE__ */ jsx78("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6641
6694
|
/* @__PURE__ */ jsx78(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
6642
6695
|
description && /* @__PURE__ */ jsx78("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
@@ -6650,14 +6703,14 @@ var FeatureRow = React78.forwardRef(function FeatureRow2({
|
|
|
6650
6703
|
|
|
6651
6704
|
// src/components/testimonial/Testimonial.tsx
|
|
6652
6705
|
import * as React79 from "react";
|
|
6653
|
-
import { jsx as jsx79, jsxs as
|
|
6706
|
+
import { jsx as jsx79, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
6654
6707
|
var quoteSizes = {
|
|
6655
6708
|
sm: "text-base",
|
|
6656
6709
|
md: "text-lg",
|
|
6657
6710
|
lg: "text-xl sm:text-2xl"
|
|
6658
6711
|
};
|
|
6659
6712
|
var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role, company, avatar, logo, variant = "card", size = "md", className, ...props }, ref) {
|
|
6660
|
-
return /* @__PURE__ */
|
|
6713
|
+
return /* @__PURE__ */ jsxs55(
|
|
6661
6714
|
"figure",
|
|
6662
6715
|
{
|
|
6663
6716
|
ref,
|
|
@@ -6669,14 +6722,14 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6669
6722
|
...props,
|
|
6670
6723
|
children: [
|
|
6671
6724
|
logo && /* @__PURE__ */ jsx79("div", { className: "flex items-center", children: logo }),
|
|
6672
|
-
/* @__PURE__ */ jsx79("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */
|
|
6725
|
+
/* @__PURE__ */ jsx79("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */ jsxs55("p", { children: [
|
|
6673
6726
|
"\u201C",
|
|
6674
6727
|
quote,
|
|
6675
6728
|
"\u201D"
|
|
6676
6729
|
] }) }),
|
|
6677
|
-
/* @__PURE__ */
|
|
6730
|
+
/* @__PURE__ */ jsxs55("figcaption", { className: "flex items-center gap-3", children: [
|
|
6678
6731
|
avatar && /* @__PURE__ */ jsx79("div", { className: "shrink-0", children: avatar }),
|
|
6679
|
-
/* @__PURE__ */
|
|
6732
|
+
/* @__PURE__ */ jsxs55("div", { className: "min-w-0", children: [
|
|
6680
6733
|
/* @__PURE__ */ jsx79("p", { className: "text-sm font-semibold", children: name }),
|
|
6681
6734
|
(role || company) && /* @__PURE__ */ jsx79("p", { className: "text-xs text-muted-foreground", children: [role, company].filter(Boolean).join(", ") })
|
|
6682
6735
|
] })
|
|
@@ -6688,7 +6741,7 @@ var Testimonial = React79.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
6688
6741
|
|
|
6689
6742
|
// src/components/process-steps/ProcessSteps.tsx
|
|
6690
6743
|
import * as React80 from "react";
|
|
6691
|
-
import { jsx as jsx80, jsxs as
|
|
6744
|
+
import { jsx as jsx80, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
6692
6745
|
var columnClasses4 = {
|
|
6693
6746
|
2: "sm:grid-cols-2",
|
|
6694
6747
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -6696,13 +6749,13 @@ var columnClasses4 = {
|
|
|
6696
6749
|
};
|
|
6697
6750
|
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", headingLevel = 3, className, ...props }, ref) {
|
|
6698
6751
|
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__ */
|
|
6752
|
+
return /* @__PURE__ */ jsx80("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ jsxs56(
|
|
6700
6753
|
"li",
|
|
6701
6754
|
{
|
|
6702
6755
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
6703
6756
|
children: [
|
|
6704
6757
|
/* @__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__ */
|
|
6758
|
+
/* @__PURE__ */ jsxs56("div", { className: "min-w-0", children: [
|
|
6706
6759
|
/* @__PURE__ */ jsx80(HeadingTag, { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
6707
6760
|
step.description && /* @__PURE__ */ jsx80("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
6708
6761
|
] })
|
|
@@ -6714,7 +6767,7 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
6714
6767
|
|
|
6715
6768
|
// src/components/article-card/ArticleCard.tsx
|
|
6716
6769
|
import * as React81 from "react";
|
|
6717
|
-
import { jsx as jsx81, jsxs as
|
|
6770
|
+
import { jsx as jsx81, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
6718
6771
|
var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
6719
6772
|
title,
|
|
6720
6773
|
description,
|
|
@@ -6729,7 +6782,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6729
6782
|
}, ref) {
|
|
6730
6783
|
const Link3 = linkComponent ?? "a";
|
|
6731
6784
|
const compact = variant === "compact";
|
|
6732
|
-
return /* @__PURE__ */ jsx81("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */
|
|
6785
|
+
return /* @__PURE__ */ jsx81("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */ jsxs57(
|
|
6733
6786
|
Link3,
|
|
6734
6787
|
{
|
|
6735
6788
|
href,
|
|
@@ -6739,7 +6792,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6739
6792
|
),
|
|
6740
6793
|
children: [
|
|
6741
6794
|
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__ */
|
|
6795
|
+
/* @__PURE__ */ jsxs57("div", { className: cn("flex flex-1 flex-col gap-2", compact ? "p-4" : "p-5"), children: [
|
|
6743
6796
|
eyebrow && /* @__PURE__ */ jsx81("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: eyebrow }),
|
|
6744
6797
|
/* @__PURE__ */ jsx81("h3", { className: cn("font-semibold tracking-tight transition-colors group-hover:text-primary-ink", compact ? "text-base" : "text-lg"), children: title }),
|
|
6745
6798
|
description && /* @__PURE__ */ jsx81("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
@@ -6752,7 +6805,7 @@ var ArticleCard = React81.forwardRef(function ArticleCard2({
|
|
|
6752
6805
|
|
|
6753
6806
|
// src/components/newsletter/Newsletter.tsx
|
|
6754
6807
|
import * as React82 from "react";
|
|
6755
|
-
import { jsx as jsx82, jsxs as
|
|
6808
|
+
import { jsx as jsx82, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
6756
6809
|
var Newsletter = React82.forwardRef(function Newsletter2({
|
|
6757
6810
|
title,
|
|
6758
6811
|
description,
|
|
@@ -6784,11 +6837,11 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6784
6837
|
setStatus("error");
|
|
6785
6838
|
}
|
|
6786
6839
|
};
|
|
6787
|
-
return /* @__PURE__ */
|
|
6840
|
+
return /* @__PURE__ */ jsxs58("div", { className: "w-full", children: [
|
|
6788
6841
|
/* @__PURE__ */ jsx82(Heading2, { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
6789
6842
|
description && /* @__PURE__ */ jsx82("p", { className: "mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6790
|
-
/* @__PURE__ */
|
|
6791
|
-
/* @__PURE__ */
|
|
6843
|
+
/* @__PURE__ */ jsxs58("form", { ref, onSubmit: handleSubmit, className: cn("mt-5", className), ...props, children: [
|
|
6844
|
+
/* @__PURE__ */ jsxs58("div", { className: cn("flex gap-2", layout === "inline" ? "flex-col sm:flex-row" : "flex-col"), children: [
|
|
6792
6845
|
/* @__PURE__ */ jsx82("label", { htmlFor: id, className: "sr-only", children: label }),
|
|
6793
6846
|
/* @__PURE__ */ jsx82(
|
|
6794
6847
|
Input,
|
|
@@ -6808,7 +6861,7 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6808
6861
|
/* @__PURE__ */ jsx82(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
6809
6862
|
] }),
|
|
6810
6863
|
consent && /* @__PURE__ */ jsx82("div", { className: "mt-3 text-xs leading-relaxed text-muted-foreground", children: consent }),
|
|
6811
|
-
/* @__PURE__ */
|
|
6864
|
+
/* @__PURE__ */ jsxs58("div", { "aria-live": "polite", className: "mt-2 min-h-5 text-sm", children: [
|
|
6812
6865
|
status === "success" && /* @__PURE__ */ jsx82("p", { className: "text-success", children: successMessage }),
|
|
6813
6866
|
status === "error" && /* @__PURE__ */ jsx82("p", { role: "alert", className: "text-destructive", children: errorMessage })
|
|
6814
6867
|
] })
|
|
@@ -6818,16 +6871,16 @@ var Newsletter = React82.forwardRef(function Newsletter2({
|
|
|
6818
6871
|
|
|
6819
6872
|
// src/components/contact-strip/ContactStrip.tsx
|
|
6820
6873
|
import * as React83 from "react";
|
|
6821
|
-
import { jsx as jsx83, jsxs as
|
|
6874
|
+
import { jsx as jsx83, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
6822
6875
|
var columnClasses5 = {
|
|
6823
6876
|
2: "sm:grid-cols-2",
|
|
6824
6877
|
3: "sm:grid-cols-3"
|
|
6825
6878
|
};
|
|
6826
6879
|
var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
6827
6880
|
const Link3 = linkComponent ?? "a";
|
|
6828
|
-
return /* @__PURE__ */ jsx83("ul", { ref, className: cn("grid gap-6", columnClasses5[columns], className), ...props, children: items.map((item) => /* @__PURE__ */
|
|
6881
|
+
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
6882
|
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__ */
|
|
6883
|
+
/* @__PURE__ */ jsxs59("div", { className: "min-w-0", children: [
|
|
6831
6884
|
/* @__PURE__ */ jsx83("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
6832
6885
|
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
6886
|
] })
|
|
@@ -6836,7 +6889,7 @@ var ContactStrip = React83.forwardRef(function ContactStrip2({ items, columns =
|
|
|
6836
6889
|
|
|
6837
6890
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
6838
6891
|
import * as React84 from "react";
|
|
6839
|
-
import { jsx as jsx84, jsxs as
|
|
6892
|
+
import { jsx as jsx84, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
6840
6893
|
var toneClasses3 = {
|
|
6841
6894
|
muted: "bg-muted text-foreground",
|
|
6842
6895
|
brand: "bg-primary text-primary-foreground",
|
|
@@ -6875,7 +6928,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
6875
6928
|
className
|
|
6876
6929
|
),
|
|
6877
6930
|
...props,
|
|
6878
|
-
children: /* @__PURE__ */
|
|
6931
|
+
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
6932
|
/* @__PURE__ */ jsx84("p", { className: "min-w-0 text-center", children: message }),
|
|
6880
6933
|
href && actionLabel && /* @__PURE__ */ jsx84(
|
|
6881
6934
|
Link3,
|
|
@@ -6903,7 +6956,7 @@ var AnnouncementBar = React84.forwardRef(
|
|
|
6903
6956
|
|
|
6904
6957
|
// src/components/deal-card/DealCard.tsx
|
|
6905
6958
|
import * as React85 from "react";
|
|
6906
|
-
import { jsx as jsx85, jsxs as
|
|
6959
|
+
import { jsx as jsx85, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
6907
6960
|
var statusConfig = {
|
|
6908
6961
|
available: { label: "Available", variant: "success" },
|
|
6909
6962
|
"under-nda": { label: "Under NDA", variant: "info" },
|
|
@@ -6931,27 +6984,27 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
6931
6984
|
}, ref) {
|
|
6932
6985
|
const Link3 = linkComponent ?? "a";
|
|
6933
6986
|
const statusInfo = statusConfig[status];
|
|
6934
|
-
return /* @__PURE__ */
|
|
6935
|
-
/* @__PURE__ */
|
|
6936
|
-
/* @__PURE__ */
|
|
6987
|
+
return /* @__PURE__ */ jsxs61(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
6988
|
+
/* @__PURE__ */ jsxs61(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
6989
|
+
/* @__PURE__ */ jsxs61("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6937
6990
|
/* @__PURE__ */ jsx85("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary-ink", children: sector }),
|
|
6938
6991
|
/* @__PURE__ */ jsx85(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
6939
6992
|
] }),
|
|
6940
6993
|
/* @__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
6994
|
location && /* @__PURE__ */ jsx85("p", { className: "text-xs text-muted-foreground", children: location })
|
|
6942
6995
|
] }),
|
|
6943
|
-
/* @__PURE__ */
|
|
6996
|
+
/* @__PURE__ */ jsxs61(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
6944
6997
|
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__ */
|
|
6998
|
+
/* @__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
6999
|
/* @__PURE__ */ jsx85("dt", { className: "text-xs text-muted-foreground", children: metric.label }),
|
|
6947
7000
|
/* @__PURE__ */ jsx85("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: metric.value })
|
|
6948
7001
|
] }, metric.label)) }),
|
|
6949
|
-
(ndaAvailable || cimAvailable) && /* @__PURE__ */
|
|
7002
|
+
(ndaAvailable || cimAvailable) && /* @__PURE__ */ jsxs61("div", { className: "mt-4 flex flex-wrap gap-1.5", children: [
|
|
6950
7003
|
ndaAvailable && /* @__PURE__ */ jsx85(Badge, { variant: "info", children: "NDA available" }),
|
|
6951
7004
|
cimAvailable && /* @__PURE__ */ jsx85(Badge, { variant: "secondary", children: "CIM available" })
|
|
6952
7005
|
] })
|
|
6953
7006
|
] }),
|
|
6954
|
-
/* @__PURE__ */
|
|
7007
|
+
/* @__PURE__ */ jsxs61(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
6955
7008
|
onRequestAccess && /* @__PURE__ */ jsx85(Button, { type: "button", size: "sm", onClick: onRequestAccess, children: requestLabel }),
|
|
6956
7009
|
onSave && /* @__PURE__ */ jsx85(
|
|
6957
7010
|
Button,
|
|
@@ -6971,7 +7024,7 @@ var DealCard = React85.forwardRef(function DealCard2({
|
|
|
6971
7024
|
|
|
6972
7025
|
// src/components/entity-card/EntityCard.tsx
|
|
6973
7026
|
import * as React86 from "react";
|
|
6974
|
-
import { jsx as jsx86, jsxs as
|
|
7027
|
+
import { jsx as jsx86, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
6975
7028
|
function initials(name) {
|
|
6976
7029
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
6977
7030
|
}
|
|
@@ -6993,10 +7046,10 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
6993
7046
|
const Link3 = linkComponent ?? "a";
|
|
6994
7047
|
const stretched = Boolean(cardHref);
|
|
6995
7048
|
const nameHref = cardHref ?? href;
|
|
6996
|
-
return /* @__PURE__ */
|
|
6997
|
-
/* @__PURE__ */
|
|
7049
|
+
return /* @__PURE__ */ jsxs62(Card, { ref, className: cn("flex h-full flex-col", stretched && "relative isolate", className), ...props, children: [
|
|
7050
|
+
/* @__PURE__ */ jsxs62(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
6998
7051
|
/* @__PURE__ */ jsx86("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ jsx86(Avatar, { children: /* @__PURE__ */ jsx86(AvatarFallback, { children: initials(name) }) }) }),
|
|
6999
|
-
/* @__PURE__ */
|
|
7052
|
+
/* @__PURE__ */ jsxs62("div", { className: "min-w-0 flex-1", children: [
|
|
7000
7053
|
/* @__PURE__ */ jsx86("h3", { className: "truncate text-base font-semibold tracking-tight", children: nameHref ? /* @__PURE__ */ jsx86(
|
|
7001
7054
|
Link3,
|
|
7002
7055
|
{
|
|
@@ -7012,15 +7065,15 @@ var EntityCard = React86.forwardRef(function EntityCard2({
|
|
|
7012
7065
|
location && /* @__PURE__ */ jsx86("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
7013
7066
|
] })
|
|
7014
7067
|
] }),
|
|
7015
|
-
/* @__PURE__ */
|
|
7068
|
+
/* @__PURE__ */ jsxs62(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
7016
7069
|
description && /* @__PURE__ */ jsx86("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
7017
7070
|
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)) }),
|
|
7018
|
-
stats && stats.length > 0 && /* @__PURE__ */ jsx86("dl", { className: "mt-4 grid grid-cols-2 gap-3", children: stats.map((stat) => /* @__PURE__ */
|
|
7071
|
+
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: [
|
|
7019
7072
|
/* @__PURE__ */ jsx86("dt", { className: "text-xs text-muted-foreground", children: stat.label }),
|
|
7020
7073
|
/* @__PURE__ */ jsx86("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
|
|
7021
7074
|
] }, stat.label)) })
|
|
7022
7075
|
] }),
|
|
7023
|
-
(href && !stretched || actions) && /* @__PURE__ */
|
|
7076
|
+
(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: [
|
|
7024
7077
|
href && !stretched && /* @__PURE__ */ jsx86(
|
|
7025
7078
|
Link3,
|
|
7026
7079
|
{
|
|
@@ -7037,7 +7090,7 @@ var ProfileCard = EntityCard;
|
|
|
7037
7090
|
|
|
7038
7091
|
// src/components/tombstone-card/TombstoneCard.tsx
|
|
7039
7092
|
import * as React87 from "react";
|
|
7040
|
-
import { jsx as jsx87, jsxs as
|
|
7093
|
+
import { jsx as jsx87, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
7041
7094
|
var statusConfig2 = {
|
|
7042
7095
|
archived: { label: "Archived", variant: "secondary" },
|
|
7043
7096
|
unavailable: { label: "Unavailable", variant: "warning" },
|
|
@@ -7062,8 +7115,8 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7062
7115
|
ref,
|
|
7063
7116
|
className: cn("flex h-full flex-col border-dashed bg-muted/30 shadow-none", className),
|
|
7064
7117
|
...props,
|
|
7065
|
-
children: /* @__PURE__ */
|
|
7066
|
-
/* @__PURE__ */
|
|
7118
|
+
children: /* @__PURE__ */ jsxs63(CardContent, { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
7119
|
+
/* @__PURE__ */ jsxs63("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7067
7120
|
logo && /* @__PURE__ */ jsx87("div", { className: "min-w-0 opacity-70", children: logo }),
|
|
7068
7121
|
/* @__PURE__ */ jsx87(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
7069
7122
|
] }),
|
|
@@ -7084,7 +7137,7 @@ var TombstoneCard = React87.forwardRef(function TombstoneCard2({
|
|
|
7084
7137
|
|
|
7085
7138
|
// src/components/document-card/DocumentCard.tsx
|
|
7086
7139
|
import * as React88 from "react";
|
|
7087
|
-
import { jsx as jsx88, jsxs as
|
|
7140
|
+
import { jsx as jsx88, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
7088
7141
|
var statusConfig3 = {
|
|
7089
7142
|
available: { label: "Available", variant: "success" },
|
|
7090
7143
|
restricted: { label: "Restricted", variant: "warning" },
|
|
@@ -7104,9 +7157,9 @@ var DocumentCard = React88.forwardRef(function DocumentCard2({
|
|
|
7104
7157
|
}, ref) {
|
|
7105
7158
|
const statusInfo = statusConfig3[status];
|
|
7106
7159
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
7107
|
-
return /* @__PURE__ */ jsx88(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */
|
|
7160
|
+
return /* @__PURE__ */ jsx88(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */ jsxs64(CardContent, { className: "flex items-center gap-3 p-4", children: [
|
|
7108
7161
|
/* @__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 }) }),
|
|
7109
|
-
/* @__PURE__ */
|
|
7162
|
+
/* @__PURE__ */ jsxs64("div", { className: "min-w-0 flex-1", children: [
|
|
7110
7163
|
/* @__PURE__ */ jsx88("p", { className: "truncate text-sm font-medium", children: name }),
|
|
7111
7164
|
meta && /* @__PURE__ */ jsx88("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
7112
7165
|
] }),
|
|
@@ -7144,7 +7197,7 @@ var LoadMore = React89.forwardRef(function LoadMore2({
|
|
|
7144
7197
|
|
|
7145
7198
|
// src/components/segmented-control/SegmentedControl.tsx
|
|
7146
7199
|
import * as React90 from "react";
|
|
7147
|
-
import { jsx as jsx90, jsxs as
|
|
7200
|
+
import { jsx as jsx90, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
7148
7201
|
var sizeClasses10 = {
|
|
7149
7202
|
sm: "h-8 px-2.5 text-xs",
|
|
7150
7203
|
md: "h-9 px-3 text-sm",
|
|
@@ -7235,7 +7288,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7235
7288
|
const active = multiple ? Array.isArray(selected) && selected.includes(option.value) : selected === option.value;
|
|
7236
7289
|
const firstEnabled = options.findIndex((entry) => !entry.disabled);
|
|
7237
7290
|
const focusable = multiple || active || !selected && index === firstEnabled;
|
|
7238
|
-
return /* @__PURE__ */
|
|
7291
|
+
return /* @__PURE__ */ jsxs65(
|
|
7239
7292
|
"button",
|
|
7240
7293
|
{
|
|
7241
7294
|
ref: (node) => {
|
|
@@ -7272,7 +7325,7 @@ var SegmentedControl = React90.forwardRef(
|
|
|
7272
7325
|
|
|
7273
7326
|
// src/components/range-slider/RangeSlider.tsx
|
|
7274
7327
|
import * as React91 from "react";
|
|
7275
|
-
import { jsx as jsx91, jsxs as
|
|
7328
|
+
import { jsx as jsx91, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
7276
7329
|
var rangeInputClass = cn(
|
|
7277
7330
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
7278
7331
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
@@ -7312,12 +7365,12 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7312
7365
|
const span = max - min || 1;
|
|
7313
7366
|
const lowPercent = (low - min) / span * 100;
|
|
7314
7367
|
const highPercent = (high - min) / span * 100;
|
|
7315
|
-
return /* @__PURE__ */
|
|
7316
|
-
showValues && /* @__PURE__ */
|
|
7368
|
+
return /* @__PURE__ */ jsxs66("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
7369
|
+
showValues && /* @__PURE__ */ jsxs66("div", { className: "mb-2 flex items-center justify-between text-sm font-medium tabular-nums", children: [
|
|
7317
7370
|
/* @__PURE__ */ jsx91("span", { children: formatValue(low) }),
|
|
7318
7371
|
/* @__PURE__ */ jsx91("span", { children: formatValue(high) })
|
|
7319
7372
|
] }),
|
|
7320
|
-
/* @__PURE__ */
|
|
7373
|
+
/* @__PURE__ */ jsxs66("div", { className: "relative h-6 w-full", children: [
|
|
7321
7374
|
/* @__PURE__ */ jsx91("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-border" }),
|
|
7322
7375
|
/* @__PURE__ */ jsx91(
|
|
7323
7376
|
"div",
|
|
@@ -7362,7 +7415,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
|
|
|
7362
7415
|
|
|
7363
7416
|
// src/components/filter-chips/FilterChips.tsx
|
|
7364
7417
|
import * as React92 from "react";
|
|
7365
|
-
import { jsx as jsx92, jsxs as
|
|
7418
|
+
import { jsx as jsx92, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
7366
7419
|
var CHIP_SIZES = {
|
|
7367
7420
|
sm: {
|
|
7368
7421
|
chip: "gap-1 py-0.5 pl-2.5 pr-0.5 text-xs",
|
|
@@ -7397,7 +7450,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7397
7450
|
return emptyLabel ? /* @__PURE__ */ jsx92("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7398
7451
|
}
|
|
7399
7452
|
const scale = CHIP_SIZES[size];
|
|
7400
|
-
return /* @__PURE__ */
|
|
7453
|
+
return /* @__PURE__ */ jsxs67(
|
|
7401
7454
|
"div",
|
|
7402
7455
|
{
|
|
7403
7456
|
ref,
|
|
@@ -7406,7 +7459,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7406
7459
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
7407
7460
|
...props,
|
|
7408
7461
|
children: [
|
|
7409
|
-
filters.map((filter) => /* @__PURE__ */
|
|
7462
|
+
filters.map((filter) => /* @__PURE__ */ jsxs67(
|
|
7410
7463
|
"span",
|
|
7411
7464
|
{
|
|
7412
7465
|
className: cn(
|
|
@@ -7414,8 +7467,8 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7414
7467
|
scale.chip
|
|
7415
7468
|
),
|
|
7416
7469
|
children: [
|
|
7417
|
-
/* @__PURE__ */
|
|
7418
|
-
/* @__PURE__ */
|
|
7470
|
+
/* @__PURE__ */ jsxs67("span", { className: "truncate", children: [
|
|
7471
|
+
/* @__PURE__ */ jsxs67("span", { className: "text-muted-foreground", children: [
|
|
7419
7472
|
filter.label,
|
|
7420
7473
|
":"
|
|
7421
7474
|
] }),
|
|
@@ -7458,7 +7511,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
|
|
|
7458
7511
|
|
|
7459
7512
|
// src/components/multi-select/MultiSelect.tsx
|
|
7460
7513
|
import * as React93 from "react";
|
|
7461
|
-
import { jsx as jsx93, jsxs as
|
|
7514
|
+
import { jsx as jsx93, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
7462
7515
|
var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
7463
7516
|
options,
|
|
7464
7517
|
value,
|
|
@@ -7503,10 +7556,10 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7503
7556
|
}, [filtered]);
|
|
7504
7557
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
7505
7558
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
7506
|
-
return /* @__PURE__ */
|
|
7559
|
+
return /* @__PURE__ */ jsxs68("div", { ref, className: cn("flex flex-col gap-2", className), ...props, children: [
|
|
7507
7560
|
label && /* @__PURE__ */ jsx93("span", { id: labelId, className: "text-sm font-medium", children: label }),
|
|
7508
|
-
visibleChips.length > 0 && /* @__PURE__ */
|
|
7509
|
-
visibleChips.map((option) => /* @__PURE__ */
|
|
7561
|
+
visibleChips.length > 0 && /* @__PURE__ */ jsxs68("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
7562
|
+
visibleChips.map((option) => /* @__PURE__ */ jsxs68(
|
|
7510
7563
|
"span",
|
|
7511
7564
|
{
|
|
7512
7565
|
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",
|
|
@@ -7527,18 +7580,18 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7527
7580
|
},
|
|
7528
7581
|
option.value
|
|
7529
7582
|
)),
|
|
7530
|
-
hiddenCount > 0 && /* @__PURE__ */
|
|
7583
|
+
hiddenCount > 0 && /* @__PURE__ */ jsxs68("span", { className: "self-center text-xs text-muted-foreground", children: [
|
|
7531
7584
|
"+",
|
|
7532
7585
|
hiddenCount,
|
|
7533
7586
|
" more"
|
|
7534
7587
|
] })
|
|
7535
7588
|
] }),
|
|
7536
|
-
/* @__PURE__ */
|
|
7537
|
-
/* @__PURE__ */
|
|
7589
|
+
/* @__PURE__ */ jsxs68(Popover, { open, onOpenChange: setOpen, children: [
|
|
7590
|
+
/* @__PURE__ */ jsxs68(PopoverTrigger, { "aria-labelledby": label ? labelId : void 0, disabled, className: "w-full justify-between", children: [
|
|
7538
7591
|
/* @__PURE__ */ jsx93("span", { children: selected.length > 0 ? `${selected.length} selected` : triggerLabel }),
|
|
7539
7592
|
/* @__PURE__ */ jsx93("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2304" })
|
|
7540
7593
|
] }),
|
|
7541
|
-
/* @__PURE__ */
|
|
7594
|
+
/* @__PURE__ */ jsxs68(PopoverContent, { className: "w-80 p-0", children: [
|
|
7542
7595
|
/* @__PURE__ */ jsx93("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ jsx93(
|
|
7543
7596
|
Input,
|
|
7544
7597
|
{
|
|
@@ -7550,9 +7603,9 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7550
7603
|
autoFocus: true
|
|
7551
7604
|
}
|
|
7552
7605
|
) }),
|
|
7553
|
-
/* @__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__ */
|
|
7606
|
+
/* @__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: [
|
|
7554
7607
|
heading && /* @__PURE__ */ jsx93("p", { className: "px-3 pb-1 pt-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: heading }),
|
|
7555
|
-
/* @__PURE__ */
|
|
7608
|
+
/* @__PURE__ */ jsxs68(
|
|
7556
7609
|
"label",
|
|
7557
7610
|
{
|
|
7558
7611
|
className: cn(
|
|
@@ -7569,7 +7622,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7569
7622
|
className: "mt-0.5"
|
|
7570
7623
|
}
|
|
7571
7624
|
),
|
|
7572
|
-
/* @__PURE__ */
|
|
7625
|
+
/* @__PURE__ */ jsxs68("span", { className: "min-w-0", children: [
|
|
7573
7626
|
/* @__PURE__ */ jsx93("span", { className: "block", children: option.label }),
|
|
7574
7627
|
option.description && /* @__PURE__ */ jsx93("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: option.description })
|
|
7575
7628
|
] })
|
|
@@ -7577,7 +7630,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7577
7630
|
}
|
|
7578
7631
|
)
|
|
7579
7632
|
] }, option.value)) }),
|
|
7580
|
-
/* @__PURE__ */
|
|
7633
|
+
/* @__PURE__ */ jsxs68("div", { className: "flex items-center justify-between gap-2 border-t border-border p-2", children: [
|
|
7581
7634
|
/* @__PURE__ */ jsx93(
|
|
7582
7635
|
Button,
|
|
7583
7636
|
{
|
|
@@ -7597,7 +7650,7 @@ var MultiSelect = React93.forwardRef(function MultiSelect2({
|
|
|
7597
7650
|
|
|
7598
7651
|
// src/components/filter-panel/FilterPanel.tsx
|
|
7599
7652
|
import * as React94 from "react";
|
|
7600
|
-
import { jsx as jsx94, jsxs as
|
|
7653
|
+
import { jsx as jsx94, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
7601
7654
|
var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
7602
7655
|
sections,
|
|
7603
7656
|
title = "Filters",
|
|
@@ -7627,16 +7680,16 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7627
7680
|
(current) => current.includes(index) ? current.filter((entry) => entry !== index) : [...current, index]
|
|
7628
7681
|
);
|
|
7629
7682
|
};
|
|
7630
|
-
return /* @__PURE__ */
|
|
7631
|
-
(title || description) && /* @__PURE__ */
|
|
7683
|
+
return /* @__PURE__ */ jsxs69(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
7684
|
+
(title || description) && /* @__PURE__ */ jsxs69("div", { className: "border-b border-border px-4 py-3", children: [
|
|
7632
7685
|
title && /* @__PURE__ */ jsx94("h2", { className: "text-sm font-semibold", children: title }),
|
|
7633
7686
|
description && /* @__PURE__ */ jsx94("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
7634
7687
|
] }),
|
|
7635
7688
|
/* @__PURE__ */ jsx94("div", { className: "divide-y divide-border", children: sections.map((section, index) => {
|
|
7636
7689
|
const expanded = isOpen(index);
|
|
7637
7690
|
const sectionId = `filter-section-${index}`;
|
|
7638
|
-
return /* @__PURE__ */
|
|
7639
|
-
/* @__PURE__ */ jsx94("h3", { children: /* @__PURE__ */
|
|
7691
|
+
return /* @__PURE__ */ jsxs69("div", { className: "px-4 py-3", children: [
|
|
7692
|
+
/* @__PURE__ */ jsx94("h3", { children: /* @__PURE__ */ jsxs69(
|
|
7640
7693
|
"button",
|
|
7641
7694
|
{
|
|
7642
7695
|
type: "button",
|
|
@@ -7649,7 +7702,7 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7649
7702
|
collapsible && "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7650
7703
|
),
|
|
7651
7704
|
children: [
|
|
7652
|
-
/* @__PURE__ */
|
|
7705
|
+
/* @__PURE__ */ jsxs69("span", { children: [
|
|
7653
7706
|
section.title,
|
|
7654
7707
|
section.description && /* @__PURE__ */ jsx94("span", { className: "mt-0.5 block text-xs font-normal text-muted-foreground", children: section.description })
|
|
7655
7708
|
] }),
|
|
@@ -7660,7 +7713,7 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7660
7713
|
expanded && /* @__PURE__ */ jsx94("div", { id: sectionId, className: "mt-3", children: section.content })
|
|
7661
7714
|
] }, index);
|
|
7662
7715
|
}) }),
|
|
7663
|
-
(onReset || onApply || actions) && /* @__PURE__ */
|
|
7716
|
+
(onReset || onApply || actions) && /* @__PURE__ */ jsxs69("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
7664
7717
|
actions,
|
|
7665
7718
|
onReset && /* @__PURE__ */ jsx94(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, className: "ml-auto", children: resetLabel }),
|
|
7666
7719
|
onApply && /* @__PURE__ */ jsx94(Button, { type: "button", size: "sm", onClick: onApply, children: applyLabel })
|
|
@@ -7670,7 +7723,7 @@ var FilterPanel = React94.forwardRef(function FilterPanel2({
|
|
|
7670
7723
|
|
|
7671
7724
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
7672
7725
|
import * as React95 from "react";
|
|
7673
|
-
import { jsx as jsx95, jsxs as
|
|
7726
|
+
import { jsx as jsx95, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
7674
7727
|
var DEFAULT_PRESETS = [
|
|
7675
7728
|
{ label: "7 days", days: 7 },
|
|
7676
7729
|
{ label: "30 days", days: 30 },
|
|
@@ -7722,7 +7775,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7722
7775
|
}
|
|
7723
7776
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
7724
7777
|
};
|
|
7725
|
-
return /* @__PURE__ */
|
|
7778
|
+
return /* @__PURE__ */ jsxs70("div", { ref, className: cn("flex flex-col gap-3", className), ...props, children: [
|
|
7726
7779
|
showPresets && presets.length > 0 && /* @__PURE__ */ jsx95("div", { className: "flex flex-wrap gap-2", children: presets.map((preset) => /* @__PURE__ */ jsx95(
|
|
7727
7780
|
Button,
|
|
7728
7781
|
{
|
|
@@ -7735,8 +7788,8 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7735
7788
|
},
|
|
7736
7789
|
preset.label
|
|
7737
7790
|
)) }),
|
|
7738
|
-
/* @__PURE__ */
|
|
7739
|
-
/* @__PURE__ */
|
|
7791
|
+
/* @__PURE__ */ jsxs70("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
7792
|
+
/* @__PURE__ */ jsxs70("div", { children: [
|
|
7740
7793
|
/* @__PURE__ */ jsx95("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
7741
7794
|
/* @__PURE__ */ jsx95(
|
|
7742
7795
|
DatePicker,
|
|
@@ -7750,7 +7803,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7750
7803
|
}
|
|
7751
7804
|
)
|
|
7752
7805
|
] }),
|
|
7753
|
-
/* @__PURE__ */
|
|
7806
|
+
/* @__PURE__ */ jsxs70("div", { children: [
|
|
7754
7807
|
/* @__PURE__ */ jsx95("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
7755
7808
|
/* @__PURE__ */ jsx95(
|
|
7756
7809
|
DatePicker,
|
|
@@ -7771,7 +7824,7 @@ var DateRangePicker = React95.forwardRef(
|
|
|
7771
7824
|
|
|
7772
7825
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
7773
7826
|
import * as React96 from "react";
|
|
7774
|
-
import { jsx as jsx96, jsxs as
|
|
7827
|
+
import { jsx as jsx96, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
7775
7828
|
var AppliedFilters = React96.forwardRef(
|
|
7776
7829
|
function AppliedFilters2({
|
|
7777
7830
|
filters,
|
|
@@ -7787,7 +7840,7 @@ var AppliedFilters = React96.forwardRef(
|
|
|
7787
7840
|
if (filters.length === 0) {
|
|
7788
7841
|
return emptyLabel ? /* @__PURE__ */ jsx96("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
7789
7842
|
}
|
|
7790
|
-
return /* @__PURE__ */
|
|
7843
|
+
return /* @__PURE__ */ jsxs71(
|
|
7791
7844
|
"div",
|
|
7792
7845
|
{
|
|
7793
7846
|
ref,
|
|
@@ -8082,7 +8135,7 @@ AlertDescription.displayName = "AlertDescription";
|
|
|
8082
8135
|
|
|
8083
8136
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
8084
8137
|
import * as React99 from "react";
|
|
8085
|
-
import { jsx as jsx99, jsxs as
|
|
8138
|
+
import { jsx as jsx99, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
8086
8139
|
var Breadcrumb = React99.forwardRef(
|
|
8087
8140
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
8088
8141
|
const LinkEl = linkComponent ?? "a";
|
|
@@ -8095,7 +8148,7 @@ var Breadcrumb = React99.forwardRef(
|
|
|
8095
8148
|
...props,
|
|
8096
8149
|
children: /* @__PURE__ */ jsx99("ol", { className: "flex flex-wrap items-center space-x-1.5", children: items.map((item, index) => {
|
|
8097
8150
|
const isLast = index === items.length - 1;
|
|
8098
|
-
return /* @__PURE__ */
|
|
8151
|
+
return /* @__PURE__ */ jsxs72("li", { className: cn("flex items-center space-x-1.5", truncateCurrent && isLast && "min-w-0"), children: [
|
|
8099
8152
|
index > 0 && /* @__PURE__ */ jsx99("span", { "aria-hidden": "true", className: "text-muted-foreground/50", children: separator }),
|
|
8100
8153
|
item.href && !isLast ? /* @__PURE__ */ jsx99(
|
|
8101
8154
|
LinkEl,
|