@slipstream-ui/core 0.7.0 → 0.8.0
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 +135 -15
- package/dist/index.d.ts +135 -15
- package/dist/index.js +923 -710
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +922 -710
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +7 -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 +19 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +13 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +130 -0
- 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/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.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 +48 -2
- 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 +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/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 +36 -4
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +7 -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/accordion/Accordion.d.ts +17 -1
- package/dist/src/components/accordion/Accordion.js +5 -1
- package/dist/src/components/accordion/Accordion.js.map +1 -1
- package/dist/src/components/accordion/Accordion.mjs +5 -1
- package/dist/src/components/accordion/Accordion.mjs.map +1 -1
- package/dist/src/components/auth-layout/AuthLayout.d.ts +14 -2
- package/dist/src/components/auth-layout/AuthLayout.js +10 -2
- package/dist/src/components/auth-layout/AuthLayout.js.map +1 -1
- package/dist/src/components/auth-layout/AuthLayout.mjs +10 -2
- package/dist/src/components/auth-layout/AuthLayout.mjs.map +1 -1
- package/dist/src/components/badge/Badge.d.ts +2 -0
- package/dist/src/components/badge/Badge.js +9 -3
- package/dist/src/components/badge/Badge.js.map +1 -1
- package/dist/src/components/badge/Badge.mjs +9 -3
- package/dist/src/components/badge/Badge.mjs.map +1 -1
- package/dist/src/components/bottom-nav/BottomNav.d.ts +36 -0
- package/dist/src/components/bottom-nav/BottomNav.js +90 -0
- package/dist/src/components/bottom-nav/BottomNav.js.map +1 -0
- package/dist/src/components/bottom-nav/BottomNav.mjs +66 -0
- package/dist/src/components/bottom-nav/BottomNav.mjs.map +1 -0
- package/dist/src/components/bottom-nav/index.d.ts +1 -0
- package/dist/src/components/bottom-nav/index.js +23 -0
- package/dist/src/components/bottom-nav/index.js.map +1 -0
- package/dist/src/components/bottom-nav/index.mjs +2 -0
- package/dist/src/components/bottom-nav/index.mjs.map +1 -0
- package/dist/src/components/drawer/Drawer.d.ts +25 -2
- package/dist/src/components/drawer/Drawer.js +97 -6
- package/dist/src/components/drawer/Drawer.js.map +1 -1
- package/dist/src/components/drawer/Drawer.mjs +97 -6
- package/dist/src/components/drawer/Drawer.mjs.map +1 -1
- package/dist/src/components/empty-state/EmptyState.d.ts +13 -4
- package/dist/src/components/empty-state/EmptyState.js +13 -1
- package/dist/src/components/empty-state/EmptyState.js.map +1 -1
- package/dist/src/components/empty-state/EmptyState.mjs +13 -1
- package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
- package/dist/src/components/metric-card/MetricCard.d.ts +23 -4
- package/dist/src/components/metric-card/MetricCard.js +32 -5
- package/dist/src/components/metric-card/MetricCard.js.map +1 -1
- package/dist/src/components/metric-card/MetricCard.mjs +32 -5
- package/dist/src/components/metric-card/MetricCard.mjs.map +1 -1
- package/dist/src/components/page-header/PageHeader.d.ts +4 -0
- package/dist/src/components/page-header/PageHeader.js +3 -2
- package/dist/src/components/page-header/PageHeader.js.map +1 -1
- package/dist/src/components/page-header/PageHeader.mjs +3 -2
- package/dist/src/components/page-header/PageHeader.mjs.map +1 -1
- package/dist/src/components/separator/Separator.d.ts +3 -3
- package/dist/src/index.d.ts +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/components/accordion/Accordion.test.tsx +31 -0
- package/src/components/accordion/Accordion.tsx +27 -2
- package/src/components/auth-layout/AuthLayout.test.tsx +36 -0
- package/src/components/auth-layout/AuthLayout.tsx +20 -3
- package/src/components/badge/Badge.test.tsx +7 -0
- package/src/components/badge/Badge.tsx +8 -2
- package/src/components/bottom-nav/BottomNav.test.tsx +48 -0
- package/src/components/bottom-nav/BottomNav.tsx +117 -0
- package/src/components/bottom-nav/index.ts +1 -0
- package/src/components/drawer/Drawer.test.tsx +86 -1
- package/src/components/drawer/Drawer.tsx +135 -7
- package/src/components/empty-state/EmptyState.test.tsx +26 -1
- package/src/components/empty-state/EmptyState.tsx +40 -3
- package/src/components/metric-card/MetricCard.test.tsx +32 -0
- package/src/components/metric-card/MetricCard.tsx +45 -7
- package/src/components/page-header/PageHeader.test.tsx +13 -0
- package/src/components/page-header/PageHeader.tsx +5 -2
- package/src/index.ts +1 -0
- package/src/manifests/accordion.manifest.json +7 -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 +19 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +13 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +130 -0
- 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/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.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 +48 -2
- 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 +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/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 +36 -4
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +7 -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
|
@@ -113,6 +113,13 @@ var sizeClasses = {
|
|
|
113
113
|
top: sideHeights,
|
|
114
114
|
bottom: sideHeights
|
|
115
115
|
};
|
|
116
|
+
var sizePx = {
|
|
117
|
+
sm: 288,
|
|
118
|
+
md: 384,
|
|
119
|
+
lg: 512,
|
|
120
|
+
xl: 640,
|
|
121
|
+
"2xl": 768
|
|
122
|
+
};
|
|
116
123
|
function extentStyle(value) {
|
|
117
124
|
if (value === void 0) return void 0;
|
|
118
125
|
return typeof value === "number" ? `${value}px` : value;
|
|
@@ -132,6 +139,7 @@ var slideOut = {
|
|
|
132
139
|
function Drawer({
|
|
133
140
|
open,
|
|
134
141
|
onOpenChange,
|
|
142
|
+
onClose,
|
|
135
143
|
title,
|
|
136
144
|
description,
|
|
137
145
|
children,
|
|
@@ -139,6 +147,12 @@ function Drawer({
|
|
|
139
147
|
size = "md",
|
|
140
148
|
width,
|
|
141
149
|
height,
|
|
150
|
+
resizable = false,
|
|
151
|
+
minWidth = 240,
|
|
152
|
+
maxWidth = 960,
|
|
153
|
+
defaultWidth,
|
|
154
|
+
onWidthChange,
|
|
155
|
+
resizeLabel = "Resize drawer",
|
|
142
156
|
closeOnBackdrop = true,
|
|
143
157
|
showClose = true,
|
|
144
158
|
closeLabel = "Close drawer",
|
|
@@ -152,6 +166,65 @@ function Drawer({
|
|
|
152
166
|
const descriptionId = React3.useId();
|
|
153
167
|
const { present, exiting } = usePresence(open, animate);
|
|
154
168
|
const isTopLayer = useModalLayer(open);
|
|
169
|
+
const requestClose = React3.useCallback(() => {
|
|
170
|
+
if (onOpenChange) onOpenChange(false);
|
|
171
|
+
else onClose?.();
|
|
172
|
+
}, [onOpenChange, onClose]);
|
|
173
|
+
const isVerticalSide = side === "top" || side === "bottom";
|
|
174
|
+
const canResize = resizable && !isVerticalSide;
|
|
175
|
+
const clampWidth = React3.useCallback(
|
|
176
|
+
(next) => Math.min(maxWidth, Math.max(minWidth, Math.round(next))),
|
|
177
|
+
[minWidth, maxWidth]
|
|
178
|
+
);
|
|
179
|
+
const [resizedWidth, setResizedWidth] = React3.useState(null);
|
|
180
|
+
const initialWidth = clampWidth(
|
|
181
|
+
defaultWidth ?? (typeof width === "number" ? width : sizePx[size])
|
|
182
|
+
);
|
|
183
|
+
const resizeWidth = resizedWidth ?? initialWidth;
|
|
184
|
+
const widthRef = React3.useRef(resizeWidth);
|
|
185
|
+
widthRef.current = resizeWidth;
|
|
186
|
+
const onWidthChangeRef = React3.useRef(onWidthChange);
|
|
187
|
+
onWidthChangeRef.current = onWidthChange;
|
|
188
|
+
const commitWidth = (next) => {
|
|
189
|
+
const clamped = clampWidth(next);
|
|
190
|
+
setResizedWidth(clamped);
|
|
191
|
+
onWidthChangeRef.current?.(clamped);
|
|
192
|
+
};
|
|
193
|
+
const onResizePointerDown = (event) => {
|
|
194
|
+
if (event.button !== 0) return;
|
|
195
|
+
event.preventDefault();
|
|
196
|
+
const startX = event.clientX;
|
|
197
|
+
const startWidth = resizeWidth;
|
|
198
|
+
const onMove = (moveEvent) => {
|
|
199
|
+
const delta = side === "right" ? startX - moveEvent.clientX : moveEvent.clientX - startX;
|
|
200
|
+
setResizedWidth(clampWidth(startWidth + delta));
|
|
201
|
+
};
|
|
202
|
+
const onUp = () => {
|
|
203
|
+
window.removeEventListener("pointermove", onMove);
|
|
204
|
+
window.removeEventListener("pointerup", onUp);
|
|
205
|
+
onWidthChangeRef.current?.(widthRef.current);
|
|
206
|
+
};
|
|
207
|
+
window.addEventListener("pointermove", onMove);
|
|
208
|
+
window.addEventListener("pointerup", onUp);
|
|
209
|
+
};
|
|
210
|
+
const onResizeKeyDown = (event) => {
|
|
211
|
+
const step = event.shiftKey ? 64 : 16;
|
|
212
|
+
const grow = side === "right" ? "ArrowLeft" : "ArrowRight";
|
|
213
|
+
const shrink = side === "right" ? "ArrowRight" : "ArrowLeft";
|
|
214
|
+
if (event.key === grow) {
|
|
215
|
+
event.preventDefault();
|
|
216
|
+
commitWidth(resizeWidth + step);
|
|
217
|
+
} else if (event.key === shrink) {
|
|
218
|
+
event.preventDefault();
|
|
219
|
+
commitWidth(resizeWidth - step);
|
|
220
|
+
} else if (event.key === "Home") {
|
|
221
|
+
event.preventDefault();
|
|
222
|
+
commitWidth(minWidth);
|
|
223
|
+
} else if (event.key === "End") {
|
|
224
|
+
event.preventDefault();
|
|
225
|
+
commitWidth(maxWidth);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
155
228
|
React3.useEffect(() => {
|
|
156
229
|
if (open) {
|
|
157
230
|
previouslyFocused.current = document.activeElement;
|
|
@@ -172,7 +245,7 @@ function Drawer({
|
|
|
172
245
|
if (event.key === "Escape") {
|
|
173
246
|
if (!isTopLayer()) return;
|
|
174
247
|
event.stopPropagation();
|
|
175
|
-
|
|
248
|
+
requestClose();
|
|
176
249
|
return;
|
|
177
250
|
}
|
|
178
251
|
if (event.key !== "Tab") return;
|
|
@@ -196,10 +269,9 @@ function Drawer({
|
|
|
196
269
|
};
|
|
197
270
|
document.addEventListener("keydown", onKeyDown);
|
|
198
271
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
199
|
-
}, [open,
|
|
272
|
+
}, [open, requestClose, isTopLayer]);
|
|
200
273
|
if (!present || typeof document === "undefined") return null;
|
|
201
|
-
const
|
|
202
|
-
const customExtent = isVerticalSide ? extentStyle(height) : extentStyle(width);
|
|
274
|
+
const customExtent = canResize ? `${resizeWidth}px` : isVerticalSide ? extentStyle(height) : extentStyle(width);
|
|
203
275
|
const motion = animate ? cn(
|
|
204
276
|
"duration-200 motion-reduce:animate-none",
|
|
205
277
|
exiting ? `animate-out ${slideOut[side]}` : `animate-in ${slideIn[side]}`
|
|
@@ -210,7 +282,7 @@ function Drawer({
|
|
|
210
282
|
{
|
|
211
283
|
className: "fixed inset-0 z-50",
|
|
212
284
|
onMouseDown: (event) => {
|
|
213
|
-
if (closeOnBackdrop && event.target === event.currentTarget)
|
|
285
|
+
if (closeOnBackdrop && event.target === event.currentTarget) requestClose();
|
|
214
286
|
},
|
|
215
287
|
children: /* @__PURE__ */ jsxs(
|
|
216
288
|
"div",
|
|
@@ -230,6 +302,25 @@ function Drawer({
|
|
|
230
302
|
),
|
|
231
303
|
style: customExtent ? { [isVerticalSide ? "height" : "width"]: customExtent } : void 0,
|
|
232
304
|
children: [
|
|
305
|
+
canResize && /* @__PURE__ */ jsx(
|
|
306
|
+
"div",
|
|
307
|
+
{
|
|
308
|
+
role: "separator",
|
|
309
|
+
"aria-orientation": "vertical",
|
|
310
|
+
"aria-label": resizeLabel,
|
|
311
|
+
"aria-valuenow": resizeWidth,
|
|
312
|
+
"aria-valuemin": minWidth,
|
|
313
|
+
"aria-valuemax": maxWidth,
|
|
314
|
+
tabIndex: 0,
|
|
315
|
+
onPointerDown: onResizePointerDown,
|
|
316
|
+
onKeyDown: onResizeKeyDown,
|
|
317
|
+
className: cn(
|
|
318
|
+
"absolute inset-y-0 z-10 w-2 cursor-col-resize touch-none rounded-sm bg-transparent",
|
|
319
|
+
"hover:bg-primary/20 focus-visible:bg-primary/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
320
|
+
side === "right" ? "-left-1" : "-right-1"
|
|
321
|
+
)
|
|
322
|
+
}
|
|
323
|
+
),
|
|
233
324
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4 border-b border-border px-5 py-4", children: [
|
|
234
325
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
235
326
|
/* @__PURE__ */ jsx("h2", { id: titleId, className: "text-base font-semibold leading-tight", children: title }),
|
|
@@ -239,7 +330,7 @@ function Drawer({
|
|
|
239
330
|
"button",
|
|
240
331
|
{
|
|
241
332
|
type: "button",
|
|
242
|
-
onClick:
|
|
333
|
+
onClick: requestClose,
|
|
243
334
|
"aria-label": closeLabel,
|
|
244
335
|
className: "-me-1 rounded p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
245
336
|
children: "\u2715"
|
|
@@ -714,26 +805,95 @@ var badgeVariants = cva2(
|
|
|
714
805
|
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
715
806
|
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
716
807
|
outline: "text-foreground"
|
|
808
|
+
},
|
|
809
|
+
size: {
|
|
810
|
+
sm: "px-2 py-0 text-[11px]",
|
|
811
|
+
md: "px-2.5 py-0.5 text-xs",
|
|
812
|
+
lg: "px-3 py-1 text-sm"
|
|
717
813
|
}
|
|
718
814
|
},
|
|
719
815
|
defaultVariants: {
|
|
720
|
-
variant: "default"
|
|
816
|
+
variant: "default",
|
|
817
|
+
size: "md"
|
|
721
818
|
}
|
|
722
819
|
}
|
|
723
820
|
);
|
|
724
821
|
var Badge = React11.forwardRef(
|
|
725
|
-
({ className, variant, asChild = false, ...props }, ref) => {
|
|
822
|
+
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
726
823
|
const Comp = asChild ? Slot2 : "span";
|
|
727
|
-
return /* @__PURE__ */ jsx9(Comp, { ref, className: cn(badgeVariants({ variant }), className), ...props });
|
|
824
|
+
return /* @__PURE__ */ jsx9(Comp, { ref, className: cn(badgeVariants({ variant, size }), className), ...props });
|
|
728
825
|
}
|
|
729
826
|
);
|
|
730
827
|
Badge.displayName = "Badge";
|
|
731
828
|
|
|
829
|
+
// src/components/bottom-nav/BottomNav.tsx
|
|
830
|
+
import { Fragment, jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
831
|
+
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";
|
|
832
|
+
function BottomNav({
|
|
833
|
+
items,
|
|
834
|
+
linkComponent,
|
|
835
|
+
linkHrefProp = "href",
|
|
836
|
+
label = "Primary",
|
|
837
|
+
fixed = true,
|
|
838
|
+
mobileOnly = true,
|
|
839
|
+
className,
|
|
840
|
+
...props
|
|
841
|
+
}) {
|
|
842
|
+
const LinkEl = linkComponent ?? "a";
|
|
843
|
+
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
844
|
+
return /* @__PURE__ */ jsx10(
|
|
845
|
+
"nav",
|
|
846
|
+
{
|
|
847
|
+
"aria-label": label,
|
|
848
|
+
className: cn(
|
|
849
|
+
"w-full border-t border-border bg-background pb-[env(safe-area-inset-bottom)]",
|
|
850
|
+
fixed && "fixed inset-x-0 bottom-0 z-40",
|
|
851
|
+
mobileOnly && "md:hidden",
|
|
852
|
+
className
|
|
853
|
+
),
|
|
854
|
+
...props,
|
|
855
|
+
children: /* @__PURE__ */ jsx10(
|
|
856
|
+
"ul",
|
|
857
|
+
{
|
|
858
|
+
className: "mx-auto grid w-full max-w-lg",
|
|
859
|
+
style: { gridTemplateColumns: `repeat(${Math.max(items.length, 1)}, minmax(0, 1fr))` },
|
|
860
|
+
children: items.map((item) => {
|
|
861
|
+
const content = /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
862
|
+
item.icon && /* @__PURE__ */ jsx10("span", { "aria-hidden": "true", className: "[&_svg]:size-5", children: item.icon }),
|
|
863
|
+
/* @__PURE__ */ jsx10("span", { children: item.label }),
|
|
864
|
+
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 })
|
|
865
|
+
] });
|
|
866
|
+
return /* @__PURE__ */ jsx10("li", { children: item.disabled ? /* @__PURE__ */ jsx10(
|
|
867
|
+
"span",
|
|
868
|
+
{
|
|
869
|
+
"aria-disabled": "true",
|
|
870
|
+
className: cn(tabClass, "text-muted-foreground opacity-50"),
|
|
871
|
+
children: content
|
|
872
|
+
}
|
|
873
|
+
) : /* @__PURE__ */ jsx10(
|
|
874
|
+
LinkEl,
|
|
875
|
+
{
|
|
876
|
+
...destination(item.href),
|
|
877
|
+
"aria-current": item.active ? "page" : void 0,
|
|
878
|
+
className: cn(
|
|
879
|
+
tabClass,
|
|
880
|
+
item.active ? "text-primary" : "text-muted-foreground hover:text-foreground"
|
|
881
|
+
),
|
|
882
|
+
children: content
|
|
883
|
+
}
|
|
884
|
+
) }, item.href);
|
|
885
|
+
})
|
|
886
|
+
}
|
|
887
|
+
)
|
|
888
|
+
}
|
|
889
|
+
);
|
|
890
|
+
}
|
|
891
|
+
|
|
732
892
|
// src/components/avatar/Avatar.tsx
|
|
733
893
|
import * as React12 from "react";
|
|
734
894
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
735
|
-
import { jsx as
|
|
736
|
-
var Avatar = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
895
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
896
|
+
var Avatar = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
737
897
|
AvatarPrimitive.Root,
|
|
738
898
|
{
|
|
739
899
|
ref,
|
|
@@ -745,7 +905,7 @@ var Avatar = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
745
905
|
}
|
|
746
906
|
));
|
|
747
907
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
748
|
-
var AvatarImage = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
908
|
+
var AvatarImage = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
749
909
|
AvatarPrimitive.Image,
|
|
750
910
|
{
|
|
751
911
|
ref,
|
|
@@ -754,7 +914,7 @@ var AvatarImage = React12.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
754
914
|
}
|
|
755
915
|
));
|
|
756
916
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
757
|
-
var AvatarFallback = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
917
|
+
var AvatarFallback = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
758
918
|
AvatarPrimitive.Fallback,
|
|
759
919
|
{
|
|
760
920
|
ref,
|
|
@@ -769,7 +929,7 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
|
769
929
|
|
|
770
930
|
// src/components/spinner/Spinner.tsx
|
|
771
931
|
import { cva as cva3 } from "class-variance-authority";
|
|
772
|
-
import { jsx as
|
|
932
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
773
933
|
var spinnerVariants = cva3(
|
|
774
934
|
"inline-block animate-spin rounded-full border-2 border-current border-t-transparent text-muted-foreground motion-reduce:animate-none",
|
|
775
935
|
{
|
|
@@ -786,20 +946,20 @@ var spinnerVariants = cva3(
|
|
|
786
946
|
}
|
|
787
947
|
);
|
|
788
948
|
function Spinner({ className, size, label = "Loading...", ...props }) {
|
|
789
|
-
return /* @__PURE__ */
|
|
949
|
+
return /* @__PURE__ */ jsx12(
|
|
790
950
|
"span",
|
|
791
951
|
{
|
|
792
952
|
role: "status",
|
|
793
953
|
className: cn(spinnerVariants({ size }), className),
|
|
794
954
|
...props,
|
|
795
|
-
children: /* @__PURE__ */
|
|
955
|
+
children: /* @__PURE__ */ jsx12("span", { className: "sr-only", children: label })
|
|
796
956
|
}
|
|
797
957
|
);
|
|
798
958
|
}
|
|
799
959
|
|
|
800
960
|
// src/components/toast/Toast.tsx
|
|
801
961
|
import * as React13 from "react";
|
|
802
|
-
import { jsx as
|
|
962
|
+
import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
803
963
|
var ToastContext = React13.createContext(null);
|
|
804
964
|
var DEFAULT_DURATION = 5e3;
|
|
805
965
|
function ToastProvider({ children, label = "Notifications" }) {
|
|
@@ -836,9 +996,9 @@ function ToastProvider({ children, label = "Notifications" }) {
|
|
|
836
996
|
};
|
|
837
997
|
}, []);
|
|
838
998
|
const value = React13.useMemo(() => ({ toasts: toasts2, toast: toast2, dismiss: dismiss2 }), [toasts2, toast2, dismiss2]);
|
|
839
|
-
return /* @__PURE__ */
|
|
999
|
+
return /* @__PURE__ */ jsxs6(ToastContext.Provider, { value, children: [
|
|
840
1000
|
children,
|
|
841
|
-
/* @__PURE__ */
|
|
1001
|
+
/* @__PURE__ */ jsx13(ToastRegion, { toasts: toasts2, onDismiss: dismiss2, label })
|
|
842
1002
|
] });
|
|
843
1003
|
}
|
|
844
1004
|
function useToast() {
|
|
@@ -851,18 +1011,18 @@ function ToastRegion({
|
|
|
851
1011
|
onDismiss,
|
|
852
1012
|
label
|
|
853
1013
|
}) {
|
|
854
|
-
return /* @__PURE__ */
|
|
1014
|
+
return /* @__PURE__ */ jsx13(
|
|
855
1015
|
"ol",
|
|
856
1016
|
{
|
|
857
1017
|
"aria-label": label,
|
|
858
1018
|
className: "fixed bottom-4 right-4 z-50 flex w-full max-w-sm flex-col gap-2",
|
|
859
|
-
children: toasts2.map((entry) => /* @__PURE__ */
|
|
860
|
-
/* @__PURE__ */
|
|
861
|
-
/* @__PURE__ */
|
|
862
|
-
/* @__PURE__ */
|
|
863
|
-
entry.description && /* @__PURE__ */
|
|
1019
|
+
children: toasts2.map((entry) => /* @__PURE__ */ jsxs6("li", { className: "rounded-lg border border-border bg-card p-4 shadow-lg", children: [
|
|
1020
|
+
/* @__PURE__ */ jsxs6("div", { role: "status", className: "flex items-start justify-between gap-3", children: [
|
|
1021
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
1022
|
+
/* @__PURE__ */ jsx13("p", { className: "text-sm font-semibold", children: entry.title }),
|
|
1023
|
+
entry.description && /* @__PURE__ */ jsx13("p", { className: "mt-1 text-sm text-muted-foreground", children: entry.description })
|
|
864
1024
|
] }),
|
|
865
|
-
/* @__PURE__ */
|
|
1025
|
+
/* @__PURE__ */ jsx13(
|
|
866
1026
|
"button",
|
|
867
1027
|
{
|
|
868
1028
|
type: "button",
|
|
@@ -873,7 +1033,7 @@ function ToastRegion({
|
|
|
873
1033
|
}
|
|
874
1034
|
)
|
|
875
1035
|
] }),
|
|
876
|
-
entry.action && /* @__PURE__ */
|
|
1036
|
+
entry.action && /* @__PURE__ */ jsx13(
|
|
877
1037
|
"button",
|
|
878
1038
|
{
|
|
879
1039
|
type: "button",
|
|
@@ -955,7 +1115,7 @@ function getToastServerSnapshot() {
|
|
|
955
1115
|
}
|
|
956
1116
|
|
|
957
1117
|
// src/components/toast/Toaster.tsx
|
|
958
|
-
import { jsx as
|
|
1118
|
+
import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
959
1119
|
var positionClasses = {
|
|
960
1120
|
"top-left": "left-4 top-4 items-start",
|
|
961
1121
|
"top-center": "left-1/2 top-4 -translate-x-1/2 items-center",
|
|
@@ -980,26 +1140,26 @@ var dotClasses = {
|
|
|
980
1140
|
};
|
|
981
1141
|
function Toaster({ position = "bottom-right", label = "Notifications", dismissLabel = "Dismiss notification", richColors = false }) {
|
|
982
1142
|
const entries = React14.useSyncExternalStore(subscribeToToasts, getToastSnapshot, getToastServerSnapshot);
|
|
983
|
-
return /* @__PURE__ */
|
|
1143
|
+
return /* @__PURE__ */ jsx14(
|
|
984
1144
|
"ol",
|
|
985
1145
|
{
|
|
986
1146
|
"aria-label": label,
|
|
987
1147
|
className: cn("fixed z-[60] flex w-full max-w-sm flex-col gap-2", positionClasses[position]),
|
|
988
1148
|
children: entries.map((entry) => {
|
|
989
1149
|
const variant = entry.variant ?? "default";
|
|
990
|
-
return /* @__PURE__ */
|
|
1150
|
+
return /* @__PURE__ */ jsx14(
|
|
991
1151
|
"li",
|
|
992
1152
|
{
|
|
993
1153
|
className: cn(
|
|
994
1154
|
"rounded-lg border p-4 shadow-lg",
|
|
995
1155
|
richColors ? richClasses[variant] : "border-border bg-card"
|
|
996
1156
|
),
|
|
997
|
-
children: /* @__PURE__ */
|
|
998
|
-
/* @__PURE__ */
|
|
999
|
-
/* @__PURE__ */
|
|
1000
|
-
/* @__PURE__ */
|
|
1001
|
-
entry.description && /* @__PURE__ */
|
|
1002
|
-
entry.action && /* @__PURE__ */
|
|
1157
|
+
children: /* @__PURE__ */ jsxs7("div", { role: "status", className: "flex items-start gap-3", children: [
|
|
1158
|
+
/* @__PURE__ */ jsx14("span", { "aria-hidden": "true", className: cn("mt-1 h-2 w-2 shrink-0 rounded-full", dotClasses[variant]) }),
|
|
1159
|
+
/* @__PURE__ */ jsxs7("div", { className: "min-w-0 flex-1", children: [
|
|
1160
|
+
/* @__PURE__ */ jsx14("p", { className: "text-sm font-semibold", children: entry.title }),
|
|
1161
|
+
entry.description && /* @__PURE__ */ jsx14("p", { className: "mt-1 text-sm text-muted-foreground", children: entry.description }),
|
|
1162
|
+
entry.action && /* @__PURE__ */ jsx14(
|
|
1003
1163
|
"button",
|
|
1004
1164
|
{
|
|
1005
1165
|
type: "button",
|
|
@@ -1012,7 +1172,7 @@ function Toaster({ position = "bottom-right", label = "Notifications", dismissLa
|
|
|
1012
1172
|
}
|
|
1013
1173
|
)
|
|
1014
1174
|
] }),
|
|
1015
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ jsx14(
|
|
1016
1176
|
"button",
|
|
1017
1177
|
{
|
|
1018
1178
|
type: "button",
|
|
@@ -1035,7 +1195,7 @@ function Toaster({ position = "bottom-right", label = "Notifications", dismissLa
|
|
|
1035
1195
|
// src/components/dialog/Dialog.tsx
|
|
1036
1196
|
import * as React15 from "react";
|
|
1037
1197
|
import { createPortal as createPortal2 } from "react-dom";
|
|
1038
|
-
import { jsx as
|
|
1198
|
+
import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1039
1199
|
var FOCUSABLE2 = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1040
1200
|
var sizeClasses2 = {
|
|
1041
1201
|
sm: "max-w-sm",
|
|
@@ -1046,21 +1206,21 @@ var sizeClasses2 = {
|
|
|
1046
1206
|
};
|
|
1047
1207
|
var DialogIdsContext = React15.createContext(null);
|
|
1048
1208
|
function DialogHeader({ className, ...props }) {
|
|
1049
|
-
return /* @__PURE__ */
|
|
1209
|
+
return /* @__PURE__ */ jsx15("div", { className: cn("flex items-start justify-between gap-4", className), ...props });
|
|
1050
1210
|
}
|
|
1051
1211
|
function DialogTitle({ className, ...props }) {
|
|
1052
1212
|
const ids = React15.useContext(DialogIdsContext);
|
|
1053
|
-
return /* @__PURE__ */
|
|
1213
|
+
return /* @__PURE__ */ jsx15("h2", { id: ids?.titleId, className: cn("text-lg font-semibold", className), ...props });
|
|
1054
1214
|
}
|
|
1055
1215
|
function DialogDescription({ className, ...props }) {
|
|
1056
1216
|
const ids = React15.useContext(DialogIdsContext);
|
|
1057
|
-
return /* @__PURE__ */
|
|
1217
|
+
return /* @__PURE__ */ jsx15("p", { id: ids?.descriptionId, className: cn("mt-2 text-sm text-muted-foreground", className), ...props });
|
|
1058
1218
|
}
|
|
1059
1219
|
function DialogBody({ className, ...props }) {
|
|
1060
|
-
return /* @__PURE__ */
|
|
1220
|
+
return /* @__PURE__ */ jsx15("div", { className: cn("mt-4", className), ...props });
|
|
1061
1221
|
}
|
|
1062
1222
|
function DialogFooter({ className, ...props }) {
|
|
1063
|
-
return /* @__PURE__ */
|
|
1223
|
+
return /* @__PURE__ */ jsx15("div", { className: cn("mt-6 flex items-center justify-end gap-2", className), ...props });
|
|
1064
1224
|
}
|
|
1065
1225
|
function Dialog({
|
|
1066
1226
|
open,
|
|
@@ -1134,14 +1294,14 @@ function Dialog({
|
|
|
1134
1294
|
exiting ? "animate-out fade-out-0 zoom-out-95" : "animate-in fade-in-0 zoom-in-95"
|
|
1135
1295
|
) : void 0;
|
|
1136
1296
|
return createPortal2(
|
|
1137
|
-
/* @__PURE__ */
|
|
1297
|
+
/* @__PURE__ */ jsx15(
|
|
1138
1298
|
"div",
|
|
1139
1299
|
{
|
|
1140
1300
|
className: cn("fixed inset-0 z-50 flex items-center justify-center bg-background/80 p-4", motion),
|
|
1141
1301
|
onMouseDown: (event) => {
|
|
1142
1302
|
if (closeOnBackdrop && event.target === event.currentTarget) onOpenChange(false);
|
|
1143
1303
|
},
|
|
1144
|
-
children: /* @__PURE__ */
|
|
1304
|
+
children: /* @__PURE__ */ jsx15(
|
|
1145
1305
|
"div",
|
|
1146
1306
|
{
|
|
1147
1307
|
ref: dialogRef,
|
|
@@ -1156,13 +1316,13 @@ function Dialog({
|
|
|
1156
1316
|
sizeClasses2[size],
|
|
1157
1317
|
motion
|
|
1158
1318
|
),
|
|
1159
|
-
children: /* @__PURE__ */
|
|
1160
|
-
header ?? /* @__PURE__ */
|
|
1161
|
-
/* @__PURE__ */
|
|
1162
|
-
title && /* @__PURE__ */
|
|
1163
|
-
description && /* @__PURE__ */
|
|
1319
|
+
children: /* @__PURE__ */ jsxs8(DialogIdsContext.Provider, { value: { titleId, descriptionId }, children: [
|
|
1320
|
+
header ?? /* @__PURE__ */ jsxs8(DialogHeader, { children: [
|
|
1321
|
+
/* @__PURE__ */ jsxs8("div", { className: "min-w-0", children: [
|
|
1322
|
+
title && /* @__PURE__ */ jsx15(DialogTitle, { children: title }),
|
|
1323
|
+
description && /* @__PURE__ */ jsx15(DialogDescription, { children: description })
|
|
1164
1324
|
] }),
|
|
1165
|
-
showClose && /* @__PURE__ */
|
|
1325
|
+
showClose && /* @__PURE__ */ jsx15(
|
|
1166
1326
|
"button",
|
|
1167
1327
|
{
|
|
1168
1328
|
type: "button",
|
|
@@ -1173,7 +1333,7 @@ function Dialog({
|
|
|
1173
1333
|
}
|
|
1174
1334
|
)
|
|
1175
1335
|
] }),
|
|
1176
|
-
/* @__PURE__ */
|
|
1336
|
+
/* @__PURE__ */ jsx15(
|
|
1177
1337
|
"div",
|
|
1178
1338
|
{
|
|
1179
1339
|
className: cn(
|
|
@@ -1184,7 +1344,7 @@ function Dialog({
|
|
|
1184
1344
|
children
|
|
1185
1345
|
}
|
|
1186
1346
|
),
|
|
1187
|
-
footer && /* @__PURE__ */
|
|
1347
|
+
footer && /* @__PURE__ */ jsx15(DialogFooter, { children: footer })
|
|
1188
1348
|
] })
|
|
1189
1349
|
}
|
|
1190
1350
|
)
|
|
@@ -1196,25 +1356,25 @@ function Dialog({
|
|
|
1196
1356
|
|
|
1197
1357
|
// src/components/table-card/TableCard.tsx
|
|
1198
1358
|
import * as React16 from "react";
|
|
1199
|
-
import { jsx as
|
|
1359
|
+
import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1200
1360
|
var TableCard = React16.forwardRef(function TableCard2({ title, description, actions, toolbar, children, footer, flush = true, className, ...props }, ref) {
|
|
1201
|
-
return /* @__PURE__ */
|
|
1361
|
+
return /* @__PURE__ */ jsxs9(
|
|
1202
1362
|
"div",
|
|
1203
1363
|
{
|
|
1204
1364
|
ref,
|
|
1205
1365
|
className: cn("overflow-hidden rounded-xl border border-border bg-card text-card-foreground", className),
|
|
1206
1366
|
...props,
|
|
1207
1367
|
children: [
|
|
1208
|
-
(title || description || actions) && /* @__PURE__ */
|
|
1209
|
-
/* @__PURE__ */
|
|
1210
|
-
title && /* @__PURE__ */
|
|
1211
|
-
description && /* @__PURE__ */
|
|
1368
|
+
(title || description || actions) && /* @__PURE__ */ jsxs9("div", { className: "flex flex-wrap items-start justify-between gap-3 border-b border-border px-4 py-3", children: [
|
|
1369
|
+
/* @__PURE__ */ jsxs9("div", { className: "min-w-0", children: [
|
|
1370
|
+
title && /* @__PURE__ */ jsx16("h2", { className: "text-sm font-semibold", children: title }),
|
|
1371
|
+
description && /* @__PURE__ */ jsx16("p", { className: "mt-0.5 text-sm text-muted-foreground", children: description })
|
|
1212
1372
|
] }),
|
|
1213
|
-
actions && /* @__PURE__ */
|
|
1373
|
+
actions && /* @__PURE__ */ jsx16("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
1214
1374
|
] }),
|
|
1215
|
-
toolbar && /* @__PURE__ */
|
|
1216
|
-
/* @__PURE__ */
|
|
1217
|
-
footer && /* @__PURE__ */
|
|
1375
|
+
toolbar && /* @__PURE__ */ jsx16("div", { className: "border-b border-border px-4 py-2", children: toolbar }),
|
|
1376
|
+
/* @__PURE__ */ jsx16("div", { className: cn(flush ? "overflow-x-auto" : "p-4"), children }),
|
|
1377
|
+
footer && /* @__PURE__ */ jsx16("div", { className: "border-t border-border px-4 py-3", children: footer })
|
|
1218
1378
|
]
|
|
1219
1379
|
}
|
|
1220
1380
|
);
|
|
@@ -1223,7 +1383,7 @@ var TableCard = React16.forwardRef(function TableCard2({ title, description, act
|
|
|
1223
1383
|
// src/components/select-menu/SelectMenu.tsx
|
|
1224
1384
|
import * as React17 from "react";
|
|
1225
1385
|
import { createPortal as createPortal3 } from "react-dom";
|
|
1226
|
-
import { Fragment, jsx as
|
|
1386
|
+
import { Fragment as Fragment2, jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1227
1387
|
function useOutsideClose(open, close, refs) {
|
|
1228
1388
|
React17.useEffect(() => {
|
|
1229
1389
|
if (!open) return;
|
|
@@ -1384,7 +1544,7 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1384
1544
|
}
|
|
1385
1545
|
};
|
|
1386
1546
|
const selectedItems = items.filter((item) => selectedValues.includes(item.value));
|
|
1387
|
-
const triggerContent = renderValue ? renderValue(selectedItems) : selectedItems.length === 0 ? /* @__PURE__ */
|
|
1547
|
+
const triggerContent = renderValue ? renderValue(selectedItems) : selectedItems.length === 0 ? /* @__PURE__ */ jsx17("span", { className: "text-muted-foreground", children: placeholder }) : multiple ? /* @__PURE__ */ jsx17("span", { className: "truncate", children: selectedItems.length === 1 ? selectedItems[0].label : `${selectedItems.length} selected` }) : /* @__PURE__ */ jsx17("span", { className: "truncate", children: selectedItems[0].label });
|
|
1388
1548
|
const activeOptionId = activeIndex >= 0 ? `${listboxId}-option-${activeIndex}` : void 0;
|
|
1389
1549
|
const rows = React17.useMemo(() => {
|
|
1390
1550
|
const out = [];
|
|
@@ -1398,10 +1558,10 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1398
1558
|
});
|
|
1399
1559
|
return out;
|
|
1400
1560
|
}, [items]);
|
|
1401
|
-
return /* @__PURE__ */
|
|
1402
|
-
/* @__PURE__ */
|
|
1403
|
-
name && selectedValues.map((selected) => /* @__PURE__ */
|
|
1404
|
-
/* @__PURE__ */
|
|
1561
|
+
return /* @__PURE__ */ jsxs10(Fragment2, { children: [
|
|
1562
|
+
/* @__PURE__ */ jsx17("span", { id: labelId, className: "sr-only", children: typeof buttonProps["aria-label"] === "string" ? buttonProps["aria-label"] : "Select" }),
|
|
1563
|
+
name && selectedValues.map((selected) => /* @__PURE__ */ jsx17("input", { type: "hidden", name, value: selected }, selected)),
|
|
1564
|
+
/* @__PURE__ */ jsxs10(
|
|
1405
1565
|
"button",
|
|
1406
1566
|
{
|
|
1407
1567
|
ref: setTriggerRef,
|
|
@@ -1423,13 +1583,13 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1423
1583
|
),
|
|
1424
1584
|
...buttonProps,
|
|
1425
1585
|
children: [
|
|
1426
|
-
/* @__PURE__ */
|
|
1427
|
-
/* @__PURE__ */
|
|
1586
|
+
/* @__PURE__ */ jsx17("span", { className: "min-w-0 flex-1", children: triggerContent }),
|
|
1587
|
+
/* @__PURE__ */ jsx17("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u25BE" })
|
|
1428
1588
|
]
|
|
1429
1589
|
}
|
|
1430
1590
|
),
|
|
1431
1591
|
open && position && createPortal3(
|
|
1432
|
-
/* @__PURE__ */
|
|
1592
|
+
/* @__PURE__ */ jsx17(
|
|
1433
1593
|
"div",
|
|
1434
1594
|
{
|
|
1435
1595
|
ref: listRef,
|
|
@@ -1446,8 +1606,8 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1446
1606
|
zIndex: 50
|
|
1447
1607
|
},
|
|
1448
1608
|
className: "max-h-64 overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1449
|
-
children: items.length === 0 ? /* @__PURE__ */
|
|
1450
|
-
(row, rowIndex) => row.heading ? /* @__PURE__ */
|
|
1609
|
+
children: items.length === 0 ? /* @__PURE__ */ jsx17("p", { role: "presentation", className: "px-3 py-2 text-sm text-muted-foreground", children: emptyText }) : rows.map(
|
|
1610
|
+
(row, rowIndex) => row.heading ? /* @__PURE__ */ jsx17(
|
|
1451
1611
|
"p",
|
|
1452
1612
|
{
|
|
1453
1613
|
role: "presentation",
|
|
@@ -1455,7 +1615,7 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1455
1615
|
children: row.heading
|
|
1456
1616
|
},
|
|
1457
1617
|
`heading-${row.heading}-${rowIndex}`
|
|
1458
|
-
) : /* @__PURE__ */
|
|
1618
|
+
) : /* @__PURE__ */ jsx17(
|
|
1459
1619
|
"div",
|
|
1460
1620
|
{
|
|
1461
1621
|
id: `${listboxId}-option-${row.index}`,
|
|
@@ -1473,13 +1633,13 @@ var SelectMenu = React17.forwardRef(function SelectMenu2({
|
|
|
1473
1633
|
children: renderItem ? renderItem(row.item, {
|
|
1474
1634
|
selected: selectedValues.includes(row.item.value),
|
|
1475
1635
|
active: row.index === activeIndex
|
|
1476
|
-
}) : /* @__PURE__ */
|
|
1477
|
-
row.item.icon && /* @__PURE__ */
|
|
1478
|
-
/* @__PURE__ */
|
|
1479
|
-
/* @__PURE__ */
|
|
1480
|
-
row.item.description && /* @__PURE__ */
|
|
1636
|
+
}) : /* @__PURE__ */ jsxs10(Fragment2, { children: [
|
|
1637
|
+
row.item.icon && /* @__PURE__ */ jsx17("span", { className: "mt-0.5 shrink-0 [&_svg]:size-4", children: row.item.icon }),
|
|
1638
|
+
/* @__PURE__ */ jsxs10("span", { className: "min-w-0 flex-1", children: [
|
|
1639
|
+
/* @__PURE__ */ jsx17("span", { className: "block", children: row.item.label }),
|
|
1640
|
+
row.item.description && /* @__PURE__ */ jsx17("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: row.item.description })
|
|
1481
1641
|
] }),
|
|
1482
|
-
multiple && selectedValues.includes(row.item.value) && /* @__PURE__ */
|
|
1642
|
+
multiple && selectedValues.includes(row.item.value) && /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", className: "ml-auto text-primary", children: "\u2713" })
|
|
1483
1643
|
] })
|
|
1484
1644
|
},
|
|
1485
1645
|
row.item.value
|
|
@@ -1617,7 +1777,7 @@ function useCombobox({
|
|
|
1617
1777
|
}
|
|
1618
1778
|
|
|
1619
1779
|
// src/components/search/Search.tsx
|
|
1620
|
-
import { jsx as
|
|
1780
|
+
import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1621
1781
|
function Search({
|
|
1622
1782
|
options,
|
|
1623
1783
|
value,
|
|
@@ -1660,8 +1820,8 @@ function Search({
|
|
|
1660
1820
|
onValueChange?.(item.value);
|
|
1661
1821
|
combobox.setOpen(false);
|
|
1662
1822
|
};
|
|
1663
|
-
return /* @__PURE__ */
|
|
1664
|
-
/* @__PURE__ */
|
|
1823
|
+
return /* @__PURE__ */ jsxs11("div", { ref: combobox.anchorRef, className: cn("relative w-full", className), children: [
|
|
1824
|
+
/* @__PURE__ */ jsx18(
|
|
1665
1825
|
Input,
|
|
1666
1826
|
{
|
|
1667
1827
|
id,
|
|
@@ -1685,7 +1845,7 @@ function Search({
|
|
|
1685
1845
|
}
|
|
1686
1846
|
),
|
|
1687
1847
|
combobox.ready && createPortal4(
|
|
1688
|
-
/* @__PURE__ */
|
|
1848
|
+
/* @__PURE__ */ jsx18(
|
|
1689
1849
|
"ul",
|
|
1690
1850
|
{
|
|
1691
1851
|
id: combobox.listboxId,
|
|
@@ -1699,7 +1859,7 @@ function Search({
|
|
|
1699
1859
|
zIndex: 50
|
|
1700
1860
|
},
|
|
1701
1861
|
className: "max-h-64 overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1702
|
-
children: filtered.length === 0 ? /* @__PURE__ */
|
|
1862
|
+
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__ */ jsxs11(
|
|
1703
1863
|
"li",
|
|
1704
1864
|
{
|
|
1705
1865
|
id: combobox.optionId(index),
|
|
@@ -1713,8 +1873,8 @@ function Search({
|
|
|
1713
1873
|
combobox.activeIndex === index ? "bg-accent text-accent-foreground" : "hover:bg-accent/60"
|
|
1714
1874
|
),
|
|
1715
1875
|
children: [
|
|
1716
|
-
/* @__PURE__ */
|
|
1717
|
-
option.description && /* @__PURE__ */
|
|
1876
|
+
/* @__PURE__ */ jsx18("span", { className: "block", children: option.label }),
|
|
1877
|
+
option.description && /* @__PURE__ */ jsx18("span", { className: "block text-xs text-muted-foreground", children: option.description })
|
|
1718
1878
|
]
|
|
1719
1879
|
},
|
|
1720
1880
|
option.value
|
|
@@ -1729,7 +1889,7 @@ function Search({
|
|
|
1729
1889
|
// src/components/autocomplete/Autocomplete.tsx
|
|
1730
1890
|
import * as React20 from "react";
|
|
1731
1891
|
import { createPortal as createPortal5 } from "react-dom";
|
|
1732
|
-
import { Fragment as
|
|
1892
|
+
import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1733
1893
|
function normalize(entry) {
|
|
1734
1894
|
if (typeof entry === "string") return { value: entry, label: entry };
|
|
1735
1895
|
return { value: entry.value, label: entry.label ?? entry.value, group: entry.group, description: entry.description };
|
|
@@ -1810,8 +1970,8 @@ function Autocomplete({
|
|
|
1810
1970
|
});
|
|
1811
1971
|
return out;
|
|
1812
1972
|
}, [items]);
|
|
1813
|
-
return /* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */
|
|
1973
|
+
return /* @__PURE__ */ jsxs12("div", { ref: combobox.anchorRef, className: cn("relative w-full", className), children: [
|
|
1974
|
+
/* @__PURE__ */ jsx19(
|
|
1815
1975
|
Input,
|
|
1816
1976
|
{
|
|
1817
1977
|
id,
|
|
@@ -1837,7 +1997,7 @@ function Autocomplete({
|
|
|
1837
1997
|
...combobox.inputProps
|
|
1838
1998
|
}
|
|
1839
1999
|
),
|
|
1840
|
-
clearable && current && /* @__PURE__ */
|
|
2000
|
+
clearable && current && /* @__PURE__ */ jsx19(
|
|
1841
2001
|
"button",
|
|
1842
2002
|
{
|
|
1843
2003
|
type: "button",
|
|
@@ -1852,7 +2012,7 @@ function Autocomplete({
|
|
|
1852
2012
|
}
|
|
1853
2013
|
),
|
|
1854
2014
|
combobox.ready && createPortal5(
|
|
1855
|
-
/* @__PURE__ */
|
|
2015
|
+
/* @__PURE__ */ jsx19(
|
|
1856
2016
|
"ul",
|
|
1857
2017
|
{
|
|
1858
2018
|
id: combobox.listboxId,
|
|
@@ -1867,8 +2027,8 @@ function Autocomplete({
|
|
|
1867
2027
|
zIndex: 50
|
|
1868
2028
|
},
|
|
1869
2029
|
className: "max-h-60 overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1870
|
-
children: loading && items.length === 0 ? /* @__PURE__ */
|
|
1871
|
-
(entry, rowIndex) => entry.heading ? /* @__PURE__ */
|
|
2030
|
+
children: loading && items.length === 0 ? /* @__PURE__ */ jsx19("li", { role: "presentation", className: "px-3 py-2 text-sm text-muted-foreground", children: loadingText ?? "Loading\u2026" }) : items.length === 0 ? /* @__PURE__ */ jsx19("li", { role: "presentation", className: "px-3 py-2 text-sm text-muted-foreground", children: emptyText ?? "No suggestions" }) : grouped.map(
|
|
2031
|
+
(entry, rowIndex) => entry.heading ? /* @__PURE__ */ jsx19(
|
|
1872
2032
|
"li",
|
|
1873
2033
|
{
|
|
1874
2034
|
role: "presentation",
|
|
@@ -1876,7 +2036,7 @@ function Autocomplete({
|
|
|
1876
2036
|
children: entry.heading
|
|
1877
2037
|
},
|
|
1878
2038
|
`group-${entry.heading}-${rowIndex}`
|
|
1879
|
-
) : /* @__PURE__ */
|
|
2039
|
+
) : /* @__PURE__ */ jsx19(
|
|
1880
2040
|
"li",
|
|
1881
2041
|
{
|
|
1882
2042
|
id: combobox.optionId(entry.index),
|
|
@@ -1889,9 +2049,9 @@ function Autocomplete({
|
|
|
1889
2049
|
"cursor-pointer rounded-sm px-3 py-1.5 text-sm outline-none",
|
|
1890
2050
|
combobox.activeIndex === entry.index ? "bg-accent text-accent-foreground" : "hover:bg-accent/60"
|
|
1891
2051
|
),
|
|
1892
|
-
children: renderOption ? renderOption(entry.option, { active: combobox.activeIndex === entry.index }) : /* @__PURE__ */
|
|
1893
|
-
/* @__PURE__ */
|
|
1894
|
-
entry.option.description && /* @__PURE__ */
|
|
2052
|
+
children: renderOption ? renderOption(entry.option, { active: combobox.activeIndex === entry.index }) : /* @__PURE__ */ jsxs12(Fragment3, { children: [
|
|
2053
|
+
/* @__PURE__ */ jsx19("span", { className: "block", children: entry.option.label }),
|
|
2054
|
+
entry.option.description && /* @__PURE__ */ jsx19("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: entry.option.description })
|
|
1895
2055
|
] })
|
|
1896
2056
|
},
|
|
1897
2057
|
entry.option.value
|
|
@@ -1906,9 +2066,9 @@ function Autocomplete({
|
|
|
1906
2066
|
|
|
1907
2067
|
// src/components/checkbox/Checkbox.tsx
|
|
1908
2068
|
import * as React21 from "react";
|
|
1909
|
-
import { jsx as
|
|
2069
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1910
2070
|
var Checkbox = React21.forwardRef(
|
|
1911
|
-
({ className, checked, onCheckedChange, onChange, ...props }, ref) => /* @__PURE__ */
|
|
2071
|
+
({ className, checked, onCheckedChange, onChange, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
1912
2072
|
"input",
|
|
1913
2073
|
{
|
|
1914
2074
|
type: "checkbox",
|
|
@@ -1933,7 +2093,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
1933
2093
|
|
|
1934
2094
|
// src/components/checkbox/CheckboxGroup.tsx
|
|
1935
2095
|
import * as React22 from "react";
|
|
1936
|
-
import { jsx as
|
|
2096
|
+
import { jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1937
2097
|
var CheckboxGroupContext = React22.createContext({
|
|
1938
2098
|
name: "",
|
|
1939
2099
|
values: [],
|
|
@@ -1949,10 +2109,10 @@ var CheckboxGroup = React22.forwardRef(
|
|
|
1949
2109
|
if (value === void 0) setInternalValue(updated);
|
|
1950
2110
|
onValueChange?.(updated);
|
|
1951
2111
|
};
|
|
1952
|
-
return /* @__PURE__ */
|
|
1953
|
-
legend && /* @__PURE__ */
|
|
1954
|
-
/* @__PURE__ */
|
|
1955
|
-
error && /* @__PURE__ */
|
|
2112
|
+
return /* @__PURE__ */ jsxs13("fieldset", { ref, className: cn(orientation === "vertical" ? "space-y-2" : "flex flex-row flex-wrap gap-x-4 gap-y-2", className), children: [
|
|
2113
|
+
legend && /* @__PURE__ */ jsx21("legend", { className: "text-sm font-medium", children: legend }),
|
|
2114
|
+
/* @__PURE__ */ jsx21(CheckboxGroupContext.Provider, { value: { name, values: currentValue, toggle }, children }),
|
|
2115
|
+
error && /* @__PURE__ */ jsx21("p", { role: "alert", className: "text-xs text-destructive", children: error })
|
|
1956
2116
|
] });
|
|
1957
2117
|
}
|
|
1958
2118
|
);
|
|
@@ -1962,8 +2122,8 @@ var CheckboxGroupItem = React22.forwardRef(
|
|
|
1962
2122
|
const group = React22.useContext(CheckboxGroupContext);
|
|
1963
2123
|
const generatedId = React22.useId();
|
|
1964
2124
|
const inputId = id ?? generatedId;
|
|
1965
|
-
return /* @__PURE__ */
|
|
1966
|
-
/* @__PURE__ */
|
|
2125
|
+
return /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-2", children: [
|
|
2126
|
+
/* @__PURE__ */ jsx21(
|
|
1967
2127
|
Checkbox,
|
|
1968
2128
|
{
|
|
1969
2129
|
ref,
|
|
@@ -1976,7 +2136,7 @@ var CheckboxGroupItem = React22.forwardRef(
|
|
|
1976
2136
|
...props
|
|
1977
2137
|
}
|
|
1978
2138
|
),
|
|
1979
|
-
label && /* @__PURE__ */
|
|
2139
|
+
label && /* @__PURE__ */ jsx21(
|
|
1980
2140
|
"label",
|
|
1981
2141
|
{
|
|
1982
2142
|
htmlFor: inputId,
|
|
@@ -1991,9 +2151,9 @@ CheckboxGroupItem.displayName = "CheckboxGroupItem";
|
|
|
1991
2151
|
|
|
1992
2152
|
// src/components/radio/Radio.tsx
|
|
1993
2153
|
import * as React23 from "react";
|
|
1994
|
-
import { jsx as
|
|
2154
|
+
import { jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1995
2155
|
var Radio = React23.forwardRef(
|
|
1996
|
-
({ className, checked, onCheckedChange, onChange, ...props }, ref) => /* @__PURE__ */
|
|
2156
|
+
({ className, checked, onCheckedChange, onChange, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1997
2157
|
"input",
|
|
1998
2158
|
{
|
|
1999
2159
|
type: "radio",
|
|
@@ -2023,7 +2183,7 @@ var RadioGroup = React23.forwardRef(
|
|
|
2023
2183
|
if (value === void 0) setInternalValue(next);
|
|
2024
2184
|
onValueChange?.(next);
|
|
2025
2185
|
};
|
|
2026
|
-
return /* @__PURE__ */
|
|
2186
|
+
return /* @__PURE__ */ jsxs14(
|
|
2027
2187
|
"fieldset",
|
|
2028
2188
|
{
|
|
2029
2189
|
ref,
|
|
@@ -2032,9 +2192,9 @@ var RadioGroup = React23.forwardRef(
|
|
|
2032
2192
|
className
|
|
2033
2193
|
),
|
|
2034
2194
|
children: [
|
|
2035
|
-
legend && /* @__PURE__ */
|
|
2036
|
-
/* @__PURE__ */
|
|
2037
|
-
error && /* @__PURE__ */
|
|
2195
|
+
legend && /* @__PURE__ */ jsx22("legend", { className: "text-sm font-medium", children: legend }),
|
|
2196
|
+
/* @__PURE__ */ jsx22(RadioGroupContext.Provider, { value: { name, value: currentValue, onChange: handleChange }, children }),
|
|
2197
|
+
error && /* @__PURE__ */ jsx22("p", { role: "alert", className: "text-xs text-destructive", children: error })
|
|
2038
2198
|
]
|
|
2039
2199
|
}
|
|
2040
2200
|
);
|
|
@@ -2052,8 +2212,8 @@ var RadioGroupItem = React23.forwardRef(
|
|
|
2052
2212
|
const group = React23.useContext(RadioGroupContext);
|
|
2053
2213
|
const generatedId = React23.useId();
|
|
2054
2214
|
const inputId = id ?? generatedId;
|
|
2055
|
-
return /* @__PURE__ */
|
|
2056
|
-
/* @__PURE__ */
|
|
2215
|
+
return /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-2", children: [
|
|
2216
|
+
/* @__PURE__ */ jsx22(
|
|
2057
2217
|
Radio,
|
|
2058
2218
|
{
|
|
2059
2219
|
ref,
|
|
@@ -2066,7 +2226,7 @@ var RadioGroupItem = React23.forwardRef(
|
|
|
2066
2226
|
...props
|
|
2067
2227
|
}
|
|
2068
2228
|
),
|
|
2069
|
-
label && /* @__PURE__ */
|
|
2229
|
+
label && /* @__PURE__ */ jsx22("label", { htmlFor: inputId, className: "text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", children: label })
|
|
2070
2230
|
] });
|
|
2071
2231
|
}
|
|
2072
2232
|
);
|
|
@@ -2074,13 +2234,13 @@ RadioGroupItem.displayName = "RadioGroupItem";
|
|
|
2074
2234
|
|
|
2075
2235
|
// src/components/radio/RadioCard.tsx
|
|
2076
2236
|
import * as React24 from "react";
|
|
2077
|
-
import { jsx as
|
|
2237
|
+
import { jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2078
2238
|
var RadioCard = React24.forwardRef(
|
|
2079
2239
|
({ value, title, description, children, rounded = true, disabled, className, id }, ref) => {
|
|
2080
2240
|
const group = React24.useContext(RadioGroupContext);
|
|
2081
2241
|
const generatedId = React24.useId();
|
|
2082
2242
|
const inputId = id ?? generatedId;
|
|
2083
|
-
return /* @__PURE__ */
|
|
2243
|
+
return /* @__PURE__ */ jsxs15(
|
|
2084
2244
|
"label",
|
|
2085
2245
|
{
|
|
2086
2246
|
ref,
|
|
@@ -2096,7 +2256,7 @@ var RadioCard = React24.forwardRef(
|
|
|
2096
2256
|
className
|
|
2097
2257
|
),
|
|
2098
2258
|
children: [
|
|
2099
|
-
/* @__PURE__ */
|
|
2259
|
+
/* @__PURE__ */ jsx23(
|
|
2100
2260
|
Radio,
|
|
2101
2261
|
{
|
|
2102
2262
|
id: inputId,
|
|
@@ -2107,8 +2267,8 @@ var RadioCard = React24.forwardRef(
|
|
|
2107
2267
|
className: "sr-only"
|
|
2108
2268
|
}
|
|
2109
2269
|
),
|
|
2110
|
-
title && /* @__PURE__ */
|
|
2111
|
-
description && /* @__PURE__ */
|
|
2270
|
+
title && /* @__PURE__ */ jsx23("span", { className: "text-sm font-medium leading-none", children: title }),
|
|
2271
|
+
description && /* @__PURE__ */ jsx23("span", { className: "text-sm text-muted-foreground", children: description }),
|
|
2112
2272
|
children
|
|
2113
2273
|
]
|
|
2114
2274
|
}
|
|
@@ -2119,9 +2279,9 @@ RadioCard.displayName = "RadioCard";
|
|
|
2119
2279
|
|
|
2120
2280
|
// src/components/label/Label.tsx
|
|
2121
2281
|
import * as React25 from "react";
|
|
2122
|
-
import { jsx as
|
|
2282
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2123
2283
|
var Label = React25.forwardRef(
|
|
2124
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
2284
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
2125
2285
|
"label",
|
|
2126
2286
|
{
|
|
2127
2287
|
ref,
|
|
@@ -2137,19 +2297,19 @@ Label.displayName = "Label";
|
|
|
2137
2297
|
|
|
2138
2298
|
// src/components/fieldset/Fieldset.tsx
|
|
2139
2299
|
import * as React26 from "react";
|
|
2140
|
-
import { jsx as
|
|
2300
|
+
import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2141
2301
|
var Fieldset = React26.forwardRef(
|
|
2142
|
-
({ legend, description, error, className, children, ...props }, ref) => /* @__PURE__ */
|
|
2302
|
+
({ legend, description, error, className, children, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
2143
2303
|
"fieldset",
|
|
2144
2304
|
{
|
|
2145
2305
|
ref,
|
|
2146
2306
|
className: cn("m-0 flex min-w-0 flex-col gap-1.5 border-0 p-0", className),
|
|
2147
2307
|
...props,
|
|
2148
2308
|
children: [
|
|
2149
|
-
legend && /* @__PURE__ */
|
|
2150
|
-
description && /* @__PURE__ */
|
|
2309
|
+
legend && /* @__PURE__ */ jsx25("legend", { className: "p-0 text-sm font-medium leading-none", children: legend }),
|
|
2310
|
+
description && /* @__PURE__ */ jsx25("p", { className: "text-xs text-muted-foreground", children: description }),
|
|
2151
2311
|
children,
|
|
2152
|
-
error && /* @__PURE__ */
|
|
2312
|
+
error && /* @__PURE__ */ jsx25("p", { role: "alert", className: "text-xs text-destructive", children: error })
|
|
2153
2313
|
]
|
|
2154
2314
|
}
|
|
2155
2315
|
)
|
|
@@ -2162,7 +2322,7 @@ import * as React28 from "react";
|
|
|
2162
2322
|
// src/components/tooltip/Tooltip.tsx
|
|
2163
2323
|
import * as React27 from "react";
|
|
2164
2324
|
import { createPortal as createPortal6 } from "react-dom";
|
|
2165
|
-
import { jsx as
|
|
2325
|
+
import { jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2166
2326
|
var GAP = 8;
|
|
2167
2327
|
var Tooltip = React27.forwardRef(
|
|
2168
2328
|
({ content, side = "top", delay = 300, className, children }, ref) => {
|
|
@@ -2203,7 +2363,7 @@ var Tooltip = React27.forwardRef(
|
|
|
2203
2363
|
const trigger = React27.cloneElement(children, {
|
|
2204
2364
|
"aria-describedby": open ? id : void 0
|
|
2205
2365
|
});
|
|
2206
|
-
return /* @__PURE__ */
|
|
2366
|
+
return /* @__PURE__ */ jsxs17(
|
|
2207
2367
|
"div",
|
|
2208
2368
|
{
|
|
2209
2369
|
ref: (node) => {
|
|
@@ -2225,7 +2385,7 @@ var Tooltip = React27.forwardRef(
|
|
|
2225
2385
|
children: [
|
|
2226
2386
|
trigger,
|
|
2227
2387
|
open && pos && typeof document !== "undefined" && createPortal6(
|
|
2228
|
-
/* @__PURE__ */
|
|
2388
|
+
/* @__PURE__ */ jsx26(
|
|
2229
2389
|
"div",
|
|
2230
2390
|
{
|
|
2231
2391
|
id,
|
|
@@ -2245,7 +2405,7 @@ var Tooltip = React27.forwardRef(
|
|
|
2245
2405
|
Tooltip.displayName = "Tooltip";
|
|
2246
2406
|
|
|
2247
2407
|
// src/components/form-field/FormField.tsx
|
|
2248
|
-
import { Fragment as
|
|
2408
|
+
import { Fragment as Fragment5, jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2249
2409
|
var FormField = ({
|
|
2250
2410
|
id,
|
|
2251
2411
|
label,
|
|
@@ -2270,41 +2430,41 @@ var FormField = ({
|
|
|
2270
2430
|
...error ? { "aria-invalid": true } : {}
|
|
2271
2431
|
});
|
|
2272
2432
|
}
|
|
2273
|
-
const labelNode = /* @__PURE__ */
|
|
2433
|
+
const labelNode = /* @__PURE__ */ jsxs18(Label, { htmlFor: id, className: labelHidden ? "sr-only" : void 0, children: [
|
|
2274
2434
|
label,
|
|
2275
|
-
required && /* @__PURE__ */
|
|
2435
|
+
required && /* @__PURE__ */ jsxs18(Fragment5, { children: [
|
|
2276
2436
|
" ",
|
|
2277
|
-
/* @__PURE__ */
|
|
2437
|
+
/* @__PURE__ */ jsx27("span", { "aria-hidden": "true", className: "ml-0.5 text-destructive", children: "*" })
|
|
2278
2438
|
] })
|
|
2279
2439
|
] });
|
|
2280
|
-
const tooltipNode = tooltip ? /* @__PURE__ */
|
|
2440
|
+
const tooltipNode = tooltip ? /* @__PURE__ */ jsx27(Tooltip, { content: tooltip, side: "top", children: /* @__PURE__ */ jsx27(
|
|
2281
2441
|
"button",
|
|
2282
2442
|
{
|
|
2283
2443
|
type: "button",
|
|
2284
2444
|
"aria-label": `${label} information`,
|
|
2285
2445
|
className: "ml-1 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
2286
|
-
children: /* @__PURE__ */
|
|
2446
|
+
children: /* @__PURE__ */ jsx27("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsx27("path", { d: "M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM8 7a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 7Zm0-2.25a.9.9 0 1 1 0 1.8.9.9 0 0 1 0-1.8Z" }) })
|
|
2287
2447
|
}
|
|
2288
2448
|
) }) : null;
|
|
2289
|
-
const hintOrError = error ? /* @__PURE__ */
|
|
2449
|
+
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;
|
|
2290
2450
|
if (labelPlacement === "left") {
|
|
2291
|
-
return /* @__PURE__ */
|
|
2292
|
-
/* @__PURE__ */
|
|
2451
|
+
return /* @__PURE__ */ jsx27("div", { className: cn("flex min-w-0 flex-col gap-1.5", className), children: /* @__PURE__ */ jsxs18("div", { className: "flex items-start gap-3", children: [
|
|
2452
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex w-40 shrink-0 items-center gap-1 pt-2", children: [
|
|
2293
2453
|
labelNode,
|
|
2294
2454
|
tooltipNode
|
|
2295
2455
|
] }),
|
|
2296
|
-
/* @__PURE__ */
|
|
2297
|
-
/* @__PURE__ */
|
|
2298
|
-
/* @__PURE__ */
|
|
2299
|
-
trailing && /* @__PURE__ */
|
|
2456
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
|
|
2457
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
2458
|
+
/* @__PURE__ */ jsx27("div", { className: "min-w-0 flex-1", children: control }),
|
|
2459
|
+
trailing && /* @__PURE__ */ jsx27("span", { className: "shrink-0 text-xs text-muted-foreground", children: trailing })
|
|
2300
2460
|
] }),
|
|
2301
2461
|
hintOrError
|
|
2302
2462
|
] })
|
|
2303
2463
|
] }) });
|
|
2304
2464
|
}
|
|
2305
|
-
return /* @__PURE__ */
|
|
2306
|
-
/* @__PURE__ */
|
|
2307
|
-
/* @__PURE__ */
|
|
2465
|
+
return /* @__PURE__ */ jsxs18("div", { className: cn("flex min-w-0 flex-col gap-1.5", className), children: [
|
|
2466
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2467
|
+
/* @__PURE__ */ jsxs18("span", { className: "flex min-w-0 items-center", children: [
|
|
2308
2468
|
labelNode,
|
|
2309
2469
|
tooltipNode
|
|
2310
2470
|
] }),
|
|
@@ -2318,11 +2478,11 @@ FormField.displayName = "FormField";
|
|
|
2318
2478
|
|
|
2319
2479
|
// src/components/form/Form.tsx
|
|
2320
2480
|
import * as React29 from "react";
|
|
2321
|
-
import { jsx as
|
|
2481
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2322
2482
|
var Form = React29.forwardRef(
|
|
2323
2483
|
({ variant = "default", gap, className, style, ...props }, ref) => {
|
|
2324
2484
|
const gapResolved = resolveGap(gap ?? "md");
|
|
2325
|
-
return /* @__PURE__ */
|
|
2485
|
+
return /* @__PURE__ */ jsx28(
|
|
2326
2486
|
"form",
|
|
2327
2487
|
{
|
|
2328
2488
|
ref,
|
|
@@ -2343,7 +2503,7 @@ Form.displayName = "Form";
|
|
|
2343
2503
|
|
|
2344
2504
|
// src/components/form-layout/FormLayout.tsx
|
|
2345
2505
|
import * as React30 from "react";
|
|
2346
|
-
import { jsx as
|
|
2506
|
+
import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2347
2507
|
var GRID_COLUMNS = {
|
|
2348
2508
|
1: "grid-cols-1",
|
|
2349
2509
|
2: "grid-cols-2",
|
|
@@ -2365,7 +2525,7 @@ var FormLayout = React30.forwardRef(
|
|
|
2365
2525
|
}, ref) => {
|
|
2366
2526
|
const Tag = as;
|
|
2367
2527
|
const gapResolved = resolveGap(gap ?? "md");
|
|
2368
|
-
return /* @__PURE__ */
|
|
2528
|
+
return /* @__PURE__ */ jsxs19(
|
|
2369
2529
|
Tag,
|
|
2370
2530
|
{
|
|
2371
2531
|
ref,
|
|
@@ -2380,8 +2540,8 @@ var FormLayout = React30.forwardRef(
|
|
|
2380
2540
|
style: { ...gapResolved.style, ...style },
|
|
2381
2541
|
...props,
|
|
2382
2542
|
children: [
|
|
2383
|
-
legend && as === "fieldset" && /* @__PURE__ */
|
|
2384
|
-
description && as === "fieldset" && /* @__PURE__ */
|
|
2543
|
+
legend && as === "fieldset" && /* @__PURE__ */ jsx29("legend", { className: "col-span-full p-0 text-sm font-medium leading-none", children: legend }),
|
|
2544
|
+
description && as === "fieldset" && /* @__PURE__ */ jsx29("p", { className: "col-span-full text-xs text-muted-foreground", children: description }),
|
|
2385
2545
|
children
|
|
2386
2546
|
]
|
|
2387
2547
|
}
|
|
@@ -2392,7 +2552,7 @@ FormLayout.displayName = "FormLayout";
|
|
|
2392
2552
|
|
|
2393
2553
|
// src/components/switch/Switch.tsx
|
|
2394
2554
|
import * as React31 from "react";
|
|
2395
|
-
import { Fragment as
|
|
2555
|
+
import { Fragment as Fragment6, jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2396
2556
|
var Switch = React31.forwardRef(
|
|
2397
2557
|
({ className, checked, defaultChecked, onCheckedChange, disabled, name, value, ...props }, ref) => {
|
|
2398
2558
|
const [internalChecked, setInternalChecked] = React31.useState(defaultChecked ?? false);
|
|
@@ -2401,8 +2561,8 @@ var Switch = React31.forwardRef(
|
|
|
2401
2561
|
if (checked === void 0) setInternalChecked((prev) => !prev);
|
|
2402
2562
|
onCheckedChange?.(!isOn);
|
|
2403
2563
|
};
|
|
2404
|
-
return /* @__PURE__ */
|
|
2405
|
-
name && /* @__PURE__ */
|
|
2564
|
+
return /* @__PURE__ */ jsxs20(Fragment6, { children: [
|
|
2565
|
+
name && /* @__PURE__ */ jsx30(
|
|
2406
2566
|
"input",
|
|
2407
2567
|
{
|
|
2408
2568
|
type: "checkbox",
|
|
@@ -2413,7 +2573,7 @@ var Switch = React31.forwardRef(
|
|
|
2413
2573
|
hidden: true
|
|
2414
2574
|
}
|
|
2415
2575
|
),
|
|
2416
|
-
/* @__PURE__ */
|
|
2576
|
+
/* @__PURE__ */ jsx30(
|
|
2417
2577
|
"button",
|
|
2418
2578
|
{
|
|
2419
2579
|
type: "button",
|
|
@@ -2430,7 +2590,7 @@ var Switch = React31.forwardRef(
|
|
|
2430
2590
|
className
|
|
2431
2591
|
),
|
|
2432
2592
|
...props,
|
|
2433
|
-
children: /* @__PURE__ */
|
|
2593
|
+
children: /* @__PURE__ */ jsx30(
|
|
2434
2594
|
"span",
|
|
2435
2595
|
{
|
|
2436
2596
|
"aria-hidden": "true",
|
|
@@ -2450,7 +2610,7 @@ Switch.displayName = "Switch";
|
|
|
2450
2610
|
// src/components/separator/Separator.tsx
|
|
2451
2611
|
import * as React32 from "react";
|
|
2452
2612
|
import { cva as cva4 } from "class-variance-authority";
|
|
2453
|
-
import { jsx as
|
|
2613
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2454
2614
|
var separatorVariants = cva4("shrink-0 bg-border", {
|
|
2455
2615
|
variants: {
|
|
2456
2616
|
orientation: {
|
|
@@ -2463,7 +2623,7 @@ var separatorVariants = cva4("shrink-0 bg-border", {
|
|
|
2463
2623
|
}
|
|
2464
2624
|
});
|
|
2465
2625
|
var Separator = React32.forwardRef(
|
|
2466
|
-
({ className, orientation, label, ...props }, ref) => /* @__PURE__ */
|
|
2626
|
+
({ className, orientation, label, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
2467
2627
|
"div",
|
|
2468
2628
|
{
|
|
2469
2629
|
ref,
|
|
@@ -2480,7 +2640,7 @@ var Divider = Separator;
|
|
|
2480
2640
|
|
|
2481
2641
|
// src/components/skeleton/Skeleton.tsx
|
|
2482
2642
|
import * as React33 from "react";
|
|
2483
|
-
import { jsx as
|
|
2643
|
+
import { jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2484
2644
|
var roundedClasses = {
|
|
2485
2645
|
none: "rounded-none",
|
|
2486
2646
|
sm: "rounded-sm",
|
|
@@ -2489,7 +2649,7 @@ var roundedClasses = {
|
|
|
2489
2649
|
full: "rounded-full"
|
|
2490
2650
|
};
|
|
2491
2651
|
var Skeleton = React33.forwardRef(
|
|
2492
|
-
({ className, height, width, rounded = "md", label, children, ...props }, ref) => /* @__PURE__ */
|
|
2652
|
+
({ className, height, width, rounded = "md", label, children, ...props }, ref) => /* @__PURE__ */ jsxs21(
|
|
2493
2653
|
"div",
|
|
2494
2654
|
{
|
|
2495
2655
|
ref,
|
|
@@ -2504,7 +2664,7 @@ var Skeleton = React33.forwardRef(
|
|
|
2504
2664
|
),
|
|
2505
2665
|
...props,
|
|
2506
2666
|
children: [
|
|
2507
|
-
label ? /* @__PURE__ */
|
|
2667
|
+
label ? /* @__PURE__ */ jsx32("span", { className: "sr-only", children: label }) : null,
|
|
2508
2668
|
children
|
|
2509
2669
|
]
|
|
2510
2670
|
}
|
|
@@ -2514,12 +2674,12 @@ Skeleton.displayName = "Skeleton";
|
|
|
2514
2674
|
|
|
2515
2675
|
// src/components/progress/Progress.tsx
|
|
2516
2676
|
import * as React34 from "react";
|
|
2517
|
-
import { jsx as
|
|
2677
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2518
2678
|
var Progress = React34.forwardRef(
|
|
2519
2679
|
({ className, value = 0, max = 100, label, indicatorClassName, indicatorStyle, ...props }, ref) => {
|
|
2520
2680
|
const clamped = Math.min(Math.max(value, 0), max);
|
|
2521
2681
|
const percent = max > 0 ? clamped / max * 100 : 0;
|
|
2522
|
-
return /* @__PURE__ */
|
|
2682
|
+
return /* @__PURE__ */ jsx33(
|
|
2523
2683
|
"div",
|
|
2524
2684
|
{
|
|
2525
2685
|
ref,
|
|
@@ -2530,7 +2690,7 @@ var Progress = React34.forwardRef(
|
|
|
2530
2690
|
"aria-label": label,
|
|
2531
2691
|
className: cn("relative h-2 w-full overflow-hidden rounded-full bg-muted", className),
|
|
2532
2692
|
...props,
|
|
2533
|
-
children: /* @__PURE__ */
|
|
2693
|
+
children: /* @__PURE__ */ jsx33(
|
|
2534
2694
|
"div",
|
|
2535
2695
|
{
|
|
2536
2696
|
className: cn(
|
|
@@ -2549,7 +2709,7 @@ Progress.displayName = "Progress";
|
|
|
2549
2709
|
// src/components/tabs/Tabs.tsx
|
|
2550
2710
|
import * as React35 from "react";
|
|
2551
2711
|
import { cva as cva5 } from "class-variance-authority";
|
|
2552
|
-
import { jsx as
|
|
2712
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2553
2713
|
var TabsContext = React35.createContext({
|
|
2554
2714
|
value: "",
|
|
2555
2715
|
setValue: () => {
|
|
@@ -2605,7 +2765,7 @@ var Tabs = React35.forwardRef(
|
|
|
2605
2765
|
}),
|
|
2606
2766
|
[current, setValue, baseId, variant, size, panels, registerPanel, unregisterPanel]
|
|
2607
2767
|
);
|
|
2608
|
-
return /* @__PURE__ */
|
|
2768
|
+
return /* @__PURE__ */ jsx34("div", { ref, className, "data-value": current, "data-variant": variant, children: /* @__PURE__ */ jsx34(TabsContext.Provider, { value: contextValue, children }) });
|
|
2609
2769
|
}
|
|
2610
2770
|
);
|
|
2611
2771
|
Tabs.displayName = "Tabs";
|
|
@@ -2630,7 +2790,7 @@ var tabsListVariants = cva5("inline-flex items-center justify-center text-muted-
|
|
|
2630
2790
|
var TabsList = React35.forwardRef(
|
|
2631
2791
|
({ className, ...props }, ref) => {
|
|
2632
2792
|
const ctx = React35.useContext(TabsContext);
|
|
2633
|
-
return /* @__PURE__ */
|
|
2793
|
+
return /* @__PURE__ */ jsx34(
|
|
2634
2794
|
"div",
|
|
2635
2795
|
{
|
|
2636
2796
|
ref,
|
|
@@ -2682,7 +2842,7 @@ var TabsTrigger = React35.forwardRef(
|
|
|
2682
2842
|
target.click();
|
|
2683
2843
|
};
|
|
2684
2844
|
const siblingTabs = (button) => Array.from(button.parentElement?.querySelectorAll('[role="tab"]') ?? []);
|
|
2685
|
-
return /* @__PURE__ */
|
|
2845
|
+
return /* @__PURE__ */ jsx34(
|
|
2686
2846
|
"button",
|
|
2687
2847
|
{
|
|
2688
2848
|
ref,
|
|
@@ -2737,7 +2897,7 @@ var TabsContent = React35.forwardRef(
|
|
|
2737
2897
|
registerPanel(value);
|
|
2738
2898
|
return () => unregisterPanel(value);
|
|
2739
2899
|
}, [registerPanel, unregisterPanel, value]);
|
|
2740
|
-
return /* @__PURE__ */
|
|
2900
|
+
return /* @__PURE__ */ jsx34(
|
|
2741
2901
|
"div",
|
|
2742
2902
|
{
|
|
2743
2903
|
ref,
|
|
@@ -2761,7 +2921,7 @@ TabsContent.displayName = "TabsContent";
|
|
|
2761
2921
|
// src/components/link-tabs/LinkTabs.tsx
|
|
2762
2922
|
import * as React36 from "react";
|
|
2763
2923
|
import { cva as cva6 } from "class-variance-authority";
|
|
2764
|
-
import { Fragment as
|
|
2924
|
+
import { Fragment as Fragment7, jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2765
2925
|
var listVariants = cva6("inline-flex items-center", {
|
|
2766
2926
|
variants: {
|
|
2767
2927
|
variant: {
|
|
@@ -2813,14 +2973,14 @@ var LinkTabs = React36.forwardRef(function LinkTabs2({
|
|
|
2813
2973
|
...props
|
|
2814
2974
|
}, ref) {
|
|
2815
2975
|
const Link3 = linkComponent ?? "a";
|
|
2816
|
-
return /* @__PURE__ */
|
|
2976
|
+
return /* @__PURE__ */ jsx35("nav", { ref, "aria-label": label, className: cn(listVariants({ variant, size }), className), ...props, children: items.map((item) => {
|
|
2817
2977
|
const active = isActive(item, activeHref);
|
|
2818
|
-
const content = /* @__PURE__ */
|
|
2978
|
+
const content = /* @__PURE__ */ jsxs22(Fragment7, { children: [
|
|
2819
2979
|
item.icon,
|
|
2820
2980
|
item.label
|
|
2821
2981
|
] });
|
|
2822
2982
|
if (item.disabled) {
|
|
2823
|
-
return /* @__PURE__ */
|
|
2983
|
+
return /* @__PURE__ */ jsx35(
|
|
2824
2984
|
"span",
|
|
2825
2985
|
{
|
|
2826
2986
|
"aria-disabled": "true",
|
|
@@ -2831,7 +2991,7 @@ var LinkTabs = React36.forwardRef(function LinkTabs2({
|
|
|
2831
2991
|
item.href
|
|
2832
2992
|
);
|
|
2833
2993
|
}
|
|
2834
|
-
return /* @__PURE__ */
|
|
2994
|
+
return /* @__PURE__ */ jsx35(
|
|
2835
2995
|
Link3,
|
|
2836
2996
|
{
|
|
2837
2997
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -2848,11 +3008,11 @@ LinkTabs.displayName = "LinkTabs";
|
|
|
2848
3008
|
|
|
2849
3009
|
// src/components/theme-toggle/ThemeToggle.tsx
|
|
2850
3010
|
import * as React37 from "react";
|
|
2851
|
-
import { jsx as
|
|
3011
|
+
import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2852
3012
|
var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChange, labels, size = "md", className, ...props }, ref) {
|
|
2853
3013
|
const next = theme === "dark" ? "light" : "dark";
|
|
2854
3014
|
const label = next === "dark" ? labels?.toDark ?? "Switch to dark theme" : labels?.toLight ?? "Switch to light theme";
|
|
2855
|
-
return /* @__PURE__ */
|
|
3015
|
+
return /* @__PURE__ */ jsx36(
|
|
2856
3016
|
"button",
|
|
2857
3017
|
{
|
|
2858
3018
|
ref,
|
|
@@ -2868,7 +3028,7 @@ var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChang
|
|
|
2868
3028
|
className
|
|
2869
3029
|
),
|
|
2870
3030
|
...props,
|
|
2871
|
-
children: theme === "dark" ? /* @__PURE__ */
|
|
3031
|
+
children: theme === "dark" ? /* @__PURE__ */ jsxs23(
|
|
2872
3032
|
"svg",
|
|
2873
3033
|
{
|
|
2874
3034
|
viewBox: "0 0 24 24",
|
|
@@ -2880,11 +3040,11 @@ var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChang
|
|
|
2880
3040
|
strokeLinejoin: "round",
|
|
2881
3041
|
"aria-hidden": "true",
|
|
2882
3042
|
children: [
|
|
2883
|
-
/* @__PURE__ */
|
|
2884
|
-
/* @__PURE__ */
|
|
3043
|
+
/* @__PURE__ */ jsx36("circle", { cx: "12", cy: "12", r: "4" }),
|
|
3044
|
+
/* @__PURE__ */ jsx36("path", { d: "M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41" })
|
|
2885
3045
|
]
|
|
2886
3046
|
}
|
|
2887
|
-
) : /* @__PURE__ */
|
|
3047
|
+
) : /* @__PURE__ */ jsx36(
|
|
2888
3048
|
"svg",
|
|
2889
3049
|
{
|
|
2890
3050
|
viewBox: "0 0 24 24",
|
|
@@ -2895,7 +3055,7 @@ var ThemeToggle = React37.forwardRef(function ThemeToggle2({ theme, onThemeChang
|
|
|
2895
3055
|
strokeLinecap: "round",
|
|
2896
3056
|
strokeLinejoin: "round",
|
|
2897
3057
|
"aria-hidden": "true",
|
|
2898
|
-
children: /* @__PURE__ */
|
|
3058
|
+
children: /* @__PURE__ */ jsx36("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z" })
|
|
2899
3059
|
}
|
|
2900
3060
|
)
|
|
2901
3061
|
}
|
|
@@ -2906,11 +3066,11 @@ ThemeToggle.displayName = "ThemeToggle";
|
|
|
2906
3066
|
// src/components/card/Card.tsx
|
|
2907
3067
|
import * as React38 from "react";
|
|
2908
3068
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
2909
|
-
import { jsx as
|
|
3069
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2910
3070
|
var Card = React38.forwardRef(
|
|
2911
3071
|
({ className, asChild = false, ...props }, ref) => {
|
|
2912
3072
|
const Comp = asChild ? Slot3 : "div";
|
|
2913
|
-
return /* @__PURE__ */
|
|
3073
|
+
return /* @__PURE__ */ jsx37(
|
|
2914
3074
|
Comp,
|
|
2915
3075
|
{
|
|
2916
3076
|
ref,
|
|
@@ -2922,11 +3082,11 @@ var Card = React38.forwardRef(
|
|
|
2922
3082
|
);
|
|
2923
3083
|
Card.displayName = "Card";
|
|
2924
3084
|
var CardHeader = React38.forwardRef(
|
|
2925
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3085
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx37("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
2926
3086
|
);
|
|
2927
3087
|
CardHeader.displayName = "CardHeader";
|
|
2928
3088
|
var CardTitle = React38.forwardRef(
|
|
2929
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3089
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
2930
3090
|
"h3",
|
|
2931
3091
|
{
|
|
2932
3092
|
ref,
|
|
@@ -2937,21 +3097,21 @@ var CardTitle = React38.forwardRef(
|
|
|
2937
3097
|
);
|
|
2938
3098
|
CardTitle.displayName = "CardTitle";
|
|
2939
3099
|
var CardDescription = React38.forwardRef(
|
|
2940
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3100
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx37("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
2941
3101
|
);
|
|
2942
3102
|
CardDescription.displayName = "CardDescription";
|
|
2943
3103
|
var CardContent = React38.forwardRef(
|
|
2944
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3104
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx37("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
2945
3105
|
);
|
|
2946
3106
|
CardContent.displayName = "CardContent";
|
|
2947
3107
|
var CardFooter = React38.forwardRef(
|
|
2948
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3108
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx37("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
2949
3109
|
);
|
|
2950
3110
|
CardFooter.displayName = "CardFooter";
|
|
2951
3111
|
|
|
2952
3112
|
// src/components/confirm-dialog/ConfirmDialog.tsx
|
|
2953
3113
|
import * as React39 from "react";
|
|
2954
|
-
import { jsx as
|
|
3114
|
+
import { jsx as jsx38, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2955
3115
|
function ConfirmDialog({
|
|
2956
3116
|
open,
|
|
2957
3117
|
onOpenChange,
|
|
@@ -2974,7 +3134,7 @@ function ConfirmDialog({
|
|
|
2974
3134
|
setPending(false);
|
|
2975
3135
|
}
|
|
2976
3136
|
};
|
|
2977
|
-
return /* @__PURE__ */
|
|
3137
|
+
return /* @__PURE__ */ jsx38(
|
|
2978
3138
|
Dialog,
|
|
2979
3139
|
{
|
|
2980
3140
|
open,
|
|
@@ -2985,9 +3145,9 @@ function ConfirmDialog({
|
|
|
2985
3145
|
title,
|
|
2986
3146
|
description,
|
|
2987
3147
|
size: "sm",
|
|
2988
|
-
footer: /* @__PURE__ */
|
|
2989
|
-
/* @__PURE__ */
|
|
2990
|
-
/* @__PURE__ */
|
|
3148
|
+
footer: /* @__PURE__ */ jsxs24(DialogFooter, { children: [
|
|
3149
|
+
/* @__PURE__ */ jsx38(Button, { variant: "ghost", onClick: () => onOpenChange(false), disabled: pending, children: cancelLabel }),
|
|
3150
|
+
/* @__PURE__ */ jsx38(
|
|
2991
3151
|
Button,
|
|
2992
3152
|
{
|
|
2993
3153
|
variant: destructive ? "destructive" : "default",
|
|
@@ -3004,7 +3164,7 @@ function ConfirmDialog({
|
|
|
3004
3164
|
|
|
3005
3165
|
// src/components/table-of-contents/TableOfContents.tsx
|
|
3006
3166
|
import * as React40 from "react";
|
|
3007
|
-
import { jsx as
|
|
3167
|
+
import { jsx as jsx39, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3008
3168
|
function TableOfContents({
|
|
3009
3169
|
headings,
|
|
3010
3170
|
activeId,
|
|
@@ -3016,17 +3176,17 @@ function TableOfContents({
|
|
|
3016
3176
|
className,
|
|
3017
3177
|
...props
|
|
3018
3178
|
}) {
|
|
3019
|
-
return /* @__PURE__ */
|
|
3179
|
+
return /* @__PURE__ */ jsxs25(
|
|
3020
3180
|
"nav",
|
|
3021
3181
|
{
|
|
3022
3182
|
"aria-label": ariaLabel ?? label,
|
|
3023
3183
|
className: cn("text-sm", sticky && "sticky top-20 max-h-[calc(100vh-6rem)] overflow-y-auto", className),
|
|
3024
3184
|
...props,
|
|
3025
3185
|
children: [
|
|
3026
|
-
/* @__PURE__ */
|
|
3027
|
-
/* @__PURE__ */
|
|
3186
|
+
/* @__PURE__ */ jsx39("p", { className: cn("mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground", labelClassName), children: label }),
|
|
3187
|
+
/* @__PURE__ */ jsx39("ul", { className: "space-y-1 border-l border-border", children: headings.map((heading) => {
|
|
3028
3188
|
const active = heading.id === activeId;
|
|
3029
|
-
return /* @__PURE__ */
|
|
3189
|
+
return /* @__PURE__ */ jsx39("li", { style: { paddingLeft: `${(heading.level - 2) * 0.75}rem` }, children: /* @__PURE__ */ jsx39(
|
|
3030
3190
|
"a",
|
|
3031
3191
|
{
|
|
3032
3192
|
href: `#${heading.id}`,
|
|
@@ -3079,14 +3239,14 @@ function useScrollSpy(ids, options) {
|
|
|
3079
3239
|
|
|
3080
3240
|
// src/components/prose/Prose.tsx
|
|
3081
3241
|
import * as React41 from "react";
|
|
3082
|
-
import { jsx as
|
|
3242
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3083
3243
|
var sizeClasses3 = {
|
|
3084
3244
|
sm: "text-sm [&_h2]:text-xl [&_h3]:text-lg",
|
|
3085
3245
|
md: "text-base [&_h2]:text-2xl [&_h3]:text-xl",
|
|
3086
3246
|
lg: "text-lg [&_h2]:text-3xl [&_h3]:text-2xl"
|
|
3087
3247
|
};
|
|
3088
3248
|
var Prose = React41.forwardRef(function Prose2({ size = "md", className, ...props }, ref) {
|
|
3089
|
-
return /* @__PURE__ */
|
|
3249
|
+
return /* @__PURE__ */ jsx40(
|
|
3090
3250
|
"div",
|
|
3091
3251
|
{
|
|
3092
3252
|
ref,
|
|
@@ -3125,7 +3285,7 @@ var Prose = React41.forwardRef(function Prose2({ size = "md", className, ...prop
|
|
|
3125
3285
|
});
|
|
3126
3286
|
|
|
3127
3287
|
// src/components/site-footer/SiteFooter.tsx
|
|
3128
|
-
import { jsx as
|
|
3288
|
+
import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3129
3289
|
function isActive2(itemHref, activeHref, match) {
|
|
3130
3290
|
if (!activeHref) return false;
|
|
3131
3291
|
if (itemHref === activeHref) return true;
|
|
@@ -3146,17 +3306,17 @@ function SiteFooter({
|
|
|
3146
3306
|
}) {
|
|
3147
3307
|
const Link3 = linkComponent ?? "a";
|
|
3148
3308
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
3149
|
-
return /* @__PURE__ */
|
|
3150
|
-
/* @__PURE__ */
|
|
3151
|
-
/* @__PURE__ */
|
|
3309
|
+
return /* @__PURE__ */ jsxs26("footer", { className: cn("border-t border-border bg-muted/30", className), ...props, children: [
|
|
3310
|
+
/* @__PURE__ */ jsxs26("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: [
|
|
3311
|
+
/* @__PURE__ */ jsxs26("div", { className: "min-w-0", children: [
|
|
3152
3312
|
brand,
|
|
3153
|
-
tagline && /* @__PURE__ */
|
|
3313
|
+
tagline && /* @__PURE__ */ jsx41("p", { className: "mt-3 max-w-56 text-sm text-muted-foreground", children: tagline })
|
|
3154
3314
|
] }),
|
|
3155
|
-
columns.map((column) => /* @__PURE__ */
|
|
3156
|
-
/* @__PURE__ */
|
|
3157
|
-
/* @__PURE__ */
|
|
3315
|
+
columns.map((column) => /* @__PURE__ */ jsxs26("div", { children: [
|
|
3316
|
+
/* @__PURE__ */ jsx41("h2", { className: "mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: column.title }),
|
|
3317
|
+
/* @__PURE__ */ jsx41("ul", { className: "m-0 list-none space-y-2 p-0 text-sm", children: column.links.map((link) => {
|
|
3158
3318
|
const active = isActive2(link.href, activeHref, match);
|
|
3159
|
-
return /* @__PURE__ */
|
|
3319
|
+
return /* @__PURE__ */ jsx41("li", { children: /* @__PURE__ */ jsx41(
|
|
3160
3320
|
Link3,
|
|
3161
3321
|
{
|
|
3162
3322
|
...destination(link.href),
|
|
@@ -3172,13 +3332,13 @@ function SiteFooter({
|
|
|
3172
3332
|
}) })
|
|
3173
3333
|
] }, column.title))
|
|
3174
3334
|
] }),
|
|
3175
|
-
legal && /* @__PURE__ */
|
|
3335
|
+
legal && /* @__PURE__ */ jsx41("div", { className: "border-t border-border", children: /* @__PURE__ */ jsx41("div", { className: "mx-auto flex w-full max-w-7xl flex-wrap items-center justify-between gap-2 px-4 py-4 text-xs text-muted-foreground sm:px-6", children: legal }) })
|
|
3176
3336
|
] });
|
|
3177
3337
|
}
|
|
3178
3338
|
|
|
3179
3339
|
// src/components/site-header/SiteHeader.tsx
|
|
3180
3340
|
import * as React42 from "react";
|
|
3181
|
-
import { Fragment as
|
|
3341
|
+
import { Fragment as Fragment8, jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3182
3342
|
function isActive3(itemHref, activeHref, match) {
|
|
3183
3343
|
if (!activeHref) return false;
|
|
3184
3344
|
if (itemHref === activeHref) return true;
|
|
@@ -3212,7 +3372,7 @@ function SiteHeader({
|
|
|
3212
3372
|
const destination = (href) => linkHrefProp === "to" ? { to: href } : { href };
|
|
3213
3373
|
const navLink = (item, extra) => {
|
|
3214
3374
|
const active = isActive3(item.href, activeHref, match);
|
|
3215
|
-
return /* @__PURE__ */
|
|
3375
|
+
return /* @__PURE__ */ jsx42(
|
|
3216
3376
|
Link3,
|
|
3217
3377
|
{
|
|
3218
3378
|
...destination(item.href),
|
|
@@ -3229,8 +3389,8 @@ function SiteHeader({
|
|
|
3229
3389
|
item.href
|
|
3230
3390
|
);
|
|
3231
3391
|
};
|
|
3232
|
-
return /* @__PURE__ */
|
|
3233
|
-
/* @__PURE__ */
|
|
3392
|
+
return /* @__PURE__ */ jsxs27(Fragment8, { children: [
|
|
3393
|
+
/* @__PURE__ */ jsx42(
|
|
3234
3394
|
"header",
|
|
3235
3395
|
{
|
|
3236
3396
|
className: cn(
|
|
@@ -3239,14 +3399,14 @@ function SiteHeader({
|
|
|
3239
3399
|
className
|
|
3240
3400
|
),
|
|
3241
3401
|
...props,
|
|
3242
|
-
children: /* @__PURE__ */
|
|
3402
|
+
children: /* @__PURE__ */ jsxs27(
|
|
3243
3403
|
"nav",
|
|
3244
3404
|
{
|
|
3245
3405
|
"aria-label": navLabel,
|
|
3246
3406
|
className: cn("mx-auto flex h-14 w-full max-w-7xl items-center justify-between gap-4 px-4 sm:px-6", navClassName),
|
|
3247
3407
|
children: [
|
|
3248
|
-
/* @__PURE__ */
|
|
3249
|
-
/* @__PURE__ */
|
|
3408
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex min-w-0 items-center gap-6", children: [
|
|
3409
|
+
/* @__PURE__ */ jsx42(
|
|
3250
3410
|
Link3,
|
|
3251
3411
|
{
|
|
3252
3412
|
...destination("/"),
|
|
@@ -3255,11 +3415,11 @@ function SiteHeader({
|
|
|
3255
3415
|
children: brand
|
|
3256
3416
|
}
|
|
3257
3417
|
),
|
|
3258
|
-
/* @__PURE__ */
|
|
3418
|
+
/* @__PURE__ */ jsx42("div", { className: cn("hidden items-center gap-5", desktopBreakpoint === "lg" ? "lg:flex" : "md:flex"), children: items.map((item) => navLink(item)) })
|
|
3259
3419
|
] }),
|
|
3260
|
-
/* @__PURE__ */
|
|
3420
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
|
|
3261
3421
|
actions,
|
|
3262
|
-
showMobileTrigger && /* @__PURE__ */
|
|
3422
|
+
showMobileTrigger && /* @__PURE__ */ jsx42(
|
|
3263
3423
|
"button",
|
|
3264
3424
|
{
|
|
3265
3425
|
type: "button",
|
|
@@ -3272,7 +3432,7 @@ function SiteHeader({
|
|
|
3272
3432
|
"rounded-md border border-border p-2 text-muted-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3273
3433
|
desktopBreakpoint === "lg" ? "lg:hidden" : "md:hidden"
|
|
3274
3434
|
),
|
|
3275
|
-
children: /* @__PURE__ */
|
|
3435
|
+
children: /* @__PURE__ */ jsx42(
|
|
3276
3436
|
"svg",
|
|
3277
3437
|
{
|
|
3278
3438
|
"aria-hidden": "true",
|
|
@@ -3282,7 +3442,7 @@ function SiteHeader({
|
|
|
3282
3442
|
stroke: "currentColor",
|
|
3283
3443
|
strokeWidth: "2",
|
|
3284
3444
|
strokeLinecap: "round",
|
|
3285
|
-
children: mobileOpen ? /* @__PURE__ */
|
|
3445
|
+
children: mobileOpen ? /* @__PURE__ */ jsx42("path", { d: "M6 6l12 12M18 6L6 18" }) : /* @__PURE__ */ jsx42("path", { d: "M4 7h16M4 12h16M4 17h16" })
|
|
3286
3446
|
}
|
|
3287
3447
|
)
|
|
3288
3448
|
}
|
|
@@ -3293,7 +3453,7 @@ function SiteHeader({
|
|
|
3293
3453
|
)
|
|
3294
3454
|
}
|
|
3295
3455
|
),
|
|
3296
|
-
showMobileTrigger && /* @__PURE__ */
|
|
3456
|
+
showMobileTrigger && /* @__PURE__ */ jsxs27(
|
|
3297
3457
|
Drawer,
|
|
3298
3458
|
{
|
|
3299
3459
|
open: mobileOpen,
|
|
@@ -3303,8 +3463,8 @@ function SiteHeader({
|
|
|
3303
3463
|
size: "sm",
|
|
3304
3464
|
animate: true,
|
|
3305
3465
|
children: [
|
|
3306
|
-
/* @__PURE__ */
|
|
3307
|
-
(mobileActions ?? actions) && /* @__PURE__ */
|
|
3466
|
+
/* @__PURE__ */ jsx42("nav", { id: menuId, "aria-label": mobileNavLabel, className: "flex flex-col gap-1", children: items.map((item) => navLink(item, "mobile")) }),
|
|
3467
|
+
(mobileActions ?? actions) && /* @__PURE__ */ jsx42("div", { className: "mt-4 border-t border-border pt-4", children: mobileActions ?? actions })
|
|
3308
3468
|
]
|
|
3309
3469
|
}
|
|
3310
3470
|
)
|
|
@@ -3313,7 +3473,7 @@ function SiteHeader({
|
|
|
3313
3473
|
|
|
3314
3474
|
// src/components/accordion/Accordion.tsx
|
|
3315
3475
|
import * as React43 from "react";
|
|
3316
|
-
import { jsx as
|
|
3476
|
+
import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3317
3477
|
var AccordionContext = React43.createContext({
|
|
3318
3478
|
openItems: /* @__PURE__ */ new Set(),
|
|
3319
3479
|
toggle: () => {
|
|
@@ -3328,6 +3488,7 @@ var Accordion = React43.forwardRef(
|
|
|
3328
3488
|
collapsible = true,
|
|
3329
3489
|
variant = "default",
|
|
3330
3490
|
gap,
|
|
3491
|
+
items,
|
|
3331
3492
|
className,
|
|
3332
3493
|
style,
|
|
3333
3494
|
children
|
|
@@ -3343,7 +3504,7 @@ var Accordion = React43.forwardRef(
|
|
|
3343
3504
|
[current, collapsible, value, onValueChange]
|
|
3344
3505
|
);
|
|
3345
3506
|
const gapResolved = resolveGap(gap);
|
|
3346
|
-
return /* @__PURE__ */
|
|
3507
|
+
return /* @__PURE__ */ jsx43(
|
|
3347
3508
|
"div",
|
|
3348
3509
|
{
|
|
3349
3510
|
ref,
|
|
@@ -3356,14 +3517,17 @@ var Accordion = React43.forwardRef(
|
|
|
3356
3517
|
className
|
|
3357
3518
|
),
|
|
3358
3519
|
style: { ...gapResolved.style, ...style },
|
|
3359
|
-
children: /* @__PURE__ */
|
|
3520
|
+
children: /* @__PURE__ */ jsx43(AccordionContext.Provider, { value: { openItems: new Set(current), toggle, collapsible }, children: items ? items.map((item) => /* @__PURE__ */ jsxs28(AccordionItem, { id: item.id, children: [
|
|
3521
|
+
/* @__PURE__ */ jsx43(AccordionTrigger, { disabled: item.disabled, children: item.title }),
|
|
3522
|
+
/* @__PURE__ */ jsx43(AccordionContent, { children: item.content })
|
|
3523
|
+
] }, item.id)) : children })
|
|
3360
3524
|
}
|
|
3361
3525
|
);
|
|
3362
3526
|
}
|
|
3363
3527
|
);
|
|
3364
3528
|
Accordion.displayName = "Accordion";
|
|
3365
3529
|
var AccordionItem = React43.forwardRef(
|
|
3366
|
-
({ id, className, children }, ref) => /* @__PURE__ */
|
|
3530
|
+
({ id, className, children }, ref) => /* @__PURE__ */ jsx43("div", { ref, "data-accordion-item": id, className, children: /* @__PURE__ */ jsx43(AccordionItemContext.Provider, { value: { id }, children }) })
|
|
3367
3531
|
);
|
|
3368
3532
|
AccordionItem.displayName = "AccordionItem";
|
|
3369
3533
|
var AccordionItemContext = React43.createContext({ id: "" });
|
|
@@ -3374,7 +3538,7 @@ var AccordionTrigger = React43.forwardRef(
|
|
|
3374
3538
|
const open = openItems.has(id);
|
|
3375
3539
|
const panelId = `${id}-panel`;
|
|
3376
3540
|
const triggerId = `${id}-trigger`;
|
|
3377
|
-
return /* @__PURE__ */
|
|
3541
|
+
return /* @__PURE__ */ jsxs28(
|
|
3378
3542
|
"button",
|
|
3379
3543
|
{
|
|
3380
3544
|
ref,
|
|
@@ -3393,7 +3557,7 @@ var AccordionTrigger = React43.forwardRef(
|
|
|
3393
3557
|
...props,
|
|
3394
3558
|
children: [
|
|
3395
3559
|
children,
|
|
3396
|
-
icon ?? /* @__PURE__ */
|
|
3560
|
+
icon ?? /* @__PURE__ */ jsx43(
|
|
3397
3561
|
"svg",
|
|
3398
3562
|
{
|
|
3399
3563
|
"aria-hidden": "true",
|
|
@@ -3403,7 +3567,7 @@ var AccordionTrigger = React43.forwardRef(
|
|
|
3403
3567
|
strokeWidth: "2",
|
|
3404
3568
|
strokeLinecap: "round",
|
|
3405
3569
|
className: cn("h-4 w-4 shrink-0 transition-transform duration-200", open && "rotate-180"),
|
|
3406
|
-
children: /* @__PURE__ */
|
|
3570
|
+
children: /* @__PURE__ */ jsx43("polyline", { points: "6 9 12 15 18 9" })
|
|
3407
3571
|
}
|
|
3408
3572
|
)
|
|
3409
3573
|
]
|
|
@@ -3437,7 +3601,7 @@ var AccordionContent = React43.forwardRef(
|
|
|
3437
3601
|
cancelAnimationFrame(second);
|
|
3438
3602
|
};
|
|
3439
3603
|
}, [open]);
|
|
3440
|
-
return /* @__PURE__ */
|
|
3604
|
+
return /* @__PURE__ */ jsx43(
|
|
3441
3605
|
"div",
|
|
3442
3606
|
{
|
|
3443
3607
|
ref,
|
|
@@ -3456,7 +3620,7 @@ var AccordionContent = React43.forwardRef(
|
|
|
3456
3620
|
className
|
|
3457
3621
|
),
|
|
3458
3622
|
...props,
|
|
3459
|
-
children: /* @__PURE__ */
|
|
3623
|
+
children: /* @__PURE__ */ jsx43("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx43("div", { className: "px-4 pb-3 text-sm text-muted-foreground", children }) })
|
|
3460
3624
|
}
|
|
3461
3625
|
);
|
|
3462
3626
|
}
|
|
@@ -3465,9 +3629,9 @@ AccordionContent.displayName = "AccordionContent";
|
|
|
3465
3629
|
|
|
3466
3630
|
// src/components/table/Table.tsx
|
|
3467
3631
|
import * as React44 from "react";
|
|
3468
|
-
import { jsx as
|
|
3632
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
3469
3633
|
var Table = React44.forwardRef(
|
|
3470
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3634
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx44(
|
|
3471
3635
|
"table",
|
|
3472
3636
|
{
|
|
3473
3637
|
ref,
|
|
@@ -3478,15 +3642,15 @@ var Table = React44.forwardRef(
|
|
|
3478
3642
|
);
|
|
3479
3643
|
Table.displayName = "Table";
|
|
3480
3644
|
var TableHeader = React44.forwardRef(
|
|
3481
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3645
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44("thead", { ref, className: cn("[&_tr]:border-b", className), ...props })
|
|
3482
3646
|
);
|
|
3483
3647
|
TableHeader.displayName = "TableHeader";
|
|
3484
3648
|
var TableBody = React44.forwardRef(
|
|
3485
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3649
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props })
|
|
3486
3650
|
);
|
|
3487
3651
|
TableBody.displayName = "TableBody";
|
|
3488
3652
|
var TableFooter = React44.forwardRef(
|
|
3489
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3653
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
|
|
3490
3654
|
"tfoot",
|
|
3491
3655
|
{
|
|
3492
3656
|
ref,
|
|
@@ -3497,7 +3661,7 @@ var TableFooter = React44.forwardRef(
|
|
|
3497
3661
|
);
|
|
3498
3662
|
TableFooter.displayName = "TableFooter";
|
|
3499
3663
|
var TableRow = React44.forwardRef(
|
|
3500
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3664
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
|
|
3501
3665
|
"tr",
|
|
3502
3666
|
{
|
|
3503
3667
|
ref,
|
|
@@ -3511,7 +3675,7 @@ var TableRow = React44.forwardRef(
|
|
|
3511
3675
|
);
|
|
3512
3676
|
TableRow.displayName = "TableRow";
|
|
3513
3677
|
var TableHead = React44.forwardRef(
|
|
3514
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3678
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
|
|
3515
3679
|
"th",
|
|
3516
3680
|
{
|
|
3517
3681
|
ref,
|
|
@@ -3526,11 +3690,11 @@ var TableHead = React44.forwardRef(
|
|
|
3526
3690
|
);
|
|
3527
3691
|
TableHead.displayName = "TableHead";
|
|
3528
3692
|
var TableCell = React44.forwardRef(
|
|
3529
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3693
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44("td", { ref, className: cn("px-3 py-2 align-middle", className), ...props })
|
|
3530
3694
|
);
|
|
3531
3695
|
TableCell.displayName = "TableCell";
|
|
3532
3696
|
var TableCaption = React44.forwardRef(
|
|
3533
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3697
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44("caption", { ref, className: cn("mt-3 text-xs text-muted-foreground", className), ...props })
|
|
3534
3698
|
);
|
|
3535
3699
|
TableCaption.displayName = "TableCaption";
|
|
3536
3700
|
|
|
@@ -3539,7 +3703,7 @@ import * as React46 from "react";
|
|
|
3539
3703
|
|
|
3540
3704
|
// src/components/pagination/Pagination.tsx
|
|
3541
3705
|
import * as React45 from "react";
|
|
3542
|
-
import { jsx as
|
|
3706
|
+
import { jsx as jsx45, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3543
3707
|
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";
|
|
3544
3708
|
var controlDisabledClass = "pointer-events-none opacity-50";
|
|
3545
3709
|
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";
|
|
@@ -3592,11 +3756,11 @@ var Pagination = React45.forwardRef(
|
|
|
3592
3756
|
if (linkMode) {
|
|
3593
3757
|
const href = hrefFor(target);
|
|
3594
3758
|
if (disabled || href === void 0) {
|
|
3595
|
-
return /* @__PURE__ */
|
|
3759
|
+
return /* @__PURE__ */ jsx45("span", { "aria-label": label, "aria-disabled": "true", className: cn(controlClass, controlDisabledClass), children: content });
|
|
3596
3760
|
}
|
|
3597
|
-
return /* @__PURE__ */
|
|
3761
|
+
return /* @__PURE__ */ jsx45(LinkEl, { ...destination(href), "aria-label": label, className: controlClass, children: content });
|
|
3598
3762
|
}
|
|
3599
|
-
return /* @__PURE__ */
|
|
3763
|
+
return /* @__PURE__ */ jsx45(
|
|
3600
3764
|
"button",
|
|
3601
3765
|
{
|
|
3602
3766
|
type: "button",
|
|
@@ -3615,11 +3779,11 @@ var Pagination = React45.forwardRef(
|
|
|
3615
3779
|
if (linkMode) {
|
|
3616
3780
|
const href = hrefFor(entry);
|
|
3617
3781
|
if (isCurrent || href === void 0) {
|
|
3618
|
-
return /* @__PURE__ */
|
|
3782
|
+
return /* @__PURE__ */ jsx45("span", { "aria-current": "page", "aria-label": label, className: classes, children: entry }, entry);
|
|
3619
3783
|
}
|
|
3620
|
-
return /* @__PURE__ */
|
|
3784
|
+
return /* @__PURE__ */ jsx45(LinkEl, { ...destination(href), "aria-label": label, className: classes, children: entry }, entry);
|
|
3621
3785
|
}
|
|
3622
|
-
return /* @__PURE__ */
|
|
3786
|
+
return /* @__PURE__ */ jsx45(
|
|
3623
3787
|
"button",
|
|
3624
3788
|
{
|
|
3625
3789
|
type: "button",
|
|
@@ -3632,7 +3796,7 @@ var Pagination = React45.forwardRef(
|
|
|
3632
3796
|
entry
|
|
3633
3797
|
);
|
|
3634
3798
|
};
|
|
3635
|
-
const nav = /* @__PURE__ */
|
|
3799
|
+
const nav = /* @__PURE__ */ jsxs29(
|
|
3636
3800
|
"nav",
|
|
3637
3801
|
{
|
|
3638
3802
|
ref,
|
|
@@ -3643,7 +3807,7 @@ var Pagination = React45.forwardRef(
|
|
|
3643
3807
|
withFirst && step(1, labels?.first ?? "First page", icons?.first ?? "\xAB", page <= 1),
|
|
3644
3808
|
step(page - 1, labels?.previous ?? "Previous page", icons?.previous ?? "<", page <= 1),
|
|
3645
3809
|
pages.map(
|
|
3646
|
-
(entry, index) => entry === "ellipsis" ? /* @__PURE__ */
|
|
3810
|
+
(entry, index) => entry === "ellipsis" ? /* @__PURE__ */ jsx45(
|
|
3647
3811
|
"span",
|
|
3648
3812
|
{
|
|
3649
3813
|
"aria-hidden": "true",
|
|
@@ -3659,8 +3823,8 @@ var Pagination = React45.forwardRef(
|
|
|
3659
3823
|
}
|
|
3660
3824
|
);
|
|
3661
3825
|
if (!summaryEnabled) return nav;
|
|
3662
|
-
return /* @__PURE__ */
|
|
3663
|
-
/* @__PURE__ */
|
|
3826
|
+
return /* @__PURE__ */ jsxs29("div", { className: cn("flex flex-wrap items-center justify-between gap-3", className), children: [
|
|
3827
|
+
/* @__PURE__ */ jsx45("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}` }),
|
|
3664
3828
|
nav
|
|
3665
3829
|
] });
|
|
3666
3830
|
}
|
|
@@ -3668,7 +3832,7 @@ var Pagination = React45.forwardRef(
|
|
|
3668
3832
|
Pagination.displayName = "Pagination";
|
|
3669
3833
|
|
|
3670
3834
|
// src/components/data-table/DataTable.tsx
|
|
3671
|
-
import { jsx as
|
|
3835
|
+
import { jsx as jsx46, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3672
3836
|
function compareValues(a, b) {
|
|
3673
3837
|
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
3674
3838
|
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
@@ -3776,22 +3940,22 @@ function DataTable({
|
|
|
3776
3940
|
return String(raw);
|
|
3777
3941
|
};
|
|
3778
3942
|
const alignClass = (align) => align === "right" ? "text-right" : align === "center" ? "text-center" : "text-left";
|
|
3779
|
-
return /* @__PURE__ */
|
|
3780
|
-
selectionEnabled && selectedIds.length > 0 && bulkActions && /* @__PURE__ */
|
|
3781
|
-
/* @__PURE__ */
|
|
3943
|
+
return /* @__PURE__ */ jsxs30("div", { className: cn("w-full space-y-3", className), children: [
|
|
3944
|
+
selectionEnabled && selectedIds.length > 0 && bulkActions && /* @__PURE__ */ jsxs30("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: [
|
|
3945
|
+
/* @__PURE__ */ jsxs30("span", { className: "font-medium", children: [
|
|
3782
3946
|
selectedIds.length,
|
|
3783
3947
|
" selected"
|
|
3784
3948
|
] }),
|
|
3785
|
-
/* @__PURE__ */
|
|
3949
|
+
/* @__PURE__ */ jsx46("div", { className: "flex flex-wrap items-center gap-2", children: bulkActions })
|
|
3786
3950
|
] }),
|
|
3787
|
-
/* @__PURE__ */
|
|
3951
|
+
/* @__PURE__ */ jsx46("div", { className: "w-full overflow-x-auto rounded-lg border border-border", children: /* @__PURE__ */ jsxs30(
|
|
3788
3952
|
"table",
|
|
3789
3953
|
{
|
|
3790
3954
|
className: cn("w-full caption-bottom", density === "compact" ? "text-xs" : "text-sm"),
|
|
3791
3955
|
children: [
|
|
3792
|
-
caption && /* @__PURE__ */
|
|
3793
|
-
/* @__PURE__ */
|
|
3794
|
-
selectionEnabled && /* @__PURE__ */
|
|
3956
|
+
caption && /* @__PURE__ */ jsx46("caption", { className: "px-3 py-2 text-left text-xs text-muted-foreground", children: caption }),
|
|
3957
|
+
/* @__PURE__ */ jsx46("thead", { className: cn("bg-muted/50", stickyHeader && "sticky top-0 z-10 bg-background"), children: /* @__PURE__ */ jsxs30("tr", { children: [
|
|
3958
|
+
selectionEnabled && /* @__PURE__ */ jsx46("th", { scope: "col", className: "w-10 border-b border-border px-3 py-2", children: /* @__PURE__ */ jsx46(
|
|
3795
3959
|
Checkbox,
|
|
3796
3960
|
{
|
|
3797
3961
|
"aria-label": selectAllLabel,
|
|
@@ -3805,7 +3969,7 @@ function DataTable({
|
|
|
3805
3969
|
columns.map((column) => {
|
|
3806
3970
|
const isSorted = sort?.key === column.key;
|
|
3807
3971
|
const ariaSort = !column.sortable ? void 0 : isSorted ? sort.dir === "asc" ? "ascending" : "descending" : "none";
|
|
3808
|
-
return /* @__PURE__ */
|
|
3972
|
+
return /* @__PURE__ */ jsx46(
|
|
3809
3973
|
"th",
|
|
3810
3974
|
{
|
|
3811
3975
|
scope: "col",
|
|
@@ -3815,7 +3979,7 @@ function DataTable({
|
|
|
3815
3979
|
alignClass(column.align),
|
|
3816
3980
|
column.className
|
|
3817
3981
|
),
|
|
3818
|
-
children: column.sortable ? /* @__PURE__ */
|
|
3982
|
+
children: column.sortable ? /* @__PURE__ */ jsxs30(
|
|
3819
3983
|
"button",
|
|
3820
3984
|
{
|
|
3821
3985
|
type: "button",
|
|
@@ -3823,7 +3987,7 @@ function DataTable({
|
|
|
3823
3987
|
className: "inline-flex items-center gap-1 rounded px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3824
3988
|
children: [
|
|
3825
3989
|
column.header,
|
|
3826
|
-
/* @__PURE__ */
|
|
3990
|
+
/* @__PURE__ */ jsx46("span", { "aria-hidden": "true", className: "text-[10px] text-muted-foreground", children: renderSortIcon ? renderSortIcon(isSorted ? sort.dir === "asc" ? "asc" : "desc" : "none") : isSorted ? sort.dir === "asc" ? "\u25B2" : "\u25BC" : "\u2195" })
|
|
3827
3991
|
]
|
|
3828
3992
|
}
|
|
3829
3993
|
) : column.header
|
|
@@ -3832,20 +3996,20 @@ function DataTable({
|
|
|
3832
3996
|
);
|
|
3833
3997
|
})
|
|
3834
3998
|
] }) }),
|
|
3835
|
-
/* @__PURE__ */
|
|
3999
|
+
/* @__PURE__ */ jsx46("tbody", { "aria-busy": loading || void 0, children: loading ? Array.from(
|
|
3836
4000
|
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
3837
|
-
(_, skeletonRow) => /* @__PURE__ */
|
|
3838
|
-
selectionEnabled && /* @__PURE__ */
|
|
3839
|
-
columns.map((column) => /* @__PURE__ */
|
|
4001
|
+
(_, skeletonRow) => /* @__PURE__ */ jsxs30("tr", { children: [
|
|
4002
|
+
selectionEnabled && /* @__PURE__ */ jsx46("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ jsx46(Skeleton, { className: "h-4 w-4" }) }),
|
|
4003
|
+
columns.map((column) => /* @__PURE__ */ jsx46("td", { className: cn("px-3 py-2", density === "compact" && "px-2 py-1"), children: /* @__PURE__ */ jsx46(Skeleton, { className: density === "compact" ? "h-3 w-full" : "h-4 w-full" }) }, column.key))
|
|
3840
4004
|
] }, `skeleton-${skeletonRow}`)
|
|
3841
|
-
) : visible.length === 0 ? /* @__PURE__ */
|
|
4005
|
+
) : visible.length === 0 ? /* @__PURE__ */ jsx46("tr", { children: /* @__PURE__ */ jsx46(
|
|
3842
4006
|
"td",
|
|
3843
4007
|
{
|
|
3844
4008
|
colSpan: columns.length + (selectionEnabled ? 1 : 0),
|
|
3845
4009
|
className: "px-3 py-8 text-center text-sm text-muted-foreground",
|
|
3846
4010
|
children: emptyMessage
|
|
3847
4011
|
}
|
|
3848
|
-
) }) : visible.map((row, index) => /* @__PURE__ */
|
|
4012
|
+
) }) : visible.map((row, index) => /* @__PURE__ */ jsxs30(
|
|
3849
4013
|
"tr",
|
|
3850
4014
|
{
|
|
3851
4015
|
tabIndex: onRowClick ? 0 : void 0,
|
|
@@ -3862,12 +4026,12 @@ function DataTable({
|
|
|
3862
4026
|
onRowClick && "cursor-pointer transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring"
|
|
3863
4027
|
),
|
|
3864
4028
|
children: [
|
|
3865
|
-
selectionEnabled && /* @__PURE__ */
|
|
4029
|
+
selectionEnabled && /* @__PURE__ */ jsx46(
|
|
3866
4030
|
"td",
|
|
3867
4031
|
{
|
|
3868
4032
|
className: cn("align-middle", density === "compact" ? "px-2 py-1" : "px-3 py-2"),
|
|
3869
4033
|
onClick: (event) => event.stopPropagation(),
|
|
3870
|
-
children: /* @__PURE__ */
|
|
4034
|
+
children: /* @__PURE__ */ jsx46(
|
|
3871
4035
|
Checkbox,
|
|
3872
4036
|
{
|
|
3873
4037
|
"aria-label": `Select row ${rowId(row)}`,
|
|
@@ -3878,7 +4042,7 @@ function DataTable({
|
|
|
3878
4042
|
)
|
|
3879
4043
|
}
|
|
3880
4044
|
),
|
|
3881
|
-
columns.map((column) => /* @__PURE__ */
|
|
4045
|
+
columns.map((column) => /* @__PURE__ */ jsx46(
|
|
3882
4046
|
"td",
|
|
3883
4047
|
{
|
|
3884
4048
|
className: cn(
|
|
@@ -3887,7 +4051,7 @@ function DataTable({
|
|
|
3887
4051
|
alignClass(column.align),
|
|
3888
4052
|
column.className
|
|
3889
4053
|
),
|
|
3890
|
-
children: column.onClick ? /* @__PURE__ */
|
|
4054
|
+
children: column.onClick ? /* @__PURE__ */ jsx46(
|
|
3891
4055
|
"button",
|
|
3892
4056
|
{
|
|
3893
4057
|
type: "button",
|
|
@@ -3906,8 +4070,8 @@ function DataTable({
|
|
|
3906
4070
|
]
|
|
3907
4071
|
}
|
|
3908
4072
|
) }),
|
|
3909
|
-
pageSize && pageCount > 1 && /* @__PURE__ */
|
|
3910
|
-
/* @__PURE__ */
|
|
4073
|
+
pageSize && pageCount > 1 && /* @__PURE__ */ jsxs30("div", { className: "flex flex-wrap items-center justify-between gap-x-4 gap-y-2", children: [
|
|
4074
|
+
/* @__PURE__ */ jsxs30(
|
|
3911
4075
|
"p",
|
|
3912
4076
|
{
|
|
3913
4077
|
className: "min-h-8 leading-none text-xs text-muted-foreground",
|
|
@@ -3922,16 +4086,16 @@ function DataTable({
|
|
|
3922
4086
|
]
|
|
3923
4087
|
}
|
|
3924
4088
|
),
|
|
3925
|
-
/* @__PURE__ */
|
|
4089
|
+
/* @__PURE__ */ jsx46(Pagination, { page: safePage, pageCount, onPageChange: setPage })
|
|
3926
4090
|
] })
|
|
3927
4091
|
] });
|
|
3928
4092
|
}
|
|
3929
4093
|
|
|
3930
4094
|
// src/components/list/List.tsx
|
|
3931
4095
|
import * as React47 from "react";
|
|
3932
|
-
import { Fragment as
|
|
4096
|
+
import { Fragment as Fragment9, jsx as jsx47, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3933
4097
|
var List = React47.forwardRef(
|
|
3934
|
-
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */
|
|
4098
|
+
({ divided, bordered, size = "default", className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
3935
4099
|
"ul",
|
|
3936
4100
|
{
|
|
3937
4101
|
ref,
|
|
@@ -3957,15 +4121,15 @@ var ListItem = React47.forwardRef(
|
|
|
3957
4121
|
disabled && "opacity-50",
|
|
3958
4122
|
className
|
|
3959
4123
|
);
|
|
3960
|
-
const body = /* @__PURE__ */
|
|
3961
|
-
leading && /* @__PURE__ */
|
|
3962
|
-
/* @__PURE__ */
|
|
3963
|
-
/* @__PURE__ */
|
|
3964
|
-
description && /* @__PURE__ */
|
|
4124
|
+
const body = /* @__PURE__ */ jsxs31(Fragment9, { children: [
|
|
4125
|
+
leading && /* @__PURE__ */ jsx47("span", { className: "flex shrink-0 items-center", children: leading }),
|
|
4126
|
+
/* @__PURE__ */ jsxs31("span", { className: "min-w-0 flex-1", children: [
|
|
4127
|
+
/* @__PURE__ */ jsx47("span", { className: "block truncate", children }),
|
|
4128
|
+
description && /* @__PURE__ */ jsx47("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: description })
|
|
3965
4129
|
] }),
|
|
3966
|
-
trailing && /* @__PURE__ */
|
|
4130
|
+
trailing && /* @__PURE__ */ jsx47("span", { className: "flex shrink-0 items-center text-xs text-muted-foreground", children: trailing })
|
|
3967
4131
|
] });
|
|
3968
|
-
return /* @__PURE__ */
|
|
4132
|
+
return /* @__PURE__ */ jsx47("li", { ref, ...props, children: onClick ? /* @__PURE__ */ jsx47("button", { type: "button", onClick, disabled, className: cn(padding, rowClass), children: body }) : /* @__PURE__ */ jsx47("div", { className: cn(padding, rowClass), children: body }) });
|
|
3969
4133
|
}
|
|
3970
4134
|
);
|
|
3971
4135
|
ListItem.displayName = "ListItem";
|
|
@@ -3974,7 +4138,7 @@ ListItem.displayName = "ListItem";
|
|
|
3974
4138
|
import * as React48 from "react";
|
|
3975
4139
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
3976
4140
|
import { cva as cva7 } from "class-variance-authority";
|
|
3977
|
-
import { Fragment as
|
|
4141
|
+
import { Fragment as Fragment10, jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3978
4142
|
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", {
|
|
3979
4143
|
variants: {
|
|
3980
4144
|
variant: {
|
|
@@ -3993,7 +4157,7 @@ var Link = React48.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
3993
4157
|
const isExternal = external ?? isAbsolute;
|
|
3994
4158
|
const Comp = asChild ? Slot4 : "a";
|
|
3995
4159
|
if (asChild) {
|
|
3996
|
-
return /* @__PURE__ */
|
|
4160
|
+
return /* @__PURE__ */ jsx48(
|
|
3997
4161
|
Comp,
|
|
3998
4162
|
{
|
|
3999
4163
|
ref,
|
|
@@ -4005,7 +4169,7 @@ var Link = React48.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4005
4169
|
}
|
|
4006
4170
|
);
|
|
4007
4171
|
}
|
|
4008
|
-
return /* @__PURE__ */
|
|
4172
|
+
return /* @__PURE__ */ jsxs32(
|
|
4009
4173
|
Comp,
|
|
4010
4174
|
{
|
|
4011
4175
|
ref,
|
|
@@ -4015,9 +4179,9 @@ var Link = React48.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4015
4179
|
...props,
|
|
4016
4180
|
children: [
|
|
4017
4181
|
children,
|
|
4018
|
-
isExternal && variant !== "muted" && /* @__PURE__ */
|
|
4019
|
-
/* @__PURE__ */
|
|
4020
|
-
/* @__PURE__ */
|
|
4182
|
+
isExternal && variant !== "muted" && /* @__PURE__ */ jsxs32(Fragment10, { children: [
|
|
4183
|
+
/* @__PURE__ */ jsx48("span", { "aria-hidden": "true", className: "text-[0.75em]", children: "\u2197" }),
|
|
4184
|
+
/* @__PURE__ */ jsx48("span", { className: "sr-only", children: "(opens in a new tab)" })
|
|
4021
4185
|
] })
|
|
4022
4186
|
]
|
|
4023
4187
|
}
|
|
@@ -4026,7 +4190,7 @@ var Link = React48.forwardRef(function Link2({ className, variant, asChild = fal
|
|
|
4026
4190
|
|
|
4027
4191
|
// src/components/text/Text.tsx
|
|
4028
4192
|
import * as React49 from "react";
|
|
4029
|
-
import { jsx as
|
|
4193
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
4030
4194
|
var sizeClasses4 = {
|
|
4031
4195
|
xs: "text-xs",
|
|
4032
4196
|
sm: "text-sm",
|
|
@@ -4043,7 +4207,7 @@ var weightClasses = {
|
|
|
4043
4207
|
var Text = React49.forwardRef(
|
|
4044
4208
|
({ inline, size = "base", weight, muted, className, ...props }, ref) => {
|
|
4045
4209
|
const Tag = inline ? "span" : "p";
|
|
4046
|
-
return /* @__PURE__ */
|
|
4210
|
+
return /* @__PURE__ */ jsx49(
|
|
4047
4211
|
Tag,
|
|
4048
4212
|
{
|
|
4049
4213
|
ref,
|
|
@@ -4063,7 +4227,7 @@ Text.displayName = "Text";
|
|
|
4063
4227
|
|
|
4064
4228
|
// src/components/heading/Heading.tsx
|
|
4065
4229
|
import * as React50 from "react";
|
|
4066
|
-
import { jsx as
|
|
4230
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
4067
4231
|
var levelClasses = {
|
|
4068
4232
|
1: "text-4xl",
|
|
4069
4233
|
2: "text-3xl",
|
|
@@ -4083,7 +4247,7 @@ var sizeClasses5 = {
|
|
|
4083
4247
|
var Heading = React50.forwardRef(
|
|
4084
4248
|
({ level, size, muted, className, ...props }, ref) => {
|
|
4085
4249
|
const Tag = `h${level}`;
|
|
4086
|
-
return /* @__PURE__ */
|
|
4250
|
+
return /* @__PURE__ */ jsx50(
|
|
4087
4251
|
Tag,
|
|
4088
4252
|
{
|
|
4089
4253
|
ref,
|
|
@@ -4102,7 +4266,18 @@ Heading.displayName = "Heading";
|
|
|
4102
4266
|
|
|
4103
4267
|
// src/components/empty-state/EmptyState.tsx
|
|
4104
4268
|
import * as React51 from "react";
|
|
4105
|
-
import { jsx as
|
|
4269
|
+
import { jsx as jsx51, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4270
|
+
function isActionObject(value) {
|
|
4271
|
+
return typeof value === "object" && value !== null && !React51.isValidElement(value) && "label" in value;
|
|
4272
|
+
}
|
|
4273
|
+
function renderAction(action) {
|
|
4274
|
+
if (!isActionObject(action)) return action;
|
|
4275
|
+
const { label, onClick, href, variant } = action;
|
|
4276
|
+
if (href) {
|
|
4277
|
+
return /* @__PURE__ */ jsx51(Button, { variant, asChild: true, children: /* @__PURE__ */ jsx51("a", { href, children: label }) });
|
|
4278
|
+
}
|
|
4279
|
+
return /* @__PURE__ */ jsx51(Button, { variant, onClick, children: label });
|
|
4280
|
+
}
|
|
4106
4281
|
var EmptyState = React51.forwardRef(function EmptyState2({
|
|
4107
4282
|
icon,
|
|
4108
4283
|
title,
|
|
@@ -4116,8 +4291,8 @@ var EmptyState = React51.forwardRef(function EmptyState2({
|
|
|
4116
4291
|
children,
|
|
4117
4292
|
...props
|
|
4118
4293
|
}, ref) {
|
|
4119
|
-
const primaryAction = action ?? actions;
|
|
4120
|
-
return /* @__PURE__ */
|
|
4294
|
+
const primaryAction = renderAction(action) ?? actions;
|
|
4295
|
+
return /* @__PURE__ */ jsxs33(
|
|
4121
4296
|
"div",
|
|
4122
4297
|
{
|
|
4123
4298
|
ref,
|
|
@@ -4128,11 +4303,11 @@ var EmptyState = React51.forwardRef(function EmptyState2({
|
|
|
4128
4303
|
),
|
|
4129
4304
|
...props,
|
|
4130
4305
|
children: [
|
|
4131
|
-
icon && /* @__PURE__ */
|
|
4132
|
-
/* @__PURE__ */
|
|
4133
|
-
description && /* @__PURE__ */
|
|
4306
|
+
icon && /* @__PURE__ */ jsx51("div", { className: "text-muted-foreground [&_svg]:size-8", children: icon }),
|
|
4307
|
+
/* @__PURE__ */ jsx51(Title, { className: cn("font-semibold", size === "md" ? "text-base" : "text-sm"), children: title }),
|
|
4308
|
+
description && /* @__PURE__ */ jsx51("p", { className: "max-w-sm text-sm text-muted-foreground", children: description }),
|
|
4134
4309
|
children,
|
|
4135
|
-
(primaryAction || secondaryAction) && /* @__PURE__ */
|
|
4310
|
+
(primaryAction || secondaryAction) && /* @__PURE__ */ jsxs33("div", { className: "mt-1 flex flex-wrap items-center justify-center gap-2", children: [
|
|
4136
4311
|
primaryAction,
|
|
4137
4312
|
secondaryAction
|
|
4138
4313
|
] })
|
|
@@ -4143,25 +4318,26 @@ var EmptyState = React51.forwardRef(function EmptyState2({
|
|
|
4143
4318
|
|
|
4144
4319
|
// src/components/page-header/PageHeader.tsx
|
|
4145
4320
|
import * as React52 from "react";
|
|
4146
|
-
import { jsx as
|
|
4321
|
+
import { jsx as jsx52, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4147
4322
|
var sizeClasses6 = {
|
|
4148
4323
|
sm: "text-xl",
|
|
4149
4324
|
md: "text-2xl",
|
|
4150
4325
|
lg: "text-3xl",
|
|
4151
4326
|
hero: "text-4xl sm:text-5xl lg:text-[3.4rem] lg:leading-[1.1]"
|
|
4152
4327
|
};
|
|
4153
|
-
var PageHeader = React52.forwardRef(function PageHeader2({ title, description, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
/* @__PURE__ */
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4328
|
+
var PageHeader = React52.forwardRef(function PageHeader2({ title, description, subtitle, breadcrumbs, actions, eyebrow, size = "md", align = "left", titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props }, ref) {
|
|
4329
|
+
const supporting = description ?? subtitle;
|
|
4330
|
+
return /* @__PURE__ */ jsxs34("div", { ref, className: cn("flex flex-col gap-2", align === "center" && "items-center text-center", className), ...props, children: [
|
|
4331
|
+
breadcrumbs && /* @__PURE__ */ jsx52("div", { className: "text-sm text-muted-foreground", children: breadcrumbs }),
|
|
4332
|
+
eyebrow && /* @__PURE__ */ jsx52("div", { className: cn("text-xs font-medium uppercase tracking-wide text-primary", eyebrowClassName), children: eyebrow }),
|
|
4333
|
+
/* @__PURE__ */ jsxs34("div", { className: cn("flex w-full flex-wrap items-start justify-between gap-3", align === "center" && "justify-center"), children: [
|
|
4334
|
+
/* @__PURE__ */ jsxs34("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4335
|
+
/* @__PURE__ */ jsx52("h1", { className: cn("font-semibold tracking-tight", sizeClasses6[size], titleClassName), children: title }),
|
|
4336
|
+
supporting && /* @__PURE__ */ jsx52("p", { className: cn("mt-2 max-w-2xl text-base text-muted-foreground", descriptionClassName), children: supporting })
|
|
4161
4337
|
] }),
|
|
4162
|
-
actions && /* @__PURE__ */
|
|
4338
|
+
actions && /* @__PURE__ */ jsx52("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
4163
4339
|
] }),
|
|
4164
|
-
children && /* @__PURE__ */
|
|
4340
|
+
children && /* @__PURE__ */ jsx52("div", { className: "mt-2", children })
|
|
4165
4341
|
] });
|
|
4166
4342
|
});
|
|
4167
4343
|
|
|
@@ -4182,7 +4358,7 @@ function documentHead({
|
|
|
4182
4358
|
|
|
4183
4359
|
// src/components/section-heading/SectionHeading.tsx
|
|
4184
4360
|
import * as React53 from "react";
|
|
4185
|
-
import { jsx as
|
|
4361
|
+
import { jsx as jsx53, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4186
4362
|
var sizeClasses7 = {
|
|
4187
4363
|
sm: "text-lg",
|
|
4188
4364
|
md: "text-2xl",
|
|
@@ -4190,7 +4366,7 @@ var sizeClasses7 = {
|
|
|
4190
4366
|
};
|
|
4191
4367
|
var SectionHeading = React53.forwardRef(function SectionHeading2({ title, description, eyebrow, actions, level = 2, align = "left", size = "md", titleClassName, descriptionClassName, eyebrowClassName, className, ...props }, ref) {
|
|
4192
4368
|
const Heading2 = `h${level}`;
|
|
4193
|
-
return /* @__PURE__ */
|
|
4369
|
+
return /* @__PURE__ */ jsxs35(
|
|
4194
4370
|
"div",
|
|
4195
4371
|
{
|
|
4196
4372
|
ref,
|
|
@@ -4201,12 +4377,12 @@ var SectionHeading = React53.forwardRef(function SectionHeading2({ title, descri
|
|
|
4201
4377
|
),
|
|
4202
4378
|
...props,
|
|
4203
4379
|
children: [
|
|
4204
|
-
/* @__PURE__ */
|
|
4205
|
-
eyebrow && /* @__PURE__ */
|
|
4206
|
-
/* @__PURE__ */
|
|
4207
|
-
description && /* @__PURE__ */
|
|
4380
|
+
/* @__PURE__ */ jsxs35("div", { className: cn("min-w-0", align === "center" && "flex flex-col items-center"), children: [
|
|
4381
|
+
eyebrow && /* @__PURE__ */ jsx53("div", { className: cn("mb-1 text-xs font-medium uppercase tracking-wide text-primary", eyebrowClassName), children: eyebrow }),
|
|
4382
|
+
/* @__PURE__ */ jsx53(Heading2, { className: cn("font-semibold tracking-tight", sizeClasses7[size], titleClassName), children: title }),
|
|
4383
|
+
description && /* @__PURE__ */ jsx53("p", { className: cn("mt-2 max-w-2xl text-muted-foreground", align === "center" ? "mx-auto" : "", descriptionClassName), children: description })
|
|
4208
4384
|
] }),
|
|
4209
|
-
actions && /* @__PURE__ */
|
|
4385
|
+
actions && /* @__PURE__ */ jsx53("div", { className: "flex shrink-0 items-center gap-2", children: actions })
|
|
4210
4386
|
]
|
|
4211
4387
|
}
|
|
4212
4388
|
);
|
|
@@ -4214,39 +4390,66 @@ var SectionHeading = React53.forwardRef(function SectionHeading2({ title, descri
|
|
|
4214
4390
|
|
|
4215
4391
|
// src/components/metric-card/MetricCard.tsx
|
|
4216
4392
|
import * as React54 from "react";
|
|
4217
|
-
import { jsx as
|
|
4393
|
+
import { jsx as jsx54, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4218
4394
|
var trendClasses = {
|
|
4219
4395
|
up: "text-success",
|
|
4220
4396
|
down: "text-destructive",
|
|
4221
4397
|
flat: "text-muted-foreground"
|
|
4222
4398
|
};
|
|
4399
|
+
var toneClasses = {
|
|
4400
|
+
default: "",
|
|
4401
|
+
success: "text-success",
|
|
4402
|
+
warning: "text-warning-ink",
|
|
4403
|
+
destructive: "text-destructive"
|
|
4404
|
+
};
|
|
4223
4405
|
var trendGlyph = { up: "\u2191", down: "\u2193", flat: "\u2192" };
|
|
4224
|
-
var MetricCard = React54.forwardRef(function MetricCard2({ label, value, hint, delta, trend = "flat", icon, className, ...props }, ref) {
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4406
|
+
var MetricCard = React54.forwardRef(function MetricCard2({ label, value, hint, title, description, delta, trend = "flat", tone = "default", loading = false, icon, className, ...props }, ref) {
|
|
4407
|
+
const heading = label ?? title;
|
|
4408
|
+
const supporting = hint ?? description;
|
|
4409
|
+
if (loading) {
|
|
4410
|
+
return /* @__PURE__ */ jsxs36(
|
|
4411
|
+
"div",
|
|
4412
|
+
{
|
|
4413
|
+
ref,
|
|
4414
|
+
"aria-busy": "true",
|
|
4415
|
+
className: cn("rounded-xl border border-border bg-card p-5", className),
|
|
4416
|
+
...props,
|
|
4417
|
+
children: [
|
|
4418
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4419
|
+
heading && /* @__PURE__ */ jsx54("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
4420
|
+
icon && /* @__PURE__ */ jsx54("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4421
|
+
] }),
|
|
4422
|
+
/* @__PURE__ */ jsx54("span", { "aria-hidden": "true", className: "mt-3 block h-7 w-24 animate-pulse rounded-md bg-muted" }),
|
|
4423
|
+
/* @__PURE__ */ jsx54("span", { className: "sr-only", children: "Loading" })
|
|
4424
|
+
]
|
|
4425
|
+
}
|
|
4426
|
+
);
|
|
4427
|
+
}
|
|
4428
|
+
return /* @__PURE__ */ jsxs36("div", { ref, className: cn("rounded-xl border border-border bg-card p-5", className), ...props, children: [
|
|
4429
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex items-start justify-between gap-3", children: [
|
|
4430
|
+
heading && /* @__PURE__ */ jsx54("p", { className: "text-sm text-muted-foreground", children: heading }),
|
|
4431
|
+
icon && /* @__PURE__ */ jsx54("span", { className: "text-muted-foreground [&_svg]:size-4", children: icon })
|
|
4229
4432
|
] }),
|
|
4230
|
-
/* @__PURE__ */
|
|
4231
|
-
(delta ||
|
|
4232
|
-
delta && /* @__PURE__ */
|
|
4233
|
-
/* @__PURE__ */
|
|
4433
|
+
/* @__PURE__ */ jsx54("p", { className: cn("mt-2 text-2xl font-semibold tabular-nums", toneClasses[tone]), children: value }),
|
|
4434
|
+
(delta || supporting) && /* @__PURE__ */ jsxs36("p", { className: "mt-1 flex items-center gap-2 text-sm", children: [
|
|
4435
|
+
delta && /* @__PURE__ */ jsxs36("span", { className: cn("font-medium tabular-nums", trendClasses[trend]), children: [
|
|
4436
|
+
/* @__PURE__ */ jsx54("span", { "aria-hidden": "true", children: trendGlyph[trend] }),
|
|
4234
4437
|
" ",
|
|
4235
4438
|
delta
|
|
4236
4439
|
] }),
|
|
4237
|
-
|
|
4440
|
+
supporting && /* @__PURE__ */ jsx54("span", { className: "text-muted-foreground", children: supporting })
|
|
4238
4441
|
] })
|
|
4239
4442
|
] });
|
|
4240
4443
|
});
|
|
4241
4444
|
|
|
4242
4445
|
// src/components/password-input/PasswordInput.tsx
|
|
4243
4446
|
import * as React55 from "react";
|
|
4244
|
-
import { jsx as
|
|
4447
|
+
import { jsx as jsx55, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4245
4448
|
var PasswordInput = React55.forwardRef(function PasswordInput2({ className, showLabel = "Show password", hideLabel = "Hide password", ...props }, ref) {
|
|
4246
4449
|
const [visible, setVisible] = React55.useState(false);
|
|
4247
|
-
return /* @__PURE__ */
|
|
4248
|
-
/* @__PURE__ */
|
|
4249
|
-
/* @__PURE__ */
|
|
4450
|
+
return /* @__PURE__ */ jsxs37("div", { className: cn("relative flex items-center", className), children: [
|
|
4451
|
+
/* @__PURE__ */ jsx55(Input, { ref, type: visible ? "text" : "password", className: "pr-24", ...props }),
|
|
4452
|
+
/* @__PURE__ */ jsx55(
|
|
4250
4453
|
Button,
|
|
4251
4454
|
{
|
|
4252
4455
|
type: "button",
|
|
@@ -4264,7 +4467,7 @@ var PasswordInput = React55.forwardRef(function PasswordInput2({ className, show
|
|
|
4264
4467
|
|
|
4265
4468
|
// src/components/auth-layout/AuthLayout.tsx
|
|
4266
4469
|
import * as React56 from "react";
|
|
4267
|
-
import { jsx as
|
|
4470
|
+
import { jsx as jsx56, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4268
4471
|
var sizeClasses8 = {
|
|
4269
4472
|
sm: "max-w-sm",
|
|
4270
4473
|
md: "max-w-md",
|
|
@@ -4273,58 +4476,66 @@ var sizeClasses8 = {
|
|
|
4273
4476
|
var AuthLayout = React56.forwardRef(function AuthLayout2({
|
|
4274
4477
|
title,
|
|
4275
4478
|
description,
|
|
4479
|
+
subtitle,
|
|
4276
4480
|
brand,
|
|
4481
|
+
logo,
|
|
4277
4482
|
footer,
|
|
4278
4483
|
children,
|
|
4279
4484
|
size = "md",
|
|
4280
4485
|
variant = "centered",
|
|
4281
4486
|
aside,
|
|
4487
|
+
maxWidth,
|
|
4282
4488
|
className,
|
|
4283
4489
|
...props
|
|
4284
4490
|
}, ref) {
|
|
4285
4491
|
const split = variant === "split" && aside != null;
|
|
4286
|
-
const
|
|
4492
|
+
const supporting = description ?? subtitle;
|
|
4493
|
+
const mark = brand ?? logo;
|
|
4494
|
+
const widthStyle = maxWidth === void 0 ? void 0 : { maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth };
|
|
4495
|
+
const form = /* @__PURE__ */ jsxs38(
|
|
4287
4496
|
"div",
|
|
4288
4497
|
{
|
|
4289
4498
|
className: cn(
|
|
4290
4499
|
"flex w-full flex-col",
|
|
4291
4500
|
split ? sizeClasses8[size] : "items-center"
|
|
4292
4501
|
),
|
|
4502
|
+
style: widthStyle,
|
|
4293
4503
|
children: [
|
|
4294
|
-
|
|
4295
|
-
/* @__PURE__ */
|
|
4504
|
+
mark && /* @__PURE__ */ jsx56("div", { className: "mb-6", children: mark }),
|
|
4505
|
+
/* @__PURE__ */ jsxs38(
|
|
4296
4506
|
"div",
|
|
4297
4507
|
{
|
|
4298
4508
|
className: cn(
|
|
4299
4509
|
"w-full rounded-xl border border-border bg-card p-6 shadow-sm sm:p-8",
|
|
4300
4510
|
!split && sizeClasses8[size]
|
|
4301
4511
|
),
|
|
4512
|
+
style: widthStyle,
|
|
4302
4513
|
children: [
|
|
4303
|
-
/* @__PURE__ */
|
|
4304
|
-
|
|
4305
|
-
/* @__PURE__ */
|
|
4514
|
+
/* @__PURE__ */ jsx56("h1", { className: "text-xl font-semibold tracking-tight", children: title }),
|
|
4515
|
+
supporting && /* @__PURE__ */ jsx56("p", { className: "mt-1 text-sm text-muted-foreground", children: supporting }),
|
|
4516
|
+
/* @__PURE__ */ jsx56("div", { className: "mt-6", children })
|
|
4306
4517
|
]
|
|
4307
4518
|
}
|
|
4308
4519
|
),
|
|
4309
|
-
footer && /* @__PURE__ */
|
|
4520
|
+
footer && /* @__PURE__ */ jsx56("div", { className: "mt-6 text-center text-sm text-muted-foreground", children: footer })
|
|
4310
4521
|
]
|
|
4311
4522
|
}
|
|
4312
4523
|
);
|
|
4313
4524
|
if (split) {
|
|
4314
|
-
return /* @__PURE__ */
|
|
4525
|
+
return /* @__PURE__ */ jsx56(
|
|
4315
4526
|
"div",
|
|
4316
4527
|
{
|
|
4317
4528
|
ref,
|
|
4318
4529
|
className: cn("min-h-screen bg-muted/30 px-4 py-12 lg:px-8", className),
|
|
4319
4530
|
...props,
|
|
4320
|
-
children: /* @__PURE__ */
|
|
4531
|
+
children: /* @__PURE__ */ jsxs38("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: [
|
|
4321
4532
|
form,
|
|
4322
|
-
/* @__PURE__ */
|
|
4533
|
+
/* @__PURE__ */ jsx56("aside", { className: "w-full", children: aside })
|
|
4323
4534
|
] })
|
|
4324
4535
|
}
|
|
4325
4536
|
);
|
|
4326
4537
|
}
|
|
4327
|
-
return /* @__PURE__ */
|
|
4538
|
+
return /* @__PURE__ */ jsx56(
|
|
4328
4539
|
"div",
|
|
4329
4540
|
{
|
|
4330
4541
|
ref,
|
|
@@ -4340,7 +4551,7 @@ var AuthLayout = React56.forwardRef(function AuthLayout2({
|
|
|
4340
4551
|
|
|
4341
4552
|
// src/components/filter-bar/FilterBar.tsx
|
|
4342
4553
|
import * as React57 from "react";
|
|
4343
|
-
import { jsx as
|
|
4554
|
+
import { jsx as jsx57, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
4344
4555
|
var FilterBar = React57.forwardRef(function FilterBar2({
|
|
4345
4556
|
searchValue,
|
|
4346
4557
|
onSearchChange,
|
|
@@ -4356,7 +4567,7 @@ var FilterBar = React57.forwardRef(function FilterBar2({
|
|
|
4356
4567
|
children,
|
|
4357
4568
|
...props
|
|
4358
4569
|
}, ref) {
|
|
4359
|
-
return /* @__PURE__ */
|
|
4570
|
+
return /* @__PURE__ */ jsxs39(
|
|
4360
4571
|
"div",
|
|
4361
4572
|
{
|
|
4362
4573
|
ref,
|
|
@@ -4367,7 +4578,7 @@ var FilterBar = React57.forwardRef(function FilterBar2({
|
|
|
4367
4578
|
),
|
|
4368
4579
|
...props,
|
|
4369
4580
|
children: [
|
|
4370
|
-
onSearchChange !== void 0 && /* @__PURE__ */
|
|
4581
|
+
onSearchChange !== void 0 && /* @__PURE__ */ jsx57(
|
|
4371
4582
|
Input,
|
|
4372
4583
|
{
|
|
4373
4584
|
type: "search",
|
|
@@ -4378,21 +4589,21 @@ var FilterBar = React57.forwardRef(function FilterBar2({
|
|
|
4378
4589
|
className: "h-9 w-full min-w-40 flex-1 sm:w-auto"
|
|
4379
4590
|
}
|
|
4380
4591
|
),
|
|
4381
|
-
/* @__PURE__ */
|
|
4382
|
-
onOpenFilters && /* @__PURE__ */
|
|
4592
|
+
/* @__PURE__ */ jsx57("div", { className: "flex flex-wrap items-center gap-2", children }),
|
|
4593
|
+
onOpenFilters && /* @__PURE__ */ jsxs39(Button, { type: "button", variant: "outline", size: "sm", onClick: onOpenFilters, children: [
|
|
4383
4594
|
filtersLabel,
|
|
4384
4595
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
4385
4596
|
] }),
|
|
4386
|
-
onReset && /* @__PURE__ */
|
|
4597
|
+
onReset && /* @__PURE__ */ jsxs39(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, children: [
|
|
4387
4598
|
"Reset",
|
|
4388
4599
|
activeCount > 0 ? ` (${activeCount})` : ""
|
|
4389
4600
|
] }),
|
|
4390
|
-
resultsCount !== void 0 && /* @__PURE__ */
|
|
4601
|
+
resultsCount !== void 0 && /* @__PURE__ */ jsxs39("span", { className: "ml-auto text-sm text-muted-foreground", children: [
|
|
4391
4602
|
resultsCount,
|
|
4392
4603
|
" ",
|
|
4393
4604
|
resultsLabel
|
|
4394
4605
|
] }),
|
|
4395
|
-
trailing && /* @__PURE__ */
|
|
4606
|
+
trailing && /* @__PURE__ */ jsx57("div", { className: cn("flex items-center gap-2", resultsCount === void 0 && "ml-auto"), children: trailing })
|
|
4396
4607
|
]
|
|
4397
4608
|
}
|
|
4398
4609
|
);
|
|
@@ -4400,7 +4611,7 @@ var FilterBar = React57.forwardRef(function FilterBar2({
|
|
|
4400
4611
|
|
|
4401
4612
|
// src/components/date-picker/DatePicker.tsx
|
|
4402
4613
|
import * as React58 from "react";
|
|
4403
|
-
import { jsx as
|
|
4614
|
+
import { jsx as jsx58, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
4404
4615
|
var DatePicker = React58.forwardRef(function DatePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear date", className, ...props }, ref) {
|
|
4405
4616
|
const [internal, setInternal] = React58.useState(defaultValue ?? "");
|
|
4406
4617
|
const current = value ?? internal;
|
|
@@ -4408,8 +4619,8 @@ var DatePicker = React58.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
4408
4619
|
if (value === void 0) setInternal(next);
|
|
4409
4620
|
onValueChange?.(next);
|
|
4410
4621
|
};
|
|
4411
|
-
return /* @__PURE__ */
|
|
4412
|
-
/* @__PURE__ */
|
|
4622
|
+
return /* @__PURE__ */ jsxs40("div", { className: cn("relative flex items-center", className), children: [
|
|
4623
|
+
/* @__PURE__ */ jsx58(
|
|
4413
4624
|
Input,
|
|
4414
4625
|
{
|
|
4415
4626
|
ref,
|
|
@@ -4423,7 +4634,7 @@ var DatePicker = React58.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
4423
4634
|
...props
|
|
4424
4635
|
}
|
|
4425
4636
|
),
|
|
4426
|
-
clearable && current && /* @__PURE__ */
|
|
4637
|
+
clearable && current && /* @__PURE__ */ jsx58(
|
|
4427
4638
|
"button",
|
|
4428
4639
|
{
|
|
4429
4640
|
type: "button",
|
|
@@ -4438,7 +4649,7 @@ var DatePicker = React58.forwardRef(function DatePicker2({ value, defaultValue,
|
|
|
4438
4649
|
|
|
4439
4650
|
// src/components/time-picker/TimePicker.tsx
|
|
4440
4651
|
import * as React59 from "react";
|
|
4441
|
-
import { jsx as
|
|
4652
|
+
import { jsx as jsx59, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
4442
4653
|
var TimePicker = React59.forwardRef(function TimePicker2({ value, defaultValue, onValueChange, onChange, clearable = false, clearLabel = "Clear time", className, ...props }, ref) {
|
|
4443
4654
|
const [internal, setInternal] = React59.useState(defaultValue ?? "");
|
|
4444
4655
|
const current = value ?? internal;
|
|
@@ -4446,8 +4657,8 @@ var TimePicker = React59.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
4446
4657
|
if (value === void 0) setInternal(next);
|
|
4447
4658
|
onValueChange?.(next);
|
|
4448
4659
|
};
|
|
4449
|
-
return /* @__PURE__ */
|
|
4450
|
-
/* @__PURE__ */
|
|
4660
|
+
return /* @__PURE__ */ jsxs41("div", { className: cn("relative flex items-center", className), children: [
|
|
4661
|
+
/* @__PURE__ */ jsx59(
|
|
4451
4662
|
Input,
|
|
4452
4663
|
{
|
|
4453
4664
|
ref,
|
|
@@ -4461,7 +4672,7 @@ var TimePicker = React59.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
4461
4672
|
...props
|
|
4462
4673
|
}
|
|
4463
4674
|
),
|
|
4464
|
-
clearable && current && /* @__PURE__ */
|
|
4675
|
+
clearable && current && /* @__PURE__ */ jsx59(
|
|
4465
4676
|
"button",
|
|
4466
4677
|
{
|
|
4467
4678
|
type: "button",
|
|
@@ -4476,7 +4687,7 @@ var TimePicker = React59.forwardRef(function TimePicker2({ value, defaultValue,
|
|
|
4476
4687
|
|
|
4477
4688
|
// src/components/stepper/Stepper.tsx
|
|
4478
4689
|
import * as React60 from "react";
|
|
4479
|
-
import { Fragment as
|
|
4690
|
+
import { Fragment as Fragment11, jsx as jsx60, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
4480
4691
|
var Stepper = React60.forwardRef(function Stepper2({
|
|
4481
4692
|
steps,
|
|
4482
4693
|
current,
|
|
@@ -4499,7 +4710,7 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4499
4710
|
const verticalTitlePad = size === "sm" ? "pt-0.5" : "pt-1";
|
|
4500
4711
|
const connectorTop = variant === "dots" ? size === "sm" ? "mt-1" : "mt-[5px]" : size === "sm" ? "mt-3" : "mt-3.5";
|
|
4501
4712
|
const focusClass = "rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background";
|
|
4502
|
-
return /* @__PURE__ */
|
|
4713
|
+
return /* @__PURE__ */ jsx60(
|
|
4503
4714
|
"ol",
|
|
4504
4715
|
{
|
|
4505
4716
|
ref,
|
|
@@ -4513,7 +4724,7 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4513
4724
|
const isLast = index === steps.length - 1;
|
|
4514
4725
|
const titleCentered = alignTitles === "center" && !step.description;
|
|
4515
4726
|
const below = !vertical && labelPlacement === "below";
|
|
4516
|
-
const marker = /* @__PURE__ */
|
|
4727
|
+
const marker = /* @__PURE__ */ jsx60(
|
|
4517
4728
|
"span",
|
|
4518
4729
|
{
|
|
4519
4730
|
"aria-hidden": "true",
|
|
@@ -4535,8 +4746,8 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4535
4746
|
children: variant === "numbered" ? state === "complete" ? "\u2713" : index + 1 : null
|
|
4536
4747
|
}
|
|
4537
4748
|
);
|
|
4538
|
-
const label = /* @__PURE__ */
|
|
4539
|
-
/* @__PURE__ */
|
|
4749
|
+
const label = /* @__PURE__ */ jsxs42("span", { className: "min-w-0", children: [
|
|
4750
|
+
/* @__PURE__ */ jsx60(
|
|
4540
4751
|
"span",
|
|
4541
4752
|
{
|
|
4542
4753
|
className: cn(
|
|
@@ -4548,7 +4759,7 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4548
4759
|
children: step.label
|
|
4549
4760
|
}
|
|
4550
4761
|
),
|
|
4551
|
-
step.description && /* @__PURE__ */
|
|
4762
|
+
step.description && /* @__PURE__ */ jsx60(
|
|
4552
4763
|
"span",
|
|
4553
4764
|
{
|
|
4554
4765
|
className: cn(
|
|
@@ -4559,9 +4770,9 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4559
4770
|
children: step.description
|
|
4560
4771
|
}
|
|
4561
4772
|
),
|
|
4562
|
-
/* @__PURE__ */
|
|
4773
|
+
/* @__PURE__ */ jsx60("span", { className: "sr-only", children: state === "complete" ? " (completed)" : state === "current" ? " (current step)" : " (upcoming)" })
|
|
4563
4774
|
] });
|
|
4564
|
-
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */
|
|
4775
|
+
const renderRow = (children, rowClassName) => interactive ? /* @__PURE__ */ jsx60(
|
|
4565
4776
|
"button",
|
|
4566
4777
|
{
|
|
4567
4778
|
type: "button",
|
|
@@ -4570,29 +4781,29 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4570
4781
|
className: cn(rowClassName, focusClass),
|
|
4571
4782
|
children
|
|
4572
4783
|
}
|
|
4573
|
-
) : /* @__PURE__ */
|
|
4784
|
+
) : /* @__PURE__ */ jsx60("div", { "aria-current": state === "current" ? "step" : void 0, className: rowClassName, children });
|
|
4574
4785
|
if (vertical) {
|
|
4575
|
-
return /* @__PURE__ */
|
|
4576
|
-
/* @__PURE__ */
|
|
4577
|
-
/* @__PURE__ */
|
|
4786
|
+
return /* @__PURE__ */ jsx60("li", { className: "flex", children: renderRow(
|
|
4787
|
+
/* @__PURE__ */ jsxs42(Fragment11, { children: [
|
|
4788
|
+
/* @__PURE__ */ jsxs42("div", { className: "flex flex-col items-center", children: [
|
|
4578
4789
|
marker,
|
|
4579
|
-
!isLast && /* @__PURE__ */
|
|
4790
|
+
!isLast && /* @__PURE__ */ jsx60("span", { "aria-hidden": "true", className: "my-1 w-px flex-1 rounded-full bg-border" })
|
|
4580
4791
|
] }),
|
|
4581
|
-
/* @__PURE__ */
|
|
4792
|
+
/* @__PURE__ */ jsx60("div", { className: cn("min-w-0 pb-6", titleCentered && verticalTitlePad), children: label })
|
|
4582
4793
|
] }),
|
|
4583
4794
|
"flex w-full items-stretch gap-3 text-left"
|
|
4584
4795
|
) }, step.label);
|
|
4585
4796
|
}
|
|
4586
4797
|
if (below) {
|
|
4587
|
-
return /* @__PURE__ */
|
|
4798
|
+
return /* @__PURE__ */ jsxs42("li", { className: "flex min-w-0 flex-1 items-start gap-2", children: [
|
|
4588
4799
|
renderRow(
|
|
4589
|
-
/* @__PURE__ */
|
|
4800
|
+
/* @__PURE__ */ jsxs42(Fragment11, { children: [
|
|
4590
4801
|
marker,
|
|
4591
4802
|
label
|
|
4592
4803
|
] }),
|
|
4593
4804
|
"flex min-w-0 flex-1 flex-col items-center gap-2 text-center"
|
|
4594
4805
|
),
|
|
4595
|
-
!isLast && /* @__PURE__ */
|
|
4806
|
+
!isLast && /* @__PURE__ */ jsx60(
|
|
4596
4807
|
"span",
|
|
4597
4808
|
{
|
|
4598
4809
|
"aria-hidden": "true",
|
|
@@ -4601,15 +4812,15 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4601
4812
|
)
|
|
4602
4813
|
] }, step.label);
|
|
4603
4814
|
}
|
|
4604
|
-
return /* @__PURE__ */
|
|
4815
|
+
return /* @__PURE__ */ jsxs42("li", { className: "flex min-w-0 items-start gap-2", children: [
|
|
4605
4816
|
renderRow(
|
|
4606
|
-
/* @__PURE__ */
|
|
4817
|
+
/* @__PURE__ */ jsxs42(Fragment11, { children: [
|
|
4607
4818
|
marker,
|
|
4608
4819
|
label
|
|
4609
4820
|
] }),
|
|
4610
4821
|
cn("flex min-w-0 text-left", gapClass, titleCentered ? "items-center" : "items-start")
|
|
4611
4822
|
),
|
|
4612
|
-
!isLast && /* @__PURE__ */
|
|
4823
|
+
!isLast && /* @__PURE__ */ jsx60(
|
|
4613
4824
|
"span",
|
|
4614
4825
|
{
|
|
4615
4826
|
"aria-hidden": "true",
|
|
@@ -4624,7 +4835,7 @@ var Stepper = React60.forwardRef(function Stepper2({
|
|
|
4624
4835
|
|
|
4625
4836
|
// src/components/file-upload/FileUpload.tsx
|
|
4626
4837
|
import * as React61 from "react";
|
|
4627
|
-
import { jsx as
|
|
4838
|
+
import { jsx as jsx61, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
4628
4839
|
function formatSize(bytes) {
|
|
4629
4840
|
if (bytes < 1024) return `${bytes} B`;
|
|
4630
4841
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -4661,8 +4872,8 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4661
4872
|
const list = Array.from(incoming);
|
|
4662
4873
|
commit(multiple ? [...current, ...list] : list.slice(0, 1));
|
|
4663
4874
|
};
|
|
4664
|
-
return /* @__PURE__ */
|
|
4665
|
-
/* @__PURE__ */
|
|
4875
|
+
return /* @__PURE__ */ jsxs43("div", { className: cn("flex flex-col gap-3", className), children: [
|
|
4876
|
+
/* @__PURE__ */ jsxs43(
|
|
4666
4877
|
"div",
|
|
4667
4878
|
{
|
|
4668
4879
|
onDragOver: (event) => {
|
|
@@ -4683,9 +4894,9 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4683
4894
|
disabled && "opacity-50"
|
|
4684
4895
|
),
|
|
4685
4896
|
children: [
|
|
4686
|
-
/* @__PURE__ */
|
|
4897
|
+
/* @__PURE__ */ jsxs43("label", { htmlFor: inputId, className: cn("block text-sm", disabled ? "cursor-not-allowed" : "cursor-pointer"), children: [
|
|
4687
4898
|
label,
|
|
4688
|
-
/* @__PURE__ */
|
|
4899
|
+
/* @__PURE__ */ jsx61(
|
|
4689
4900
|
"input",
|
|
4690
4901
|
{
|
|
4691
4902
|
ref,
|
|
@@ -4703,15 +4914,15 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4703
4914
|
}
|
|
4704
4915
|
)
|
|
4705
4916
|
] }),
|
|
4706
|
-
/* @__PURE__ */
|
|
4917
|
+
/* @__PURE__ */ jsx61("p", { className: "mt-1 text-xs text-muted-foreground", children: hint ?? (accept ? `Accepted: ${accept}` : "Any file type") })
|
|
4707
4918
|
]
|
|
4708
4919
|
}
|
|
4709
4920
|
),
|
|
4710
|
-
current.length > 0 && /* @__PURE__ */
|
|
4711
|
-
/* @__PURE__ */
|
|
4712
|
-
/* @__PURE__ */
|
|
4713
|
-
/* @__PURE__ */
|
|
4714
|
-
progress?.[file.name] !== void 0 && /* @__PURE__ */
|
|
4921
|
+
current.length > 0 && /* @__PURE__ */ jsx61("ul", { "aria-label": selectedFilesLabel, className: "space-y-2", children: current.map((file) => /* @__PURE__ */ jsxs43("li", { className: "flex items-center justify-between gap-3 rounded-md border border-border px-3 py-2", children: [
|
|
4922
|
+
/* @__PURE__ */ jsxs43("div", { className: "min-w-0", children: [
|
|
4923
|
+
/* @__PURE__ */ jsx61("p", { className: "truncate text-sm", children: file.name }),
|
|
4924
|
+
/* @__PURE__ */ jsx61("p", { className: "text-xs text-muted-foreground", children: formatSize(file.size) }),
|
|
4925
|
+
progress?.[file.name] !== void 0 && /* @__PURE__ */ jsx61(
|
|
4715
4926
|
"div",
|
|
4716
4927
|
{
|
|
4717
4928
|
role: "progressbar",
|
|
@@ -4720,11 +4931,11 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4720
4931
|
"aria-valuemax": 100,
|
|
4721
4932
|
"aria-label": uploadingLabel(file),
|
|
4722
4933
|
className: "mt-1 h-1.5 w-40 overflow-hidden rounded-full bg-muted",
|
|
4723
|
-
children: /* @__PURE__ */
|
|
4934
|
+
children: /* @__PURE__ */ jsx61("div", { className: "h-full bg-primary", style: { width: `${progress[file.name]}%` } })
|
|
4724
4935
|
}
|
|
4725
4936
|
)
|
|
4726
4937
|
] }),
|
|
4727
|
-
/* @__PURE__ */
|
|
4938
|
+
/* @__PURE__ */ jsx61(
|
|
4728
4939
|
"button",
|
|
4729
4940
|
{
|
|
4730
4941
|
type: "button",
|
|
@@ -4740,11 +4951,11 @@ var FileUpload = React61.forwardRef(function FileUpload2({
|
|
|
4740
4951
|
|
|
4741
4952
|
// src/components/timeline/Timeline.tsx
|
|
4742
4953
|
import * as React62 from "react";
|
|
4743
|
-
import { jsx as
|
|
4954
|
+
import { jsx as jsx62, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
4744
4955
|
var Timeline = React62.forwardRef(function Timeline2({ items, className, ...props }, ref) {
|
|
4745
|
-
return /* @__PURE__ */
|
|
4746
|
-
/* @__PURE__ */
|
|
4747
|
-
/* @__PURE__ */
|
|
4956
|
+
return /* @__PURE__ */ jsx62("ol", { ref, className: cn("relative flex flex-col gap-6", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs44("li", { className: "relative flex gap-4", children: [
|
|
4957
|
+
/* @__PURE__ */ jsxs44("div", { className: "flex flex-col items-center", children: [
|
|
4958
|
+
/* @__PURE__ */ jsx62(
|
|
4748
4959
|
"span",
|
|
4749
4960
|
{
|
|
4750
4961
|
"aria-hidden": "true",
|
|
@@ -4754,24 +4965,24 @@ var Timeline = React62.forwardRef(function Timeline2({ items, className, ...prop
|
|
|
4754
4965
|
)
|
|
4755
4966
|
}
|
|
4756
4967
|
),
|
|
4757
|
-
index < items.length - 1 && /* @__PURE__ */
|
|
4968
|
+
index < items.length - 1 && /* @__PURE__ */ jsx62("span", { "aria-hidden": "true", className: "mt-1 w-px flex-1 bg-border" })
|
|
4758
4969
|
] }),
|
|
4759
|
-
/* @__PURE__ */
|
|
4760
|
-
item.period && /* @__PURE__ */
|
|
4761
|
-
/* @__PURE__ */
|
|
4762
|
-
item.description && /* @__PURE__ */
|
|
4763
|
-
item.icon && /* @__PURE__ */
|
|
4970
|
+
/* @__PURE__ */ jsxs44("div", { className: "min-w-0 pb-1", children: [
|
|
4971
|
+
item.period && /* @__PURE__ */ jsx62("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
|
|
4972
|
+
/* @__PURE__ */ jsx62("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
|
|
4973
|
+
item.description && /* @__PURE__ */ jsx62("p", { className: "mt-1 text-sm text-muted-foreground", children: item.description }),
|
|
4974
|
+
item.icon && /* @__PURE__ */ jsx62("div", { className: "mt-1 text-muted-foreground [&_svg]:size-4", children: item.icon })
|
|
4764
4975
|
] })
|
|
4765
4976
|
] }, `${item.title}-${index}`)) });
|
|
4766
4977
|
});
|
|
4767
4978
|
|
|
4768
4979
|
// src/components/block/Block.tsx
|
|
4769
4980
|
import * as React63 from "react";
|
|
4770
|
-
import { jsx as
|
|
4981
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
4771
4982
|
var Block = React63.forwardRef(
|
|
4772
4983
|
({ as = "div", inline, muted, className, ...props }, ref) => {
|
|
4773
4984
|
const Tag = inline ? "span" : as;
|
|
4774
|
-
return /* @__PURE__ */
|
|
4985
|
+
return /* @__PURE__ */ jsx63(
|
|
4775
4986
|
Tag,
|
|
4776
4987
|
{
|
|
4777
4988
|
ref,
|
|
@@ -4785,7 +4996,7 @@ Block.displayName = "Block";
|
|
|
4785
4996
|
|
|
4786
4997
|
// src/components/flex/Flex.tsx
|
|
4787
4998
|
import * as React64 from "react";
|
|
4788
|
-
import { jsx as
|
|
4999
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
4789
5000
|
var justifyClasses = {
|
|
4790
5001
|
start: "justify-start",
|
|
4791
5002
|
center: "justify-center",
|
|
@@ -4805,7 +5016,7 @@ var Flex = React64.forwardRef(
|
|
|
4805
5016
|
({ direction = "row", align, justify, wrap, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
4806
5017
|
const Tag = as;
|
|
4807
5018
|
const gapResolved = resolveGap(gap);
|
|
4808
|
-
return /* @__PURE__ */
|
|
5019
|
+
return /* @__PURE__ */ jsx64(
|
|
4809
5020
|
Tag,
|
|
4810
5021
|
{
|
|
4811
5022
|
ref,
|
|
@@ -4840,7 +5051,7 @@ var FlexItem = React64.forwardRef(
|
|
|
4840
5051
|
...shrink === false ? { flexShrink: 0 } : typeof shrink === "string" && shrink ? { flexShrink: Number(shrink) || shrink } : {},
|
|
4841
5052
|
...basis ? { flexBasis: basis } : {}
|
|
4842
5053
|
};
|
|
4843
|
-
return /* @__PURE__ */
|
|
5054
|
+
return /* @__PURE__ */ jsx64(
|
|
4844
5055
|
Tag,
|
|
4845
5056
|
{
|
|
4846
5057
|
ref,
|
|
@@ -4855,7 +5066,7 @@ FlexItem.displayName = "FlexItem";
|
|
|
4855
5066
|
|
|
4856
5067
|
// src/components/grid/Grid.tsx
|
|
4857
5068
|
import * as React65 from "react";
|
|
4858
|
-
import { jsx as
|
|
5069
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
4859
5070
|
var BASE_COLS = {
|
|
4860
5071
|
1: "grid-cols-1",
|
|
4861
5072
|
2: "grid-cols-2",
|
|
@@ -4924,7 +5135,7 @@ var Grid = React65.forwardRef(
|
|
|
4924
5135
|
({ cols, smCols, mdCols, lgCols, minCol, gap = "md", as = "div", className, style, ...props }, ref) => {
|
|
4925
5136
|
const Tag = as;
|
|
4926
5137
|
const gapResolved = resolveGap(gap);
|
|
4927
|
-
return /* @__PURE__ */
|
|
5138
|
+
return /* @__PURE__ */ jsx65(
|
|
4928
5139
|
Tag,
|
|
4929
5140
|
{
|
|
4930
5141
|
ref,
|
|
@@ -4951,7 +5162,7 @@ Grid.displayName = "Grid";
|
|
|
4951
5162
|
var GridItem = React65.forwardRef(
|
|
4952
5163
|
({ span, smSpan, mdSpan, lgSpan, as = "div", className, ...props }, ref) => {
|
|
4953
5164
|
const Tag = as;
|
|
4954
|
-
return /* @__PURE__ */
|
|
5165
|
+
return /* @__PURE__ */ jsx65(
|
|
4955
5166
|
Tag,
|
|
4956
5167
|
{
|
|
4957
5168
|
ref,
|
|
@@ -4971,7 +5182,7 @@ GridItem.displayName = "GridItem";
|
|
|
4971
5182
|
|
|
4972
5183
|
// src/components/container/Container.tsx
|
|
4973
5184
|
import * as React66 from "react";
|
|
4974
|
-
import { jsx as
|
|
5185
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
4975
5186
|
var widthClasses = {
|
|
4976
5187
|
sm: "max-w-3xl",
|
|
4977
5188
|
md: "max-w-5xl",
|
|
@@ -4987,7 +5198,7 @@ var paddingClasses = {
|
|
|
4987
5198
|
};
|
|
4988
5199
|
var Container = React66.forwardRef(function Container2({ width = "lg", padding = "md", as = "div", className, ...props }, ref) {
|
|
4989
5200
|
const Tag = as;
|
|
4990
|
-
return /* @__PURE__ */
|
|
5201
|
+
return /* @__PURE__ */ jsx66(
|
|
4991
5202
|
Tag,
|
|
4992
5203
|
{
|
|
4993
5204
|
ref,
|
|
@@ -4999,8 +5210,8 @@ var Container = React66.forwardRef(function Container2({ width = "lg", padding =
|
|
|
4999
5210
|
|
|
5000
5211
|
// src/components/section/Section.tsx
|
|
5001
5212
|
import * as React67 from "react";
|
|
5002
|
-
import { jsx as
|
|
5003
|
-
var
|
|
5213
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
5214
|
+
var toneClasses2 = {
|
|
5004
5215
|
default: "bg-background text-foreground",
|
|
5005
5216
|
muted: "bg-muted/40 text-foreground",
|
|
5006
5217
|
subtle: "bg-secondary/50 text-secondary-foreground",
|
|
@@ -5053,22 +5264,22 @@ var Section = React67.forwardRef(function Section2({
|
|
|
5053
5264
|
}, ref) {
|
|
5054
5265
|
const Tag = as;
|
|
5055
5266
|
const toneStyle = tone === "inverse" ? inverseVars : tone === "brand" ? brandVars : void 0;
|
|
5056
|
-
return /* @__PURE__ */
|
|
5267
|
+
return /* @__PURE__ */ jsx67(
|
|
5057
5268
|
Tag,
|
|
5058
5269
|
{
|
|
5059
5270
|
ref,
|
|
5060
5271
|
"data-tone": tone === "default" ? void 0 : tone,
|
|
5061
|
-
className: cn("w-full",
|
|
5272
|
+
className: cn("w-full", toneClasses2[tone], paddingClasses2[padding], className),
|
|
5062
5273
|
style: { ...toneStyle, ...style },
|
|
5063
5274
|
...props,
|
|
5064
|
-
children: container ? /* @__PURE__ */
|
|
5275
|
+
children: container ? /* @__PURE__ */ jsx67(Container, { width, className: containerClassName, children }) : children
|
|
5065
5276
|
}
|
|
5066
5277
|
);
|
|
5067
5278
|
});
|
|
5068
5279
|
|
|
5069
5280
|
// src/components/hero/Hero.tsx
|
|
5070
5281
|
import * as React68 from "react";
|
|
5071
|
-
import { jsx as
|
|
5282
|
+
import { jsx as jsx68, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
5072
5283
|
var titleSizes = {
|
|
5073
5284
|
md: "text-3xl sm:text-4xl md:text-5xl",
|
|
5074
5285
|
lg: "text-4xl sm:text-5xl md:text-6xl lg:leading-[1.05]"
|
|
@@ -5099,7 +5310,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5099
5310
|
const Heading2 = `h${level}`;
|
|
5100
5311
|
const centered = layout === "centered" || align === "center";
|
|
5101
5312
|
const overlay = layout === "overlay";
|
|
5102
|
-
const copy = /* @__PURE__ */
|
|
5313
|
+
const copy = /* @__PURE__ */ jsxs45(
|
|
5103
5314
|
"div",
|
|
5104
5315
|
{
|
|
5105
5316
|
className: cn(
|
|
@@ -5108,7 +5319,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5108
5319
|
overlay && "max-w-2xl"
|
|
5109
5320
|
),
|
|
5110
5321
|
children: [
|
|
5111
|
-
badge && /* @__PURE__ */
|
|
5322
|
+
badge && /* @__PURE__ */ jsx68(
|
|
5112
5323
|
"div",
|
|
5113
5324
|
{
|
|
5114
5325
|
className: cn(
|
|
@@ -5119,7 +5330,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5119
5330
|
children: badge
|
|
5120
5331
|
}
|
|
5121
5332
|
),
|
|
5122
|
-
eyebrow && /* @__PURE__ */
|
|
5333
|
+
eyebrow && /* @__PURE__ */ jsx68(
|
|
5123
5334
|
"p",
|
|
5124
5335
|
{
|
|
5125
5336
|
className: cn(
|
|
@@ -5130,7 +5341,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5130
5341
|
children: eyebrow
|
|
5131
5342
|
}
|
|
5132
5343
|
),
|
|
5133
|
-
/* @__PURE__ */
|
|
5344
|
+
/* @__PURE__ */ jsx68(
|
|
5134
5345
|
Heading2,
|
|
5135
5346
|
{
|
|
5136
5347
|
className: cn(
|
|
@@ -5142,7 +5353,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5142
5353
|
children: title
|
|
5143
5354
|
}
|
|
5144
5355
|
),
|
|
5145
|
-
description && /* @__PURE__ */
|
|
5356
|
+
description && /* @__PURE__ */ jsx68(
|
|
5146
5357
|
"p",
|
|
5147
5358
|
{
|
|
5148
5359
|
className: cn(
|
|
@@ -5154,7 +5365,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5154
5365
|
children: description
|
|
5155
5366
|
}
|
|
5156
5367
|
),
|
|
5157
|
-
actions && /* @__PURE__ */
|
|
5368
|
+
actions && /* @__PURE__ */ jsx68(
|
|
5158
5369
|
"div",
|
|
5159
5370
|
{
|
|
5160
5371
|
className: cn(
|
|
@@ -5168,7 +5379,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5168
5379
|
}
|
|
5169
5380
|
);
|
|
5170
5381
|
if (overlay) {
|
|
5171
|
-
return /* @__PURE__ */
|
|
5382
|
+
return /* @__PURE__ */ jsxs45(
|
|
5172
5383
|
Tag,
|
|
5173
5384
|
{
|
|
5174
5385
|
ref,
|
|
@@ -5178,7 +5389,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5178
5389
|
),
|
|
5179
5390
|
...props,
|
|
5180
5391
|
children: [
|
|
5181
|
-
media && /* @__PURE__ */
|
|
5392
|
+
media && /* @__PURE__ */ jsx68(
|
|
5182
5393
|
"div",
|
|
5183
5394
|
{
|
|
5184
5395
|
className: cn(
|
|
@@ -5188,20 +5399,20 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5188
5399
|
children: media
|
|
5189
5400
|
}
|
|
5190
5401
|
),
|
|
5191
|
-
/* @__PURE__ */
|
|
5192
|
-
/* @__PURE__ */
|
|
5402
|
+
/* @__PURE__ */ jsx68("div", { "aria-hidden": "true", className: "absolute inset-0 -z-10 bg-foreground/60" }),
|
|
5403
|
+
/* @__PURE__ */ jsx68("div", { className: "relative w-full px-4 sm:px-6 lg:px-10", children: copy })
|
|
5193
5404
|
]
|
|
5194
5405
|
}
|
|
5195
5406
|
);
|
|
5196
5407
|
}
|
|
5197
5408
|
if (layout === "centered") {
|
|
5198
|
-
return /* @__PURE__ */
|
|
5409
|
+
return /* @__PURE__ */ jsxs45(Tag, { ref, className: cn("w-full", className), ...props, children: [
|
|
5199
5410
|
copy,
|
|
5200
|
-
media && /* @__PURE__ */
|
|
5411
|
+
media && /* @__PURE__ */ jsx68("div", { className: cn("mt-12 min-w-0", mediaClassName), children: media })
|
|
5201
5412
|
] });
|
|
5202
5413
|
}
|
|
5203
5414
|
if (layout === "stacked") {
|
|
5204
|
-
return /* @__PURE__ */
|
|
5415
|
+
return /* @__PURE__ */ jsxs45(
|
|
5205
5416
|
Tag,
|
|
5206
5417
|
{
|
|
5207
5418
|
ref,
|
|
@@ -5209,20 +5420,20 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5209
5420
|
...props,
|
|
5210
5421
|
children: [
|
|
5211
5422
|
copy,
|
|
5212
|
-
media && /* @__PURE__ */
|
|
5423
|
+
media && /* @__PURE__ */ jsx68("div", { className: cn("min-w-0 w-full", mediaClassName), children: media })
|
|
5213
5424
|
]
|
|
5214
5425
|
}
|
|
5215
5426
|
);
|
|
5216
5427
|
}
|
|
5217
|
-
return /* @__PURE__ */
|
|
5428
|
+
return /* @__PURE__ */ jsxs45(
|
|
5218
5429
|
Tag,
|
|
5219
5430
|
{
|
|
5220
5431
|
ref,
|
|
5221
5432
|
className: cn("grid w-full items-center gap-10 lg:grid-cols-2 lg:gap-16 xl:gap-20", className),
|
|
5222
5433
|
...props,
|
|
5223
5434
|
children: [
|
|
5224
|
-
/* @__PURE__ */
|
|
5225
|
-
media && /* @__PURE__ */
|
|
5435
|
+
/* @__PURE__ */ jsx68("div", { className: cn(mediaPosition === "left" && "lg:order-2"), children: copy }),
|
|
5436
|
+
media && /* @__PURE__ */ jsx68("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1", mediaClassName), children: media })
|
|
5226
5437
|
]
|
|
5227
5438
|
}
|
|
5228
5439
|
);
|
|
@@ -5230,7 +5441,7 @@ var Hero = React68.forwardRef(function Hero2({
|
|
|
5230
5441
|
|
|
5231
5442
|
// src/components/stat-band/StatBand.tsx
|
|
5232
5443
|
import * as React69 from "react";
|
|
5233
|
-
import { jsx as
|
|
5444
|
+
import { jsx as jsx69, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
5234
5445
|
var columnClasses = {
|
|
5235
5446
|
2: "sm:grid-cols-2",
|
|
5236
5447
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -5242,7 +5453,7 @@ var valueClasses = {
|
|
|
5242
5453
|
lg: "text-4xl sm:text-5xl"
|
|
5243
5454
|
};
|
|
5244
5455
|
var StatBand = React69.forwardRef(function StatBand2({ items, columns = 3, align = "center", size = "md", divided = true, className, ...props }, ref) {
|
|
5245
|
-
return /* @__PURE__ */
|
|
5456
|
+
return /* @__PURE__ */ jsx69(
|
|
5246
5457
|
"dl",
|
|
5247
5458
|
{
|
|
5248
5459
|
ref,
|
|
@@ -5253,7 +5464,7 @@ var StatBand = React69.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
5253
5464
|
className
|
|
5254
5465
|
),
|
|
5255
5466
|
...props,
|
|
5256
|
-
children: items.map((item) => /* @__PURE__ */
|
|
5467
|
+
children: items.map((item) => /* @__PURE__ */ jsxs46(
|
|
5257
5468
|
"div",
|
|
5258
5469
|
{
|
|
5259
5470
|
className: cn(
|
|
@@ -5261,11 +5472,11 @@ var StatBand = React69.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
5261
5472
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
5262
5473
|
),
|
|
5263
5474
|
children: [
|
|
5264
|
-
/* @__PURE__ */
|
|
5475
|
+
/* @__PURE__ */ jsxs46("dt", { className: "order-2 text-sm font-medium text-muted-foreground", children: [
|
|
5265
5476
|
item.label,
|
|
5266
|
-
item.hint && /* @__PURE__ */
|
|
5477
|
+
item.hint && /* @__PURE__ */ jsx69("span", { className: "mt-1 block text-xs font-normal", children: item.hint })
|
|
5267
5478
|
] }),
|
|
5268
|
-
/* @__PURE__ */
|
|
5479
|
+
/* @__PURE__ */ jsx69("dd", { className: cn("order-1 m-0 font-semibold tracking-tight tabular-nums", valueClasses[size]), children: item.value })
|
|
5269
5480
|
]
|
|
5270
5481
|
},
|
|
5271
5482
|
item.label
|
|
@@ -5276,7 +5487,7 @@ var StatBand = React69.forwardRef(function StatBand2({ items, columns = 3, align
|
|
|
5276
5487
|
|
|
5277
5488
|
// src/components/cta-section/CTASection.tsx
|
|
5278
5489
|
import * as React70 from "react";
|
|
5279
|
-
import { jsx as
|
|
5490
|
+
import { jsx as jsx70, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
5280
5491
|
var sizePadding = {
|
|
5281
5492
|
sm: "md",
|
|
5282
5493
|
md: "lg",
|
|
@@ -5294,7 +5505,7 @@ var CTASection = React70.forwardRef(function CTASection2({
|
|
|
5294
5505
|
className,
|
|
5295
5506
|
...props
|
|
5296
5507
|
}, ref) {
|
|
5297
|
-
return /* @__PURE__ */
|
|
5508
|
+
return /* @__PURE__ */ jsx70(
|
|
5298
5509
|
Section,
|
|
5299
5510
|
{
|
|
5300
5511
|
ref,
|
|
@@ -5303,7 +5514,7 @@ var CTASection = React70.forwardRef(function CTASection2({
|
|
|
5303
5514
|
width,
|
|
5304
5515
|
className,
|
|
5305
5516
|
...props,
|
|
5306
|
-
children: /* @__PURE__ */
|
|
5517
|
+
children: /* @__PURE__ */ jsxs47(
|
|
5307
5518
|
"div",
|
|
5308
5519
|
{
|
|
5309
5520
|
className: cn(
|
|
@@ -5311,10 +5522,10 @@ var CTASection = React70.forwardRef(function CTASection2({
|
|
|
5311
5522
|
align === "center" ? "items-center text-center" : "items-start text-left"
|
|
5312
5523
|
),
|
|
5313
5524
|
children: [
|
|
5314
|
-
eyebrow && /* @__PURE__ */
|
|
5315
|
-
/* @__PURE__ */
|
|
5316
|
-
description && /* @__PURE__ */
|
|
5317
|
-
actions && /* @__PURE__ */
|
|
5525
|
+
eyebrow && /* @__PURE__ */ jsx70("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary", children: eyebrow }),
|
|
5526
|
+
/* @__PURE__ */ jsx70("h2", { className: "max-w-3xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl", children: title }),
|
|
5527
|
+
description && /* @__PURE__ */ jsx70("p", { className: cn("max-w-2xl text-base leading-relaxed text-muted-foreground sm:text-lg"), children: description }),
|
|
5528
|
+
actions && /* @__PURE__ */ jsx70("div", { className: cn("mt-2 flex flex-wrap items-center gap-3", align === "center" && "justify-center"), children: actions })
|
|
5318
5529
|
]
|
|
5319
5530
|
}
|
|
5320
5531
|
)
|
|
@@ -5324,9 +5535,9 @@ var CTASection = React70.forwardRef(function CTASection2({
|
|
|
5324
5535
|
|
|
5325
5536
|
// src/components/comparison-table/ComparisonTable.tsx
|
|
5326
5537
|
import * as React71 from "react";
|
|
5327
|
-
import { Fragment as
|
|
5538
|
+
import { Fragment as Fragment12, jsx as jsx71, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
5328
5539
|
function CheckMark() {
|
|
5329
|
-
return /* @__PURE__ */
|
|
5540
|
+
return /* @__PURE__ */ jsx71(
|
|
5330
5541
|
"svg",
|
|
5331
5542
|
{
|
|
5332
5543
|
"aria-hidden": "true",
|
|
@@ -5337,12 +5548,12 @@ function CheckMark() {
|
|
|
5337
5548
|
strokeLinecap: "round",
|
|
5338
5549
|
strokeLinejoin: "round",
|
|
5339
5550
|
className: "mx-auto h-5 w-5 text-success",
|
|
5340
|
-
children: /* @__PURE__ */
|
|
5551
|
+
children: /* @__PURE__ */ jsx71("path", { d: "m4 10.5 4 4 8-9" })
|
|
5341
5552
|
}
|
|
5342
5553
|
);
|
|
5343
5554
|
}
|
|
5344
5555
|
function DashMark() {
|
|
5345
|
-
return /* @__PURE__ */
|
|
5556
|
+
return /* @__PURE__ */ jsx71(
|
|
5346
5557
|
"svg",
|
|
5347
5558
|
{
|
|
5348
5559
|
"aria-hidden": "true",
|
|
@@ -5352,7 +5563,7 @@ function DashMark() {
|
|
|
5352
5563
|
strokeWidth: "2.2",
|
|
5353
5564
|
strokeLinecap: "round",
|
|
5354
5565
|
className: "mx-auto h-5 w-5 text-muted-foreground/60",
|
|
5355
|
-
children: /* @__PURE__ */
|
|
5566
|
+
children: /* @__PURE__ */ jsx71("path", { d: "M5 10h10" })
|
|
5356
5567
|
}
|
|
5357
5568
|
);
|
|
5358
5569
|
}
|
|
@@ -5368,11 +5579,11 @@ var ComparisonTable = React71.forwardRef(
|
|
|
5368
5579
|
}, ref) {
|
|
5369
5580
|
const yes = valueLabels?.yes ?? "Included";
|
|
5370
5581
|
const no = valueLabels?.no ?? "Not included";
|
|
5371
|
-
return /* @__PURE__ */
|
|
5372
|
-
/* @__PURE__ */
|
|
5373
|
-
/* @__PURE__ */
|
|
5374
|
-
/* @__PURE__ */
|
|
5375
|
-
columns.map((column) => /* @__PURE__ */
|
|
5582
|
+
return /* @__PURE__ */ jsx71("div", { className: "w-full overflow-x-auto rounded-xl border border-border bg-card", children: /* @__PURE__ */ jsxs48("table", { ref, className: cn("w-full border-collapse text-sm", className), ...props, children: [
|
|
5583
|
+
/* @__PURE__ */ jsx71("caption", { className: "sr-only", children: caption }),
|
|
5584
|
+
/* @__PURE__ */ jsx71("thead", { children: /* @__PURE__ */ jsxs48("tr", { className: "border-b border-border", children: [
|
|
5585
|
+
/* @__PURE__ */ jsx71("th", { scope: "col", className: "min-w-48 px-5 py-4 text-left font-medium text-muted-foreground", children: featureLabel }),
|
|
5586
|
+
columns.map((column) => /* @__PURE__ */ jsx71(
|
|
5376
5587
|
"th",
|
|
5377
5588
|
{
|
|
5378
5589
|
scope: "col",
|
|
@@ -5385,21 +5596,21 @@ var ComparisonTable = React71.forwardRef(
|
|
|
5385
5596
|
column.label
|
|
5386
5597
|
))
|
|
5387
5598
|
] }) }),
|
|
5388
|
-
/* @__PURE__ */
|
|
5389
|
-
/* @__PURE__ */
|
|
5599
|
+
/* @__PURE__ */ jsx71("tbody", { children: rows.map((row) => /* @__PURE__ */ jsxs48("tr", { className: "border-b border-border last:border-b-0", children: [
|
|
5600
|
+
/* @__PURE__ */ jsxs48("th", { scope: "row", className: "px-5 py-4 text-left font-medium", children: [
|
|
5390
5601
|
row.feature,
|
|
5391
|
-
row.hint && /* @__PURE__ */
|
|
5602
|
+
row.hint && /* @__PURE__ */ jsx71("span", { className: "mt-1 block text-xs font-normal text-muted-foreground", children: row.hint })
|
|
5392
5603
|
] }),
|
|
5393
5604
|
columns.map((column, index) => {
|
|
5394
5605
|
const value = row.values[index];
|
|
5395
|
-
return /* @__PURE__ */
|
|
5606
|
+
return /* @__PURE__ */ jsx71(
|
|
5396
5607
|
"td",
|
|
5397
5608
|
{
|
|
5398
5609
|
className: cn("px-5 py-4 text-center align-middle", column.highlight && "bg-primary/5"),
|
|
5399
|
-
children: typeof value === "boolean" ? /* @__PURE__ */
|
|
5400
|
-
value ? /* @__PURE__ */
|
|
5401
|
-
/* @__PURE__ */
|
|
5402
|
-
] }) : /* @__PURE__ */
|
|
5610
|
+
children: typeof value === "boolean" ? /* @__PURE__ */ jsxs48(Fragment12, { children: [
|
|
5611
|
+
value ? /* @__PURE__ */ jsx71(CheckMark, {}) : /* @__PURE__ */ jsx71(DashMark, {}),
|
|
5612
|
+
/* @__PURE__ */ jsx71("span", { className: "sr-only", children: value ? yes : no })
|
|
5613
|
+
] }) : /* @__PURE__ */ jsx71("span", { children: value ?? "" })
|
|
5403
5614
|
},
|
|
5404
5615
|
`${row.feature}-${column.label}`
|
|
5405
5616
|
);
|
|
@@ -5411,7 +5622,7 @@ var ComparisonTable = React71.forwardRef(
|
|
|
5411
5622
|
|
|
5412
5623
|
// src/components/logo-cloud/LogoCloud.tsx
|
|
5413
5624
|
import * as React72 from "react";
|
|
5414
|
-
import { Fragment as
|
|
5625
|
+
import { Fragment as Fragment13, jsx as jsx72, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
5415
5626
|
var columnClasses2 = {
|
|
5416
5627
|
3: "grid-cols-2 sm:grid-cols-3",
|
|
5417
5628
|
4: "grid-cols-2 sm:grid-cols-4",
|
|
@@ -5440,8 +5651,8 @@ var LogoCloud = React72.forwardRef(function LogoCloud2({
|
|
|
5440
5651
|
sizeClasses9[size],
|
|
5441
5652
|
grayscale && "opacity-70 grayscale hover:opacity-100 hover:grayscale-0"
|
|
5442
5653
|
);
|
|
5443
|
-
return /* @__PURE__ */
|
|
5444
|
-
caption && /* @__PURE__ */
|
|
5654
|
+
return /* @__PURE__ */ jsxs49("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
5655
|
+
caption && /* @__PURE__ */ jsx72(
|
|
5445
5656
|
"p",
|
|
5446
5657
|
{
|
|
5447
5658
|
className: cn(
|
|
@@ -5451,12 +5662,12 @@ var LogoCloud = React72.forwardRef(function LogoCloud2({
|
|
|
5451
5662
|
children: caption
|
|
5452
5663
|
}
|
|
5453
5664
|
),
|
|
5454
|
-
/* @__PURE__ */
|
|
5455
|
-
const content = /* @__PURE__ */
|
|
5456
|
-
/* @__PURE__ */
|
|
5457
|
-
/* @__PURE__ */
|
|
5665
|
+
/* @__PURE__ */ jsx72("ul", { className: cn("grid items-center gap-x-8 gap-y-6", columnClasses2[columns], align === "center" && "justify-items-center"), children: items.map((item) => {
|
|
5666
|
+
const content = /* @__PURE__ */ jsxs49(Fragment13, { children: [
|
|
5667
|
+
/* @__PURE__ */ jsx72("span", { className: logoClass, "aria-hidden": "true", children: item.logo }),
|
|
5668
|
+
/* @__PURE__ */ jsx72("span", { className: "sr-only", children: item.name })
|
|
5458
5669
|
] });
|
|
5459
|
-
return /* @__PURE__ */
|
|
5670
|
+
return /* @__PURE__ */ jsx72("li", { className: cn("min-w-0", align === "center" ? "justify-self-center" : "justify-self-start"), children: item.href ? /* @__PURE__ */ jsx72(
|
|
5460
5671
|
Link3,
|
|
5461
5672
|
{
|
|
5462
5673
|
href: item.href,
|
|
@@ -5470,7 +5681,7 @@ var LogoCloud = React72.forwardRef(function LogoCloud2({
|
|
|
5470
5681
|
|
|
5471
5682
|
// src/components/feature-grid/FeatureGrid.tsx
|
|
5472
5683
|
import * as React73 from "react";
|
|
5473
|
-
import { Fragment as
|
|
5684
|
+
import { Fragment as Fragment14, jsx as jsx73, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
5474
5685
|
var columnClasses3 = {
|
|
5475
5686
|
2: "sm:grid-cols-2",
|
|
5476
5687
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
@@ -5483,22 +5694,22 @@ var FeatureGrid = React73.forwardRef(function FeatureGrid2({ features, columns =
|
|
|
5483
5694
|
variant === "card" && "border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
|
|
5484
5695
|
align === "center" && "items-center text-center"
|
|
5485
5696
|
);
|
|
5486
|
-
const content = (feature) => /* @__PURE__ */
|
|
5487
|
-
feature.icon && /* @__PURE__ */
|
|
5488
|
-
/* @__PURE__ */
|
|
5489
|
-
feature.description && /* @__PURE__ */
|
|
5490
|
-
feature.href && feature.actionLabel && /* @__PURE__ */
|
|
5697
|
+
const content = (feature) => /* @__PURE__ */ jsxs50(Fragment14, { children: [
|
|
5698
|
+
feature.icon && /* @__PURE__ */ jsx73("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary [&_svg]:size-5", children: feature.icon }),
|
|
5699
|
+
/* @__PURE__ */ jsx73("h3", { className: "text-base font-semibold tracking-tight", children: feature.title }),
|
|
5700
|
+
feature.description && /* @__PURE__ */ jsx73("p", { className: "text-sm leading-relaxed text-muted-foreground", children: feature.description }),
|
|
5701
|
+
feature.href && feature.actionLabel && /* @__PURE__ */ jsxs50("span", { className: "mt-auto pt-2 text-sm font-medium text-primary", children: [
|
|
5491
5702
|
feature.actionLabel,
|
|
5492
5703
|
" ",
|
|
5493
|
-
/* @__PURE__ */
|
|
5704
|
+
/* @__PURE__ */ jsx73("span", { "aria-hidden": "true", children: "\u2192" })
|
|
5494
5705
|
] })
|
|
5495
5706
|
] });
|
|
5496
|
-
return /* @__PURE__ */
|
|
5707
|
+
return /* @__PURE__ */ jsx73("ul", { ref, className: cn("grid gap-6", columnClasses3[columns], className), ...props, children: features.map((feature) => /* @__PURE__ */ jsx73("li", { className: "min-w-0", children: feature.href ? /* @__PURE__ */ jsx73(Link3, { href: feature.href, className: cn(cardClass, "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"), children: content(feature) }) : /* @__PURE__ */ jsx73("div", { className: cardClass, children: content(feature) }) }, feature.title)) });
|
|
5497
5708
|
});
|
|
5498
5709
|
|
|
5499
5710
|
// src/components/feature-row/FeatureRow.tsx
|
|
5500
5711
|
import * as React74 from "react";
|
|
5501
|
-
import { jsx as
|
|
5712
|
+
import { jsx as jsx74, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
5502
5713
|
var titleSizes2 = {
|
|
5503
5714
|
md: "text-3xl",
|
|
5504
5715
|
lg: "text-3xl sm:text-4xl"
|
|
@@ -5516,20 +5727,20 @@ var FeatureRow = React74.forwardRef(function FeatureRow2({
|
|
|
5516
5727
|
...props
|
|
5517
5728
|
}, ref) {
|
|
5518
5729
|
const Heading2 = `h${level}`;
|
|
5519
|
-
return /* @__PURE__ */
|
|
5730
|
+
return /* @__PURE__ */ jsxs51(
|
|
5520
5731
|
"div",
|
|
5521
5732
|
{
|
|
5522
5733
|
ref,
|
|
5523
5734
|
className: cn("grid items-center gap-10 lg:grid-cols-2 lg:gap-16", className),
|
|
5524
5735
|
...props,
|
|
5525
5736
|
children: [
|
|
5526
|
-
/* @__PURE__ */
|
|
5527
|
-
eyebrow && /* @__PURE__ */
|
|
5528
|
-
/* @__PURE__ */
|
|
5529
|
-
description && /* @__PURE__ */
|
|
5530
|
-
actions && /* @__PURE__ */
|
|
5737
|
+
/* @__PURE__ */ jsxs51("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-2"), children: [
|
|
5738
|
+
eyebrow && /* @__PURE__ */ jsx74("p", { className: "mb-3 text-xs font-semibold uppercase tracking-widest text-primary", children: eyebrow }),
|
|
5739
|
+
/* @__PURE__ */ jsx74(Heading2, { className: cn("font-semibold tracking-tight text-balance", titleSizes2[size]), children: title }),
|
|
5740
|
+
description && /* @__PURE__ */ jsx74("div", { className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg", children: description }),
|
|
5741
|
+
actions && /* @__PURE__ */ jsx74("div", { className: "mt-7 flex flex-wrap items-center gap-3", children: actions })
|
|
5531
5742
|
] }),
|
|
5532
|
-
/* @__PURE__ */
|
|
5743
|
+
/* @__PURE__ */ jsx74("div", { className: cn("min-w-0", mediaPosition === "left" && "lg:order-1"), children: media })
|
|
5533
5744
|
]
|
|
5534
5745
|
}
|
|
5535
5746
|
);
|
|
@@ -5537,14 +5748,14 @@ var FeatureRow = React74.forwardRef(function FeatureRow2({
|
|
|
5537
5748
|
|
|
5538
5749
|
// src/components/testimonial/Testimonial.tsx
|
|
5539
5750
|
import * as React75 from "react";
|
|
5540
|
-
import { jsx as
|
|
5751
|
+
import { jsx as jsx75, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
5541
5752
|
var quoteSizes = {
|
|
5542
5753
|
sm: "text-base",
|
|
5543
5754
|
md: "text-lg",
|
|
5544
5755
|
lg: "text-xl sm:text-2xl"
|
|
5545
5756
|
};
|
|
5546
5757
|
var Testimonial = React75.forwardRef(function Testimonial2({ quote, name, role, company, avatar, logo, variant = "card", size = "md", className, ...props }, ref) {
|
|
5547
|
-
return /* @__PURE__ */
|
|
5758
|
+
return /* @__PURE__ */ jsxs52(
|
|
5548
5759
|
"figure",
|
|
5549
5760
|
{
|
|
5550
5761
|
ref,
|
|
@@ -5555,17 +5766,17 @@ var Testimonial = React75.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
5555
5766
|
),
|
|
5556
5767
|
...props,
|
|
5557
5768
|
children: [
|
|
5558
|
-
logo && /* @__PURE__ */
|
|
5559
|
-
/* @__PURE__ */
|
|
5769
|
+
logo && /* @__PURE__ */ jsx75("div", { className: "flex items-center", children: logo }),
|
|
5770
|
+
/* @__PURE__ */ jsx75("blockquote", { className: cn("flex-1 leading-relaxed", quoteSizes[size]), children: /* @__PURE__ */ jsxs52("p", { children: [
|
|
5560
5771
|
"\u201C",
|
|
5561
5772
|
quote,
|
|
5562
5773
|
"\u201D"
|
|
5563
5774
|
] }) }),
|
|
5564
|
-
/* @__PURE__ */
|
|
5565
|
-
avatar && /* @__PURE__ */
|
|
5566
|
-
/* @__PURE__ */
|
|
5567
|
-
/* @__PURE__ */
|
|
5568
|
-
(role || company) && /* @__PURE__ */
|
|
5775
|
+
/* @__PURE__ */ jsxs52("figcaption", { className: "flex items-center gap-3", children: [
|
|
5776
|
+
avatar && /* @__PURE__ */ jsx75("div", { className: "shrink-0", children: avatar }),
|
|
5777
|
+
/* @__PURE__ */ jsxs52("div", { className: "min-w-0", children: [
|
|
5778
|
+
/* @__PURE__ */ jsx75("p", { className: "text-sm font-semibold", children: name }),
|
|
5779
|
+
(role || company) && /* @__PURE__ */ jsx75("p", { className: "text-xs text-muted-foreground", children: [role, company].filter(Boolean).join(", ") })
|
|
5569
5780
|
] })
|
|
5570
5781
|
] })
|
|
5571
5782
|
]
|
|
@@ -5575,22 +5786,22 @@ var Testimonial = React75.forwardRef(function Testimonial2({ quote, name, role,
|
|
|
5575
5786
|
|
|
5576
5787
|
// src/components/process-steps/ProcessSteps.tsx
|
|
5577
5788
|
import * as React76 from "react";
|
|
5578
|
-
import { jsx as
|
|
5789
|
+
import { jsx as jsx76, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
5579
5790
|
var columnClasses4 = {
|
|
5580
5791
|
2: "sm:grid-cols-2",
|
|
5581
5792
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
5582
5793
|
4: "sm:grid-cols-2 lg:grid-cols-4"
|
|
5583
5794
|
};
|
|
5584
5795
|
var ProcessSteps = React76.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", className, ...props }, ref) {
|
|
5585
|
-
return /* @__PURE__ */
|
|
5796
|
+
return /* @__PURE__ */ jsx76("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ jsxs53(
|
|
5586
5797
|
"li",
|
|
5587
5798
|
{
|
|
5588
5799
|
className: cn("flex min-w-0 flex-col gap-4", align === "center" && "items-center text-center"),
|
|
5589
5800
|
children: [
|
|
5590
|
-
/* @__PURE__ */
|
|
5591
|
-
/* @__PURE__ */
|
|
5592
|
-
/* @__PURE__ */
|
|
5593
|
-
step.description && /* @__PURE__ */
|
|
5801
|
+
/* @__PURE__ */ jsx76("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 text-sm font-semibold text-primary [&_svg]:size-5", children: step.icon ?? (numbered ? String(index + 1).padStart(2, "0") : null) }),
|
|
5802
|
+
/* @__PURE__ */ jsxs53("div", { className: "min-w-0", children: [
|
|
5803
|
+
/* @__PURE__ */ jsx76("h3", { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
5804
|
+
step.description && /* @__PURE__ */ jsx76("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
5594
5805
|
] })
|
|
5595
5806
|
]
|
|
5596
5807
|
},
|
|
@@ -5600,7 +5811,7 @@ var ProcessSteps = React76.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
5600
5811
|
|
|
5601
5812
|
// src/components/article-card/ArticleCard.tsx
|
|
5602
5813
|
import * as React77 from "react";
|
|
5603
|
-
import { jsx as
|
|
5814
|
+
import { jsx as jsx77, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
5604
5815
|
var ArticleCard = React77.forwardRef(function ArticleCard2({
|
|
5605
5816
|
title,
|
|
5606
5817
|
description,
|
|
@@ -5615,7 +5826,7 @@ var ArticleCard = React77.forwardRef(function ArticleCard2({
|
|
|
5615
5826
|
}, ref) {
|
|
5616
5827
|
const Link3 = linkComponent ?? "a";
|
|
5617
5828
|
const compact = variant === "compact";
|
|
5618
|
-
return /* @__PURE__ */
|
|
5829
|
+
return /* @__PURE__ */ jsx77("article", { ref, className: cn("h-full", className), ...props, children: /* @__PURE__ */ jsxs54(
|
|
5619
5830
|
Link3,
|
|
5620
5831
|
{
|
|
5621
5832
|
href,
|
|
@@ -5624,12 +5835,12 @@ var ArticleCard = React77.forwardRef(function ArticleCard2({
|
|
|
5624
5835
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
5625
5836
|
),
|
|
5626
5837
|
children: [
|
|
5627
|
-
media && !compact && /* @__PURE__ */
|
|
5628
|
-
/* @__PURE__ */
|
|
5629
|
-
eyebrow && /* @__PURE__ */
|
|
5630
|
-
/* @__PURE__ */
|
|
5631
|
-
description && /* @__PURE__ */
|
|
5632
|
-
meta && /* @__PURE__ */
|
|
5838
|
+
media && !compact && /* @__PURE__ */ jsx77("div", { className: "aspect-[16/10] w-full overflow-hidden bg-muted [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: media }),
|
|
5839
|
+
/* @__PURE__ */ jsxs54("div", { className: cn("flex flex-1 flex-col gap-2", compact ? "p-4" : "p-5"), children: [
|
|
5840
|
+
eyebrow && /* @__PURE__ */ jsx77("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary", children: eyebrow }),
|
|
5841
|
+
/* @__PURE__ */ jsx77("h3", { className: cn("font-semibold tracking-tight transition-colors group-hover:text-primary", compact ? "text-base" : "text-lg"), children: title }),
|
|
5842
|
+
description && /* @__PURE__ */ jsx77("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
5843
|
+
meta && /* @__PURE__ */ jsx77("div", { className: "mt-auto pt-2 text-xs text-muted-foreground", children: meta })
|
|
5633
5844
|
] })
|
|
5634
5845
|
]
|
|
5635
5846
|
}
|
|
@@ -5638,7 +5849,7 @@ var ArticleCard = React77.forwardRef(function ArticleCard2({
|
|
|
5638
5849
|
|
|
5639
5850
|
// src/components/newsletter/Newsletter.tsx
|
|
5640
5851
|
import * as React78 from "react";
|
|
5641
|
-
import { jsx as
|
|
5852
|
+
import { jsx as jsx78, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
5642
5853
|
var Newsletter = React78.forwardRef(function Newsletter2({
|
|
5643
5854
|
title,
|
|
5644
5855
|
description,
|
|
@@ -5670,13 +5881,13 @@ var Newsletter = React78.forwardRef(function Newsletter2({
|
|
|
5670
5881
|
setStatus("error");
|
|
5671
5882
|
}
|
|
5672
5883
|
};
|
|
5673
|
-
return /* @__PURE__ */
|
|
5674
|
-
/* @__PURE__ */
|
|
5675
|
-
description && /* @__PURE__ */
|
|
5676
|
-
/* @__PURE__ */
|
|
5677
|
-
/* @__PURE__ */
|
|
5678
|
-
/* @__PURE__ */
|
|
5679
|
-
/* @__PURE__ */
|
|
5884
|
+
return /* @__PURE__ */ jsxs55("div", { className: "w-full", children: [
|
|
5885
|
+
/* @__PURE__ */ jsx78(Heading2, { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
5886
|
+
description && /* @__PURE__ */ jsx78("p", { className: "mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
5887
|
+
/* @__PURE__ */ jsxs55("form", { ref, onSubmit: handleSubmit, className: cn("mt-5", className), ...props, children: [
|
|
5888
|
+
/* @__PURE__ */ jsxs55("div", { className: cn("flex gap-2", layout === "inline" ? "flex-col sm:flex-row" : "flex-col"), children: [
|
|
5889
|
+
/* @__PURE__ */ jsx78("label", { htmlFor: id, className: "sr-only", children: label }),
|
|
5890
|
+
/* @__PURE__ */ jsx78(
|
|
5680
5891
|
Input,
|
|
5681
5892
|
{
|
|
5682
5893
|
id,
|
|
@@ -5691,12 +5902,12 @@ var Newsletter = React78.forwardRef(function Newsletter2({
|
|
|
5691
5902
|
className: "sm:flex-1"
|
|
5692
5903
|
}
|
|
5693
5904
|
),
|
|
5694
|
-
/* @__PURE__ */
|
|
5905
|
+
/* @__PURE__ */ jsx78(Button, { type: "submit", loading: status === "loading", className: "shrink-0", children: buttonLabel })
|
|
5695
5906
|
] }),
|
|
5696
|
-
consent && /* @__PURE__ */
|
|
5697
|
-
/* @__PURE__ */
|
|
5698
|
-
status === "success" && /* @__PURE__ */
|
|
5699
|
-
status === "error" && /* @__PURE__ */
|
|
5907
|
+
consent && /* @__PURE__ */ jsx78("div", { className: "mt-3 text-xs leading-relaxed text-muted-foreground", children: consent }),
|
|
5908
|
+
/* @__PURE__ */ jsxs55("div", { "aria-live": "polite", className: "mt-2 min-h-5 text-sm", children: [
|
|
5909
|
+
status === "success" && /* @__PURE__ */ jsx78("p", { className: "text-success", children: successMessage }),
|
|
5910
|
+
status === "error" && /* @__PURE__ */ jsx78("p", { role: "alert", className: "text-destructive", children: errorMessage })
|
|
5700
5911
|
] })
|
|
5701
5912
|
] })
|
|
5702
5913
|
] });
|
|
@@ -5704,26 +5915,26 @@ var Newsletter = React78.forwardRef(function Newsletter2({
|
|
|
5704
5915
|
|
|
5705
5916
|
// src/components/contact-strip/ContactStrip.tsx
|
|
5706
5917
|
import * as React79 from "react";
|
|
5707
|
-
import { jsx as
|
|
5918
|
+
import { jsx as jsx79, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
5708
5919
|
var columnClasses5 = {
|
|
5709
5920
|
2: "sm:grid-cols-2",
|
|
5710
5921
|
3: "sm:grid-cols-3"
|
|
5711
5922
|
};
|
|
5712
5923
|
var ContactStrip = React79.forwardRef(function ContactStrip2({ items, columns = 2, align = "left", linkComponent, className, ...props }, ref) {
|
|
5713
5924
|
const Link3 = linkComponent ?? "a";
|
|
5714
|
-
return /* @__PURE__ */
|
|
5715
|
-
item.icon && /* @__PURE__ */
|
|
5716
|
-
/* @__PURE__ */
|
|
5717
|
-
/* @__PURE__ */
|
|
5718
|
-
item.href ? /* @__PURE__ */
|
|
5925
|
+
return /* @__PURE__ */ jsx79("ul", { ref, className: cn("grid gap-6", columnClasses5[columns], className), ...props, children: items.map((item) => /* @__PURE__ */ jsxs56("li", { className: cn("flex min-w-0 items-start gap-3", align === "center" && "justify-center text-center"), children: [
|
|
5926
|
+
item.icon && /* @__PURE__ */ jsx79("span", { className: "mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary [&_svg]:size-4", children: item.icon }),
|
|
5927
|
+
/* @__PURE__ */ jsxs56("div", { className: "min-w-0", children: [
|
|
5928
|
+
/* @__PURE__ */ jsx79("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: item.label }),
|
|
5929
|
+
item.href ? /* @__PURE__ */ jsx79(Link3, { href: item.href, className: "mt-0.5 block break-words text-sm font-medium text-primary underline-offset-4 hover:underline", children: item.value }) : /* @__PURE__ */ jsx79("p", { className: "mt-0.5 break-words text-sm font-medium", children: item.value })
|
|
5719
5930
|
] })
|
|
5720
5931
|
] }, item.label)) });
|
|
5721
5932
|
});
|
|
5722
5933
|
|
|
5723
5934
|
// src/components/announcement-bar/AnnouncementBar.tsx
|
|
5724
5935
|
import * as React80 from "react";
|
|
5725
|
-
import { jsx as
|
|
5726
|
-
var
|
|
5936
|
+
import { jsx as jsx80, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
5937
|
+
var toneClasses3 = {
|
|
5727
5938
|
muted: "bg-muted text-foreground",
|
|
5728
5939
|
brand: "bg-primary text-primary-foreground",
|
|
5729
5940
|
inverse: "bg-inverse text-inverse-foreground"
|
|
@@ -5748,7 +5959,7 @@ var AnnouncementBar = React80.forwardRef(
|
|
|
5748
5959
|
setDismissed(true);
|
|
5749
5960
|
onDismiss?.();
|
|
5750
5961
|
};
|
|
5751
|
-
return /* @__PURE__ */
|
|
5962
|
+
return /* @__PURE__ */ jsx80(
|
|
5752
5963
|
"div",
|
|
5753
5964
|
{
|
|
5754
5965
|
ref,
|
|
@@ -5756,14 +5967,14 @@ var AnnouncementBar = React80.forwardRef(
|
|
|
5756
5967
|
"aria-label": "Announcement",
|
|
5757
5968
|
className: cn(
|
|
5758
5969
|
"w-full border-b border-border/60",
|
|
5759
|
-
|
|
5970
|
+
toneClasses3[tone],
|
|
5760
5971
|
sticky && "sticky top-0 z-30",
|
|
5761
5972
|
className
|
|
5762
5973
|
),
|
|
5763
5974
|
...props,
|
|
5764
|
-
children: /* @__PURE__ */
|
|
5765
|
-
/* @__PURE__ */
|
|
5766
|
-
href && actionLabel && /* @__PURE__ */
|
|
5975
|
+
children: /* @__PURE__ */ jsxs57("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: [
|
|
5976
|
+
/* @__PURE__ */ jsx80("p", { className: "min-w-0 text-center", children: message }),
|
|
5977
|
+
href && actionLabel && /* @__PURE__ */ jsx80(
|
|
5767
5978
|
Link3,
|
|
5768
5979
|
{
|
|
5769
5980
|
href,
|
|
@@ -5771,14 +5982,14 @@ var AnnouncementBar = React80.forwardRef(
|
|
|
5771
5982
|
children: actionLabel
|
|
5772
5983
|
}
|
|
5773
5984
|
),
|
|
5774
|
-
dismissible && /* @__PURE__ */
|
|
5985
|
+
dismissible && /* @__PURE__ */ jsx80(
|
|
5775
5986
|
"button",
|
|
5776
5987
|
{
|
|
5777
5988
|
type: "button",
|
|
5778
5989
|
onClick: dismiss2,
|
|
5779
5990
|
"aria-label": "Dismiss announcement",
|
|
5780
5991
|
className: "shrink-0 rounded p-1 opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current",
|
|
5781
|
-
children: /* @__PURE__ */
|
|
5992
|
+
children: /* @__PURE__ */ jsx80("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx80("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
5782
5993
|
}
|
|
5783
5994
|
)
|
|
5784
5995
|
] })
|
|
@@ -5789,7 +6000,7 @@ var AnnouncementBar = React80.forwardRef(
|
|
|
5789
6000
|
|
|
5790
6001
|
// src/components/deal-card/DealCard.tsx
|
|
5791
6002
|
import * as React81 from "react";
|
|
5792
|
-
import { jsx as
|
|
6003
|
+
import { jsx as jsx81, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
5793
6004
|
var statusConfig = {
|
|
5794
6005
|
available: { label: "Available", variant: "success" },
|
|
5795
6006
|
"under-nda": { label: "Under NDA", variant: "info" },
|
|
@@ -5817,29 +6028,29 @@ var DealCard = React81.forwardRef(function DealCard2({
|
|
|
5817
6028
|
}, ref) {
|
|
5818
6029
|
const Link3 = linkComponent ?? "a";
|
|
5819
6030
|
const statusInfo = statusConfig[status];
|
|
5820
|
-
return /* @__PURE__ */
|
|
5821
|
-
/* @__PURE__ */
|
|
5822
|
-
/* @__PURE__ */
|
|
5823
|
-
/* @__PURE__ */
|
|
5824
|
-
/* @__PURE__ */
|
|
6031
|
+
return /* @__PURE__ */ jsxs58(Card, { ref, className: cn("flex h-full flex-col overflow-hidden", className), ...props, children: [
|
|
6032
|
+
/* @__PURE__ */ jsxs58(CardHeader, { className: "gap-2 p-5 pb-3", children: [
|
|
6033
|
+
/* @__PURE__ */ jsxs58("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6034
|
+
/* @__PURE__ */ jsx81("p", { className: "text-xs font-semibold uppercase tracking-widest text-primary", children: sector }),
|
|
6035
|
+
/* @__PURE__ */ jsx81(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
5825
6036
|
] }),
|
|
5826
|
-
/* @__PURE__ */
|
|
5827
|
-
location && /* @__PURE__ */
|
|
6037
|
+
/* @__PURE__ */ jsx81("h3", { className: "text-lg font-semibold leading-snug tracking-tight", children: href ? /* @__PURE__ */ jsx81(Link3, { href, className: "rounded-sm hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: title }) : title }),
|
|
6038
|
+
location && /* @__PURE__ */ jsx81("p", { className: "text-xs text-muted-foreground", children: location })
|
|
5828
6039
|
] }),
|
|
5829
|
-
/* @__PURE__ */
|
|
5830
|
-
description && /* @__PURE__ */
|
|
5831
|
-
/* @__PURE__ */
|
|
5832
|
-
/* @__PURE__ */
|
|
5833
|
-
/* @__PURE__ */
|
|
6040
|
+
/* @__PURE__ */ jsxs58(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
6041
|
+
description && /* @__PURE__ */ jsx81("p", { className: "line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6042
|
+
/* @__PURE__ */ jsx81("dl", { className: "mt-4 grid grid-cols-3 gap-3", children: metrics.map((metric) => /* @__PURE__ */ jsxs58("div", { className: "min-w-0", children: [
|
|
6043
|
+
/* @__PURE__ */ jsx81("dt", { className: "text-xs text-muted-foreground", children: metric.label }),
|
|
6044
|
+
/* @__PURE__ */ jsx81("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: metric.value })
|
|
5834
6045
|
] }, metric.label)) }),
|
|
5835
|
-
(ndaAvailable || cimAvailable) && /* @__PURE__ */
|
|
5836
|
-
ndaAvailable && /* @__PURE__ */
|
|
5837
|
-
cimAvailable && /* @__PURE__ */
|
|
6046
|
+
(ndaAvailable || cimAvailable) && /* @__PURE__ */ jsxs58("div", { className: "mt-4 flex flex-wrap gap-1.5", children: [
|
|
6047
|
+
ndaAvailable && /* @__PURE__ */ jsx81(Badge, { variant: "info", children: "NDA available" }),
|
|
6048
|
+
cimAvailable && /* @__PURE__ */ jsx81(Badge, { variant: "secondary", children: "CIM available" })
|
|
5838
6049
|
] })
|
|
5839
6050
|
] }),
|
|
5840
|
-
/* @__PURE__ */
|
|
5841
|
-
onRequestAccess && /* @__PURE__ */
|
|
5842
|
-
onSave && /* @__PURE__ */
|
|
6051
|
+
/* @__PURE__ */ jsxs58(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
6052
|
+
onRequestAccess && /* @__PURE__ */ jsx81(Button, { type: "button", size: "sm", onClick: onRequestAccess, children: requestLabel }),
|
|
6053
|
+
onSave && /* @__PURE__ */ jsx81(
|
|
5843
6054
|
Button,
|
|
5844
6055
|
{
|
|
5845
6056
|
type: "button",
|
|
@@ -5857,7 +6068,7 @@ var DealCard = React81.forwardRef(function DealCard2({
|
|
|
5857
6068
|
|
|
5858
6069
|
// src/components/entity-card/EntityCard.tsx
|
|
5859
6070
|
import * as React82 from "react";
|
|
5860
|
-
import { jsx as
|
|
6071
|
+
import { jsx as jsx82, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
5861
6072
|
function initials(name) {
|
|
5862
6073
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
5863
6074
|
}
|
|
@@ -5876,25 +6087,25 @@ var EntityCard = React82.forwardRef(function EntityCard2({
|
|
|
5876
6087
|
...props
|
|
5877
6088
|
}, ref) {
|
|
5878
6089
|
const Link3 = linkComponent ?? "a";
|
|
5879
|
-
return /* @__PURE__ */
|
|
5880
|
-
/* @__PURE__ */
|
|
5881
|
-
/* @__PURE__ */
|
|
5882
|
-
/* @__PURE__ */
|
|
5883
|
-
/* @__PURE__ */
|
|
5884
|
-
/* @__PURE__ */
|
|
5885
|
-
location && /* @__PURE__ */
|
|
6090
|
+
return /* @__PURE__ */ jsxs59(Card, { ref, className: cn("flex h-full flex-col", className), ...props, children: [
|
|
6091
|
+
/* @__PURE__ */ jsxs59(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
|
|
6092
|
+
/* @__PURE__ */ jsx82("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ jsx82(Avatar, { children: /* @__PURE__ */ jsx82(AvatarFallback, { children: initials(name) }) }) }),
|
|
6093
|
+
/* @__PURE__ */ jsxs59("div", { className: "min-w-0 flex-1", children: [
|
|
6094
|
+
/* @__PURE__ */ jsx82("h3", { className: "truncate text-base font-semibold tracking-tight", children: href ? /* @__PURE__ */ jsx82(Link3, { href, className: "rounded-sm hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: name }) : name }),
|
|
6095
|
+
/* @__PURE__ */ jsx82("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
|
|
6096
|
+
location && /* @__PURE__ */ jsx82("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
|
|
5886
6097
|
] })
|
|
5887
6098
|
] }),
|
|
5888
|
-
/* @__PURE__ */
|
|
5889
|
-
description && /* @__PURE__ */
|
|
5890
|
-
tags && tags.length > 0 && /* @__PURE__ */
|
|
5891
|
-
stats && stats.length > 0 && /* @__PURE__ */
|
|
5892
|
-
/* @__PURE__ */
|
|
5893
|
-
/* @__PURE__ */
|
|
6099
|
+
/* @__PURE__ */ jsxs59(CardContent, { className: "flex-1 px-5 pb-3", children: [
|
|
6100
|
+
description && /* @__PURE__ */ jsx82("p", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
|
|
6101
|
+
tags && tags.length > 0 && /* @__PURE__ */ jsx82("div", { className: "mt-3 flex flex-wrap gap-1.5", children: tags.map((tag) => /* @__PURE__ */ jsx82(Badge, { variant: "secondary", children: tag }, tag)) }),
|
|
6102
|
+
stats && stats.length > 0 && /* @__PURE__ */ jsx82("dl", { className: "mt-4 grid grid-cols-2 gap-3", children: stats.map((stat) => /* @__PURE__ */ jsxs59("div", { className: "min-w-0", children: [
|
|
6103
|
+
/* @__PURE__ */ jsx82("dt", { className: "text-xs text-muted-foreground", children: stat.label }),
|
|
6104
|
+
/* @__PURE__ */ jsx82("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
|
|
5894
6105
|
] }, stat.label)) })
|
|
5895
6106
|
] }),
|
|
5896
|
-
(href || actions) && /* @__PURE__ */
|
|
5897
|
-
href && /* @__PURE__ */
|
|
6107
|
+
(href || actions) && /* @__PURE__ */ jsxs59(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
|
|
6108
|
+
href && /* @__PURE__ */ jsx82(
|
|
5898
6109
|
Link3,
|
|
5899
6110
|
{
|
|
5900
6111
|
href,
|
|
@@ -5902,7 +6113,7 @@ var EntityCard = React82.forwardRef(function EntityCard2({
|
|
|
5902
6113
|
children: "View profile"
|
|
5903
6114
|
}
|
|
5904
6115
|
),
|
|
5905
|
-
actions && /* @__PURE__ */
|
|
6116
|
+
actions && /* @__PURE__ */ jsx82("div", { className: "ml-auto flex items-center gap-2", children: actions })
|
|
5906
6117
|
] })
|
|
5907
6118
|
] });
|
|
5908
6119
|
});
|
|
@@ -5910,7 +6121,7 @@ var ProfileCard = EntityCard;
|
|
|
5910
6121
|
|
|
5911
6122
|
// src/components/tombstone-card/TombstoneCard.tsx
|
|
5912
6123
|
import * as React83 from "react";
|
|
5913
|
-
import { jsx as
|
|
6124
|
+
import { jsx as jsx83, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
5914
6125
|
var statusConfig2 = {
|
|
5915
6126
|
archived: { label: "Archived", variant: "secondary" },
|
|
5916
6127
|
unavailable: { label: "Unavailable", variant: "warning" },
|
|
@@ -5929,20 +6140,20 @@ var TombstoneCard = React83.forwardRef(function TombstoneCard2({
|
|
|
5929
6140
|
}, ref) {
|
|
5930
6141
|
const Link3 = linkComponent ?? "a";
|
|
5931
6142
|
const statusInfo = statusConfig2[status];
|
|
5932
|
-
return /* @__PURE__ */
|
|
6143
|
+
return /* @__PURE__ */ jsx83(
|
|
5933
6144
|
Card,
|
|
5934
6145
|
{
|
|
5935
6146
|
ref,
|
|
5936
6147
|
className: cn("flex h-full flex-col border-dashed bg-muted/30 shadow-none", className),
|
|
5937
6148
|
...props,
|
|
5938
|
-
children: /* @__PURE__ */
|
|
5939
|
-
/* @__PURE__ */
|
|
5940
|
-
logo && /* @__PURE__ */
|
|
5941
|
-
/* @__PURE__ */
|
|
6149
|
+
children: /* @__PURE__ */ jsxs60(CardContent, { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
6150
|
+
/* @__PURE__ */ jsxs60("div", { className: "flex items-start justify-between gap-2", children: [
|
|
6151
|
+
logo && /* @__PURE__ */ jsx83("div", { className: "min-w-0 opacity-70", children: logo }),
|
|
6152
|
+
/* @__PURE__ */ jsx83(Badge, { variant: statusInfo.variant, children: statusInfo.label })
|
|
5942
6153
|
] }),
|
|
5943
|
-
/* @__PURE__ */
|
|
5944
|
-
reason && /* @__PURE__ */
|
|
5945
|
-
href && /* @__PURE__ */
|
|
6154
|
+
/* @__PURE__ */ jsx83("h3", { className: "text-base font-semibold tracking-tight text-foreground/80", children: title }),
|
|
6155
|
+
reason && /* @__PURE__ */ jsx83("p", { className: "text-sm leading-relaxed text-muted-foreground", children: reason }),
|
|
6156
|
+
href && /* @__PURE__ */ jsx83(
|
|
5946
6157
|
Link3,
|
|
5947
6158
|
{
|
|
5948
6159
|
href,
|
|
@@ -5957,7 +6168,7 @@ var TombstoneCard = React83.forwardRef(function TombstoneCard2({
|
|
|
5957
6168
|
|
|
5958
6169
|
// src/components/document-card/DocumentCard.tsx
|
|
5959
6170
|
import * as React84 from "react";
|
|
5960
|
-
import { jsx as
|
|
6171
|
+
import { jsx as jsx84, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
5961
6172
|
var statusConfig3 = {
|
|
5962
6173
|
available: { label: "Available", variant: "success" },
|
|
5963
6174
|
restricted: { label: "Restricted", variant: "warning" },
|
|
@@ -5977,14 +6188,14 @@ var DocumentCard = React84.forwardRef(function DocumentCard2({
|
|
|
5977
6188
|
}, ref) {
|
|
5978
6189
|
const statusInfo = statusConfig3[status];
|
|
5979
6190
|
const meta = [fileType, size, updatedAt].filter(Boolean).join(" \xB7 ");
|
|
5980
|
-
return /* @__PURE__ */
|
|
5981
|
-
/* @__PURE__ */
|
|
5982
|
-
/* @__PURE__ */
|
|
5983
|
-
/* @__PURE__ */
|
|
5984
|
-
meta && /* @__PURE__ */
|
|
6191
|
+
return /* @__PURE__ */ jsx84(Card, { ref, className: cn("w-full", className), ...props, children: /* @__PURE__ */ jsxs61(CardContent, { className: "flex items-center gap-3 p-4", children: [
|
|
6192
|
+
/* @__PURE__ */ jsx84("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary [&_svg]:size-5", children: icon ?? /* @__PURE__ */ jsx84("span", { className: "text-[10px] font-bold uppercase tracking-wide", children: fileType }) }),
|
|
6193
|
+
/* @__PURE__ */ jsxs61("div", { className: "min-w-0 flex-1", children: [
|
|
6194
|
+
/* @__PURE__ */ jsx84("p", { className: "truncate text-sm font-medium", children: name }),
|
|
6195
|
+
meta && /* @__PURE__ */ jsx84("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: meta })
|
|
5985
6196
|
] }),
|
|
5986
|
-
/* @__PURE__ */
|
|
5987
|
-
onDownload && /* @__PURE__ */
|
|
6197
|
+
/* @__PURE__ */ jsx84(Badge, { variant: statusInfo.variant, children: statusInfo.label }),
|
|
6198
|
+
onDownload && /* @__PURE__ */ jsx84(
|
|
5988
6199
|
Button,
|
|
5989
6200
|
{
|
|
5990
6201
|
type: "button",
|
|
@@ -6001,7 +6212,7 @@ var DocumentCard = React84.forwardRef(function DocumentCard2({
|
|
|
6001
6212
|
|
|
6002
6213
|
// src/components/load-more/LoadMore.tsx
|
|
6003
6214
|
import * as React85 from "react";
|
|
6004
|
-
import { jsx as
|
|
6215
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
6005
6216
|
var LoadMore = React85.forwardRef(function LoadMore2({
|
|
6006
6217
|
hasMore,
|
|
6007
6218
|
onLoadMore,
|
|
@@ -6012,12 +6223,12 @@ var LoadMore = React85.forwardRef(function LoadMore2({
|
|
|
6012
6223
|
className,
|
|
6013
6224
|
...props
|
|
6014
6225
|
}, ref) {
|
|
6015
|
-
return /* @__PURE__ */
|
|
6226
|
+
return /* @__PURE__ */ jsx85("div", { ref, "aria-live": "polite", className: cn("flex w-full justify-center py-4", className), ...props, children: hasMore ? /* @__PURE__ */ jsx85(Button, { type: "button", variant: "outline", onClick: onLoadMore, loading, children: loading ? loadingLabel : loadLabel }) : /* @__PURE__ */ jsx85("p", { role: "status", className: "text-sm text-muted-foreground", children: endLabel }) });
|
|
6016
6227
|
});
|
|
6017
6228
|
|
|
6018
6229
|
// src/components/segmented-control/SegmentedControl.tsx
|
|
6019
6230
|
import * as React86 from "react";
|
|
6020
|
-
import { jsx as
|
|
6231
|
+
import { jsx as jsx86, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
6021
6232
|
var sizeClasses10 = {
|
|
6022
6233
|
sm: "h-8 px-2.5 text-xs",
|
|
6023
6234
|
md: "h-9 px-3 text-sm",
|
|
@@ -6092,7 +6303,7 @@ var SegmentedControl = React86.forwardRef(
|
|
|
6092
6303
|
moveFocus("last");
|
|
6093
6304
|
}
|
|
6094
6305
|
};
|
|
6095
|
-
return /* @__PURE__ */
|
|
6306
|
+
return /* @__PURE__ */ jsx86(
|
|
6096
6307
|
"div",
|
|
6097
6308
|
{
|
|
6098
6309
|
ref,
|
|
@@ -6108,7 +6319,7 @@ var SegmentedControl = React86.forwardRef(
|
|
|
6108
6319
|
const active = multiple ? Array.isArray(selected) && selected.includes(option.value) : selected === option.value;
|
|
6109
6320
|
const firstEnabled = options.findIndex((entry) => !entry.disabled);
|
|
6110
6321
|
const focusable = multiple || active || !selected && index === firstEnabled;
|
|
6111
|
-
return /* @__PURE__ */
|
|
6322
|
+
return /* @__PURE__ */ jsxs62(
|
|
6112
6323
|
"button",
|
|
6113
6324
|
{
|
|
6114
6325
|
ref: (node) => {
|
|
@@ -6131,8 +6342,8 @@ var SegmentedControl = React86.forwardRef(
|
|
|
6131
6342
|
active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
6132
6343
|
),
|
|
6133
6344
|
children: [
|
|
6134
|
-
option.icon && /* @__PURE__ */
|
|
6135
|
-
/* @__PURE__ */
|
|
6345
|
+
option.icon && /* @__PURE__ */ jsx86("span", { className: "shrink-0 [&_svg]:size-4", children: option.icon }),
|
|
6346
|
+
/* @__PURE__ */ jsx86("span", { className: "truncate", children: option.label })
|
|
6136
6347
|
]
|
|
6137
6348
|
},
|
|
6138
6349
|
option.value
|
|
@@ -6145,7 +6356,7 @@ var SegmentedControl = React86.forwardRef(
|
|
|
6145
6356
|
|
|
6146
6357
|
// src/components/range-slider/RangeSlider.tsx
|
|
6147
6358
|
import * as React87 from "react";
|
|
6148
|
-
import { jsx as
|
|
6359
|
+
import { jsx as jsx87, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
6149
6360
|
var rangeInputClass = cn(
|
|
6150
6361
|
"pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
|
|
6151
6362
|
"[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
|
|
@@ -6185,21 +6396,21 @@ var RangeSlider = React87.forwardRef(function RangeSlider2({
|
|
|
6185
6396
|
const span = max - min || 1;
|
|
6186
6397
|
const lowPercent = (low - min) / span * 100;
|
|
6187
6398
|
const highPercent = (high - min) / span * 100;
|
|
6188
|
-
return /* @__PURE__ */
|
|
6189
|
-
showValues && /* @__PURE__ */
|
|
6190
|
-
/* @__PURE__ */
|
|
6191
|
-
/* @__PURE__ */
|
|
6399
|
+
return /* @__PURE__ */ jsxs63("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6400
|
+
showValues && /* @__PURE__ */ jsxs63("div", { className: "mb-2 flex items-center justify-between text-sm font-medium tabular-nums", children: [
|
|
6401
|
+
/* @__PURE__ */ jsx87("span", { children: formatValue(low) }),
|
|
6402
|
+
/* @__PURE__ */ jsx87("span", { children: formatValue(high) })
|
|
6192
6403
|
] }),
|
|
6193
|
-
/* @__PURE__ */
|
|
6194
|
-
/* @__PURE__ */
|
|
6195
|
-
/* @__PURE__ */
|
|
6404
|
+
/* @__PURE__ */ jsxs63("div", { className: "relative h-6 w-full", children: [
|
|
6405
|
+
/* @__PURE__ */ jsx87("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-muted" }),
|
|
6406
|
+
/* @__PURE__ */ jsx87(
|
|
6196
6407
|
"div",
|
|
6197
6408
|
{
|
|
6198
6409
|
className: "absolute top-1/2 h-1 -translate-y-1/2 rounded-full bg-primary",
|
|
6199
6410
|
style: { left: `${lowPercent}%`, right: `${100 - highPercent}%` }
|
|
6200
6411
|
}
|
|
6201
6412
|
),
|
|
6202
|
-
/* @__PURE__ */
|
|
6413
|
+
/* @__PURE__ */ jsx87(
|
|
6203
6414
|
"input",
|
|
6204
6415
|
{
|
|
6205
6416
|
type: "range",
|
|
@@ -6214,7 +6425,7 @@ var RangeSlider = React87.forwardRef(function RangeSlider2({
|
|
|
6214
6425
|
className: cn(rangeInputClass, "z-10")
|
|
6215
6426
|
}
|
|
6216
6427
|
),
|
|
6217
|
-
/* @__PURE__ */
|
|
6428
|
+
/* @__PURE__ */ jsx87(
|
|
6218
6429
|
"input",
|
|
6219
6430
|
{
|
|
6220
6431
|
type: "range",
|
|
@@ -6235,7 +6446,7 @@ var RangeSlider = React87.forwardRef(function RangeSlider2({
|
|
|
6235
6446
|
|
|
6236
6447
|
// src/components/filter-chips/FilterChips.tsx
|
|
6237
6448
|
import * as React88 from "react";
|
|
6238
|
-
import { jsx as
|
|
6449
|
+
import { jsx as jsx88, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
6239
6450
|
var FilterChips = React88.forwardRef(function FilterChips2({
|
|
6240
6451
|
filters,
|
|
6241
6452
|
onClearAll,
|
|
@@ -6246,9 +6457,9 @@ var FilterChips = React88.forwardRef(function FilterChips2({
|
|
|
6246
6457
|
...props
|
|
6247
6458
|
}, ref) {
|
|
6248
6459
|
if (filters.length === 0) {
|
|
6249
|
-
return emptyLabel ? /* @__PURE__ */
|
|
6460
|
+
return emptyLabel ? /* @__PURE__ */ jsx88("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
6250
6461
|
}
|
|
6251
|
-
return /* @__PURE__ */
|
|
6462
|
+
return /* @__PURE__ */ jsxs64(
|
|
6252
6463
|
"div",
|
|
6253
6464
|
{
|
|
6254
6465
|
ref,
|
|
@@ -6257,34 +6468,34 @@ var FilterChips = React88.forwardRef(function FilterChips2({
|
|
|
6257
6468
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
6258
6469
|
...props,
|
|
6259
6470
|
children: [
|
|
6260
|
-
filters.map((filter) => /* @__PURE__ */
|
|
6471
|
+
filters.map((filter) => /* @__PURE__ */ jsxs64(
|
|
6261
6472
|
"span",
|
|
6262
6473
|
{
|
|
6263
6474
|
className: "inline-flex max-w-full items-center gap-1.5 rounded-full border border-border bg-muted/60 py-1 pl-3 pr-1 text-sm",
|
|
6264
6475
|
children: [
|
|
6265
|
-
/* @__PURE__ */
|
|
6266
|
-
/* @__PURE__ */
|
|
6476
|
+
/* @__PURE__ */ jsxs64("span", { className: "truncate", children: [
|
|
6477
|
+
/* @__PURE__ */ jsxs64("span", { className: "text-muted-foreground", children: [
|
|
6267
6478
|
filter.label,
|
|
6268
6479
|
":"
|
|
6269
6480
|
] }),
|
|
6270
6481
|
" ",
|
|
6271
|
-
/* @__PURE__ */
|
|
6482
|
+
/* @__PURE__ */ jsx88("span", { className: "font-medium", children: filter.value ?? "Any" })
|
|
6272
6483
|
] }),
|
|
6273
|
-
filter.onRemove && /* @__PURE__ */
|
|
6484
|
+
filter.onRemove && /* @__PURE__ */ jsx88(
|
|
6274
6485
|
"button",
|
|
6275
6486
|
{
|
|
6276
6487
|
type: "button",
|
|
6277
6488
|
onClick: filter.onRemove,
|
|
6278
6489
|
"aria-label": `Remove ${filter.label}${filter.value ? `: ${filter.value}` : ""}`,
|
|
6279
6490
|
className: "rounded-full p-1 text-muted-foreground transition-colors hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
6280
|
-
children: /* @__PURE__ */
|
|
6491
|
+
children: /* @__PURE__ */ jsx88("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx88("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
6281
6492
|
}
|
|
6282
6493
|
)
|
|
6283
6494
|
]
|
|
6284
6495
|
},
|
|
6285
6496
|
filter.key
|
|
6286
6497
|
)),
|
|
6287
|
-
onClearAll && /* @__PURE__ */
|
|
6498
|
+
onClearAll && /* @__PURE__ */ jsx88(
|
|
6288
6499
|
"button",
|
|
6289
6500
|
{
|
|
6290
6501
|
type: "button",
|
|
@@ -6304,7 +6515,7 @@ import * as React90 from "react";
|
|
|
6304
6515
|
// src/components/popover/Popover.tsx
|
|
6305
6516
|
import * as React89 from "react";
|
|
6306
6517
|
import { createPortal as createPortal7 } from "react-dom";
|
|
6307
|
-
import { jsx as
|
|
6518
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
6308
6519
|
var PopoverContext = React89.createContext({
|
|
6309
6520
|
open: false,
|
|
6310
6521
|
setOpen: () => {
|
|
@@ -6335,7 +6546,7 @@ var Popover = React89.forwardRef(
|
|
|
6335
6546
|
},
|
|
6336
6547
|
[open, onOpenChange]
|
|
6337
6548
|
);
|
|
6338
|
-
return /* @__PURE__ */
|
|
6549
|
+
return /* @__PURE__ */ jsx89("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx89(
|
|
6339
6550
|
PopoverContext.Provider,
|
|
6340
6551
|
{
|
|
6341
6552
|
value: { open: current, setOpen, triggerId, contentId, wrapperRef },
|
|
@@ -6348,7 +6559,7 @@ Popover.displayName = "Popover";
|
|
|
6348
6559
|
var PopoverTrigger = React89.forwardRef(
|
|
6349
6560
|
({ className, children, onClick, ...props }, ref) => {
|
|
6350
6561
|
const { open, setOpen, triggerId, contentId } = React89.useContext(PopoverContext);
|
|
6351
|
-
return /* @__PURE__ */
|
|
6562
|
+
return /* @__PURE__ */ jsx89(
|
|
6352
6563
|
"button",
|
|
6353
6564
|
{
|
|
6354
6565
|
ref,
|
|
@@ -6413,7 +6624,7 @@ var PopoverContent = React89.forwardRef(
|
|
|
6413
6624
|
}, [open, pos]);
|
|
6414
6625
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
6415
6626
|
return createPortal7(
|
|
6416
|
-
/* @__PURE__ */
|
|
6627
|
+
/* @__PURE__ */ jsx89(
|
|
6417
6628
|
"div",
|
|
6418
6629
|
{
|
|
6419
6630
|
ref: (node) => {
|
|
@@ -6448,7 +6659,7 @@ var PopoverContent = React89.forwardRef(
|
|
|
6448
6659
|
PopoverContent.displayName = "PopoverContent";
|
|
6449
6660
|
|
|
6450
6661
|
// src/components/multi-select/MultiSelect.tsx
|
|
6451
|
-
import { jsx as
|
|
6662
|
+
import { jsx as jsx90, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
6452
6663
|
var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
6453
6664
|
options,
|
|
6454
6665
|
value,
|
|
@@ -6493,16 +6704,16 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6493
6704
|
}, [filtered]);
|
|
6494
6705
|
const visibleChips = selectedOptions.slice(0, maxDisplay);
|
|
6495
6706
|
const hiddenCount = selectedOptions.length - visibleChips.length;
|
|
6496
|
-
return /* @__PURE__ */
|
|
6497
|
-
label && /* @__PURE__ */
|
|
6498
|
-
visibleChips.length > 0 && /* @__PURE__ */
|
|
6499
|
-
visibleChips.map((option) => /* @__PURE__ */
|
|
6707
|
+
return /* @__PURE__ */ jsxs65("div", { ref, className: cn("flex flex-col gap-2", className), ...props, children: [
|
|
6708
|
+
label && /* @__PURE__ */ jsx90("span", { id: labelId, className: "text-sm font-medium", children: label }),
|
|
6709
|
+
visibleChips.length > 0 && /* @__PURE__ */ jsxs65("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
6710
|
+
visibleChips.map((option) => /* @__PURE__ */ jsxs65(
|
|
6500
6711
|
"span",
|
|
6501
6712
|
{
|
|
6502
6713
|
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",
|
|
6503
6714
|
children: [
|
|
6504
|
-
/* @__PURE__ */
|
|
6505
|
-
/* @__PURE__ */
|
|
6715
|
+
/* @__PURE__ */ jsx90("span", { className: "truncate", children: option.label }),
|
|
6716
|
+
/* @__PURE__ */ jsx90(
|
|
6506
6717
|
"button",
|
|
6507
6718
|
{
|
|
6508
6719
|
type: "button",
|
|
@@ -6510,26 +6721,26 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6510
6721
|
disabled,
|
|
6511
6722
|
"aria-label": `Remove ${option.label}`,
|
|
6512
6723
|
className: "rounded-full p-1 text-muted-foreground hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none",
|
|
6513
|
-
children: /* @__PURE__ */
|
|
6724
|
+
children: /* @__PURE__ */ jsx90("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx90("path", { d: "m5 5 10 10M15 5 5 15" }) })
|
|
6514
6725
|
}
|
|
6515
6726
|
)
|
|
6516
6727
|
]
|
|
6517
6728
|
},
|
|
6518
6729
|
option.value
|
|
6519
6730
|
)),
|
|
6520
|
-
hiddenCount > 0 && /* @__PURE__ */
|
|
6731
|
+
hiddenCount > 0 && /* @__PURE__ */ jsxs65("span", { className: "self-center text-xs text-muted-foreground", children: [
|
|
6521
6732
|
"+",
|
|
6522
6733
|
hiddenCount,
|
|
6523
6734
|
" more"
|
|
6524
6735
|
] })
|
|
6525
6736
|
] }),
|
|
6526
|
-
/* @__PURE__ */
|
|
6527
|
-
/* @__PURE__ */
|
|
6528
|
-
/* @__PURE__ */
|
|
6529
|
-
/* @__PURE__ */
|
|
6737
|
+
/* @__PURE__ */ jsxs65(Popover, { open, onOpenChange: setOpen, children: [
|
|
6738
|
+
/* @__PURE__ */ jsxs65(PopoverTrigger, { "aria-labelledby": label ? labelId : void 0, disabled, className: "w-full justify-between", children: [
|
|
6739
|
+
/* @__PURE__ */ jsx90("span", { children: selected.length > 0 ? `${selected.length} selected` : triggerLabel }),
|
|
6740
|
+
/* @__PURE__ */ jsx90("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2304" })
|
|
6530
6741
|
] }),
|
|
6531
|
-
/* @__PURE__ */
|
|
6532
|
-
/* @__PURE__ */
|
|
6742
|
+
/* @__PURE__ */ jsxs65(PopoverContent, { className: "w-80 p-0", children: [
|
|
6743
|
+
/* @__PURE__ */ jsx90("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ jsx90(
|
|
6533
6744
|
Input,
|
|
6534
6745
|
{
|
|
6535
6746
|
type: "search",
|
|
@@ -6540,9 +6751,9 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6540
6751
|
autoFocus: true
|
|
6541
6752
|
}
|
|
6542
6753
|
) }),
|
|
6543
|
-
/* @__PURE__ */
|
|
6544
|
-
heading && /* @__PURE__ */
|
|
6545
|
-
/* @__PURE__ */
|
|
6754
|
+
/* @__PURE__ */ jsx90("div", { className: "max-h-64 overflow-y-auto p-1", children: groups.length === 0 ? /* @__PURE__ */ jsx90("p", { className: "px-3 py-3 text-sm text-muted-foreground", children: emptyText }) : groups.map(({ option, heading }) => /* @__PURE__ */ jsxs65(React90.Fragment, { children: [
|
|
6755
|
+
heading && /* @__PURE__ */ jsx90("p", { className: "px-3 pb-1 pt-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: heading }),
|
|
6756
|
+
/* @__PURE__ */ jsxs65(
|
|
6546
6757
|
"label",
|
|
6547
6758
|
{
|
|
6548
6759
|
className: cn(
|
|
@@ -6550,7 +6761,7 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6550
6761
|
option.disabled && "cursor-not-allowed opacity-50"
|
|
6551
6762
|
),
|
|
6552
6763
|
children: [
|
|
6553
|
-
/* @__PURE__ */
|
|
6764
|
+
/* @__PURE__ */ jsx90(
|
|
6554
6765
|
Checkbox,
|
|
6555
6766
|
{
|
|
6556
6767
|
checked: selected.includes(option.value),
|
|
@@ -6559,16 +6770,16 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6559
6770
|
className: "mt-0.5"
|
|
6560
6771
|
}
|
|
6561
6772
|
),
|
|
6562
|
-
/* @__PURE__ */
|
|
6563
|
-
/* @__PURE__ */
|
|
6564
|
-
option.description && /* @__PURE__ */
|
|
6773
|
+
/* @__PURE__ */ jsxs65("span", { className: "min-w-0", children: [
|
|
6774
|
+
/* @__PURE__ */ jsx90("span", { className: "block", children: option.label }),
|
|
6775
|
+
option.description && /* @__PURE__ */ jsx90("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: option.description })
|
|
6565
6776
|
] })
|
|
6566
6777
|
]
|
|
6567
6778
|
}
|
|
6568
6779
|
)
|
|
6569
6780
|
] }, option.value)) }),
|
|
6570
|
-
/* @__PURE__ */
|
|
6571
|
-
/* @__PURE__ */
|
|
6781
|
+
/* @__PURE__ */ jsxs65("div", { className: "flex items-center justify-between gap-2 border-t border-border p-2", children: [
|
|
6782
|
+
/* @__PURE__ */ jsx90(
|
|
6572
6783
|
Button,
|
|
6573
6784
|
{
|
|
6574
6785
|
type: "button",
|
|
@@ -6578,7 +6789,7 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6578
6789
|
children: "Select all"
|
|
6579
6790
|
}
|
|
6580
6791
|
),
|
|
6581
|
-
/* @__PURE__ */
|
|
6792
|
+
/* @__PURE__ */ jsx90(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => commit([]), children: "Clear" })
|
|
6582
6793
|
] })
|
|
6583
6794
|
] })
|
|
6584
6795
|
] })
|
|
@@ -6587,7 +6798,7 @@ var MultiSelect = React90.forwardRef(function MultiSelect2({
|
|
|
6587
6798
|
|
|
6588
6799
|
// src/components/filter-panel/FilterPanel.tsx
|
|
6589
6800
|
import * as React91 from "react";
|
|
6590
|
-
import { jsx as
|
|
6801
|
+
import { jsx as jsx91, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
6591
6802
|
var FilterPanel = React91.forwardRef(function FilterPanel2({
|
|
6592
6803
|
sections,
|
|
6593
6804
|
title = "Filters",
|
|
@@ -6614,15 +6825,15 @@ var FilterPanel = React91.forwardRef(function FilterPanel2({
|
|
|
6614
6825
|
(current) => current.includes(section.title) ? current.filter((title2) => title2 !== section.title) : [...current, section.title]
|
|
6615
6826
|
);
|
|
6616
6827
|
};
|
|
6617
|
-
return /* @__PURE__ */
|
|
6618
|
-
(title || description) && /* @__PURE__ */
|
|
6619
|
-
title && /* @__PURE__ */
|
|
6620
|
-
description && /* @__PURE__ */
|
|
6828
|
+
return /* @__PURE__ */ jsxs66(Tag, { ref, className: cn("w-full rounded-xl border border-border bg-card", className), ...props, children: [
|
|
6829
|
+
(title || description) && /* @__PURE__ */ jsxs66("div", { className: "border-b border-border px-4 py-3", children: [
|
|
6830
|
+
title && /* @__PURE__ */ jsx91("h2", { className: "text-sm font-semibold", children: title }),
|
|
6831
|
+
description && /* @__PURE__ */ jsx91("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
6621
6832
|
] }),
|
|
6622
|
-
/* @__PURE__ */
|
|
6833
|
+
/* @__PURE__ */ jsx91("div", { className: "divide-y divide-border", children: sections.map((section) => {
|
|
6623
6834
|
const expanded = isOpen(section);
|
|
6624
|
-
return /* @__PURE__ */
|
|
6625
|
-
/* @__PURE__ */
|
|
6835
|
+
return /* @__PURE__ */ jsxs66("div", { className: "px-4 py-3", children: [
|
|
6836
|
+
/* @__PURE__ */ jsx91("h3", { children: /* @__PURE__ */ jsxs66(
|
|
6626
6837
|
"button",
|
|
6627
6838
|
{
|
|
6628
6839
|
type: "button",
|
|
@@ -6635,28 +6846,28 @@ var FilterPanel = React91.forwardRef(function FilterPanel2({
|
|
|
6635
6846
|
collapsible && "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6636
6847
|
),
|
|
6637
6848
|
children: [
|
|
6638
|
-
/* @__PURE__ */
|
|
6849
|
+
/* @__PURE__ */ jsxs66("span", { children: [
|
|
6639
6850
|
section.title,
|
|
6640
|
-
section.description && /* @__PURE__ */
|
|
6851
|
+
section.description && /* @__PURE__ */ jsx91("span", { className: "mt-0.5 block text-xs font-normal text-muted-foreground", children: section.description })
|
|
6641
6852
|
] }),
|
|
6642
|
-
collapsible && /* @__PURE__ */
|
|
6853
|
+
collapsible && /* @__PURE__ */ jsx91("span", { "aria-hidden": "true", className: cn("text-muted-foreground transition-transform", expanded && "rotate-180"), children: "\u2304" })
|
|
6643
6854
|
]
|
|
6644
6855
|
}
|
|
6645
6856
|
) }),
|
|
6646
|
-
expanded && /* @__PURE__ */
|
|
6857
|
+
expanded && /* @__PURE__ */ jsx91("div", { id: `filter-section-${section.title.replace(/\s+/g, "-").toLowerCase()}`, className: "mt-3", children: section.content })
|
|
6647
6858
|
] }, section.title);
|
|
6648
6859
|
}) }),
|
|
6649
|
-
(onReset || onApply || actions) && /* @__PURE__ */
|
|
6860
|
+
(onReset || onApply || actions) && /* @__PURE__ */ jsxs66("div", { className: "flex flex-wrap items-center gap-2 border-t border-border px-4 py-3", children: [
|
|
6650
6861
|
actions,
|
|
6651
|
-
onReset && /* @__PURE__ */
|
|
6652
|
-
onApply && /* @__PURE__ */
|
|
6862
|
+
onReset && /* @__PURE__ */ jsx91(Button, { type: "button", variant: "ghost", size: "sm", onClick: onReset, className: "ml-auto", children: resetLabel }),
|
|
6863
|
+
onApply && /* @__PURE__ */ jsx91(Button, { type: "button", size: "sm", onClick: onApply, children: applyLabel })
|
|
6653
6864
|
] })
|
|
6654
6865
|
] });
|
|
6655
6866
|
});
|
|
6656
6867
|
|
|
6657
6868
|
// src/components/date-range-picker/DateRangePicker.tsx
|
|
6658
6869
|
import * as React92 from "react";
|
|
6659
|
-
import { jsx as
|
|
6870
|
+
import { jsx as jsx92, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
6660
6871
|
var DEFAULT_PRESETS = [
|
|
6661
6872
|
{ label: "7 days", days: 7 },
|
|
6662
6873
|
{ label: "30 days", days: 30 },
|
|
@@ -6708,8 +6919,8 @@ var DateRangePicker = React92.forwardRef(
|
|
|
6708
6919
|
}
|
|
6709
6920
|
commit({ start: toIsoDate(start), end: toIsoDate(end) });
|
|
6710
6921
|
};
|
|
6711
|
-
return /* @__PURE__ */
|
|
6712
|
-
showPresets && presets.length > 0 && /* @__PURE__ */
|
|
6922
|
+
return /* @__PURE__ */ jsxs67("div", { ref, className: cn("flex flex-col gap-3", className), ...props, children: [
|
|
6923
|
+
showPresets && presets.length > 0 && /* @__PURE__ */ jsx92("div", { className: "flex flex-wrap gap-2", children: presets.map((preset) => /* @__PURE__ */ jsx92(
|
|
6713
6924
|
Button,
|
|
6714
6925
|
{
|
|
6715
6926
|
type: "button",
|
|
@@ -6721,10 +6932,10 @@ var DateRangePicker = React92.forwardRef(
|
|
|
6721
6932
|
},
|
|
6722
6933
|
preset.label
|
|
6723
6934
|
)) }),
|
|
6724
|
-
/* @__PURE__ */
|
|
6725
|
-
/* @__PURE__ */
|
|
6726
|
-
/* @__PURE__ */
|
|
6727
|
-
/* @__PURE__ */
|
|
6935
|
+
/* @__PURE__ */ jsxs67("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
6936
|
+
/* @__PURE__ */ jsxs67("div", { children: [
|
|
6937
|
+
/* @__PURE__ */ jsx92("label", { htmlFor: startId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: startLabel }),
|
|
6938
|
+
/* @__PURE__ */ jsx92(
|
|
6728
6939
|
DatePicker,
|
|
6729
6940
|
{
|
|
6730
6941
|
id: startId,
|
|
@@ -6736,9 +6947,9 @@ var DateRangePicker = React92.forwardRef(
|
|
|
6736
6947
|
}
|
|
6737
6948
|
)
|
|
6738
6949
|
] }),
|
|
6739
|
-
/* @__PURE__ */
|
|
6740
|
-
/* @__PURE__ */
|
|
6741
|
-
/* @__PURE__ */
|
|
6950
|
+
/* @__PURE__ */ jsxs67("div", { children: [
|
|
6951
|
+
/* @__PURE__ */ jsx92("label", { htmlFor: endId, className: "mb-1 block text-xs font-medium text-muted-foreground", children: endLabel }),
|
|
6952
|
+
/* @__PURE__ */ jsx92(
|
|
6742
6953
|
DatePicker,
|
|
6743
6954
|
{
|
|
6744
6955
|
id: endId,
|
|
@@ -6757,7 +6968,7 @@ var DateRangePicker = React92.forwardRef(
|
|
|
6757
6968
|
|
|
6758
6969
|
// src/components/applied-filters/AppliedFilters.tsx
|
|
6759
6970
|
import * as React93 from "react";
|
|
6760
|
-
import { jsx as
|
|
6971
|
+
import { jsx as jsx93, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
6761
6972
|
var AppliedFilters = React93.forwardRef(
|
|
6762
6973
|
function AppliedFilters2({
|
|
6763
6974
|
filters,
|
|
@@ -6771,9 +6982,9 @@ var AppliedFilters = React93.forwardRef(
|
|
|
6771
6982
|
}, ref) {
|
|
6772
6983
|
const summary = label ?? `${filters.length} active`;
|
|
6773
6984
|
if (filters.length === 0) {
|
|
6774
|
-
return emptyLabel ? /* @__PURE__ */
|
|
6985
|
+
return emptyLabel ? /* @__PURE__ */ jsx93("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
|
|
6775
6986
|
}
|
|
6776
|
-
return /* @__PURE__ */
|
|
6987
|
+
return /* @__PURE__ */ jsxs68(
|
|
6777
6988
|
"div",
|
|
6778
6989
|
{
|
|
6779
6990
|
ref,
|
|
@@ -6781,9 +6992,9 @@ var AppliedFilters = React93.forwardRef(
|
|
|
6781
6992
|
className: cn("flex flex-wrap items-center gap-2", className),
|
|
6782
6993
|
...props,
|
|
6783
6994
|
children: [
|
|
6784
|
-
/* @__PURE__ */
|
|
6785
|
-
/* @__PURE__ */
|
|
6786
|
-
onEdit && /* @__PURE__ */
|
|
6995
|
+
/* @__PURE__ */ jsx93("span", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: summary }),
|
|
6996
|
+
/* @__PURE__ */ jsx93(FilterChips, { filters, onClearAll }),
|
|
6997
|
+
onEdit && /* @__PURE__ */ jsx93(Button, { type: "button", variant: "ghost", size: "sm", onClick: onEdit, children: editLabel })
|
|
6787
6998
|
]
|
|
6788
6999
|
}
|
|
6789
7000
|
);
|
|
@@ -6794,7 +7005,7 @@ var AppliedFilters = React93.forwardRef(
|
|
|
6794
7005
|
import * as React94 from "react";
|
|
6795
7006
|
import { createPortal as createPortal8 } from "react-dom";
|
|
6796
7007
|
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
6797
|
-
import { jsx as
|
|
7008
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
6798
7009
|
var MenuContext = React94.createContext({
|
|
6799
7010
|
open: false,
|
|
6800
7011
|
setOpen: () => {
|
|
@@ -6826,7 +7037,7 @@ var Menu = React94.forwardRef(
|
|
|
6826
7037
|
},
|
|
6827
7038
|
[open, onOpenChange]
|
|
6828
7039
|
);
|
|
6829
|
-
return /* @__PURE__ */
|
|
7040
|
+
return /* @__PURE__ */ jsx94("div", { ref: setRefs, className: cn("relative inline-block", className), children: /* @__PURE__ */ jsx94(
|
|
6830
7041
|
MenuContext.Provider,
|
|
6831
7042
|
{
|
|
6832
7043
|
value: { open: current, setOpen, activeIndex, setActiveIndex, wrapperRef },
|
|
@@ -6839,7 +7050,7 @@ Menu.displayName = "Menu";
|
|
|
6839
7050
|
var MenuTrigger = React94.forwardRef(
|
|
6840
7051
|
({ className, children, ...props }, ref) => {
|
|
6841
7052
|
const { open, setOpen } = React94.useContext(MenuContext);
|
|
6842
|
-
return /* @__PURE__ */
|
|
7053
|
+
return /* @__PURE__ */ jsx94(
|
|
6843
7054
|
"button",
|
|
6844
7055
|
{
|
|
6845
7056
|
ref,
|
|
@@ -6929,7 +7140,7 @@ var MenuContent = React94.forwardRef(
|
|
|
6929
7140
|
};
|
|
6930
7141
|
if (!open || !pos || typeof document === "undefined") return null;
|
|
6931
7142
|
return createPortal8(
|
|
6932
|
-
/* @__PURE__ */
|
|
7143
|
+
/* @__PURE__ */ jsx94(
|
|
6933
7144
|
"div",
|
|
6934
7145
|
{
|
|
6935
7146
|
ref: (node) => {
|
|
@@ -6958,7 +7169,7 @@ var MenuItem = React94.forwardRef(
|
|
|
6958
7169
|
const { setOpen } = React94.useContext(MenuContext);
|
|
6959
7170
|
const Comp = asChild ? Slot5 : "button";
|
|
6960
7171
|
const typeProp = asChild ? {} : { type: "button" };
|
|
6961
|
-
return /* @__PURE__ */
|
|
7172
|
+
return /* @__PURE__ */ jsx94(
|
|
6962
7173
|
Comp,
|
|
6963
7174
|
{
|
|
6964
7175
|
ref,
|
|
@@ -6981,11 +7192,11 @@ var MenuItem = React94.forwardRef(
|
|
|
6981
7192
|
);
|
|
6982
7193
|
MenuItem.displayName = "MenuItem";
|
|
6983
7194
|
var MenuSeparator = React94.forwardRef(
|
|
6984
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7195
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx94("div", { ref, role: "separator", className: cn("-mx-1 my-1 h-px bg-border", className), ...props })
|
|
6985
7196
|
);
|
|
6986
7197
|
MenuSeparator.displayName = "MenuSeparator";
|
|
6987
7198
|
var MenuLabel = React94.forwardRef(
|
|
6988
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7199
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx94(
|
|
6989
7200
|
"div",
|
|
6990
7201
|
{
|
|
6991
7202
|
ref,
|
|
@@ -6999,7 +7210,7 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
6999
7210
|
// src/components/alert/Alert.tsx
|
|
7000
7211
|
import * as React95 from "react";
|
|
7001
7212
|
import { cva as cva8 } from "class-variance-authority";
|
|
7002
|
-
import { jsx as
|
|
7213
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
7003
7214
|
var alertVariants = cva8(
|
|
7004
7215
|
"relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
|
|
7005
7216
|
{
|
|
@@ -7020,7 +7231,7 @@ var alertVariants = cva8(
|
|
|
7020
7231
|
}
|
|
7021
7232
|
);
|
|
7022
7233
|
var Alert = React95.forwardRef(
|
|
7023
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */
|
|
7234
|
+
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx95(
|
|
7024
7235
|
"div",
|
|
7025
7236
|
{
|
|
7026
7237
|
ref,
|
|
@@ -7032,7 +7243,7 @@ var Alert = React95.forwardRef(
|
|
|
7032
7243
|
);
|
|
7033
7244
|
Alert.displayName = "Alert";
|
|
7034
7245
|
var AlertTitle = React95.forwardRef(
|
|
7035
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7246
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx95(
|
|
7036
7247
|
"h5",
|
|
7037
7248
|
{
|
|
7038
7249
|
ref,
|
|
@@ -7043,7 +7254,7 @@ var AlertTitle = React95.forwardRef(
|
|
|
7043
7254
|
);
|
|
7044
7255
|
AlertTitle.displayName = "AlertTitle";
|
|
7045
7256
|
var AlertDescription = React95.forwardRef(
|
|
7046
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7257
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx95(
|
|
7047
7258
|
"div",
|
|
7048
7259
|
{
|
|
7049
7260
|
ref,
|
|
@@ -7056,22 +7267,22 @@ AlertDescription.displayName = "AlertDescription";
|
|
|
7056
7267
|
|
|
7057
7268
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
7058
7269
|
import * as React96 from "react";
|
|
7059
|
-
import { jsx as
|
|
7270
|
+
import { jsx as jsx96, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
7060
7271
|
var Breadcrumb = React96.forwardRef(
|
|
7061
7272
|
({ items, label = "Breadcrumb", separator = "/", onItemClick, linkComponent, linkHrefProp = "href", truncateCurrent = false, className, ...props }, ref) => {
|
|
7062
7273
|
const LinkEl = linkComponent ?? "a";
|
|
7063
|
-
return /* @__PURE__ */
|
|
7274
|
+
return /* @__PURE__ */ jsx96(
|
|
7064
7275
|
"nav",
|
|
7065
7276
|
{
|
|
7066
7277
|
ref,
|
|
7067
7278
|
"aria-label": label,
|
|
7068
7279
|
className: cn("flex items-center space-x-1.5 text-sm text-muted-foreground", className),
|
|
7069
7280
|
...props,
|
|
7070
|
-
children: /* @__PURE__ */
|
|
7281
|
+
children: /* @__PURE__ */ jsx96("ol", { className: "flex flex-wrap items-center space-x-1.5", children: items.map((item, index) => {
|
|
7071
7282
|
const isLast = index === items.length - 1;
|
|
7072
|
-
return /* @__PURE__ */
|
|
7073
|
-
index > 0 && /* @__PURE__ */
|
|
7074
|
-
item.href && !isLast ? /* @__PURE__ */
|
|
7283
|
+
return /* @__PURE__ */ jsxs69("li", { className: cn("flex items-center space-x-1.5", truncateCurrent && isLast && "min-w-0"), children: [
|
|
7284
|
+
index > 0 && /* @__PURE__ */ jsx96("span", { "aria-hidden": "true", className: "text-muted-foreground/50", children: separator }),
|
|
7285
|
+
item.href && !isLast ? /* @__PURE__ */ jsx96(
|
|
7075
7286
|
LinkEl,
|
|
7076
7287
|
{
|
|
7077
7288
|
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
@@ -7082,7 +7293,7 @@ var Breadcrumb = React96.forwardRef(
|
|
|
7082
7293
|
} : void 0,
|
|
7083
7294
|
children: item.label
|
|
7084
7295
|
}
|
|
7085
|
-
) : /* @__PURE__ */
|
|
7296
|
+
) : /* @__PURE__ */ jsx96(
|
|
7086
7297
|
"span",
|
|
7087
7298
|
{
|
|
7088
7299
|
"aria-current": isLast ? "page" : void 0,
|
|
@@ -7117,6 +7328,7 @@ export {
|
|
|
7117
7328
|
AvatarImage,
|
|
7118
7329
|
Badge,
|
|
7119
7330
|
Block,
|
|
7331
|
+
BottomNav,
|
|
7120
7332
|
Breadcrumb,
|
|
7121
7333
|
Button,
|
|
7122
7334
|
ButtonGroup,
|