@eqtylab/equality 4.15.0 → 5.0.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/CHANGELOG.md +15 -0
- package/dist/index.cjs +590 -746
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -209
- package/dist/index.d.ts +16 -209
- package/dist/index.js +535 -672
- package/dist/index.js.map +1 -1
- package/package.json +2 -4
- package/dist/drawer.module.module.css.module.css +0 -165
- package/dist/list-or-grid-view-toggle.module.module.css.module.css +0 -52
- package/dist/scroll-area.module.module.css.module.css +0 -46
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React15 from 'react';
|
|
2
2
|
import { forwardRef, useEffect, useLayoutEffect, useState, useRef, useMemo, useCallback, createElement, useSyncExternalStore } from 'react';
|
|
3
3
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
4
4
|
import styles2 from './alert-dialog.module.module.css.module.css';
|
|
@@ -10,7 +10,7 @@ import { twMerge } from 'tailwind-merge';
|
|
|
10
10
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
11
11
|
import styles4 from './alert.module.module.css.module.css';
|
|
12
12
|
import * as LucideIcons from 'lucide-react';
|
|
13
|
-
import { Check, ChevronRight, Search, Circle, TriangleAlert, ChevronLeft, ChevronDown, ChevronsUpDown, X, SearchIcon, CalendarDays,
|
|
13
|
+
import { Check, ChevronRight, Search, Circle, TriangleAlert, ChevronLeft, ChevronDown, ChevronsUpDown, X, SearchIcon, CalendarDays, AlertOctagon, Home, ChevronsLeft, ChevronsRight, ArrowUp, ArrowDown, ArrowUpDown } from 'lucide-react';
|
|
14
14
|
import styles3 from './icon.module.module.css.module.css';
|
|
15
15
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
16
16
|
import styles5 from './avatar.module.module.css.module.css';
|
|
@@ -36,72 +36,67 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
|
36
36
|
import styles18 from './popover.module.module.css.module.css';
|
|
37
37
|
import Truncate from 'react-truncate-inside';
|
|
38
38
|
import styles20 from './display-field.module.module.css.module.css';
|
|
39
|
-
import { Drawer as Drawer$1 } from 'vaul';
|
|
40
|
-
import styles21 from './drawer.module.module.css.module.css';
|
|
41
39
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
40
|
+
import styles21 from './dropdown-menu.module.module.css.module.css';
|
|
41
|
+
import styles22 from './empty-table-state.module.module.css.module.css';
|
|
42
|
+
import styles23 from './filter-dropdown.module.module.css.module.css';
|
|
45
43
|
import { useFormContext, FormProvider, Controller } from 'react-hook-form';
|
|
46
|
-
import
|
|
44
|
+
import styles25 from './form.module.module.css.module.css';
|
|
47
45
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
46
|
+
import styles24 from './label.module.module.css.module.css';
|
|
47
|
+
import styles26 from './format-date.module.module.css.module.css';
|
|
48
|
+
import styles27 from './heading.module.module.css.module.css';
|
|
49
|
+
import styles28 from './info-card.module.module.css.module.css';
|
|
50
|
+
import styles30 from './input.module.module.css.module.css';
|
|
53
51
|
import { AnimatePresence, motion } from 'motion/react';
|
|
54
|
-
import
|
|
55
|
-
import styles32 from './
|
|
56
|
-
import
|
|
57
|
-
import styles33 from './
|
|
58
|
-
import styles35 from './
|
|
59
|
-
import
|
|
60
|
-
import styles42 from './nav.module.module.css.module.css';
|
|
52
|
+
import styles29 from './motion-collapsible.module.module.css.module.css';
|
|
53
|
+
import styles32 from './loading-overlay.module.module.css.module.css';
|
|
54
|
+
import styles31 from './spinner.module.module.css.module.css';
|
|
55
|
+
import styles33 from './metric-card.module.module.css.module.css';
|
|
56
|
+
import styles35 from './nav-list.module.module.css.module.css';
|
|
57
|
+
import styles40 from './nav.module.module.css.module.css';
|
|
61
58
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
59
|
+
import styles38 from './select.module.module.css.module.css';
|
|
60
|
+
import styles39 from './skeleton.module.module.css.module.css';
|
|
61
|
+
import styles41 from './page-not-found.module.module.css.module.css';
|
|
62
|
+
import styles42 from './pagination.module.module.css.module.css';
|
|
63
|
+
import styles43 from './panel-label.module.module.css.module.css';
|
|
64
|
+
import styles45 from './progress-indicator.module.module.css.module.css';
|
|
68
65
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
66
|
+
import styles44 from './progress.module.module.css.module.css';
|
|
67
|
+
import styles46 from './radial-graph.module.module.css.module.css';
|
|
68
|
+
import styles47 from './radio-dropdown.module.module.css.module.css';
|
|
72
69
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import styles54 from './section-heading.module.module.css.module.css';
|
|
79
|
-
import styles55 from './segmented-controls.module.module.css.module.css';
|
|
70
|
+
import styles48 from './radio-group.module.module.css.module.css';
|
|
71
|
+
import styles49 from './resource-badge.module.module.css.module.css';
|
|
72
|
+
import styles50 from './search-bar.module.module.css.module.css';
|
|
73
|
+
import styles51 from './section-heading.module.module.css.module.css';
|
|
74
|
+
import styles52 from './segmented-controls.module.module.css.module.css';
|
|
80
75
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
76
|
+
import styles53 from './separator.module.module.css.module.css';
|
|
77
|
+
import styles54 from './sheet.module.module.css.module.css';
|
|
78
|
+
import styles55 from './sort-button.module.module.css.module.css';
|
|
79
|
+
import styles56 from './sort-selector.module.module.css.module.css';
|
|
85
80
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
86
|
-
import
|
|
87
|
-
import
|
|
81
|
+
import styles57 from './switch.module.module.css.module.css';
|
|
82
|
+
import styles58 from './table-components.module.module.css.module.css';
|
|
88
83
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
89
|
-
import
|
|
90
|
-
import
|
|
91
|
-
import
|
|
84
|
+
import styles59 from './tabs-components.module.module.css.module.css';
|
|
85
|
+
import styles60 from './tabs.module.module.css.module.css';
|
|
86
|
+
import styles61 from './textarea.module.module.css.module.css';
|
|
92
87
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
93
|
-
import
|
|
94
|
-
import
|
|
95
|
-
import
|
|
96
|
-
import
|
|
88
|
+
import styles62 from './toast-components.module.module.css.module.css';
|
|
89
|
+
import styles63 from './toast.module.module.css.module.css';
|
|
90
|
+
import styles64 from './truncated-description.module.module.css.module.css';
|
|
91
|
+
import styles65 from './theme.module.module.css.module.css';
|
|
97
92
|
|
|
98
93
|
// src/components/alert-dialog/alert-dialog.tsx
|
|
99
94
|
var PORTAL_ROOT_ID = "equality-theme-provider-root-portal";
|
|
100
|
-
var PortalContainerContext =
|
|
95
|
+
var PortalContainerContext = React15.createContext(
|
|
101
96
|
void 0
|
|
102
97
|
);
|
|
103
98
|
function usePortalContainer() {
|
|
104
|
-
const container =
|
|
99
|
+
const container = React15.useContext(PortalContainerContext);
|
|
105
100
|
if (container !== void 0) return container;
|
|
106
101
|
return typeof document === "undefined" ? null : document.getElementById(PORTAL_ROOT_ID);
|
|
107
102
|
}
|
|
@@ -132,7 +127,7 @@ var buttonVariants = cva(styles["button"], {
|
|
|
132
127
|
size: "md"
|
|
133
128
|
}
|
|
134
129
|
});
|
|
135
|
-
var Button =
|
|
130
|
+
var Button = React15.forwardRef(
|
|
136
131
|
({ className, variant, size, asChild = false, prefix, suffix, children, ...props }, ref) => {
|
|
137
132
|
const isLink = "href" in props && props.href;
|
|
138
133
|
if (isLink) {
|
|
@@ -175,7 +170,7 @@ Button.displayName = "Button";
|
|
|
175
170
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
176
171
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
177
172
|
var AlertDialogPortal = ({ children }) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Portal, { container: usePortalContainer(), children });
|
|
178
|
-
var AlertDialogOverlay =
|
|
173
|
+
var AlertDialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
179
174
|
AlertDialogPrimitive.Overlay,
|
|
180
175
|
{
|
|
181
176
|
className: cn(styles2["alert-dialog-overlay"], className),
|
|
@@ -184,7 +179,7 @@ var AlertDialogOverlay = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
184
179
|
}
|
|
185
180
|
));
|
|
186
181
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
187
|
-
var AlertDialogContent =
|
|
182
|
+
var AlertDialogContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
188
183
|
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
189
184
|
/* @__PURE__ */ jsx(
|
|
190
185
|
AlertDialogPrimitive.Content,
|
|
@@ -200,7 +195,7 @@ var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div",
|
|
|
200
195
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
201
196
|
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles2["alert-dialog-footer"], className), ...props });
|
|
202
197
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
203
|
-
var AlertDialogTitle =
|
|
198
|
+
var AlertDialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
204
199
|
AlertDialogPrimitive.Title,
|
|
205
200
|
{
|
|
206
201
|
ref,
|
|
@@ -209,7 +204,7 @@ var AlertDialogTitle = React16.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
209
204
|
}
|
|
210
205
|
));
|
|
211
206
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
212
|
-
var AlertDialogDescription =
|
|
207
|
+
var AlertDialogDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
213
208
|
AlertDialogPrimitive.Description,
|
|
214
209
|
{
|
|
215
210
|
ref,
|
|
@@ -218,7 +213,7 @@ var AlertDialogDescription = React16.forwardRef(({ className, ...props }, ref) =
|
|
|
218
213
|
}
|
|
219
214
|
));
|
|
220
215
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
221
|
-
var AlertDialogAction =
|
|
216
|
+
var AlertDialogAction = React15.forwardRef(({ className, variant = "primary", size = "sm", prefix, suffix, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
222
217
|
AlertDialogPrimitive.Action,
|
|
223
218
|
{
|
|
224
219
|
ref,
|
|
@@ -232,7 +227,7 @@ var AlertDialogAction = React16.forwardRef(({ className, variant = "primary", si
|
|
|
232
227
|
}
|
|
233
228
|
));
|
|
234
229
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
235
|
-
var AlertDialogCancel =
|
|
230
|
+
var AlertDialogCancel = React15.forwardRef(({ className, variant = "tertiary", size = "sm", prefix, suffix, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
236
231
|
AlertDialogPrimitive.Cancel,
|
|
237
232
|
{
|
|
238
233
|
ref,
|
|
@@ -252,12 +247,12 @@ var ELEVATION = {
|
|
|
252
247
|
RAISED: "raised",
|
|
253
248
|
OVERLAY: "overlay"
|
|
254
249
|
};
|
|
255
|
-
var generateElevationVariants = (
|
|
250
|
+
var generateElevationVariants = (styles66, baseClassName, defaultElevation) => {
|
|
256
251
|
const classNames = {};
|
|
257
252
|
Object.values(ELEVATION).forEach((elevation) => {
|
|
258
|
-
classNames[elevation] =
|
|
253
|
+
classNames[elevation] = styles66[`${baseClassName}--${elevation}`];
|
|
259
254
|
});
|
|
260
|
-
const variants = cva(
|
|
255
|
+
const variants = cva(styles66[baseClassName], {
|
|
261
256
|
variants: {
|
|
262
257
|
elevation: classNames
|
|
263
258
|
},
|
|
@@ -305,9 +300,9 @@ var Icon = forwardRef(
|
|
|
305
300
|
throw new Error(`Icon "${icon}" not found in lucide-react`);
|
|
306
301
|
}
|
|
307
302
|
renderedIcon = /* @__PURE__ */ jsx(LucideIcon, { className: cn(styles3["icon"]) });
|
|
308
|
-
} else if (
|
|
303
|
+
} else if (React15.isValidElement(icon)) {
|
|
309
304
|
const existingProps = icon.props;
|
|
310
|
-
renderedIcon =
|
|
305
|
+
renderedIcon = React15.cloneElement(
|
|
311
306
|
icon,
|
|
312
307
|
{
|
|
313
308
|
...existingProps,
|
|
@@ -352,7 +347,7 @@ var defaultVariantIcons = {
|
|
|
352
347
|
warning: "OctagonAlert",
|
|
353
348
|
danger: "TriangleAlert"
|
|
354
349
|
};
|
|
355
|
-
var Alert =
|
|
350
|
+
var Alert = React15.forwardRef(
|
|
356
351
|
({ className, variant, title, description, icon, children, as: Component = "div", ...props }, ref) => {
|
|
357
352
|
const effectiveIcon = icon === void 0 ? variant ? defaultVariantIcons[variant] : void 0 : icon;
|
|
358
353
|
const role = Component === "div" ? "alert" : void 0;
|
|
@@ -386,7 +381,7 @@ var Alert = React16.forwardRef(
|
|
|
386
381
|
}
|
|
387
382
|
);
|
|
388
383
|
Alert.displayName = "Alert";
|
|
389
|
-
var Avatar =
|
|
384
|
+
var Avatar = React15.forwardRef(
|
|
390
385
|
({ className, size = "md", shape = "circle", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
391
386
|
AvatarPrimitive.Root,
|
|
392
387
|
{
|
|
@@ -397,9 +392,9 @@ var Avatar = React16.forwardRef(
|
|
|
397
392
|
)
|
|
398
393
|
);
|
|
399
394
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
400
|
-
var AvatarImage =
|
|
395
|
+
var AvatarImage = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AvatarPrimitive.Image, { ref, className: cn(styles5["avatar-image"], className), ...props }));
|
|
401
396
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
402
|
-
var AvatarFallback =
|
|
397
|
+
var AvatarFallback = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
403
398
|
AvatarPrimitive.Fallback,
|
|
404
399
|
{
|
|
405
400
|
ref,
|
|
@@ -412,7 +407,7 @@ var TooltipProvider = TooltipPrimitive.Provider;
|
|
|
412
407
|
var Tooltip = TooltipPrimitive.Root;
|
|
413
408
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
414
409
|
var TooltipPortal = ({ children }) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { container: usePortalContainer(), children });
|
|
415
|
-
var TooltipContent =
|
|
410
|
+
var TooltipContent = React15.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPortal, { children: /* @__PURE__ */ jsxs(
|
|
416
411
|
TooltipPrimitive.Content,
|
|
417
412
|
{
|
|
418
413
|
ref,
|
|
@@ -530,10 +525,10 @@ function Badge({
|
|
|
530
525
|
}
|
|
531
526
|
);
|
|
532
527
|
}
|
|
533
|
-
var BarGraphSegment =
|
|
528
|
+
var BarGraphSegment = React15.forwardRef(
|
|
534
529
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
535
530
|
({ value, color, label, tooltip, className, style, ...props }, ref) => {
|
|
536
|
-
const tooltipId =
|
|
531
|
+
const tooltipId = React15.useId();
|
|
537
532
|
return (
|
|
538
533
|
// Widths are proportional (`value / sum`): each segment grows by its `value`
|
|
539
534
|
// within the flex row, so the parent never needs to know the total.
|
|
@@ -584,9 +579,9 @@ var barVariants = cva(styles8["bar"], {
|
|
|
584
579
|
size: "md"
|
|
585
580
|
}
|
|
586
581
|
});
|
|
587
|
-
var BarGraph =
|
|
582
|
+
var BarGraph = React15.forwardRef(
|
|
588
583
|
({ className, children, showLabels = false, size, ...props }, ref) => {
|
|
589
|
-
const validChildren =
|
|
584
|
+
const validChildren = React15.Children.toArray(children).filter(React15.isValidElement);
|
|
590
585
|
const segments = validChildren.filter(
|
|
591
586
|
(child) => child.type === BarGraphSegment
|
|
592
587
|
);
|
|
@@ -793,7 +788,7 @@ var CardContentHeader = forwardRef(
|
|
|
793
788
|
);
|
|
794
789
|
CardContentHeader.displayName = "CardContentHeader";
|
|
795
790
|
var cardElevationVariants = generateElevationVariants(styles11, "card", ELEVATION.RAISED);
|
|
796
|
-
var Card =
|
|
791
|
+
var Card = React15.forwardRef(({ className, hoverGradientClassName, elevation = ELEVATION.RAISED, ...props }, ref) => {
|
|
797
792
|
const shouldHaveHoverStyle = props.onClick !== void 0;
|
|
798
793
|
return /* @__PURE__ */ jsxs(
|
|
799
794
|
"div",
|
|
@@ -814,28 +809,28 @@ var Card = React16.forwardRef(({ className, hoverGradientClassName, elevation =
|
|
|
814
809
|
);
|
|
815
810
|
});
|
|
816
811
|
Card.displayName = "Card";
|
|
817
|
-
var CardHeader =
|
|
812
|
+
var CardHeader = React15.forwardRef(
|
|
818
813
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(styles11["card-header"], className), ...props })
|
|
819
814
|
);
|
|
820
815
|
CardHeader.displayName = "CardHeader";
|
|
821
|
-
var CardTitle =
|
|
816
|
+
var CardTitle = React15.forwardRef(
|
|
822
817
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(styles11["card-title"], className), ...props })
|
|
823
818
|
);
|
|
824
819
|
CardTitle.displayName = "CardTitle";
|
|
825
|
-
var CardDescription =
|
|
820
|
+
var CardDescription = React15.forwardRef(
|
|
826
821
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(styles11["card-description"], className), ...props })
|
|
827
822
|
);
|
|
828
823
|
CardDescription.displayName = "CardDescription";
|
|
829
|
-
var CardContent =
|
|
824
|
+
var CardContent = React15.forwardRef(
|
|
830
825
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(styles11["card-content"], className), ...props })
|
|
831
826
|
);
|
|
832
827
|
CardContent.displayName = "CardContent";
|
|
833
|
-
var CardFooter =
|
|
828
|
+
var CardFooter = React15.forwardRef(
|
|
834
829
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(styles11["card-footer"], className), ...props })
|
|
835
830
|
);
|
|
836
831
|
CardFooter.displayName = "CardFooter";
|
|
837
832
|
var CheckIcon = Check;
|
|
838
|
-
var Checkbox =
|
|
833
|
+
var Checkbox = React15.forwardRef(
|
|
839
834
|
({ className, icon: Icon3, size = "md", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
840
835
|
CheckboxPrimitive.Root,
|
|
841
836
|
{
|
|
@@ -869,7 +864,7 @@ var iconSizeMap = {
|
|
|
869
864
|
md: 22,
|
|
870
865
|
lg: 26
|
|
871
866
|
};
|
|
872
|
-
var IconButton =
|
|
867
|
+
var IconButton = React15.forwardRef(
|
|
873
868
|
function IconButton2({
|
|
874
869
|
className,
|
|
875
870
|
size = "sm",
|
|
@@ -927,7 +922,7 @@ function CopyButton({
|
|
|
927
922
|
className,
|
|
928
923
|
onClick
|
|
929
924
|
}) {
|
|
930
|
-
const [copied, setCopied] =
|
|
925
|
+
const [copied, setCopied] = React15.useState(false);
|
|
931
926
|
const handleCopy = async () => {
|
|
932
927
|
try {
|
|
933
928
|
if (navigator.clipboard && navigator.clipboard.writeText) {
|
|
@@ -1051,7 +1046,7 @@ var Dialog = DialogPrimitive.Root;
|
|
|
1051
1046
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1052
1047
|
var DialogPortal = ({ children }) => /* @__PURE__ */ jsx(DialogPrimitive.Portal, { container: usePortalContainer(), children });
|
|
1053
1048
|
var DialogClose = DialogPrimitive.Close;
|
|
1054
|
-
var DialogOverlay =
|
|
1049
|
+
var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1055
1050
|
DialogPrimitive.Overlay,
|
|
1056
1051
|
{
|
|
1057
1052
|
ref,
|
|
@@ -1060,7 +1055,7 @@ var DialogOverlay = React16.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1060
1055
|
}
|
|
1061
1056
|
));
|
|
1062
1057
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1063
|
-
var DialogContainer =
|
|
1058
|
+
var DialogContainer = React15.forwardRef(({ className, children, size = "md", ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
1064
1059
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
1065
1060
|
/* @__PURE__ */ jsx(
|
|
1066
1061
|
DialogPrimitive.Content,
|
|
@@ -1080,12 +1075,12 @@ DialogContainer.displayName = DialogPrimitive.Content.displayName;
|
|
|
1080
1075
|
var DialogHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles15["dialog-header-icon"], className), ...props });
|
|
1081
1076
|
DialogHeaderIcon.displayName = "DialogHeaderIcon";
|
|
1082
1077
|
var DialogHeader = ({ className, children, ...props }) => {
|
|
1083
|
-
const childrenArray =
|
|
1078
|
+
const childrenArray = React15.Children.toArray(children);
|
|
1084
1079
|
const icon = childrenArray.find(
|
|
1085
|
-
(child) =>
|
|
1080
|
+
(child) => React15.isValidElement(child) && child.type === DialogHeaderIcon
|
|
1086
1081
|
);
|
|
1087
1082
|
const otherChildren = childrenArray.filter(
|
|
1088
|
-
(child) => !(
|
|
1083
|
+
(child) => !(React15.isValidElement(child) && child.type === DialogHeaderIcon)
|
|
1089
1084
|
);
|
|
1090
1085
|
return /* @__PURE__ */ jsxs("div", { className: cn(styles15["dialog-header"], className), ...props, children: [
|
|
1091
1086
|
icon,
|
|
@@ -1096,9 +1091,9 @@ var DialogHeader = ({ className, children, ...props }) => {
|
|
|
1096
1091
|
DialogHeader.displayName = "DialogHeader";
|
|
1097
1092
|
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles15["dialog-footer"], className), ...props });
|
|
1098
1093
|
DialogFooter.displayName = "DialogFooter";
|
|
1099
|
-
var DialogTitle =
|
|
1094
|
+
var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, { ref, className: cn(styles15["dialog-title"], className), ...props }));
|
|
1100
1095
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1101
|
-
var DialogDescription =
|
|
1096
|
+
var DialogDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1102
1097
|
DialogPrimitive.Description,
|
|
1103
1098
|
{
|
|
1104
1099
|
ref,
|
|
@@ -1314,7 +1309,7 @@ var CircleCheckFillIcon = ({ className }) => {
|
|
|
1314
1309
|
var Popover = PopoverPrimitive.Root;
|
|
1315
1310
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1316
1311
|
var PopoverPortal = ({ children }) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { container: usePortalContainer(), children });
|
|
1317
|
-
var PopoverContent =
|
|
1312
|
+
var PopoverContent = React15.forwardRef(({ className, align = "center", sideOffset = 4, arrow = false, children, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPortal, { children: /* @__PURE__ */ jsxs(
|
|
1318
1313
|
PopoverPrimitive.Content,
|
|
1319
1314
|
{
|
|
1320
1315
|
ref,
|
|
@@ -1616,121 +1611,59 @@ function DisplayField({
|
|
|
1616
1611
|
}
|
|
1617
1612
|
);
|
|
1618
1613
|
}
|
|
1619
|
-
var Drawer = ({
|
|
1620
|
-
shouldScaleBackground = true,
|
|
1621
|
-
...props
|
|
1622
|
-
}) => /* @__PURE__ */ jsx(Drawer$1.Root, { shouldScaleBackground, ...props });
|
|
1623
|
-
Drawer.displayName = "Drawer";
|
|
1624
|
-
var DrawerTrigger = Drawer$1.Trigger;
|
|
1625
|
-
var DrawerPortal = ({ children }) => /* @__PURE__ */ jsx(Drawer$1.Portal, { container: usePortalContainer(), children });
|
|
1626
|
-
var DrawerClose = Drawer$1.Close;
|
|
1627
|
-
var DrawerOverlay = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1628
|
-
Drawer$1.Overlay,
|
|
1629
|
-
{
|
|
1630
|
-
ref,
|
|
1631
|
-
className: cn(styles21["drawer-overlay"], className),
|
|
1632
|
-
...props
|
|
1633
|
-
}
|
|
1634
|
-
));
|
|
1635
|
-
DrawerOverlay.displayName = Drawer$1.Overlay.displayName;
|
|
1636
|
-
var DrawerContent = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [
|
|
1637
|
-
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
1638
|
-
/* @__PURE__ */ jsxs(
|
|
1639
|
-
Drawer$1.Content,
|
|
1640
|
-
{
|
|
1641
|
-
ref,
|
|
1642
|
-
className: cn(styles21["drawer-content"], className),
|
|
1643
|
-
...props,
|
|
1644
|
-
children: [
|
|
1645
|
-
/* @__PURE__ */ jsx("div", { className: styles21["drawer-content-divider"] }),
|
|
1646
|
-
children
|
|
1647
|
-
]
|
|
1648
|
-
}
|
|
1649
|
-
)
|
|
1650
|
-
] }));
|
|
1651
|
-
DrawerContent.displayName = "DrawerContent";
|
|
1652
|
-
var DrawerHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles21["drawer-header"], className), ...props });
|
|
1653
|
-
DrawerHeader.displayName = "DrawerHeader";
|
|
1654
|
-
var DrawerHeaderActions = React16.forwardRef(({ className, rowSpan, style, ...props }, ref) => {
|
|
1655
|
-
return /* @__PURE__ */ jsx(
|
|
1656
|
-
"div",
|
|
1657
|
-
{
|
|
1658
|
-
ref,
|
|
1659
|
-
className: cn(styles21["drawer-header-actions"], className),
|
|
1660
|
-
style: { ...style, "--row-span": rowSpan },
|
|
1661
|
-
...props
|
|
1662
|
-
}
|
|
1663
|
-
);
|
|
1664
|
-
});
|
|
1665
|
-
DrawerHeaderActions.displayName = "DrawerHeaderActions";
|
|
1666
|
-
var DrawerFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles21["drawer-footer"], className), ...props });
|
|
1667
|
-
DrawerFooter.displayName = "DrawerFooter";
|
|
1668
|
-
var DrawerTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Drawer$1.Title, { ref, className: cn(styles21["drawer-title"], className), ...props }));
|
|
1669
|
-
DrawerTitle.displayName = Drawer$1.Title.displayName;
|
|
1670
|
-
var DrawerDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1671
|
-
Drawer$1.Description,
|
|
1672
|
-
{
|
|
1673
|
-
ref,
|
|
1674
|
-
className: cn(styles21["drawer-description"], className),
|
|
1675
|
-
...props
|
|
1676
|
-
}
|
|
1677
|
-
));
|
|
1678
|
-
DrawerDescription.displayName = Drawer$1.Description.displayName;
|
|
1679
|
-
var DrawerInnerContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles21["drawer-inner-content"], className), ...props });
|
|
1680
|
-
DrawerInnerContent.displayName = "DrawerInnerContent";
|
|
1681
1614
|
function useMatchRegistry() {
|
|
1682
|
-
const itemsRef =
|
|
1683
|
-
const [matchCount, setMatchCount] =
|
|
1684
|
-
const registerItem =
|
|
1615
|
+
const itemsRef = React15.useRef(/* @__PURE__ */ new Map());
|
|
1616
|
+
const [matchCount, setMatchCount] = React15.useState(0);
|
|
1617
|
+
const registerItem = React15.useCallback((id, matches) => {
|
|
1685
1618
|
const delta = Number(matches) - Number(itemsRef.current.get(id) ?? false);
|
|
1686
1619
|
itemsRef.current.set(id, matches);
|
|
1687
1620
|
if (delta) setMatchCount((count2) => count2 + delta);
|
|
1688
1621
|
}, []);
|
|
1689
|
-
const unregisterItem =
|
|
1622
|
+
const unregisterItem = React15.useCallback((id) => {
|
|
1690
1623
|
if (itemsRef.current.get(id)) setMatchCount((count2) => count2 - 1);
|
|
1691
1624
|
itemsRef.current.delete(id);
|
|
1692
1625
|
}, []);
|
|
1693
|
-
return
|
|
1626
|
+
return React15.useMemo(
|
|
1694
1627
|
() => ({ registerItem, unregisterItem, matchCount }),
|
|
1695
1628
|
[registerItem, unregisterItem, matchCount]
|
|
1696
1629
|
);
|
|
1697
1630
|
}
|
|
1698
1631
|
function useListSearchState(open) {
|
|
1699
|
-
const [enabled, setEnabled] =
|
|
1700
|
-
const [visible, setVisible] =
|
|
1701
|
-
const [query, setQuery] =
|
|
1702
|
-
const [listId, setListId] =
|
|
1703
|
-
const [lockedSide, setLockedSide] =
|
|
1704
|
-
const interactedRef =
|
|
1705
|
-
const markInteracted =
|
|
1632
|
+
const [enabled, setEnabled] = React15.useState(false);
|
|
1633
|
+
const [visible, setVisible] = React15.useState(false);
|
|
1634
|
+
const [query, setQuery] = React15.useState("");
|
|
1635
|
+
const [listId, setListId] = React15.useState(void 0);
|
|
1636
|
+
const [lockedSide, setLockedSide] = React15.useState(void 0);
|
|
1637
|
+
const interactedRef = React15.useRef(false);
|
|
1638
|
+
const markInteracted = React15.useCallback(() => {
|
|
1706
1639
|
interactedRef.current = true;
|
|
1707
1640
|
}, []);
|
|
1708
|
-
const interactedSinceOpen =
|
|
1709
|
-
const [focusSignal, setFocusSignal] =
|
|
1710
|
-
const requestFocus =
|
|
1641
|
+
const interactedSinceOpen = React15.useCallback(() => interactedRef.current, []);
|
|
1642
|
+
const [focusSignal, setFocusSignal] = React15.useState(0);
|
|
1643
|
+
const requestFocus = React15.useCallback(() => setFocusSignal((n) => n + 1), []);
|
|
1711
1644
|
const { registerItem, unregisterItem, matchCount } = useMatchRegistry();
|
|
1712
|
-
const reveal =
|
|
1645
|
+
const reveal = React15.useCallback((seed) => {
|
|
1713
1646
|
setVisible(true);
|
|
1714
1647
|
setQuery(seed);
|
|
1715
1648
|
}, []);
|
|
1716
|
-
const resetStateForOpen =
|
|
1649
|
+
const resetStateForOpen = React15.useCallback(() => {
|
|
1717
1650
|
setVisible(false);
|
|
1718
1651
|
setQuery("");
|
|
1719
1652
|
setLockedSide(void 0);
|
|
1720
1653
|
}, []);
|
|
1721
|
-
const resetForOpen =
|
|
1654
|
+
const resetForOpen = React15.useCallback(() => {
|
|
1722
1655
|
resetStateForOpen();
|
|
1723
1656
|
interactedRef.current = false;
|
|
1724
1657
|
}, [resetStateForOpen]);
|
|
1725
|
-
const [previousOpen, setPreviousOpen] =
|
|
1658
|
+
const [previousOpen, setPreviousOpen] = React15.useState(open);
|
|
1726
1659
|
if (open !== previousOpen) {
|
|
1727
1660
|
setPreviousOpen(open);
|
|
1728
1661
|
if (open) resetStateForOpen();
|
|
1729
1662
|
}
|
|
1730
|
-
|
|
1663
|
+
React15.useEffect(() => {
|
|
1731
1664
|
if (open) interactedRef.current = false;
|
|
1732
1665
|
}, [open]);
|
|
1733
|
-
return
|
|
1666
|
+
return React15.useMemo(
|
|
1734
1667
|
() => ({
|
|
1735
1668
|
enabled,
|
|
1736
1669
|
setEnabled,
|
|
@@ -1777,7 +1710,7 @@ function useSearchSideLock(state, contentRef, {
|
|
|
1777
1710
|
const searching = isSearchActive(state);
|
|
1778
1711
|
const lockedSide = state?.lockedSide;
|
|
1779
1712
|
const lockSide = state?.lockSide;
|
|
1780
|
-
|
|
1713
|
+
React15.useEffect(() => {
|
|
1781
1714
|
if (!enabled || !searching || lockedSide) return;
|
|
1782
1715
|
const placed = contentRef.current?.dataset.side;
|
|
1783
1716
|
if (placed) lockSide?.(placed);
|
|
@@ -1791,7 +1724,7 @@ function getNodeText(node) {
|
|
|
1791
1724
|
if (node == null || typeof node === "boolean") return "";
|
|
1792
1725
|
if (typeof node === "string" || typeof node === "number") return String(node);
|
|
1793
1726
|
if (Array.isArray(node)) return node.map(getNodeText).join("");
|
|
1794
|
-
if (
|
|
1727
|
+
if (React15.isValidElement(node)) {
|
|
1795
1728
|
return getNodeText(node.props.children);
|
|
1796
1729
|
}
|
|
1797
1730
|
return "";
|
|
@@ -1803,14 +1736,14 @@ var matchesQuery = (query, textValue, children) => {
|
|
|
1803
1736
|
function useRegisterMatch(registry, enabled, id, matches) {
|
|
1804
1737
|
const registerItem = registry?.registerItem;
|
|
1805
1738
|
const unregisterItem = registry?.unregisterItem;
|
|
1806
|
-
|
|
1739
|
+
React15.useEffect(() => {
|
|
1807
1740
|
if (!enabled || !registerItem || !unregisterItem) return;
|
|
1808
1741
|
registerItem(id, matches);
|
|
1809
1742
|
return () => unregisterItem(id);
|
|
1810
1743
|
}, [enabled, registerItem, unregisterItem, id, matches]);
|
|
1811
1744
|
}
|
|
1812
1745
|
function useFilterableItem(state, textValue, children, { group, persistent = false } = {}) {
|
|
1813
|
-
const id =
|
|
1746
|
+
const id = React15.useId();
|
|
1814
1747
|
const matches = persistent || matchesQuery(state?.query ?? "", textValue, children);
|
|
1815
1748
|
const enabled = state?.enabled ?? false;
|
|
1816
1749
|
useRegisterMatch(state, enabled && !persistent, id, matches);
|
|
@@ -1819,23 +1752,23 @@ function useFilterableItem(state, textValue, children, { group, persistent = fal
|
|
|
1819
1752
|
}
|
|
1820
1753
|
function useSearchInput(state, alwaysVisible, forwardedRef) {
|
|
1821
1754
|
const { setEnabled, reveal, visible, focusSignal } = state;
|
|
1822
|
-
const inputRef =
|
|
1823
|
-
const ref =
|
|
1755
|
+
const inputRef = React15.useRef(null);
|
|
1756
|
+
const ref = React15.useCallback(
|
|
1824
1757
|
(node) => assignRefs(node, inputRef, forwardedRef),
|
|
1825
1758
|
[forwardedRef]
|
|
1826
1759
|
);
|
|
1827
|
-
|
|
1760
|
+
React15.useEffect(() => {
|
|
1828
1761
|
setEnabled(true);
|
|
1829
1762
|
return () => setEnabled(false);
|
|
1830
1763
|
}, [setEnabled]);
|
|
1831
|
-
|
|
1764
|
+
React15.useEffect(() => {
|
|
1832
1765
|
if (!visible) return;
|
|
1833
1766
|
const input = inputRef.current;
|
|
1834
1767
|
if (!input) return;
|
|
1835
1768
|
input.focus();
|
|
1836
1769
|
input.setSelectionRange(input.value.length, input.value.length);
|
|
1837
1770
|
}, [visible, focusSignal]);
|
|
1838
|
-
|
|
1771
|
+
React15.useEffect(() => {
|
|
1839
1772
|
if (alwaysVisible && !visible) reveal("");
|
|
1840
1773
|
}, [alwaysVisible, visible, reveal]);
|
|
1841
1774
|
return { ref, isRendered: alwaysVisible || visible };
|
|
@@ -1843,7 +1776,7 @@ function useSearchInput(state, alwaysVisible, forwardedRef) {
|
|
|
1843
1776
|
function useSearchQuery(state) {
|
|
1844
1777
|
const { query } = state;
|
|
1845
1778
|
const isSearching = isSearchActive(state);
|
|
1846
|
-
return
|
|
1779
|
+
return React15.useMemo(
|
|
1847
1780
|
() => ({
|
|
1848
1781
|
query,
|
|
1849
1782
|
isSearching,
|
|
@@ -1898,8 +1831,8 @@ var CheckIcon2 = Check;
|
|
|
1898
1831
|
var ChevronRightIcon2 = ChevronRight;
|
|
1899
1832
|
var CircleIcon = Circle;
|
|
1900
1833
|
var SearchIcon2 = Search;
|
|
1901
|
-
var DropdownMenuSearchContext =
|
|
1902
|
-
var useDropdownMenuSearch = () =>
|
|
1834
|
+
var DropdownMenuSearchContext = React15.createContext(null);
|
|
1835
|
+
var useDropdownMenuSearch = () => React15.useContext(DropdownMenuSearchContext);
|
|
1903
1836
|
var useIsSearching = () => isSearchActive(useDropdownMenuSearch());
|
|
1904
1837
|
var useDropdownMenuSearchQuery = () => {
|
|
1905
1838
|
const ctx = useDropdownMenuSearch();
|
|
@@ -1908,12 +1841,12 @@ var useDropdownMenuSearchQuery = () => {
|
|
|
1908
1841
|
}
|
|
1909
1842
|
return useSearchQuery(ctx);
|
|
1910
1843
|
};
|
|
1911
|
-
var DropdownMenuBreadcrumbContext =
|
|
1912
|
-
var useBreadcrumbAncestry = () =>
|
|
1844
|
+
var DropdownMenuBreadcrumbContext = React15.createContext([]);
|
|
1845
|
+
var useBreadcrumbAncestry = () => React15.useContext(DropdownMenuBreadcrumbContext);
|
|
1913
1846
|
var SUB_CONTENT_NAME = "DropdownMenuSubContent";
|
|
1914
1847
|
var SUB_TRIGGER_NAME = "DropdownMenuSubTrigger";
|
|
1915
1848
|
function hasDisplayName(node, name) {
|
|
1916
|
-
return
|
|
1849
|
+
return React15.isValidElement(node) && typeof node.type !== "string" && node.type.displayName === name;
|
|
1917
1850
|
}
|
|
1918
1851
|
var isSubContent = (node) => hasDisplayName(node, SUB_CONTENT_NAME);
|
|
1919
1852
|
var isSubTrigger = (node) => hasDisplayName(node, SUB_TRIGGER_NAME);
|
|
@@ -1921,8 +1854,8 @@ function findSubContentChildren(nodes) {
|
|
|
1921
1854
|
let result = null;
|
|
1922
1855
|
let done = false;
|
|
1923
1856
|
const walk = (ns) => {
|
|
1924
|
-
|
|
1925
|
-
if (done || !
|
|
1857
|
+
React15.Children.forEach(ns, (child) => {
|
|
1858
|
+
if (done || !React15.isValidElement(child)) return;
|
|
1926
1859
|
if (isSubContent(child)) {
|
|
1927
1860
|
result = child.props.children ?? null;
|
|
1928
1861
|
done = true;
|
|
@@ -1936,7 +1869,7 @@ function findSubContentChildren(nodes) {
|
|
|
1936
1869
|
return result;
|
|
1937
1870
|
}
|
|
1938
1871
|
function getSubTriggerLabel(nodes) {
|
|
1939
|
-
const trigger =
|
|
1872
|
+
const trigger = React15.Children.toArray(nodes).find(isSubTrigger);
|
|
1940
1873
|
return trigger ? getNodeText(trigger.props.children) : "";
|
|
1941
1874
|
}
|
|
1942
1875
|
var DropdownMenu = ({
|
|
@@ -1947,7 +1880,7 @@ var DropdownMenu = ({
|
|
|
1947
1880
|
}) => {
|
|
1948
1881
|
const search = useListSearchState(open);
|
|
1949
1882
|
const { resetForOpen } = search;
|
|
1950
|
-
const handleOpenChange =
|
|
1883
|
+
const handleOpenChange = React15.useCallback(
|
|
1951
1884
|
(nextOpen) => {
|
|
1952
1885
|
if (nextOpen) resetForOpen();
|
|
1953
1886
|
onOpenChange?.(nextOpen);
|
|
@@ -1961,7 +1894,7 @@ var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
|
1961
1894
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
1962
1895
|
var DropdownMenuPortal = ({ children }) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { container: usePortalContainer(), children });
|
|
1963
1896
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1964
|
-
var DropdownMenuSubTrigger =
|
|
1897
|
+
var DropdownMenuSubTrigger = React15.forwardRef(({ className, inset, children, ...props }, ref) => {
|
|
1965
1898
|
const searching = useIsSearching();
|
|
1966
1899
|
if (searching) return null;
|
|
1967
1900
|
return /* @__PURE__ */ jsxs(
|
|
@@ -1969,24 +1902,24 @@ var DropdownMenuSubTrigger = React16.forwardRef(({ className, inset, children, .
|
|
|
1969
1902
|
{
|
|
1970
1903
|
ref,
|
|
1971
1904
|
className: cn(
|
|
1972
|
-
|
|
1973
|
-
inset &&
|
|
1905
|
+
styles21["dropdown-menu-trigger"],
|
|
1906
|
+
inset && styles21["dropdown-menu-inset"],
|
|
1974
1907
|
className
|
|
1975
1908
|
),
|
|
1976
1909
|
...props,
|
|
1977
1910
|
children: [
|
|
1978
1911
|
children,
|
|
1979
|
-
/* @__PURE__ */ jsx(ChevronRightIcon2, { className:
|
|
1912
|
+
/* @__PURE__ */ jsx(ChevronRightIcon2, { className: styles21["dropdown-menu-subtrigger-chevron"] })
|
|
1980
1913
|
]
|
|
1981
1914
|
}
|
|
1982
1915
|
);
|
|
1983
1916
|
});
|
|
1984
1917
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1985
|
-
var DropdownMenuSubContent =
|
|
1918
|
+
var DropdownMenuSubContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1986
1919
|
DropdownMenuPrimitive.SubContent,
|
|
1987
1920
|
{
|
|
1988
1921
|
ref,
|
|
1989
|
-
className: cn(
|
|
1922
|
+
className: cn(styles21["dropdown-menu-sub-content"], className),
|
|
1990
1923
|
...props
|
|
1991
1924
|
}
|
|
1992
1925
|
));
|
|
@@ -2007,7 +1940,7 @@ var DropdownMenuSub = ({
|
|
|
2007
1940
|
var SEARCH_INPUT_SELECTOR = "[data-dropdown-search]";
|
|
2008
1941
|
var MENU_ITEM_SELECTOR = ':is([role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]):not([data-disabled])';
|
|
2009
1942
|
var MATCHING_ITEM_SELECTOR = `${MENU_ITEM_SELECTOR}:not([data-persistent])`;
|
|
2010
|
-
var DropdownMenuContent =
|
|
1943
|
+
var DropdownMenuContent = React15.forwardRef(
|
|
2011
1944
|
({
|
|
2012
1945
|
className,
|
|
2013
1946
|
children,
|
|
@@ -2024,9 +1957,9 @@ var DropdownMenuContent = React16.forwardRef(
|
|
|
2024
1957
|
const setListId = ctx?.setListId;
|
|
2025
1958
|
const searching = isSearchActive(ctx);
|
|
2026
1959
|
const resultCount = ctx?.matchCount ?? 0;
|
|
2027
|
-
const contentRef =
|
|
1960
|
+
const contentRef = React15.useRef(null);
|
|
2028
1961
|
const sideProps = useSearchSideLock(ctx, contentRef, { side, avoidCollisions });
|
|
2029
|
-
const composedContentRef =
|
|
1962
|
+
const composedContentRef = React15.useCallback(
|
|
2030
1963
|
(node) => {
|
|
2031
1964
|
assignRefs(node, ref, contentRef);
|
|
2032
1965
|
setListId?.(node?.id || void 0);
|
|
@@ -2050,7 +1983,7 @@ var DropdownMenuContent = React16.forwardRef(
|
|
|
2050
1983
|
DropdownMenuPrimitive.Content,
|
|
2051
1984
|
{
|
|
2052
1985
|
ref: composedContentRef,
|
|
2053
|
-
className: cn(
|
|
1986
|
+
className: cn(styles21["dropdown-menu-content"], className),
|
|
2054
1987
|
sideOffset,
|
|
2055
1988
|
...sideProps,
|
|
2056
1989
|
onFocus: handleFocus,
|
|
@@ -2065,7 +1998,7 @@ var DropdownMenuContent = React16.forwardRef(
|
|
|
2065
1998
|
},
|
|
2066
1999
|
...props,
|
|
2067
2000
|
children: [
|
|
2068
|
-
ctx?.enabled ? /* @__PURE__ */ jsx("div", { className:
|
|
2001
|
+
ctx?.enabled ? /* @__PURE__ */ jsx("div", { className: styles21["dropdown-menu-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
|
|
2069
2002
|
children
|
|
2070
2003
|
]
|
|
2071
2004
|
}
|
|
@@ -2073,7 +2006,7 @@ var DropdownMenuContent = React16.forwardRef(
|
|
|
2073
2006
|
}
|
|
2074
2007
|
);
|
|
2075
2008
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
2076
|
-
var DropdownMenuSearch =
|
|
2009
|
+
var DropdownMenuSearch = React15.forwardRef(
|
|
2077
2010
|
({
|
|
2078
2011
|
className,
|
|
2079
2012
|
placeholder = "Search...",
|
|
@@ -2089,15 +2022,15 @@ var DropdownMenuSearch = React16.forwardRef(
|
|
|
2089
2022
|
}
|
|
2090
2023
|
const { ref, isRendered } = useSearchInput(ctx, alwaysVisible, forwardedRef);
|
|
2091
2024
|
if (!isRendered) return null;
|
|
2092
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
2093
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className:
|
|
2025
|
+
return /* @__PURE__ */ jsxs("div", { className: styles21["dropdown-menu-search"], children: [
|
|
2026
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: styles21["dropdown-menu-item-icon"], children: icon ?? /* @__PURE__ */ jsx(SearchIcon2, { className: styles21["icon-size"] }) }),
|
|
2094
2027
|
/* @__PURE__ */ jsx(
|
|
2095
2028
|
"input",
|
|
2096
2029
|
{
|
|
2097
2030
|
...props,
|
|
2098
2031
|
ref,
|
|
2099
2032
|
"data-dropdown-search": "",
|
|
2100
|
-
className: cn(
|
|
2033
|
+
className: cn(styles21["dropdown-menu-search-input"], className),
|
|
2101
2034
|
value: ctx.query,
|
|
2102
2035
|
placeholder,
|
|
2103
2036
|
"aria-label": ariaLabel ?? placeholder,
|
|
@@ -2143,7 +2076,7 @@ var DropdownMenuEmpty = ({
|
|
|
2143
2076
|
...props,
|
|
2144
2077
|
role: "status",
|
|
2145
2078
|
"aria-live": "polite",
|
|
2146
|
-
className: isEmpty ? cn(
|
|
2079
|
+
className: isEmpty ? cn(styles21["dropdown-menu-empty"], className) : void 0,
|
|
2147
2080
|
children: isEmpty ? children : null
|
|
2148
2081
|
}
|
|
2149
2082
|
);
|
|
@@ -2152,12 +2085,12 @@ DropdownMenuEmpty.displayName = "DropdownMenuEmpty";
|
|
|
2152
2085
|
var ItemBreadcrumb = () => {
|
|
2153
2086
|
const ancestry = useBreadcrumbAncestry();
|
|
2154
2087
|
if (!ancestry.length) return null;
|
|
2155
|
-
return /* @__PURE__ */ jsx("span", { className:
|
|
2088
|
+
return /* @__PURE__ */ jsx("span", { className: styles21["dropdown-menu-breadcrumb"], "aria-hidden": "true", children: ancestry.map((crumb, index) => /* @__PURE__ */ jsxs(React15.Fragment, { children: [
|
|
2156
2089
|
crumb,
|
|
2157
2090
|
/* @__PURE__ */ jsx(ChevronRightIcon2, {})
|
|
2158
2091
|
] }, index)) });
|
|
2159
2092
|
};
|
|
2160
|
-
var DropdownMenuItem =
|
|
2093
|
+
var DropdownMenuItem = React15.forwardRef(({ className, inset, variant = "neutral", textValue, persistent, children, ...props }, ref) => {
|
|
2161
2094
|
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children, { persistent });
|
|
2162
2095
|
if (!visible) return null;
|
|
2163
2096
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2166,10 +2099,10 @@ var DropdownMenuItem = React16.forwardRef(({ className, inset, variant = "neutra
|
|
|
2166
2099
|
ref,
|
|
2167
2100
|
textValue,
|
|
2168
2101
|
className: cn(
|
|
2169
|
-
|
|
2170
|
-
inset &&
|
|
2171
|
-
variant === "warning" &&
|
|
2172
|
-
variant === "danger" &&
|
|
2102
|
+
styles21["dropdown-menu-item"],
|
|
2103
|
+
inset && styles21["dropdown-menu-inset"],
|
|
2104
|
+
variant === "warning" && styles21["dropdown-menu-item-warning"],
|
|
2105
|
+
variant === "danger" && styles21["dropdown-menu-item-danger"],
|
|
2173
2106
|
className
|
|
2174
2107
|
),
|
|
2175
2108
|
...props,
|
|
@@ -2182,7 +2115,7 @@ var DropdownMenuItem = React16.forwardRef(({ className, inset, variant = "neutra
|
|
|
2182
2115
|
);
|
|
2183
2116
|
});
|
|
2184
2117
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
2185
|
-
var DropdownMenuCheckboxItem =
|
|
2118
|
+
var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, checked, textValue, persistent, ...props }, ref) => {
|
|
2186
2119
|
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children, { persistent });
|
|
2187
2120
|
if (!visible) return null;
|
|
2188
2121
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2190,12 +2123,12 @@ var DropdownMenuCheckboxItem = React16.forwardRef(({ className, children, checke
|
|
|
2190
2123
|
{
|
|
2191
2124
|
ref,
|
|
2192
2125
|
textValue,
|
|
2193
|
-
className: cn(
|
|
2126
|
+
className: cn(styles21["dropdown-menu-checkbox-item"], className),
|
|
2194
2127
|
checked,
|
|
2195
2128
|
...props,
|
|
2196
2129
|
"data-persistent": persistent ? "" : void 0,
|
|
2197
2130
|
children: [
|
|
2198
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
2131
|
+
/* @__PURE__ */ jsx("span", { className: styles21["dropdown-menu-item-indicator-checkbox"], children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon2, { className: styles21["icon-size"] }) }) }),
|
|
2199
2132
|
/* @__PURE__ */ jsx(ItemBreadcrumb, {}),
|
|
2200
2133
|
children
|
|
2201
2134
|
]
|
|
@@ -2203,7 +2136,7 @@ var DropdownMenuCheckboxItem = React16.forwardRef(({ className, children, checke
|
|
|
2203
2136
|
);
|
|
2204
2137
|
});
|
|
2205
2138
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
2206
|
-
var DropdownMenuRadioItem =
|
|
2139
|
+
var DropdownMenuRadioItem = React15.forwardRef(({ className, children, textValue, persistent, ...props }, ref) => {
|
|
2207
2140
|
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children, { persistent });
|
|
2208
2141
|
if (!visible) return null;
|
|
2209
2142
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2211,11 +2144,11 @@ var DropdownMenuRadioItem = React16.forwardRef(({ className, children, textValue
|
|
|
2211
2144
|
{
|
|
2212
2145
|
ref,
|
|
2213
2146
|
textValue,
|
|
2214
|
-
className: cn(
|
|
2147
|
+
className: cn(styles21["dropdown-menu-radio-item"], className),
|
|
2215
2148
|
...props,
|
|
2216
2149
|
"data-persistent": persistent ? "" : void 0,
|
|
2217
2150
|
children: [
|
|
2218
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
2151
|
+
/* @__PURE__ */ jsx("span", { className: styles21["dropdown-menu-item-indicator-radio"], children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: styles21["radio-icon"] }) }) }),
|
|
2219
2152
|
/* @__PURE__ */ jsx(ItemBreadcrumb, {}),
|
|
2220
2153
|
children
|
|
2221
2154
|
]
|
|
@@ -2223,7 +2156,7 @@ var DropdownMenuRadioItem = React16.forwardRef(({ className, children, textValue
|
|
|
2223
2156
|
);
|
|
2224
2157
|
});
|
|
2225
2158
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
2226
|
-
var DropdownMenuLabel =
|
|
2159
|
+
var DropdownMenuLabel = React15.forwardRef(({ className, inset, ...props }, ref) => {
|
|
2227
2160
|
const searching = useIsSearching();
|
|
2228
2161
|
if (searching) return null;
|
|
2229
2162
|
return /* @__PURE__ */ jsx(
|
|
@@ -2231,8 +2164,8 @@ var DropdownMenuLabel = React16.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2231
2164
|
{
|
|
2232
2165
|
ref,
|
|
2233
2166
|
className: cn(
|
|
2234
|
-
|
|
2235
|
-
inset &&
|
|
2167
|
+
styles21["dropdown-menu-label"],
|
|
2168
|
+
inset && styles21["dropdown-menu-inset"],
|
|
2236
2169
|
className
|
|
2237
2170
|
),
|
|
2238
2171
|
...props
|
|
@@ -2240,21 +2173,21 @@ var DropdownMenuLabel = React16.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2240
2173
|
);
|
|
2241
2174
|
});
|
|
2242
2175
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
2243
|
-
var DropdownMenuSeparator =
|
|
2176
|
+
var DropdownMenuSeparator = React15.forwardRef(({ className, persistent, ...props }, ref) => {
|
|
2244
2177
|
const searching = useIsSearching();
|
|
2245
2178
|
if (searching && !persistent) return null;
|
|
2246
2179
|
return /* @__PURE__ */ jsx(
|
|
2247
2180
|
DropdownMenuPrimitive.Separator,
|
|
2248
2181
|
{
|
|
2249
2182
|
ref,
|
|
2250
|
-
className: cn(
|
|
2183
|
+
className: cn(styles21["dropdown-menu-separator"], className),
|
|
2251
2184
|
...props
|
|
2252
2185
|
}
|
|
2253
2186
|
);
|
|
2254
2187
|
});
|
|
2255
2188
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
2256
2189
|
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
2257
|
-
return /* @__PURE__ */ jsx("span", { className: cn(
|
|
2190
|
+
return /* @__PURE__ */ jsx("span", { className: cn(styles21["dropdown-menu-shortcut"], className), ...props });
|
|
2258
2191
|
};
|
|
2259
2192
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
2260
2193
|
var EmptyTableState = ({
|
|
@@ -2267,13 +2200,13 @@ var EmptyTableState = ({
|
|
|
2267
2200
|
className
|
|
2268
2201
|
}) => {
|
|
2269
2202
|
const showButton = showClearButton && onClear;
|
|
2270
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
2271
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
2203
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles22["empty-table-state"], className), children: [
|
|
2204
|
+
/* @__PURE__ */ jsxs("div", { className: styles22["icon-and-title-container"], children: [
|
|
2272
2205
|
/* @__PURE__ */ jsx(Icon, { icon, size: "md", background: "circle", elevation }),
|
|
2273
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
2206
|
+
/* @__PURE__ */ jsx("span", { className: styles22["title"], children: title })
|
|
2274
2207
|
] }),
|
|
2275
|
-
description && /* @__PURE__ */ jsx("span", { className:
|
|
2276
|
-
showButton && /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "sm", onClick: onClear, className:
|
|
2208
|
+
description && /* @__PURE__ */ jsx("span", { className: styles22["description"], children: description }),
|
|
2209
|
+
showButton && /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "sm", onClick: onClear, className: styles22["clear-button"], children: "Clear Filters" })
|
|
2277
2210
|
] });
|
|
2278
2211
|
};
|
|
2279
2212
|
var ChevronDownIcon = ChevronDown;
|
|
@@ -2310,13 +2243,13 @@ var FilterDropdown = ({
|
|
|
2310
2243
|
{
|
|
2311
2244
|
variant: "tertiary",
|
|
2312
2245
|
disabled,
|
|
2313
|
-
className: cn(
|
|
2246
|
+
className: cn(styles23["selector-button"], buttonClassName),
|
|
2314
2247
|
children: [
|
|
2315
|
-
/* @__PURE__ */ jsxs("span", { className:
|
|
2248
|
+
/* @__PURE__ */ jsxs("span", { className: styles23["selector-button-content"], children: [
|
|
2316
2249
|
label,
|
|
2317
2250
|
hasSelectedFilters && /* @__PURE__ */ jsx(Badge, { variant: "primary", children: selectedFilters.length })
|
|
2318
2251
|
] }),
|
|
2319
|
-
/* @__PURE__ */ jsx(ChevronDownIcon, { className:
|
|
2252
|
+
/* @__PURE__ */ jsx(ChevronDownIcon, { className: styles23["chevron-icon"] })
|
|
2320
2253
|
]
|
|
2321
2254
|
}
|
|
2322
2255
|
) }),
|
|
@@ -2324,16 +2257,16 @@ var FilterDropdown = ({
|
|
|
2324
2257
|
DropdownMenuContent,
|
|
2325
2258
|
{
|
|
2326
2259
|
align: "end",
|
|
2327
|
-
className: cn(
|
|
2260
|
+
className: cn(styles23["dropdown-menu-content"], contentClassName),
|
|
2328
2261
|
children: [
|
|
2329
2262
|
searchable && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2330
2263
|
/* @__PURE__ */ jsx(DropdownMenuSearch, { placeholder: searchPlaceholder, "aria-label": label }),
|
|
2331
2264
|
/* @__PURE__ */ jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
|
|
2332
2265
|
] }),
|
|
2333
2266
|
!searchable && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2334
|
-
/* @__PURE__ */ jsxs(DropdownMenuLabel, { className:
|
|
2267
|
+
/* @__PURE__ */ jsxs(DropdownMenuLabel, { className: styles23["filters-header"], children: [
|
|
2335
2268
|
"Filters",
|
|
2336
|
-
hasSelectedFilters && clearAll(
|
|
2269
|
+
hasSelectedFilters && clearAll(styles23["clear-all-inline"])
|
|
2337
2270
|
] }),
|
|
2338
2271
|
/* @__PURE__ */ jsx(DropdownMenuSeparator, {})
|
|
2339
2272
|
] }),
|
|
@@ -2345,33 +2278,33 @@ var FilterDropdown = ({
|
|
|
2345
2278
|
checked: isSelected,
|
|
2346
2279
|
onCheckedChange: () => onToggleFilter(option.value),
|
|
2347
2280
|
onSelect: (e) => e.preventDefault(),
|
|
2348
|
-
children: /* @__PURE__ */ jsx("span", { className:
|
|
2281
|
+
children: /* @__PURE__ */ jsx("span", { className: styles23["option-label"], title: option.label, children: option.label })
|
|
2349
2282
|
},
|
|
2350
2283
|
option.value
|
|
2351
2284
|
);
|
|
2352
2285
|
}),
|
|
2353
|
-
searchable && hasSelectedFilters && /* @__PURE__ */ jsxs("div", { className:
|
|
2286
|
+
searchable && hasSelectedFilters && /* @__PURE__ */ jsxs("div", { className: styles23["clear-all-footer"], children: [
|
|
2354
2287
|
/* @__PURE__ */ jsx(DropdownMenuSeparator, { persistent: true }),
|
|
2355
|
-
clearAll(
|
|
2288
|
+
clearAll(styles23["clear-all"])
|
|
2356
2289
|
] })
|
|
2357
2290
|
]
|
|
2358
2291
|
}
|
|
2359
2292
|
)
|
|
2360
2293
|
] });
|
|
2361
2294
|
};
|
|
2362
|
-
var labelVariants = cva(
|
|
2363
|
-
var Label2 =
|
|
2295
|
+
var labelVariants = cva(styles24["label"]);
|
|
2296
|
+
var Label2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
2364
2297
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
2365
2298
|
var Form = FormProvider;
|
|
2366
|
-
var FormFieldContext =
|
|
2299
|
+
var FormFieldContext = React15.createContext({});
|
|
2367
2300
|
var FormField = ({
|
|
2368
2301
|
...props
|
|
2369
2302
|
}) => {
|
|
2370
2303
|
return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
|
|
2371
2304
|
};
|
|
2372
2305
|
var useFormField = () => {
|
|
2373
|
-
const fieldContext =
|
|
2374
|
-
const itemContext =
|
|
2306
|
+
const fieldContext = React15.useContext(FormFieldContext);
|
|
2307
|
+
const itemContext = React15.useContext(FormItemContext);
|
|
2375
2308
|
const { getFieldState, formState } = useFormContext();
|
|
2376
2309
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
2377
2310
|
if (!fieldContext) {
|
|
@@ -2387,28 +2320,28 @@ var useFormField = () => {
|
|
|
2387
2320
|
...fieldState
|
|
2388
2321
|
};
|
|
2389
2322
|
};
|
|
2390
|
-
var FormItemContext =
|
|
2391
|
-
var FormItem =
|
|
2323
|
+
var FormItemContext = React15.createContext({});
|
|
2324
|
+
var FormItem = React15.forwardRef(
|
|
2392
2325
|
({ className, ...props }, ref) => {
|
|
2393
|
-
const id =
|
|
2394
|
-
return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx("div", { ref, className: cn(
|
|
2326
|
+
const id = React15.useId();
|
|
2327
|
+
return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx("div", { ref, className: cn(styles25["form-item"], className), ...props }) });
|
|
2395
2328
|
}
|
|
2396
2329
|
);
|
|
2397
2330
|
FormItem.displayName = "FormItem";
|
|
2398
|
-
var FormLabel =
|
|
2331
|
+
var FormLabel = React15.forwardRef(({ className, ...props }, ref) => {
|
|
2399
2332
|
const { error, formItemId } = useFormField();
|
|
2400
2333
|
return /* @__PURE__ */ jsx(
|
|
2401
2334
|
Label2,
|
|
2402
2335
|
{
|
|
2403
2336
|
ref,
|
|
2404
|
-
className: cn(
|
|
2337
|
+
className: cn(styles25["form-label"], error && styles25["form-label--failure"], className),
|
|
2405
2338
|
htmlFor: formItemId,
|
|
2406
2339
|
...props
|
|
2407
2340
|
}
|
|
2408
2341
|
);
|
|
2409
2342
|
});
|
|
2410
2343
|
FormLabel.displayName = "FormLabel";
|
|
2411
|
-
var FormControl =
|
|
2344
|
+
var FormControl = React15.forwardRef(({ ...props }, ref) => {
|
|
2412
2345
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
2413
2346
|
return /* @__PURE__ */ jsx(
|
|
2414
2347
|
Slot,
|
|
@@ -2422,26 +2355,26 @@ var FormControl = React16.forwardRef(({ ...props }, ref) => {
|
|
|
2422
2355
|
);
|
|
2423
2356
|
});
|
|
2424
2357
|
FormControl.displayName = "FormControl";
|
|
2425
|
-
var FormDescription =
|
|
2358
|
+
var FormDescription = React15.forwardRef(({ className, ...props }, ref) => {
|
|
2426
2359
|
const { formDescriptionId } = useFormField();
|
|
2427
2360
|
return /* @__PURE__ */ jsx(
|
|
2428
2361
|
"p",
|
|
2429
2362
|
{
|
|
2430
2363
|
ref,
|
|
2431
2364
|
id: formDescriptionId,
|
|
2432
|
-
className: cn(
|
|
2365
|
+
className: cn(styles25["form-description"], className),
|
|
2433
2366
|
...props
|
|
2434
2367
|
}
|
|
2435
2368
|
);
|
|
2436
2369
|
});
|
|
2437
2370
|
FormDescription.displayName = "FormDescription";
|
|
2438
|
-
var FormMessage =
|
|
2371
|
+
var FormMessage = React15.forwardRef(({ className, children, ...props }, ref) => {
|
|
2439
2372
|
const { error, formMessageId } = useFormField();
|
|
2440
2373
|
const body = error ? String(error?.message ?? "") : children;
|
|
2441
2374
|
if (!body) {
|
|
2442
2375
|
return null;
|
|
2443
2376
|
}
|
|
2444
|
-
return /* @__PURE__ */ jsx("p", { ref, id: formMessageId, className: cn(
|
|
2377
|
+
return /* @__PURE__ */ jsx("p", { ref, id: formMessageId, className: cn(styles25["form-message"], className), ...props, children: body });
|
|
2445
2378
|
});
|
|
2446
2379
|
FormMessage.displayName = "FormMessage";
|
|
2447
2380
|
var DEFAULT_LOCALE = "en-US";
|
|
@@ -2527,8 +2460,8 @@ function DatePlaceholder({
|
|
|
2527
2460
|
className,
|
|
2528
2461
|
...props
|
|
2529
2462
|
}) {
|
|
2530
|
-
return /* @__PURE__ */ jsxs("span", { className: cn(
|
|
2531
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
2463
|
+
return /* @__PURE__ */ jsxs("span", { className: cn(styles26["format-date"], className), ...props, children: [
|
|
2464
|
+
/* @__PURE__ */ jsx("span", { className: styles26["visually-hidden"], children: label }),
|
|
2532
2465
|
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: NO_DATE_PLACEHOLDER })
|
|
2533
2466
|
] });
|
|
2534
2467
|
}
|
|
@@ -2544,12 +2477,12 @@ function FormatDate({
|
|
|
2544
2477
|
...props
|
|
2545
2478
|
}) {
|
|
2546
2479
|
const missing = isMissing(date);
|
|
2547
|
-
const parsed =
|
|
2548
|
-
const [now, setNow] =
|
|
2549
|
-
const [mounted, setMounted] =
|
|
2480
|
+
const parsed = React15.useMemo(() => isMissing(date) ? null : toDate(date), [date]);
|
|
2481
|
+
const [now, setNow] = React15.useState(() => /* @__PURE__ */ new Date());
|
|
2482
|
+
const [mounted, setMounted] = React15.useState(false);
|
|
2550
2483
|
const isAbsolute = displayAs === "absolute";
|
|
2551
|
-
|
|
2552
|
-
|
|
2484
|
+
React15.useEffect(() => setMounted(true), []);
|
|
2485
|
+
React15.useEffect(() => {
|
|
2553
2486
|
if (isAbsolute || !live) return;
|
|
2554
2487
|
const id = setInterval(() => setNow(/* @__PURE__ */ new Date()), LIVE_INTERVAL_MS);
|
|
2555
2488
|
return () => clearInterval(id);
|
|
@@ -2558,7 +2491,7 @@ function FormatDate({
|
|
|
2558
2491
|
return /* @__PURE__ */ jsx(DatePlaceholder, { label: "No date", className, ...props });
|
|
2559
2492
|
}
|
|
2560
2493
|
if (!parsed) {
|
|
2561
|
-
return /* @__PURE__ */ jsx("span", { className: cn(
|
|
2494
|
+
return /* @__PURE__ */ jsx("span", { className: cn(styles26["format-date"], className), ...props, children: "Invalid date" });
|
|
2562
2495
|
}
|
|
2563
2496
|
const machineValue = parsed.toISOString();
|
|
2564
2497
|
const absolute = formatAbsolute(
|
|
@@ -2568,14 +2501,14 @@ function FormatDate({
|
|
|
2568
2501
|
locale
|
|
2569
2502
|
);
|
|
2570
2503
|
if (isAbsolute) {
|
|
2571
|
-
return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(
|
|
2504
|
+
return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(styles26["format-date"], className), ...props, children: absolute });
|
|
2572
2505
|
}
|
|
2573
2506
|
const measured = !mounted ? absolute : displayAs === "relative" ? formatRelative(parsed, now, locale) : formatCountdown(parsed, now, locale);
|
|
2574
2507
|
if (measured === null) {
|
|
2575
2508
|
return /* @__PURE__ */ jsx(DatePlaceholder, { label: "Date has passed", className, ...props });
|
|
2576
2509
|
}
|
|
2577
2510
|
if (!tooltip) {
|
|
2578
|
-
return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(
|
|
2511
|
+
return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(styles26["format-date"], className), ...props, children: measured });
|
|
2579
2512
|
}
|
|
2580
2513
|
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
2581
2514
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
@@ -2583,7 +2516,7 @@ function FormatDate({
|
|
|
2583
2516
|
{
|
|
2584
2517
|
dateTime: machineValue,
|
|
2585
2518
|
tabIndex: 0,
|
|
2586
|
-
className: cn(
|
|
2519
|
+
className: cn(styles26["format-date"], styles26["format-date--interactive"], className),
|
|
2587
2520
|
...props,
|
|
2588
2521
|
children: measured
|
|
2589
2522
|
}
|
|
@@ -2594,12 +2527,12 @@ function FormatDate({
|
|
|
2594
2527
|
var Heading = forwardRef(
|
|
2595
2528
|
({ className, as, displayAs, children, ...props }, ref) => {
|
|
2596
2529
|
const displayClasses = {
|
|
2597
|
-
h1:
|
|
2598
|
-
h2:
|
|
2599
|
-
h3:
|
|
2600
|
-
h4:
|
|
2601
|
-
h5:
|
|
2602
|
-
h6:
|
|
2530
|
+
h1: styles27["h1"],
|
|
2531
|
+
h2: styles27["h2"],
|
|
2532
|
+
h3: styles27["h3"],
|
|
2533
|
+
h4: styles27["h4"],
|
|
2534
|
+
h5: styles27["h5"],
|
|
2535
|
+
h6: styles27["h6"]
|
|
2603
2536
|
};
|
|
2604
2537
|
const displayClass = displayClasses[displayAs] || displayClasses[as];
|
|
2605
2538
|
const HeadingTag = as;
|
|
@@ -2616,7 +2549,7 @@ var InfoCard = ({
|
|
|
2616
2549
|
onClick,
|
|
2617
2550
|
...props
|
|
2618
2551
|
}) => {
|
|
2619
|
-
return /* @__PURE__ */ jsx(Card, { className, onClick, elevation, ...props, children: /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className:
|
|
2552
|
+
return /* @__PURE__ */ jsx(Card, { className, onClick, elevation, ...props, children: /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: styles28["info-card-content"], children: [
|
|
2620
2553
|
/* @__PURE__ */ jsx(
|
|
2621
2554
|
Icon,
|
|
2622
2555
|
{
|
|
@@ -2626,9 +2559,9 @@ var InfoCard = ({
|
|
|
2626
2559
|
elevation: elevation === ELEVATION.SUNKEN ? ELEVATION.BASE : getRelativeElevation(elevation, -1)
|
|
2627
2560
|
}
|
|
2628
2561
|
),
|
|
2629
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
2630
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
2631
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
2562
|
+
/* @__PURE__ */ jsxs("div", { className: styles28["copy-container"], children: [
|
|
2563
|
+
/* @__PURE__ */ jsx("p", { className: styles28["label"], children: label }),
|
|
2564
|
+
/* @__PURE__ */ jsx("div", { className: styles28["description"], children: description })
|
|
2632
2565
|
] })
|
|
2633
2566
|
] }) }) });
|
|
2634
2567
|
};
|
|
@@ -2662,8 +2595,8 @@ var MotionCollapsibleContent = ({
|
|
|
2662
2595
|
onAnimationStart: () => setIsSettled(false),
|
|
2663
2596
|
onAnimationComplete: () => setIsSettled(isOpen),
|
|
2664
2597
|
className: cn(
|
|
2665
|
-
|
|
2666
|
-
isSettled &&
|
|
2598
|
+
styles29["motion-collapsible"],
|
|
2599
|
+
isSettled && styles29["motion-collapsible--settled"],
|
|
2667
2600
|
className
|
|
2668
2601
|
),
|
|
2669
2602
|
children: /* @__PURE__ */ jsx("div", { ref: contentRef, children })
|
|
@@ -2671,7 +2604,7 @@ var MotionCollapsibleContent = ({
|
|
|
2671
2604
|
"motion-content"
|
|
2672
2605
|
) });
|
|
2673
2606
|
};
|
|
2674
|
-
var Input =
|
|
2607
|
+
var Input = React15.forwardRef(
|
|
2675
2608
|
({
|
|
2676
2609
|
className,
|
|
2677
2610
|
containerClassName,
|
|
@@ -2684,7 +2617,7 @@ var Input = React16.forwardRef(
|
|
|
2684
2617
|
"aria-invalid": ariaInvalid,
|
|
2685
2618
|
...props
|
|
2686
2619
|
}, ref) => {
|
|
2687
|
-
const id =
|
|
2620
|
+
const id = React15.useId();
|
|
2688
2621
|
const helpTextId = `${id}-help-text`;
|
|
2689
2622
|
const errorTextId = `${id}-error-text`;
|
|
2690
2623
|
const errorList = Array.isArray(errorText) && errorText.every((message) => typeof message === "string") ? [...new Set(errorText.filter((message) => !!message))] : null;
|
|
@@ -2693,128 +2626,84 @@ var Input = React16.forwardRef(
|
|
|
2693
2626
|
const hasError = hasErrorText || isMarkedInvalid;
|
|
2694
2627
|
const showHelpText = !!helpText && !hasErrorText;
|
|
2695
2628
|
const describedBy = [ariaDescribedBy, showHelpText && helpTextId, hasErrorText && errorTextId].filter(Boolean).join(" ") || void 0;
|
|
2696
|
-
const errorIcon = /* @__PURE__ */ jsx(TriangleAlert, { className:
|
|
2697
|
-
const errorMessage = errorList && errorList.length > 1 ? /* @__PURE__ */ jsx("ul", { id: errorTextId, role: "alert", className:
|
|
2629
|
+
const errorIcon = /* @__PURE__ */ jsx(TriangleAlert, { className: styles30["input-error-icon"], "aria-hidden": "true" });
|
|
2630
|
+
const errorMessage = errorList && errorList.length > 1 ? /* @__PURE__ */ jsx("ul", { id: errorTextId, role: "alert", className: styles30["input-error-list"], children: errorList.map((message) => /* @__PURE__ */ jsxs("li", { className: styles30["input-error-text"], children: [
|
|
2698
2631
|
errorIcon,
|
|
2699
2632
|
/* @__PURE__ */ jsx("span", { children: message })
|
|
2700
|
-
] }, message)) }) : /* @__PURE__ */ jsxs("p", { id: errorTextId, role: "alert", className:
|
|
2633
|
+
] }, message)) }) : /* @__PURE__ */ jsxs("p", { id: errorTextId, role: "alert", className: styles30["input-error-text"], children: [
|
|
2701
2634
|
errorIcon,
|
|
2702
2635
|
/* @__PURE__ */ jsx("span", { children: errorList ? errorList[0] : errorText })
|
|
2703
2636
|
] });
|
|
2704
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
2637
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles30["input-container"], containerClassName), children: [
|
|
2705
2638
|
/* @__PURE__ */ jsxs(
|
|
2706
2639
|
"div",
|
|
2707
2640
|
{
|
|
2708
2641
|
className: cn(
|
|
2709
|
-
|
|
2710
|
-
hasError &&
|
|
2642
|
+
styles30["input-wrapper"],
|
|
2643
|
+
hasError && styles30["input-wrapper--error"],
|
|
2711
2644
|
className
|
|
2712
2645
|
),
|
|
2713
2646
|
children: [
|
|
2714
|
-
prefix && /* @__PURE__ */ jsx("span", { className:
|
|
2647
|
+
prefix && /* @__PURE__ */ jsx("span", { className: styles30["input-prefix"], children: prefix }),
|
|
2715
2648
|
/* @__PURE__ */ jsx(
|
|
2716
2649
|
"input",
|
|
2717
2650
|
{
|
|
2718
2651
|
type,
|
|
2719
|
-
className:
|
|
2652
|
+
className: styles30["input-element"],
|
|
2720
2653
|
ref,
|
|
2721
2654
|
"aria-invalid": isMarkedInvalid ? ariaInvalid : hasErrorText || void 0,
|
|
2722
2655
|
"aria-describedby": describedBy,
|
|
2723
2656
|
...props
|
|
2724
2657
|
}
|
|
2725
2658
|
),
|
|
2726
|
-
suffix && /* @__PURE__ */ jsx("span", { className:
|
|
2659
|
+
suffix && /* @__PURE__ */ jsx("span", { className: styles30["input-suffix"], children: suffix })
|
|
2727
2660
|
]
|
|
2728
2661
|
}
|
|
2729
2662
|
),
|
|
2730
2663
|
helpText ? hasErrorText && errorMessage : /* @__PURE__ */ jsx(MotionCollapsibleContent, { isOpen: hasErrorText, children: errorMessage }),
|
|
2731
|
-
showHelpText && /* @__PURE__ */ jsx("p", { id: helpTextId, className:
|
|
2664
|
+
showHelpText && /* @__PURE__ */ jsx("p", { id: helpTextId, className: styles30["input-help-text"], children: helpText })
|
|
2732
2665
|
] });
|
|
2733
2666
|
}
|
|
2734
2667
|
);
|
|
2735
2668
|
Input.displayName = "Input";
|
|
2736
|
-
var ListOrGridViewToggle = ({
|
|
2737
|
-
viewMode,
|
|
2738
|
-
onViewModeChange,
|
|
2739
|
-
order = ["grid", "list"],
|
|
2740
|
-
className
|
|
2741
|
-
}) => {
|
|
2742
|
-
const currentActiveIndex = order.indexOf(viewMode);
|
|
2743
|
-
const handleGridClick = () => {
|
|
2744
|
-
onViewModeChange("grid");
|
|
2745
|
-
};
|
|
2746
|
-
const handleListClick = () => {
|
|
2747
|
-
onViewModeChange("list");
|
|
2748
|
-
};
|
|
2749
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(styles32["list-or-grid-view-toggle"], className), children: [
|
|
2750
|
-
order.map((mode) => {
|
|
2751
|
-
const currentlyActive = mode === viewMode;
|
|
2752
|
-
const Icon3 = mode === "grid" ? Grid3X3 : List;
|
|
2753
|
-
return /* @__PURE__ */ jsx(
|
|
2754
|
-
"button",
|
|
2755
|
-
{
|
|
2756
|
-
type: "button",
|
|
2757
|
-
"aria-label": mode === "grid" ? "Grid view" : "List view",
|
|
2758
|
-
className: cn(
|
|
2759
|
-
styles32["icon-button"],
|
|
2760
|
-
currentlyActive ? styles32["icon-button--active"] : styles32["icon-button--inactive"]
|
|
2761
|
-
),
|
|
2762
|
-
onClick: mode === "grid" ? handleGridClick : handleListClick,
|
|
2763
|
-
children: /* @__PURE__ */ jsx(Icon3, { size: 16 })
|
|
2764
|
-
},
|
|
2765
|
-
mode
|
|
2766
|
-
);
|
|
2767
|
-
}),
|
|
2768
|
-
/* @__PURE__ */ jsx(
|
|
2769
|
-
"div",
|
|
2770
|
-
{
|
|
2771
|
-
className: styles32["active-button-indicator"],
|
|
2772
|
-
style: {
|
|
2773
|
-
transform: `translateX(${currentActiveIndex * 100}%)`,
|
|
2774
|
-
width: `${100 / order.length}%`
|
|
2775
|
-
}
|
|
2776
|
-
}
|
|
2777
|
-
)
|
|
2778
|
-
] });
|
|
2779
|
-
};
|
|
2780
2669
|
var Spinner = ({ size = "md", variant = "primary" }) => {
|
|
2781
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
2782
|
-
/* @__PURE__ */ jsx("div", { className: cn(
|
|
2783
|
-
/* @__PURE__ */ jsx("div", { className: cn(
|
|
2670
|
+
return /* @__PURE__ */ jsxs("div", { className: styles31["spinner-container"], children: [
|
|
2671
|
+
/* @__PURE__ */ jsx("div", { className: cn(styles31["spinner"], styles31[size], styles31[variant]) }),
|
|
2672
|
+
/* @__PURE__ */ jsx("div", { className: cn(styles31["spinner-background"], styles31[size]) })
|
|
2784
2673
|
] });
|
|
2785
2674
|
};
|
|
2786
2675
|
function LoadingOverlay({ isVisible, message = "Loading..." }) {
|
|
2787
2676
|
if (!isVisible) return null;
|
|
2788
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
2677
|
+
return /* @__PURE__ */ jsx("div", { className: styles32["loading-overlay"], children: /* @__PURE__ */ jsxs("div", { className: styles32["content"], children: [
|
|
2789
2678
|
/* @__PURE__ */ jsx(Spinner, { variant: "primary" }),
|
|
2790
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
2679
|
+
/* @__PURE__ */ jsx("p", { className: styles32["message"], children: message })
|
|
2791
2680
|
] }) });
|
|
2792
2681
|
}
|
|
2793
2682
|
var metricCardElevationVariants = generateElevationVariants(
|
|
2794
|
-
|
|
2683
|
+
styles33,
|
|
2795
2684
|
"metric-card",
|
|
2796
2685
|
ELEVATION.RAISED
|
|
2797
2686
|
);
|
|
2798
2687
|
var VARIANTS = {
|
|
2799
2688
|
default: {
|
|
2800
|
-
text:
|
|
2801
|
-
iconBg:
|
|
2689
|
+
text: styles33["text-default"],
|
|
2690
|
+
iconBg: styles33["bg-default"]
|
|
2802
2691
|
},
|
|
2803
2692
|
primary: {
|
|
2804
|
-
text:
|
|
2805
|
-
iconBg:
|
|
2693
|
+
text: styles33["text-primary"],
|
|
2694
|
+
iconBg: styles33["bg-primary"]
|
|
2806
2695
|
},
|
|
2807
2696
|
danger: {
|
|
2808
|
-
text:
|
|
2809
|
-
iconBg:
|
|
2697
|
+
text: styles33["text-danger"],
|
|
2698
|
+
iconBg: styles33["bg-danger"]
|
|
2810
2699
|
},
|
|
2811
2700
|
success: {
|
|
2812
|
-
text:
|
|
2813
|
-
iconBg:
|
|
2701
|
+
text: styles33["text-success"],
|
|
2702
|
+
iconBg: styles33["bg-success"]
|
|
2814
2703
|
},
|
|
2815
2704
|
warning: {
|
|
2816
|
-
text:
|
|
2817
|
-
iconBg:
|
|
2705
|
+
text: styles33["text-warning"],
|
|
2706
|
+
iconBg: styles33["bg-warning"]
|
|
2818
2707
|
}
|
|
2819
2708
|
};
|
|
2820
2709
|
var MetricCard = ({
|
|
@@ -2827,8 +2716,8 @@ var MetricCard = ({
|
|
|
2827
2716
|
}) => {
|
|
2828
2717
|
const variantStyles = VARIANTS[variant];
|
|
2829
2718
|
return /* @__PURE__ */ jsxs("div", { className: cn(metricCardElevationVariants({ elevation }), className), children: [
|
|
2830
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
2831
|
-
/* @__PURE__ */ jsx("p", { className: cn(
|
|
2719
|
+
/* @__PURE__ */ jsxs("div", { className: styles33["value-container"], children: [
|
|
2720
|
+
/* @__PURE__ */ jsx("p", { className: cn(styles33.value), children: value }),
|
|
2832
2721
|
icon && /* @__PURE__ */ jsx(
|
|
2833
2722
|
Icon,
|
|
2834
2723
|
{
|
|
@@ -2839,10 +2728,10 @@ var MetricCard = ({
|
|
|
2839
2728
|
}
|
|
2840
2729
|
)
|
|
2841
2730
|
] }),
|
|
2842
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
2731
|
+
/* @__PURE__ */ jsx("p", { className: styles33.label, children: label })
|
|
2843
2732
|
] });
|
|
2844
2733
|
};
|
|
2845
|
-
var NavDrillContext =
|
|
2734
|
+
var NavDrillContext = React15.createContext(null);
|
|
2846
2735
|
var useIsomorphicLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;
|
|
2847
2736
|
var MOTION = {
|
|
2848
2737
|
drill: {
|
|
@@ -2870,13 +2759,13 @@ var MOTION = {
|
|
|
2870
2759
|
};
|
|
2871
2760
|
var TIMING = { duration: 300, easing: "cubic-bezier(.2, .8, .2, 1)" };
|
|
2872
2761
|
var LEVEL = '[data-slot="nav-drill-level"]';
|
|
2873
|
-
var NavDrillBackContext =
|
|
2762
|
+
var NavDrillBackContext = React15.createContext(() => {
|
|
2874
2763
|
});
|
|
2875
2764
|
var LEAVING_DRILL_CONTEXT = { requestDrill: () => {
|
|
2876
2765
|
}, leaving: true };
|
|
2877
2766
|
var NO_BACK = () => {
|
|
2878
2767
|
};
|
|
2879
|
-
var NavDrill =
|
|
2768
|
+
var NavDrill = React15.forwardRef(
|
|
2880
2769
|
({
|
|
2881
2770
|
value: valueProp,
|
|
2882
2771
|
defaultValue,
|
|
@@ -2886,19 +2775,19 @@ var NavDrill = React16.forwardRef(
|
|
|
2886
2775
|
children,
|
|
2887
2776
|
...props
|
|
2888
2777
|
}, ref) => {
|
|
2889
|
-
const [ownView, setOwnView] =
|
|
2778
|
+
const [ownView, setOwnView] = React15.useState(defaultValue);
|
|
2890
2779
|
const view = valueProp ?? ownView;
|
|
2891
|
-
const [shownView, setShownView] =
|
|
2892
|
-
const [request, setRequest] =
|
|
2893
|
-
const [leaving, setLeaving] =
|
|
2894
|
-
const rootRef =
|
|
2895
|
-
const ghostRef =
|
|
2896
|
-
const running =
|
|
2897
|
-
const focusRequest =
|
|
2898
|
-
const observer =
|
|
2899
|
-
const previousView =
|
|
2900
|
-
const level =
|
|
2901
|
-
(child) =>
|
|
2780
|
+
const [shownView, setShownView] = React15.useState(view);
|
|
2781
|
+
const [request, setRequest] = React15.useState(null);
|
|
2782
|
+
const [leaving, setLeaving] = React15.useState(null);
|
|
2783
|
+
const rootRef = React15.useRef(null);
|
|
2784
|
+
const ghostRef = React15.useRef(null);
|
|
2785
|
+
const running = React15.useRef([]);
|
|
2786
|
+
const focusRequest = React15.useRef(null);
|
|
2787
|
+
const observer = React15.useRef(null);
|
|
2788
|
+
const previousView = React15.useRef(view);
|
|
2789
|
+
const level = React15.Children.toArray(children).find(
|
|
2790
|
+
(child) => React15.isValidElement(child) && child.props.value === view
|
|
2902
2791
|
) ?? null;
|
|
2903
2792
|
if (view !== shownView) {
|
|
2904
2793
|
setShownView(view);
|
|
@@ -2948,18 +2837,18 @@ var NavDrill = React16.forwardRef(
|
|
|
2948
2837
|
if (valueProp === void 0) setOwnView(target);
|
|
2949
2838
|
onValueChange?.(target, direction);
|
|
2950
2839
|
};
|
|
2951
|
-
const makeRequestRef =
|
|
2840
|
+
const makeRequestRef = React15.useRef(makeRequest);
|
|
2952
2841
|
useIsomorphicLayoutEffect(() => {
|
|
2953
2842
|
makeRequestRef.current = makeRequest;
|
|
2954
2843
|
});
|
|
2955
|
-
const drillContext =
|
|
2844
|
+
const drillContext = React15.useMemo(
|
|
2956
2845
|
() => ({
|
|
2957
2846
|
requestDrill: (target) => makeRequestRef.current(target, "drill"),
|
|
2958
2847
|
leaving: false
|
|
2959
2848
|
}),
|
|
2960
2849
|
[]
|
|
2961
2850
|
);
|
|
2962
|
-
const requestBack =
|
|
2851
|
+
const requestBack = React15.useCallback(
|
|
2963
2852
|
(parent) => makeRequestRef.current(parent, "back"),
|
|
2964
2853
|
[]
|
|
2965
2854
|
);
|
|
@@ -2998,10 +2887,10 @@ var NavDrill = React16.forwardRef(
|
|
|
2998
2887
|
}
|
|
2999
2888
|
);
|
|
3000
2889
|
}, [leaving]);
|
|
3001
|
-
|
|
2890
|
+
React15.useEffect(() => {
|
|
3002
2891
|
tryFocus();
|
|
3003
2892
|
});
|
|
3004
|
-
|
|
2893
|
+
React15.useEffect(() => {
|
|
3005
2894
|
const dropOutside = (event) => {
|
|
3006
2895
|
if (rootRef.current?.contains(event.target)) return;
|
|
3007
2896
|
focusRequest.current = null;
|
|
@@ -3016,7 +2905,7 @@ var NavDrill = React16.forwardRef(
|
|
|
3016
2905
|
observer.current?.disconnect();
|
|
3017
2906
|
};
|
|
3018
2907
|
}, []);
|
|
3019
|
-
const setRootRef =
|
|
2908
|
+
const setRootRef = React15.useCallback(
|
|
3020
2909
|
(node) => {
|
|
3021
2910
|
rootRef.current = node;
|
|
3022
2911
|
if (typeof ref === "function") ref(node);
|
|
@@ -3024,7 +2913,7 @@ var NavDrill = React16.forwardRef(
|
|
|
3024
2913
|
},
|
|
3025
2914
|
[ref]
|
|
3026
2915
|
);
|
|
3027
|
-
const setGhostRef =
|
|
2916
|
+
const setGhostRef = React15.useCallback((node) => {
|
|
3028
2917
|
ghostRef.current = node;
|
|
3029
2918
|
if (node) node.inert = true;
|
|
3030
2919
|
}, []);
|
|
@@ -3034,10 +2923,10 @@ var NavDrill = React16.forwardRef(
|
|
|
3034
2923
|
ref: setRootRef,
|
|
3035
2924
|
"data-slot": "nav-drill",
|
|
3036
2925
|
"data-motion": leaving?.direction,
|
|
3037
|
-
className: cn(
|
|
2926
|
+
className: cn(styles35["nav-drill"], className),
|
|
3038
2927
|
...props,
|
|
3039
2928
|
children: [
|
|
3040
|
-
/* @__PURE__ */ jsx(NavDrillContext.Provider, { value: drillContext, children: /* @__PURE__ */ jsx(NavDrillBackContext.Provider, { value: requestBack, children: level && /* @__PURE__ */ jsx(
|
|
2929
|
+
/* @__PURE__ */ jsx(NavDrillContext.Provider, { value: drillContext, children: /* @__PURE__ */ jsx(NavDrillBackContext.Provider, { value: requestBack, children: level && /* @__PURE__ */ jsx(React15.Fragment, { children: level }, view) }) }),
|
|
3041
2930
|
leaving && /* @__PURE__ */ jsx(
|
|
3042
2931
|
"div",
|
|
3043
2932
|
{
|
|
@@ -3045,7 +2934,7 @@ var NavDrill = React16.forwardRef(
|
|
|
3045
2934
|
"data-slot": "nav-drill-ghost",
|
|
3046
2935
|
"data-motion": leaving.direction,
|
|
3047
2936
|
"aria-hidden": "true",
|
|
3048
|
-
className:
|
|
2937
|
+
className: styles35["nav-drill-ghost"],
|
|
3049
2938
|
children: /* @__PURE__ */ jsx(NavDrillContext.Provider, { value: LEAVING_DRILL_CONTEXT, children: /* @__PURE__ */ jsx(NavDrillBackContext.Provider, { value: NO_BACK, children: leaving.element }) })
|
|
3050
2939
|
},
|
|
3051
2940
|
leaving.id
|
|
@@ -3056,10 +2945,10 @@ var NavDrill = React16.forwardRef(
|
|
|
3056
2945
|
}
|
|
3057
2946
|
);
|
|
3058
2947
|
NavDrill.displayName = "NavDrill";
|
|
3059
|
-
var NavDrillLevel =
|
|
2948
|
+
var NavDrillLevel = React15.forwardRef(
|
|
3060
2949
|
({ value, parent, label, backLabel, className, children, ...props }, ref) => {
|
|
3061
|
-
const requestBack =
|
|
3062
|
-
|
|
2950
|
+
const requestBack = React15.useContext(NavDrillBackContext);
|
|
2951
|
+
React15.useEffect(() => {
|
|
3063
2952
|
if (typeof process !== "undefined" && process.env.NODE_ENV !== "production" && parent !== void 0 && backLabel && label && !backLabel.startsWith(label)) {
|
|
3064
2953
|
console.warn(
|
|
3065
2954
|
`NavDrillLevel: backLabel "${backLabel}" must start with label "${label}", so voice users can say what they see (WCAG 2.5.3)`
|
|
@@ -3072,7 +2961,7 @@ var NavDrillLevel = React16.forwardRef(
|
|
|
3072
2961
|
ref,
|
|
3073
2962
|
"data-slot": "nav-drill-level",
|
|
3074
2963
|
"data-value": value,
|
|
3075
|
-
className: cn(
|
|
2964
|
+
className: cn(styles35["nav-drill-level"], className),
|
|
3076
2965
|
...props,
|
|
3077
2966
|
children: [
|
|
3078
2967
|
parent !== void 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -3082,15 +2971,15 @@ var NavDrillLevel = React16.forwardRef(
|
|
|
3082
2971
|
type: "button",
|
|
3083
2972
|
"data-slot": "nav-drill-back",
|
|
3084
2973
|
"aria-label": backLabel ?? `${label}, back`,
|
|
3085
|
-
className: cn(
|
|
2974
|
+
className: cn(styles35["nav-list-item"], styles35["nav-list-item--back"]),
|
|
3086
2975
|
onClick: () => requestBack(parent),
|
|
3087
2976
|
children: [
|
|
3088
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
3089
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
2977
|
+
/* @__PURE__ */ jsx("span", { className: styles35["nav-list-item-prefix"], "aria-hidden": "true", children: /* @__PURE__ */ jsx(ChevronLeft, {}) }),
|
|
2978
|
+
/* @__PURE__ */ jsx("span", { className: styles35["nav-list-item-label"], title: label, children: label })
|
|
3090
2979
|
]
|
|
3091
2980
|
}
|
|
3092
2981
|
),
|
|
3093
|
-
/* @__PURE__ */ jsx("hr", { className:
|
|
2982
|
+
/* @__PURE__ */ jsx("hr", { className: styles35["nav-drill-rule"] })
|
|
3094
2983
|
] }),
|
|
3095
2984
|
children
|
|
3096
2985
|
]
|
|
@@ -3099,31 +2988,31 @@ var NavDrillLevel = React16.forwardRef(
|
|
|
3099
2988
|
}
|
|
3100
2989
|
);
|
|
3101
2990
|
NavDrillLevel.displayName = "NavDrillLevel";
|
|
3102
|
-
var ListDepthContext =
|
|
3103
|
-
var NavList =
|
|
2991
|
+
var ListDepthContext = React15.createContext(0);
|
|
2992
|
+
var NavList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(styles35["nav-list"], className), ...props }));
|
|
3104
2993
|
NavList.displayName = "NavList";
|
|
3105
|
-
var NavListGroup =
|
|
2994
|
+
var NavListGroup = React15.forwardRef(
|
|
3106
2995
|
({ label, className, children, ...props }, ref) => {
|
|
3107
|
-
const labelId =
|
|
3108
|
-
const depth =
|
|
2996
|
+
const labelId = React15.useId();
|
|
2997
|
+
const depth = React15.useContext(ListDepthContext);
|
|
3109
2998
|
const group = /* @__PURE__ */ jsxs(
|
|
3110
2999
|
"div",
|
|
3111
3000
|
{
|
|
3112
3001
|
ref,
|
|
3113
3002
|
className: cn(
|
|
3114
|
-
|
|
3115
|
-
!label &&
|
|
3003
|
+
styles35["nav-list-group"],
|
|
3004
|
+
!label && styles35["nav-list-group--unlabelled"],
|
|
3116
3005
|
className
|
|
3117
3006
|
),
|
|
3118
3007
|
...props,
|
|
3119
3008
|
children: [
|
|
3120
|
-
label && /* @__PURE__ */ jsx("div", { id: labelId, className:
|
|
3009
|
+
label && /* @__PURE__ */ jsx("div", { id: labelId, className: styles35["nav-list-group-label"], children: label }),
|
|
3121
3010
|
/* @__PURE__ */ jsx(
|
|
3122
3011
|
"ul",
|
|
3123
3012
|
{
|
|
3124
3013
|
"data-depth": depth,
|
|
3125
3014
|
"aria-labelledby": label ? labelId : void 0,
|
|
3126
|
-
className:
|
|
3015
|
+
className: styles35["nav-list-items"],
|
|
3127
3016
|
children: /* @__PURE__ */ jsx(ListDepthContext.Provider, { value: depth + 1, children })
|
|
3128
3017
|
}
|
|
3129
3018
|
)
|
|
@@ -3134,7 +3023,7 @@ var NavListGroup = React16.forwardRef(
|
|
|
3134
3023
|
}
|
|
3135
3024
|
);
|
|
3136
3025
|
NavListGroup.displayName = "NavListGroup";
|
|
3137
|
-
var NavListItem =
|
|
3026
|
+
var NavListItem = React15.forwardRef(
|
|
3138
3027
|
({
|
|
3139
3028
|
label,
|
|
3140
3029
|
prefix,
|
|
@@ -3147,7 +3036,7 @@ var NavListItem = React16.forwardRef(
|
|
|
3147
3036
|
onClick,
|
|
3148
3037
|
...props
|
|
3149
3038
|
}, ref) => {
|
|
3150
|
-
const drillContext =
|
|
3039
|
+
const drillContext = React15.useContext(NavDrillContext);
|
|
3151
3040
|
const Comp = asChild ? Slot : props.href ? "a" : "button";
|
|
3152
3041
|
const leaving = drillContext?.leaving ?? false;
|
|
3153
3042
|
const handleClick = (event) => {
|
|
@@ -3166,49 +3055,49 @@ var NavListItem = React16.forwardRef(
|
|
|
3166
3055
|
"data-drill": drill,
|
|
3167
3056
|
"aria-current": current && !leaving ? "page" : void 0,
|
|
3168
3057
|
"data-current": current && leaving ? "page" : void 0,
|
|
3169
|
-
className: cn(
|
|
3058
|
+
className: cn(styles35["nav-list-item"], className),
|
|
3170
3059
|
onClick: handleClick,
|
|
3171
3060
|
...props,
|
|
3172
3061
|
children: [
|
|
3173
|
-
prefix && /* @__PURE__ */ jsx("span", { className:
|
|
3174
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
3062
|
+
prefix && /* @__PURE__ */ jsx("span", { className: styles35["nav-list-item-prefix"], "aria-hidden": "true", children: prefix }),
|
|
3063
|
+
/* @__PURE__ */ jsx("span", { className: styles35["nav-list-item-label"], title: label, children: label }),
|
|
3175
3064
|
/* @__PURE__ */ jsx(Slottable, { children }),
|
|
3176
|
-
suffix && /* @__PURE__ */ jsx("span", { className:
|
|
3177
|
-
drill && /* @__PURE__ */ jsx("span", { className:
|
|
3065
|
+
suffix && /* @__PURE__ */ jsx("span", { className: styles35["nav-list-item-suffix"], children: suffix }),
|
|
3066
|
+
drill && /* @__PURE__ */ jsx("span", { className: styles35["nav-list-item-caret"], "aria-hidden": "true", children: /* @__PURE__ */ jsx(ChevronRight, {}) })
|
|
3178
3067
|
]
|
|
3179
3068
|
}
|
|
3180
3069
|
) });
|
|
3181
3070
|
}
|
|
3182
3071
|
);
|
|
3183
3072
|
NavListItem.displayName = "NavListItem";
|
|
3184
|
-
var NavListSeparator =
|
|
3073
|
+
var NavListSeparator = React15.forwardRef(
|
|
3185
3074
|
({ className, ...props }, ref) => {
|
|
3186
|
-
const nested =
|
|
3075
|
+
const nested = React15.useContext(ListDepthContext) > 0;
|
|
3187
3076
|
const Comp = nested ? "li" : "hr";
|
|
3188
3077
|
return /* @__PURE__ */ jsx(
|
|
3189
3078
|
Comp,
|
|
3190
3079
|
{
|
|
3191
3080
|
ref,
|
|
3192
3081
|
role: nested ? "separator" : void 0,
|
|
3193
|
-
className: cn(
|
|
3082
|
+
className: cn(styles35["nav-list-separator"], className),
|
|
3194
3083
|
...props
|
|
3195
3084
|
}
|
|
3196
3085
|
);
|
|
3197
3086
|
}
|
|
3198
3087
|
);
|
|
3199
3088
|
NavListSeparator.displayName = "NavListSeparator";
|
|
3200
|
-
var NavPanel =
|
|
3201
|
-
({ header, className, children, ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, className: cn(
|
|
3202
|
-
header && /* @__PURE__ */ jsx("div", { className:
|
|
3089
|
+
var NavPanel = React15.forwardRef(
|
|
3090
|
+
({ header, className, children, ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, className: cn(styles40["nav-panel"], className), ...props, children: /* @__PURE__ */ jsxs("div", { className: styles40["nav-scroller"], "data-nav-scroller": "", children: [
|
|
3091
|
+
header && /* @__PURE__ */ jsx("div", { className: styles40["nav-panel-header"], children: header }),
|
|
3203
3092
|
children
|
|
3204
3093
|
] }) })
|
|
3205
3094
|
);
|
|
3206
3095
|
NavPanel.displayName = "NavPanel";
|
|
3207
|
-
var NavRail =
|
|
3208
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, className: cn(
|
|
3096
|
+
var NavRail = React15.forwardRef(
|
|
3097
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, className: cn(styles40["nav-rail"], className), ...props, children: /* @__PURE__ */ jsx("div", { className: styles40["nav-scroller"], children: /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsx("ul", { className: styles40["nav-rail-list"], children }) }) }) })
|
|
3209
3098
|
);
|
|
3210
3099
|
NavRail.displayName = "NavRail";
|
|
3211
|
-
var NavRailItem =
|
|
3100
|
+
var NavRailItem = React15.forwardRef(
|
|
3212
3101
|
({ icon, label, current = false, asChild = false, className, children, ...props }, ref) => {
|
|
3213
3102
|
const Comp = asChild ? Slot : "a";
|
|
3214
3103
|
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
@@ -3218,7 +3107,7 @@ var NavRailItem = React16.forwardRef(
|
|
|
3218
3107
|
ref,
|
|
3219
3108
|
"aria-label": label,
|
|
3220
3109
|
"aria-current": current ? "page" : void 0,
|
|
3221
|
-
className: cn(
|
|
3110
|
+
className: cn(styles40["nav-rail-item"], className),
|
|
3222
3111
|
...props,
|
|
3223
3112
|
children: [
|
|
3224
3113
|
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: icon }),
|
|
@@ -3238,8 +3127,8 @@ var SEARCH_INPUT_SELECTOR2 = "[data-select-search]";
|
|
|
3238
3127
|
var NAVIGABLE_OPTION_SELECTOR = '[role="option"]:not([data-disabled]):not([hidden])';
|
|
3239
3128
|
var MATCHING_OPTION_SELECTOR = `${NAVIGABLE_OPTION_SELECTOR}:not([data-persistent])`;
|
|
3240
3129
|
var RADIX_HANDLED_SEARCH_KEYS = ["ArrowDown", "ArrowUp", "Escape", "Tab"];
|
|
3241
|
-
var SelectSearchContext =
|
|
3242
|
-
var useSelectSearch = () =>
|
|
3130
|
+
var SelectSearchContext = React15.createContext(null);
|
|
3131
|
+
var useSelectSearch = () => React15.useContext(SelectSearchContext);
|
|
3243
3132
|
var useIsSearching2 = () => isSearchActive(useSelectSearch());
|
|
3244
3133
|
var useSelectSearchQuery = () => {
|
|
3245
3134
|
const ctx = useSelectSearch();
|
|
@@ -3248,7 +3137,7 @@ var useSelectSearchQuery = () => {
|
|
|
3248
3137
|
}
|
|
3249
3138
|
return useSearchQuery(ctx);
|
|
3250
3139
|
};
|
|
3251
|
-
var SelectGroupMatchContext =
|
|
3140
|
+
var SelectGroupMatchContext = React15.createContext(null);
|
|
3252
3141
|
var Select = ({
|
|
3253
3142
|
open,
|
|
3254
3143
|
onOpenChange,
|
|
@@ -3256,7 +3145,7 @@ var Select = ({
|
|
|
3256
3145
|
}) => {
|
|
3257
3146
|
const search = useListSearchState(open);
|
|
3258
3147
|
const { resetForOpen } = search;
|
|
3259
|
-
const handleOpenChange =
|
|
3148
|
+
const handleOpenChange = React15.useCallback(
|
|
3260
3149
|
(nextOpen) => {
|
|
3261
3150
|
if (nextOpen) resetForOpen();
|
|
3262
3151
|
onOpenChange?.(nextOpen);
|
|
@@ -3266,7 +3155,7 @@ var Select = ({
|
|
|
3266
3155
|
return /* @__PURE__ */ jsx(SelectSearchContext.Provider, { value: search, children: /* @__PURE__ */ jsx(SelectPrimitive.Root, { open, onOpenChange: handleOpenChange, ...props }) });
|
|
3267
3156
|
};
|
|
3268
3157
|
Select.displayName = "Select";
|
|
3269
|
-
var SelectGroup =
|
|
3158
|
+
var SelectGroup = React15.forwardRef(({ hidden, ...props }, ref) => {
|
|
3270
3159
|
const searching = useIsSearching2();
|
|
3271
3160
|
const registry = useMatchRegistry();
|
|
3272
3161
|
return /* @__PURE__ */ jsx(SelectGroupMatchContext.Provider, { value: registry, children: /* @__PURE__ */ jsx(
|
|
@@ -3280,18 +3169,18 @@ var SelectGroup = React16.forwardRef(({ hidden, ...props }, ref) => {
|
|
|
3280
3169
|
});
|
|
3281
3170
|
SelectGroup.displayName = SelectPrimitive.Group.displayName;
|
|
3282
3171
|
var SelectValue = SelectPrimitive.Value;
|
|
3283
|
-
var SelectTrigger =
|
|
3172
|
+
var SelectTrigger = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, { ref, className: cn(styles38["select-trigger"], className), ...props, children: [
|
|
3284
3173
|
children,
|
|
3285
|
-
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon2, { className: cn(
|
|
3174
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon2, { className: cn(styles38["select-icon"], styles38["select-icon--low-opacity"]) }) })
|
|
3286
3175
|
] }));
|
|
3287
3176
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
3288
3177
|
var SelectPortal = ({ children }) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { container: usePortalContainer(), children });
|
|
3289
3178
|
var selectContentElevationVariants = generateElevationVariants(
|
|
3290
|
-
|
|
3179
|
+
styles38,
|
|
3291
3180
|
"select-content",
|
|
3292
3181
|
ELEVATION.OVERLAY
|
|
3293
3182
|
);
|
|
3294
|
-
var SelectContent =
|
|
3183
|
+
var SelectContent = React15.forwardRef(
|
|
3295
3184
|
({
|
|
3296
3185
|
className,
|
|
3297
3186
|
children,
|
|
@@ -3309,13 +3198,13 @@ var SelectContent = React16.forwardRef(
|
|
|
3309
3198
|
const setListId = ctx?.setListId;
|
|
3310
3199
|
const searching = isSearchActive(ctx);
|
|
3311
3200
|
const resultCount = ctx?.matchCount ?? 0;
|
|
3312
|
-
const contentRef =
|
|
3201
|
+
const contentRef = React15.useRef(null);
|
|
3313
3202
|
const sideProps = useSearchSideLock(ctx, contentRef, {
|
|
3314
3203
|
side,
|
|
3315
3204
|
avoidCollisions,
|
|
3316
3205
|
enabled: position === "popper"
|
|
3317
3206
|
});
|
|
3318
|
-
const composedContentRef =
|
|
3207
|
+
const composedContentRef = React15.useCallback(
|
|
3319
3208
|
(node) => {
|
|
3320
3209
|
assignRefs(node, ref, contentRef);
|
|
3321
3210
|
setListId?.(node?.id || void 0);
|
|
@@ -3340,8 +3229,8 @@ var SelectContent = React16.forwardRef(
|
|
|
3340
3229
|
{
|
|
3341
3230
|
ref: composedContentRef,
|
|
3342
3231
|
className: cn(
|
|
3343
|
-
|
|
3344
|
-
position === "popper" &&
|
|
3232
|
+
styles38["select-content"],
|
|
3233
|
+
position === "popper" && styles38["select-content--popper"],
|
|
3345
3234
|
selectContentElevationVariants({ elevation }),
|
|
3346
3235
|
className
|
|
3347
3236
|
),
|
|
@@ -3359,13 +3248,13 @@ var SelectContent = React16.forwardRef(
|
|
|
3359
3248
|
},
|
|
3360
3249
|
...props,
|
|
3361
3250
|
children: [
|
|
3362
|
-
ctx?.enabled ? /* @__PURE__ */ jsx("div", { className:
|
|
3251
|
+
ctx?.enabled ? /* @__PURE__ */ jsx("div", { className: styles38["select-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
|
|
3363
3252
|
/* @__PURE__ */ jsx(
|
|
3364
3253
|
SelectPrimitive.Viewport,
|
|
3365
3254
|
{
|
|
3366
3255
|
className: cn(
|
|
3367
|
-
|
|
3368
|
-
position === "popper" &&
|
|
3256
|
+
styles38["select-viewport"],
|
|
3257
|
+
position === "popper" && styles38["select-viewport--popper"]
|
|
3369
3258
|
),
|
|
3370
3259
|
children
|
|
3371
3260
|
}
|
|
@@ -3376,7 +3265,7 @@ var SelectContent = React16.forwardRef(
|
|
|
3376
3265
|
}
|
|
3377
3266
|
);
|
|
3378
3267
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
3379
|
-
var SelectSearch =
|
|
3268
|
+
var SelectSearch = React15.forwardRef(
|
|
3380
3269
|
({
|
|
3381
3270
|
className,
|
|
3382
3271
|
placeholder = "Search...",
|
|
@@ -3392,15 +3281,15 @@ var SelectSearch = React16.forwardRef(
|
|
|
3392
3281
|
}
|
|
3393
3282
|
const { ref, isRendered } = useSearchInput(ctx, alwaysVisible, forwardedRef);
|
|
3394
3283
|
if (!isRendered) return null;
|
|
3395
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
3396
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className:
|
|
3284
|
+
return /* @__PURE__ */ jsxs("div", { className: styles38["select-search"], children: [
|
|
3285
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: styles38["select-search-icon"], children: icon ?? /* @__PURE__ */ jsx(SearchIcon3, { className: cn(styles38["select-icon"], styles38["select-icon--sm"]) }) }),
|
|
3397
3286
|
/* @__PURE__ */ jsx(
|
|
3398
3287
|
"input",
|
|
3399
3288
|
{
|
|
3400
3289
|
...props,
|
|
3401
3290
|
ref,
|
|
3402
3291
|
"data-select-search": "",
|
|
3403
|
-
className: cn(
|
|
3292
|
+
className: cn(styles38["select-search-input"], className),
|
|
3404
3293
|
value: ctx.query,
|
|
3405
3294
|
placeholder,
|
|
3406
3295
|
"aria-label": ariaLabel ?? placeholder,
|
|
@@ -3437,54 +3326,54 @@ var SelectEmpty = ({ className, children, ...props }) => {
|
|
|
3437
3326
|
...props,
|
|
3438
3327
|
role: "status",
|
|
3439
3328
|
"aria-live": "polite",
|
|
3440
|
-
className: isEmpty ? cn(
|
|
3329
|
+
className: isEmpty ? cn(styles38["select-empty"], className) : void 0,
|
|
3441
3330
|
children: isEmpty ? children : null
|
|
3442
3331
|
}
|
|
3443
3332
|
);
|
|
3444
3333
|
};
|
|
3445
3334
|
SelectEmpty.displayName = "SelectEmpty";
|
|
3446
|
-
var SelectLabel =
|
|
3335
|
+
var SelectLabel = React15.forwardRef(({ className, hidden, ...props }, ref) => {
|
|
3447
3336
|
const searching = useIsSearching2();
|
|
3448
3337
|
return /* @__PURE__ */ jsx(
|
|
3449
3338
|
SelectPrimitive.Label,
|
|
3450
3339
|
{
|
|
3451
3340
|
ref,
|
|
3452
|
-
className: cn(
|
|
3341
|
+
className: cn(styles38["select-label"], className),
|
|
3453
3342
|
...props,
|
|
3454
3343
|
hidden: hidden || searching || void 0
|
|
3455
3344
|
}
|
|
3456
3345
|
);
|
|
3457
3346
|
});
|
|
3458
3347
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
3459
|
-
var SelectItem =
|
|
3348
|
+
var SelectItem = React15.forwardRef(({ className, children, textValue, hidden, persistent, ...props }, ref) => {
|
|
3460
3349
|
const search = useSelectSearch();
|
|
3461
|
-
const group =
|
|
3350
|
+
const group = React15.useContext(SelectGroupMatchContext);
|
|
3462
3351
|
const matches = useFilterableItem(search, textValue, children, { group, persistent });
|
|
3463
3352
|
return /* @__PURE__ */ jsxs(
|
|
3464
3353
|
SelectPrimitive.Item,
|
|
3465
3354
|
{
|
|
3466
3355
|
ref,
|
|
3467
|
-
className: cn(
|
|
3356
|
+
className: cn(styles38["select-item"], className),
|
|
3468
3357
|
...props,
|
|
3469
3358
|
"data-persistent": persistent ? "" : void 0,
|
|
3470
3359
|
textValue,
|
|
3471
3360
|
hidden: hidden || !matches || void 0,
|
|
3472
3361
|
children: [
|
|
3473
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
3474
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
3362
|
+
/* @__PURE__ */ jsx("span", { className: styles38["select-item-indicator"], children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon3, { className: styles38["select-icon"] }) }) }),
|
|
3363
|
+
/* @__PURE__ */ jsx("span", { className: styles38["select-item-text"], children: /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children }) })
|
|
3475
3364
|
]
|
|
3476
3365
|
}
|
|
3477
3366
|
);
|
|
3478
3367
|
});
|
|
3479
3368
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
3480
|
-
var SelectSeparator =
|
|
3369
|
+
var SelectSeparator = React15.forwardRef(({ className, persistent, ...props }, ref) => {
|
|
3481
3370
|
const searching = useIsSearching2();
|
|
3482
3371
|
if (searching && !persistent) return null;
|
|
3483
3372
|
return /* @__PURE__ */ jsx(
|
|
3484
3373
|
SelectPrimitive.Separator,
|
|
3485
3374
|
{
|
|
3486
3375
|
ref,
|
|
3487
|
-
className: cn(
|
|
3376
|
+
className: cn(styles38["select-separator"], className),
|
|
3488
3377
|
...props
|
|
3489
3378
|
}
|
|
3490
3379
|
);
|
|
@@ -3497,24 +3386,24 @@ var blockClosedTypeahead = (event) => {
|
|
|
3497
3386
|
if (typed && !event.ctrlKey && !event.metaKey && !event.altKey) event.preventDefault();
|
|
3498
3387
|
};
|
|
3499
3388
|
function Skeleton({ className, ...props }) {
|
|
3500
|
-
return /* @__PURE__ */ jsx("div", { className: cn(
|
|
3389
|
+
return /* @__PURE__ */ jsx("div", { className: cn(styles39["skeleton"], className), ...props });
|
|
3501
3390
|
}
|
|
3502
|
-
var NavSwitcherSelect =
|
|
3391
|
+
var NavSwitcherSelect = React15.forwardRef(
|
|
3503
3392
|
({ label, noun, collection, options, value, onValueChange, onHighlight, onHighlightEnd, action }, ref) => {
|
|
3504
|
-
const labelId =
|
|
3505
|
-
const actionValue =
|
|
3506
|
-
const actionPending =
|
|
3393
|
+
const labelId = React15.useId();
|
|
3394
|
+
const actionValue = React15.useId();
|
|
3395
|
+
const actionPending = React15.useRef(false);
|
|
3507
3396
|
if (options.length <= 1 && !action) {
|
|
3508
|
-
return /* @__PURE__ */ jsx("h2", { className:
|
|
3397
|
+
return /* @__PURE__ */ jsx("h2", { className: styles40["nav-switcher-heading"], children: /* @__PURE__ */ jsx(
|
|
3509
3398
|
"span",
|
|
3510
3399
|
{
|
|
3511
|
-
className: cn(
|
|
3400
|
+
className: cn(styles40["nav-switcher-plain"], styles40["nav-switcher-name"]),
|
|
3512
3401
|
title: label,
|
|
3513
3402
|
children: label
|
|
3514
3403
|
}
|
|
3515
3404
|
) });
|
|
3516
3405
|
}
|
|
3517
|
-
return /* @__PURE__ */ jsx("h2", { "aria-labelledby": labelId, className:
|
|
3406
|
+
return /* @__PURE__ */ jsx("h2", { "aria-labelledby": labelId, className: styles40["nav-switcher-heading"], children: /* @__PURE__ */ jsxs(
|
|
3518
3407
|
Select,
|
|
3519
3408
|
{
|
|
3520
3409
|
value,
|
|
@@ -3528,26 +3417,26 @@ var NavSwitcherSelect = React16.forwardRef(
|
|
|
3528
3417
|
{
|
|
3529
3418
|
ref,
|
|
3530
3419
|
"aria-label": `${label}, switch ${noun}`,
|
|
3531
|
-
className:
|
|
3420
|
+
className: styles40["nav-switcher"],
|
|
3532
3421
|
onKeyDown: blockClosedTypeahead,
|
|
3533
3422
|
children: [
|
|
3534
3423
|
/* @__PURE__ */ jsx(
|
|
3535
3424
|
"span",
|
|
3536
3425
|
{
|
|
3537
3426
|
id: labelId,
|
|
3538
|
-
className: cn(
|
|
3427
|
+
className: cn(styles40["nav-switcher-label"], styles40["nav-switcher-name"]),
|
|
3539
3428
|
title: label,
|
|
3540
3429
|
children: label
|
|
3541
3430
|
}
|
|
3542
3431
|
),
|
|
3543
|
-
/* @__PURE__ */ jsx(ChevronsUpDown, { className:
|
|
3432
|
+
/* @__PURE__ */ jsx(ChevronsUpDown, { className: styles40["nav-switcher-icon"], "aria-hidden": "true" })
|
|
3544
3433
|
]
|
|
3545
3434
|
}
|
|
3546
3435
|
),
|
|
3547
3436
|
/* @__PURE__ */ jsxs(
|
|
3548
3437
|
SelectContent,
|
|
3549
3438
|
{
|
|
3550
|
-
className:
|
|
3439
|
+
className: styles40["nav-switcher-list"],
|
|
3551
3440
|
onCloseAutoFocus: () => {
|
|
3552
3441
|
if (!actionPending.current) return;
|
|
3553
3442
|
actionPending.current = false;
|
|
@@ -3575,11 +3464,11 @@ var NavSwitcherSelect = React16.forwardRef(
|
|
|
3575
3464
|
onPointerLeave: onHighlightEnd,
|
|
3576
3465
|
onFocus: () => onHighlight?.(option.value),
|
|
3577
3466
|
onBlur: onHighlightEnd,
|
|
3578
|
-
children: /* @__PURE__ */ jsx("span", { className:
|
|
3467
|
+
children: /* @__PURE__ */ jsx("span", { className: styles40["nav-switcher-option"], title: option.label, children: option.label })
|
|
3579
3468
|
},
|
|
3580
3469
|
option.value
|
|
3581
3470
|
)),
|
|
3582
|
-
action && /* @__PURE__ */ jsxs("div", { className:
|
|
3471
|
+
action && /* @__PURE__ */ jsxs("div", { className: styles40["nav-switcher-footer"], children: [
|
|
3583
3472
|
/* @__PURE__ */ jsx(SelectSeparator, { persistent: true }),
|
|
3584
3473
|
/* @__PURE__ */ jsx(
|
|
3585
3474
|
SelectItem,
|
|
@@ -3587,7 +3476,7 @@ var NavSwitcherSelect = React16.forwardRef(
|
|
|
3587
3476
|
value: actionValue,
|
|
3588
3477
|
textValue: action.label,
|
|
3589
3478
|
persistent: true,
|
|
3590
|
-
className:
|
|
3479
|
+
className: styles40["nav-switcher-action"],
|
|
3591
3480
|
children: /* @__PURE__ */ jsx("span", { className: buttonVariants({ variant: "link", size: "sm" }), children: action.label })
|
|
3592
3481
|
}
|
|
3593
3482
|
)
|
|
@@ -3601,15 +3490,15 @@ var NavSwitcherSelect = React16.forwardRef(
|
|
|
3601
3490
|
}
|
|
3602
3491
|
);
|
|
3603
3492
|
NavSwitcherSelect.displayName = "NavSwitcherSelect";
|
|
3604
|
-
var NavSwitcher =
|
|
3493
|
+
var NavSwitcher = React15.forwardRef(
|
|
3605
3494
|
(props, ref) => props.loading ? /* @__PURE__ */ jsxs(
|
|
3606
3495
|
"div",
|
|
3607
3496
|
{
|
|
3608
|
-
className: cn(
|
|
3497
|
+
className: cn(styles40["nav-switcher-heading"], styles40["nav-switcher-placeholder"]),
|
|
3609
3498
|
"aria-busy": "true",
|
|
3610
3499
|
children: [
|
|
3611
|
-
/* @__PURE__ */ jsx(Skeleton, { className:
|
|
3612
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
3500
|
+
/* @__PURE__ */ jsx(Skeleton, { className: styles40["nav-switcher-skeleton"] }),
|
|
3501
|
+
/* @__PURE__ */ jsx("span", { className: styles40["nav-switcher-loading-label"], children: "Loading" })
|
|
3613
3502
|
]
|
|
3614
3503
|
}
|
|
3615
3504
|
) : /* @__PURE__ */ jsx(NavSwitcherSelect, { ref, ...props })
|
|
@@ -3624,12 +3513,12 @@ var NotFound = ({
|
|
|
3624
3513
|
showHomeButton = true,
|
|
3625
3514
|
onHomeClick = () => window.location.href = "/"
|
|
3626
3515
|
}) => {
|
|
3627
|
-
return /* @__PURE__ */ jsx("div", { className: cn(
|
|
3628
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3629
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
3630
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
3631
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3632
|
-
/* @__PURE__ */ jsx(HomeIcon, { className:
|
|
3516
|
+
return /* @__PURE__ */ jsx("div", { className: cn(styles41["page-not-found"], className), children: /* @__PURE__ */ jsxs("div", { className: styles41["page-not-found-inner"], children: [
|
|
3517
|
+
/* @__PURE__ */ jsx("div", { className: styles41["icon-container"], children: /* @__PURE__ */ jsx(OctagonAlert, { className: styles41["alert-icon"] }) }),
|
|
3518
|
+
/* @__PURE__ */ jsx("h1", { className: styles41["title"], children: title }),
|
|
3519
|
+
/* @__PURE__ */ jsx("p", { className: styles41["description"], children: description }),
|
|
3520
|
+
/* @__PURE__ */ jsx("div", { className: styles41["actions"], children: showHomeButton && /* @__PURE__ */ jsxs(Button, { onClick: onHomeClick, variant: "secondary", children: [
|
|
3521
|
+
/* @__PURE__ */ jsx(HomeIcon, { className: styles41["home-icon"] }),
|
|
3633
3522
|
"Return Home"
|
|
3634
3523
|
] }) })
|
|
3635
3524
|
] }) });
|
|
@@ -3676,10 +3565,6 @@ var Pagination = ({
|
|
|
3676
3565
|
scrollTargetRef.current.scrollIntoView({ behavior: "smooth" });
|
|
3677
3566
|
}
|
|
3678
3567
|
}
|
|
3679
|
-
const viewport = document.querySelector("[data-radix-scroll-area-viewport]");
|
|
3680
|
-
if (viewport) {
|
|
3681
|
-
viewport.scrollTop = 0;
|
|
3682
|
-
}
|
|
3683
3568
|
}
|
|
3684
3569
|
};
|
|
3685
3570
|
const handleItemsPerPageChange = (value) => {
|
|
@@ -3732,8 +3617,8 @@ var Pagination = ({
|
|
|
3732
3617
|
}
|
|
3733
3618
|
return pageButtons;
|
|
3734
3619
|
};
|
|
3735
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
3736
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3620
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles42["pagination"], className), children: [
|
|
3621
|
+
/* @__PURE__ */ jsx("div", { className: styles42["info-container"], children: showInfo && hasFilteredItems && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3737
3622
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
3738
3623
|
"Showing ",
|
|
3739
3624
|
startItem,
|
|
@@ -3743,7 +3628,7 @@ var Pagination = ({
|
|
|
3743
3628
|
/* @__PURE__ */ jsx(
|
|
3744
3629
|
SelectTrigger,
|
|
3745
3630
|
{
|
|
3746
|
-
className:
|
|
3631
|
+
className: styles42["items-per-page-trigger"],
|
|
3747
3632
|
"aria-label": "Items per page",
|
|
3748
3633
|
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
3749
3634
|
}
|
|
@@ -3757,7 +3642,7 @@ var Pagination = ({
|
|
|
3757
3642
|
type
|
|
3758
3643
|
] })
|
|
3759
3644
|
] }) }),
|
|
3760
|
-
/* @__PURE__ */ jsxs("nav", { className:
|
|
3645
|
+
/* @__PURE__ */ jsxs("nav", { className: styles42["page-navigation-container"], "aria-label": "Pagination", children: [
|
|
3761
3646
|
showFirstLastButtons && /* @__PURE__ */ jsx(
|
|
3762
3647
|
Button,
|
|
3763
3648
|
{
|
|
@@ -3807,13 +3692,13 @@ var Pagination = ({
|
|
|
3807
3692
|
] });
|
|
3808
3693
|
};
|
|
3809
3694
|
var PanelLabel = ({ className, label }) => {
|
|
3810
|
-
return /* @__PURE__ */ jsx("div", { className: cn(
|
|
3695
|
+
return /* @__PURE__ */ jsx("div", { className: cn(styles43["panel-label"], className), children: label });
|
|
3811
3696
|
};
|
|
3812
|
-
var Progress =
|
|
3813
|
-
({ className, value, color = "primary", ...props }, ref) => /* @__PURE__ */ jsx(ProgressPrimitive.Root, { ref, className: cn(
|
|
3697
|
+
var Progress = React15.forwardRef(
|
|
3698
|
+
({ className, value, color = "primary", ...props }, ref) => /* @__PURE__ */ jsx(ProgressPrimitive.Root, { ref, className: cn(styles44["progress"], className), ...props, children: /* @__PURE__ */ jsx(
|
|
3814
3699
|
ProgressPrimitive.Indicator,
|
|
3815
3700
|
{
|
|
3816
|
-
className: cn(
|
|
3701
|
+
className: cn(styles44["progress-indicator"], styles44[color]),
|
|
3817
3702
|
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
3818
3703
|
}
|
|
3819
3704
|
) })
|
|
@@ -3835,29 +3720,29 @@ var STATUS_LABELS = {
|
|
|
3835
3720
|
info: "Information",
|
|
3836
3721
|
danger: "Error"
|
|
3837
3722
|
};
|
|
3838
|
-
var layoutVariants = cva(
|
|
3723
|
+
var layoutVariants = cva(styles45["progress-indicator"], {
|
|
3839
3724
|
variants: {
|
|
3840
3725
|
layout: {
|
|
3841
|
-
horizontal:
|
|
3842
|
-
vertical:
|
|
3726
|
+
horizontal: styles45["progress-indicator--horizontal"],
|
|
3727
|
+
vertical: styles45["progress-indicator--vertical"]
|
|
3843
3728
|
}
|
|
3844
3729
|
},
|
|
3845
3730
|
defaultVariants: {
|
|
3846
3731
|
layout: "horizontal"
|
|
3847
3732
|
}
|
|
3848
3733
|
});
|
|
3849
|
-
var markerVariants = cva(
|
|
3734
|
+
var markerVariants = cva(styles45["progress-indicator-step-marker"], {
|
|
3850
3735
|
variants: {
|
|
3851
3736
|
status: {
|
|
3852
3737
|
editing: "",
|
|
3853
3738
|
empty: "",
|
|
3854
3739
|
neutral: "",
|
|
3855
3740
|
info: "",
|
|
3856
|
-
success:
|
|
3857
|
-
danger:
|
|
3741
|
+
success: styles45["progress-indicator-step-marker--success"],
|
|
3742
|
+
danger: styles45["progress-indicator-step-marker--danger"]
|
|
3858
3743
|
},
|
|
3859
3744
|
active: {
|
|
3860
|
-
true:
|
|
3745
|
+
true: styles45["progress-indicator-step-marker--active"],
|
|
3861
3746
|
false: ""
|
|
3862
3747
|
}
|
|
3863
3748
|
},
|
|
@@ -3875,41 +3760,41 @@ function ProgressIndicator({
|
|
|
3875
3760
|
"aria-label": ariaLabel = "Progress",
|
|
3876
3761
|
...props
|
|
3877
3762
|
}) {
|
|
3878
|
-
const stepChildren =
|
|
3763
|
+
const stepChildren = React15.Children.toArray(children);
|
|
3879
3764
|
const stepCount = stepChildren.length;
|
|
3880
3765
|
const hasActive = currentIndex >= 0 && currentIndex < stepCount;
|
|
3881
3766
|
const segmentSize = stepCount > 0 ? 100 / stepCount : 0;
|
|
3882
3767
|
const isLastStep = currentIndex === stepCount - 1;
|
|
3883
3768
|
const fillSize = hasActive ? isLastStep ? 100 : (currentIndex + 0.5) * segmentSize : 0;
|
|
3884
3769
|
const steps = stepChildren.map((child, index) => {
|
|
3885
|
-
if (!
|
|
3770
|
+
if (!React15.isValidElement(child) || child.type !== ProgressIndicatorStep) {
|
|
3886
3771
|
throw new Error("ProgressIndicator only accepts <ProgressIndicatorStep> children.");
|
|
3887
3772
|
}
|
|
3888
|
-
return
|
|
3773
|
+
return React15.cloneElement(child, {
|
|
3889
3774
|
index,
|
|
3890
3775
|
currentIndex,
|
|
3891
3776
|
elevation
|
|
3892
3777
|
});
|
|
3893
3778
|
});
|
|
3894
3779
|
const interactive = stepChildren.some((child) => {
|
|
3895
|
-
if (!
|
|
3780
|
+
if (!React15.isValidElement(child)) return false;
|
|
3896
3781
|
const stepProps = child.props;
|
|
3897
3782
|
return Boolean(stepProps.href || stepProps.onClick);
|
|
3898
3783
|
});
|
|
3899
3784
|
const Container = interactive ? "nav" : "div";
|
|
3900
3785
|
return /* @__PURE__ */ jsxs(Container, { className: cn(layoutVariants({ layout }), className), ...props, children: [
|
|
3901
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3786
|
+
/* @__PURE__ */ jsx("div", { className: styles45["progress-indicator-track"], "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
3902
3787
|
Progress,
|
|
3903
3788
|
{
|
|
3904
3789
|
value: 100,
|
|
3905
3790
|
color: "primary",
|
|
3906
|
-
className:
|
|
3791
|
+
className: styles45["progress-indicator-rail"],
|
|
3907
3792
|
style: {
|
|
3908
3793
|
"--pi-fill-size": `${fillSize}%`
|
|
3909
3794
|
}
|
|
3910
3795
|
}
|
|
3911
3796
|
) }),
|
|
3912
|
-
/* @__PURE__ */ jsx("ul", { className:
|
|
3797
|
+
/* @__PURE__ */ jsx("ul", { className: styles45["progress-indicator-steps"], "aria-label": ariaLabel, children: steps })
|
|
3913
3798
|
] });
|
|
3914
3799
|
}
|
|
3915
3800
|
function ProgressIndicatorStep({
|
|
@@ -3941,15 +3826,15 @@ function ProgressIndicatorStep({
|
|
|
3941
3826
|
className: markerVariants({ status: effectiveStatus, active })
|
|
3942
3827
|
}
|
|
3943
3828
|
),
|
|
3944
|
-
/* @__PURE__ */ jsxs("span", { className:
|
|
3945
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
3946
|
-
description && /* @__PURE__ */ jsx("span", { className:
|
|
3947
|
-
statusLabel && /* @__PURE__ */ jsx("span", { className:
|
|
3829
|
+
/* @__PURE__ */ jsxs("span", { className: styles45["progress-indicator-step-text"], children: [
|
|
3830
|
+
/* @__PURE__ */ jsx("span", { className: styles45["progress-indicator-step-name"], children: name }),
|
|
3831
|
+
description && /* @__PURE__ */ jsx("span", { className: styles45["progress-indicator-step-description"], children: description }),
|
|
3832
|
+
statusLabel && /* @__PURE__ */ jsx("span", { className: styles45["progress-indicator-step-status"], children: statusLabel })
|
|
3948
3833
|
] })
|
|
3949
3834
|
] });
|
|
3950
3835
|
const innerClassName = cn(
|
|
3951
|
-
|
|
3952
|
-
interactive &&
|
|
3836
|
+
styles45["progress-indicator-step-inner"],
|
|
3837
|
+
interactive && styles45["progress-indicator-step-inner--interactive"]
|
|
3953
3838
|
);
|
|
3954
3839
|
let inner;
|
|
3955
3840
|
if (href) {
|
|
@@ -3972,8 +3857,8 @@ function ProgressIndicatorStep({
|
|
|
3972
3857
|
"li",
|
|
3973
3858
|
{
|
|
3974
3859
|
className: cn(
|
|
3975
|
-
|
|
3976
|
-
active &&
|
|
3860
|
+
styles45["progress-indicator-step"],
|
|
3861
|
+
active && styles45["progress-indicator-step--active"],
|
|
3977
3862
|
className
|
|
3978
3863
|
),
|
|
3979
3864
|
...props,
|
|
@@ -3997,16 +3882,16 @@ var RadialGraph = forwardRef(
|
|
|
3997
3882
|
"div",
|
|
3998
3883
|
{
|
|
3999
3884
|
ref,
|
|
4000
|
-
className: cn(
|
|
3885
|
+
className: cn(styles46["radial-graph"], styles46[graphSize], className),
|
|
4001
3886
|
...props,
|
|
4002
3887
|
children: [
|
|
4003
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3888
|
+
/* @__PURE__ */ jsx("div", { className: styles46["bars-container"], children: bars.map((_, i) => {
|
|
4004
3889
|
const isActive = i < percentage;
|
|
4005
3890
|
const delay = `${i * 10}ms`;
|
|
4006
3891
|
return /* @__PURE__ */ jsx(
|
|
4007
3892
|
"div",
|
|
4008
3893
|
{
|
|
4009
|
-
className:
|
|
3894
|
+
className: styles46["bar"],
|
|
4010
3895
|
style: {
|
|
4011
3896
|
transform: `rotate(${i * 3.6}deg)`
|
|
4012
3897
|
},
|
|
@@ -4014,22 +3899,22 @@ var RadialGraph = forwardRef(
|
|
|
4014
3899
|
"div",
|
|
4015
3900
|
{
|
|
4016
3901
|
className: cn(
|
|
4017
|
-
|
|
4018
|
-
isActive ?
|
|
3902
|
+
styles46["bar-inner"],
|
|
3903
|
+
isActive ? styles46["bar-inner--active"] : styles46["bar-inner--inactive"]
|
|
4019
3904
|
),
|
|
4020
3905
|
style: {
|
|
4021
3906
|
transitionDelay: delay,
|
|
4022
3907
|
animationDelay: delay
|
|
4023
3908
|
},
|
|
4024
3909
|
children: [
|
|
4025
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3910
|
+
/* @__PURE__ */ jsx("div", { className: styles46["bar-background"] }),
|
|
4026
3911
|
/* @__PURE__ */ jsx(
|
|
4027
3912
|
"div",
|
|
4028
3913
|
{
|
|
4029
3914
|
className: cn(
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
isActive ?
|
|
3915
|
+
styles46["bar-gradient"],
|
|
3916
|
+
styles46[`bar-gradient--${variant}`],
|
|
3917
|
+
isActive ? styles46["bar-gradient--active"] : styles46["bar-gradient--inactive"]
|
|
4033
3918
|
),
|
|
4034
3919
|
style: {
|
|
4035
3920
|
transitionDelay: delay,
|
|
@@ -4044,9 +3929,9 @@ var RadialGraph = forwardRef(
|
|
|
4044
3929
|
i
|
|
4045
3930
|
);
|
|
4046
3931
|
}) }),
|
|
4047
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
4048
|
-
/* @__PURE__ */ jsx("p", { className: cn(
|
|
4049
|
-
subLabel && /* @__PURE__ */ jsx("p", { className:
|
|
3932
|
+
/* @__PURE__ */ jsxs("div", { className: styles46["label-container"], children: [
|
|
3933
|
+
/* @__PURE__ */ jsx("p", { className: cn(styles46["label"], styles46[graphSize]), children: label }),
|
|
3934
|
+
subLabel && /* @__PURE__ */ jsx("p", { className: styles46["sub-label"], children: subLabel })
|
|
4050
3935
|
] })
|
|
4051
3936
|
]
|
|
4052
3937
|
}
|
|
@@ -4072,13 +3957,13 @@ var RadioDropdown = ({
|
|
|
4072
3957
|
);
|
|
4073
3958
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
4074
3959
|
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "tertiary", className, children: [
|
|
4075
|
-
/* @__PURE__ */ jsxs("span", { className:
|
|
3960
|
+
/* @__PURE__ */ jsxs("span", { className: styles47["selector-button-inner"], children: [
|
|
4076
3961
|
selectedOption?.label || label,
|
|
4077
3962
|
hasSelectedCount && /* @__PURE__ */ jsx(Badge, { variant: "primary", children: selectedOption.count })
|
|
4078
3963
|
] }),
|
|
4079
|
-
/* @__PURE__ */ jsx(ChevronDownIcon3, { className:
|
|
3964
|
+
/* @__PURE__ */ jsx(ChevronDownIcon3, { className: styles47["chevron-icon"] })
|
|
4080
3965
|
] }) }),
|
|
4081
|
-
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className:
|
|
3966
|
+
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: styles47["dropdown-menu-content"], children: [
|
|
4082
3967
|
searchable && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4083
3968
|
/* @__PURE__ */ jsx(DropdownMenuSearch, { placeholder: searchPlaceholder, "aria-label": label }),
|
|
4084
3969
|
/* @__PURE__ */ jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
|
|
@@ -4098,25 +3983,25 @@ var RadioDropdown = ({
|
|
|
4098
3983
|
] });
|
|
4099
3984
|
};
|
|
4100
3985
|
var CircleIcon2 = Circle;
|
|
4101
|
-
var RadioGroup2 =
|
|
3986
|
+
var RadioGroup2 = React15.forwardRef(({ className, ...props }, ref) => {
|
|
4102
3987
|
return /* @__PURE__ */ jsx(
|
|
4103
3988
|
RadioGroupPrimitive.Root,
|
|
4104
3989
|
{
|
|
4105
|
-
className: cn(
|
|
3990
|
+
className: cn(styles48["radio-group"], className),
|
|
4106
3991
|
...props,
|
|
4107
3992
|
ref
|
|
4108
3993
|
}
|
|
4109
3994
|
);
|
|
4110
3995
|
});
|
|
4111
3996
|
RadioGroup2.displayName = RadioGroupPrimitive.Root.displayName;
|
|
4112
|
-
var RadioGroupItem =
|
|
3997
|
+
var RadioGroupItem = React15.forwardRef(({ className, ...props }, ref) => {
|
|
4113
3998
|
return /* @__PURE__ */ jsx(
|
|
4114
3999
|
RadioGroupPrimitive.Item,
|
|
4115
4000
|
{
|
|
4116
4001
|
ref,
|
|
4117
|
-
className: cn(
|
|
4002
|
+
className: cn(styles48["radio-group-item"], className),
|
|
4118
4003
|
...props,
|
|
4119
|
-
children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className:
|
|
4004
|
+
children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: styles48["radio-group-item-indicator"], children: /* @__PURE__ */ jsx(CircleIcon2, { className: styles48["indicator-icon"] }) })
|
|
4120
4005
|
}
|
|
4121
4006
|
);
|
|
4122
4007
|
});
|
|
@@ -4149,160 +4034,138 @@ var getTypeConfig = (type) => {
|
|
|
4149
4034
|
case "agent":
|
|
4150
4035
|
return {
|
|
4151
4036
|
icon: "Bot",
|
|
4152
|
-
className:
|
|
4037
|
+
className: styles49["badge--agent"],
|
|
4153
4038
|
label: "Agent"
|
|
4154
4039
|
};
|
|
4155
4040
|
case "benchmark":
|
|
4156
4041
|
return {
|
|
4157
4042
|
icon: "LineChart",
|
|
4158
|
-
className:
|
|
4043
|
+
className: styles49["badge--benchmark"],
|
|
4159
4044
|
label: "Benchmark"
|
|
4160
4045
|
};
|
|
4161
4046
|
case "benchmark-result":
|
|
4162
4047
|
return {
|
|
4163
4048
|
icon: "FileChartLine",
|
|
4164
|
-
className:
|
|
4049
|
+
className: styles49["badge--benchmark-result"],
|
|
4165
4050
|
label: "Benchmark Result"
|
|
4166
4051
|
};
|
|
4167
4052
|
case "code":
|
|
4168
4053
|
return {
|
|
4169
4054
|
icon: "Code",
|
|
4170
|
-
className:
|
|
4055
|
+
className: styles49["badge--code"],
|
|
4171
4056
|
label: "Code"
|
|
4172
4057
|
};
|
|
4173
4058
|
case "binary":
|
|
4174
4059
|
return {
|
|
4175
4060
|
icon: "Binary",
|
|
4176
|
-
className:
|
|
4061
|
+
className: styles49["badge--binary"],
|
|
4177
4062
|
label: "Binary"
|
|
4178
4063
|
};
|
|
4179
4064
|
case "certificate":
|
|
4180
4065
|
return {
|
|
4181
4066
|
icon: "Award",
|
|
4182
|
-
className:
|
|
4067
|
+
className: styles49["badge--certificate"],
|
|
4183
4068
|
label: "Certificate"
|
|
4184
4069
|
};
|
|
4185
4070
|
case "compute":
|
|
4186
4071
|
return {
|
|
4187
4072
|
icon: "Cpu",
|
|
4188
|
-
className:
|
|
4073
|
+
className: styles49["badge--compute"],
|
|
4189
4074
|
label: "Compute"
|
|
4190
4075
|
};
|
|
4191
4076
|
case "credential":
|
|
4192
4077
|
return {
|
|
4193
4078
|
icon: "IdCardLanyard",
|
|
4194
|
-
className:
|
|
4079
|
+
className: styles49["badge--credential"],
|
|
4195
4080
|
label: "Credential"
|
|
4196
4081
|
};
|
|
4197
4082
|
case "database":
|
|
4198
4083
|
return {
|
|
4199
4084
|
icon: "Database",
|
|
4200
|
-
className:
|
|
4085
|
+
className: styles49["badge--database"],
|
|
4201
4086
|
label: "Database"
|
|
4202
4087
|
};
|
|
4203
4088
|
case "dataset":
|
|
4204
4089
|
return {
|
|
4205
4090
|
icon: "Table",
|
|
4206
|
-
className:
|
|
4091
|
+
className: styles49["badge--dataset"],
|
|
4207
4092
|
label: "Dataset"
|
|
4208
4093
|
};
|
|
4209
4094
|
case "document":
|
|
4210
4095
|
return {
|
|
4211
4096
|
icon: "FileText",
|
|
4212
|
-
className:
|
|
4097
|
+
className: styles49["badge--document"],
|
|
4213
4098
|
label: "Document"
|
|
4214
4099
|
};
|
|
4215
4100
|
case "skill":
|
|
4216
4101
|
return {
|
|
4217
4102
|
icon: "FileCog",
|
|
4218
|
-
className:
|
|
4103
|
+
className: styles49["badge--skill"],
|
|
4219
4104
|
label: "Skill"
|
|
4220
4105
|
};
|
|
4221
4106
|
case "media":
|
|
4222
4107
|
return {
|
|
4223
4108
|
icon: "FileImage",
|
|
4224
|
-
className:
|
|
4109
|
+
className: styles49["badge--media"],
|
|
4225
4110
|
label: "Media"
|
|
4226
4111
|
};
|
|
4227
4112
|
case "guardrail":
|
|
4228
4113
|
return {
|
|
4229
4114
|
icon: "Fence",
|
|
4230
|
-
className:
|
|
4115
|
+
className: styles49["badge--guardrail"],
|
|
4231
4116
|
label: "Guardrail"
|
|
4232
4117
|
};
|
|
4233
4118
|
case "model":
|
|
4234
4119
|
return {
|
|
4235
4120
|
icon: "Brain",
|
|
4236
|
-
className:
|
|
4121
|
+
className: styles49["badge--model"],
|
|
4237
4122
|
label: "Model"
|
|
4238
4123
|
};
|
|
4239
4124
|
case "prompt":
|
|
4240
4125
|
return {
|
|
4241
4126
|
icon: "MessageSquareText",
|
|
4242
|
-
className:
|
|
4127
|
+
className: styles49["badge--prompt"],
|
|
4243
4128
|
label: "Prompt"
|
|
4244
4129
|
};
|
|
4245
4130
|
case "system-prompt":
|
|
4246
4131
|
return {
|
|
4247
4132
|
icon: "MessageSquareCode",
|
|
4248
|
-
className:
|
|
4133
|
+
className: styles49["badge--system-prompt"],
|
|
4249
4134
|
label: "System Prompt"
|
|
4250
4135
|
};
|
|
4251
4136
|
case "reasoning":
|
|
4252
4137
|
return {
|
|
4253
4138
|
icon: "MessageSquareMore",
|
|
4254
|
-
className:
|
|
4139
|
+
className: styles49["badge--reasoning"],
|
|
4255
4140
|
label: "Reasoning"
|
|
4256
4141
|
};
|
|
4257
4142
|
case "token":
|
|
4258
4143
|
return {
|
|
4259
4144
|
icon: "Coins",
|
|
4260
|
-
className:
|
|
4145
|
+
className: styles49["badge--token"],
|
|
4261
4146
|
label: "Token"
|
|
4262
4147
|
};
|
|
4263
4148
|
case "tool":
|
|
4264
4149
|
return {
|
|
4265
4150
|
icon: "Wrench",
|
|
4266
|
-
className:
|
|
4151
|
+
className: styles49["badge--tool"],
|
|
4267
4152
|
label: "Tool"
|
|
4268
4153
|
};
|
|
4269
4154
|
case "config":
|
|
4270
4155
|
return {
|
|
4271
4156
|
icon: "Settings2",
|
|
4272
|
-
className:
|
|
4157
|
+
className: styles49["badge--config"],
|
|
4273
4158
|
label: "Configuration"
|
|
4274
4159
|
};
|
|
4275
4160
|
case "unknown":
|
|
4276
4161
|
default:
|
|
4277
4162
|
return {
|
|
4278
4163
|
icon: "Box",
|
|
4279
|
-
className:
|
|
4164
|
+
className: styles49["badge--unknown"],
|
|
4280
4165
|
label: "Unknown"
|
|
4281
4166
|
};
|
|
4282
4167
|
}
|
|
4283
4168
|
};
|
|
4284
|
-
var ScrollArea = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, { ref, className: cn(styles52["scroll-area"], className), ...props, children: [
|
|
4285
|
-
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, { className: styles52["scroll-area-viewport"], children }),
|
|
4286
|
-
/* @__PURE__ */ jsx(ScrollBar, {}),
|
|
4287
|
-
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
|
|
4288
|
-
] }));
|
|
4289
|
-
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
4290
|
-
var ScrollBar = React16.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4291
|
-
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
4292
|
-
{
|
|
4293
|
-
ref,
|
|
4294
|
-
orientation,
|
|
4295
|
-
className: cn(
|
|
4296
|
-
styles52["scroll-bar"],
|
|
4297
|
-
orientation === "vertical" && styles52["scroll-bar--vertical"],
|
|
4298
|
-
orientation === "horizontal" && styles52["scroll-bar--horizontal"],
|
|
4299
|
-
className
|
|
4300
|
-
),
|
|
4301
|
-
...props,
|
|
4302
|
-
children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: styles52["scroll-area-thumb"] })
|
|
4303
|
-
}
|
|
4304
|
-
));
|
|
4305
|
-
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
4306
4169
|
var SearchIcon4 = Search;
|
|
4307
4170
|
var SearchBar = ({
|
|
4308
4171
|
searchQuery,
|
|
@@ -4316,20 +4179,20 @@ var SearchBar = ({
|
|
|
4316
4179
|
const handleClear = () => {
|
|
4317
4180
|
setSearchQuery("");
|
|
4318
4181
|
};
|
|
4319
|
-
return /* @__PURE__ */ jsx("search", { className: cn(
|
|
4182
|
+
return /* @__PURE__ */ jsx("search", { className: cn(styles50["search-bar"], className), children: /* @__PURE__ */ jsx(
|
|
4320
4183
|
Input,
|
|
4321
4184
|
{
|
|
4322
4185
|
placeholder,
|
|
4323
4186
|
value: searchQuery,
|
|
4324
4187
|
onChange: handleChange,
|
|
4325
|
-
className:
|
|
4326
|
-
prefix: /* @__PURE__ */ jsx(SearchIcon4, { className:
|
|
4188
|
+
className: styles50["input"],
|
|
4189
|
+
prefix: /* @__PURE__ */ jsx(SearchIcon4, { className: styles50["search-icon"] }),
|
|
4327
4190
|
suffix: searchQuery && /* @__PURE__ */ jsx(
|
|
4328
4191
|
IconButton,
|
|
4329
4192
|
{
|
|
4330
4193
|
name: "X",
|
|
4331
4194
|
onClick: handleClear,
|
|
4332
|
-
className:
|
|
4195
|
+
className: styles50["clear-button"],
|
|
4333
4196
|
label: "Clear search"
|
|
4334
4197
|
}
|
|
4335
4198
|
)
|
|
@@ -4343,10 +4206,10 @@ var SectionHeading = ({
|
|
|
4343
4206
|
className
|
|
4344
4207
|
}) => {
|
|
4345
4208
|
const hasRightContent = !!renderRightContent;
|
|
4346
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(hasRightContent &&
|
|
4347
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
4348
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
4349
|
-
description && /* @__PURE__ */ jsx("p", { className:
|
|
4209
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(hasRightContent && styles51["section-heading--right-content"], className), children: [
|
|
4210
|
+
/* @__PURE__ */ jsxs("div", { className: styles51["content"], children: [
|
|
4211
|
+
/* @__PURE__ */ jsx("h3", { className: styles51["heading"], children: heading }),
|
|
4212
|
+
description && /* @__PURE__ */ jsx("p", { className: styles51["description"], children: description })
|
|
4350
4213
|
] }),
|
|
4351
4214
|
hasRightContent && renderRightContent()
|
|
4352
4215
|
] });
|
|
@@ -4400,9 +4263,9 @@ var SegmentedControls = ({
|
|
|
4400
4263
|
"aria-label": ariaLabel,
|
|
4401
4264
|
"aria-labelledby": ariaLabelledBy,
|
|
4402
4265
|
className: cn(
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4266
|
+
styles52["segmented-controls"],
|
|
4267
|
+
styles52[`size--${size}`],
|
|
4268
|
+
styles52[`variant--${activeVariant}`],
|
|
4406
4269
|
className
|
|
4407
4270
|
),
|
|
4408
4271
|
children: [
|
|
@@ -4421,15 +4284,15 @@ var SegmentedControls = ({
|
|
|
4421
4284
|
"aria-label": isIconOnly ? option.label : void 0,
|
|
4422
4285
|
title: isIconOnly ? option.label : void 0,
|
|
4423
4286
|
className: cn(
|
|
4424
|
-
|
|
4425
|
-
isIconOnly &&
|
|
4426
|
-
currentlyActive ?
|
|
4287
|
+
styles52["segment"],
|
|
4288
|
+
isIconOnly && styles52["segment--icon-only"],
|
|
4289
|
+
currentlyActive ? styles52["segment--active"] : styles52["segment--inactive"]
|
|
4427
4290
|
),
|
|
4428
4291
|
onClick: () => onValueChange(option.value),
|
|
4429
4292
|
children: [
|
|
4430
|
-
showIcon && /* @__PURE__ */ jsx(Icon, { icon: option.icon, size: "xs", className:
|
|
4293
|
+
showIcon && /* @__PURE__ */ jsx(Icon, { icon: option.icon, size: "xs", className: styles52["segment-icon"] }),
|
|
4431
4294
|
showLabel && /* @__PURE__ */ jsx("span", { children: option.label }),
|
|
4432
|
-
!isIconOnly && option.suffix && /* @__PURE__ */ jsx("span", { className:
|
|
4295
|
+
!isIconOnly && option.suffix && /* @__PURE__ */ jsx("span", { className: styles52["segment-suffix"], children: option.suffix })
|
|
4433
4296
|
]
|
|
4434
4297
|
},
|
|
4435
4298
|
option.value
|
|
@@ -4439,8 +4302,8 @@ var SegmentedControls = ({
|
|
|
4439
4302
|
"div",
|
|
4440
4303
|
{
|
|
4441
4304
|
className: cn(
|
|
4442
|
-
|
|
4443
|
-
animateIndicator &&
|
|
4305
|
+
styles52["active-segment-indicator"],
|
|
4306
|
+
animateIndicator && styles52["active-segment-indicator--animated"]
|
|
4444
4307
|
),
|
|
4445
4308
|
style: {
|
|
4446
4309
|
transform: `translateX(${indicator.left}px)`,
|
|
@@ -4452,15 +4315,15 @@ var SegmentedControls = ({
|
|
|
4452
4315
|
}
|
|
4453
4316
|
);
|
|
4454
4317
|
};
|
|
4455
|
-
var Separator3 =
|
|
4318
|
+
var Separator3 = React15.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4456
4319
|
SeparatorPrimitive.Root,
|
|
4457
4320
|
{
|
|
4458
4321
|
ref,
|
|
4459
4322
|
decorative,
|
|
4460
4323
|
orientation,
|
|
4461
4324
|
className: cn(
|
|
4462
|
-
|
|
4463
|
-
orientation === "horizontal" ?
|
|
4325
|
+
styles53["separator"],
|
|
4326
|
+
orientation === "horizontal" ? styles53["separator--horizontal"] : styles53["separator--vertical"],
|
|
4464
4327
|
className
|
|
4465
4328
|
),
|
|
4466
4329
|
...props
|
|
@@ -4471,57 +4334,57 @@ var Sheet = DialogPrimitive.Root;
|
|
|
4471
4334
|
var SheetTrigger = DialogPrimitive.Trigger;
|
|
4472
4335
|
var SheetClose = DialogPrimitive.Close;
|
|
4473
4336
|
var SheetPortal = ({ children }) => /* @__PURE__ */ jsx(DialogPrimitive.Portal, { container: usePortalContainer(), children });
|
|
4474
|
-
var SheetOverlay =
|
|
4337
|
+
var SheetOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { className: cn(styles54["sheet-overlay"], className), ...props, ref }));
|
|
4475
4338
|
SheetOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
4476
|
-
var sheetVariants = cva(
|
|
4339
|
+
var sheetVariants = cva(styles54["sheet-content"], {
|
|
4477
4340
|
variants: {
|
|
4478
4341
|
side: {
|
|
4479
|
-
top:
|
|
4480
|
-
bottom:
|
|
4481
|
-
left:
|
|
4482
|
-
right:
|
|
4342
|
+
top: styles54["sheet-content--side-top"],
|
|
4343
|
+
bottom: styles54["sheet-content--side-bottom"],
|
|
4344
|
+
left: styles54["sheet-content--side-left"],
|
|
4345
|
+
right: styles54["sheet-content--side-right"]
|
|
4483
4346
|
}
|
|
4484
4347
|
},
|
|
4485
4348
|
defaultVariants: {
|
|
4486
4349
|
side: "right"
|
|
4487
4350
|
}
|
|
4488
4351
|
});
|
|
4489
|
-
var SheetContainer =
|
|
4352
|
+
var SheetContainer = React15.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
4490
4353
|
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
4491
4354
|
/* @__PURE__ */ jsx(DialogPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children })
|
|
4492
4355
|
] }));
|
|
4493
4356
|
SheetContainer.displayName = DialogPrimitive.Content.displayName;
|
|
4494
|
-
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
4357
|
+
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles54["sheet-header-icon"], className), ...props });
|
|
4495
4358
|
SheetHeaderIcon.displayName = "SheetHeaderIcon";
|
|
4496
4359
|
var SheetHeader = ({ className, children, ...props }) => {
|
|
4497
|
-
const childrenArray =
|
|
4360
|
+
const childrenArray = React15.Children.toArray(children);
|
|
4498
4361
|
const icon = childrenArray.find(
|
|
4499
|
-
(child) =>
|
|
4362
|
+
(child) => React15.isValidElement(child) && child.type === SheetHeaderIcon
|
|
4500
4363
|
);
|
|
4501
4364
|
const otherChildren = childrenArray.filter(
|
|
4502
|
-
(child) => !(
|
|
4365
|
+
(child) => !(React15.isValidElement(child) && child.type === SheetHeaderIcon)
|
|
4503
4366
|
);
|
|
4504
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
4367
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles54["sheet-header"], className), ...props, children: [
|
|
4505
4368
|
icon,
|
|
4506
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
4507
|
-
/* @__PURE__ */ jsx(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { name: "X", label: "Close", className:
|
|
4369
|
+
/* @__PURE__ */ jsx("div", { className: styles54["sheet-header-text-content"], children: otherChildren }),
|
|
4370
|
+
/* @__PURE__ */ jsx(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { name: "X", label: "Close", className: styles54["sheet-close"] }) })
|
|
4508
4371
|
] });
|
|
4509
4372
|
};
|
|
4510
4373
|
SheetHeader.displayName = "SheetHeader";
|
|
4511
|
-
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
4374
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles54["sheet-footer"], className), ...props });
|
|
4512
4375
|
SheetFooter.displayName = "SheetFooter";
|
|
4513
|
-
var SheetTitle =
|
|
4376
|
+
var SheetTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, { ref, className: cn(styles54["sheet-title"], className), ...props }));
|
|
4514
4377
|
SheetTitle.displayName = DialogPrimitive.Title.displayName;
|
|
4515
|
-
var SheetDescription =
|
|
4378
|
+
var SheetDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4516
4379
|
DialogPrimitive.Description,
|
|
4517
4380
|
{
|
|
4518
4381
|
ref,
|
|
4519
|
-
className: cn(
|
|
4382
|
+
className: cn(styles54["sheet-description"], className),
|
|
4520
4383
|
...props
|
|
4521
4384
|
}
|
|
4522
4385
|
));
|
|
4523
4386
|
SheetDescription.displayName = DialogPrimitive.Description.displayName;
|
|
4524
|
-
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
4387
|
+
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles54["sheet-body"], className), ...props });
|
|
4525
4388
|
SheetContent.displayName = "SheetContent";
|
|
4526
4389
|
var ArrowDownIcon = ArrowDown;
|
|
4527
4390
|
var ArrowUpIcon = ArrowUp;
|
|
@@ -4539,10 +4402,10 @@ function SortButton({
|
|
|
4539
4402
|
const handleClick = () => {
|
|
4540
4403
|
onSort(field);
|
|
4541
4404
|
};
|
|
4542
|
-
return /* @__PURE__ */ jsxs("button", { type: "button", onClick: handleClick, className:
|
|
4405
|
+
return /* @__PURE__ */ jsxs("button", { type: "button", onClick: handleClick, className: styles55["sort-button"], children: [
|
|
4543
4406
|
icon,
|
|
4544
4407
|
children,
|
|
4545
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
4408
|
+
/* @__PURE__ */ jsx("div", { className: styles55["arrow-container"], children: isActive ? isAscending ? /* @__PURE__ */ jsx(ArrowUpIcon, {}) : /* @__PURE__ */ jsx(ArrowDownIcon, {}) : /* @__PURE__ */ jsx(ArrowUpDownIcon, { className: styles55["arrow-up-down-icon"] }) })
|
|
4546
4409
|
] });
|
|
4547
4410
|
}
|
|
4548
4411
|
var ChevronDownIcon4 = ChevronDown;
|
|
@@ -4587,9 +4450,9 @@ function SortSelector({
|
|
|
4587
4450
|
setCurrentPage?.(1);
|
|
4588
4451
|
};
|
|
4589
4452
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
4590
|
-
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "tertiary", className: cn(
|
|
4453
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "tertiary", className: cn(styles56["sort-selector-trigger"], className), children: [
|
|
4591
4454
|
/* @__PURE__ */ jsx("span", { children: currentLabel }),
|
|
4592
|
-
/* @__PURE__ */ jsx(ChevronDownIcon4, { className:
|
|
4455
|
+
/* @__PURE__ */ jsx(ChevronDownIcon4, { className: styles56["chevron-down-icon"] })
|
|
4593
4456
|
] }) }),
|
|
4594
4457
|
/* @__PURE__ */ jsxs(
|
|
4595
4458
|
DropdownMenuContent,
|
|
@@ -4616,55 +4479,55 @@ function SortSelector({
|
|
|
4616
4479
|
)
|
|
4617
4480
|
] });
|
|
4618
4481
|
}
|
|
4619
|
-
var Switch =
|
|
4482
|
+
var Switch = React15.forwardRef(
|
|
4620
4483
|
({ className, size = "md", variant = "default", thumbIcon, ...props }, ref) => {
|
|
4621
4484
|
const iconSize = size === "sm" ? "xs" : size === "md" ? "sm" : "md";
|
|
4622
4485
|
return /* @__PURE__ */ jsx(
|
|
4623
4486
|
SwitchPrimitives.Root,
|
|
4624
4487
|
{
|
|
4625
|
-
className: cn(
|
|
4488
|
+
className: cn(styles57["switch"], styles57[size], styles57[variant], className),
|
|
4626
4489
|
...props,
|
|
4627
4490
|
ref,
|
|
4628
|
-
children: /* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: cn(
|
|
4491
|
+
children: /* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: cn(styles57["thumb"], styles57[size]), children: thumbIcon && /* @__PURE__ */ jsx(Icon, { icon: thumbIcon, className: styles57["thumb-icon"], size: iconSize }) })
|
|
4629
4492
|
}
|
|
4630
4493
|
);
|
|
4631
4494
|
}
|
|
4632
4495
|
);
|
|
4633
4496
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
4634
|
-
var tableElevationVariants = generateElevationVariants(
|
|
4635
|
-
var TableContainer =
|
|
4497
|
+
var tableElevationVariants = generateElevationVariants(styles58, "table", ELEVATION.RAISED);
|
|
4498
|
+
var TableContainer = React15.forwardRef(({ className, style, elevation = ELEVATION.RAISED, border, columns, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4636
4499
|
"div",
|
|
4637
4500
|
{
|
|
4638
4501
|
className: cn(
|
|
4639
|
-
|
|
4502
|
+
styles58["table"],
|
|
4640
4503
|
tableElevationVariants({ elevation }),
|
|
4641
|
-
border &&
|
|
4504
|
+
border && styles58["table-border"],
|
|
4642
4505
|
className
|
|
4643
4506
|
),
|
|
4644
4507
|
style: columns ? { ...style, "--table-columns": columns } : style,
|
|
4645
|
-
children: /* @__PURE__ */ jsx("table", { ref, className:
|
|
4508
|
+
children: /* @__PURE__ */ jsx("table", { ref, className: styles58["table-inner"], ...props })
|
|
4646
4509
|
}
|
|
4647
4510
|
));
|
|
4648
4511
|
TableContainer.displayName = "Table";
|
|
4649
|
-
var TableHeader =
|
|
4512
|
+
var TableHeader = React15.forwardRef(({ className, sticky = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4650
4513
|
"thead",
|
|
4651
4514
|
{
|
|
4652
4515
|
ref,
|
|
4653
4516
|
className: cn(
|
|
4654
|
-
|
|
4655
|
-
sticky === "container" &&
|
|
4656
|
-
sticky === "page" &&
|
|
4517
|
+
styles58["table-header"],
|
|
4518
|
+
sticky === "container" && styles58["table-header--sticky-container"],
|
|
4519
|
+
sticky === "page" && styles58["table-header--sticky-page"],
|
|
4657
4520
|
className
|
|
4658
4521
|
),
|
|
4659
4522
|
...props
|
|
4660
4523
|
}
|
|
4661
4524
|
));
|
|
4662
4525
|
TableHeader.displayName = "TableHeader";
|
|
4663
|
-
var TableBody =
|
|
4526
|
+
var TableBody = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn(styles58["table-body"], className), ...props }));
|
|
4664
4527
|
TableBody.displayName = "TableBody";
|
|
4665
|
-
var TableFooter =
|
|
4528
|
+
var TableFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tfoot", { ref, className: cn(styles58["table-footer"], className), ...props }));
|
|
4666
4529
|
TableFooter.displayName = "TableFooter";
|
|
4667
|
-
var TableRow =
|
|
4530
|
+
var TableRow = React15.forwardRef(
|
|
4668
4531
|
({ className, clickable, href, hrefLabel = "View details", children, onClick, ...props }, ref) => {
|
|
4669
4532
|
const isClickable = clickable || !!href;
|
|
4670
4533
|
const handleClick = (e) => {
|
|
@@ -4679,15 +4542,15 @@ var TableRow = React16.forwardRef(
|
|
|
4679
4542
|
{
|
|
4680
4543
|
ref,
|
|
4681
4544
|
className: cn(
|
|
4682
|
-
|
|
4683
|
-
isClickable &&
|
|
4684
|
-
href &&
|
|
4545
|
+
styles58["table-row"],
|
|
4546
|
+
isClickable && styles58["table-row--clickable"],
|
|
4547
|
+
href && styles58["table-row--linked"],
|
|
4685
4548
|
className
|
|
4686
4549
|
),
|
|
4687
4550
|
onClick: onClick ? handleClick : void 0,
|
|
4688
4551
|
...props,
|
|
4689
4552
|
children: [
|
|
4690
|
-
href && /* @__PURE__ */ jsx("a", { href, className:
|
|
4553
|
+
href && /* @__PURE__ */ jsx("a", { href, className: styles58["table-row-link"], "data-table-row-link": true, children: /* @__PURE__ */ jsx("span", { className: styles58["table-row-link-label"], children: hrefLabel }) }),
|
|
4691
4554
|
children
|
|
4692
4555
|
]
|
|
4693
4556
|
}
|
|
@@ -4695,18 +4558,18 @@ var TableRow = React16.forwardRef(
|
|
|
4695
4558
|
}
|
|
4696
4559
|
);
|
|
4697
4560
|
TableRow.displayName = "TableRow";
|
|
4698
|
-
var TableHead =
|
|
4561
|
+
var TableHead = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("th", { ref, className: cn(styles58["table-head"], className), ...props }));
|
|
4699
4562
|
TableHead.displayName = "TableHead";
|
|
4700
|
-
var TableCell =
|
|
4563
|
+
var TableCell = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("td", { ref, className: cn(styles58["table-cell"], className), ...props }));
|
|
4701
4564
|
TableCell.displayName = "TableCell";
|
|
4702
|
-
var TableCaption =
|
|
4565
|
+
var TableCaption = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("caption", { ref, className: cn(styles58["table-caption"], className), ...props }));
|
|
4703
4566
|
TableCaption.displayName = "TableCaption";
|
|
4704
4567
|
var TabsContainer = TabsPrimitive.Root;
|
|
4705
|
-
var TabsList =
|
|
4568
|
+
var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.List, { ref, className: cn(styles59["tabs-list"], className), ...props }));
|
|
4706
4569
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
4707
|
-
var TabsTrigger =
|
|
4570
|
+
var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { ref, className: cn(styles59["tabs-trigger"], className), ...props }));
|
|
4708
4571
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4709
|
-
var TabsContent =
|
|
4572
|
+
var TabsContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Content, { ref, className: cn(styles59["tabs-content"], className), ...props }));
|
|
4710
4573
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
4711
4574
|
var Tabs = ({
|
|
4712
4575
|
items,
|
|
@@ -4769,13 +4632,13 @@ var Tabs = ({
|
|
|
4769
4632
|
};
|
|
4770
4633
|
const renderIcon = (icon) => {
|
|
4771
4634
|
if (icon) {
|
|
4772
|
-
return /* @__PURE__ */ jsx(Icon, { icon, size: "sm", className:
|
|
4635
|
+
return /* @__PURE__ */ jsx(Icon, { icon, size: "sm", className: styles60["tabs-icon"] });
|
|
4773
4636
|
}
|
|
4774
4637
|
return null;
|
|
4775
4638
|
};
|
|
4776
4639
|
const indicatorClass = cn(
|
|
4777
|
-
|
|
4778
|
-
isFilled ?
|
|
4640
|
+
styles60["active-tab-indicator"],
|
|
4641
|
+
isFilled ? styles60["active-tab-indicator--filled"] : styles60["active-tab-indicator--transparent"]
|
|
4779
4642
|
);
|
|
4780
4643
|
const renderTriggerIndicator = (value2) => {
|
|
4781
4644
|
if (staticRender) {
|
|
@@ -4784,7 +4647,7 @@ var Tabs = ({
|
|
|
4784
4647
|
{
|
|
4785
4648
|
"aria-hidden": true,
|
|
4786
4649
|
"data-slot": "tabs-indicator",
|
|
4787
|
-
className: cn(indicatorClass,
|
|
4650
|
+
className: cn(indicatorClass, styles60["active-tab-indicator--static"])
|
|
4788
4651
|
}
|
|
4789
4652
|
);
|
|
4790
4653
|
}
|
|
@@ -4798,15 +4661,15 @@ var Tabs = ({
|
|
|
4798
4661
|
{
|
|
4799
4662
|
value: activeTab,
|
|
4800
4663
|
onValueChange: handleValueChange,
|
|
4801
|
-
className: cn(
|
|
4664
|
+
className: cn(styles60["tabs"], className),
|
|
4802
4665
|
children: [
|
|
4803
4666
|
/* @__PURE__ */ jsxs(
|
|
4804
4667
|
TabsList,
|
|
4805
4668
|
{
|
|
4806
4669
|
ref: listRef,
|
|
4807
4670
|
className: cn(
|
|
4808
|
-
|
|
4809
|
-
isFilled ?
|
|
4671
|
+
styles60["tabs-list"],
|
|
4672
|
+
isFilled ? styles60["tabs-list--filled"] : styles60["tabs-list--transparent"]
|
|
4810
4673
|
),
|
|
4811
4674
|
children: [
|
|
4812
4675
|
items.map(({ label, value: value2, icon, suffix, triggerProps }) => {
|
|
@@ -4820,8 +4683,8 @@ var Tabs = ({
|
|
|
4820
4683
|
},
|
|
4821
4684
|
value: value2,
|
|
4822
4685
|
className: cn(
|
|
4823
|
-
|
|
4824
|
-
isFilled ?
|
|
4686
|
+
styles60["tabs-trigger"],
|
|
4687
|
+
isFilled ? styles60["tabs-trigger--filled"] : styles60["tabs-trigger--transparent"],
|
|
4825
4688
|
triggerProps?.className
|
|
4826
4689
|
)
|
|
4827
4690
|
},
|
|
@@ -4838,8 +4701,8 @@ var Tabs = ({
|
|
|
4838
4701
|
"data-slot": "tabs-indicator",
|
|
4839
4702
|
className: cn(
|
|
4840
4703
|
indicatorClass,
|
|
4841
|
-
|
|
4842
|
-
animateIndicator &&
|
|
4704
|
+
styles60["active-tab-indicator--shared"],
|
|
4705
|
+
animateIndicator && styles60["active-tab-indicator--animated"]
|
|
4843
4706
|
),
|
|
4844
4707
|
style: {
|
|
4845
4708
|
transform: `translateX(${indicator.left}px)`,
|
|
@@ -4855,7 +4718,7 @@ var Tabs = ({
|
|
|
4855
4718
|
TabsContent,
|
|
4856
4719
|
{
|
|
4857
4720
|
value: value2,
|
|
4858
|
-
className:
|
|
4721
|
+
className: styles60["content"],
|
|
4859
4722
|
forceMount: staticRender || void 0,
|
|
4860
4723
|
children: content
|
|
4861
4724
|
},
|
|
@@ -4865,37 +4728,37 @@ var Tabs = ({
|
|
|
4865
4728
|
}
|
|
4866
4729
|
);
|
|
4867
4730
|
};
|
|
4868
|
-
var Textarea =
|
|
4731
|
+
var Textarea = React15.forwardRef(
|
|
4869
4732
|
({ className, ...props }, ref) => {
|
|
4870
|
-
return /* @__PURE__ */ jsx("textarea", { className: cn(
|
|
4733
|
+
return /* @__PURE__ */ jsx("textarea", { className: cn(styles61["textarea"], className), ref, ...props });
|
|
4871
4734
|
}
|
|
4872
4735
|
);
|
|
4873
4736
|
Textarea.displayName = "Textarea";
|
|
4874
4737
|
var XIcon2 = X;
|
|
4875
4738
|
var ToastProvider = ToastPrimitives.Provider;
|
|
4876
|
-
var ToastViewport =
|
|
4739
|
+
var ToastViewport = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4877
4740
|
ToastPrimitives.Viewport,
|
|
4878
4741
|
{
|
|
4879
4742
|
ref,
|
|
4880
|
-
className: cn(
|
|
4743
|
+
className: cn(styles62["toast-viewport"], className),
|
|
4881
4744
|
...props
|
|
4882
4745
|
}
|
|
4883
4746
|
));
|
|
4884
4747
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
4885
|
-
var toastVariants = cva(
|
|
4748
|
+
var toastVariants = cva(styles62["toast"], {
|
|
4886
4749
|
variants: {
|
|
4887
4750
|
variant: {
|
|
4888
|
-
default:
|
|
4889
|
-
danger:
|
|
4890
|
-
warning:
|
|
4891
|
-
success:
|
|
4751
|
+
default: styles62["toast--default"],
|
|
4752
|
+
danger: styles62["toast--danger"],
|
|
4753
|
+
warning: styles62["toast--warning"],
|
|
4754
|
+
success: styles62["toast--success"]
|
|
4892
4755
|
}
|
|
4893
4756
|
},
|
|
4894
4757
|
defaultVariants: {
|
|
4895
4758
|
variant: "default"
|
|
4896
4759
|
}
|
|
4897
4760
|
});
|
|
4898
|
-
var ToastContainer =
|
|
4761
|
+
var ToastContainer = React15.forwardRef(({ className, variant, style, ...props }, ref) => {
|
|
4899
4762
|
return /* @__PURE__ */ jsx(
|
|
4900
4763
|
ToastPrimitives.Root,
|
|
4901
4764
|
{
|
|
@@ -4907,37 +4770,37 @@ var ToastContainer = React16.forwardRef(({ className, variant, style, ...props }
|
|
|
4907
4770
|
);
|
|
4908
4771
|
});
|
|
4909
4772
|
ToastContainer.displayName = ToastPrimitives.Root.displayName;
|
|
4910
|
-
var ToastAction =
|
|
4773
|
+
var ToastAction = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4911
4774
|
ToastPrimitives.Action,
|
|
4912
4775
|
{
|
|
4913
4776
|
ref,
|
|
4914
4777
|
className: cn(
|
|
4915
4778
|
buttonVariants({ variant: "secondary", size: "sm" }),
|
|
4916
|
-
|
|
4779
|
+
styles62["toast-action"],
|
|
4917
4780
|
className
|
|
4918
4781
|
),
|
|
4919
4782
|
...props
|
|
4920
4783
|
}
|
|
4921
4784
|
));
|
|
4922
4785
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
4923
|
-
var ToastClose =
|
|
4786
|
+
var ToastClose = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4924
4787
|
ToastPrimitives.Close,
|
|
4925
4788
|
{
|
|
4926
4789
|
ref,
|
|
4927
4790
|
"aria-label": "Close",
|
|
4928
|
-
className: cn(
|
|
4791
|
+
className: cn(styles62["toast-close"], className),
|
|
4929
4792
|
...props,
|
|
4930
|
-
children: /* @__PURE__ */ jsx(XIcon2, { className:
|
|
4793
|
+
children: /* @__PURE__ */ jsx(XIcon2, { className: styles62["toast-close-icon"] })
|
|
4931
4794
|
}
|
|
4932
4795
|
));
|
|
4933
4796
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
4934
|
-
var ToastTitle =
|
|
4797
|
+
var ToastTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Title, { ref, className: cn(styles62["toast-title"], className), ...props }));
|
|
4935
4798
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
4936
|
-
var ToastDescription =
|
|
4799
|
+
var ToastDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4937
4800
|
ToastPrimitives.Description,
|
|
4938
4801
|
{
|
|
4939
4802
|
ref,
|
|
4940
|
-
className: cn(
|
|
4803
|
+
className: cn(styles62["toast-description"], className),
|
|
4941
4804
|
...props
|
|
4942
4805
|
}
|
|
4943
4806
|
));
|
|
@@ -5072,14 +4935,14 @@ var Toast = ({ toast: toast2 }) => {
|
|
|
5072
4935
|
};
|
|
5073
4936
|
const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
|
|
5074
4937
|
return /* @__PURE__ */ jsxs(ToastContainer, { ...props, variant, children: [
|
|
5075
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
5076
|
-
title && /* @__PURE__ */ jsxs("div", { className:
|
|
4938
|
+
/* @__PURE__ */ jsxs("div", { className: styles63["toast-copy"], children: [
|
|
4939
|
+
title && /* @__PURE__ */ jsxs("div", { className: styles63["toast-title-container"], children: [
|
|
5077
4940
|
displayIcon && /* @__PURE__ */ jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
|
|
5078
4941
|
/* @__PURE__ */ jsx(ToastTitle, { children: title })
|
|
5079
4942
|
] }),
|
|
5080
4943
|
description && /* @__PURE__ */ jsx(ToastDescription, { children: description })
|
|
5081
4944
|
] }),
|
|
5082
|
-
action && /* @__PURE__ */ jsx("div", { className:
|
|
4945
|
+
action && /* @__PURE__ */ jsx("div", { className: styles63["toast-action"], children: action }),
|
|
5083
4946
|
/* @__PURE__ */ jsx(ToastClose, {})
|
|
5084
4947
|
] });
|
|
5085
4948
|
};
|
|
@@ -5114,7 +4977,7 @@ var TruncatedDescription = ({
|
|
|
5114
4977
|
e.stopPropagation();
|
|
5115
4978
|
setExpanded(!expanded);
|
|
5116
4979
|
};
|
|
5117
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
4980
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles64["truncated-description"], className), children: [
|
|
5118
4981
|
/* @__PURE__ */ jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
|
|
5119
4982
|
isLongDescription && /* @__PURE__ */ jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
|
|
5120
4983
|
] });
|
|
@@ -5122,20 +4985,20 @@ var TruncatedDescription = ({
|
|
|
5122
4985
|
var removeHtmlTags = (html) => {
|
|
5123
4986
|
return html.replace(/<[^>]*>/g, "");
|
|
5124
4987
|
};
|
|
5125
|
-
var Portal8 =
|
|
4988
|
+
var Portal8 = React15.forwardRef((_props, ref) => {
|
|
5126
4989
|
return /* @__PURE__ */ jsx("div", { id: PORTAL_ROOT_ID, ref });
|
|
5127
4990
|
});
|
|
5128
4991
|
Portal8.displayName = "Portal";
|
|
5129
4992
|
var PortalContainerProvider = ({ container, children }) => /* @__PURE__ */ jsx(PortalContainerContext.Provider, { value: container, children });
|
|
5130
4993
|
var ThemeProvider = ({ customVars, portalContainer, children }) => {
|
|
5131
|
-
const [ownPortalContainer, setOwnPortalContainer] =
|
|
4994
|
+
const [ownPortalContainer, setOwnPortalContainer] = React15.useState(null);
|
|
5132
4995
|
const usesOwnPortal = portalContainer === void 0;
|
|
5133
4996
|
return /* @__PURE__ */ jsx(PortalContainerProvider, { container: usesOwnPortal ? ownPortalContainer : portalContainer, children: /* @__PURE__ */ jsxs(
|
|
5134
4997
|
"div",
|
|
5135
4998
|
{
|
|
5136
4999
|
id: "equality-theme-provider-root",
|
|
5137
5000
|
"data-equality-root": true,
|
|
5138
|
-
className:
|
|
5001
|
+
className: styles65.root,
|
|
5139
5002
|
style: customVars,
|
|
5140
5003
|
children: [
|
|
5141
5004
|
children,
|
|
@@ -5261,6 +5124,6 @@ var useTheme = () => {
|
|
|
5261
5124
|
return [theme, setTheme];
|
|
5262
5125
|
};
|
|
5263
5126
|
|
|
5264
|
-
export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, BarGraph, BarGraphSegment, BgGradient, Button, CODE_BLOCK_ATTRIBUTE, Card, CardContent, CardContentHeader, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlStatusBadge, CopyButton, DateRangePicker, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderIcon, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayField,
|
|
5127
|
+
export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, BarGraph, BarGraphSegment, BgGradient, Button, CODE_BLOCK_ATTRIBUTE, Card, CardContent, CardContentHeader, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlStatusBadge, CopyButton, DateRangePicker, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderIcon, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayField, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuEmpty, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSearch, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ELEVATION, EmptyTableState, FilterDropdown, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatDate, Heading, Icon, IconButton, InfoCard, Input, Label2 as Label, LoadingOverlay, MetricCard, MotionCollapsibleContent, NavDrill, NavDrillLevel, NavList, NavListGroup, NavListItem, NavListSeparator, NavPanel, NavRail, NavRailItem, NavSwitcher, NotFound, PORTAL_ROOT_ID, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, ProgressIndicator, ProgressIndicatorStep, RadialGraph, RadioDropdown, RadioGroup2 as RadioGroup, RadioGroupItem, ResourceBadge, SearchBar, SectionHeading, SegmentedControls, Select, SelectContent, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectSearch, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Sheet, SheetClose, SheetContainer, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetHeaderIcon, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SortButton, SortSelector, Spinner, Switch, TableBody, TableCaption, TableCell, TableContainer, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContainer, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toast, ToastAction, ToastClose, ToastContainer, ToastDescription, ToastProvider, ToastRoot, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedDescription, badgeVariants, blockClosedTypeahead, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
|
|
5265
5128
|
//# sourceMappingURL=index.js.map
|
|
5266
5129
|
//# sourceMappingURL=index.js.map
|