@eqtylab/equality 4.3.2 → 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/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 styles2 from './alert.module.module.css.module.css';
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 { jsx, jsxs, Fragment } from 'react/jsx-runtime';
11
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
12
- import styles4 from './alert-dialog.module.module.css.module.css';
13
- import { Slot } from '@radix-ui/react-slot';
14
- import styles3 from './button.module.module.css.module.css';
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 './resource-badge.module.module.css.module.css';
23
- import styles11 from './card-content-header.module.module.css.module.css';
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 styles13 from './checkbox.module.module.css.module.css';
27
- import styles15 from './code-block.module.module.css.module.css';
28
- import styles14 from './icon-button.module.module.css.module.css';
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 styles17 from './command.module.module.css.module.css';
30
+ import styles16 from './command.module.module.css.module.css';
32
31
  import * as DialogPrimitive from '@radix-ui/react-dialog';
33
- import styles16 from './dialog.module.module.css.module.css';
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 './info-card.module.module.css.module.css';
50
- import styles29 from './input.module.module.css.module.css';
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 styles28 from './motion-collapsible.module.module.css.module.css';
53
- import styles30 from './list-or-grid-view-toggle.module.module.css.module.css';
54
- import styles32 from './loading-overlay.module.module.css.module.css';
55
- import styles31 from './spinner.module.module.css.module.css';
56
- import styles33 from './metric-card.module.module.css.module.css';
57
- import styles34 from './page-not-found.module.module.css.module.css';
58
- import styles36 from './pagination.module.module.css.module.css';
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 styles35 from './select.module.module.css.module.css';
61
- import styles37 from './panel-label.module.module.css.module.css';
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 styles38 from './progress.module.module.css.module.css';
64
- import styles39 from './progress-indicator.module.module.css.module.css';
65
- import styles40 from './radial-graph.module.module.css.module.css';
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 styles42 from './radio-group.module.module.css.module.css';
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 styles43 from './scroll-area.module.module.css.module.css';
71
- import styles44 from './search-bar.module.module.css.module.css';
72
- import styles45 from './section-heading.module.module.css.module.css';
73
- import styles46 from './segmented-controls.module.module.css.module.css';
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 styles47 from './separator.module.module.css.module.css';
76
- import styles48 from './sheet.module.module.css.module.css';
77
- import styles49 from './skeleton.module.module.css.module.css';
78
- import styles50 from './sort-selector.module.module.css.module.css';
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 styles51 from './switch.module.module.css.module.css';
81
- import styles52 from './sort-button.module.module.css.module.css';
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 styles54 from './tabs-components.module.module.css.module.css';
85
- import styles55 from './tabs.module.module.css.module.css';
86
- import styles56 from './textarea.module.module.css.module.css';
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 styles58 from './toast-components.module.module.css.module.css';
90
- import styles59 from './toast.module.module.css.module.css';
91
- import styles60 from './truncated-description.module.module.css.module.css';
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 iconVariants = cva(styles["icon-container"], {
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(styles4["alert-dialog-overlay"], className),
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(styles4["alert-dialog-content"], className),
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(styles4["alert-dialog-header"], className), ...props });
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(styles4["alert-dialog-footer"], className), ...props });
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(styles4["alert-dialog-title"], className),
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(styles4["alert-dialog-description"], className),
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 }), styles4["alert-dialog-cancel"], className),
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
- styles11["card-content-header"],
939
- shouldWrap && styles11["card-content-header--wrap"],
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: styles11.button, variant: "tertiary", size: "sm", onClick: onButtonClick, children: "See All" }),
946
- heading && /* @__PURE__ */ jsx("h3", { className: cn(styles11.title, onButtonClick && styles11["title--button-click"]), children: heading })
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(styles12, "card", ELEVATION.RAISED);
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
- styles12.card,
962
- shouldHaveHoverStyle && styles12["card--hover"],
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(styles12["card-hover-gradient"], hoverGradientClassName) }),
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(styles12["card-header"], className), ...props })
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(styles12["card-title"], className), ...props })
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(styles12["card-description"], className), ...props })
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(styles12["card-content"], className), ...props })
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(styles12["card-footer"], className), ...props })
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(styles13.checkbox, styles13[size], className),
841
+ className: cn(styles12.checkbox, styles12[size], className),
1002
842
  ...props,
1003
- children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { className: styles13.indicator, children: Icon3 ? /* @__PURE__ */ jsx(Icon3, { className: styles13.check }) : /* @__PURE__ */ jsx(CheckIcon, { className: styles13.check }) })
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(styles14["icon-btn"], {
848
+ var iconButtonVariants = cva(styles13["icon-btn"], {
1009
849
  variants: {
1010
850
  size: {
1011
- sm: styles14["size--sm"],
1012
- md: styles14["size--md"],
1013
- lg: styles14["size--lg"]
851
+ sm: styles13["size--sm"],
852
+ md: styles13["size--md"],
853
+ lg: styles13["size--lg"]
1014
854
  },
1015
855
  variant: {
1016
- primary: styles14["icon-btn--primary"],
1017
- danger: styles14["icon-btn--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(styles15["code-block"], styles15[variant], className), children: [
1173
- /* @__PURE__ */ jsxs("div", { className: styles15.header, children: [
1174
- /* @__PURE__ */ jsxs("div", { className: styles15["header-left"], children: [
1175
- title && /* @__PURE__ */ jsx("span", { className: styles15.title, children: title }),
1176
- /* @__PURE__ */ jsx(Badge, { variant: "neutral", className: styles15.badge, children: language })
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: styles15["header-right"], children: /* @__PURE__ */ jsx(CopyButton, { value: copy || code, size: "sm" }) })
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: styles15.content,
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(styles15.body, { [styles15.numbered]: lineNumbers }), children: [
1188
- gutter && /* @__PURE__ */ jsx("pre", { "aria-hidden": "true", className: styles15.gutter, children: gutter }),
1189
- /* @__PURE__ */ jsx("pre", { ref: preRef, className: styles15.pre, ...{ [CODE_BLOCK_ATTRIBUTE]: "" }, children: /* @__PURE__ */ jsx(
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(styles15.code, `language-${language}`, { [styles15.wrap]: !lineNumbers }),
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: styles15["code-label"], children: /* @__PURE__ */ jsx("p", { className: styles15["code-label-text"], children: codeLabel }) })
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(styles16["dialog-overlay"], className),
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(styles16["dialog-content"], styles16[`dialog-content--size-${size}`], className),
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(styles16["dialog-header-icon"], className), ...props });
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(styles16["dialog-header"], className), ...props, children: [
1082
+ return /* @__PURE__ */ jsxs("div", { className: cn(styles15["dialog-header"], className), ...props, children: [
1243
1083
  icon,
1244
- /* @__PURE__ */ jsx("div", { className: styles16["dialog-header-content"], children: otherChildren }),
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(styles16["dialog-footer"], className), ...props });
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(styles16["dialog-title"], className), ...props }));
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(styles16["dialog-description"], className),
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(styles16["dialog-body"], className), ...props });
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(styles17.command, className), ...props });
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: styles17["command-dialog-header"], children: [
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: styles17["command-dialog-content"], children: /* @__PURE__ */ jsx(Command, { className: styles17["command-dialog-content-inner"], children }) })
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: styles17["command-input"], children: [
1286
- /* @__PURE__ */ jsx(SearchIcon, { className: styles17["command-input-icon"] }),
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(styles17["command-input-input"], className),
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(styles17["command-list"], className),
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: styles17["command-empty"],
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(styles17["command-group"], className),
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(styles17["command-separator"], className),
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(styles17["command-item"], className),
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(styles17["command-shortcut"], className),
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 resetForOpen = React15.useCallback(() => {
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) resetForOpen();
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,7 +1886,14 @@ var SearchIcon2 = Search;
1867
1886
  var DropdownMenuSearchContext = React15.createContext(null);
1868
1887
  var useDropdownMenuSearch = () => React15.useContext(DropdownMenuSearchContext);
1869
1888
  var useIsSearching = () => isSearchActive(useDropdownMenuSearch());
1870
- var DropdownMenuBreadcrumbContext = React15.createContext([]);
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
+ };
1896
+ var DropdownMenuBreadcrumbContext = React15.createContext([]);
1871
1897
  var useBreadcrumbAncestry = () => React15.useContext(DropdownMenuBreadcrumbContext);
1872
1898
  var SUB_CONTENT_NAME = "DropdownMenuSubContent";
1873
1899
  var SUB_TRIGGER_NAME = "DropdownMenuSubTrigger";
@@ -1963,80 +1989,81 @@ var DropdownMenuSub = ({
1963
1989
  }
1964
1990
  return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, { ...props, children });
1965
1991
  };
1966
- var MENU_ITEM_SELECTOR = '[role="menuitem"]:not([data-disabled]),[role="menuitemcheckbox"]:not([data-disabled]),[role="menuitemradio"]:not([data-disabled])';
1967
- var DropdownMenuContent = React15.forwardRef(({ className, sideOffset = 4, onKeyDown, onFocus, children, ...props }, ref) => {
1968
- const ctx = useDropdownMenuSearch();
1969
- const setListId = ctx?.setListId;
1970
- const searching = isSearchActive(ctx);
1971
- const resultCount = ctx?.matchCount ?? 0;
1972
- const openFocusHandledRef = React15.useRef(false);
1973
- const searchVisible = ctx?.visible ?? false;
1974
- React15.useEffect(() => {
1975
- if (!searchVisible) openFocusHandledRef.current = false;
1976
- }, [searchVisible]);
1977
- const composedContentRef = React15.useCallback(
1978
- (node) => {
1979
- assignRefs(node, ref);
1980
- setListId?.(node?.id || void 0);
1981
- },
1982
- [ref, setListId]
1983
- );
1984
- return /* @__PURE__ */ jsx(DropdownMenuPortal, { children: /* @__PURE__ */ jsxs(
1985
- DropdownMenuPrimitive.Content,
1986
- {
1987
- ref: composedContentRef,
1988
- sideOffset,
1989
- className: cn(styles22["dropdown-menu-content"], className),
1990
- onFocus: (event) => {
1991
- onFocus?.(event);
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
- ...props,
2026
- children: [
2027
- ctx?.enabled ? /* @__PURE__ */ jsx("div", { className: styles22["dropdown-menu-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
2028
- children
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 = false,
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") items[0].click();
2075
- else (event.key === "ArrowUp" ? items[items.length - 1] : items[0]).focus();
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
  {
@@ -2253,8 +2286,8 @@ var FilterDropdown = ({
2253
2286
  onClearAll();
2254
2287
  };
2255
2288
  const clearAll = (className) => (
2256
- // An empty textValue keeps this out of search results, so Enter can't clear every filter
2257
- /* @__PURE__ */ jsx(DropdownMenuItem, { textValue: "", onSelect: handleClearAll, className, children: /* @__PURE__ */ jsx("span", { className: buttonVariants({ variant: "link", size: "sm" }), children: "Clear all" }) })
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" }) })
2258
2291
  );
2259
2292
  return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
2260
2293
  /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ jsxs(
@@ -2279,7 +2312,7 @@ var FilterDropdown = ({
2279
2312
  className: cn(styles24["dropdown-menu-content"], contentClassName),
2280
2313
  children: [
2281
2314
  searchable && /* @__PURE__ */ jsxs(Fragment, { children: [
2282
- /* @__PURE__ */ jsx(DropdownMenuSearch, { alwaysVisible: true, placeholder: searchPlaceholder, "aria-label": label }),
2315
+ /* @__PURE__ */ jsx(DropdownMenuSearch, { placeholder: searchPlaceholder, "aria-label": label }),
2283
2316
  /* @__PURE__ */ jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
2284
2317
  ] }),
2285
2318
  !searchable && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -2303,7 +2336,7 @@ var FilterDropdown = ({
2303
2336
  );
2304
2337
  }),
2305
2338
  searchable && hasSelectedFilters && /* @__PURE__ */ jsxs("div", { className: styles24["clear-all-footer"], children: [
2306
- /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
2339
+ /* @__PURE__ */ jsx(DropdownMenuSeparator, { persistent: true }),
2307
2340
  clearAll(styles24["clear-all"])
2308
2341
  ] })
2309
2342
  ]
@@ -2396,6 +2429,169 @@ var FormMessage = React15.forwardRef(({ className, children, ...props }, ref) =>
2396
2429
  return /* @__PURE__ */ jsx("p", { ref, id: formMessageId, className: cn(styles26["form-message"], className), ...props, children: body });
2397
2430
  });
2398
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";
2399
2595
  var InfoCard = ({
2400
2596
  label,
2401
2597
  description,
@@ -2405,7 +2601,7 @@ var InfoCard = ({
2405
2601
  onClick,
2406
2602
  ...props
2407
2603
  }) => {
2408
- return /* @__PURE__ */ jsx(Card, { className, onClick, elevation, ...props, children: /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: styles27["info-card-content"], children: [
2604
+ return /* @__PURE__ */ jsx(Card, { className, onClick, elevation, ...props, children: /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: styles29["info-card-content"], children: [
2409
2605
  /* @__PURE__ */ jsx(
2410
2606
  Icon,
2411
2607
  {
@@ -2415,9 +2611,9 @@ var InfoCard = ({
2415
2611
  elevation: elevation === ELEVATION.SUNKEN ? ELEVATION.BASE : getRelativeElevation(elevation, -1)
2416
2612
  }
2417
2613
  ),
2418
- /* @__PURE__ */ jsxs("div", { className: styles27["copy-container"], children: [
2419
- /* @__PURE__ */ jsx("p", { className: styles27["label"], children: label }),
2420
- /* @__PURE__ */ jsx("div", { className: styles27["description"], children: description })
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 })
2421
2617
  ] })
2422
2618
  ] }) }) });
2423
2619
  };
@@ -2451,8 +2647,8 @@ var MotionCollapsibleContent = ({
2451
2647
  onAnimationStart: () => setIsSettled(false),
2452
2648
  onAnimationComplete: () => setIsSettled(isOpen),
2453
2649
  className: cn(
2454
- styles28["motion-collapsible"],
2455
- isSettled && styles28["motion-collapsible--settled"],
2650
+ styles30["motion-collapsible"],
2651
+ isSettled && styles30["motion-collapsible--settled"],
2456
2652
  className
2457
2653
  ),
2458
2654
  children: /* @__PURE__ */ jsx("div", { ref: contentRef, children })
@@ -2482,42 +2678,42 @@ var Input = React15.forwardRef(
2482
2678
  const hasError = hasErrorText || isMarkedInvalid;
2483
2679
  const showHelpText = !!helpText && !hasErrorText;
2484
2680
  const describedBy = [ariaDescribedBy, showHelpText && helpTextId, hasErrorText && errorTextId].filter(Boolean).join(" ") || void 0;
2485
- const errorIcon = /* @__PURE__ */ jsx(TriangleAlert, { className: styles29["input-error-icon"], "aria-hidden": "true" });
2486
- const errorMessage = errorList && errorList.length > 1 ? /* @__PURE__ */ jsx("ul", { id: errorTextId, role: "alert", className: styles29["input-error-list"], children: errorList.map((message) => /* @__PURE__ */ jsxs("li", { className: styles29["input-error-text"], children: [
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: [
2487
2683
  errorIcon,
2488
2684
  /* @__PURE__ */ jsx("span", { children: message })
2489
- ] }, message)) }) : /* @__PURE__ */ jsxs("p", { id: errorTextId, role: "alert", className: styles29["input-error-text"], children: [
2685
+ ] }, message)) }) : /* @__PURE__ */ jsxs("p", { id: errorTextId, role: "alert", className: styles31["input-error-text"], children: [
2490
2686
  errorIcon,
2491
2687
  /* @__PURE__ */ jsx("span", { children: errorList ? errorList[0] : errorText })
2492
2688
  ] });
2493
- return /* @__PURE__ */ jsxs("div", { className: cn(styles29["input-container"], containerClassName), children: [
2689
+ return /* @__PURE__ */ jsxs("div", { className: cn(styles31["input-container"], containerClassName), children: [
2494
2690
  /* @__PURE__ */ jsxs(
2495
2691
  "div",
2496
2692
  {
2497
2693
  className: cn(
2498
- styles29["input-wrapper"],
2499
- hasError && styles29["input-wrapper--error"],
2694
+ styles31["input-wrapper"],
2695
+ hasError && styles31["input-wrapper--error"],
2500
2696
  className
2501
2697
  ),
2502
2698
  children: [
2503
- prefix && /* @__PURE__ */ jsx("span", { className: styles29["input-prefix"], children: prefix }),
2699
+ prefix && /* @__PURE__ */ jsx("span", { className: styles31["input-prefix"], children: prefix }),
2504
2700
  /* @__PURE__ */ jsx(
2505
2701
  "input",
2506
2702
  {
2507
2703
  type,
2508
- className: styles29["input-element"],
2704
+ className: styles31["input-element"],
2509
2705
  ref,
2510
2706
  "aria-invalid": isMarkedInvalid ? ariaInvalid : hasErrorText || void 0,
2511
2707
  "aria-describedby": describedBy,
2512
2708
  ...props
2513
2709
  }
2514
2710
  ),
2515
- suffix && /* @__PURE__ */ jsx("span", { className: styles29["input-suffix"], children: suffix })
2711
+ suffix && /* @__PURE__ */ jsx("span", { className: styles31["input-suffix"], children: suffix })
2516
2712
  ]
2517
2713
  }
2518
2714
  ),
2519
2715
  helpText ? hasErrorText && errorMessage : /* @__PURE__ */ jsx(MotionCollapsibleContent, { isOpen: hasErrorText, children: errorMessage }),
2520
- showHelpText && /* @__PURE__ */ jsx("p", { id: helpTextId, className: styles29["input-help-text"], children: helpText })
2716
+ showHelpText && /* @__PURE__ */ jsx("p", { id: helpTextId, className: styles31["input-help-text"], children: helpText })
2521
2717
  ] });
2522
2718
  }
2523
2719
  );
@@ -2535,7 +2731,7 @@ var ListOrGridViewToggle = ({
2535
2731
  const handleListClick = () => {
2536
2732
  onViewModeChange("list");
2537
2733
  };
2538
- return /* @__PURE__ */ jsxs("div", { className: cn(styles30["list-or-grid-view-toggle"], className), children: [
2734
+ return /* @__PURE__ */ jsxs("div", { className: cn(styles32["list-or-grid-view-toggle"], className), children: [
2539
2735
  order.map((mode) => {
2540
2736
  const currentlyActive = mode === viewMode;
2541
2737
  const Icon3 = mode === "grid" ? Grid3X3 : List;
@@ -2545,8 +2741,8 @@ var ListOrGridViewToggle = ({
2545
2741
  type: "button",
2546
2742
  "aria-label": mode === "grid" ? "Grid view" : "List view",
2547
2743
  className: cn(
2548
- styles30["icon-button"],
2549
- currentlyActive ? styles30["icon-button--active"] : styles30["icon-button--inactive"]
2744
+ styles32["icon-button"],
2745
+ currentlyActive ? styles32["icon-button--active"] : styles32["icon-button--inactive"]
2550
2746
  ),
2551
2747
  onClick: mode === "grid" ? handleGridClick : handleListClick,
2552
2748
  children: /* @__PURE__ */ jsx(Icon3, { size: 16 })
@@ -2557,7 +2753,7 @@ var ListOrGridViewToggle = ({
2557
2753
  /* @__PURE__ */ jsx(
2558
2754
  "div",
2559
2755
  {
2560
- className: styles30["active-button-indicator"],
2756
+ className: styles32["active-button-indicator"],
2561
2757
  style: {
2562
2758
  transform: `translateX(${currentActiveIndex * 100}%)`,
2563
2759
  width: `${100 / order.length}%`
@@ -2567,43 +2763,43 @@ var ListOrGridViewToggle = ({
2567
2763
  ] });
2568
2764
  };
2569
2765
  var Spinner = ({ size = "md", variant = "primary" }) => {
2570
- return /* @__PURE__ */ jsxs("div", { className: styles31["spinner-container"], children: [
2571
- /* @__PURE__ */ jsx("div", { className: cn(styles31["spinner"], styles31[size], styles31[variant]) }),
2572
- /* @__PURE__ */ jsx("div", { className: cn(styles31["spinner-background"], styles31[size]) })
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]) })
2573
2769
  ] });
2574
2770
  };
2575
2771
  function LoadingOverlay({ isVisible, message = "Loading..." }) {
2576
2772
  if (!isVisible) return null;
2577
- return /* @__PURE__ */ jsx("div", { className: styles32["loading-overlay"], children: /* @__PURE__ */ jsxs("div", { className: styles32["content"], children: [
2773
+ return /* @__PURE__ */ jsx("div", { className: styles34["loading-overlay"], children: /* @__PURE__ */ jsxs("div", { className: styles34["content"], children: [
2578
2774
  /* @__PURE__ */ jsx(Spinner, { variant: "primary" }),
2579
- /* @__PURE__ */ jsx("p", { className: styles32["message"], children: message })
2775
+ /* @__PURE__ */ jsx("p", { className: styles34["message"], children: message })
2580
2776
  ] }) });
2581
2777
  }
2582
2778
  var metricCardElevationVariants = generateElevationVariants(
2583
- styles33,
2779
+ styles35,
2584
2780
  "metric-card",
2585
2781
  ELEVATION.RAISED
2586
2782
  );
2587
2783
  var VARIANTS = {
2588
2784
  default: {
2589
- text: styles33["text-default"],
2590
- iconBg: styles33["bg-default"]
2785
+ text: styles35["text-default"],
2786
+ iconBg: styles35["bg-default"]
2591
2787
  },
2592
2788
  primary: {
2593
- text: styles33["text-primary"],
2594
- iconBg: styles33["bg-primary"]
2789
+ text: styles35["text-primary"],
2790
+ iconBg: styles35["bg-primary"]
2595
2791
  },
2596
2792
  danger: {
2597
- text: styles33["text-danger"],
2598
- iconBg: styles33["bg-danger"]
2793
+ text: styles35["text-danger"],
2794
+ iconBg: styles35["bg-danger"]
2599
2795
  },
2600
2796
  success: {
2601
- text: styles33["text-success"],
2602
- iconBg: styles33["bg-success"]
2797
+ text: styles35["text-success"],
2798
+ iconBg: styles35["bg-success"]
2603
2799
  },
2604
2800
  warning: {
2605
- text: styles33["text-warning"],
2606
- iconBg: styles33["bg-warning"]
2801
+ text: styles35["text-warning"],
2802
+ iconBg: styles35["bg-warning"]
2607
2803
  }
2608
2804
  };
2609
2805
  var MetricCard = ({
@@ -2616,8 +2812,8 @@ var MetricCard = ({
2616
2812
  }) => {
2617
2813
  const variantStyles = VARIANTS[variant];
2618
2814
  return /* @__PURE__ */ jsxs("div", { className: cn(metricCardElevationVariants({ elevation }), className), children: [
2619
- /* @__PURE__ */ jsxs("div", { className: styles33["value-container"], children: [
2620
- /* @__PURE__ */ jsx("p", { className: cn(styles33.value), children: value }),
2815
+ /* @__PURE__ */ jsxs("div", { className: styles35["value-container"], children: [
2816
+ /* @__PURE__ */ jsx("p", { className: cn(styles35.value), children: value }),
2621
2817
  icon && /* @__PURE__ */ jsx(
2622
2818
  Icon,
2623
2819
  {
@@ -2628,7 +2824,7 @@ var MetricCard = ({
2628
2824
  }
2629
2825
  )
2630
2826
  ] }),
2631
- /* @__PURE__ */ jsx("p", { className: styles33.label, children: label })
2827
+ /* @__PURE__ */ jsx("p", { className: styles35.label, children: label })
2632
2828
  ] });
2633
2829
  };
2634
2830
  var OctagonAlert = AlertOctagon;
@@ -2640,12 +2836,12 @@ var NotFound = ({
2640
2836
  showHomeButton = true,
2641
2837
  onHomeClick = () => window.location.href = "/"
2642
2838
  }) => {
2643
- return /* @__PURE__ */ jsx("div", { className: cn(styles34["page-not-found"], className), children: /* @__PURE__ */ jsxs("div", { className: styles34["page-not-found-inner"], children: [
2644
- /* @__PURE__ */ jsx("div", { className: styles34["icon-container"], children: /* @__PURE__ */ jsx(OctagonAlert, { className: styles34["alert-icon"] }) }),
2645
- /* @__PURE__ */ jsx("h1", { className: styles34["title"], children: title }),
2646
- /* @__PURE__ */ jsx("p", { className: styles34["description"], children: description }),
2647
- /* @__PURE__ */ jsx("div", { className: styles34["actions"], children: showHomeButton && /* @__PURE__ */ jsxs(Button, { onClick: onHomeClick, variant: "secondary", children: [
2648
- /* @__PURE__ */ jsx(HomeIcon, { className: styles34["home-icon"] }),
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"] }),
2649
2845
  "Return Home"
2650
2846
  ] }) })
2651
2847
  ] }) });
@@ -2654,12 +2850,20 @@ var CheckIcon3 = Check;
2654
2850
  var ChevronDownIcon2 = ChevronDown;
2655
2851
  var ChevronUpIcon = ChevronUp;
2656
2852
  var SearchIcon3 = Search;
2657
- var SEARCH_INPUT_SELECTOR = "[data-select-search]";
2853
+ var SEARCH_INPUT_SELECTOR2 = "[data-select-search]";
2658
2854
  var NAVIGABLE_OPTION_SELECTOR = '[role="option"]:not([data-disabled]):not([hidden])';
2855
+ var MATCHING_OPTION_SELECTOR = `${NAVIGABLE_OPTION_SELECTOR}:not([data-persistent])`;
2659
2856
  var RADIX_HANDLED_SEARCH_KEYS = ["ArrowDown", "ArrowUp", "Escape", "Tab"];
2660
2857
  var SelectSearchContext = React15.createContext(null);
2661
2858
  var useSelectSearch = () => React15.useContext(SelectSearchContext);
2662
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
+ };
2663
2867
  var SelectGroupMatchContext = React15.createContext(null);
2664
2868
  var Select = ({
2665
2869
  open,
@@ -2668,33 +2872,14 @@ var Select = ({
2668
2872
  }) => {
2669
2873
  const search = useListSearchState(open);
2670
2874
  const { resetForOpen } = search;
2671
- const interactedRef = React15.useRef(false);
2672
- const markInteracted = React15.useCallback(() => {
2673
- interactedRef.current = true;
2674
- }, []);
2675
- const interactedSinceOpen = React15.useCallback(() => interactedRef.current, []);
2676
- const [lockedSide, setLockedSide] = React15.useState();
2677
- React15.useEffect(() => {
2678
- if (!open) return;
2679
- interactedRef.current = false;
2680
- setLockedSide(void 0);
2681
- }, [open]);
2682
2875
  const handleOpenChange = React15.useCallback(
2683
2876
  (nextOpen) => {
2684
- if (nextOpen) {
2685
- resetForOpen();
2686
- interactedRef.current = false;
2687
- setLockedSide(void 0);
2688
- }
2877
+ if (nextOpen) resetForOpen();
2689
2878
  onOpenChange?.(nextOpen);
2690
2879
  },
2691
2880
  [onOpenChange, resetForOpen]
2692
2881
  );
2693
- const value = React15.useMemo(
2694
- () => ({ ...search, markInteracted, interactedSinceOpen, lockedSide, lockSide: setLockedSide }),
2695
- [search, markInteracted, interactedSinceOpen, lockedSide]
2696
- );
2697
- 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 }) });
2698
2883
  };
2699
2884
  Select.displayName = "Select";
2700
2885
  var SelectGroup = React15.forwardRef(({ hidden, ...props }, ref) => {
@@ -2711,18 +2896,18 @@ var SelectGroup = React15.forwardRef(({ hidden, ...props }, ref) => {
2711
2896
  });
2712
2897
  SelectGroup.displayName = SelectPrimitive.Group.displayName;
2713
2898
  var SelectValue = SelectPrimitive.Value;
2714
- var SelectTrigger = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, { ref, className: cn(styles35["select-trigger"], className), ...props, children: [
2899
+ var SelectTrigger = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, { ref, className: cn(styles37["select-trigger"], className), ...props, children: [
2715
2900
  children,
2716
- /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon2, { className: cn(styles35["select-icon"], styles35["select-icon--low-opacity"]) }) })
2901
+ /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon2, { className: cn(styles37["select-icon"], styles37["select-icon--low-opacity"]) }) })
2717
2902
  ] }));
2718
2903
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
2719
2904
  var SelectScrollUpButton = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2720
2905
  SelectPrimitive.ScrollUpButton,
2721
2906
  {
2722
2907
  ref,
2723
- className: cn(styles35["select-scroll-button"], className),
2908
+ className: cn(styles37["select-scroll-button"], className),
2724
2909
  ...props,
2725
- children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: styles35["select-icon"] })
2910
+ children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: styles37["select-icon"] })
2726
2911
  }
2727
2912
  ));
2728
2913
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
@@ -2730,15 +2915,15 @@ var SelectScrollDownButton = React15.forwardRef(({ className, ...props }, ref) =
2730
2915
  SelectPrimitive.ScrollDownButton,
2731
2916
  {
2732
2917
  ref,
2733
- className: cn(styles35["select-scroll-button"], className),
2918
+ className: cn(styles37["select-scroll-button"], className),
2734
2919
  ...props,
2735
- children: /* @__PURE__ */ jsx(ChevronDownIcon2, { className: styles35["select-icon"] })
2920
+ children: /* @__PURE__ */ jsx(ChevronDownIcon2, { className: styles37["select-icon"] })
2736
2921
  }
2737
2922
  ));
2738
2923
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
2739
2924
  var SelectPortal = ({ children }) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { container: usePortalContainer(), children });
2740
2925
  var selectContentElevationVariants = generateElevationVariants(
2741
- styles35,
2926
+ styles37,
2742
2927
  "select-content",
2743
2928
  ELEVATION.OVERLAY
2744
2929
  );
@@ -2761,68 +2946,43 @@ var SelectContent = React15.forwardRef(
2761
2946
  const searching = isSearchActive(ctx);
2762
2947
  const resultCount = ctx?.matchCount ?? 0;
2763
2948
  const contentRef = React15.useRef(null);
2764
- const lockedSide = ctx?.lockedSide;
2765
- const lockSide = ctx?.lockSide;
2949
+ const sideProps = useSearchSideLock(ctx, contentRef, {
2950
+ side,
2951
+ avoidCollisions,
2952
+ enabled: position === "popper"
2953
+ });
2766
2954
  const composedContentRef = React15.useCallback(
2767
2955
  (node) => {
2768
- assignRefs(node, ref);
2769
- contentRef.current = node;
2956
+ assignRefs(node, ref, contentRef);
2770
2957
  setListId?.(node?.id || void 0);
2771
2958
  },
2772
2959
  [ref, setListId]
2773
2960
  );
2774
- React15.useEffect(() => {
2775
- if (position !== "popper" || !searching || lockedSide) return;
2776
- const placed = contentRef.current?.dataset.side;
2777
- if (placed) lockSide?.(placed);
2778
- }, [position, searching, lockedSide, lockSide]);
2779
2961
  const handleFocus = (event) => {
2780
2962
  onFocus?.(event);
2781
2963
  if (!ctx?.enabled || !ctx.visible || ctx.interactedSinceOpen()) return;
2782
- if (event.target.closest(SEARCH_INPUT_SELECTOR)) return;
2964
+ if (event.target.closest(SEARCH_INPUT_SELECTOR2)) return;
2783
2965
  ctx.requestFocus();
2784
2966
  };
2785
2967
  const handleKeyDown = (event) => {
2786
2968
  onKeyDown?.(event);
2787
- if (!ctx?.enabled || event.defaultPrevented) return;
2788
- const target = event.target;
2789
- if (target?.closest(SEARCH_INPUT_SELECTOR)) return;
2790
- if (event.key === "ArrowUp" && ctx.visible) {
2791
- const firstOption = event.currentTarget.querySelector(NAVIGABLE_OPTION_SELECTOR);
2792
- if (firstOption && firstOption === target?.closest(NAVIGABLE_OPTION_SELECTOR)) {
2793
- event.preventDefault();
2794
- ctx.requestFocus();
2795
- return;
2796
- }
2797
- }
2798
- if (event.key === "Backspace" && ctx.visible && ctx.query) {
2799
- event.preventDefault();
2800
- ctx.setQuery(ctx.query.slice(0, -1));
2801
- ctx.requestFocus();
2802
- return;
2803
- }
2804
- if (!isPrintableKey(event)) return;
2805
- event.preventDefault();
2806
- if (!ctx.visible) {
2807
- ctx.reveal(event.key);
2808
- } else {
2809
- ctx.setQuery(ctx.query + event.key);
2810
- ctx.requestFocus();
2811
- }
2969
+ handleListKeyDown(ctx, event, {
2970
+ searchSelector: SEARCH_INPUT_SELECTOR2,
2971
+ itemSelector: NAVIGABLE_OPTION_SELECTOR
2972
+ });
2812
2973
  };
2813
2974
  return /* @__PURE__ */ jsx(SelectPortal, { children: /* @__PURE__ */ jsxs(
2814
2975
  SelectPrimitive.Content,
2815
2976
  {
2816
2977
  ref: composedContentRef,
2817
2978
  className: cn(
2818
- styles35["select-content"],
2819
- position === "popper" && styles35["select-content--popper"],
2979
+ styles37["select-content"],
2980
+ position === "popper" && styles37["select-content--popper"],
2820
2981
  selectContentElevationVariants({ elevation }),
2821
2982
  className
2822
2983
  ),
2823
2984
  position,
2824
- side: lockedSide ?? side,
2825
- avoidCollisions: lockedSide ? false : avoidCollisions,
2985
+ ...sideProps,
2826
2986
  onFocus: handleFocus,
2827
2987
  onKeyDown: handleKeyDown,
2828
2988
  onKeyDownCapture: (event) => {
@@ -2835,14 +2995,14 @@ var SelectContent = React15.forwardRef(
2835
2995
  },
2836
2996
  ...props,
2837
2997
  children: [
2838
- ctx?.enabled ? /* @__PURE__ */ jsx("div", { className: styles35["select-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
2998
+ ctx?.enabled ? /* @__PURE__ */ jsx("div", { className: styles37["select-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
2839
2999
  /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
2840
3000
  /* @__PURE__ */ jsx(
2841
3001
  SelectPrimitive.Viewport,
2842
3002
  {
2843
3003
  className: cn(
2844
- styles35["select-viewport"],
2845
- position === "popper" && styles35["select-viewport--popper"]
3004
+ styles37["select-viewport"],
3005
+ position === "popper" && styles37["select-viewport--popper"]
2846
3006
  ),
2847
3007
  children
2848
3008
  }
@@ -2870,15 +3030,15 @@ var SelectSearch = React15.forwardRef(
2870
3030
  }
2871
3031
  const { ref, isRendered } = useSearchInput(ctx, alwaysVisible, forwardedRef);
2872
3032
  if (!isRendered) return null;
2873
- return /* @__PURE__ */ jsxs("div", { className: styles35["select-search"], children: [
2874
- /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: styles35["select-search-icon"], children: icon ?? /* @__PURE__ */ jsx(SearchIcon3, { className: cn(styles35["select-icon"], styles35["select-icon--sm"]) }) }),
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"]) }) }),
2875
3035
  /* @__PURE__ */ jsx(
2876
3036
  "input",
2877
3037
  {
2878
3038
  ...props,
2879
3039
  ref,
2880
3040
  "data-select-search": "",
2881
- className: cn(styles35["select-search-input"], className),
3041
+ className: cn(styles37["select-search-input"], className),
2882
3042
  value: ctx.query,
2883
3043
  placeholder,
2884
3044
  "aria-label": ariaLabel ?? placeholder,
@@ -2891,7 +3051,7 @@ var SelectSearch = React15.forwardRef(
2891
3051
  if (event.key === "Enter" && !event.defaultPrevented && isSearchActive(ctx)) {
2892
3052
  event.preventDefault();
2893
3053
  event.stopPropagation();
2894
- const firstOption = event.currentTarget.closest('[role="listbox"]')?.querySelector(NAVIGABLE_OPTION_SELECTOR);
3054
+ const firstOption = event.currentTarget.closest('[role="listbox"]')?.querySelector(MATCHING_OPTION_SELECTOR);
2895
3055
  firstOption?.dispatchEvent(
2896
3056
  new KeyboardEvent("keydown", { key: "Enter", bubbles: true })
2897
3057
  );
@@ -2915,7 +3075,7 @@ var SelectEmpty = ({ className, children, ...props }) => {
2915
3075
  ...props,
2916
3076
  role: "status",
2917
3077
  "aria-live": "polite",
2918
- className: isEmpty ? cn(styles35["select-empty"], className) : void 0,
3078
+ className: isEmpty ? cn(styles37["select-empty"], className) : void 0,
2919
3079
  children: isEmpty ? children : null
2920
3080
  }
2921
3081
  );
@@ -2927,41 +3087,42 @@ var SelectLabel = React15.forwardRef(({ className, hidden, ...props }, ref) => {
2927
3087
  SelectPrimitive.Label,
2928
3088
  {
2929
3089
  ref,
2930
- className: cn(styles35["select-label"], className),
3090
+ className: cn(styles37["select-label"], className),
2931
3091
  ...props,
2932
3092
  hidden: hidden || searching || void 0
2933
3093
  }
2934
3094
  );
2935
3095
  });
2936
3096
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
2937
- var SelectItem = React15.forwardRef(({ className, children, textValue, hidden, ...props }, ref) => {
3097
+ var SelectItem = React15.forwardRef(({ className, children, textValue, hidden, persistent, ...props }, ref) => {
2938
3098
  const search = useSelectSearch();
2939
3099
  const group = React15.useContext(SelectGroupMatchContext);
2940
- const matches = useFilterableItem(search, textValue, children, group);
3100
+ const matches = useFilterableItem(search, textValue, children, { group, persistent });
2941
3101
  return /* @__PURE__ */ jsxs(
2942
3102
  SelectPrimitive.Item,
2943
3103
  {
2944
3104
  ref,
2945
- className: cn(styles35["select-item"], className),
3105
+ className: cn(styles37["select-item"], className),
2946
3106
  ...props,
3107
+ "data-persistent": persistent ? "" : void 0,
2947
3108
  textValue,
2948
3109
  hidden: hidden || !matches || void 0,
2949
3110
  children: [
2950
- /* @__PURE__ */ jsx("span", { className: styles35["select-item-indicator"], children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon3, { className: styles35["select-icon"] }) }) }),
3111
+ /* @__PURE__ */ jsx("span", { className: styles37["select-item-indicator"], children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon3, { className: styles37["select-icon"] }) }) }),
2951
3112
  /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
2952
3113
  ]
2953
3114
  }
2954
3115
  );
2955
3116
  });
2956
3117
  SelectItem.displayName = SelectPrimitive.Item.displayName;
2957
- var SelectSeparator = React15.forwardRef(({ className, ...props }, ref) => {
3118
+ var SelectSeparator = React15.forwardRef(({ className, persistent, ...props }, ref) => {
2958
3119
  const searching = useIsSearching2();
2959
- if (searching) return null;
3120
+ if (searching && !persistent) return null;
2960
3121
  return /* @__PURE__ */ jsx(
2961
3122
  SelectPrimitive.Separator,
2962
3123
  {
2963
3124
  ref,
2964
- className: cn(styles35["select-separator"], className),
3125
+ className: cn(styles37["select-separator"], className),
2965
3126
  ...props
2966
3127
  }
2967
3128
  );
@@ -3065,8 +3226,8 @@ var Pagination = ({
3065
3226
  }
3066
3227
  return pageButtons;
3067
3228
  };
3068
- return /* @__PURE__ */ jsxs("div", { className: cn(styles36["pagination"], className), children: [
3069
- /* @__PURE__ */ jsx("div", { className: styles36["info-container"], children: showInfo && hasFilteredItems && /* @__PURE__ */ jsxs(Fragment, { children: [
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: [
3070
3231
  /* @__PURE__ */ jsxs("span", { children: [
3071
3232
  "Showing ",
3072
3233
  startItem,
@@ -3076,7 +3237,7 @@ var Pagination = ({
3076
3237
  /* @__PURE__ */ jsx(
3077
3238
  SelectTrigger,
3078
3239
  {
3079
- className: styles36["items-per-page-trigger"],
3240
+ className: styles38["items-per-page-trigger"],
3080
3241
  "aria-label": "Items per page",
3081
3242
  children: /* @__PURE__ */ jsx(SelectValue, {})
3082
3243
  }
@@ -3090,7 +3251,7 @@ var Pagination = ({
3090
3251
  type
3091
3252
  ] })
3092
3253
  ] }) }),
3093
- /* @__PURE__ */ jsxs("nav", { className: styles36["page-navigation-container"], "aria-label": "Pagination", children: [
3254
+ /* @__PURE__ */ jsxs("nav", { className: styles38["page-navigation-container"], "aria-label": "Pagination", children: [
3094
3255
  showFirstLastButtons && /* @__PURE__ */ jsx(
3095
3256
  Button,
3096
3257
  {
@@ -3140,13 +3301,13 @@ var Pagination = ({
3140
3301
  ] });
3141
3302
  };
3142
3303
  var PanelLabel = ({ className, label }) => {
3143
- return /* @__PURE__ */ jsx("div", { className: cn(styles37["panel-label"], className), children: label });
3304
+ return /* @__PURE__ */ jsx("div", { className: cn(styles39["panel-label"], className), children: label });
3144
3305
  };
3145
3306
  var Progress = React15.forwardRef(
3146
- ({ className, value, color = "primary", ...props }, ref) => /* @__PURE__ */ jsx(ProgressPrimitive.Root, { ref, className: cn(styles38["progress"], className), ...props, children: /* @__PURE__ */ jsx(
3307
+ ({ className, value, color = "primary", ...props }, ref) => /* @__PURE__ */ jsx(ProgressPrimitive.Root, { ref, className: cn(styles40["progress"], className), ...props, children: /* @__PURE__ */ jsx(
3147
3308
  ProgressPrimitive.Indicator,
3148
3309
  {
3149
- className: cn(styles38["progress-indicator"], styles38[color]),
3310
+ className: cn(styles40["progress-indicator"], styles40[color]),
3150
3311
  style: { transform: `translateX(-${100 - (value || 0)}%)` }
3151
3312
  }
3152
3313
  ) })
@@ -3168,29 +3329,29 @@ var STATUS_LABELS = {
3168
3329
  info: "Information",
3169
3330
  danger: "Error"
3170
3331
  };
3171
- var layoutVariants = cva(styles39["progress-indicator"], {
3332
+ var layoutVariants = cva(styles41["progress-indicator"], {
3172
3333
  variants: {
3173
3334
  layout: {
3174
- horizontal: styles39["progress-indicator--horizontal"],
3175
- vertical: styles39["progress-indicator--vertical"]
3335
+ horizontal: styles41["progress-indicator--horizontal"],
3336
+ vertical: styles41["progress-indicator--vertical"]
3176
3337
  }
3177
3338
  },
3178
3339
  defaultVariants: {
3179
3340
  layout: "horizontal"
3180
3341
  }
3181
3342
  });
3182
- var markerVariants = cva(styles39["progress-indicator-step-marker"], {
3343
+ var markerVariants = cva(styles41["progress-indicator-step-marker"], {
3183
3344
  variants: {
3184
3345
  status: {
3185
3346
  editing: "",
3186
3347
  empty: "",
3187
3348
  neutral: "",
3188
3349
  info: "",
3189
- success: styles39["progress-indicator-step-marker--success"],
3190
- danger: styles39["progress-indicator-step-marker--danger"]
3350
+ success: styles41["progress-indicator-step-marker--success"],
3351
+ danger: styles41["progress-indicator-step-marker--danger"]
3191
3352
  },
3192
3353
  active: {
3193
- true: styles39["progress-indicator-step-marker--active"],
3354
+ true: styles41["progress-indicator-step-marker--active"],
3194
3355
  false: ""
3195
3356
  }
3196
3357
  },
@@ -3231,18 +3392,18 @@ function ProgressIndicator({
3231
3392
  });
3232
3393
  const Container = interactive ? "nav" : "div";
3233
3394
  return /* @__PURE__ */ jsxs(Container, { className: cn(layoutVariants({ layout }), className), ...props, children: [
3234
- /* @__PURE__ */ jsx("div", { className: styles39["progress-indicator-track"], "aria-hidden": "true", children: /* @__PURE__ */ jsx(
3395
+ /* @__PURE__ */ jsx("div", { className: styles41["progress-indicator-track"], "aria-hidden": "true", children: /* @__PURE__ */ jsx(
3235
3396
  Progress,
3236
3397
  {
3237
3398
  value: 100,
3238
3399
  color: "primary",
3239
- className: styles39["progress-indicator-rail"],
3400
+ className: styles41["progress-indicator-rail"],
3240
3401
  style: {
3241
3402
  "--pi-fill-size": `${fillSize}%`
3242
3403
  }
3243
3404
  }
3244
3405
  ) }),
3245
- /* @__PURE__ */ jsx("ul", { className: styles39["progress-indicator-steps"], "aria-label": ariaLabel, children: steps })
3406
+ /* @__PURE__ */ jsx("ul", { className: styles41["progress-indicator-steps"], "aria-label": ariaLabel, children: steps })
3246
3407
  ] });
3247
3408
  }
3248
3409
  function ProgressIndicatorStep({
@@ -3274,15 +3435,15 @@ function ProgressIndicatorStep({
3274
3435
  className: markerVariants({ status: effectiveStatus, active })
3275
3436
  }
3276
3437
  ),
3277
- /* @__PURE__ */ jsxs("span", { className: styles39["progress-indicator-step-text"], children: [
3278
- /* @__PURE__ */ jsx("span", { className: styles39["progress-indicator-step-name"], children: name }),
3279
- description && /* @__PURE__ */ jsx("span", { className: styles39["progress-indicator-step-description"], children: description }),
3280
- statusLabel && /* @__PURE__ */ jsx("span", { className: styles39["progress-indicator-step-status"], children: statusLabel })
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 })
3281
3442
  ] })
3282
3443
  ] });
3283
3444
  const innerClassName = cn(
3284
- styles39["progress-indicator-step-inner"],
3285
- interactive && styles39["progress-indicator-step-inner--interactive"]
3445
+ styles41["progress-indicator-step-inner"],
3446
+ interactive && styles41["progress-indicator-step-inner--interactive"]
3286
3447
  );
3287
3448
  let inner;
3288
3449
  if (href) {
@@ -3305,8 +3466,8 @@ function ProgressIndicatorStep({
3305
3466
  "li",
3306
3467
  {
3307
3468
  className: cn(
3308
- styles39["progress-indicator-step"],
3309
- active && styles39["progress-indicator-step--active"],
3469
+ styles41["progress-indicator-step"],
3470
+ active && styles41["progress-indicator-step--active"],
3310
3471
  className
3311
3472
  ),
3312
3473
  ...props,
@@ -3330,16 +3491,16 @@ var RadialGraph = forwardRef(
3330
3491
  "div",
3331
3492
  {
3332
3493
  ref,
3333
- className: cn(styles40["radial-graph"], styles40[graphSize], className),
3494
+ className: cn(styles42["radial-graph"], styles42[graphSize], className),
3334
3495
  ...props,
3335
3496
  children: [
3336
- /* @__PURE__ */ jsx("div", { className: styles40["bars-container"], children: bars.map((_, i) => {
3497
+ /* @__PURE__ */ jsx("div", { className: styles42["bars-container"], children: bars.map((_, i) => {
3337
3498
  const isActive = i < percentage;
3338
3499
  const delay = `${i * 10}ms`;
3339
3500
  return /* @__PURE__ */ jsx(
3340
3501
  "div",
3341
3502
  {
3342
- className: styles40["bar"],
3503
+ className: styles42["bar"],
3343
3504
  style: {
3344
3505
  transform: `rotate(${i * 3.6}deg)`
3345
3506
  },
@@ -3347,22 +3508,22 @@ var RadialGraph = forwardRef(
3347
3508
  "div",
3348
3509
  {
3349
3510
  className: cn(
3350
- styles40["bar-inner"],
3351
- isActive ? styles40["bar-inner--active"] : styles40["bar-inner--inactive"]
3511
+ styles42["bar-inner"],
3512
+ isActive ? styles42["bar-inner--active"] : styles42["bar-inner--inactive"]
3352
3513
  ),
3353
3514
  style: {
3354
3515
  transitionDelay: delay,
3355
3516
  animationDelay: delay
3356
3517
  },
3357
3518
  children: [
3358
- /* @__PURE__ */ jsx("div", { className: styles40["bar-background"] }),
3519
+ /* @__PURE__ */ jsx("div", { className: styles42["bar-background"] }),
3359
3520
  /* @__PURE__ */ jsx(
3360
3521
  "div",
3361
3522
  {
3362
3523
  className: cn(
3363
- styles40["bar-gradient"],
3364
- styles40[`bar-gradient--${variant}`],
3365
- isActive ? styles40["bar-gradient--active"] : styles40["bar-gradient--inactive"]
3524
+ styles42["bar-gradient"],
3525
+ styles42[`bar-gradient--${variant}`],
3526
+ isActive ? styles42["bar-gradient--active"] : styles42["bar-gradient--inactive"]
3366
3527
  ),
3367
3528
  style: {
3368
3529
  transitionDelay: delay,
@@ -3377,9 +3538,9 @@ var RadialGraph = forwardRef(
3377
3538
  i
3378
3539
  );
3379
3540
  }) }),
3380
- /* @__PURE__ */ jsxs("div", { className: styles40["label-container"], children: [
3381
- /* @__PURE__ */ jsx("p", { className: cn(styles40["label"], styles40[graphSize]), children: label }),
3382
- subLabel && /* @__PURE__ */ jsx("p", { className: styles40["sub-label"], children: subLabel })
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 })
3383
3544
  ] })
3384
3545
  ]
3385
3546
  }
@@ -3405,15 +3566,15 @@ var RadioDropdown = ({
3405
3566
  );
3406
3567
  return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
3407
3568
  /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "tertiary", className, children: [
3408
- /* @__PURE__ */ jsxs("span", { className: styles41["selector-button-inner"], children: [
3569
+ /* @__PURE__ */ jsxs("span", { className: styles43["selector-button-inner"], children: [
3409
3570
  selectedOption?.label || label,
3410
3571
  hasSelectedCount && /* @__PURE__ */ jsx(Badge, { variant: "primary", children: selectedOption.count })
3411
3572
  ] }),
3412
- /* @__PURE__ */ jsx(ChevronDownIcon3, { className: styles41["chevron-icon"] })
3573
+ /* @__PURE__ */ jsx(ChevronDownIcon3, { className: styles43["chevron-icon"] })
3413
3574
  ] }) }),
3414
- /* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: styles41["dropdown-menu-content"], children: [
3575
+ /* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: styles43["dropdown-menu-content"], children: [
3415
3576
  searchable && /* @__PURE__ */ jsxs(Fragment, { children: [
3416
- /* @__PURE__ */ jsx(DropdownMenuSearch, { alwaysVisible: true, placeholder: searchPlaceholder, "aria-label": label }),
3577
+ /* @__PURE__ */ jsx(DropdownMenuSearch, { placeholder: searchPlaceholder, "aria-label": label }),
3417
3578
  /* @__PURE__ */ jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
3418
3579
  ] }),
3419
3580
  !searchable && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -3435,7 +3596,7 @@ var RadioGroup2 = React15.forwardRef(({ className, ...props }, ref) => {
3435
3596
  return /* @__PURE__ */ jsx(
3436
3597
  RadioGroupPrimitive.Root,
3437
3598
  {
3438
- className: cn(styles42["radio-group"], className),
3599
+ className: cn(styles44["radio-group"], className),
3439
3600
  ...props,
3440
3601
  ref
3441
3602
  }
@@ -3447,16 +3608,176 @@ var RadioGroupItem = React15.forwardRef(({ className, ...props }, ref) => {
3447
3608
  RadioGroupPrimitive.Item,
3448
3609
  {
3449
3610
  ref,
3450
- className: cn(styles42["radio-group-item"], className),
3611
+ className: cn(styles44["radio-group-item"], className),
3451
3612
  ...props,
3452
- children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: styles42["radio-group-item-indicator"], children: /* @__PURE__ */ jsx(CircleIcon2, { className: styles42["indicator-icon"] }) })
3613
+ children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: styles44["radio-group-item-indicator"], children: /* @__PURE__ */ jsx(CircleIcon2, { className: styles44["indicator-icon"] }) })
3453
3614
  }
3454
3615
  );
3455
3616
  });
3456
3617
  RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
3457
- var ScrollArea = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, { ref, className: cn(styles43["scroll-area"], className), ...props, children: [
3458
- /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, { className: styles43["scroll-area-viewport"], children }),
3459
- /* @__PURE__ */ jsx(ScrollBar, {}),
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, {}),
3460
3781
  /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
3461
3782
  ] }));
3462
3783
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
@@ -3466,13 +3787,13 @@ var ScrollBar = React15.forwardRef(({ className, orientation = "vertical", ...pr
3466
3787
  ref,
3467
3788
  orientation,
3468
3789
  className: cn(
3469
- styles43["scroll-bar"],
3470
- orientation === "vertical" && styles43["scroll-bar--vertical"],
3471
- orientation === "horizontal" && styles43["scroll-bar--horizontal"],
3790
+ styles46["scroll-bar"],
3791
+ orientation === "vertical" && styles46["scroll-bar--vertical"],
3792
+ orientation === "horizontal" && styles46["scroll-bar--horizontal"],
3472
3793
  className
3473
3794
  ),
3474
3795
  ...props,
3475
- children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: styles43["scroll-area-thumb"] })
3796
+ children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: styles46["scroll-area-thumb"] })
3476
3797
  }
3477
3798
  ));
3478
3799
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
@@ -3489,20 +3810,20 @@ var SearchBar = ({
3489
3810
  const handleClear = () => {
3490
3811
  setSearchQuery("");
3491
3812
  };
3492
- return /* @__PURE__ */ jsx("search", { className: cn(styles44["search-bar"], className), children: /* @__PURE__ */ jsx(
3813
+ return /* @__PURE__ */ jsx("search", { className: cn(styles47["search-bar"], className), children: /* @__PURE__ */ jsx(
3493
3814
  Input,
3494
3815
  {
3495
3816
  placeholder,
3496
3817
  value: searchQuery,
3497
3818
  onChange: handleChange,
3498
- className: styles44["input"],
3499
- prefix: /* @__PURE__ */ jsx(SearchIcon4, { className: styles44["search-icon"] }),
3819
+ className: styles47["input"],
3820
+ prefix: /* @__PURE__ */ jsx(SearchIcon4, { className: styles47["search-icon"] }),
3500
3821
  suffix: searchQuery && /* @__PURE__ */ jsx(
3501
3822
  IconButton,
3502
3823
  {
3503
3824
  name: "X",
3504
3825
  onClick: handleClear,
3505
- className: styles44["clear-button"],
3826
+ className: styles47["clear-button"],
3506
3827
  label: "Clear search"
3507
3828
  }
3508
3829
  )
@@ -3516,10 +3837,10 @@ var SectionHeading = ({
3516
3837
  className
3517
3838
  }) => {
3518
3839
  const hasRightContent = !!renderRightContent;
3519
- return /* @__PURE__ */ jsxs("div", { className: cn(hasRightContent && styles45["section-heading--right-content"], className), children: [
3520
- /* @__PURE__ */ jsxs("div", { className: styles45["content"], children: [
3521
- /* @__PURE__ */ jsx("h3", { className: styles45["heading"], children: heading }),
3522
- description && /* @__PURE__ */ jsx("p", { className: styles45["description"], children: description })
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 })
3523
3844
  ] }),
3524
3845
  hasRightContent && renderRightContent()
3525
3846
  ] });
@@ -3556,7 +3877,7 @@ var SegmentedControls = ({
3556
3877
  observer.observe(container);
3557
3878
  return () => observer.disconnect();
3558
3879
  }, [updateIndicator]);
3559
- return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: cn(styles46["segmented-controls"], className), children: [
3880
+ return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: cn(styles49["segmented-controls"], className), children: [
3560
3881
  options.map((option) => {
3561
3882
  const currentlyActive = option.value === value;
3562
3883
  const showIcon = option.icon != null && effectiveDisplay !== "text-only";
@@ -3572,15 +3893,15 @@ var SegmentedControls = ({
3572
3893
  "aria-label": isIconOnly ? option.label : void 0,
3573
3894
  title: isIconOnly ? option.label : void 0,
3574
3895
  className: cn(
3575
- styles46["segment"],
3576
- isIconOnly && styles46["segment--icon-only"],
3577
- currentlyActive ? styles46["segment--active"] : styles46["segment--inactive"]
3896
+ styles49["segment"],
3897
+ isIconOnly && styles49["segment--icon-only"],
3898
+ currentlyActive ? styles49["segment--active"] : styles49["segment--inactive"]
3578
3899
  ),
3579
3900
  onClick: () => onValueChange(option.value),
3580
3901
  children: [
3581
- showIcon && /* @__PURE__ */ jsx(Icon, { icon: option.icon, size: "xs", className: styles46["segment-icon"] }),
3902
+ showIcon && /* @__PURE__ */ jsx(Icon, { icon: option.icon, size: "xs", className: styles49["segment-icon"] }),
3582
3903
  showLabel && /* @__PURE__ */ jsx("span", { children: option.label }),
3583
- !isIconOnly && option.suffix && /* @__PURE__ */ jsx("span", { className: styles46["segment-suffix"], children: option.suffix })
3904
+ !isIconOnly && option.suffix && /* @__PURE__ */ jsx("span", { className: styles49["segment-suffix"], children: option.suffix })
3584
3905
  ]
3585
3906
  },
3586
3907
  option.value
@@ -3589,7 +3910,7 @@ var SegmentedControls = ({
3589
3910
  /* @__PURE__ */ jsx(
3590
3911
  "div",
3591
3912
  {
3592
- className: styles46["active-segment-indicator"],
3913
+ className: styles49["active-segment-indicator"],
3593
3914
  style: { transform: `translateX(${indicator.left}px)`, width: `${indicator.width}px` }
3594
3915
  }
3595
3916
  )
@@ -3602,8 +3923,8 @@ var Separator3 = React15.forwardRef(({ className, orientation = "horizontal", de
3602
3923
  decorative,
3603
3924
  orientation,
3604
3925
  className: cn(
3605
- styles47["separator"],
3606
- orientation === "horizontal" ? styles47["separator--horizontal"] : styles47["separator--vertical"],
3926
+ styles50["separator"],
3927
+ orientation === "horizontal" ? styles50["separator--horizontal"] : styles50["separator--vertical"],
3607
3928
  className
3608
3929
  ),
3609
3930
  ...props
@@ -3614,15 +3935,15 @@ var Sheet = DialogPrimitive.Root;
3614
3935
  var SheetTrigger = DialogPrimitive.Trigger;
3615
3936
  var SheetClose = DialogPrimitive.Close;
3616
3937
  var SheetPortal = ({ children }) => /* @__PURE__ */ jsx(DialogPrimitive.Portal, { container: usePortalContainer(), children });
3617
- var SheetOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { className: cn(styles48["sheet-overlay"], className), ...props, ref }));
3938
+ var SheetOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { className: cn(styles51["sheet-overlay"], className), ...props, ref }));
3618
3939
  SheetOverlay.displayName = DialogPrimitive.Overlay.displayName;
3619
- var sheetVariants = cva(styles48["sheet-content"], {
3940
+ var sheetVariants = cva(styles51["sheet-content"], {
3620
3941
  variants: {
3621
3942
  side: {
3622
- top: styles48["sheet-content--side-top"],
3623
- bottom: styles48["sheet-content--side-bottom"],
3624
- left: styles48["sheet-content--side-left"],
3625
- right: styles48["sheet-content--side-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"]
3626
3947
  }
3627
3948
  },
3628
3949
  defaultVariants: {
@@ -3634,7 +3955,7 @@ var SheetContainer = React15.forwardRef(({ side = "right", className, children,
3634
3955
  /* @__PURE__ */ jsx(DialogPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children })
3635
3956
  ] }));
3636
3957
  SheetContainer.displayName = DialogPrimitive.Content.displayName;
3637
- var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles48["sheet-header-icon"], className), ...props });
3958
+ var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles51["sheet-header-icon"], className), ...props });
3638
3959
  SheetHeaderIcon.displayName = "SheetHeaderIcon";
3639
3960
  var SheetHeader = ({ className, children, ...props }) => {
3640
3961
  const childrenArray = React15.Children.toArray(children);
@@ -3644,30 +3965,52 @@ var SheetHeader = ({ className, children, ...props }) => {
3644
3965
  const otherChildren = childrenArray.filter(
3645
3966
  (child) => !(React15.isValidElement(child) && child.type === SheetHeaderIcon)
3646
3967
  );
3647
- return /* @__PURE__ */ jsxs("div", { className: cn(styles48["sheet-header"], className), ...props, children: [
3968
+ return /* @__PURE__ */ jsxs("div", { className: cn(styles51["sheet-header"], className), ...props, children: [
3648
3969
  icon,
3649
- /* @__PURE__ */ jsx("div", { className: styles48["sheet-header-text-content"], children: otherChildren }),
3650
- /* @__PURE__ */ jsx(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { name: "X", label: "Close", className: styles48["sheet-close"] }) })
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"] }) })
3651
3972
  ] });
3652
3973
  };
3653
3974
  SheetHeader.displayName = "SheetHeader";
3654
- var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles48["sheet-footer"], className), ...props });
3975
+ var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles51["sheet-footer"], className), ...props });
3655
3976
  SheetFooter.displayName = "SheetFooter";
3656
- var SheetTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, { ref, className: cn(styles48["sheet-title"], className), ...props }));
3977
+ var SheetTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, { ref, className: cn(styles51["sheet-title"], className), ...props }));
3657
3978
  SheetTitle.displayName = DialogPrimitive.Title.displayName;
3658
3979
  var SheetDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3659
3980
  DialogPrimitive.Description,
3660
3981
  {
3661
3982
  ref,
3662
- className: cn(styles48["sheet-description"], className),
3983
+ className: cn(styles51["sheet-description"], className),
3663
3984
  ...props
3664
3985
  }
3665
3986
  ));
3666
3987
  SheetDescription.displayName = DialogPrimitive.Description.displayName;
3667
- var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles48["sheet-body"], className), ...props });
3988
+ var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles51["sheet-body"], className), ...props });
3668
3989
  SheetContent.displayName = "SheetContent";
3669
3990
  function Skeleton({ className, ...props }) {
3670
- return /* @__PURE__ */ jsx("div", { className: cn(styles49["skeleton"], className), ...props });
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
+ ] });
3671
4014
  }
3672
4015
  var ChevronDownIcon4 = ChevronDown;
3673
4016
  function SortSelector({
@@ -3711,9 +4054,9 @@ function SortSelector({
3711
4054
  setCurrentPage?.(1);
3712
4055
  };
3713
4056
  return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
3714
- /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "tertiary", className: cn(styles50["sort-selector-trigger"], className), children: [
4057
+ /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "tertiary", className: cn(styles54["sort-selector-trigger"], className), children: [
3715
4058
  /* @__PURE__ */ jsx("span", { children: currentLabel }),
3716
- /* @__PURE__ */ jsx(ChevronDownIcon4, { className: styles50["chevron-down-icon"] })
4059
+ /* @__PURE__ */ jsx(ChevronDownIcon4, { className: styles54["chevron-down-icon"] })
3717
4060
  ] }) }),
3718
4061
  /* @__PURE__ */ jsxs(
3719
4062
  DropdownMenuContent,
@@ -3746,49 +4089,27 @@ var Switch = React15.forwardRef(
3746
4089
  return /* @__PURE__ */ jsx(
3747
4090
  SwitchPrimitives.Root,
3748
4091
  {
3749
- className: cn(styles51["switch"], styles51[size], styles51[variant], className),
4092
+ className: cn(styles55["switch"], styles55[size], styles55[variant], className),
3750
4093
  ...props,
3751
4094
  ref,
3752
- children: /* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: cn(styles51["thumb"], styles51[size]), children: thumbIcon && /* @__PURE__ */ jsx(Icon, { icon: thumbIcon, className: styles51["thumb-icon"], size: iconSize }) })
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 }) })
3753
4096
  }
3754
4097
  );
3755
4098
  }
3756
4099
  );
3757
4100
  Switch.displayName = SwitchPrimitives.Root.displayName;
3758
- var ArrowDownIcon = ArrowDown;
3759
- var ArrowUpIcon = ArrowUp;
3760
- var ArrowUpDownIcon = ArrowUpDown;
3761
- function SortButton({
3762
- field,
3763
- children,
3764
- icon,
3765
- sortField,
3766
- sortDirection,
3767
- onSort
3768
- }) {
3769
- const isActive = sortField === field;
3770
- const isAscending = sortDirection === "asc";
3771
- const handleClick = () => {
3772
- onSort(field);
3773
- };
3774
- return /* @__PURE__ */ jsxs("button", { type: "button", onClick: handleClick, className: styles52["sort-button"], children: [
3775
- icon,
3776
- children,
3777
- /* @__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"] }) })
3778
- ] });
3779
- }
3780
- var tableElevationVariants = generateElevationVariants(styles53, "table", ELEVATION.RAISED);
4101
+ var tableElevationVariants = generateElevationVariants(styles56, "table", ELEVATION.RAISED);
3781
4102
  var TableContainer = React15.forwardRef(({ className, style, elevation = ELEVATION.RAISED, border, columns, ...props }, ref) => /* @__PURE__ */ jsx(
3782
4103
  "div",
3783
4104
  {
3784
4105
  className: cn(
3785
- styles53["table"],
4106
+ styles56["table"],
3786
4107
  tableElevationVariants({ elevation }),
3787
- border && styles53["table-border"],
4108
+ border && styles56["table-border"],
3788
4109
  className
3789
4110
  ),
3790
4111
  style: columns ? { ...style, "--table-columns": columns } : style,
3791
- children: /* @__PURE__ */ jsx("table", { ref, className: styles53["table-inner"], ...props })
4112
+ children: /* @__PURE__ */ jsx("table", { ref, className: styles56["table-inner"], ...props })
3792
4113
  }
3793
4114
  ));
3794
4115
  TableContainer.displayName = "Table";
@@ -3797,18 +4118,18 @@ var TableHeader = React15.forwardRef(({ className, sticky = false, ...props }, r
3797
4118
  {
3798
4119
  ref,
3799
4120
  className: cn(
3800
- styles53["table-header"],
3801
- sticky === "container" && styles53["table-header--sticky-container"],
3802
- sticky === "page" && styles53["table-header--sticky-page"],
4121
+ styles56["table-header"],
4122
+ sticky === "container" && styles56["table-header--sticky-container"],
4123
+ sticky === "page" && styles56["table-header--sticky-page"],
3803
4124
  className
3804
4125
  ),
3805
4126
  ...props
3806
4127
  }
3807
4128
  ));
3808
4129
  TableHeader.displayName = "TableHeader";
3809
- var TableBody = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn(styles53["table-body"], className), ...props }));
4130
+ var TableBody = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn(styles56["table-body"], className), ...props }));
3810
4131
  TableBody.displayName = "TableBody";
3811
- var TableFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tfoot", { ref, className: cn(styles53["table-footer"], className), ...props }));
4132
+ var TableFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tfoot", { ref, className: cn(styles56["table-footer"], className), ...props }));
3812
4133
  TableFooter.displayName = "TableFooter";
3813
4134
  var TableRow = React15.forwardRef(
3814
4135
  ({ className, clickable, href, hrefLabel = "View details", children, onClick, ...props }, ref) => {
@@ -3825,15 +4146,15 @@ var TableRow = React15.forwardRef(
3825
4146
  {
3826
4147
  ref,
3827
4148
  className: cn(
3828
- styles53["table-row"],
3829
- isClickable && styles53["table-row--clickable"],
3830
- href && styles53["table-row--linked"],
4149
+ styles56["table-row"],
4150
+ isClickable && styles56["table-row--clickable"],
4151
+ href && styles56["table-row--linked"],
3831
4152
  className
3832
4153
  ),
3833
4154
  onClick: onClick ? handleClick : void 0,
3834
4155
  ...props,
3835
4156
  children: [
3836
- href && /* @__PURE__ */ jsx("a", { href, className: styles53["table-row-link"], "data-table-row-link": true, children: /* @__PURE__ */ jsx("span", { className: styles53["table-row-link-label"], children: hrefLabel }) }),
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 }) }),
3837
4158
  children
3838
4159
  ]
3839
4160
  }
@@ -3841,18 +4162,18 @@ var TableRow = React15.forwardRef(
3841
4162
  }
3842
4163
  );
3843
4164
  TableRow.displayName = "TableRow";
3844
- var TableHead = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("th", { ref, className: cn(styles53["table-head"], className), ...props }));
4165
+ var TableHead = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("th", { ref, className: cn(styles56["table-head"], className), ...props }));
3845
4166
  TableHead.displayName = "TableHead";
3846
- var TableCell = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("td", { ref, className: cn(styles53["table-cell"], className), ...props }));
4167
+ var TableCell = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("td", { ref, className: cn(styles56["table-cell"], className), ...props }));
3847
4168
  TableCell.displayName = "TableCell";
3848
- var TableCaption = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("caption", { ref, className: cn(styles53["table-caption"], className), ...props }));
4169
+ var TableCaption = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("caption", { ref, className: cn(styles56["table-caption"], className), ...props }));
3849
4170
  TableCaption.displayName = "TableCaption";
3850
4171
  var TabsContainer = TabsPrimitive.Root;
3851
- var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.List, { ref, className: cn(styles54["tabs-list"], className), ...props }));
4172
+ var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.List, { ref, className: cn(styles57["tabs-list"], className), ...props }));
3852
4173
  TabsList.displayName = TabsPrimitive.List.displayName;
3853
- var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { ref, className: cn(styles54["tabs-trigger"], className), ...props }));
4174
+ var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { ref, className: cn(styles57["tabs-trigger"], className), ...props }));
3854
4175
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
3855
- var TabsContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Content, { ref, className: cn(styles54["tabs-content"], className), ...props }));
4176
+ var TabsContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Content, { ref, className: cn(styles57["tabs-content"], className), ...props }));
3856
4177
  TabsContent.displayName = TabsPrimitive.Content.displayName;
3857
4178
  var Tabs = ({
3858
4179
  id,
@@ -3871,17 +4192,17 @@ var Tabs = ({
3871
4192
  };
3872
4193
  const renderIcon = (icon) => {
3873
4194
  if (icon) {
3874
- return /* @__PURE__ */ jsx(Icon, { icon, size: "sm", className: styles55["tabs-icon"] });
4195
+ return /* @__PURE__ */ jsx(Icon, { icon, size: "sm", className: styles58["tabs-icon"] });
3875
4196
  }
3876
4197
  return null;
3877
4198
  };
3878
4199
  const indicatorClass = cn(
3879
- styles55["active-tab-indicator"],
3880
- isFilled ? styles55["active-tab-indicator--filled"] : styles55["active-tab-indicator--transparent"]
4200
+ styles58["active-tab-indicator"],
4201
+ isFilled ? styles58["active-tab-indicator--filled"] : styles58["active-tab-indicator--transparent"]
3881
4202
  );
3882
4203
  const renderActiveStyle = (isActive) => {
3883
4204
  if (staticRender) {
3884
- return /* @__PURE__ */ jsx("span", { className: cn(indicatorClass, styles55["active-tab-indicator--static"]) });
4205
+ return /* @__PURE__ */ jsx("span", { className: cn(indicatorClass, styles58["active-tab-indicator--static"]) });
3885
4206
  }
3886
4207
  if (isActive) {
3887
4208
  return /* @__PURE__ */ jsx(
@@ -3900,14 +4221,14 @@ var Tabs = ({
3900
4221
  {
3901
4222
  value: activeTab,
3902
4223
  onValueChange: handleValueChange,
3903
- className: cn(styles55["tabs"], className),
4224
+ className: cn(styles58["tabs"], className),
3904
4225
  children: [
3905
4226
  /* @__PURE__ */ jsx(
3906
4227
  TabsList,
3907
4228
  {
3908
4229
  className: cn(
3909
- styles55["tabs-list"],
3910
- isFilled ? styles55["tabs-list--filled"] : styles55["tabs-list--transparent"]
4230
+ styles58["tabs-list"],
4231
+ isFilled ? styles58["tabs-list--filled"] : styles58["tabs-list--transparent"]
3911
4232
  ),
3912
4233
  children: items.map(({ label, value, icon, suffix, triggerProps }) => {
3913
4234
  const isActive = activeTab === value;
@@ -3918,8 +4239,8 @@ var Tabs = ({
3918
4239
  key: value,
3919
4240
  value,
3920
4241
  className: cn(
3921
- styles55["tabs-trigger"],
3922
- isFilled ? styles55["tabs-trigger--filled"] : styles55["tabs-trigger--transparent"],
4242
+ styles58["tabs-trigger"],
4243
+ isFilled ? styles58["tabs-trigger--filled"] : styles58["tabs-trigger--transparent"],
3923
4244
  triggerProps?.className
3924
4245
  )
3925
4246
  },
@@ -3935,7 +4256,7 @@ var Tabs = ({
3935
4256
  TabsContent,
3936
4257
  {
3937
4258
  value,
3938
- className: styles55["content"],
4259
+ className: styles58["content"],
3939
4260
  forceMount: staticRender || void 0,
3940
4261
  children: content
3941
4262
  },
@@ -3947,175 +4268,28 @@ var Tabs = ({
3947
4268
  };
3948
4269
  var Textarea = React15.forwardRef(
3949
4270
  ({ className, ...props }, ref) => {
3950
- return /* @__PURE__ */ jsx("textarea", { className: cn(styles56["textarea"], className), ref, ...props });
4271
+ return /* @__PURE__ */ jsx("textarea", { className: cn(styles59["textarea"], className), ref, ...props });
3951
4272
  }
3952
4273
  );
3953
4274
  Textarea.displayName = "Textarea";
3954
- var DEFAULT_LOCALE = "en-US";
3955
- var DEFAULT_ABSOLUTE_OPTIONS = {
3956
- year: "numeric",
3957
- month: "short",
3958
- day: "2-digit",
3959
- hour: "2-digit",
3960
- minute: "2-digit",
3961
- second: "2-digit",
3962
- hour12: false,
3963
- timeZoneName: "short"
3964
- };
3965
- var RELATIVE_DIVISIONS = [
3966
- { amount: 60, unit: "second" },
3967
- { amount: 60, unit: "minute" },
3968
- { amount: 24, unit: "hour" },
3969
- { amount: 7, unit: "day" },
3970
- { amount: 4.34524, unit: "week" },
3971
- { amount: 12, unit: "month" },
3972
- { amount: Number.POSITIVE_INFINITY, unit: "year" }
3973
- ];
3974
- var LIVE_INTERVAL_MS = 3e4;
3975
- var MINUTE_MS = 6e4;
3976
- var HOUR_MS = 60 * MINUTE_MS;
3977
- var DAY_MS = 24 * HOUR_MS;
3978
- var YEAR_MS = 365.25 * DAY_MS;
3979
- var MONTH_MS = YEAR_MS / 12;
3980
- var JUST_NOW_MS = 45e3;
3981
- var COARSE_AFTER_MS = 90 * DAY_MS;
3982
- var FINE_UNITS = [
3983
- { ms: DAY_MS, unit: "day" },
3984
- { ms: HOUR_MS, unit: "hour" },
3985
- { ms: MINUTE_MS, unit: "minute" }
3986
- ];
3987
- var COARSE_UNITS = [
3988
- { ms: YEAR_MS, unit: "year" },
3989
- { ms: MONTH_MS, unit: "month" }
3990
- ];
3991
- var NO_DATE_PLACEHOLDER = "---";
3992
- function isMissing(value) {
3993
- return value == null || typeof value === "string" && value.trim() === "";
3994
- }
3995
- function toDate(value) {
3996
- const date = value instanceof Date ? value : new Date(value);
3997
- return Number.isNaN(date.getTime()) ? null : date;
3998
- }
3999
- function formatAbsolute(date, timeZone, options, locale) {
4000
- return new Intl.DateTimeFormat(locale, { ...options, timeZone }).format(date);
4001
- }
4002
- function formatRelative(date, now, locale) {
4003
- if (Math.abs(date.getTime() - now.getTime()) < JUST_NOW_MS) return "Just now";
4004
- let duration = (date.getTime() - now.getTime()) / 1e3;
4005
- const rtf = new Intl.RelativeTimeFormat(locale, { numeric: "auto" });
4006
- for (const division of RELATIVE_DIVISIONS) {
4007
- if (Math.abs(duration) < division.amount) {
4008
- return rtf.format(Math.round(duration), division.unit);
4009
- }
4010
- duration /= division.amount;
4011
- }
4012
- return "Just now";
4013
- }
4014
- function measureSpan(spanMs) {
4015
- const units = spanMs < COARSE_AFTER_MS ? FINE_UNITS : COARSE_UNITS;
4016
- const index = units.findIndex(({ ms: ms2 }) => spanMs >= ms2);
4017
- if (index === -1) return { value: 1, unit: units[units.length - 1].unit };
4018
- const { ms, unit } = units[index];
4019
- const value = Math.round(spanMs / ms);
4020
- const next = units[index - 1];
4021
- if (next && value * ms >= next.ms) {
4022
- return { value: Math.round(spanMs / next.ms), unit: next.unit };
4023
- }
4024
- return { value, unit };
4025
- }
4026
- function formatCountdown(date, now, locale) {
4027
- const spanMs = date.getTime() - now.getTime();
4028
- if (spanMs <= 0) return null;
4029
- const { value, unit } = measureSpan(spanMs);
4030
- return new Intl.NumberFormat(locale, { style: "unit", unit, unitDisplay: "long" }).format(value);
4031
- }
4032
- function DatePlaceholder({
4033
- label,
4034
- className,
4035
- ...props
4036
- }) {
4037
- return /* @__PURE__ */ jsxs("span", { className: cn(styles57["format-date"], className), ...props, children: [
4038
- /* @__PURE__ */ jsx("span", { className: styles57["visually-hidden"], children: label }),
4039
- /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: NO_DATE_PLACEHOLDER })
4040
- ] });
4041
- }
4042
- function FormatDate({
4043
- date,
4044
- displayAs = "absolute",
4045
- timeZone = "UTC",
4046
- locale = DEFAULT_LOCALE,
4047
- tooltip = true,
4048
- live = true,
4049
- absoluteOptions,
4050
- className,
4051
- ...props
4052
- }) {
4053
- const missing = isMissing(date);
4054
- const parsed = React15.useMemo(() => isMissing(date) ? null : toDate(date), [date]);
4055
- const [now, setNow] = React15.useState(() => /* @__PURE__ */ new Date());
4056
- const [mounted, setMounted] = React15.useState(false);
4057
- const isAbsolute = displayAs === "absolute";
4058
- React15.useEffect(() => setMounted(true), []);
4059
- React15.useEffect(() => {
4060
- if (isAbsolute || !live) return;
4061
- const id = setInterval(() => setNow(/* @__PURE__ */ new Date()), LIVE_INTERVAL_MS);
4062
- return () => clearInterval(id);
4063
- }, [isAbsolute, live]);
4064
- if (missing) {
4065
- return /* @__PURE__ */ jsx(DatePlaceholder, { label: "No date", className, ...props });
4066
- }
4067
- if (!parsed) {
4068
- return /* @__PURE__ */ jsx("span", { className: cn(styles57["format-date"], className), ...props, children: "Invalid date" });
4069
- }
4070
- const machineValue = parsed.toISOString();
4071
- const absolute = formatAbsolute(
4072
- parsed,
4073
- timeZone,
4074
- absoluteOptions ?? DEFAULT_ABSOLUTE_OPTIONS,
4075
- locale
4076
- );
4077
- if (isAbsolute) {
4078
- return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(styles57["format-date"], className), ...props, children: absolute });
4079
- }
4080
- const measured = !mounted ? absolute : displayAs === "relative" ? formatRelative(parsed, now, locale) : formatCountdown(parsed, now, locale);
4081
- if (measured === null) {
4082
- return /* @__PURE__ */ jsx(DatePlaceholder, { label: "Date has passed", className, ...props });
4083
- }
4084
- if (!tooltip) {
4085
- return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(styles57["format-date"], className), ...props, children: measured });
4086
- }
4087
- return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
4088
- /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
4089
- "time",
4090
- {
4091
- dateTime: machineValue,
4092
- tabIndex: 0,
4093
- className: cn(styles57["format-date"], styles57["format-date--interactive"], className),
4094
- ...props,
4095
- children: measured
4096
- }
4097
- ) }),
4098
- /* @__PURE__ */ jsx(TooltipContent, { children: absolute })
4099
- ] }) });
4100
- }
4101
4275
  var XIcon2 = X;
4102
4276
  var ToastProvider = ToastPrimitives.Provider;
4103
4277
  var ToastViewport = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4104
4278
  ToastPrimitives.Viewport,
4105
4279
  {
4106
4280
  ref,
4107
- className: cn(styles58["toast-viewport"], className),
4281
+ className: cn(styles60["toast-viewport"], className),
4108
4282
  ...props
4109
4283
  }
4110
4284
  ));
4111
4285
  ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
4112
- var toastVariants = cva(styles58["toast"], {
4286
+ var toastVariants = cva(styles60["toast"], {
4113
4287
  variants: {
4114
4288
  variant: {
4115
- default: styles58["toast--default"],
4116
- danger: styles58["toast--danger"],
4117
- warning: styles58["toast--warning"],
4118
- success: styles58["toast--success"]
4289
+ default: styles60["toast--default"],
4290
+ danger: styles60["toast--danger"],
4291
+ warning: styles60["toast--warning"],
4292
+ success: styles60["toast--success"]
4119
4293
  }
4120
4294
  },
4121
4295
  defaultVariants: {
@@ -4133,17 +4307,17 @@ var ToastContainer = React15.forwardRef(({ className, variant, ...props }, ref)
4133
4307
  );
4134
4308
  });
4135
4309
  ToastContainer.displayName = ToastPrimitives.Root.displayName;
4136
- var ToastAction = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Action, { ref, className: cn(styles58["toast-action"], className), ...props }));
4310
+ var ToastAction = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Action, { ref, className: cn(styles60["toast-action"], className), ...props }));
4137
4311
  ToastAction.displayName = ToastPrimitives.Action.displayName;
4138
- var ToastClose = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Close, { ref, className: cn(styles58["toast-close"], className), ...props, children: /* @__PURE__ */ jsx(XIcon2, { className: styles58["toast-close-icon"] }) }));
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"] }) }));
4139
4313
  ToastClose.displayName = ToastPrimitives.Close.displayName;
4140
- var ToastTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Title, { ref, className: cn(styles58["toast-title"], className), ...props }));
4314
+ var ToastTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Title, { ref, className: cn(styles60["toast-title"], className), ...props }));
4141
4315
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
4142
4316
  var ToastDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4143
4317
  ToastPrimitives.Description,
4144
4318
  {
4145
4319
  ref,
4146
- className: cn(styles58["toast-description"], className),
4320
+ className: cn(styles60["toast-description"], className),
4147
4321
  ...props
4148
4322
  }
4149
4323
  ));
@@ -4278,14 +4452,14 @@ var Toast = ({ toast: toast2 }) => {
4278
4452
  };
4279
4453
  const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
4280
4454
  return /* @__PURE__ */ jsxs(ToastContainer, { ...props, variant, children: [
4281
- /* @__PURE__ */ jsxs("div", { className: styles59["toast-copy"], children: [
4282
- title && /* @__PURE__ */ jsxs("div", { className: styles59["toast-title-container"], children: [
4455
+ /* @__PURE__ */ jsxs("div", { className: styles61["toast-copy"], children: [
4456
+ title && /* @__PURE__ */ jsxs("div", { className: styles61["toast-title-container"], children: [
4283
4457
  displayIcon && /* @__PURE__ */ jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
4284
4458
  /* @__PURE__ */ jsx(ToastTitle, { children: title })
4285
4459
  ] }),
4286
4460
  description && /* @__PURE__ */ jsx(ToastDescription, { children: description })
4287
4461
  ] }),
4288
- action && /* @__PURE__ */ jsx("div", { className: styles59["toast-action"], children: action }),
4462
+ action && /* @__PURE__ */ jsx("div", { className: styles61["toast-action"], children: action }),
4289
4463
  /* @__PURE__ */ jsx(ToastClose, {})
4290
4464
  ] });
4291
4465
  };
@@ -4315,7 +4489,7 @@ var TruncatedDescription = ({
4315
4489
  e.stopPropagation();
4316
4490
  setExpanded(!expanded);
4317
4491
  };
4318
- return /* @__PURE__ */ jsxs("div", { className: cn(styles60["truncated-description"], className), children: [
4492
+ return /* @__PURE__ */ jsxs("div", { className: cn(styles62["truncated-description"], className), children: [
4319
4493
  /* @__PURE__ */ jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
4320
4494
  isLongDescription && /* @__PURE__ */ jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
4321
4495
  ] });
@@ -4323,125 +4497,6 @@ var TruncatedDescription = ({
4323
4497
  var removeHtmlTags = (html) => {
4324
4498
  return html.replace(/<[^>]*>/g, "");
4325
4499
  };
4326
- var Heading = forwardRef(
4327
- ({ className, as, displayAs, children, ...props }, ref) => {
4328
- const displayClasses = {
4329
- h1: styles61["h1"],
4330
- h2: styles61["h2"],
4331
- h3: styles61["h3"],
4332
- h4: styles61["h4"],
4333
- h5: styles61["h5"],
4334
- h6: styles61["h6"]
4335
- };
4336
- const displayClass = displayClasses[displayAs] || displayClasses[as];
4337
- const HeadingTag = as;
4338
- return /* @__PURE__ */ jsx(HeadingTag, { ref, className: cn(displayClass, className), ...props, children });
4339
- }
4340
- );
4341
- Heading.displayName = "Heading";
4342
- var ControlStatusBadge = ({ status, display = "both" }) => {
4343
- const config = getStatusConfig(status);
4344
- if (config.subLabel) {
4345
- if (display === "icon-only") {
4346
- return /* @__PURE__ */ jsx(Badge, { icon: config.icon, display: "icon-only", className: config.className, variant: null, children: config.label });
4347
- }
4348
- return /* @__PURE__ */ jsxs("div", { className: cn(styles62["split-badge"], config.className), children: [
4349
- /* @__PURE__ */ jsxs("span", { className: styles62["split-badge__status"], children: [
4350
- display !== "text-only" && /* @__PURE__ */ jsx(Icon, { icon: config.icon, size: "xs", className: styles62["icon"] }),
4351
- config.label
4352
- ] }),
4353
- /* @__PURE__ */ jsx("span", { className: styles62["split-badge__sub-status"], children: config.subLabel })
4354
- ] });
4355
- }
4356
- return /* @__PURE__ */ jsx(Badge, { icon: config.icon, display, className: config.className, variant: null, children: config.label });
4357
- };
4358
- var getStatusConfig = (status) => {
4359
- switch (status) {
4360
- case "in-progress":
4361
- return {
4362
- icon: "Clock",
4363
- className: styles62["badge--in-progress"],
4364
- label: "In Progress"
4365
- };
4366
- case "not-started":
4367
- return {
4368
- icon: "CircleDashed",
4369
- className: styles62["badge--not-started"],
4370
- label: "Not Started"
4371
- };
4372
- case "ready-for-review":
4373
- return {
4374
- icon: "ClipboardCheck",
4375
- className: styles62["badge--ready-for-review"],
4376
- label: "Ready for Review"
4377
- };
4378
- case "in-review":
4379
- return {
4380
- icon: "Eye",
4381
- className: styles62["badge--in-review"],
4382
- label: "In Review"
4383
- };
4384
- case "comment":
4385
- return {
4386
- icon: "Eye",
4387
- className: styles62["badge--comment"],
4388
- label: "In Review",
4389
- subLabel: "General"
4390
- };
4391
- case "not-applicable":
4392
- return {
4393
- icon: "MinusCircle",
4394
- className: styles62["badge--not-applicable"],
4395
- label: "Not Applicable"
4396
- };
4397
- case "accepted":
4398
- return {
4399
- icon: "Eye",
4400
- className: styles62["badge--accepted"],
4401
- label: "In Review",
4402
- subLabel: "Accepted"
4403
- };
4404
- case "questioned":
4405
- return {
4406
- icon: "Eye",
4407
- className: styles62["badge--question"],
4408
- label: "In Review",
4409
- subLabel: "Questioned"
4410
- };
4411
- case "compliant":
4412
- return {
4413
- icon: /* @__PURE__ */ jsx(CircleCheckFillIcon, {}),
4414
- className: styles62["badge--compliant"],
4415
- label: "Compliant"
4416
- };
4417
- case "non-compliant":
4418
- return {
4419
- icon: "X",
4420
- className: styles62["badge--non-compliant"],
4421
- label: "Non-compliant"
4422
- };
4423
- default:
4424
- return {
4425
- icon: "CircleDashed",
4426
- className: styles62["badge--not-started"],
4427
- label: status
4428
- };
4429
- }
4430
- };
4431
- var CircleCheckFillIcon = ({ className }) => {
4432
- return /* @__PURE__ */ jsx(
4433
- "svg",
4434
- {
4435
- className,
4436
- xmlns: "http://www.w3.org/2000/svg",
4437
- width: "12",
4438
- height: "12",
4439
- viewBox: "0 0 24 24",
4440
- fill: "currentColor",
4441
- 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" })
4442
- }
4443
- );
4444
- };
4445
4500
  var Portal8 = React15.forwardRef((_props, ref) => {
4446
4501
  return /* @__PURE__ */ jsx("div", { id: PORTAL_ROOT_ID, ref });
4447
4502
  });
@@ -4581,6 +4636,6 @@ var useTheme = () => {
4581
4636
  return [theme, setTheme];
4582
4637
  };
4583
4638
 
4584
- 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 };
4585
4640
  //# sourceMappingURL=index.js.map
4586
4641
  //# sourceMappingURL=index.js.map