@eqtylab/equality 4.3.1 → 4.4.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 +38 -0
- package/dist/index.cjs +1167 -1087
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +142 -121
- package/dist/index.d.ts +142 -121
- package/dist/index.js +1133 -1055
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React15 from 'react';
|
|
2
2
|
import { forwardRef, useState, useRef, useEffect, useMemo, useCallback, useLayoutEffect, createElement, useSyncExternalStore } from 'react';
|
|
3
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
4
|
+
import styles2 from './alert-dialog.module.module.css.module.css';
|
|
5
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
3
6
|
import { cva } from 'class-variance-authority';
|
|
4
|
-
import
|
|
5
|
-
import * as LucideIcons from 'lucide-react';
|
|
6
|
-
import { Check, ChevronRight, Search, Circle, TriangleAlert, ChevronDown, ChevronUp, X, SearchIcon, CalendarDays, ChevronLeft, Grid3X3, List, AlertOctagon, Home, ChevronsLeft, ChevronsRight, ArrowUp, ArrowDown, ArrowUpDown } from 'lucide-react';
|
|
7
|
-
import styles from './icon.module.module.css.module.css';
|
|
7
|
+
import styles from './button.module.module.css.module.css';
|
|
8
8
|
import { clsx } from 'clsx';
|
|
9
9
|
import { twMerge } from 'tailwind-merge';
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import styles3 from './
|
|
10
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
11
|
+
import styles4 from './alert.module.module.css.module.css';
|
|
12
|
+
import * as LucideIcons from 'lucide-react';
|
|
13
|
+
import { Check, ChevronRight, Search, Circle, TriangleAlert, ChevronDown, ChevronUp, X, SearchIcon, CalendarDays, ChevronLeft, Grid3X3, List, AlertOctagon, Home, ChevronsLeft, ChevronsRight, ArrowUp, ArrowDown, ArrowUpDown } from 'lucide-react';
|
|
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';
|
|
17
17
|
import styles7 from './badge.module.module.css.module.css';
|
|
@@ -19,18 +19,18 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
|
19
19
|
import styles6 from './tooltip.module.module.css.module.css';
|
|
20
20
|
import styles8 from './bar-graph.module.module.css.module.css';
|
|
21
21
|
import styles9 from './bg-gradient.module.module.css.module.css';
|
|
22
|
-
import styles10 from './
|
|
23
|
-
import styles11 from './card
|
|
24
|
-
import styles12 from './card.module.module.css.module.css';
|
|
22
|
+
import styles10 from './card-content-header.module.module.css.module.css';
|
|
23
|
+
import styles11 from './card.module.module.css.module.css';
|
|
25
24
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
25
|
+
import styles12 from './checkbox.module.module.css.module.css';
|
|
26
|
+
import styles14 from './code-block.module.module.css.module.css';
|
|
27
|
+
import styles13 from './icon-button.module.module.css.module.css';
|
|
29
28
|
import { highlightAll } from 'microlighter';
|
|
30
29
|
import { Command as Command$1 } from 'cmdk';
|
|
31
|
-
import
|
|
30
|
+
import styles16 from './command.module.module.css.module.css';
|
|
32
31
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
33
|
-
import
|
|
32
|
+
import styles15 from './dialog.module.module.css.module.css';
|
|
33
|
+
import styles17 from './control-status-badge.module.module.css.module.css';
|
|
34
34
|
import styles19 from './date-range-picker.module.module.css.module.css';
|
|
35
35
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
36
36
|
import styles18 from './popover.module.module.css.module.css';
|
|
@@ -46,84 +46,54 @@ import { useFormContext, FormProvider, Controller } from 'react-hook-form';
|
|
|
46
46
|
import styles26 from './form.module.module.css.module.css';
|
|
47
47
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
48
48
|
import styles25 from './label.module.module.css.module.css';
|
|
49
|
-
import styles27 from './
|
|
50
|
-
import
|
|
49
|
+
import styles27 from './format-date.module.module.css.module.css';
|
|
50
|
+
import styles28 from './heading.module.module.css.module.css';
|
|
51
|
+
import styles29 from './info-card.module.module.css.module.css';
|
|
52
|
+
import styles31 from './input.module.module.css.module.css';
|
|
51
53
|
import { AnimatePresence, motion } from 'motion/react';
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
54
|
+
import styles30 from './motion-collapsible.module.module.css.module.css';
|
|
55
|
+
import styles32 from './list-or-grid-view-toggle.module.module.css.module.css';
|
|
56
|
+
import styles34 from './loading-overlay.module.module.css.module.css';
|
|
57
|
+
import styles33 from './spinner.module.module.css.module.css';
|
|
58
|
+
import styles35 from './metric-card.module.module.css.module.css';
|
|
59
|
+
import styles36 from './page-not-found.module.module.css.module.css';
|
|
60
|
+
import styles38 from './pagination.module.module.css.module.css';
|
|
59
61
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
+
import styles37 from './select.module.module.css.module.css';
|
|
63
|
+
import styles39 from './panel-label.module.module.css.module.css';
|
|
64
|
+
import styles41 from './progress-indicator.module.module.css.module.css';
|
|
62
65
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import styles41 from './radio-dropdown.module.module.css.module.css';
|
|
66
|
+
import styles40 from './progress.module.module.css.module.css';
|
|
67
|
+
import styles42 from './radial-graph.module.module.css.module.css';
|
|
68
|
+
import styles43 from './radio-dropdown.module.module.css.module.css';
|
|
67
69
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
68
|
-
import
|
|
70
|
+
import styles44 from './radio-group.module.module.css.module.css';
|
|
71
|
+
import styles45 from './resource-badge.module.module.css.module.css';
|
|
69
72
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
73
|
+
import styles46 from './scroll-area.module.module.css.module.css';
|
|
74
|
+
import styles47 from './search-bar.module.module.css.module.css';
|
|
75
|
+
import styles48 from './section-heading.module.module.css.module.css';
|
|
76
|
+
import styles49 from './segmented-controls.module.module.css.module.css';
|
|
74
77
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
78
|
+
import styles50 from './separator.module.module.css.module.css';
|
|
79
|
+
import styles51 from './sheet.module.module.css.module.css';
|
|
80
|
+
import styles52 from './skeleton.module.module.css.module.css';
|
|
81
|
+
import styles53 from './sort-button.module.module.css.module.css';
|
|
82
|
+
import styles54 from './sort-selector.module.module.css.module.css';
|
|
79
83
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import styles53 from './table-components.module.module.css.module.css';
|
|
84
|
+
import styles55 from './switch.module.module.css.module.css';
|
|
85
|
+
import styles56 from './table-components.module.module.css.module.css';
|
|
83
86
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import styles57 from './format-date.module.module.css.module.css';
|
|
87
|
+
import styles57 from './tabs-components.module.module.css.module.css';
|
|
88
|
+
import styles58 from './tabs.module.module.css.module.css';
|
|
89
|
+
import styles59 from './textarea.module.module.css.module.css';
|
|
88
90
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
89
|
-
import
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import styles61 from './heading.module.module.css.module.css';
|
|
93
|
-
import styles62 from './control-status-badge.module.module.css.module.css';
|
|
91
|
+
import styles60 from './toast-components.module.module.css.module.css';
|
|
92
|
+
import styles61 from './toast.module.module.css.module.css';
|
|
93
|
+
import styles62 from './truncated-description.module.module.css.module.css';
|
|
94
94
|
import styles63 from './theme.module.module.css.module.css';
|
|
95
95
|
|
|
96
|
-
// src/components/alert/alert.tsx
|
|
97
|
-
var ELEVATION = {
|
|
98
|
-
SUNKEN: "sunken",
|
|
99
|
-
BASE: "base",
|
|
100
|
-
RAISED: "raised",
|
|
101
|
-
OVERLAY: "overlay"
|
|
102
|
-
};
|
|
103
|
-
var generateElevationVariants = (styles64, baseClassName, defaultElevation) => {
|
|
104
|
-
const classNames = {};
|
|
105
|
-
Object.values(ELEVATION).forEach((elevation) => {
|
|
106
|
-
classNames[elevation] = styles64[`${baseClassName}--${elevation}`];
|
|
107
|
-
});
|
|
108
|
-
const variants = cva(styles64[baseClassName], {
|
|
109
|
-
variants: {
|
|
110
|
-
elevation: classNames
|
|
111
|
-
},
|
|
112
|
-
defaultVariants: {
|
|
113
|
-
elevation: defaultElevation
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
return variants;
|
|
117
|
-
};
|
|
118
|
-
var getRelativeElevation = (elevation, offset) => {
|
|
119
|
-
const elevationIndex = Object.values(ELEVATION).indexOf(elevation);
|
|
120
|
-
const newElevationIndex = elevationIndex + offset;
|
|
121
|
-
const relativeElevation = Object.values(ELEVATION)[newElevationIndex];
|
|
122
|
-
if (!relativeElevation) {
|
|
123
|
-
console.warn(`Invalid elevation offset: from ${elevation} with offset ${offset}`);
|
|
124
|
-
}
|
|
125
|
-
return relativeElevation || elevation;
|
|
126
|
-
};
|
|
96
|
+
// src/components/alert-dialog/alert-dialog.tsx
|
|
127
97
|
var PORTAL_ROOT_ID = "equality-theme-provider-root-portal";
|
|
128
98
|
var PortalContainerContext = React15.createContext(
|
|
129
99
|
void 0
|
|
@@ -138,131 +108,21 @@ function usePortalContainer() {
|
|
|
138
108
|
function cn(...inputs) {
|
|
139
109
|
return twMerge(clsx(inputs));
|
|
140
110
|
}
|
|
141
|
-
var
|
|
111
|
+
var buttonVariants = cva(styles["button"], {
|
|
142
112
|
variants: {
|
|
113
|
+
variant: {
|
|
114
|
+
primary: styles["button--primary"],
|
|
115
|
+
danger: styles["button--danger"],
|
|
116
|
+
warning: styles["button--warning"],
|
|
117
|
+
secondary: styles["button--secondary"],
|
|
118
|
+
tertiary: styles["button--tertiary"],
|
|
119
|
+
link: styles["button--link"],
|
|
120
|
+
navigation: styles["button--navigation"]
|
|
121
|
+
},
|
|
143
122
|
size: {
|
|
144
|
-
xs: styles["size--xs"],
|
|
145
123
|
sm: styles["size--sm"],
|
|
146
124
|
md: styles["size--md"],
|
|
147
125
|
lg: styles["size--lg"]
|
|
148
|
-
},
|
|
149
|
-
background: {
|
|
150
|
-
square: styles["background--square"],
|
|
151
|
-
circle: styles["background--circle"],
|
|
152
|
-
transparent: styles["background--transparent"]
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
defaultVariants: {
|
|
156
|
-
size: "md",
|
|
157
|
-
background: "transparent"
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
var iconElevationVariants = generateElevationVariants(styles, "icon-container", ELEVATION.RAISED);
|
|
161
|
-
var Icon = forwardRef(
|
|
162
|
-
({ className, size, background, icon, elevation = ELEVATION.RAISED, ...props }, ref) => {
|
|
163
|
-
let renderedIcon;
|
|
164
|
-
if (typeof icon === "string") {
|
|
165
|
-
const LucideIcon = LucideIcons[icon];
|
|
166
|
-
if (!LucideIcon) {
|
|
167
|
-
throw new Error(`Icon "${icon}" not found in lucide-react`);
|
|
168
|
-
}
|
|
169
|
-
renderedIcon = /* @__PURE__ */ jsx(LucideIcon, { className: cn(styles["icon"]) });
|
|
170
|
-
} else if (React15.isValidElement(icon)) {
|
|
171
|
-
const existingProps = icon.props;
|
|
172
|
-
renderedIcon = React15.cloneElement(
|
|
173
|
-
icon,
|
|
174
|
-
{
|
|
175
|
-
...existingProps,
|
|
176
|
-
className: cn(styles["icon"], existingProps.className)
|
|
177
|
-
}
|
|
178
|
-
);
|
|
179
|
-
} else {
|
|
180
|
-
throw new Error("Icon must be either a string (Lucide icon name) or a React element");
|
|
181
|
-
}
|
|
182
|
-
return /* @__PURE__ */ jsx(
|
|
183
|
-
"div",
|
|
184
|
-
{
|
|
185
|
-
ref,
|
|
186
|
-
className: cn(
|
|
187
|
-
iconVariants({ size, background }),
|
|
188
|
-
iconElevationVariants({ elevation }),
|
|
189
|
-
className
|
|
190
|
-
),
|
|
191
|
-
...props,
|
|
192
|
-
children: renderedIcon
|
|
193
|
-
}
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
);
|
|
197
|
-
Icon.displayName = "Icon";
|
|
198
|
-
var alertVariants = cva(styles2["alert"], {
|
|
199
|
-
variants: {
|
|
200
|
-
variant: {
|
|
201
|
-
primary: styles2["alert--primary"],
|
|
202
|
-
neutral: styles2["alert--neutral"],
|
|
203
|
-
success: styles2["alert--success"],
|
|
204
|
-
warning: styles2["alert--warning"],
|
|
205
|
-
danger: styles2["alert--danger"]
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
defaultVariants: {
|
|
209
|
-
variant: "primary"
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
var defaultVariantIcons = {
|
|
213
|
-
success: "Check",
|
|
214
|
-
warning: "OctagonAlert",
|
|
215
|
-
danger: "TriangleAlert"
|
|
216
|
-
};
|
|
217
|
-
var Alert = React15.forwardRef(
|
|
218
|
-
({ className, variant, title, description, icon, children, as: Component = "div", ...props }, ref) => {
|
|
219
|
-
const effectiveIcon = icon === void 0 ? variant ? defaultVariantIcons[variant] : void 0 : icon;
|
|
220
|
-
const role = Component === "div" ? "alert" : void 0;
|
|
221
|
-
return /* @__PURE__ */ jsxs(
|
|
222
|
-
Component,
|
|
223
|
-
{
|
|
224
|
-
ref,
|
|
225
|
-
role,
|
|
226
|
-
className: cn(
|
|
227
|
-
alertVariants({ variant }),
|
|
228
|
-
effectiveIcon ? styles2["alert--with-icon"] : "",
|
|
229
|
-
className
|
|
230
|
-
),
|
|
231
|
-
...props,
|
|
232
|
-
children: [
|
|
233
|
-
effectiveIcon ? /* @__PURE__ */ jsx(
|
|
234
|
-
Icon,
|
|
235
|
-
{
|
|
236
|
-
icon: effectiveIcon,
|
|
237
|
-
size: "sm",
|
|
238
|
-
background: "transparent",
|
|
239
|
-
className: styles2["alert-icon"]
|
|
240
|
-
}
|
|
241
|
-
) : null,
|
|
242
|
-
/* @__PURE__ */ jsx("h4", { className: styles2["alert-title"], children: title }),
|
|
243
|
-
description ? /* @__PURE__ */ jsx("p", { className: styles2["alert-description"], children: description }) : null,
|
|
244
|
-
children ? /* @__PURE__ */ jsx("div", { className: styles2["alert-body"], children }) : null
|
|
245
|
-
]
|
|
246
|
-
}
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
);
|
|
250
|
-
Alert.displayName = "Alert";
|
|
251
|
-
var buttonVariants = cva(styles3["button"], {
|
|
252
|
-
variants: {
|
|
253
|
-
variant: {
|
|
254
|
-
primary: styles3["button--primary"],
|
|
255
|
-
danger: styles3["button--danger"],
|
|
256
|
-
warning: styles3["button--warning"],
|
|
257
|
-
secondary: styles3["button--secondary"],
|
|
258
|
-
tertiary: styles3["button--tertiary"],
|
|
259
|
-
link: styles3["button--link"],
|
|
260
|
-
navigation: styles3["button--navigation"]
|
|
261
|
-
},
|
|
262
|
-
size: {
|
|
263
|
-
sm: styles3["size--sm"],
|
|
264
|
-
md: styles3["size--md"],
|
|
265
|
-
lg: styles3["size--lg"]
|
|
266
126
|
}
|
|
267
127
|
},
|
|
268
128
|
defaultVariants: {
|
|
@@ -316,7 +176,7 @@ var AlertDialogPortal = ({ children }) => /* @__PURE__ */ jsx(AlertDialogPrimiti
|
|
|
316
176
|
var AlertDialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
317
177
|
AlertDialogPrimitive.Overlay,
|
|
318
178
|
{
|
|
319
|
-
className: cn(
|
|
179
|
+
className: cn(styles2["alert-dialog-overlay"], className),
|
|
320
180
|
...props,
|
|
321
181
|
ref
|
|
322
182
|
}
|
|
@@ -328,21 +188,21 @@ var AlertDialogContent = React15.forwardRef(({ className, ...props }, ref) => /*
|
|
|
328
188
|
AlertDialogPrimitive.Content,
|
|
329
189
|
{
|
|
330
190
|
ref,
|
|
331
|
-
className: cn(
|
|
191
|
+
className: cn(styles2["alert-dialog-content"], className),
|
|
332
192
|
...props
|
|
333
193
|
}
|
|
334
194
|
)
|
|
335
195
|
] }));
|
|
336
196
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
337
|
-
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
197
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles2["alert-dialog-header"], className), ...props });
|
|
338
198
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
339
|
-
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
199
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles2["alert-dialog-footer"], className), ...props });
|
|
340
200
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
341
201
|
var AlertDialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
342
202
|
AlertDialogPrimitive.Title,
|
|
343
203
|
{
|
|
344
204
|
ref,
|
|
345
|
-
className: cn(
|
|
205
|
+
className: cn(styles2["alert-dialog-title"], className),
|
|
346
206
|
...props
|
|
347
207
|
}
|
|
348
208
|
));
|
|
@@ -351,7 +211,7 @@ var AlertDialogDescription = React15.forwardRef(({ className, ...props }, ref) =
|
|
|
351
211
|
AlertDialogPrimitive.Description,
|
|
352
212
|
{
|
|
353
213
|
ref,
|
|
354
|
-
className: cn(
|
|
214
|
+
className: cn(styles2["alert-dialog-description"], className),
|
|
355
215
|
...props
|
|
356
216
|
}
|
|
357
217
|
));
|
|
@@ -374,7 +234,7 @@ var AlertDialogCancel = React15.forwardRef(({ className, variant = "tertiary", s
|
|
|
374
234
|
AlertDialogPrimitive.Cancel,
|
|
375
235
|
{
|
|
376
236
|
ref,
|
|
377
|
-
className: cn(buttonVariants({ variant, size }),
|
|
237
|
+
className: cn(buttonVariants({ variant, size }), styles2["alert-dialog-cancel"], className),
|
|
378
238
|
...props,
|
|
379
239
|
children: [
|
|
380
240
|
prefix,
|
|
@@ -384,6 +244,146 @@ var AlertDialogCancel = React15.forwardRef(({ className, variant = "tertiary", s
|
|
|
384
244
|
}
|
|
385
245
|
));
|
|
386
246
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
247
|
+
var ELEVATION = {
|
|
248
|
+
SUNKEN: "sunken",
|
|
249
|
+
BASE: "base",
|
|
250
|
+
RAISED: "raised",
|
|
251
|
+
OVERLAY: "overlay"
|
|
252
|
+
};
|
|
253
|
+
var generateElevationVariants = (styles64, baseClassName, defaultElevation) => {
|
|
254
|
+
const classNames = {};
|
|
255
|
+
Object.values(ELEVATION).forEach((elevation) => {
|
|
256
|
+
classNames[elevation] = styles64[`${baseClassName}--${elevation}`];
|
|
257
|
+
});
|
|
258
|
+
const variants = cva(styles64[baseClassName], {
|
|
259
|
+
variants: {
|
|
260
|
+
elevation: classNames
|
|
261
|
+
},
|
|
262
|
+
defaultVariants: {
|
|
263
|
+
elevation: defaultElevation
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
return variants;
|
|
267
|
+
};
|
|
268
|
+
var getRelativeElevation = (elevation, offset) => {
|
|
269
|
+
const elevationIndex = Object.values(ELEVATION).indexOf(elevation);
|
|
270
|
+
const newElevationIndex = elevationIndex + offset;
|
|
271
|
+
const relativeElevation = Object.values(ELEVATION)[newElevationIndex];
|
|
272
|
+
if (!relativeElevation) {
|
|
273
|
+
console.warn(`Invalid elevation offset: from ${elevation} with offset ${offset}`);
|
|
274
|
+
}
|
|
275
|
+
return relativeElevation || elevation;
|
|
276
|
+
};
|
|
277
|
+
var iconVariants = cva(styles3["icon-container"], {
|
|
278
|
+
variants: {
|
|
279
|
+
size: {
|
|
280
|
+
xs: styles3["size--xs"],
|
|
281
|
+
sm: styles3["size--sm"],
|
|
282
|
+
md: styles3["size--md"],
|
|
283
|
+
lg: styles3["size--lg"]
|
|
284
|
+
},
|
|
285
|
+
background: {
|
|
286
|
+
square: styles3["background--square"],
|
|
287
|
+
circle: styles3["background--circle"],
|
|
288
|
+
transparent: styles3["background--transparent"]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
defaultVariants: {
|
|
292
|
+
size: "md",
|
|
293
|
+
background: "transparent"
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
var iconElevationVariants = generateElevationVariants(styles3, "icon-container", ELEVATION.RAISED);
|
|
297
|
+
var Icon = forwardRef(
|
|
298
|
+
({ className, size, background, icon, elevation = ELEVATION.RAISED, ...props }, ref) => {
|
|
299
|
+
let renderedIcon;
|
|
300
|
+
if (typeof icon === "string") {
|
|
301
|
+
const LucideIcon = LucideIcons[icon];
|
|
302
|
+
if (!LucideIcon) {
|
|
303
|
+
throw new Error(`Icon "${icon}" not found in lucide-react`);
|
|
304
|
+
}
|
|
305
|
+
renderedIcon = /* @__PURE__ */ jsx(LucideIcon, { className: cn(styles3["icon"]) });
|
|
306
|
+
} else if (React15.isValidElement(icon)) {
|
|
307
|
+
const existingProps = icon.props;
|
|
308
|
+
renderedIcon = React15.cloneElement(
|
|
309
|
+
icon,
|
|
310
|
+
{
|
|
311
|
+
...existingProps,
|
|
312
|
+
className: cn(styles3["icon"], existingProps.className)
|
|
313
|
+
}
|
|
314
|
+
);
|
|
315
|
+
} else {
|
|
316
|
+
throw new Error("Icon must be either a string (Lucide icon name) or a React element");
|
|
317
|
+
}
|
|
318
|
+
return /* @__PURE__ */ jsx(
|
|
319
|
+
"div",
|
|
320
|
+
{
|
|
321
|
+
ref,
|
|
322
|
+
className: cn(
|
|
323
|
+
iconVariants({ size, background }),
|
|
324
|
+
iconElevationVariants({ elevation }),
|
|
325
|
+
className
|
|
326
|
+
),
|
|
327
|
+
...props,
|
|
328
|
+
children: renderedIcon
|
|
329
|
+
}
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
);
|
|
333
|
+
Icon.displayName = "Icon";
|
|
334
|
+
var alertVariants = cva(styles4["alert"], {
|
|
335
|
+
variants: {
|
|
336
|
+
variant: {
|
|
337
|
+
primary: styles4["alert--primary"],
|
|
338
|
+
neutral: styles4["alert--neutral"],
|
|
339
|
+
success: styles4["alert--success"],
|
|
340
|
+
warning: styles4["alert--warning"],
|
|
341
|
+
danger: styles4["alert--danger"]
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
defaultVariants: {
|
|
345
|
+
variant: "primary"
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
var defaultVariantIcons = {
|
|
349
|
+
success: "Check",
|
|
350
|
+
warning: "OctagonAlert",
|
|
351
|
+
danger: "TriangleAlert"
|
|
352
|
+
};
|
|
353
|
+
var Alert = React15.forwardRef(
|
|
354
|
+
({ className, variant, title, description, icon, children, as: Component = "div", ...props }, ref) => {
|
|
355
|
+
const effectiveIcon = icon === void 0 ? variant ? defaultVariantIcons[variant] : void 0 : icon;
|
|
356
|
+
const role = Component === "div" ? "alert" : void 0;
|
|
357
|
+
return /* @__PURE__ */ jsxs(
|
|
358
|
+
Component,
|
|
359
|
+
{
|
|
360
|
+
ref,
|
|
361
|
+
role,
|
|
362
|
+
className: cn(
|
|
363
|
+
alertVariants({ variant }),
|
|
364
|
+
effectiveIcon ? styles4["alert--with-icon"] : "",
|
|
365
|
+
className
|
|
366
|
+
),
|
|
367
|
+
...props,
|
|
368
|
+
children: [
|
|
369
|
+
effectiveIcon ? /* @__PURE__ */ jsx(
|
|
370
|
+
Icon,
|
|
371
|
+
{
|
|
372
|
+
icon: effectiveIcon,
|
|
373
|
+
size: "sm",
|
|
374
|
+
background: "transparent",
|
|
375
|
+
className: styles4["alert-icon"]
|
|
376
|
+
}
|
|
377
|
+
) : null,
|
|
378
|
+
/* @__PURE__ */ jsx("h4", { className: styles4["alert-title"], children: title }),
|
|
379
|
+
description ? /* @__PURE__ */ jsx("p", { className: styles4["alert-description"], children: description }) : null,
|
|
380
|
+
children ? /* @__PURE__ */ jsx("div", { className: styles4["alert-body"], children }) : null
|
|
381
|
+
]
|
|
382
|
+
}
|
|
383
|
+
);
|
|
384
|
+
}
|
|
385
|
+
);
|
|
386
|
+
Alert.displayName = "Alert";
|
|
387
387
|
var Avatar = React15.forwardRef(
|
|
388
388
|
({ className, size = "md", shape = "circle", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
389
389
|
AvatarPrimitive.Root,
|
|
@@ -763,166 +763,6 @@ var BgGradient = ({
|
|
|
763
763
|
}, [theme, placement, brandColors]);
|
|
764
764
|
return /* @__PURE__ */ jsx("canvas", { ref: canvasRef, className: styles9["bg-gradient"] });
|
|
765
765
|
};
|
|
766
|
-
var ResourceBadge = ({
|
|
767
|
-
type,
|
|
768
|
-
display = "both",
|
|
769
|
-
closeable,
|
|
770
|
-
handleClosable,
|
|
771
|
-
closeLabel,
|
|
772
|
-
children
|
|
773
|
-
}) => {
|
|
774
|
-
const config = getTypeConfig(type);
|
|
775
|
-
return /* @__PURE__ */ jsx(
|
|
776
|
-
Badge,
|
|
777
|
-
{
|
|
778
|
-
icon: config.icon,
|
|
779
|
-
display,
|
|
780
|
-
className: config.className,
|
|
781
|
-
variant: null,
|
|
782
|
-
closeable,
|
|
783
|
-
handleClosable,
|
|
784
|
-
closeLabel,
|
|
785
|
-
children: children ?? config.label
|
|
786
|
-
}
|
|
787
|
-
);
|
|
788
|
-
};
|
|
789
|
-
var getTypeConfig = (type) => {
|
|
790
|
-
switch (type) {
|
|
791
|
-
case "agent":
|
|
792
|
-
return {
|
|
793
|
-
icon: "Bot",
|
|
794
|
-
className: styles10["badge--agent"],
|
|
795
|
-
label: "Agent"
|
|
796
|
-
};
|
|
797
|
-
case "benchmark":
|
|
798
|
-
return {
|
|
799
|
-
icon: "LineChart",
|
|
800
|
-
className: styles10["badge--benchmark"],
|
|
801
|
-
label: "Benchmark"
|
|
802
|
-
};
|
|
803
|
-
case "benchmark-result":
|
|
804
|
-
return {
|
|
805
|
-
icon: "FileChartLine",
|
|
806
|
-
className: styles10["badge--benchmark-result"],
|
|
807
|
-
label: "Benchmark Result"
|
|
808
|
-
};
|
|
809
|
-
case "code":
|
|
810
|
-
return {
|
|
811
|
-
icon: "Code",
|
|
812
|
-
className: styles10["badge--code"],
|
|
813
|
-
label: "Code"
|
|
814
|
-
};
|
|
815
|
-
case "binary":
|
|
816
|
-
return {
|
|
817
|
-
icon: "Binary",
|
|
818
|
-
className: styles10["badge--binary"],
|
|
819
|
-
label: "Binary"
|
|
820
|
-
};
|
|
821
|
-
case "certificate":
|
|
822
|
-
return {
|
|
823
|
-
icon: "Award",
|
|
824
|
-
className: styles10["badge--certificate"],
|
|
825
|
-
label: "Certificate"
|
|
826
|
-
};
|
|
827
|
-
case "compute":
|
|
828
|
-
return {
|
|
829
|
-
icon: "Cpu",
|
|
830
|
-
className: styles10["badge--compute"],
|
|
831
|
-
label: "Compute"
|
|
832
|
-
};
|
|
833
|
-
case "credential":
|
|
834
|
-
return {
|
|
835
|
-
icon: "IdCardLanyard",
|
|
836
|
-
className: styles10["badge--credential"],
|
|
837
|
-
label: "Credential"
|
|
838
|
-
};
|
|
839
|
-
case "database":
|
|
840
|
-
return {
|
|
841
|
-
icon: "Database",
|
|
842
|
-
className: styles10["badge--database"],
|
|
843
|
-
label: "Database"
|
|
844
|
-
};
|
|
845
|
-
case "dataset":
|
|
846
|
-
return {
|
|
847
|
-
icon: "Table",
|
|
848
|
-
className: styles10["badge--dataset"],
|
|
849
|
-
label: "Dataset"
|
|
850
|
-
};
|
|
851
|
-
case "document":
|
|
852
|
-
return {
|
|
853
|
-
icon: "FileText",
|
|
854
|
-
className: styles10["badge--document"],
|
|
855
|
-
label: "Document"
|
|
856
|
-
};
|
|
857
|
-
case "skill":
|
|
858
|
-
return {
|
|
859
|
-
icon: "FileCog",
|
|
860
|
-
className: styles10["badge--skill"],
|
|
861
|
-
label: "Skill"
|
|
862
|
-
};
|
|
863
|
-
case "media":
|
|
864
|
-
return {
|
|
865
|
-
icon: "FileImage",
|
|
866
|
-
className: styles10["badge--media"],
|
|
867
|
-
label: "Media"
|
|
868
|
-
};
|
|
869
|
-
case "guardrail":
|
|
870
|
-
return {
|
|
871
|
-
icon: "Fence",
|
|
872
|
-
className: styles10["badge--guardrail"],
|
|
873
|
-
label: "Guardrail"
|
|
874
|
-
};
|
|
875
|
-
case "model":
|
|
876
|
-
return {
|
|
877
|
-
icon: "Brain",
|
|
878
|
-
className: styles10["badge--model"],
|
|
879
|
-
label: "Model"
|
|
880
|
-
};
|
|
881
|
-
case "prompt":
|
|
882
|
-
return {
|
|
883
|
-
icon: "MessageSquareText",
|
|
884
|
-
className: styles10["badge--prompt"],
|
|
885
|
-
label: "Prompt"
|
|
886
|
-
};
|
|
887
|
-
case "system-prompt":
|
|
888
|
-
return {
|
|
889
|
-
icon: "MessageSquareCode",
|
|
890
|
-
className: styles10["badge--system-prompt"],
|
|
891
|
-
label: "System Prompt"
|
|
892
|
-
};
|
|
893
|
-
case "reasoning":
|
|
894
|
-
return {
|
|
895
|
-
icon: "MessageSquareMore",
|
|
896
|
-
className: styles10["badge--reasoning"],
|
|
897
|
-
label: "Reasoning"
|
|
898
|
-
};
|
|
899
|
-
case "token":
|
|
900
|
-
return {
|
|
901
|
-
icon: "Coins",
|
|
902
|
-
className: styles10["badge--token"],
|
|
903
|
-
label: "Token"
|
|
904
|
-
};
|
|
905
|
-
case "tool":
|
|
906
|
-
return {
|
|
907
|
-
icon: "Wrench",
|
|
908
|
-
className: styles10["badge--tool"],
|
|
909
|
-
label: "Tool"
|
|
910
|
-
};
|
|
911
|
-
case "config":
|
|
912
|
-
return {
|
|
913
|
-
icon: "Settings2",
|
|
914
|
-
className: styles10["badge--config"],
|
|
915
|
-
label: "Configuration"
|
|
916
|
-
};
|
|
917
|
-
case "unknown":
|
|
918
|
-
default:
|
|
919
|
-
return {
|
|
920
|
-
icon: "Box",
|
|
921
|
-
className: styles10["badge--unknown"],
|
|
922
|
-
label: "Unknown"
|
|
923
|
-
};
|
|
924
|
-
}
|
|
925
|
-
};
|
|
926
766
|
var CardContentHeader = forwardRef(
|
|
927
767
|
({ className, icon, heading, onButtonClick, ...props }, ref) => {
|
|
928
768
|
const shouldRender = heading || onButtonClick;
|
|
@@ -935,22 +775,22 @@ var CardContentHeader = forwardRef(
|
|
|
935
775
|
{
|
|
936
776
|
ref,
|
|
937
777
|
className: cn(
|
|
938
|
-
|
|
939
|
-
shouldWrap &&
|
|
778
|
+
styles10["card-content-header"],
|
|
779
|
+
shouldWrap && styles10["card-content-header--wrap"],
|
|
940
780
|
className
|
|
941
781
|
),
|
|
942
782
|
...props,
|
|
943
783
|
children: [
|
|
944
784
|
/* @__PURE__ */ jsx(Icon, { icon, background: "circle", elevation: "overlay" }),
|
|
945
|
-
onButtonClick && /* @__PURE__ */ jsx(Button, { className:
|
|
946
|
-
heading && /* @__PURE__ */ jsx("h3", { className: cn(
|
|
785
|
+
onButtonClick && /* @__PURE__ */ jsx(Button, { className: styles10.button, variant: "tertiary", size: "sm", onClick: onButtonClick, children: "See All" }),
|
|
786
|
+
heading && /* @__PURE__ */ jsx("h3", { className: cn(styles10.title, onButtonClick && styles10["title--button-click"]), children: heading })
|
|
947
787
|
]
|
|
948
788
|
}
|
|
949
789
|
);
|
|
950
790
|
}
|
|
951
791
|
);
|
|
952
792
|
CardContentHeader.displayName = "CardContentHeader";
|
|
953
|
-
var cardElevationVariants = generateElevationVariants(
|
|
793
|
+
var cardElevationVariants = generateElevationVariants(styles11, "card", ELEVATION.RAISED);
|
|
954
794
|
var Card = React15.forwardRef(({ className, hoverGradientClassName, elevation = ELEVATION.RAISED, ...props }, ref) => {
|
|
955
795
|
const shouldHaveHoverStyle = props.onClick !== void 0;
|
|
956
796
|
return /* @__PURE__ */ jsxs(
|
|
@@ -958,14 +798,14 @@ var Card = React15.forwardRef(({ className, hoverGradientClassName, elevation =
|
|
|
958
798
|
{
|
|
959
799
|
ref,
|
|
960
800
|
className: cn(
|
|
961
|
-
|
|
962
|
-
shouldHaveHoverStyle &&
|
|
801
|
+
styles11.card,
|
|
802
|
+
shouldHaveHoverStyle && styles11["card--hover"],
|
|
963
803
|
cardElevationVariants({ elevation }),
|
|
964
804
|
className
|
|
965
805
|
),
|
|
966
806
|
...props,
|
|
967
807
|
children: [
|
|
968
|
-
shouldHaveHoverStyle && /* @__PURE__ */ jsx("div", { className: cn(
|
|
808
|
+
shouldHaveHoverStyle && /* @__PURE__ */ jsx("div", { className: cn(styles11["card-hover-gradient"], hoverGradientClassName) }),
|
|
969
809
|
props.children
|
|
970
810
|
]
|
|
971
811
|
}
|
|
@@ -973,23 +813,23 @@ var Card = React15.forwardRef(({ className, hoverGradientClassName, elevation =
|
|
|
973
813
|
});
|
|
974
814
|
Card.displayName = "Card";
|
|
975
815
|
var CardHeader = React15.forwardRef(
|
|
976
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(
|
|
816
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(styles11["card-header"], className), ...props })
|
|
977
817
|
);
|
|
978
818
|
CardHeader.displayName = "CardHeader";
|
|
979
819
|
var CardTitle = React15.forwardRef(
|
|
980
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(
|
|
820
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(styles11["card-title"], className), ...props })
|
|
981
821
|
);
|
|
982
822
|
CardTitle.displayName = "CardTitle";
|
|
983
823
|
var CardDescription = React15.forwardRef(
|
|
984
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(
|
|
824
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(styles11["card-description"], className), ...props })
|
|
985
825
|
);
|
|
986
826
|
CardDescription.displayName = "CardDescription";
|
|
987
827
|
var CardContent = React15.forwardRef(
|
|
988
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(
|
|
828
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(styles11["card-content"], className), ...props })
|
|
989
829
|
);
|
|
990
830
|
CardContent.displayName = "CardContent";
|
|
991
831
|
var CardFooter = React15.forwardRef(
|
|
992
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(
|
|
832
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(styles11["card-footer"], className), ...props })
|
|
993
833
|
);
|
|
994
834
|
CardFooter.displayName = "CardFooter";
|
|
995
835
|
var CheckIcon = Check;
|
|
@@ -998,23 +838,23 @@ var Checkbox = React15.forwardRef(
|
|
|
998
838
|
CheckboxPrimitive.Root,
|
|
999
839
|
{
|
|
1000
840
|
ref,
|
|
1001
|
-
className: cn(
|
|
841
|
+
className: cn(styles12.checkbox, styles12[size], className),
|
|
1002
842
|
...props,
|
|
1003
|
-
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { className:
|
|
843
|
+
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { className: styles12.indicator, children: Icon3 ? /* @__PURE__ */ jsx(Icon3, { className: styles12.check }) : /* @__PURE__ */ jsx(CheckIcon, { className: styles12.check }) })
|
|
1004
844
|
}
|
|
1005
845
|
)
|
|
1006
846
|
);
|
|
1007
847
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
1008
|
-
var iconButtonVariants = cva(
|
|
848
|
+
var iconButtonVariants = cva(styles13["icon-btn"], {
|
|
1009
849
|
variants: {
|
|
1010
850
|
size: {
|
|
1011
|
-
sm:
|
|
1012
|
-
md:
|
|
1013
|
-
lg:
|
|
851
|
+
sm: styles13["size--sm"],
|
|
852
|
+
md: styles13["size--md"],
|
|
853
|
+
lg: styles13["size--lg"]
|
|
1014
854
|
},
|
|
1015
855
|
variant: {
|
|
1016
|
-
primary:
|
|
1017
|
-
danger:
|
|
856
|
+
primary: styles13["icon-btn--primary"],
|
|
857
|
+
danger: styles13["icon-btn--danger"]
|
|
1018
858
|
}
|
|
1019
859
|
},
|
|
1020
860
|
defaultVariants: {
|
|
@@ -1169,34 +1009,34 @@ var CodeBlock = ({
|
|
|
1169
1009
|
const lines = code.replace(/\n$/, "").split("\n").length;
|
|
1170
1010
|
return Array.from({ length: lines }, (_, index) => index + 1).join("\n");
|
|
1171
1011
|
}, [code, lineNumbers]);
|
|
1172
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
1173
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
1174
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
1175
|
-
title && /* @__PURE__ */ jsx("span", { className:
|
|
1176
|
-
/* @__PURE__ */ jsx(Badge, { variant: "neutral", className:
|
|
1012
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles14["code-block"], styles14[variant], className), children: [
|
|
1013
|
+
/* @__PURE__ */ jsxs("div", { className: styles14.header, children: [
|
|
1014
|
+
/* @__PURE__ */ jsxs("div", { className: styles14["header-left"], children: [
|
|
1015
|
+
title && /* @__PURE__ */ jsx("span", { className: styles14.title, children: title }),
|
|
1016
|
+
/* @__PURE__ */ jsx(Badge, { variant: "neutral", className: styles14.badge, children: language })
|
|
1177
1017
|
] }),
|
|
1178
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
1018
|
+
/* @__PURE__ */ jsx("div", { className: styles14["header-right"], children: /* @__PURE__ */ jsx(CopyButton, { value: copy || code, size: "sm" }) })
|
|
1179
1019
|
] }),
|
|
1180
1020
|
/* @__PURE__ */ jsx(
|
|
1181
1021
|
"div",
|
|
1182
1022
|
{
|
|
1183
|
-
className:
|
|
1023
|
+
className: styles14.content,
|
|
1184
1024
|
tabIndex: 0,
|
|
1185
1025
|
role: "group",
|
|
1186
1026
|
"aria-label": title ? `${title}, code block` : "Code block",
|
|
1187
|
-
children: /* @__PURE__ */ jsxs("div", { className: cn(
|
|
1188
|
-
gutter && /* @__PURE__ */ jsx("pre", { "aria-hidden": "true", className:
|
|
1189
|
-
/* @__PURE__ */ jsx("pre", { ref: preRef, className:
|
|
1027
|
+
children: /* @__PURE__ */ jsxs("div", { className: cn(styles14.body, { [styles14.numbered]: lineNumbers }), children: [
|
|
1028
|
+
gutter && /* @__PURE__ */ jsx("pre", { "aria-hidden": "true", className: styles14.gutter, children: gutter }),
|
|
1029
|
+
/* @__PURE__ */ jsx("pre", { ref: preRef, className: styles14.pre, ...{ [CODE_BLOCK_ATTRIBUTE]: "" }, children: /* @__PURE__ */ jsx(
|
|
1190
1030
|
"code",
|
|
1191
1031
|
{
|
|
1192
|
-
className: cn(
|
|
1032
|
+
className: cn(styles14.code, `language-${language}`, { [styles14.wrap]: !lineNumbers }),
|
|
1193
1033
|
children: code
|
|
1194
1034
|
}
|
|
1195
1035
|
) })
|
|
1196
1036
|
] })
|
|
1197
1037
|
}
|
|
1198
1038
|
),
|
|
1199
|
-
codeLabel && /* @__PURE__ */ jsx("div", { className:
|
|
1039
|
+
codeLabel && /* @__PURE__ */ jsx("div", { className: styles14["code-label"], children: /* @__PURE__ */ jsx("p", { className: styles14["code-label-text"], children: codeLabel }) })
|
|
1200
1040
|
] });
|
|
1201
1041
|
};
|
|
1202
1042
|
var Dialog = DialogPrimitive.Root;
|
|
@@ -1207,7 +1047,7 @@ var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1207
1047
|
DialogPrimitive.Overlay,
|
|
1208
1048
|
{
|
|
1209
1049
|
ref,
|
|
1210
|
-
className: cn(
|
|
1050
|
+
className: cn(styles15["dialog-overlay"], className),
|
|
1211
1051
|
...props
|
|
1212
1052
|
}
|
|
1213
1053
|
));
|
|
@@ -1218,7 +1058,7 @@ var DialogContainer = React15.forwardRef(({ className, children, size = "md", ..
|
|
|
1218
1058
|
DialogPrimitive.Content,
|
|
1219
1059
|
{
|
|
1220
1060
|
ref,
|
|
1221
|
-
className: cn(
|
|
1061
|
+
className: cn(styles15["dialog-content"], styles15[`dialog-content--size-${size}`], className),
|
|
1222
1062
|
onCloseAutoFocus: (event) => {
|
|
1223
1063
|
event.preventDefault();
|
|
1224
1064
|
document.body.style.pointerEvents = "";
|
|
@@ -1229,7 +1069,7 @@ var DialogContainer = React15.forwardRef(({ className, children, size = "md", ..
|
|
|
1229
1069
|
)
|
|
1230
1070
|
] }));
|
|
1231
1071
|
DialogContainer.displayName = DialogPrimitive.Content.displayName;
|
|
1232
|
-
var DialogHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
1072
|
+
var DialogHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles15["dialog-header-icon"], className), ...props });
|
|
1233
1073
|
DialogHeaderIcon.displayName = "DialogHeaderIcon";
|
|
1234
1074
|
var DialogHeader = ({ className, children, ...props }) => {
|
|
1235
1075
|
const childrenArray = React15.Children.toArray(children);
|
|
@@ -1239,30 +1079,30 @@ var DialogHeader = ({ className, children, ...props }) => {
|
|
|
1239
1079
|
const otherChildren = childrenArray.filter(
|
|
1240
1080
|
(child) => !(React15.isValidElement(child) && child.type === DialogHeaderIcon)
|
|
1241
1081
|
);
|
|
1242
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
1082
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles15["dialog-header"], className), ...props, children: [
|
|
1243
1083
|
icon,
|
|
1244
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
1084
|
+
/* @__PURE__ */ jsx("div", { className: styles15["dialog-header-content"], children: otherChildren }),
|
|
1245
1085
|
/* @__PURE__ */ jsx(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { name: "X", label: "Close", size: "sm" }) })
|
|
1246
1086
|
] });
|
|
1247
1087
|
};
|
|
1248
1088
|
DialogHeader.displayName = "DialogHeader";
|
|
1249
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
1089
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles15["dialog-footer"], className), ...props });
|
|
1250
1090
|
DialogFooter.displayName = "DialogFooter";
|
|
1251
|
-
var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, { ref, className: cn(
|
|
1091
|
+
var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, { ref, className: cn(styles15["dialog-title"], className), ...props }));
|
|
1252
1092
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1253
1093
|
var DialogDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1254
1094
|
DialogPrimitive.Description,
|
|
1255
1095
|
{
|
|
1256
1096
|
ref,
|
|
1257
|
-
className: cn(
|
|
1097
|
+
className: cn(styles15["dialog-description"], className),
|
|
1258
1098
|
...props
|
|
1259
1099
|
}
|
|
1260
1100
|
));
|
|
1261
1101
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1262
|
-
var DialogContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
1102
|
+
var DialogContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles15["dialog-body"], className), ...props });
|
|
1263
1103
|
DialogContent.displayName = "DialogContent";
|
|
1264
1104
|
function Command({ className, ...props }) {
|
|
1265
|
-
return /* @__PURE__ */ jsx(Command$1, { "data-slot": "command", className: cn(
|
|
1105
|
+
return /* @__PURE__ */ jsx(Command$1, { "data-slot": "command", className: cn(styles16.command, className), ...props });
|
|
1266
1106
|
}
|
|
1267
1107
|
function CommandDialog({
|
|
1268
1108
|
title = "Command Palette",
|
|
@@ -1271,24 +1111,24 @@ function CommandDialog({
|
|
|
1271
1111
|
...props
|
|
1272
1112
|
}) {
|
|
1273
1113
|
return /* @__PURE__ */ jsxs(Dialog, { ...props, children: [
|
|
1274
|
-
/* @__PURE__ */ jsxs(DialogHeader, { className:
|
|
1114
|
+
/* @__PURE__ */ jsxs(DialogHeader, { className: styles16["command-dialog-header"], children: [
|
|
1275
1115
|
/* @__PURE__ */ jsx(DialogTitle, { children: title }),
|
|
1276
1116
|
/* @__PURE__ */ jsx(DialogDescription, { children: description })
|
|
1277
1117
|
] }),
|
|
1278
|
-
/* @__PURE__ */ jsx(DialogContent, { className:
|
|
1118
|
+
/* @__PURE__ */ jsx(DialogContent, { className: styles16["command-dialog-content"], children: /* @__PURE__ */ jsx(Command, { className: styles16["command-dialog-content-inner"], children }) })
|
|
1279
1119
|
] });
|
|
1280
1120
|
}
|
|
1281
1121
|
function CommandInput({
|
|
1282
1122
|
className,
|
|
1283
1123
|
...props
|
|
1284
1124
|
}) {
|
|
1285
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "command-input-wrapper", className:
|
|
1286
|
-
/* @__PURE__ */ jsx(SearchIcon, { className:
|
|
1125
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "command-input-wrapper", className: styles16["command-input"], children: [
|
|
1126
|
+
/* @__PURE__ */ jsx(SearchIcon, { className: styles16["command-input-icon"] }),
|
|
1287
1127
|
/* @__PURE__ */ jsx(
|
|
1288
1128
|
Command$1.Input,
|
|
1289
1129
|
{
|
|
1290
1130
|
"data-slot": "command-input",
|
|
1291
|
-
className: cn(
|
|
1131
|
+
className: cn(styles16["command-input-input"], className),
|
|
1292
1132
|
...props
|
|
1293
1133
|
}
|
|
1294
1134
|
)
|
|
@@ -1299,7 +1139,7 @@ function CommandList({ className, ...props }) {
|
|
|
1299
1139
|
Command$1.List,
|
|
1300
1140
|
{
|
|
1301
1141
|
"data-slot": "command-list",
|
|
1302
|
-
className: cn(
|
|
1142
|
+
className: cn(styles16["command-list"], className),
|
|
1303
1143
|
...props
|
|
1304
1144
|
}
|
|
1305
1145
|
);
|
|
@@ -1309,7 +1149,7 @@ function CommandEmpty({ ...props }) {
|
|
|
1309
1149
|
Command$1.Empty,
|
|
1310
1150
|
{
|
|
1311
1151
|
"data-slot": "command-empty",
|
|
1312
|
-
className:
|
|
1152
|
+
className: styles16["command-empty"],
|
|
1313
1153
|
...props
|
|
1314
1154
|
}
|
|
1315
1155
|
);
|
|
@@ -1322,7 +1162,7 @@ function CommandGroup({
|
|
|
1322
1162
|
Command$1.Group,
|
|
1323
1163
|
{
|
|
1324
1164
|
"data-slot": "command-group",
|
|
1325
|
-
className: cn(
|
|
1165
|
+
className: cn(styles16["command-group"], className),
|
|
1326
1166
|
...props
|
|
1327
1167
|
}
|
|
1328
1168
|
);
|
|
@@ -1335,7 +1175,7 @@ function CommandSeparator({
|
|
|
1335
1175
|
Command$1.Separator,
|
|
1336
1176
|
{
|
|
1337
1177
|
"data-slot": "command-separator",
|
|
1338
|
-
className: cn(
|
|
1178
|
+
className: cn(styles16["command-separator"], className),
|
|
1339
1179
|
...props
|
|
1340
1180
|
}
|
|
1341
1181
|
);
|
|
@@ -1345,7 +1185,7 @@ function CommandItem({ className, ...props }) {
|
|
|
1345
1185
|
Command$1.Item,
|
|
1346
1186
|
{
|
|
1347
1187
|
"data-slot": "command-item",
|
|
1348
|
-
className: cn(
|
|
1188
|
+
className: cn(styles16["command-item"], className),
|
|
1349
1189
|
...props
|
|
1350
1190
|
}
|
|
1351
1191
|
);
|
|
@@ -1355,11 +1195,114 @@ function CommandShortcut({ className, ...props }) {
|
|
|
1355
1195
|
"span",
|
|
1356
1196
|
{
|
|
1357
1197
|
"data-slot": "command-shortcut",
|
|
1358
|
-
className: cn(
|
|
1198
|
+
className: cn(styles16["command-shortcut"], className),
|
|
1359
1199
|
...props
|
|
1360
1200
|
}
|
|
1361
1201
|
);
|
|
1362
1202
|
}
|
|
1203
|
+
var ControlStatusBadge = ({ status, display = "both" }) => {
|
|
1204
|
+
const config = getStatusConfig(status);
|
|
1205
|
+
if (config.subLabel) {
|
|
1206
|
+
if (display === "icon-only") {
|
|
1207
|
+
return /* @__PURE__ */ jsx(Badge, { icon: config.icon, display: "icon-only", className: config.className, variant: null, children: config.label });
|
|
1208
|
+
}
|
|
1209
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles17["split-badge"], config.className), children: [
|
|
1210
|
+
/* @__PURE__ */ jsxs("span", { className: styles17["split-badge__status"], children: [
|
|
1211
|
+
display !== "text-only" && /* @__PURE__ */ jsx(Icon, { icon: config.icon, size: "xs", className: styles17["icon"] }),
|
|
1212
|
+
config.label
|
|
1213
|
+
] }),
|
|
1214
|
+
/* @__PURE__ */ jsx("span", { className: styles17["split-badge__sub-status"], children: config.subLabel })
|
|
1215
|
+
] });
|
|
1216
|
+
}
|
|
1217
|
+
return /* @__PURE__ */ jsx(Badge, { icon: config.icon, display, className: config.className, variant: null, children: config.label });
|
|
1218
|
+
};
|
|
1219
|
+
var getStatusConfig = (status) => {
|
|
1220
|
+
switch (status) {
|
|
1221
|
+
case "in-progress":
|
|
1222
|
+
return {
|
|
1223
|
+
icon: "Clock",
|
|
1224
|
+
className: styles17["badge--in-progress"],
|
|
1225
|
+
label: "In Progress"
|
|
1226
|
+
};
|
|
1227
|
+
case "not-started":
|
|
1228
|
+
return {
|
|
1229
|
+
icon: "CircleDashed",
|
|
1230
|
+
className: styles17["badge--not-started"],
|
|
1231
|
+
label: "Not Started"
|
|
1232
|
+
};
|
|
1233
|
+
case "ready-for-review":
|
|
1234
|
+
return {
|
|
1235
|
+
icon: "ClipboardCheck",
|
|
1236
|
+
className: styles17["badge--ready-for-review"],
|
|
1237
|
+
label: "Ready for Review"
|
|
1238
|
+
};
|
|
1239
|
+
case "in-review":
|
|
1240
|
+
return {
|
|
1241
|
+
icon: "Eye",
|
|
1242
|
+
className: styles17["badge--in-review"],
|
|
1243
|
+
label: "In Review"
|
|
1244
|
+
};
|
|
1245
|
+
case "comment":
|
|
1246
|
+
return {
|
|
1247
|
+
icon: "Eye",
|
|
1248
|
+
className: styles17["badge--comment"],
|
|
1249
|
+
label: "In Review",
|
|
1250
|
+
subLabel: "General"
|
|
1251
|
+
};
|
|
1252
|
+
case "not-applicable":
|
|
1253
|
+
return {
|
|
1254
|
+
icon: "MinusCircle",
|
|
1255
|
+
className: styles17["badge--not-applicable"],
|
|
1256
|
+
label: "Not Applicable"
|
|
1257
|
+
};
|
|
1258
|
+
case "accepted":
|
|
1259
|
+
return {
|
|
1260
|
+
icon: "Eye",
|
|
1261
|
+
className: styles17["badge--accepted"],
|
|
1262
|
+
label: "In Review",
|
|
1263
|
+
subLabel: "Accepted"
|
|
1264
|
+
};
|
|
1265
|
+
case "questioned":
|
|
1266
|
+
return {
|
|
1267
|
+
icon: "Eye",
|
|
1268
|
+
className: styles17["badge--question"],
|
|
1269
|
+
label: "In Review",
|
|
1270
|
+
subLabel: "Questioned"
|
|
1271
|
+
};
|
|
1272
|
+
case "compliant":
|
|
1273
|
+
return {
|
|
1274
|
+
icon: /* @__PURE__ */ jsx(CircleCheckFillIcon, {}),
|
|
1275
|
+
className: styles17["badge--compliant"],
|
|
1276
|
+
label: "Compliant"
|
|
1277
|
+
};
|
|
1278
|
+
case "non-compliant":
|
|
1279
|
+
return {
|
|
1280
|
+
icon: "X",
|
|
1281
|
+
className: styles17["badge--non-compliant"],
|
|
1282
|
+
label: "Non-compliant"
|
|
1283
|
+
};
|
|
1284
|
+
default:
|
|
1285
|
+
return {
|
|
1286
|
+
icon: "CircleDashed",
|
|
1287
|
+
className: styles17["badge--not-started"],
|
|
1288
|
+
label: status
|
|
1289
|
+
};
|
|
1290
|
+
}
|
|
1291
|
+
};
|
|
1292
|
+
var CircleCheckFillIcon = ({ className }) => {
|
|
1293
|
+
return /* @__PURE__ */ jsx(
|
|
1294
|
+
"svg",
|
|
1295
|
+
{
|
|
1296
|
+
className,
|
|
1297
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1298
|
+
width: "12",
|
|
1299
|
+
height: "12",
|
|
1300
|
+
viewBox: "0 0 24 24",
|
|
1301
|
+
fill: "currentColor",
|
|
1302
|
+
children: /* @__PURE__ */ jsx("path", { d: "M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM15.707 9.29297C15.3165 8.90245 14.6835 8.90244 14.293 9.29297L11 12.5859L9.70703 11.293C9.31651 10.9024 8.68349 10.9024 8.29297 11.293C7.90244 11.6835 7.90245 12.3165 8.29297 12.707L10.293 14.707C10.6835 15.0976 11.3165 15.0976 11.707 14.707L15.707 10.707C16.0976 10.3165 16.0976 9.68349 15.707 9.29297Z" })
|
|
1303
|
+
}
|
|
1304
|
+
);
|
|
1305
|
+
};
|
|
1363
1306
|
var Popover = PopoverPrimitive.Root;
|
|
1364
1307
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1365
1308
|
var PopoverPortal = ({ children }) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { container: usePortalContainer(), children });
|
|
@@ -1749,6 +1692,12 @@ function useListSearchState(open) {
|
|
|
1749
1692
|
const [visible, setVisible] = React15.useState(false);
|
|
1750
1693
|
const [query, setQuery] = React15.useState("");
|
|
1751
1694
|
const [listId, setListId] = React15.useState(void 0);
|
|
1695
|
+
const [lockedSide, setLockedSide] = React15.useState(void 0);
|
|
1696
|
+
const interactedRef = React15.useRef(false);
|
|
1697
|
+
const markInteracted = React15.useCallback(() => {
|
|
1698
|
+
interactedRef.current = true;
|
|
1699
|
+
}, []);
|
|
1700
|
+
const interactedSinceOpen = React15.useCallback(() => interactedRef.current, []);
|
|
1752
1701
|
const [focusSignal, setFocusSignal] = React15.useState(0);
|
|
1753
1702
|
const requestFocus = React15.useCallback(() => setFocusSignal((n) => n + 1), []);
|
|
1754
1703
|
const { registerItem, unregisterItem, matchCount } = useMatchRegistry();
|
|
@@ -1756,15 +1705,23 @@ function useListSearchState(open) {
|
|
|
1756
1705
|
setVisible(true);
|
|
1757
1706
|
setQuery(seed);
|
|
1758
1707
|
}, []);
|
|
1759
|
-
const
|
|
1708
|
+
const resetStateForOpen = React15.useCallback(() => {
|
|
1760
1709
|
setVisible(false);
|
|
1761
1710
|
setQuery("");
|
|
1711
|
+
setLockedSide(void 0);
|
|
1762
1712
|
}, []);
|
|
1713
|
+
const resetForOpen = React15.useCallback(() => {
|
|
1714
|
+
resetStateForOpen();
|
|
1715
|
+
interactedRef.current = false;
|
|
1716
|
+
}, [resetStateForOpen]);
|
|
1763
1717
|
const [previousOpen, setPreviousOpen] = React15.useState(open);
|
|
1764
1718
|
if (open !== previousOpen) {
|
|
1765
1719
|
setPreviousOpen(open);
|
|
1766
|
-
if (open)
|
|
1720
|
+
if (open) resetStateForOpen();
|
|
1767
1721
|
}
|
|
1722
|
+
React15.useEffect(() => {
|
|
1723
|
+
if (open) interactedRef.current = false;
|
|
1724
|
+
}, [open]);
|
|
1768
1725
|
return React15.useMemo(
|
|
1769
1726
|
() => ({
|
|
1770
1727
|
enabled,
|
|
@@ -1780,7 +1737,11 @@ function useListSearchState(open) {
|
|
|
1780
1737
|
matchCount,
|
|
1781
1738
|
resetForOpen,
|
|
1782
1739
|
listId,
|
|
1783
|
-
setListId
|
|
1740
|
+
setListId,
|
|
1741
|
+
lockedSide,
|
|
1742
|
+
lockSide: setLockedSide,
|
|
1743
|
+
markInteracted,
|
|
1744
|
+
interactedSinceOpen
|
|
1784
1745
|
}),
|
|
1785
1746
|
[
|
|
1786
1747
|
enabled,
|
|
@@ -1793,10 +1754,28 @@ function useListSearchState(open) {
|
|
|
1793
1754
|
unregisterItem,
|
|
1794
1755
|
matchCount,
|
|
1795
1756
|
resetForOpen,
|
|
1796
|
-
listId
|
|
1757
|
+
listId,
|
|
1758
|
+
lockedSide,
|
|
1759
|
+
markInteracted,
|
|
1760
|
+
interactedSinceOpen
|
|
1797
1761
|
]
|
|
1798
1762
|
);
|
|
1799
1763
|
}
|
|
1764
|
+
function useSearchSideLock(state, contentRef, {
|
|
1765
|
+
side,
|
|
1766
|
+
avoidCollisions,
|
|
1767
|
+
enabled = true
|
|
1768
|
+
}) {
|
|
1769
|
+
const searching = isSearchActive(state);
|
|
1770
|
+
const lockedSide = state?.lockedSide;
|
|
1771
|
+
const lockSide = state?.lockSide;
|
|
1772
|
+
React15.useEffect(() => {
|
|
1773
|
+
if (!enabled || !searching || lockedSide) return;
|
|
1774
|
+
const placed = contentRef.current?.dataset.side;
|
|
1775
|
+
if (placed) lockSide?.(placed);
|
|
1776
|
+
}, [enabled, searching, lockedSide, lockSide, contentRef]);
|
|
1777
|
+
return lockedSide && enabled ? { side: lockedSide, avoidCollisions: false } : { side, avoidCollisions };
|
|
1778
|
+
}
|
|
1800
1779
|
var isSearchActive = (state) => !!state && state.query.trim().length > 0;
|
|
1801
1780
|
var isSearchEmpty = (state) => isSearchActive(state) && state.matchCount === 0;
|
|
1802
1781
|
var formatResultCount = (count2) => `${count2} result${count2 === 1 ? "" : "s"} available`;
|
|
@@ -1822,11 +1801,11 @@ function useRegisterMatch(registry, enabled, id, matches) {
|
|
|
1822
1801
|
return () => unregisterItem(id);
|
|
1823
1802
|
}, [enabled, registerItem, unregisterItem, id, matches]);
|
|
1824
1803
|
}
|
|
1825
|
-
function useFilterableItem(state, textValue, children, group) {
|
|
1804
|
+
function useFilterableItem(state, textValue, children, { group, persistent = false } = {}) {
|
|
1826
1805
|
const id = React15.useId();
|
|
1827
|
-
const matches = matchesQuery(state?.query ?? "", textValue, children);
|
|
1806
|
+
const matches = persistent || matchesQuery(state?.query ?? "", textValue, children);
|
|
1828
1807
|
const enabled = state?.enabled ?? false;
|
|
1829
|
-
useRegisterMatch(state, enabled, id, matches);
|
|
1808
|
+
useRegisterMatch(state, enabled && !persistent, id, matches);
|
|
1830
1809
|
useRegisterMatch(group, enabled, id, matches);
|
|
1831
1810
|
return matches;
|
|
1832
1811
|
}
|
|
@@ -1853,6 +1832,46 @@ function useSearchInput(state, alwaysVisible, forwardedRef) {
|
|
|
1853
1832
|
}, [alwaysVisible, visible, reveal]);
|
|
1854
1833
|
return { ref, isRendered: alwaysVisible || visible };
|
|
1855
1834
|
}
|
|
1835
|
+
function useSearchQuery(state) {
|
|
1836
|
+
const { query } = state;
|
|
1837
|
+
const isSearching = isSearchActive(state);
|
|
1838
|
+
return React15.useMemo(
|
|
1839
|
+
() => ({
|
|
1840
|
+
query,
|
|
1841
|
+
isSearching,
|
|
1842
|
+
matches: (textValue) => matchesQuery(query, textValue, null)
|
|
1843
|
+
}),
|
|
1844
|
+
[query, isSearching]
|
|
1845
|
+
);
|
|
1846
|
+
}
|
|
1847
|
+
function handleListKeyDown(state, event, { searchSelector, itemSelector }) {
|
|
1848
|
+
if (!state?.enabled) return;
|
|
1849
|
+
const target = event.target;
|
|
1850
|
+
if (target?.closest(searchSelector)) return;
|
|
1851
|
+
if (event.key === "ArrowUp" && state.visible) {
|
|
1852
|
+
const firstItem = event.currentTarget.querySelector(itemSelector);
|
|
1853
|
+
if (firstItem && firstItem === target?.closest(itemSelector)) {
|
|
1854
|
+
event.preventDefault();
|
|
1855
|
+
state.requestFocus();
|
|
1856
|
+
return;
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
if (event.defaultPrevented) return;
|
|
1860
|
+
if (event.key === "Backspace" && state.visible && state.query) {
|
|
1861
|
+
event.preventDefault();
|
|
1862
|
+
state.setQuery(state.query.slice(0, -1));
|
|
1863
|
+
state.requestFocus();
|
|
1864
|
+
return;
|
|
1865
|
+
}
|
|
1866
|
+
if (!isPrintableKey(event)) return;
|
|
1867
|
+
event.preventDefault();
|
|
1868
|
+
if (!state.visible) {
|
|
1869
|
+
state.reveal(event.key);
|
|
1870
|
+
} else {
|
|
1871
|
+
state.setQuery(state.query + event.key);
|
|
1872
|
+
state.requestFocus();
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1856
1875
|
var isPrintableKey = (event) => event.key.length === 1 && !event.metaKey && !event.ctrlKey && !event.altKey && /\S/.test(event.key);
|
|
1857
1876
|
function assignRefs(node, ...refs) {
|
|
1858
1877
|
refs.forEach((ref) => {
|
|
@@ -1867,6 +1886,13 @@ var SearchIcon2 = Search;
|
|
|
1867
1886
|
var DropdownMenuSearchContext = React15.createContext(null);
|
|
1868
1887
|
var useDropdownMenuSearch = () => React15.useContext(DropdownMenuSearchContext);
|
|
1869
1888
|
var useIsSearching = () => isSearchActive(useDropdownMenuSearch());
|
|
1889
|
+
var useDropdownMenuSearchQuery = () => {
|
|
1890
|
+
const ctx = useDropdownMenuSearch();
|
|
1891
|
+
if (!ctx) {
|
|
1892
|
+
throw new Error("useDropdownMenuSearchQuery must be used within a DropdownMenu");
|
|
1893
|
+
}
|
|
1894
|
+
return useSearchQuery(ctx);
|
|
1895
|
+
};
|
|
1870
1896
|
var DropdownMenuBreadcrumbContext = React15.createContext([]);
|
|
1871
1897
|
var useBreadcrumbAncestry = () => React15.useContext(DropdownMenuBreadcrumbContext);
|
|
1872
1898
|
var SUB_CONTENT_NAME = "DropdownMenuSubContent";
|
|
@@ -1963,80 +1989,81 @@ var DropdownMenuSub = ({
|
|
|
1963
1989
|
}
|
|
1964
1990
|
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, { ...props, children });
|
|
1965
1991
|
};
|
|
1966
|
-
var
|
|
1967
|
-
var
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
if (openFocusHandledRef.current) return;
|
|
1993
|
-
openFocusHandledRef.current = true;
|
|
1994
|
-
if (event.target !== event.currentTarget || !ctx?.enabled || !ctx.visible) return;
|
|
1995
|
-
ctx.requestFocus();
|
|
1996
|
-
},
|
|
1997
|
-
onKeyDown: (event) => {
|
|
1998
|
-
onKeyDown?.(event);
|
|
1999
|
-
if (!ctx?.enabled) return;
|
|
2000
|
-
if (event.key === "ArrowUp" && ctx.visible) {
|
|
2001
|
-
const itemTarget = event.target?.closest(
|
|
2002
|
-
MENU_ITEM_SELECTOR
|
|
2003
|
-
);
|
|
2004
|
-
const items = Array.from(
|
|
2005
|
-
event.currentTarget.querySelectorAll(MENU_ITEM_SELECTOR)
|
|
2006
|
-
);
|
|
2007
|
-
if (itemTarget && items[0] === itemTarget) {
|
|
2008
|
-
event.preventDefault();
|
|
2009
|
-
ctx.requestFocus();
|
|
2010
|
-
return;
|
|
2011
|
-
}
|
|
2012
|
-
}
|
|
2013
|
-
if (event.defaultPrevented) return;
|
|
2014
|
-
if (!isPrintableKey(event)) return;
|
|
2015
|
-
const target = event.target;
|
|
2016
|
-
if (target?.closest?.("[data-dropdown-search]")) return;
|
|
2017
|
-
event.preventDefault();
|
|
2018
|
-
if (!ctx.visible) {
|
|
2019
|
-
ctx.reveal(event.key);
|
|
2020
|
-
} else {
|
|
2021
|
-
ctx.setQuery(ctx.query + event.key);
|
|
2022
|
-
ctx.requestFocus();
|
|
2023
|
-
}
|
|
1992
|
+
var SEARCH_INPUT_SELECTOR = "[data-dropdown-search]";
|
|
1993
|
+
var MENU_ITEM_SELECTOR = ':is([role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]):not([data-disabled])';
|
|
1994
|
+
var MATCHING_ITEM_SELECTOR = `${MENU_ITEM_SELECTOR}:not([data-persistent])`;
|
|
1995
|
+
var DropdownMenuContent = React15.forwardRef(
|
|
1996
|
+
({
|
|
1997
|
+
className,
|
|
1998
|
+
children,
|
|
1999
|
+
sideOffset = 4,
|
|
2000
|
+
onKeyDown,
|
|
2001
|
+
onKeyDownCapture,
|
|
2002
|
+
onPointerMoveCapture,
|
|
2003
|
+
onFocus,
|
|
2004
|
+
side,
|
|
2005
|
+
avoidCollisions,
|
|
2006
|
+
...props
|
|
2007
|
+
}, ref) => {
|
|
2008
|
+
const ctx = useDropdownMenuSearch();
|
|
2009
|
+
const setListId = ctx?.setListId;
|
|
2010
|
+
const searching = isSearchActive(ctx);
|
|
2011
|
+
const resultCount = ctx?.matchCount ?? 0;
|
|
2012
|
+
const contentRef = React15.useRef(null);
|
|
2013
|
+
const sideProps = useSearchSideLock(ctx, contentRef, { side, avoidCollisions });
|
|
2014
|
+
const composedContentRef = React15.useCallback(
|
|
2015
|
+
(node) => {
|
|
2016
|
+
assignRefs(node, ref, contentRef);
|
|
2017
|
+
setListId?.(node?.id || void 0);
|
|
2024
2018
|
},
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
}
|
|
2019
|
+
[ref, setListId]
|
|
2020
|
+
);
|
|
2021
|
+
const handleFocus = (event) => {
|
|
2022
|
+
onFocus?.(event);
|
|
2023
|
+
if (!ctx?.enabled || !ctx.visible || ctx.interactedSinceOpen()) return;
|
|
2024
|
+
if (event.target !== event.currentTarget) return;
|
|
2025
|
+
ctx.requestFocus();
|
|
2026
|
+
};
|
|
2027
|
+
const handleKeyDown = (event) => {
|
|
2028
|
+
onKeyDown?.(event);
|
|
2029
|
+
handleListKeyDown(ctx, event, {
|
|
2030
|
+
searchSelector: SEARCH_INPUT_SELECTOR,
|
|
2031
|
+
itemSelector: MENU_ITEM_SELECTOR
|
|
2032
|
+
});
|
|
2033
|
+
};
|
|
2034
|
+
return /* @__PURE__ */ jsx(DropdownMenuPortal, { children: /* @__PURE__ */ jsxs(
|
|
2035
|
+
DropdownMenuPrimitive.Content,
|
|
2036
|
+
{
|
|
2037
|
+
ref: composedContentRef,
|
|
2038
|
+
className: cn(styles22["dropdown-menu-content"], className),
|
|
2039
|
+
sideOffset,
|
|
2040
|
+
...sideProps,
|
|
2041
|
+
onFocus: handleFocus,
|
|
2042
|
+
onKeyDown: handleKeyDown,
|
|
2043
|
+
onKeyDownCapture: (event) => {
|
|
2044
|
+
onKeyDownCapture?.(event);
|
|
2045
|
+
ctx?.markInteracted();
|
|
2046
|
+
},
|
|
2047
|
+
onPointerMoveCapture: (event) => {
|
|
2048
|
+
onPointerMoveCapture?.(event);
|
|
2049
|
+
ctx?.markInteracted();
|
|
2050
|
+
},
|
|
2051
|
+
...props,
|
|
2052
|
+
children: [
|
|
2053
|
+
ctx?.enabled ? /* @__PURE__ */ jsx("div", { className: styles22["dropdown-menu-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
|
|
2054
|
+
children
|
|
2055
|
+
]
|
|
2056
|
+
}
|
|
2057
|
+
) });
|
|
2058
|
+
}
|
|
2059
|
+
);
|
|
2033
2060
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
2034
2061
|
var DropdownMenuSearch = React15.forwardRef(
|
|
2035
2062
|
({
|
|
2036
2063
|
className,
|
|
2037
2064
|
placeholder = "Search...",
|
|
2038
2065
|
icon,
|
|
2039
|
-
alwaysVisible =
|
|
2066
|
+
alwaysVisible = true,
|
|
2040
2067
|
onKeyDown,
|
|
2041
2068
|
"aria-label": ariaLabel,
|
|
2042
2069
|
...props
|
|
@@ -2071,8 +2098,11 @@ var DropdownMenuSearch = React15.forwardRef(
|
|
|
2071
2098
|
const items = menu ? Array.from(menu.querySelectorAll(MENU_ITEM_SELECTOR)) : [];
|
|
2072
2099
|
if (!items.length || event.defaultPrevented) return;
|
|
2073
2100
|
event.preventDefault();
|
|
2074
|
-
if (event.key === "Enter")
|
|
2075
|
-
|
|
2101
|
+
if (event.key === "Enter") {
|
|
2102
|
+
menu?.querySelector(MATCHING_ITEM_SELECTOR)?.click();
|
|
2103
|
+
} else {
|
|
2104
|
+
(event.key === "ArrowUp" ? items[items.length - 1] : items[0]).focus();
|
|
2105
|
+
}
|
|
2076
2106
|
return;
|
|
2077
2107
|
}
|
|
2078
2108
|
if (["Escape", "Tab"].includes(event.key)) return;
|
|
@@ -2112,8 +2142,8 @@ var ItemBreadcrumb = () => {
|
|
|
2112
2142
|
/* @__PURE__ */ jsx(ChevronRightIcon2, {})
|
|
2113
2143
|
] }, index)) });
|
|
2114
2144
|
};
|
|
2115
|
-
var DropdownMenuItem = React15.forwardRef(({ className, inset, variant = "neutral", textValue, children, ...props }, ref) => {
|
|
2116
|
-
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children);
|
|
2145
|
+
var DropdownMenuItem = React15.forwardRef(({ className, inset, variant = "neutral", textValue, persistent, children, ...props }, ref) => {
|
|
2146
|
+
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children, { persistent });
|
|
2117
2147
|
if (!visible) return null;
|
|
2118
2148
|
return /* @__PURE__ */ jsxs(
|
|
2119
2149
|
DropdownMenuPrimitive.Item,
|
|
@@ -2128,6 +2158,7 @@ var DropdownMenuItem = React15.forwardRef(({ className, inset, variant = "neutra
|
|
|
2128
2158
|
className
|
|
2129
2159
|
),
|
|
2130
2160
|
...props,
|
|
2161
|
+
"data-persistent": persistent ? "" : void 0,
|
|
2131
2162
|
children: [
|
|
2132
2163
|
/* @__PURE__ */ jsx(ItemBreadcrumb, {}),
|
|
2133
2164
|
children
|
|
@@ -2136,8 +2167,8 @@ var DropdownMenuItem = React15.forwardRef(({ className, inset, variant = "neutra
|
|
|
2136
2167
|
);
|
|
2137
2168
|
});
|
|
2138
2169
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
2139
|
-
var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, checked, textValue, ...props }, ref) => {
|
|
2140
|
-
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children);
|
|
2170
|
+
var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, checked, textValue, persistent, ...props }, ref) => {
|
|
2171
|
+
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children, { persistent });
|
|
2141
2172
|
if (!visible) return null;
|
|
2142
2173
|
return /* @__PURE__ */ jsxs(
|
|
2143
2174
|
DropdownMenuPrimitive.CheckboxItem,
|
|
@@ -2147,6 +2178,7 @@ var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, checke
|
|
|
2147
2178
|
className: cn(styles22["dropdown-menu-checkbox-item"], className),
|
|
2148
2179
|
checked,
|
|
2149
2180
|
...props,
|
|
2181
|
+
"data-persistent": persistent ? "" : void 0,
|
|
2150
2182
|
children: [
|
|
2151
2183
|
/* @__PURE__ */ jsx("span", { className: styles22["dropdown-menu-item-indicator-checkbox"], children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon2, { className: styles22["icon-size"] }) }) }),
|
|
2152
2184
|
/* @__PURE__ */ jsx(ItemBreadcrumb, {}),
|
|
@@ -2156,8 +2188,8 @@ var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, checke
|
|
|
2156
2188
|
);
|
|
2157
2189
|
});
|
|
2158
2190
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
2159
|
-
var DropdownMenuRadioItem = React15.forwardRef(({ className, children, textValue, ...props }, ref) => {
|
|
2160
|
-
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children);
|
|
2191
|
+
var DropdownMenuRadioItem = React15.forwardRef(({ className, children, textValue, persistent, ...props }, ref) => {
|
|
2192
|
+
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children, { persistent });
|
|
2161
2193
|
if (!visible) return null;
|
|
2162
2194
|
return /* @__PURE__ */ jsxs(
|
|
2163
2195
|
DropdownMenuPrimitive.RadioItem,
|
|
@@ -2166,6 +2198,7 @@ var DropdownMenuRadioItem = React15.forwardRef(({ className, children, textValue
|
|
|
2166
2198
|
textValue,
|
|
2167
2199
|
className: cn(styles22["dropdown-menu-radio-item"], className),
|
|
2168
2200
|
...props,
|
|
2201
|
+
"data-persistent": persistent ? "" : void 0,
|
|
2169
2202
|
children: [
|
|
2170
2203
|
/* @__PURE__ */ jsx("span", { className: styles22["dropdown-menu-item-indicator-radio"], children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: styles22["radio-icon"] }) }) }),
|
|
2171
2204
|
/* @__PURE__ */ jsx(ItemBreadcrumb, {}),
|
|
@@ -2192,9 +2225,9 @@ var DropdownMenuLabel = React15.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2192
2225
|
);
|
|
2193
2226
|
});
|
|
2194
2227
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
2195
|
-
var DropdownMenuSeparator = React15.forwardRef(({ className, ...props }, ref) => {
|
|
2228
|
+
var DropdownMenuSeparator = React15.forwardRef(({ className, persistent, ...props }, ref) => {
|
|
2196
2229
|
const searching = useIsSearching();
|
|
2197
|
-
if (searching) return null;
|
|
2230
|
+
if (searching && !persistent) return null;
|
|
2198
2231
|
return /* @__PURE__ */ jsx(
|
|
2199
2232
|
DropdownMenuPrimitive.Separator,
|
|
2200
2233
|
{
|
|
@@ -2246,9 +2279,15 @@ var FilterDropdown = ({
|
|
|
2246
2279
|
const filteredOptions = options.filter(
|
|
2247
2280
|
(option) => option.value && option.value.trim() !== "" && option.label && option.label.trim() !== ""
|
|
2248
2281
|
);
|
|
2282
|
+
const handleClearAll = (event) => {
|
|
2283
|
+
event.preventDefault();
|
|
2284
|
+
const menu = event.currentTarget.closest('[role="menu"]');
|
|
2285
|
+
(menu?.querySelector("[data-dropdown-search]") ?? menu)?.focus();
|
|
2286
|
+
onClearAll();
|
|
2287
|
+
};
|
|
2249
2288
|
const clearAll = (className) => (
|
|
2250
|
-
//
|
|
2251
|
-
/* @__PURE__ */ jsx(DropdownMenuItem, { textValue: "", onSelect:
|
|
2289
|
+
// Keep textValue empty: without search, typeahead would otherwise land a typed "c" on Clear all
|
|
2290
|
+
/* @__PURE__ */ jsx(DropdownMenuItem, { persistent: true, textValue: "", onSelect: handleClearAll, className, children: /* @__PURE__ */ jsx("span", { className: buttonVariants({ variant: "link", size: "sm" }), children: "Clear all" }) })
|
|
2252
2291
|
);
|
|
2253
2292
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
2254
2293
|
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ jsxs(
|
|
@@ -2273,7 +2312,7 @@ var FilterDropdown = ({
|
|
|
2273
2312
|
className: cn(styles24["dropdown-menu-content"], contentClassName),
|
|
2274
2313
|
children: [
|
|
2275
2314
|
searchable && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2276
|
-
/* @__PURE__ */ jsx(DropdownMenuSearch, {
|
|
2315
|
+
/* @__PURE__ */ jsx(DropdownMenuSearch, { placeholder: searchPlaceholder, "aria-label": label }),
|
|
2277
2316
|
/* @__PURE__ */ jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
|
|
2278
2317
|
] }),
|
|
2279
2318
|
!searchable && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -2297,7 +2336,7 @@ var FilterDropdown = ({
|
|
|
2297
2336
|
);
|
|
2298
2337
|
}),
|
|
2299
2338
|
searchable && hasSelectedFilters && /* @__PURE__ */ jsxs("div", { className: styles24["clear-all-footer"], children: [
|
|
2300
|
-
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
2339
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, { persistent: true }),
|
|
2301
2340
|
clearAll(styles24["clear-all"])
|
|
2302
2341
|
] })
|
|
2303
2342
|
]
|
|
@@ -2390,6 +2429,169 @@ var FormMessage = React15.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2390
2429
|
return /* @__PURE__ */ jsx("p", { ref, id: formMessageId, className: cn(styles26["form-message"], className), ...props, children: body });
|
|
2391
2430
|
});
|
|
2392
2431
|
FormMessage.displayName = "FormMessage";
|
|
2432
|
+
var DEFAULT_LOCALE = "en-US";
|
|
2433
|
+
var DEFAULT_ABSOLUTE_OPTIONS = {
|
|
2434
|
+
year: "numeric",
|
|
2435
|
+
month: "short",
|
|
2436
|
+
day: "2-digit",
|
|
2437
|
+
hour: "2-digit",
|
|
2438
|
+
minute: "2-digit",
|
|
2439
|
+
second: "2-digit",
|
|
2440
|
+
hour12: false,
|
|
2441
|
+
timeZoneName: "short"
|
|
2442
|
+
};
|
|
2443
|
+
var RELATIVE_DIVISIONS = [
|
|
2444
|
+
{ amount: 60, unit: "second" },
|
|
2445
|
+
{ amount: 60, unit: "minute" },
|
|
2446
|
+
{ amount: 24, unit: "hour" },
|
|
2447
|
+
{ amount: 7, unit: "day" },
|
|
2448
|
+
{ amount: 4.34524, unit: "week" },
|
|
2449
|
+
{ amount: 12, unit: "month" },
|
|
2450
|
+
{ amount: Number.POSITIVE_INFINITY, unit: "year" }
|
|
2451
|
+
];
|
|
2452
|
+
var LIVE_INTERVAL_MS = 3e4;
|
|
2453
|
+
var MINUTE_MS = 6e4;
|
|
2454
|
+
var HOUR_MS = 60 * MINUTE_MS;
|
|
2455
|
+
var DAY_MS = 24 * HOUR_MS;
|
|
2456
|
+
var YEAR_MS = 365.25 * DAY_MS;
|
|
2457
|
+
var MONTH_MS = YEAR_MS / 12;
|
|
2458
|
+
var JUST_NOW_MS = 45e3;
|
|
2459
|
+
var COARSE_AFTER_MS = 90 * DAY_MS;
|
|
2460
|
+
var FINE_UNITS = [
|
|
2461
|
+
{ ms: DAY_MS, unit: "day" },
|
|
2462
|
+
{ ms: HOUR_MS, unit: "hour" },
|
|
2463
|
+
{ ms: MINUTE_MS, unit: "minute" }
|
|
2464
|
+
];
|
|
2465
|
+
var COARSE_UNITS = [
|
|
2466
|
+
{ ms: YEAR_MS, unit: "year" },
|
|
2467
|
+
{ ms: MONTH_MS, unit: "month" }
|
|
2468
|
+
];
|
|
2469
|
+
var NO_DATE_PLACEHOLDER = "---";
|
|
2470
|
+
function isMissing(value) {
|
|
2471
|
+
return value == null || typeof value === "string" && value.trim() === "";
|
|
2472
|
+
}
|
|
2473
|
+
function toDate(value) {
|
|
2474
|
+
const date = value instanceof Date ? value : new Date(value);
|
|
2475
|
+
return Number.isNaN(date.getTime()) ? null : date;
|
|
2476
|
+
}
|
|
2477
|
+
function formatAbsolute(date, timeZone, options, locale) {
|
|
2478
|
+
return new Intl.DateTimeFormat(locale, { ...options, timeZone }).format(date);
|
|
2479
|
+
}
|
|
2480
|
+
function formatRelative(date, now, locale) {
|
|
2481
|
+
if (Math.abs(date.getTime() - now.getTime()) < JUST_NOW_MS) return "Just now";
|
|
2482
|
+
let duration = (date.getTime() - now.getTime()) / 1e3;
|
|
2483
|
+
const rtf = new Intl.RelativeTimeFormat(locale, { numeric: "auto" });
|
|
2484
|
+
for (const division of RELATIVE_DIVISIONS) {
|
|
2485
|
+
if (Math.abs(duration) < division.amount) {
|
|
2486
|
+
return rtf.format(Math.round(duration), division.unit);
|
|
2487
|
+
}
|
|
2488
|
+
duration /= division.amount;
|
|
2489
|
+
}
|
|
2490
|
+
return "Just now";
|
|
2491
|
+
}
|
|
2492
|
+
function measureSpan(spanMs) {
|
|
2493
|
+
const units = spanMs < COARSE_AFTER_MS ? FINE_UNITS : COARSE_UNITS;
|
|
2494
|
+
const index = units.findIndex(({ ms: ms2 }) => spanMs >= ms2);
|
|
2495
|
+
if (index === -1) return { value: 1, unit: units[units.length - 1].unit };
|
|
2496
|
+
const { ms, unit } = units[index];
|
|
2497
|
+
const value = Math.round(spanMs / ms);
|
|
2498
|
+
const next = units[index - 1];
|
|
2499
|
+
if (next && value * ms >= next.ms) {
|
|
2500
|
+
return { value: Math.round(spanMs / next.ms), unit: next.unit };
|
|
2501
|
+
}
|
|
2502
|
+
return { value, unit };
|
|
2503
|
+
}
|
|
2504
|
+
function formatCountdown(date, now, locale) {
|
|
2505
|
+
const spanMs = date.getTime() - now.getTime();
|
|
2506
|
+
if (spanMs <= 0) return null;
|
|
2507
|
+
const { value, unit } = measureSpan(spanMs);
|
|
2508
|
+
return new Intl.NumberFormat(locale, { style: "unit", unit, unitDisplay: "long" }).format(value);
|
|
2509
|
+
}
|
|
2510
|
+
function DatePlaceholder({
|
|
2511
|
+
label,
|
|
2512
|
+
className,
|
|
2513
|
+
...props
|
|
2514
|
+
}) {
|
|
2515
|
+
return /* @__PURE__ */ jsxs("span", { className: cn(styles27["format-date"], className), ...props, children: [
|
|
2516
|
+
/* @__PURE__ */ jsx("span", { className: styles27["visually-hidden"], children: label }),
|
|
2517
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: NO_DATE_PLACEHOLDER })
|
|
2518
|
+
] });
|
|
2519
|
+
}
|
|
2520
|
+
function FormatDate({
|
|
2521
|
+
date,
|
|
2522
|
+
displayAs = "absolute",
|
|
2523
|
+
timeZone = "UTC",
|
|
2524
|
+
locale = DEFAULT_LOCALE,
|
|
2525
|
+
tooltip = true,
|
|
2526
|
+
live = true,
|
|
2527
|
+
absoluteOptions,
|
|
2528
|
+
className,
|
|
2529
|
+
...props
|
|
2530
|
+
}) {
|
|
2531
|
+
const missing = isMissing(date);
|
|
2532
|
+
const parsed = React15.useMemo(() => isMissing(date) ? null : toDate(date), [date]);
|
|
2533
|
+
const [now, setNow] = React15.useState(() => /* @__PURE__ */ new Date());
|
|
2534
|
+
const [mounted, setMounted] = React15.useState(false);
|
|
2535
|
+
const isAbsolute = displayAs === "absolute";
|
|
2536
|
+
React15.useEffect(() => setMounted(true), []);
|
|
2537
|
+
React15.useEffect(() => {
|
|
2538
|
+
if (isAbsolute || !live) return;
|
|
2539
|
+
const id = setInterval(() => setNow(/* @__PURE__ */ new Date()), LIVE_INTERVAL_MS);
|
|
2540
|
+
return () => clearInterval(id);
|
|
2541
|
+
}, [isAbsolute, live]);
|
|
2542
|
+
if (missing) {
|
|
2543
|
+
return /* @__PURE__ */ jsx(DatePlaceholder, { label: "No date", className, ...props });
|
|
2544
|
+
}
|
|
2545
|
+
if (!parsed) {
|
|
2546
|
+
return /* @__PURE__ */ jsx("span", { className: cn(styles27["format-date"], className), ...props, children: "Invalid date" });
|
|
2547
|
+
}
|
|
2548
|
+
const machineValue = parsed.toISOString();
|
|
2549
|
+
const absolute = formatAbsolute(
|
|
2550
|
+
parsed,
|
|
2551
|
+
timeZone,
|
|
2552
|
+
absoluteOptions ?? DEFAULT_ABSOLUTE_OPTIONS,
|
|
2553
|
+
locale
|
|
2554
|
+
);
|
|
2555
|
+
if (isAbsolute) {
|
|
2556
|
+
return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(styles27["format-date"], className), ...props, children: absolute });
|
|
2557
|
+
}
|
|
2558
|
+
const measured = !mounted ? absolute : displayAs === "relative" ? formatRelative(parsed, now, locale) : formatCountdown(parsed, now, locale);
|
|
2559
|
+
if (measured === null) {
|
|
2560
|
+
return /* @__PURE__ */ jsx(DatePlaceholder, { label: "Date has passed", className, ...props });
|
|
2561
|
+
}
|
|
2562
|
+
if (!tooltip) {
|
|
2563
|
+
return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(styles27["format-date"], className), ...props, children: measured });
|
|
2564
|
+
}
|
|
2565
|
+
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
2566
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
2567
|
+
"time",
|
|
2568
|
+
{
|
|
2569
|
+
dateTime: machineValue,
|
|
2570
|
+
tabIndex: 0,
|
|
2571
|
+
className: cn(styles27["format-date"], styles27["format-date--interactive"], className),
|
|
2572
|
+
...props,
|
|
2573
|
+
children: measured
|
|
2574
|
+
}
|
|
2575
|
+
) }),
|
|
2576
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: absolute })
|
|
2577
|
+
] }) });
|
|
2578
|
+
}
|
|
2579
|
+
var Heading = forwardRef(
|
|
2580
|
+
({ className, as, displayAs, children, ...props }, ref) => {
|
|
2581
|
+
const displayClasses = {
|
|
2582
|
+
h1: styles28["h1"],
|
|
2583
|
+
h2: styles28["h2"],
|
|
2584
|
+
h3: styles28["h3"],
|
|
2585
|
+
h4: styles28["h4"],
|
|
2586
|
+
h5: styles28["h5"],
|
|
2587
|
+
h6: styles28["h6"]
|
|
2588
|
+
};
|
|
2589
|
+
const displayClass = displayClasses[displayAs] || displayClasses[as];
|
|
2590
|
+
const HeadingTag = as;
|
|
2591
|
+
return /* @__PURE__ */ jsx(HeadingTag, { ref, className: cn(displayClass, className), ...props, children });
|
|
2592
|
+
}
|
|
2593
|
+
);
|
|
2594
|
+
Heading.displayName = "Heading";
|
|
2393
2595
|
var InfoCard = ({
|
|
2394
2596
|
label,
|
|
2395
2597
|
description,
|
|
@@ -2399,7 +2601,7 @@ var InfoCard = ({
|
|
|
2399
2601
|
onClick,
|
|
2400
2602
|
...props
|
|
2401
2603
|
}) => {
|
|
2402
|
-
return /* @__PURE__ */ jsx(Card, { className, onClick, elevation, ...props, children: /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className:
|
|
2604
|
+
return /* @__PURE__ */ jsx(Card, { className, onClick, elevation, ...props, children: /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: styles29["info-card-content"], children: [
|
|
2403
2605
|
/* @__PURE__ */ jsx(
|
|
2404
2606
|
Icon,
|
|
2405
2607
|
{
|
|
@@ -2409,9 +2611,9 @@ var InfoCard = ({
|
|
|
2409
2611
|
elevation: elevation === ELEVATION.SUNKEN ? ELEVATION.BASE : getRelativeElevation(elevation, -1)
|
|
2410
2612
|
}
|
|
2411
2613
|
),
|
|
2412
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
2413
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
2414
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
2614
|
+
/* @__PURE__ */ jsxs("div", { className: styles29["copy-container"], children: [
|
|
2615
|
+
/* @__PURE__ */ jsx("p", { className: styles29["label"], children: label }),
|
|
2616
|
+
/* @__PURE__ */ jsx("div", { className: styles29["description"], children: description })
|
|
2415
2617
|
] })
|
|
2416
2618
|
] }) }) });
|
|
2417
2619
|
};
|
|
@@ -2445,8 +2647,8 @@ var MotionCollapsibleContent = ({
|
|
|
2445
2647
|
onAnimationStart: () => setIsSettled(false),
|
|
2446
2648
|
onAnimationComplete: () => setIsSettled(isOpen),
|
|
2447
2649
|
className: cn(
|
|
2448
|
-
|
|
2449
|
-
isSettled &&
|
|
2650
|
+
styles30["motion-collapsible"],
|
|
2651
|
+
isSettled && styles30["motion-collapsible--settled"],
|
|
2450
2652
|
className
|
|
2451
2653
|
),
|
|
2452
2654
|
children: /* @__PURE__ */ jsx("div", { ref: contentRef, children })
|
|
@@ -2476,42 +2678,42 @@ var Input = React15.forwardRef(
|
|
|
2476
2678
|
const hasError = hasErrorText || isMarkedInvalid;
|
|
2477
2679
|
const showHelpText = !!helpText && !hasErrorText;
|
|
2478
2680
|
const describedBy = [ariaDescribedBy, showHelpText && helpTextId, hasErrorText && errorTextId].filter(Boolean).join(" ") || void 0;
|
|
2479
|
-
const errorIcon = /* @__PURE__ */ jsx(TriangleAlert, { className:
|
|
2480
|
-
const errorMessage = errorList && errorList.length > 1 ? /* @__PURE__ */ jsx("ul", { id: errorTextId, role: "alert", className:
|
|
2681
|
+
const errorIcon = /* @__PURE__ */ jsx(TriangleAlert, { className: styles31["input-error-icon"], "aria-hidden": "true" });
|
|
2682
|
+
const errorMessage = errorList && errorList.length > 1 ? /* @__PURE__ */ jsx("ul", { id: errorTextId, role: "alert", className: styles31["input-error-list"], children: errorList.map((message) => /* @__PURE__ */ jsxs("li", { className: styles31["input-error-text"], children: [
|
|
2481
2683
|
errorIcon,
|
|
2482
2684
|
/* @__PURE__ */ jsx("span", { children: message })
|
|
2483
|
-
] }, message)) }) : /* @__PURE__ */ jsxs("p", { id: errorTextId, role: "alert", className:
|
|
2685
|
+
] }, message)) }) : /* @__PURE__ */ jsxs("p", { id: errorTextId, role: "alert", className: styles31["input-error-text"], children: [
|
|
2484
2686
|
errorIcon,
|
|
2485
2687
|
/* @__PURE__ */ jsx("span", { children: errorList ? errorList[0] : errorText })
|
|
2486
2688
|
] });
|
|
2487
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
2689
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles31["input-container"], containerClassName), children: [
|
|
2488
2690
|
/* @__PURE__ */ jsxs(
|
|
2489
2691
|
"div",
|
|
2490
2692
|
{
|
|
2491
2693
|
className: cn(
|
|
2492
|
-
|
|
2493
|
-
hasError &&
|
|
2694
|
+
styles31["input-wrapper"],
|
|
2695
|
+
hasError && styles31["input-wrapper--error"],
|
|
2494
2696
|
className
|
|
2495
2697
|
),
|
|
2496
2698
|
children: [
|
|
2497
|
-
prefix && /* @__PURE__ */ jsx("span", { className:
|
|
2699
|
+
prefix && /* @__PURE__ */ jsx("span", { className: styles31["input-prefix"], children: prefix }),
|
|
2498
2700
|
/* @__PURE__ */ jsx(
|
|
2499
2701
|
"input",
|
|
2500
2702
|
{
|
|
2501
2703
|
type,
|
|
2502
|
-
className:
|
|
2704
|
+
className: styles31["input-element"],
|
|
2503
2705
|
ref,
|
|
2504
2706
|
"aria-invalid": isMarkedInvalid ? ariaInvalid : hasErrorText || void 0,
|
|
2505
2707
|
"aria-describedby": describedBy,
|
|
2506
2708
|
...props
|
|
2507
2709
|
}
|
|
2508
2710
|
),
|
|
2509
|
-
suffix && /* @__PURE__ */ jsx("span", { className:
|
|
2711
|
+
suffix && /* @__PURE__ */ jsx("span", { className: styles31["input-suffix"], children: suffix })
|
|
2510
2712
|
]
|
|
2511
2713
|
}
|
|
2512
2714
|
),
|
|
2513
2715
|
helpText ? hasErrorText && errorMessage : /* @__PURE__ */ jsx(MotionCollapsibleContent, { isOpen: hasErrorText, children: errorMessage }),
|
|
2514
|
-
showHelpText && /* @__PURE__ */ jsx("p", { id: helpTextId, className:
|
|
2716
|
+
showHelpText && /* @__PURE__ */ jsx("p", { id: helpTextId, className: styles31["input-help-text"], children: helpText })
|
|
2515
2717
|
] });
|
|
2516
2718
|
}
|
|
2517
2719
|
);
|
|
@@ -2529,7 +2731,7 @@ var ListOrGridViewToggle = ({
|
|
|
2529
2731
|
const handleListClick = () => {
|
|
2530
2732
|
onViewModeChange("list");
|
|
2531
2733
|
};
|
|
2532
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
2734
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles32["list-or-grid-view-toggle"], className), children: [
|
|
2533
2735
|
order.map((mode) => {
|
|
2534
2736
|
const currentlyActive = mode === viewMode;
|
|
2535
2737
|
const Icon3 = mode === "grid" ? Grid3X3 : List;
|
|
@@ -2539,8 +2741,8 @@ var ListOrGridViewToggle = ({
|
|
|
2539
2741
|
type: "button",
|
|
2540
2742
|
"aria-label": mode === "grid" ? "Grid view" : "List view",
|
|
2541
2743
|
className: cn(
|
|
2542
|
-
|
|
2543
|
-
currentlyActive ?
|
|
2744
|
+
styles32["icon-button"],
|
|
2745
|
+
currentlyActive ? styles32["icon-button--active"] : styles32["icon-button--inactive"]
|
|
2544
2746
|
),
|
|
2545
2747
|
onClick: mode === "grid" ? handleGridClick : handleListClick,
|
|
2546
2748
|
children: /* @__PURE__ */ jsx(Icon3, { size: 16 })
|
|
@@ -2551,7 +2753,7 @@ var ListOrGridViewToggle = ({
|
|
|
2551
2753
|
/* @__PURE__ */ jsx(
|
|
2552
2754
|
"div",
|
|
2553
2755
|
{
|
|
2554
|
-
className:
|
|
2756
|
+
className: styles32["active-button-indicator"],
|
|
2555
2757
|
style: {
|
|
2556
2758
|
transform: `translateX(${currentActiveIndex * 100}%)`,
|
|
2557
2759
|
width: `${100 / order.length}%`
|
|
@@ -2561,43 +2763,43 @@ var ListOrGridViewToggle = ({
|
|
|
2561
2763
|
] });
|
|
2562
2764
|
};
|
|
2563
2765
|
var Spinner = ({ size = "md", variant = "primary" }) => {
|
|
2564
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
2565
|
-
/* @__PURE__ */ jsx("div", { className: cn(
|
|
2566
|
-
/* @__PURE__ */ jsx("div", { className: cn(
|
|
2766
|
+
return /* @__PURE__ */ jsxs("div", { className: styles33["spinner-container"], children: [
|
|
2767
|
+
/* @__PURE__ */ jsx("div", { className: cn(styles33["spinner"], styles33[size], styles33[variant]) }),
|
|
2768
|
+
/* @__PURE__ */ jsx("div", { className: cn(styles33["spinner-background"], styles33[size]) })
|
|
2567
2769
|
] });
|
|
2568
2770
|
};
|
|
2569
2771
|
function LoadingOverlay({ isVisible, message = "Loading..." }) {
|
|
2570
2772
|
if (!isVisible) return null;
|
|
2571
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
2773
|
+
return /* @__PURE__ */ jsx("div", { className: styles34["loading-overlay"], children: /* @__PURE__ */ jsxs("div", { className: styles34["content"], children: [
|
|
2572
2774
|
/* @__PURE__ */ jsx(Spinner, { variant: "primary" }),
|
|
2573
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
2775
|
+
/* @__PURE__ */ jsx("p", { className: styles34["message"], children: message })
|
|
2574
2776
|
] }) });
|
|
2575
2777
|
}
|
|
2576
2778
|
var metricCardElevationVariants = generateElevationVariants(
|
|
2577
|
-
|
|
2779
|
+
styles35,
|
|
2578
2780
|
"metric-card",
|
|
2579
2781
|
ELEVATION.RAISED
|
|
2580
2782
|
);
|
|
2581
2783
|
var VARIANTS = {
|
|
2582
2784
|
default: {
|
|
2583
|
-
text:
|
|
2584
|
-
iconBg:
|
|
2785
|
+
text: styles35["text-default"],
|
|
2786
|
+
iconBg: styles35["bg-default"]
|
|
2585
2787
|
},
|
|
2586
2788
|
primary: {
|
|
2587
|
-
text:
|
|
2588
|
-
iconBg:
|
|
2789
|
+
text: styles35["text-primary"],
|
|
2790
|
+
iconBg: styles35["bg-primary"]
|
|
2589
2791
|
},
|
|
2590
2792
|
danger: {
|
|
2591
|
-
text:
|
|
2592
|
-
iconBg:
|
|
2793
|
+
text: styles35["text-danger"],
|
|
2794
|
+
iconBg: styles35["bg-danger"]
|
|
2593
2795
|
},
|
|
2594
2796
|
success: {
|
|
2595
|
-
text:
|
|
2596
|
-
iconBg:
|
|
2797
|
+
text: styles35["text-success"],
|
|
2798
|
+
iconBg: styles35["bg-success"]
|
|
2597
2799
|
},
|
|
2598
2800
|
warning: {
|
|
2599
|
-
text:
|
|
2600
|
-
iconBg:
|
|
2801
|
+
text: styles35["text-warning"],
|
|
2802
|
+
iconBg: styles35["bg-warning"]
|
|
2601
2803
|
}
|
|
2602
2804
|
};
|
|
2603
2805
|
var MetricCard = ({
|
|
@@ -2610,8 +2812,8 @@ var MetricCard = ({
|
|
|
2610
2812
|
}) => {
|
|
2611
2813
|
const variantStyles = VARIANTS[variant];
|
|
2612
2814
|
return /* @__PURE__ */ jsxs("div", { className: cn(metricCardElevationVariants({ elevation }), className), children: [
|
|
2613
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
2614
|
-
/* @__PURE__ */ jsx("p", { className: cn(
|
|
2815
|
+
/* @__PURE__ */ jsxs("div", { className: styles35["value-container"], children: [
|
|
2816
|
+
/* @__PURE__ */ jsx("p", { className: cn(styles35.value), children: value }),
|
|
2615
2817
|
icon && /* @__PURE__ */ jsx(
|
|
2616
2818
|
Icon,
|
|
2617
2819
|
{
|
|
@@ -2622,7 +2824,7 @@ var MetricCard = ({
|
|
|
2622
2824
|
}
|
|
2623
2825
|
)
|
|
2624
2826
|
] }),
|
|
2625
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
2827
|
+
/* @__PURE__ */ jsx("p", { className: styles35.label, children: label })
|
|
2626
2828
|
] });
|
|
2627
2829
|
};
|
|
2628
2830
|
var OctagonAlert = AlertOctagon;
|
|
@@ -2634,12 +2836,12 @@ var NotFound = ({
|
|
|
2634
2836
|
showHomeButton = true,
|
|
2635
2837
|
onHomeClick = () => window.location.href = "/"
|
|
2636
2838
|
}) => {
|
|
2637
|
-
return /* @__PURE__ */ jsx("div", { className: cn(
|
|
2638
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
2639
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
2640
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
2641
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
2642
|
-
/* @__PURE__ */ jsx(HomeIcon, { className:
|
|
2839
|
+
return /* @__PURE__ */ jsx("div", { className: cn(styles36["page-not-found"], className), children: /* @__PURE__ */ jsxs("div", { className: styles36["page-not-found-inner"], children: [
|
|
2840
|
+
/* @__PURE__ */ jsx("div", { className: styles36["icon-container"], children: /* @__PURE__ */ jsx(OctagonAlert, { className: styles36["alert-icon"] }) }),
|
|
2841
|
+
/* @__PURE__ */ jsx("h1", { className: styles36["title"], children: title }),
|
|
2842
|
+
/* @__PURE__ */ jsx("p", { className: styles36["description"], children: description }),
|
|
2843
|
+
/* @__PURE__ */ jsx("div", { className: styles36["actions"], children: showHomeButton && /* @__PURE__ */ jsxs(Button, { onClick: onHomeClick, variant: "secondary", children: [
|
|
2844
|
+
/* @__PURE__ */ jsx(HomeIcon, { className: styles36["home-icon"] }),
|
|
2643
2845
|
"Return Home"
|
|
2644
2846
|
] }) })
|
|
2645
2847
|
] }) });
|
|
@@ -2648,12 +2850,20 @@ var CheckIcon3 = Check;
|
|
|
2648
2850
|
var ChevronDownIcon2 = ChevronDown;
|
|
2649
2851
|
var ChevronUpIcon = ChevronUp;
|
|
2650
2852
|
var SearchIcon3 = Search;
|
|
2651
|
-
var
|
|
2853
|
+
var SEARCH_INPUT_SELECTOR2 = "[data-select-search]";
|
|
2652
2854
|
var NAVIGABLE_OPTION_SELECTOR = '[role="option"]:not([data-disabled]):not([hidden])';
|
|
2855
|
+
var MATCHING_OPTION_SELECTOR = `${NAVIGABLE_OPTION_SELECTOR}:not([data-persistent])`;
|
|
2653
2856
|
var RADIX_HANDLED_SEARCH_KEYS = ["ArrowDown", "ArrowUp", "Escape", "Tab"];
|
|
2654
2857
|
var SelectSearchContext = React15.createContext(null);
|
|
2655
2858
|
var useSelectSearch = () => React15.useContext(SelectSearchContext);
|
|
2656
2859
|
var useIsSearching2 = () => isSearchActive(useSelectSearch());
|
|
2860
|
+
var useSelectSearchQuery = () => {
|
|
2861
|
+
const ctx = useSelectSearch();
|
|
2862
|
+
if (!ctx) {
|
|
2863
|
+
throw new Error("useSelectSearchQuery must be used within a Select");
|
|
2864
|
+
}
|
|
2865
|
+
return useSearchQuery(ctx);
|
|
2866
|
+
};
|
|
2657
2867
|
var SelectGroupMatchContext = React15.createContext(null);
|
|
2658
2868
|
var Select = ({
|
|
2659
2869
|
open,
|
|
@@ -2662,29 +2872,14 @@ var Select = ({
|
|
|
2662
2872
|
}) => {
|
|
2663
2873
|
const search = useListSearchState(open);
|
|
2664
2874
|
const { resetForOpen } = search;
|
|
2665
|
-
const interactedRef = React15.useRef(false);
|
|
2666
|
-
const markInteracted = React15.useCallback(() => {
|
|
2667
|
-
interactedRef.current = true;
|
|
2668
|
-
}, []);
|
|
2669
|
-
const interactedSinceOpen = React15.useCallback(() => interactedRef.current, []);
|
|
2670
|
-
React15.useEffect(() => {
|
|
2671
|
-
if (open) interactedRef.current = false;
|
|
2672
|
-
}, [open]);
|
|
2673
2875
|
const handleOpenChange = React15.useCallback(
|
|
2674
2876
|
(nextOpen) => {
|
|
2675
|
-
if (nextOpen)
|
|
2676
|
-
resetForOpen();
|
|
2677
|
-
interactedRef.current = false;
|
|
2678
|
-
}
|
|
2877
|
+
if (nextOpen) resetForOpen();
|
|
2679
2878
|
onOpenChange?.(nextOpen);
|
|
2680
2879
|
},
|
|
2681
2880
|
[onOpenChange, resetForOpen]
|
|
2682
2881
|
);
|
|
2683
|
-
|
|
2684
|
-
() => ({ ...search, markInteracted, interactedSinceOpen }),
|
|
2685
|
-
[search, markInteracted, interactedSinceOpen]
|
|
2686
|
-
);
|
|
2687
|
-
return /* @__PURE__ */ jsx(SelectSearchContext.Provider, { value, children: /* @__PURE__ */ jsx(SelectPrimitive.Root, { open, onOpenChange: handleOpenChange, ...props }) });
|
|
2882
|
+
return /* @__PURE__ */ jsx(SelectSearchContext.Provider, { value: search, children: /* @__PURE__ */ jsx(SelectPrimitive.Root, { open, onOpenChange: handleOpenChange, ...props }) });
|
|
2688
2883
|
};
|
|
2689
2884
|
Select.displayName = "Select";
|
|
2690
2885
|
var SelectGroup = React15.forwardRef(({ hidden, ...props }, ref) => {
|
|
@@ -2701,18 +2896,18 @@ var SelectGroup = React15.forwardRef(({ hidden, ...props }, ref) => {
|
|
|
2701
2896
|
});
|
|
2702
2897
|
SelectGroup.displayName = SelectPrimitive.Group.displayName;
|
|
2703
2898
|
var SelectValue = SelectPrimitive.Value;
|
|
2704
|
-
var SelectTrigger = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, { ref, className: cn(
|
|
2899
|
+
var SelectTrigger = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, { ref, className: cn(styles37["select-trigger"], className), ...props, children: [
|
|
2705
2900
|
children,
|
|
2706
|
-
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon2, { className: cn(
|
|
2901
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon2, { className: cn(styles37["select-icon"], styles37["select-icon--low-opacity"]) }) })
|
|
2707
2902
|
] }));
|
|
2708
2903
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2709
2904
|
var SelectScrollUpButton = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2710
2905
|
SelectPrimitive.ScrollUpButton,
|
|
2711
2906
|
{
|
|
2712
2907
|
ref,
|
|
2713
|
-
className: cn(
|
|
2908
|
+
className: cn(styles37["select-scroll-button"], className),
|
|
2714
2909
|
...props,
|
|
2715
|
-
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className:
|
|
2910
|
+
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: styles37["select-icon"] })
|
|
2716
2911
|
}
|
|
2717
2912
|
));
|
|
2718
2913
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
@@ -2720,15 +2915,15 @@ var SelectScrollDownButton = React15.forwardRef(({ className, ...props }, ref) =
|
|
|
2720
2915
|
SelectPrimitive.ScrollDownButton,
|
|
2721
2916
|
{
|
|
2722
2917
|
ref,
|
|
2723
|
-
className: cn(
|
|
2918
|
+
className: cn(styles37["select-scroll-button"], className),
|
|
2724
2919
|
...props,
|
|
2725
|
-
children: /* @__PURE__ */ jsx(ChevronDownIcon2, { className:
|
|
2920
|
+
children: /* @__PURE__ */ jsx(ChevronDownIcon2, { className: styles37["select-icon"] })
|
|
2726
2921
|
}
|
|
2727
2922
|
));
|
|
2728
2923
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2729
2924
|
var SelectPortal = ({ children }) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { container: usePortalContainer(), children });
|
|
2730
2925
|
var selectContentElevationVariants = generateElevationVariants(
|
|
2731
|
-
|
|
2926
|
+
styles37,
|
|
2732
2927
|
"select-content",
|
|
2733
2928
|
ELEVATION.OVERLAY
|
|
2734
2929
|
);
|
|
@@ -2742,15 +2937,23 @@ var SelectContent = React15.forwardRef(
|
|
|
2742
2937
|
onKeyDownCapture,
|
|
2743
2938
|
onPointerMoveCapture,
|
|
2744
2939
|
onFocus,
|
|
2940
|
+
side,
|
|
2941
|
+
avoidCollisions,
|
|
2745
2942
|
...props
|
|
2746
2943
|
}, ref) => {
|
|
2747
2944
|
const ctx = useSelectSearch();
|
|
2748
2945
|
const setListId = ctx?.setListId;
|
|
2749
2946
|
const searching = isSearchActive(ctx);
|
|
2750
2947
|
const resultCount = ctx?.matchCount ?? 0;
|
|
2948
|
+
const contentRef = React15.useRef(null);
|
|
2949
|
+
const sideProps = useSearchSideLock(ctx, contentRef, {
|
|
2950
|
+
side,
|
|
2951
|
+
avoidCollisions,
|
|
2952
|
+
enabled: position === "popper"
|
|
2953
|
+
});
|
|
2751
2954
|
const composedContentRef = React15.useCallback(
|
|
2752
2955
|
(node) => {
|
|
2753
|
-
assignRefs(node, ref);
|
|
2956
|
+
assignRefs(node, ref, contentRef);
|
|
2754
2957
|
setListId?.(node?.id || void 0);
|
|
2755
2958
|
},
|
|
2756
2959
|
[ref, setListId]
|
|
@@ -2758,48 +2961,28 @@ var SelectContent = React15.forwardRef(
|
|
|
2758
2961
|
const handleFocus = (event) => {
|
|
2759
2962
|
onFocus?.(event);
|
|
2760
2963
|
if (!ctx?.enabled || !ctx.visible || ctx.interactedSinceOpen()) return;
|
|
2761
|
-
if (event.target.closest(
|
|
2964
|
+
if (event.target.closest(SEARCH_INPUT_SELECTOR2)) return;
|
|
2762
2965
|
ctx.requestFocus();
|
|
2763
2966
|
};
|
|
2764
2967
|
const handleKeyDown = (event) => {
|
|
2765
2968
|
onKeyDown?.(event);
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
const firstOption = event.currentTarget.querySelector(NAVIGABLE_OPTION_SELECTOR);
|
|
2771
|
-
if (firstOption && firstOption === target?.closest(NAVIGABLE_OPTION_SELECTOR)) {
|
|
2772
|
-
event.preventDefault();
|
|
2773
|
-
ctx.requestFocus();
|
|
2774
|
-
return;
|
|
2775
|
-
}
|
|
2776
|
-
}
|
|
2777
|
-
if (event.key === "Backspace" && ctx.visible && ctx.query) {
|
|
2778
|
-
event.preventDefault();
|
|
2779
|
-
ctx.setQuery(ctx.query.slice(0, -1));
|
|
2780
|
-
ctx.requestFocus();
|
|
2781
|
-
return;
|
|
2782
|
-
}
|
|
2783
|
-
if (!isPrintableKey(event)) return;
|
|
2784
|
-
event.preventDefault();
|
|
2785
|
-
if (!ctx.visible) {
|
|
2786
|
-
ctx.reveal(event.key);
|
|
2787
|
-
} else {
|
|
2788
|
-
ctx.setQuery(ctx.query + event.key);
|
|
2789
|
-
ctx.requestFocus();
|
|
2790
|
-
}
|
|
2969
|
+
handleListKeyDown(ctx, event, {
|
|
2970
|
+
searchSelector: SEARCH_INPUT_SELECTOR2,
|
|
2971
|
+
itemSelector: NAVIGABLE_OPTION_SELECTOR
|
|
2972
|
+
});
|
|
2791
2973
|
};
|
|
2792
2974
|
return /* @__PURE__ */ jsx(SelectPortal, { children: /* @__PURE__ */ jsxs(
|
|
2793
2975
|
SelectPrimitive.Content,
|
|
2794
2976
|
{
|
|
2795
2977
|
ref: composedContentRef,
|
|
2796
2978
|
className: cn(
|
|
2797
|
-
|
|
2798
|
-
position === "popper" &&
|
|
2979
|
+
styles37["select-content"],
|
|
2980
|
+
position === "popper" && styles37["select-content--popper"],
|
|
2799
2981
|
selectContentElevationVariants({ elevation }),
|
|
2800
2982
|
className
|
|
2801
2983
|
),
|
|
2802
2984
|
position,
|
|
2985
|
+
...sideProps,
|
|
2803
2986
|
onFocus: handleFocus,
|
|
2804
2987
|
onKeyDown: handleKeyDown,
|
|
2805
2988
|
onKeyDownCapture: (event) => {
|
|
@@ -2812,14 +2995,14 @@ var SelectContent = React15.forwardRef(
|
|
|
2812
2995
|
},
|
|
2813
2996
|
...props,
|
|
2814
2997
|
children: [
|
|
2815
|
-
ctx?.enabled ? /* @__PURE__ */ jsx("div", { className:
|
|
2998
|
+
ctx?.enabled ? /* @__PURE__ */ jsx("div", { className: styles37["select-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
|
|
2816
2999
|
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
2817
3000
|
/* @__PURE__ */ jsx(
|
|
2818
3001
|
SelectPrimitive.Viewport,
|
|
2819
3002
|
{
|
|
2820
3003
|
className: cn(
|
|
2821
|
-
|
|
2822
|
-
position === "popper" &&
|
|
3004
|
+
styles37["select-viewport"],
|
|
3005
|
+
position === "popper" && styles37["select-viewport--popper"]
|
|
2823
3006
|
),
|
|
2824
3007
|
children
|
|
2825
3008
|
}
|
|
@@ -2847,15 +3030,15 @@ var SelectSearch = React15.forwardRef(
|
|
|
2847
3030
|
}
|
|
2848
3031
|
const { ref, isRendered } = useSearchInput(ctx, alwaysVisible, forwardedRef);
|
|
2849
3032
|
if (!isRendered) return null;
|
|
2850
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
2851
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className:
|
|
3033
|
+
return /* @__PURE__ */ jsxs("div", { className: styles37["select-search"], children: [
|
|
3034
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: styles37["select-search-icon"], children: icon ?? /* @__PURE__ */ jsx(SearchIcon3, { className: cn(styles37["select-icon"], styles37["select-icon--sm"]) }) }),
|
|
2852
3035
|
/* @__PURE__ */ jsx(
|
|
2853
3036
|
"input",
|
|
2854
3037
|
{
|
|
2855
3038
|
...props,
|
|
2856
3039
|
ref,
|
|
2857
3040
|
"data-select-search": "",
|
|
2858
|
-
className: cn(
|
|
3041
|
+
className: cn(styles37["select-search-input"], className),
|
|
2859
3042
|
value: ctx.query,
|
|
2860
3043
|
placeholder,
|
|
2861
3044
|
"aria-label": ariaLabel ?? placeholder,
|
|
@@ -2868,7 +3051,7 @@ var SelectSearch = React15.forwardRef(
|
|
|
2868
3051
|
if (event.key === "Enter" && !event.defaultPrevented && isSearchActive(ctx)) {
|
|
2869
3052
|
event.preventDefault();
|
|
2870
3053
|
event.stopPropagation();
|
|
2871
|
-
const firstOption = event.currentTarget.closest('[role="listbox"]')?.querySelector(
|
|
3054
|
+
const firstOption = event.currentTarget.closest('[role="listbox"]')?.querySelector(MATCHING_OPTION_SELECTOR);
|
|
2872
3055
|
firstOption?.dispatchEvent(
|
|
2873
3056
|
new KeyboardEvent("keydown", { key: "Enter", bubbles: true })
|
|
2874
3057
|
);
|
|
@@ -2892,7 +3075,7 @@ var SelectEmpty = ({ className, children, ...props }) => {
|
|
|
2892
3075
|
...props,
|
|
2893
3076
|
role: "status",
|
|
2894
3077
|
"aria-live": "polite",
|
|
2895
|
-
className: isEmpty ? cn(
|
|
3078
|
+
className: isEmpty ? cn(styles37["select-empty"], className) : void 0,
|
|
2896
3079
|
children: isEmpty ? children : null
|
|
2897
3080
|
}
|
|
2898
3081
|
);
|
|
@@ -2904,41 +3087,42 @@ var SelectLabel = React15.forwardRef(({ className, hidden, ...props }, ref) => {
|
|
|
2904
3087
|
SelectPrimitive.Label,
|
|
2905
3088
|
{
|
|
2906
3089
|
ref,
|
|
2907
|
-
className: cn(
|
|
3090
|
+
className: cn(styles37["select-label"], className),
|
|
2908
3091
|
...props,
|
|
2909
3092
|
hidden: hidden || searching || void 0
|
|
2910
3093
|
}
|
|
2911
3094
|
);
|
|
2912
3095
|
});
|
|
2913
3096
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2914
|
-
var SelectItem = React15.forwardRef(({ className, children, textValue, hidden, ...props }, ref) => {
|
|
3097
|
+
var SelectItem = React15.forwardRef(({ className, children, textValue, hidden, persistent, ...props }, ref) => {
|
|
2915
3098
|
const search = useSelectSearch();
|
|
2916
3099
|
const group = React15.useContext(SelectGroupMatchContext);
|
|
2917
|
-
const matches = useFilterableItem(search, textValue, children, group);
|
|
3100
|
+
const matches = useFilterableItem(search, textValue, children, { group, persistent });
|
|
2918
3101
|
return /* @__PURE__ */ jsxs(
|
|
2919
3102
|
SelectPrimitive.Item,
|
|
2920
3103
|
{
|
|
2921
3104
|
ref,
|
|
2922
|
-
className: cn(
|
|
3105
|
+
className: cn(styles37["select-item"], className),
|
|
2923
3106
|
...props,
|
|
3107
|
+
"data-persistent": persistent ? "" : void 0,
|
|
2924
3108
|
textValue,
|
|
2925
3109
|
hidden: hidden || !matches || void 0,
|
|
2926
3110
|
children: [
|
|
2927
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
3111
|
+
/* @__PURE__ */ jsx("span", { className: styles37["select-item-indicator"], children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon3, { className: styles37["select-icon"] }) }) }),
|
|
2928
3112
|
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
|
|
2929
3113
|
]
|
|
2930
3114
|
}
|
|
2931
3115
|
);
|
|
2932
3116
|
});
|
|
2933
3117
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2934
|
-
var SelectSeparator = React15.forwardRef(({ className, ...props }, ref) => {
|
|
3118
|
+
var SelectSeparator = React15.forwardRef(({ className, persistent, ...props }, ref) => {
|
|
2935
3119
|
const searching = useIsSearching2();
|
|
2936
|
-
if (searching) return null;
|
|
3120
|
+
if (searching && !persistent) return null;
|
|
2937
3121
|
return /* @__PURE__ */ jsx(
|
|
2938
3122
|
SelectPrimitive.Separator,
|
|
2939
3123
|
{
|
|
2940
3124
|
ref,
|
|
2941
|
-
className: cn(
|
|
3125
|
+
className: cn(styles37["select-separator"], className),
|
|
2942
3126
|
...props
|
|
2943
3127
|
}
|
|
2944
3128
|
);
|
|
@@ -3042,8 +3226,8 @@ var Pagination = ({
|
|
|
3042
3226
|
}
|
|
3043
3227
|
return pageButtons;
|
|
3044
3228
|
};
|
|
3045
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
3046
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3229
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles38["pagination"], className), children: [
|
|
3230
|
+
/* @__PURE__ */ jsx("div", { className: styles38["info-container"], children: showInfo && hasFilteredItems && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3047
3231
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
3048
3232
|
"Showing ",
|
|
3049
3233
|
startItem,
|
|
@@ -3053,7 +3237,7 @@ var Pagination = ({
|
|
|
3053
3237
|
/* @__PURE__ */ jsx(
|
|
3054
3238
|
SelectTrigger,
|
|
3055
3239
|
{
|
|
3056
|
-
className:
|
|
3240
|
+
className: styles38["items-per-page-trigger"],
|
|
3057
3241
|
"aria-label": "Items per page",
|
|
3058
3242
|
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
3059
3243
|
}
|
|
@@ -3067,7 +3251,7 @@ var Pagination = ({
|
|
|
3067
3251
|
type
|
|
3068
3252
|
] })
|
|
3069
3253
|
] }) }),
|
|
3070
|
-
/* @__PURE__ */ jsxs("nav", { className:
|
|
3254
|
+
/* @__PURE__ */ jsxs("nav", { className: styles38["page-navigation-container"], "aria-label": "Pagination", children: [
|
|
3071
3255
|
showFirstLastButtons && /* @__PURE__ */ jsx(
|
|
3072
3256
|
Button,
|
|
3073
3257
|
{
|
|
@@ -3117,13 +3301,13 @@ var Pagination = ({
|
|
|
3117
3301
|
] });
|
|
3118
3302
|
};
|
|
3119
3303
|
var PanelLabel = ({ className, label }) => {
|
|
3120
|
-
return /* @__PURE__ */ jsx("div", { className: cn(
|
|
3304
|
+
return /* @__PURE__ */ jsx("div", { className: cn(styles39["panel-label"], className), children: label });
|
|
3121
3305
|
};
|
|
3122
3306
|
var Progress = React15.forwardRef(
|
|
3123
|
-
({ className, value, color = "primary", ...props }, ref) => /* @__PURE__ */ jsx(ProgressPrimitive.Root, { ref, className: cn(
|
|
3307
|
+
({ className, value, color = "primary", ...props }, ref) => /* @__PURE__ */ jsx(ProgressPrimitive.Root, { ref, className: cn(styles40["progress"], className), ...props, children: /* @__PURE__ */ jsx(
|
|
3124
3308
|
ProgressPrimitive.Indicator,
|
|
3125
3309
|
{
|
|
3126
|
-
className: cn(
|
|
3310
|
+
className: cn(styles40["progress-indicator"], styles40[color]),
|
|
3127
3311
|
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
3128
3312
|
}
|
|
3129
3313
|
) })
|
|
@@ -3145,29 +3329,29 @@ var STATUS_LABELS = {
|
|
|
3145
3329
|
info: "Information",
|
|
3146
3330
|
danger: "Error"
|
|
3147
3331
|
};
|
|
3148
|
-
var layoutVariants = cva(
|
|
3332
|
+
var layoutVariants = cva(styles41["progress-indicator"], {
|
|
3149
3333
|
variants: {
|
|
3150
3334
|
layout: {
|
|
3151
|
-
horizontal:
|
|
3152
|
-
vertical:
|
|
3335
|
+
horizontal: styles41["progress-indicator--horizontal"],
|
|
3336
|
+
vertical: styles41["progress-indicator--vertical"]
|
|
3153
3337
|
}
|
|
3154
3338
|
},
|
|
3155
3339
|
defaultVariants: {
|
|
3156
3340
|
layout: "horizontal"
|
|
3157
3341
|
}
|
|
3158
3342
|
});
|
|
3159
|
-
var markerVariants = cva(
|
|
3343
|
+
var markerVariants = cva(styles41["progress-indicator-step-marker"], {
|
|
3160
3344
|
variants: {
|
|
3161
3345
|
status: {
|
|
3162
3346
|
editing: "",
|
|
3163
3347
|
empty: "",
|
|
3164
3348
|
neutral: "",
|
|
3165
3349
|
info: "",
|
|
3166
|
-
success:
|
|
3167
|
-
danger:
|
|
3350
|
+
success: styles41["progress-indicator-step-marker--success"],
|
|
3351
|
+
danger: styles41["progress-indicator-step-marker--danger"]
|
|
3168
3352
|
},
|
|
3169
3353
|
active: {
|
|
3170
|
-
true:
|
|
3354
|
+
true: styles41["progress-indicator-step-marker--active"],
|
|
3171
3355
|
false: ""
|
|
3172
3356
|
}
|
|
3173
3357
|
},
|
|
@@ -3208,18 +3392,18 @@ function ProgressIndicator({
|
|
|
3208
3392
|
});
|
|
3209
3393
|
const Container = interactive ? "nav" : "div";
|
|
3210
3394
|
return /* @__PURE__ */ jsxs(Container, { className: cn(layoutVariants({ layout }), className), ...props, children: [
|
|
3211
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3395
|
+
/* @__PURE__ */ jsx("div", { className: styles41["progress-indicator-track"], "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
3212
3396
|
Progress,
|
|
3213
3397
|
{
|
|
3214
3398
|
value: 100,
|
|
3215
3399
|
color: "primary",
|
|
3216
|
-
className:
|
|
3400
|
+
className: styles41["progress-indicator-rail"],
|
|
3217
3401
|
style: {
|
|
3218
3402
|
"--pi-fill-size": `${fillSize}%`
|
|
3219
3403
|
}
|
|
3220
3404
|
}
|
|
3221
3405
|
) }),
|
|
3222
|
-
/* @__PURE__ */ jsx("ul", { className:
|
|
3406
|
+
/* @__PURE__ */ jsx("ul", { className: styles41["progress-indicator-steps"], "aria-label": ariaLabel, children: steps })
|
|
3223
3407
|
] });
|
|
3224
3408
|
}
|
|
3225
3409
|
function ProgressIndicatorStep({
|
|
@@ -3251,15 +3435,15 @@ function ProgressIndicatorStep({
|
|
|
3251
3435
|
className: markerVariants({ status: effectiveStatus, active })
|
|
3252
3436
|
}
|
|
3253
3437
|
),
|
|
3254
|
-
/* @__PURE__ */ jsxs("span", { className:
|
|
3255
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
3256
|
-
description && /* @__PURE__ */ jsx("span", { className:
|
|
3257
|
-
statusLabel && /* @__PURE__ */ jsx("span", { className:
|
|
3438
|
+
/* @__PURE__ */ jsxs("span", { className: styles41["progress-indicator-step-text"], children: [
|
|
3439
|
+
/* @__PURE__ */ jsx("span", { className: styles41["progress-indicator-step-name"], children: name }),
|
|
3440
|
+
description && /* @__PURE__ */ jsx("span", { className: styles41["progress-indicator-step-description"], children: description }),
|
|
3441
|
+
statusLabel && /* @__PURE__ */ jsx("span", { className: styles41["progress-indicator-step-status"], children: statusLabel })
|
|
3258
3442
|
] })
|
|
3259
3443
|
] });
|
|
3260
3444
|
const innerClassName = cn(
|
|
3261
|
-
|
|
3262
|
-
interactive &&
|
|
3445
|
+
styles41["progress-indicator-step-inner"],
|
|
3446
|
+
interactive && styles41["progress-indicator-step-inner--interactive"]
|
|
3263
3447
|
);
|
|
3264
3448
|
let inner;
|
|
3265
3449
|
if (href) {
|
|
@@ -3282,8 +3466,8 @@ function ProgressIndicatorStep({
|
|
|
3282
3466
|
"li",
|
|
3283
3467
|
{
|
|
3284
3468
|
className: cn(
|
|
3285
|
-
|
|
3286
|
-
active &&
|
|
3469
|
+
styles41["progress-indicator-step"],
|
|
3470
|
+
active && styles41["progress-indicator-step--active"],
|
|
3287
3471
|
className
|
|
3288
3472
|
),
|
|
3289
3473
|
...props,
|
|
@@ -3307,16 +3491,16 @@ var RadialGraph = forwardRef(
|
|
|
3307
3491
|
"div",
|
|
3308
3492
|
{
|
|
3309
3493
|
ref,
|
|
3310
|
-
className: cn(
|
|
3494
|
+
className: cn(styles42["radial-graph"], styles42[graphSize], className),
|
|
3311
3495
|
...props,
|
|
3312
3496
|
children: [
|
|
3313
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3497
|
+
/* @__PURE__ */ jsx("div", { className: styles42["bars-container"], children: bars.map((_, i) => {
|
|
3314
3498
|
const isActive = i < percentage;
|
|
3315
3499
|
const delay = `${i * 10}ms`;
|
|
3316
3500
|
return /* @__PURE__ */ jsx(
|
|
3317
3501
|
"div",
|
|
3318
3502
|
{
|
|
3319
|
-
className:
|
|
3503
|
+
className: styles42["bar"],
|
|
3320
3504
|
style: {
|
|
3321
3505
|
transform: `rotate(${i * 3.6}deg)`
|
|
3322
3506
|
},
|
|
@@ -3324,22 +3508,22 @@ var RadialGraph = forwardRef(
|
|
|
3324
3508
|
"div",
|
|
3325
3509
|
{
|
|
3326
3510
|
className: cn(
|
|
3327
|
-
|
|
3328
|
-
isActive ?
|
|
3511
|
+
styles42["bar-inner"],
|
|
3512
|
+
isActive ? styles42["bar-inner--active"] : styles42["bar-inner--inactive"]
|
|
3329
3513
|
),
|
|
3330
3514
|
style: {
|
|
3331
3515
|
transitionDelay: delay,
|
|
3332
3516
|
animationDelay: delay
|
|
3333
3517
|
},
|
|
3334
3518
|
children: [
|
|
3335
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3519
|
+
/* @__PURE__ */ jsx("div", { className: styles42["bar-background"] }),
|
|
3336
3520
|
/* @__PURE__ */ jsx(
|
|
3337
3521
|
"div",
|
|
3338
3522
|
{
|
|
3339
3523
|
className: cn(
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
isActive ?
|
|
3524
|
+
styles42["bar-gradient"],
|
|
3525
|
+
styles42[`bar-gradient--${variant}`],
|
|
3526
|
+
isActive ? styles42["bar-gradient--active"] : styles42["bar-gradient--inactive"]
|
|
3343
3527
|
),
|
|
3344
3528
|
style: {
|
|
3345
3529
|
transitionDelay: delay,
|
|
@@ -3354,9 +3538,9 @@ var RadialGraph = forwardRef(
|
|
|
3354
3538
|
i
|
|
3355
3539
|
);
|
|
3356
3540
|
}) }),
|
|
3357
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
3358
|
-
/* @__PURE__ */ jsx("p", { className: cn(
|
|
3359
|
-
subLabel && /* @__PURE__ */ jsx("p", { className:
|
|
3541
|
+
/* @__PURE__ */ jsxs("div", { className: styles42["label-container"], children: [
|
|
3542
|
+
/* @__PURE__ */ jsx("p", { className: cn(styles42["label"], styles42[graphSize]), children: label }),
|
|
3543
|
+
subLabel && /* @__PURE__ */ jsx("p", { className: styles42["sub-label"], children: subLabel })
|
|
3360
3544
|
] })
|
|
3361
3545
|
]
|
|
3362
3546
|
}
|
|
@@ -3382,15 +3566,15 @@ var RadioDropdown = ({
|
|
|
3382
3566
|
);
|
|
3383
3567
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
3384
3568
|
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "tertiary", className, children: [
|
|
3385
|
-
/* @__PURE__ */ jsxs("span", { className:
|
|
3569
|
+
/* @__PURE__ */ jsxs("span", { className: styles43["selector-button-inner"], children: [
|
|
3386
3570
|
selectedOption?.label || label,
|
|
3387
3571
|
hasSelectedCount && /* @__PURE__ */ jsx(Badge, { variant: "primary", children: selectedOption.count })
|
|
3388
3572
|
] }),
|
|
3389
|
-
/* @__PURE__ */ jsx(ChevronDownIcon3, { className:
|
|
3573
|
+
/* @__PURE__ */ jsx(ChevronDownIcon3, { className: styles43["chevron-icon"] })
|
|
3390
3574
|
] }) }),
|
|
3391
|
-
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className:
|
|
3575
|
+
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: styles43["dropdown-menu-content"], children: [
|
|
3392
3576
|
searchable && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3393
|
-
/* @__PURE__ */ jsx(DropdownMenuSearch, {
|
|
3577
|
+
/* @__PURE__ */ jsx(DropdownMenuSearch, { placeholder: searchPlaceholder, "aria-label": label }),
|
|
3394
3578
|
/* @__PURE__ */ jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
|
|
3395
3579
|
] }),
|
|
3396
3580
|
!searchable && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -3412,7 +3596,7 @@ var RadioGroup2 = React15.forwardRef(({ className, ...props }, ref) => {
|
|
|
3412
3596
|
return /* @__PURE__ */ jsx(
|
|
3413
3597
|
RadioGroupPrimitive.Root,
|
|
3414
3598
|
{
|
|
3415
|
-
className: cn(
|
|
3599
|
+
className: cn(styles44["radio-group"], className),
|
|
3416
3600
|
...props,
|
|
3417
3601
|
ref
|
|
3418
3602
|
}
|
|
@@ -3424,32 +3608,192 @@ var RadioGroupItem = React15.forwardRef(({ className, ...props }, ref) => {
|
|
|
3424
3608
|
RadioGroupPrimitive.Item,
|
|
3425
3609
|
{
|
|
3426
3610
|
ref,
|
|
3427
|
-
className: cn(
|
|
3611
|
+
className: cn(styles44["radio-group-item"], className),
|
|
3428
3612
|
...props,
|
|
3429
|
-
children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className:
|
|
3613
|
+
children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: styles44["radio-group-item-indicator"], children: /* @__PURE__ */ jsx(CircleIcon2, { className: styles44["indicator-icon"] }) })
|
|
3430
3614
|
}
|
|
3431
3615
|
);
|
|
3432
3616
|
});
|
|
3433
3617
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
3434
|
-
var
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3618
|
+
var ResourceBadge = ({
|
|
3619
|
+
type,
|
|
3620
|
+
display = "both",
|
|
3621
|
+
closeable,
|
|
3622
|
+
handleClosable,
|
|
3623
|
+
closeLabel,
|
|
3624
|
+
children
|
|
3625
|
+
}) => {
|
|
3626
|
+
const config = getTypeConfig(type);
|
|
3627
|
+
return /* @__PURE__ */ jsx(
|
|
3628
|
+
Badge,
|
|
3629
|
+
{
|
|
3630
|
+
icon: config.icon,
|
|
3631
|
+
display,
|
|
3632
|
+
className: config.className,
|
|
3633
|
+
variant: null,
|
|
3634
|
+
closeable,
|
|
3635
|
+
handleClosable,
|
|
3636
|
+
closeLabel,
|
|
3637
|
+
children: children ?? config.label
|
|
3638
|
+
}
|
|
3639
|
+
);
|
|
3640
|
+
};
|
|
3641
|
+
var getTypeConfig = (type) => {
|
|
3642
|
+
switch (type) {
|
|
3643
|
+
case "agent":
|
|
3644
|
+
return {
|
|
3645
|
+
icon: "Bot",
|
|
3646
|
+
className: styles45["badge--agent"],
|
|
3647
|
+
label: "Agent"
|
|
3648
|
+
};
|
|
3649
|
+
case "benchmark":
|
|
3650
|
+
return {
|
|
3651
|
+
icon: "LineChart",
|
|
3652
|
+
className: styles45["badge--benchmark"],
|
|
3653
|
+
label: "Benchmark"
|
|
3654
|
+
};
|
|
3655
|
+
case "benchmark-result":
|
|
3656
|
+
return {
|
|
3657
|
+
icon: "FileChartLine",
|
|
3658
|
+
className: styles45["badge--benchmark-result"],
|
|
3659
|
+
label: "Benchmark Result"
|
|
3660
|
+
};
|
|
3661
|
+
case "code":
|
|
3662
|
+
return {
|
|
3663
|
+
icon: "Code",
|
|
3664
|
+
className: styles45["badge--code"],
|
|
3665
|
+
label: "Code"
|
|
3666
|
+
};
|
|
3667
|
+
case "binary":
|
|
3668
|
+
return {
|
|
3669
|
+
icon: "Binary",
|
|
3670
|
+
className: styles45["badge--binary"],
|
|
3671
|
+
label: "Binary"
|
|
3672
|
+
};
|
|
3673
|
+
case "certificate":
|
|
3674
|
+
return {
|
|
3675
|
+
icon: "Award",
|
|
3676
|
+
className: styles45["badge--certificate"],
|
|
3677
|
+
label: "Certificate"
|
|
3678
|
+
};
|
|
3679
|
+
case "compute":
|
|
3680
|
+
return {
|
|
3681
|
+
icon: "Cpu",
|
|
3682
|
+
className: styles45["badge--compute"],
|
|
3683
|
+
label: "Compute"
|
|
3684
|
+
};
|
|
3685
|
+
case "credential":
|
|
3686
|
+
return {
|
|
3687
|
+
icon: "IdCardLanyard",
|
|
3688
|
+
className: styles45["badge--credential"],
|
|
3689
|
+
label: "Credential"
|
|
3690
|
+
};
|
|
3691
|
+
case "database":
|
|
3692
|
+
return {
|
|
3693
|
+
icon: "Database",
|
|
3694
|
+
className: styles45["badge--database"],
|
|
3695
|
+
label: "Database"
|
|
3696
|
+
};
|
|
3697
|
+
case "dataset":
|
|
3698
|
+
return {
|
|
3699
|
+
icon: "Table",
|
|
3700
|
+
className: styles45["badge--dataset"],
|
|
3701
|
+
label: "Dataset"
|
|
3702
|
+
};
|
|
3703
|
+
case "document":
|
|
3704
|
+
return {
|
|
3705
|
+
icon: "FileText",
|
|
3706
|
+
className: styles45["badge--document"],
|
|
3707
|
+
label: "Document"
|
|
3708
|
+
};
|
|
3709
|
+
case "skill":
|
|
3710
|
+
return {
|
|
3711
|
+
icon: "FileCog",
|
|
3712
|
+
className: styles45["badge--skill"],
|
|
3713
|
+
label: "Skill"
|
|
3714
|
+
};
|
|
3715
|
+
case "media":
|
|
3716
|
+
return {
|
|
3717
|
+
icon: "FileImage",
|
|
3718
|
+
className: styles45["badge--media"],
|
|
3719
|
+
label: "Media"
|
|
3720
|
+
};
|
|
3721
|
+
case "guardrail":
|
|
3722
|
+
return {
|
|
3723
|
+
icon: "Fence",
|
|
3724
|
+
className: styles45["badge--guardrail"],
|
|
3725
|
+
label: "Guardrail"
|
|
3726
|
+
};
|
|
3727
|
+
case "model":
|
|
3728
|
+
return {
|
|
3729
|
+
icon: "Brain",
|
|
3730
|
+
className: styles45["badge--model"],
|
|
3731
|
+
label: "Model"
|
|
3732
|
+
};
|
|
3733
|
+
case "prompt":
|
|
3734
|
+
return {
|
|
3735
|
+
icon: "MessageSquareText",
|
|
3736
|
+
className: styles45["badge--prompt"],
|
|
3737
|
+
label: "Prompt"
|
|
3738
|
+
};
|
|
3739
|
+
case "system-prompt":
|
|
3740
|
+
return {
|
|
3741
|
+
icon: "MessageSquareCode",
|
|
3742
|
+
className: styles45["badge--system-prompt"],
|
|
3743
|
+
label: "System Prompt"
|
|
3744
|
+
};
|
|
3745
|
+
case "reasoning":
|
|
3746
|
+
return {
|
|
3747
|
+
icon: "MessageSquareMore",
|
|
3748
|
+
className: styles45["badge--reasoning"],
|
|
3749
|
+
label: "Reasoning"
|
|
3750
|
+
};
|
|
3751
|
+
case "token":
|
|
3752
|
+
return {
|
|
3753
|
+
icon: "Coins",
|
|
3754
|
+
className: styles45["badge--token"],
|
|
3755
|
+
label: "Token"
|
|
3756
|
+
};
|
|
3757
|
+
case "tool":
|
|
3758
|
+
return {
|
|
3759
|
+
icon: "Wrench",
|
|
3760
|
+
className: styles45["badge--tool"],
|
|
3761
|
+
label: "Tool"
|
|
3762
|
+
};
|
|
3763
|
+
case "config":
|
|
3764
|
+
return {
|
|
3765
|
+
icon: "Settings2",
|
|
3766
|
+
className: styles45["badge--config"],
|
|
3767
|
+
label: "Configuration"
|
|
3768
|
+
};
|
|
3769
|
+
case "unknown":
|
|
3770
|
+
default:
|
|
3771
|
+
return {
|
|
3772
|
+
icon: "Box",
|
|
3773
|
+
className: styles45["badge--unknown"],
|
|
3774
|
+
label: "Unknown"
|
|
3775
|
+
};
|
|
3776
|
+
}
|
|
3777
|
+
};
|
|
3778
|
+
var ScrollArea = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, { ref, className: cn(styles46["scroll-area"], className), ...props, children: [
|
|
3779
|
+
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, { className: styles46["scroll-area-viewport"], children }),
|
|
3780
|
+
/* @__PURE__ */ jsx(ScrollBar, {}),
|
|
3781
|
+
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
|
|
3782
|
+
] }));
|
|
3783
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
3784
|
+
var ScrollBar = React15.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3785
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
3786
|
+
{
|
|
3787
|
+
ref,
|
|
3444
3788
|
orientation,
|
|
3445
3789
|
className: cn(
|
|
3446
|
-
|
|
3447
|
-
orientation === "vertical" &&
|
|
3448
|
-
orientation === "horizontal" &&
|
|
3790
|
+
styles46["scroll-bar"],
|
|
3791
|
+
orientation === "vertical" && styles46["scroll-bar--vertical"],
|
|
3792
|
+
orientation === "horizontal" && styles46["scroll-bar--horizontal"],
|
|
3449
3793
|
className
|
|
3450
3794
|
),
|
|
3451
3795
|
...props,
|
|
3452
|
-
children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className:
|
|
3796
|
+
children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: styles46["scroll-area-thumb"] })
|
|
3453
3797
|
}
|
|
3454
3798
|
));
|
|
3455
3799
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
@@ -3466,20 +3810,20 @@ var SearchBar = ({
|
|
|
3466
3810
|
const handleClear = () => {
|
|
3467
3811
|
setSearchQuery("");
|
|
3468
3812
|
};
|
|
3469
|
-
return /* @__PURE__ */ jsx("search", { className: cn(
|
|
3813
|
+
return /* @__PURE__ */ jsx("search", { className: cn(styles47["search-bar"], className), children: /* @__PURE__ */ jsx(
|
|
3470
3814
|
Input,
|
|
3471
3815
|
{
|
|
3472
3816
|
placeholder,
|
|
3473
3817
|
value: searchQuery,
|
|
3474
3818
|
onChange: handleChange,
|
|
3475
|
-
className:
|
|
3476
|
-
prefix: /* @__PURE__ */ jsx(SearchIcon4, { className:
|
|
3819
|
+
className: styles47["input"],
|
|
3820
|
+
prefix: /* @__PURE__ */ jsx(SearchIcon4, { className: styles47["search-icon"] }),
|
|
3477
3821
|
suffix: searchQuery && /* @__PURE__ */ jsx(
|
|
3478
3822
|
IconButton,
|
|
3479
3823
|
{
|
|
3480
3824
|
name: "X",
|
|
3481
3825
|
onClick: handleClear,
|
|
3482
|
-
className:
|
|
3826
|
+
className: styles47["clear-button"],
|
|
3483
3827
|
label: "Clear search"
|
|
3484
3828
|
}
|
|
3485
3829
|
)
|
|
@@ -3493,10 +3837,10 @@ var SectionHeading = ({
|
|
|
3493
3837
|
className
|
|
3494
3838
|
}) => {
|
|
3495
3839
|
const hasRightContent = !!renderRightContent;
|
|
3496
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(hasRightContent &&
|
|
3497
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
3498
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
3499
|
-
description && /* @__PURE__ */ jsx("p", { className:
|
|
3840
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(hasRightContent && styles48["section-heading--right-content"], className), children: [
|
|
3841
|
+
/* @__PURE__ */ jsxs("div", { className: styles48["content"], children: [
|
|
3842
|
+
/* @__PURE__ */ jsx("h3", { className: styles48["heading"], children: heading }),
|
|
3843
|
+
description && /* @__PURE__ */ jsx("p", { className: styles48["description"], children: description })
|
|
3500
3844
|
] }),
|
|
3501
3845
|
hasRightContent && renderRightContent()
|
|
3502
3846
|
] });
|
|
@@ -3533,7 +3877,7 @@ var SegmentedControls = ({
|
|
|
3533
3877
|
observer.observe(container);
|
|
3534
3878
|
return () => observer.disconnect();
|
|
3535
3879
|
}, [updateIndicator]);
|
|
3536
|
-
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: cn(
|
|
3880
|
+
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: cn(styles49["segmented-controls"], className), children: [
|
|
3537
3881
|
options.map((option) => {
|
|
3538
3882
|
const currentlyActive = option.value === value;
|
|
3539
3883
|
const showIcon = option.icon != null && effectiveDisplay !== "text-only";
|
|
@@ -3549,15 +3893,15 @@ var SegmentedControls = ({
|
|
|
3549
3893
|
"aria-label": isIconOnly ? option.label : void 0,
|
|
3550
3894
|
title: isIconOnly ? option.label : void 0,
|
|
3551
3895
|
className: cn(
|
|
3552
|
-
|
|
3553
|
-
isIconOnly &&
|
|
3554
|
-
currentlyActive ?
|
|
3896
|
+
styles49["segment"],
|
|
3897
|
+
isIconOnly && styles49["segment--icon-only"],
|
|
3898
|
+
currentlyActive ? styles49["segment--active"] : styles49["segment--inactive"]
|
|
3555
3899
|
),
|
|
3556
3900
|
onClick: () => onValueChange(option.value),
|
|
3557
3901
|
children: [
|
|
3558
|
-
showIcon && /* @__PURE__ */ jsx(Icon, { icon: option.icon, size: "xs", className:
|
|
3902
|
+
showIcon && /* @__PURE__ */ jsx(Icon, { icon: option.icon, size: "xs", className: styles49["segment-icon"] }),
|
|
3559
3903
|
showLabel && /* @__PURE__ */ jsx("span", { children: option.label }),
|
|
3560
|
-
!isIconOnly && option.suffix && /* @__PURE__ */ jsx("span", { className:
|
|
3904
|
+
!isIconOnly && option.suffix && /* @__PURE__ */ jsx("span", { className: styles49["segment-suffix"], children: option.suffix })
|
|
3561
3905
|
]
|
|
3562
3906
|
},
|
|
3563
3907
|
option.value
|
|
@@ -3566,7 +3910,7 @@ var SegmentedControls = ({
|
|
|
3566
3910
|
/* @__PURE__ */ jsx(
|
|
3567
3911
|
"div",
|
|
3568
3912
|
{
|
|
3569
|
-
className:
|
|
3913
|
+
className: styles49["active-segment-indicator"],
|
|
3570
3914
|
style: { transform: `translateX(${indicator.left}px)`, width: `${indicator.width}px` }
|
|
3571
3915
|
}
|
|
3572
3916
|
)
|
|
@@ -3579,8 +3923,8 @@ var Separator3 = React15.forwardRef(({ className, orientation = "horizontal", de
|
|
|
3579
3923
|
decorative,
|
|
3580
3924
|
orientation,
|
|
3581
3925
|
className: cn(
|
|
3582
|
-
|
|
3583
|
-
orientation === "horizontal" ?
|
|
3926
|
+
styles50["separator"],
|
|
3927
|
+
orientation === "horizontal" ? styles50["separator--horizontal"] : styles50["separator--vertical"],
|
|
3584
3928
|
className
|
|
3585
3929
|
),
|
|
3586
3930
|
...props
|
|
@@ -3591,15 +3935,15 @@ var Sheet = DialogPrimitive.Root;
|
|
|
3591
3935
|
var SheetTrigger = DialogPrimitive.Trigger;
|
|
3592
3936
|
var SheetClose = DialogPrimitive.Close;
|
|
3593
3937
|
var SheetPortal = ({ children }) => /* @__PURE__ */ jsx(DialogPrimitive.Portal, { container: usePortalContainer(), children });
|
|
3594
|
-
var SheetOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { className: cn(
|
|
3938
|
+
var SheetOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { className: cn(styles51["sheet-overlay"], className), ...props, ref }));
|
|
3595
3939
|
SheetOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
3596
|
-
var sheetVariants = cva(
|
|
3940
|
+
var sheetVariants = cva(styles51["sheet-content"], {
|
|
3597
3941
|
variants: {
|
|
3598
3942
|
side: {
|
|
3599
|
-
top:
|
|
3600
|
-
bottom:
|
|
3601
|
-
left:
|
|
3602
|
-
right:
|
|
3943
|
+
top: styles51["sheet-content--side-top"],
|
|
3944
|
+
bottom: styles51["sheet-content--side-bottom"],
|
|
3945
|
+
left: styles51["sheet-content--side-left"],
|
|
3946
|
+
right: styles51["sheet-content--side-right"]
|
|
3603
3947
|
}
|
|
3604
3948
|
},
|
|
3605
3949
|
defaultVariants: {
|
|
@@ -3611,7 +3955,7 @@ var SheetContainer = React15.forwardRef(({ side = "right", className, children,
|
|
|
3611
3955
|
/* @__PURE__ */ jsx(DialogPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children })
|
|
3612
3956
|
] }));
|
|
3613
3957
|
SheetContainer.displayName = DialogPrimitive.Content.displayName;
|
|
3614
|
-
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
3958
|
+
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles51["sheet-header-icon"], className), ...props });
|
|
3615
3959
|
SheetHeaderIcon.displayName = "SheetHeaderIcon";
|
|
3616
3960
|
var SheetHeader = ({ className, children, ...props }) => {
|
|
3617
3961
|
const childrenArray = React15.Children.toArray(children);
|
|
@@ -3621,30 +3965,52 @@ var SheetHeader = ({ className, children, ...props }) => {
|
|
|
3621
3965
|
const otherChildren = childrenArray.filter(
|
|
3622
3966
|
(child) => !(React15.isValidElement(child) && child.type === SheetHeaderIcon)
|
|
3623
3967
|
);
|
|
3624
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
3968
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles51["sheet-header"], className), ...props, children: [
|
|
3625
3969
|
icon,
|
|
3626
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3627
|
-
/* @__PURE__ */ jsx(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { name: "X", label: "Close", className:
|
|
3970
|
+
/* @__PURE__ */ jsx("div", { className: styles51["sheet-header-text-content"], children: otherChildren }),
|
|
3971
|
+
/* @__PURE__ */ jsx(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { name: "X", label: "Close", className: styles51["sheet-close"] }) })
|
|
3628
3972
|
] });
|
|
3629
3973
|
};
|
|
3630
3974
|
SheetHeader.displayName = "SheetHeader";
|
|
3631
|
-
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
3975
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles51["sheet-footer"], className), ...props });
|
|
3632
3976
|
SheetFooter.displayName = "SheetFooter";
|
|
3633
|
-
var SheetTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, { ref, className: cn(
|
|
3977
|
+
var SheetTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, { ref, className: cn(styles51["sheet-title"], className), ...props }));
|
|
3634
3978
|
SheetTitle.displayName = DialogPrimitive.Title.displayName;
|
|
3635
3979
|
var SheetDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3636
3980
|
DialogPrimitive.Description,
|
|
3637
3981
|
{
|
|
3638
3982
|
ref,
|
|
3639
|
-
className: cn(
|
|
3983
|
+
className: cn(styles51["sheet-description"], className),
|
|
3640
3984
|
...props
|
|
3641
3985
|
}
|
|
3642
3986
|
));
|
|
3643
3987
|
SheetDescription.displayName = DialogPrimitive.Description.displayName;
|
|
3644
|
-
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
3988
|
+
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles51["sheet-body"], className), ...props });
|
|
3645
3989
|
SheetContent.displayName = "SheetContent";
|
|
3646
3990
|
function Skeleton({ className, ...props }) {
|
|
3647
|
-
return /* @__PURE__ */ jsx("div", { className: cn(
|
|
3991
|
+
return /* @__PURE__ */ jsx("div", { className: cn(styles52["skeleton"], className), ...props });
|
|
3992
|
+
}
|
|
3993
|
+
var ArrowDownIcon = ArrowDown;
|
|
3994
|
+
var ArrowUpIcon = ArrowUp;
|
|
3995
|
+
var ArrowUpDownIcon = ArrowUpDown;
|
|
3996
|
+
function SortButton({
|
|
3997
|
+
field,
|
|
3998
|
+
children,
|
|
3999
|
+
icon,
|
|
4000
|
+
sortField,
|
|
4001
|
+
sortDirection,
|
|
4002
|
+
onSort
|
|
4003
|
+
}) {
|
|
4004
|
+
const isActive = sortField === field;
|
|
4005
|
+
const isAscending = sortDirection === "asc";
|
|
4006
|
+
const handleClick = () => {
|
|
4007
|
+
onSort(field);
|
|
4008
|
+
};
|
|
4009
|
+
return /* @__PURE__ */ jsxs("button", { type: "button", onClick: handleClick, className: styles53["sort-button"], children: [
|
|
4010
|
+
icon,
|
|
4011
|
+
children,
|
|
4012
|
+
/* @__PURE__ */ jsx("div", { className: styles53["arrow-container"], children: isActive ? isAscending ? /* @__PURE__ */ jsx(ArrowUpIcon, {}) : /* @__PURE__ */ jsx(ArrowDownIcon, {}) : /* @__PURE__ */ jsx(ArrowUpDownIcon, { className: styles53["arrow-up-down-icon"] }) })
|
|
4013
|
+
] });
|
|
3648
4014
|
}
|
|
3649
4015
|
var ChevronDownIcon4 = ChevronDown;
|
|
3650
4016
|
function SortSelector({
|
|
@@ -3688,9 +4054,9 @@ function SortSelector({
|
|
|
3688
4054
|
setCurrentPage?.(1);
|
|
3689
4055
|
};
|
|
3690
4056
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
3691
|
-
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "tertiary", className: cn(
|
|
4057
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "tertiary", className: cn(styles54["sort-selector-trigger"], className), children: [
|
|
3692
4058
|
/* @__PURE__ */ jsx("span", { children: currentLabel }),
|
|
3693
|
-
/* @__PURE__ */ jsx(ChevronDownIcon4, { className:
|
|
4059
|
+
/* @__PURE__ */ jsx(ChevronDownIcon4, { className: styles54["chevron-down-icon"] })
|
|
3694
4060
|
] }) }),
|
|
3695
4061
|
/* @__PURE__ */ jsxs(
|
|
3696
4062
|
DropdownMenuContent,
|
|
@@ -3723,49 +4089,27 @@ var Switch = React15.forwardRef(
|
|
|
3723
4089
|
return /* @__PURE__ */ jsx(
|
|
3724
4090
|
SwitchPrimitives.Root,
|
|
3725
4091
|
{
|
|
3726
|
-
className: cn(
|
|
4092
|
+
className: cn(styles55["switch"], styles55[size], styles55[variant], className),
|
|
3727
4093
|
...props,
|
|
3728
4094
|
ref,
|
|
3729
|
-
children: /* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: cn(
|
|
4095
|
+
children: /* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: cn(styles55["thumb"], styles55[size]), children: thumbIcon && /* @__PURE__ */ jsx(Icon, { icon: thumbIcon, className: styles55["thumb-icon"], size: iconSize }) })
|
|
3730
4096
|
}
|
|
3731
4097
|
);
|
|
3732
4098
|
}
|
|
3733
4099
|
);
|
|
3734
4100
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
3735
|
-
var
|
|
3736
|
-
var ArrowUpIcon = ArrowUp;
|
|
3737
|
-
var ArrowUpDownIcon = ArrowUpDown;
|
|
3738
|
-
function SortButton({
|
|
3739
|
-
field,
|
|
3740
|
-
children,
|
|
3741
|
-
icon,
|
|
3742
|
-
sortField,
|
|
3743
|
-
sortDirection,
|
|
3744
|
-
onSort
|
|
3745
|
-
}) {
|
|
3746
|
-
const isActive = sortField === field;
|
|
3747
|
-
const isAscending = sortDirection === "asc";
|
|
3748
|
-
const handleClick = () => {
|
|
3749
|
-
onSort(field);
|
|
3750
|
-
};
|
|
3751
|
-
return /* @__PURE__ */ jsxs("button", { type: "button", onClick: handleClick, className: styles52["sort-button"], children: [
|
|
3752
|
-
icon,
|
|
3753
|
-
children,
|
|
3754
|
-
/* @__PURE__ */ jsx("div", { className: styles52["arrow-container"], children: isActive ? isAscending ? /* @__PURE__ */ jsx(ArrowUpIcon, {}) : /* @__PURE__ */ jsx(ArrowDownIcon, {}) : /* @__PURE__ */ jsx(ArrowUpDownIcon, { className: styles52["arrow-up-down-icon"] }) })
|
|
3755
|
-
] });
|
|
3756
|
-
}
|
|
3757
|
-
var tableElevationVariants = generateElevationVariants(styles53, "table", ELEVATION.RAISED);
|
|
4101
|
+
var tableElevationVariants = generateElevationVariants(styles56, "table", ELEVATION.RAISED);
|
|
3758
4102
|
var TableContainer = React15.forwardRef(({ className, style, elevation = ELEVATION.RAISED, border, columns, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3759
4103
|
"div",
|
|
3760
4104
|
{
|
|
3761
4105
|
className: cn(
|
|
3762
|
-
|
|
4106
|
+
styles56["table"],
|
|
3763
4107
|
tableElevationVariants({ elevation }),
|
|
3764
|
-
border &&
|
|
4108
|
+
border && styles56["table-border"],
|
|
3765
4109
|
className
|
|
3766
4110
|
),
|
|
3767
4111
|
style: columns ? { ...style, "--table-columns": columns } : style,
|
|
3768
|
-
children: /* @__PURE__ */ jsx("table", { ref, className:
|
|
4112
|
+
children: /* @__PURE__ */ jsx("table", { ref, className: styles56["table-inner"], ...props })
|
|
3769
4113
|
}
|
|
3770
4114
|
));
|
|
3771
4115
|
TableContainer.displayName = "Table";
|
|
@@ -3774,18 +4118,18 @@ var TableHeader = React15.forwardRef(({ className, sticky = false, ...props }, r
|
|
|
3774
4118
|
{
|
|
3775
4119
|
ref,
|
|
3776
4120
|
className: cn(
|
|
3777
|
-
|
|
3778
|
-
sticky === "container" &&
|
|
3779
|
-
sticky === "page" &&
|
|
4121
|
+
styles56["table-header"],
|
|
4122
|
+
sticky === "container" && styles56["table-header--sticky-container"],
|
|
4123
|
+
sticky === "page" && styles56["table-header--sticky-page"],
|
|
3780
4124
|
className
|
|
3781
4125
|
),
|
|
3782
4126
|
...props
|
|
3783
4127
|
}
|
|
3784
4128
|
));
|
|
3785
4129
|
TableHeader.displayName = "TableHeader";
|
|
3786
|
-
var TableBody = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn(
|
|
4130
|
+
var TableBody = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn(styles56["table-body"], className), ...props }));
|
|
3787
4131
|
TableBody.displayName = "TableBody";
|
|
3788
|
-
var TableFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tfoot", { ref, className: cn(
|
|
4132
|
+
var TableFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tfoot", { ref, className: cn(styles56["table-footer"], className), ...props }));
|
|
3789
4133
|
TableFooter.displayName = "TableFooter";
|
|
3790
4134
|
var TableRow = React15.forwardRef(
|
|
3791
4135
|
({ className, clickable, href, hrefLabel = "View details", children, onClick, ...props }, ref) => {
|
|
@@ -3802,15 +4146,15 @@ var TableRow = React15.forwardRef(
|
|
|
3802
4146
|
{
|
|
3803
4147
|
ref,
|
|
3804
4148
|
className: cn(
|
|
3805
|
-
|
|
3806
|
-
isClickable &&
|
|
3807
|
-
href &&
|
|
4149
|
+
styles56["table-row"],
|
|
4150
|
+
isClickable && styles56["table-row--clickable"],
|
|
4151
|
+
href && styles56["table-row--linked"],
|
|
3808
4152
|
className
|
|
3809
4153
|
),
|
|
3810
4154
|
onClick: onClick ? handleClick : void 0,
|
|
3811
4155
|
...props,
|
|
3812
4156
|
children: [
|
|
3813
|
-
href && /* @__PURE__ */ jsx("a", { href, className:
|
|
4157
|
+
href && /* @__PURE__ */ jsx("a", { href, className: styles56["table-row-link"], "data-table-row-link": true, children: /* @__PURE__ */ jsx("span", { className: styles56["table-row-link-label"], children: hrefLabel }) }),
|
|
3814
4158
|
children
|
|
3815
4159
|
]
|
|
3816
4160
|
}
|
|
@@ -3818,18 +4162,18 @@ var TableRow = React15.forwardRef(
|
|
|
3818
4162
|
}
|
|
3819
4163
|
);
|
|
3820
4164
|
TableRow.displayName = "TableRow";
|
|
3821
|
-
var TableHead = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("th", { ref, className: cn(
|
|
4165
|
+
var TableHead = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("th", { ref, className: cn(styles56["table-head"], className), ...props }));
|
|
3822
4166
|
TableHead.displayName = "TableHead";
|
|
3823
|
-
var TableCell = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("td", { ref, className: cn(
|
|
4167
|
+
var TableCell = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("td", { ref, className: cn(styles56["table-cell"], className), ...props }));
|
|
3824
4168
|
TableCell.displayName = "TableCell";
|
|
3825
|
-
var TableCaption = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("caption", { ref, className: cn(
|
|
4169
|
+
var TableCaption = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("caption", { ref, className: cn(styles56["table-caption"], className), ...props }));
|
|
3826
4170
|
TableCaption.displayName = "TableCaption";
|
|
3827
4171
|
var TabsContainer = TabsPrimitive.Root;
|
|
3828
|
-
var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.List, { ref, className: cn(
|
|
4172
|
+
var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.List, { ref, className: cn(styles57["tabs-list"], className), ...props }));
|
|
3829
4173
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
3830
|
-
var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { ref, className: cn(
|
|
4174
|
+
var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { ref, className: cn(styles57["tabs-trigger"], className), ...props }));
|
|
3831
4175
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
3832
|
-
var TabsContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Content, { ref, className: cn(
|
|
4176
|
+
var TabsContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Content, { ref, className: cn(styles57["tabs-content"], className), ...props }));
|
|
3833
4177
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
3834
4178
|
var Tabs = ({
|
|
3835
4179
|
id,
|
|
@@ -3848,17 +4192,17 @@ var Tabs = ({
|
|
|
3848
4192
|
};
|
|
3849
4193
|
const renderIcon = (icon) => {
|
|
3850
4194
|
if (icon) {
|
|
3851
|
-
return /* @__PURE__ */ jsx(Icon, { icon, size: "sm", className:
|
|
4195
|
+
return /* @__PURE__ */ jsx(Icon, { icon, size: "sm", className: styles58["tabs-icon"] });
|
|
3852
4196
|
}
|
|
3853
4197
|
return null;
|
|
3854
4198
|
};
|
|
3855
4199
|
const indicatorClass = cn(
|
|
3856
|
-
|
|
3857
|
-
isFilled ?
|
|
4200
|
+
styles58["active-tab-indicator"],
|
|
4201
|
+
isFilled ? styles58["active-tab-indicator--filled"] : styles58["active-tab-indicator--transparent"]
|
|
3858
4202
|
);
|
|
3859
4203
|
const renderActiveStyle = (isActive) => {
|
|
3860
4204
|
if (staticRender) {
|
|
3861
|
-
return /* @__PURE__ */ jsx("span", { className: cn(indicatorClass,
|
|
4205
|
+
return /* @__PURE__ */ jsx("span", { className: cn(indicatorClass, styles58["active-tab-indicator--static"]) });
|
|
3862
4206
|
}
|
|
3863
4207
|
if (isActive) {
|
|
3864
4208
|
return /* @__PURE__ */ jsx(
|
|
@@ -3877,14 +4221,14 @@ var Tabs = ({
|
|
|
3877
4221
|
{
|
|
3878
4222
|
value: activeTab,
|
|
3879
4223
|
onValueChange: handleValueChange,
|
|
3880
|
-
className: cn(
|
|
4224
|
+
className: cn(styles58["tabs"], className),
|
|
3881
4225
|
children: [
|
|
3882
4226
|
/* @__PURE__ */ jsx(
|
|
3883
4227
|
TabsList,
|
|
3884
4228
|
{
|
|
3885
4229
|
className: cn(
|
|
3886
|
-
|
|
3887
|
-
isFilled ?
|
|
4230
|
+
styles58["tabs-list"],
|
|
4231
|
+
isFilled ? styles58["tabs-list--filled"] : styles58["tabs-list--transparent"]
|
|
3888
4232
|
),
|
|
3889
4233
|
children: items.map(({ label, value, icon, suffix, triggerProps }) => {
|
|
3890
4234
|
const isActive = activeTab === value;
|
|
@@ -3895,8 +4239,8 @@ var Tabs = ({
|
|
|
3895
4239
|
key: value,
|
|
3896
4240
|
value,
|
|
3897
4241
|
className: cn(
|
|
3898
|
-
|
|
3899
|
-
isFilled ?
|
|
4242
|
+
styles58["tabs-trigger"],
|
|
4243
|
+
isFilled ? styles58["tabs-trigger--filled"] : styles58["tabs-trigger--transparent"],
|
|
3900
4244
|
triggerProps?.className
|
|
3901
4245
|
)
|
|
3902
4246
|
},
|
|
@@ -3912,7 +4256,7 @@ var Tabs = ({
|
|
|
3912
4256
|
TabsContent,
|
|
3913
4257
|
{
|
|
3914
4258
|
value,
|
|
3915
|
-
className:
|
|
4259
|
+
className: styles58["content"],
|
|
3916
4260
|
forceMount: staticRender || void 0,
|
|
3917
4261
|
children: content
|
|
3918
4262
|
},
|
|
@@ -3924,175 +4268,28 @@ var Tabs = ({
|
|
|
3924
4268
|
};
|
|
3925
4269
|
var Textarea = React15.forwardRef(
|
|
3926
4270
|
({ className, ...props }, ref) => {
|
|
3927
|
-
return /* @__PURE__ */ jsx("textarea", { className: cn(
|
|
4271
|
+
return /* @__PURE__ */ jsx("textarea", { className: cn(styles59["textarea"], className), ref, ...props });
|
|
3928
4272
|
}
|
|
3929
4273
|
);
|
|
3930
4274
|
Textarea.displayName = "Textarea";
|
|
3931
|
-
var DEFAULT_LOCALE = "en-US";
|
|
3932
|
-
var DEFAULT_ABSOLUTE_OPTIONS = {
|
|
3933
|
-
year: "numeric",
|
|
3934
|
-
month: "short",
|
|
3935
|
-
day: "2-digit",
|
|
3936
|
-
hour: "2-digit",
|
|
3937
|
-
minute: "2-digit",
|
|
3938
|
-
second: "2-digit",
|
|
3939
|
-
hour12: false,
|
|
3940
|
-
timeZoneName: "short"
|
|
3941
|
-
};
|
|
3942
|
-
var RELATIVE_DIVISIONS = [
|
|
3943
|
-
{ amount: 60, unit: "second" },
|
|
3944
|
-
{ amount: 60, unit: "minute" },
|
|
3945
|
-
{ amount: 24, unit: "hour" },
|
|
3946
|
-
{ amount: 7, unit: "day" },
|
|
3947
|
-
{ amount: 4.34524, unit: "week" },
|
|
3948
|
-
{ amount: 12, unit: "month" },
|
|
3949
|
-
{ amount: Number.POSITIVE_INFINITY, unit: "year" }
|
|
3950
|
-
];
|
|
3951
|
-
var LIVE_INTERVAL_MS = 3e4;
|
|
3952
|
-
var MINUTE_MS = 6e4;
|
|
3953
|
-
var HOUR_MS = 60 * MINUTE_MS;
|
|
3954
|
-
var DAY_MS = 24 * HOUR_MS;
|
|
3955
|
-
var YEAR_MS = 365.25 * DAY_MS;
|
|
3956
|
-
var MONTH_MS = YEAR_MS / 12;
|
|
3957
|
-
var JUST_NOW_MS = 45e3;
|
|
3958
|
-
var COARSE_AFTER_MS = 90 * DAY_MS;
|
|
3959
|
-
var FINE_UNITS = [
|
|
3960
|
-
{ ms: DAY_MS, unit: "day" },
|
|
3961
|
-
{ ms: HOUR_MS, unit: "hour" },
|
|
3962
|
-
{ ms: MINUTE_MS, unit: "minute" }
|
|
3963
|
-
];
|
|
3964
|
-
var COARSE_UNITS = [
|
|
3965
|
-
{ ms: YEAR_MS, unit: "year" },
|
|
3966
|
-
{ ms: MONTH_MS, unit: "month" }
|
|
3967
|
-
];
|
|
3968
|
-
var NO_DATE_PLACEHOLDER = "---";
|
|
3969
|
-
function isMissing(value) {
|
|
3970
|
-
return value == null || typeof value === "string" && value.trim() === "";
|
|
3971
|
-
}
|
|
3972
|
-
function toDate(value) {
|
|
3973
|
-
const date = value instanceof Date ? value : new Date(value);
|
|
3974
|
-
return Number.isNaN(date.getTime()) ? null : date;
|
|
3975
|
-
}
|
|
3976
|
-
function formatAbsolute(date, timeZone, options, locale) {
|
|
3977
|
-
return new Intl.DateTimeFormat(locale, { ...options, timeZone }).format(date);
|
|
3978
|
-
}
|
|
3979
|
-
function formatRelative(date, now, locale) {
|
|
3980
|
-
if (Math.abs(date.getTime() - now.getTime()) < JUST_NOW_MS) return "Just now";
|
|
3981
|
-
let duration = (date.getTime() - now.getTime()) / 1e3;
|
|
3982
|
-
const rtf = new Intl.RelativeTimeFormat(locale, { numeric: "auto" });
|
|
3983
|
-
for (const division of RELATIVE_DIVISIONS) {
|
|
3984
|
-
if (Math.abs(duration) < division.amount) {
|
|
3985
|
-
return rtf.format(Math.round(duration), division.unit);
|
|
3986
|
-
}
|
|
3987
|
-
duration /= division.amount;
|
|
3988
|
-
}
|
|
3989
|
-
return "Just now";
|
|
3990
|
-
}
|
|
3991
|
-
function measureSpan(spanMs) {
|
|
3992
|
-
const units = spanMs < COARSE_AFTER_MS ? FINE_UNITS : COARSE_UNITS;
|
|
3993
|
-
const index = units.findIndex(({ ms: ms2 }) => spanMs >= ms2);
|
|
3994
|
-
if (index === -1) return { value: 1, unit: units[units.length - 1].unit };
|
|
3995
|
-
const { ms, unit } = units[index];
|
|
3996
|
-
const value = Math.round(spanMs / ms);
|
|
3997
|
-
const next = units[index - 1];
|
|
3998
|
-
if (next && value * ms >= next.ms) {
|
|
3999
|
-
return { value: Math.round(spanMs / next.ms), unit: next.unit };
|
|
4000
|
-
}
|
|
4001
|
-
return { value, unit };
|
|
4002
|
-
}
|
|
4003
|
-
function formatCountdown(date, now, locale) {
|
|
4004
|
-
const spanMs = date.getTime() - now.getTime();
|
|
4005
|
-
if (spanMs <= 0) return null;
|
|
4006
|
-
const { value, unit } = measureSpan(spanMs);
|
|
4007
|
-
return new Intl.NumberFormat(locale, { style: "unit", unit, unitDisplay: "long" }).format(value);
|
|
4008
|
-
}
|
|
4009
|
-
function DatePlaceholder({
|
|
4010
|
-
label,
|
|
4011
|
-
className,
|
|
4012
|
-
...props
|
|
4013
|
-
}) {
|
|
4014
|
-
return /* @__PURE__ */ jsxs("span", { className: cn(styles57["format-date"], className), ...props, children: [
|
|
4015
|
-
/* @__PURE__ */ jsx("span", { className: styles57["visually-hidden"], children: label }),
|
|
4016
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: NO_DATE_PLACEHOLDER })
|
|
4017
|
-
] });
|
|
4018
|
-
}
|
|
4019
|
-
function FormatDate({
|
|
4020
|
-
date,
|
|
4021
|
-
displayAs = "absolute",
|
|
4022
|
-
timeZone = "UTC",
|
|
4023
|
-
locale = DEFAULT_LOCALE,
|
|
4024
|
-
tooltip = true,
|
|
4025
|
-
live = true,
|
|
4026
|
-
absoluteOptions,
|
|
4027
|
-
className,
|
|
4028
|
-
...props
|
|
4029
|
-
}) {
|
|
4030
|
-
const missing = isMissing(date);
|
|
4031
|
-
const parsed = React15.useMemo(() => isMissing(date) ? null : toDate(date), [date]);
|
|
4032
|
-
const [now, setNow] = React15.useState(() => /* @__PURE__ */ new Date());
|
|
4033
|
-
const [mounted, setMounted] = React15.useState(false);
|
|
4034
|
-
const isAbsolute = displayAs === "absolute";
|
|
4035
|
-
React15.useEffect(() => setMounted(true), []);
|
|
4036
|
-
React15.useEffect(() => {
|
|
4037
|
-
if (isAbsolute || !live) return;
|
|
4038
|
-
const id = setInterval(() => setNow(/* @__PURE__ */ new Date()), LIVE_INTERVAL_MS);
|
|
4039
|
-
return () => clearInterval(id);
|
|
4040
|
-
}, [isAbsolute, live]);
|
|
4041
|
-
if (missing) {
|
|
4042
|
-
return /* @__PURE__ */ jsx(DatePlaceholder, { label: "No date", className, ...props });
|
|
4043
|
-
}
|
|
4044
|
-
if (!parsed) {
|
|
4045
|
-
return /* @__PURE__ */ jsx("span", { className: cn(styles57["format-date"], className), ...props, children: "Invalid date" });
|
|
4046
|
-
}
|
|
4047
|
-
const machineValue = parsed.toISOString();
|
|
4048
|
-
const absolute = formatAbsolute(
|
|
4049
|
-
parsed,
|
|
4050
|
-
timeZone,
|
|
4051
|
-
absoluteOptions ?? DEFAULT_ABSOLUTE_OPTIONS,
|
|
4052
|
-
locale
|
|
4053
|
-
);
|
|
4054
|
-
if (isAbsolute) {
|
|
4055
|
-
return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(styles57["format-date"], className), ...props, children: absolute });
|
|
4056
|
-
}
|
|
4057
|
-
const measured = !mounted ? absolute : displayAs === "relative" ? formatRelative(parsed, now, locale) : formatCountdown(parsed, now, locale);
|
|
4058
|
-
if (measured === null) {
|
|
4059
|
-
return /* @__PURE__ */ jsx(DatePlaceholder, { label: "Date has passed", className, ...props });
|
|
4060
|
-
}
|
|
4061
|
-
if (!tooltip) {
|
|
4062
|
-
return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(styles57["format-date"], className), ...props, children: measured });
|
|
4063
|
-
}
|
|
4064
|
-
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
4065
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
4066
|
-
"time",
|
|
4067
|
-
{
|
|
4068
|
-
dateTime: machineValue,
|
|
4069
|
-
tabIndex: 0,
|
|
4070
|
-
className: cn(styles57["format-date"], styles57["format-date--interactive"], className),
|
|
4071
|
-
...props,
|
|
4072
|
-
children: measured
|
|
4073
|
-
}
|
|
4074
|
-
) }),
|
|
4075
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: absolute })
|
|
4076
|
-
] }) });
|
|
4077
|
-
}
|
|
4078
4275
|
var XIcon2 = X;
|
|
4079
4276
|
var ToastProvider = ToastPrimitives.Provider;
|
|
4080
4277
|
var ToastViewport = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4081
4278
|
ToastPrimitives.Viewport,
|
|
4082
4279
|
{
|
|
4083
4280
|
ref,
|
|
4084
|
-
className: cn(
|
|
4281
|
+
className: cn(styles60["toast-viewport"], className),
|
|
4085
4282
|
...props
|
|
4086
4283
|
}
|
|
4087
4284
|
));
|
|
4088
4285
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
4089
|
-
var toastVariants = cva(
|
|
4286
|
+
var toastVariants = cva(styles60["toast"], {
|
|
4090
4287
|
variants: {
|
|
4091
4288
|
variant: {
|
|
4092
|
-
default:
|
|
4093
|
-
danger:
|
|
4094
|
-
warning:
|
|
4095
|
-
success:
|
|
4289
|
+
default: styles60["toast--default"],
|
|
4290
|
+
danger: styles60["toast--danger"],
|
|
4291
|
+
warning: styles60["toast--warning"],
|
|
4292
|
+
success: styles60["toast--success"]
|
|
4096
4293
|
}
|
|
4097
4294
|
},
|
|
4098
4295
|
defaultVariants: {
|
|
@@ -4110,17 +4307,17 @@ var ToastContainer = React15.forwardRef(({ className, variant, ...props }, ref)
|
|
|
4110
4307
|
);
|
|
4111
4308
|
});
|
|
4112
4309
|
ToastContainer.displayName = ToastPrimitives.Root.displayName;
|
|
4113
|
-
var ToastAction = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Action, { ref, className: cn(
|
|
4310
|
+
var ToastAction = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Action, { ref, className: cn(styles60["toast-action"], className), ...props }));
|
|
4114
4311
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
4115
|
-
var ToastClose = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Close, { ref, className: cn(
|
|
4312
|
+
var ToastClose = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Close, { ref, className: cn(styles60["toast-close"], className), ...props, children: /* @__PURE__ */ jsx(XIcon2, { className: styles60["toast-close-icon"] }) }));
|
|
4116
4313
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
4117
|
-
var ToastTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Title, { ref, className: cn(
|
|
4314
|
+
var ToastTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Title, { ref, className: cn(styles60["toast-title"], className), ...props }));
|
|
4118
4315
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
4119
4316
|
var ToastDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4120
4317
|
ToastPrimitives.Description,
|
|
4121
4318
|
{
|
|
4122
4319
|
ref,
|
|
4123
|
-
className: cn(
|
|
4320
|
+
className: cn(styles60["toast-description"], className),
|
|
4124
4321
|
...props
|
|
4125
4322
|
}
|
|
4126
4323
|
));
|
|
@@ -4255,14 +4452,14 @@ var Toast = ({ toast: toast2 }) => {
|
|
|
4255
4452
|
};
|
|
4256
4453
|
const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
|
|
4257
4454
|
return /* @__PURE__ */ jsxs(ToastContainer, { ...props, variant, children: [
|
|
4258
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
4259
|
-
title && /* @__PURE__ */ jsxs("div", { className:
|
|
4455
|
+
/* @__PURE__ */ jsxs("div", { className: styles61["toast-copy"], children: [
|
|
4456
|
+
title && /* @__PURE__ */ jsxs("div", { className: styles61["toast-title-container"], children: [
|
|
4260
4457
|
displayIcon && /* @__PURE__ */ jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
|
|
4261
4458
|
/* @__PURE__ */ jsx(ToastTitle, { children: title })
|
|
4262
4459
|
] }),
|
|
4263
4460
|
description && /* @__PURE__ */ jsx(ToastDescription, { children: description })
|
|
4264
4461
|
] }),
|
|
4265
|
-
action && /* @__PURE__ */ jsx("div", { className:
|
|
4462
|
+
action && /* @__PURE__ */ jsx("div", { className: styles61["toast-action"], children: action }),
|
|
4266
4463
|
/* @__PURE__ */ jsx(ToastClose, {})
|
|
4267
4464
|
] });
|
|
4268
4465
|
};
|
|
@@ -4292,7 +4489,7 @@ var TruncatedDescription = ({
|
|
|
4292
4489
|
e.stopPropagation();
|
|
4293
4490
|
setExpanded(!expanded);
|
|
4294
4491
|
};
|
|
4295
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
4492
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles62["truncated-description"], className), children: [
|
|
4296
4493
|
/* @__PURE__ */ jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
|
|
4297
4494
|
isLongDescription && /* @__PURE__ */ jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
|
|
4298
4495
|
] });
|
|
@@ -4300,125 +4497,6 @@ var TruncatedDescription = ({
|
|
|
4300
4497
|
var removeHtmlTags = (html) => {
|
|
4301
4498
|
return html.replace(/<[^>]*>/g, "");
|
|
4302
4499
|
};
|
|
4303
|
-
var Heading = forwardRef(
|
|
4304
|
-
({ className, as, displayAs, children, ...props }, ref) => {
|
|
4305
|
-
const displayClasses = {
|
|
4306
|
-
h1: styles61["h1"],
|
|
4307
|
-
h2: styles61["h2"],
|
|
4308
|
-
h3: styles61["h3"],
|
|
4309
|
-
h4: styles61["h4"],
|
|
4310
|
-
h5: styles61["h5"],
|
|
4311
|
-
h6: styles61["h6"]
|
|
4312
|
-
};
|
|
4313
|
-
const displayClass = displayClasses[displayAs] || displayClasses[as];
|
|
4314
|
-
const HeadingTag = as;
|
|
4315
|
-
return /* @__PURE__ */ jsx(HeadingTag, { ref, className: cn(displayClass, className), ...props, children });
|
|
4316
|
-
}
|
|
4317
|
-
);
|
|
4318
|
-
Heading.displayName = "Heading";
|
|
4319
|
-
var ControlStatusBadge = ({ status, display = "both" }) => {
|
|
4320
|
-
const config = getStatusConfig(status);
|
|
4321
|
-
if (config.subLabel) {
|
|
4322
|
-
if (display === "icon-only") {
|
|
4323
|
-
return /* @__PURE__ */ jsx(Badge, { icon: config.icon, display: "icon-only", className: config.className, variant: null, children: config.label });
|
|
4324
|
-
}
|
|
4325
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(styles62["split-badge"], config.className), children: [
|
|
4326
|
-
/* @__PURE__ */ jsxs("span", { className: styles62["split-badge__status"], children: [
|
|
4327
|
-
display !== "text-only" && /* @__PURE__ */ jsx(Icon, { icon: config.icon, size: "xs", className: styles62["icon"] }),
|
|
4328
|
-
config.label
|
|
4329
|
-
] }),
|
|
4330
|
-
/* @__PURE__ */ jsx("span", { className: styles62["split-badge__sub-status"], children: config.subLabel })
|
|
4331
|
-
] });
|
|
4332
|
-
}
|
|
4333
|
-
return /* @__PURE__ */ jsx(Badge, { icon: config.icon, display, className: config.className, variant: null, children: config.label });
|
|
4334
|
-
};
|
|
4335
|
-
var getStatusConfig = (status) => {
|
|
4336
|
-
switch (status) {
|
|
4337
|
-
case "in-progress":
|
|
4338
|
-
return {
|
|
4339
|
-
icon: "Clock",
|
|
4340
|
-
className: styles62["badge--in-progress"],
|
|
4341
|
-
label: "In Progress"
|
|
4342
|
-
};
|
|
4343
|
-
case "not-started":
|
|
4344
|
-
return {
|
|
4345
|
-
icon: "CircleDashed",
|
|
4346
|
-
className: styles62["badge--not-started"],
|
|
4347
|
-
label: "Not Started"
|
|
4348
|
-
};
|
|
4349
|
-
case "ready-for-review":
|
|
4350
|
-
return {
|
|
4351
|
-
icon: "ClipboardCheck",
|
|
4352
|
-
className: styles62["badge--ready-for-review"],
|
|
4353
|
-
label: "Ready for Review"
|
|
4354
|
-
};
|
|
4355
|
-
case "in-review":
|
|
4356
|
-
return {
|
|
4357
|
-
icon: "Eye",
|
|
4358
|
-
className: styles62["badge--in-review"],
|
|
4359
|
-
label: "In Review"
|
|
4360
|
-
};
|
|
4361
|
-
case "comment":
|
|
4362
|
-
return {
|
|
4363
|
-
icon: "Eye",
|
|
4364
|
-
className: styles62["badge--comment"],
|
|
4365
|
-
label: "In Review",
|
|
4366
|
-
subLabel: "General"
|
|
4367
|
-
};
|
|
4368
|
-
case "not-applicable":
|
|
4369
|
-
return {
|
|
4370
|
-
icon: "MinusCircle",
|
|
4371
|
-
className: styles62["badge--not-applicable"],
|
|
4372
|
-
label: "Not Applicable"
|
|
4373
|
-
};
|
|
4374
|
-
case "accepted":
|
|
4375
|
-
return {
|
|
4376
|
-
icon: "Eye",
|
|
4377
|
-
className: styles62["badge--accepted"],
|
|
4378
|
-
label: "In Review",
|
|
4379
|
-
subLabel: "Accepted"
|
|
4380
|
-
};
|
|
4381
|
-
case "questioned":
|
|
4382
|
-
return {
|
|
4383
|
-
icon: "Eye",
|
|
4384
|
-
className: styles62["badge--question"],
|
|
4385
|
-
label: "In Review",
|
|
4386
|
-
subLabel: "Questioned"
|
|
4387
|
-
};
|
|
4388
|
-
case "compliant":
|
|
4389
|
-
return {
|
|
4390
|
-
icon: /* @__PURE__ */ jsx(CircleCheckFillIcon, {}),
|
|
4391
|
-
className: styles62["badge--compliant"],
|
|
4392
|
-
label: "Compliant"
|
|
4393
|
-
};
|
|
4394
|
-
case "non-compliant":
|
|
4395
|
-
return {
|
|
4396
|
-
icon: "X",
|
|
4397
|
-
className: styles62["badge--non-compliant"],
|
|
4398
|
-
label: "Non-compliant"
|
|
4399
|
-
};
|
|
4400
|
-
default:
|
|
4401
|
-
return {
|
|
4402
|
-
icon: "CircleDashed",
|
|
4403
|
-
className: styles62["badge--not-started"],
|
|
4404
|
-
label: status
|
|
4405
|
-
};
|
|
4406
|
-
}
|
|
4407
|
-
};
|
|
4408
|
-
var CircleCheckFillIcon = ({ className }) => {
|
|
4409
|
-
return /* @__PURE__ */ jsx(
|
|
4410
|
-
"svg",
|
|
4411
|
-
{
|
|
4412
|
-
className,
|
|
4413
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4414
|
-
width: "12",
|
|
4415
|
-
height: "12",
|
|
4416
|
-
viewBox: "0 0 24 24",
|
|
4417
|
-
fill: "currentColor",
|
|
4418
|
-
children: /* @__PURE__ */ jsx("path", { d: "M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM15.707 9.29297C15.3165 8.90245 14.6835 8.90244 14.293 9.29297L11 12.5859L9.70703 11.293C9.31651 10.9024 8.68349 10.9024 8.29297 11.293C7.90244 11.6835 7.90245 12.3165 8.29297 12.707L10.293 14.707C10.6835 15.0976 11.3165 15.0976 11.707 14.707L15.707 10.707C16.0976 10.3165 16.0976 9.68349 15.707 9.29297Z" })
|
|
4419
|
-
}
|
|
4420
|
-
);
|
|
4421
|
-
};
|
|
4422
4500
|
var Portal8 = React15.forwardRef((_props, ref) => {
|
|
4423
4501
|
return /* @__PURE__ */ jsx("div", { id: PORTAL_ROOT_ID, ref });
|
|
4424
4502
|
});
|
|
@@ -4558,6 +4636,6 @@ var useTheme = () => {
|
|
|
4558
4636
|
return [theme, setTheme];
|
|
4559
4637
|
};
|
|
4560
4638
|
|
|
4561
|
-
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, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerHeaderActions, DrawerInnerContent, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, 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, ListOrGridViewToggle, LoadingOverlay, MetricCard, MotionCollapsibleContent, NotFound, PORTAL_ROOT_ID, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, ProgressIndicator, ProgressIndicatorStep, RadialGraph, RadioDropdown, RadioGroup2 as RadioGroup, RadioGroupItem, ResourceBadge, ScrollArea, ScrollBar, SearchBar, SectionHeading, SegmentedControls, Select, SelectContent, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, 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, buttonVariants, reducer, scheduleHighlight, toast, useFormField, usePortalContainer, useTheme, useToast };
|
|
4639
|
+
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, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerHeaderActions, DrawerInnerContent, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, 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, ListOrGridViewToggle, LoadingOverlay, MetricCard, MotionCollapsibleContent, NotFound, PORTAL_ROOT_ID, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, ProgressIndicator, ProgressIndicatorStep, RadialGraph, RadioDropdown, RadioGroup2 as RadioGroup, RadioGroupItem, ResourceBadge, ScrollArea, ScrollBar, SearchBar, SectionHeading, SegmentedControls, Select, SelectContent, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, 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, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
|
|
4562
4640
|
//# sourceMappingURL=index.js.map
|
|
4563
4641
|
//# sourceMappingURL=index.js.map
|