@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/CHANGELOG.md +29 -0
- package/dist/index.cjs +1158 -1101
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +142 -121
- package/dist/index.d.ts +142 -121
- package/dist/index.js +1118 -1063
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React15 = require('react');
|
|
4
|
+
var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
|
|
5
|
+
var styles2 = require('./alert-dialog.module.module.css.module.css');
|
|
6
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
4
7
|
var classVarianceAuthority = require('class-variance-authority');
|
|
5
|
-
var
|
|
6
|
-
var LucideIcons = require('lucide-react');
|
|
7
|
-
var styles = require('./icon.module.module.css.module.css');
|
|
8
|
+
var styles = require('./button.module.module.css.module.css');
|
|
8
9
|
var clsx = require('clsx');
|
|
9
10
|
var tailwindMerge = require('tailwind-merge');
|
|
10
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var styles3 = require('./button.module.module.css.module.css');
|
|
12
|
+
var styles4 = require('./alert.module.module.css.module.css');
|
|
13
|
+
var LucideIcons = require('lucide-react');
|
|
14
|
+
var styles3 = require('./icon.module.module.css.module.css');
|
|
15
15
|
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
16
16
|
var styles5 = require('./avatar.module.module.css.module.css');
|
|
17
17
|
var styles7 = require('./badge.module.module.css.module.css');
|
|
@@ -19,18 +19,18 @@ var TooltipPrimitive = require('@radix-ui/react-tooltip');
|
|
|
19
19
|
var styles6 = require('./tooltip.module.module.css.module.css');
|
|
20
20
|
var styles8 = require('./bar-graph.module.module.css.module.css');
|
|
21
21
|
var styles9 = require('./bg-gradient.module.module.css.module.css');
|
|
22
|
-
var styles10 = require('./
|
|
23
|
-
var styles11 = require('./card
|
|
24
|
-
var styles12 = require('./card.module.module.css.module.css');
|
|
22
|
+
var styles10 = require('./card-content-header.module.module.css.module.css');
|
|
23
|
+
var styles11 = require('./card.module.module.css.module.css');
|
|
25
24
|
var CheckboxPrimitive = require('@radix-ui/react-checkbox');
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
25
|
+
var styles12 = require('./checkbox.module.module.css.module.css');
|
|
26
|
+
var styles14 = require('./code-block.module.module.css.module.css');
|
|
27
|
+
var styles13 = require('./icon-button.module.module.css.module.css');
|
|
29
28
|
var microlighter = require('microlighter');
|
|
30
29
|
var cmdk = require('cmdk');
|
|
31
|
-
var
|
|
30
|
+
var styles16 = require('./command.module.module.css.module.css');
|
|
32
31
|
var DialogPrimitive = require('@radix-ui/react-dialog');
|
|
33
|
-
var
|
|
32
|
+
var styles15 = require('./dialog.module.module.css.module.css');
|
|
33
|
+
var styles17 = require('./control-status-badge.module.module.css.module.css');
|
|
34
34
|
var styles19 = require('./date-range-picker.module.module.css.module.css');
|
|
35
35
|
var PopoverPrimitive = require('@radix-ui/react-popover');
|
|
36
36
|
var styles18 = require('./popover.module.module.css.module.css');
|
|
@@ -46,51 +46,51 @@ var reactHookForm = require('react-hook-form');
|
|
|
46
46
|
var styles26 = require('./form.module.module.css.module.css');
|
|
47
47
|
var LabelPrimitive = require('@radix-ui/react-label');
|
|
48
48
|
var styles25 = require('./label.module.module.css.module.css');
|
|
49
|
-
var styles27 = require('./
|
|
50
|
-
var
|
|
49
|
+
var styles27 = require('./format-date.module.module.css.module.css');
|
|
50
|
+
var styles28 = require('./heading.module.module.css.module.css');
|
|
51
|
+
var styles29 = require('./info-card.module.module.css.module.css');
|
|
52
|
+
var styles31 = require('./input.module.module.css.module.css');
|
|
51
53
|
var react = require('motion/react');
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
54
|
+
var styles30 = require('./motion-collapsible.module.module.css.module.css');
|
|
55
|
+
var styles32 = require('./list-or-grid-view-toggle.module.module.css.module.css');
|
|
56
|
+
var styles34 = require('./loading-overlay.module.module.css.module.css');
|
|
57
|
+
var styles33 = require('./spinner.module.module.css.module.css');
|
|
58
|
+
var styles35 = require('./metric-card.module.module.css.module.css');
|
|
59
|
+
var styles36 = require('./page-not-found.module.module.css.module.css');
|
|
60
|
+
var styles38 = require('./pagination.module.module.css.module.css');
|
|
59
61
|
var SelectPrimitive = require('@radix-ui/react-select');
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
+
var styles37 = require('./select.module.module.css.module.css');
|
|
63
|
+
var styles39 = require('./panel-label.module.module.css.module.css');
|
|
64
|
+
var styles41 = require('./progress-indicator.module.module.css.module.css');
|
|
62
65
|
var ProgressPrimitive = require('@radix-ui/react-progress');
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var
|
|
66
|
-
var styles41 = require('./radio-dropdown.module.module.css.module.css');
|
|
66
|
+
var styles40 = require('./progress.module.module.css.module.css');
|
|
67
|
+
var styles42 = require('./radial-graph.module.module.css.module.css');
|
|
68
|
+
var styles43 = require('./radio-dropdown.module.module.css.module.css');
|
|
67
69
|
var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
|
|
68
|
-
var
|
|
70
|
+
var styles44 = require('./radio-group.module.module.css.module.css');
|
|
71
|
+
var styles45 = require('./resource-badge.module.module.css.module.css');
|
|
69
72
|
var ScrollAreaPrimitive = require('@radix-ui/react-scroll-area');
|
|
70
|
-
var
|
|
71
|
-
var
|
|
72
|
-
var
|
|
73
|
-
var
|
|
73
|
+
var styles46 = require('./scroll-area.module.module.css.module.css');
|
|
74
|
+
var styles47 = require('./search-bar.module.module.css.module.css');
|
|
75
|
+
var styles48 = require('./section-heading.module.module.css.module.css');
|
|
76
|
+
var styles49 = require('./segmented-controls.module.module.css.module.css');
|
|
74
77
|
var SeparatorPrimitive = require('@radix-ui/react-separator');
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
var
|
|
78
|
-
var
|
|
78
|
+
var styles50 = require('./separator.module.module.css.module.css');
|
|
79
|
+
var styles51 = require('./sheet.module.module.css.module.css');
|
|
80
|
+
var styles52 = require('./skeleton.module.module.css.module.css');
|
|
81
|
+
var styles53 = require('./sort-button.module.module.css.module.css');
|
|
82
|
+
var styles54 = require('./sort-selector.module.module.css.module.css');
|
|
79
83
|
var SwitchPrimitives = require('@radix-ui/react-switch');
|
|
80
|
-
var
|
|
81
|
-
var
|
|
82
|
-
var styles53 = require('./table-components.module.module.css.module.css');
|
|
84
|
+
var styles55 = require('./switch.module.module.css.module.css');
|
|
85
|
+
var styles56 = require('./table-components.module.module.css.module.css');
|
|
83
86
|
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var styles57 = require('./format-date.module.module.css.module.css');
|
|
87
|
+
var styles57 = require('./tabs-components.module.module.css.module.css');
|
|
88
|
+
var styles58 = require('./tabs.module.module.css.module.css');
|
|
89
|
+
var styles59 = require('./textarea.module.module.css.module.css');
|
|
88
90
|
var ToastPrimitives = require('@radix-ui/react-toast');
|
|
89
|
-
var
|
|
90
|
-
var
|
|
91
|
-
var
|
|
92
|
-
var styles61 = require('./heading.module.module.css.module.css');
|
|
93
|
-
var styles62 = require('./control-status-badge.module.module.css.module.css');
|
|
91
|
+
var styles60 = require('./toast-components.module.module.css.module.css');
|
|
92
|
+
var styles61 = require('./toast.module.module.css.module.css');
|
|
93
|
+
var styles62 = require('./truncated-description.module.module.css.module.css');
|
|
94
94
|
var styles63 = require('./theme.module.module.css.module.css');
|
|
95
95
|
|
|
96
96
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -114,11 +114,11 @@ function _interopNamespace(e) {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
var React15__namespace = /*#__PURE__*/_interopNamespace(React15);
|
|
117
|
+
var AlertDialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(AlertDialogPrimitive);
|
|
117
118
|
var styles2__default = /*#__PURE__*/_interopDefault(styles2);
|
|
118
|
-
var LucideIcons__namespace = /*#__PURE__*/_interopNamespace(LucideIcons);
|
|
119
119
|
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
120
|
-
var AlertDialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(AlertDialogPrimitive);
|
|
121
120
|
var styles4__default = /*#__PURE__*/_interopDefault(styles4);
|
|
121
|
+
var LucideIcons__namespace = /*#__PURE__*/_interopNamespace(LucideIcons);
|
|
122
122
|
var styles3__default = /*#__PURE__*/_interopDefault(styles3);
|
|
123
123
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
124
124
|
var styles5__default = /*#__PURE__*/_interopDefault(styles5);
|
|
@@ -129,14 +129,14 @@ var styles8__default = /*#__PURE__*/_interopDefault(styles8);
|
|
|
129
129
|
var styles9__default = /*#__PURE__*/_interopDefault(styles9);
|
|
130
130
|
var styles10__default = /*#__PURE__*/_interopDefault(styles10);
|
|
131
131
|
var styles11__default = /*#__PURE__*/_interopDefault(styles11);
|
|
132
|
-
var styles12__default = /*#__PURE__*/_interopDefault(styles12);
|
|
133
132
|
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
133
|
+
var styles12__default = /*#__PURE__*/_interopDefault(styles12);
|
|
134
|
+
var styles14__default = /*#__PURE__*/_interopDefault(styles14);
|
|
134
135
|
var styles13__default = /*#__PURE__*/_interopDefault(styles13);
|
|
136
|
+
var styles16__default = /*#__PURE__*/_interopDefault(styles16);
|
|
137
|
+
var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
|
|
135
138
|
var styles15__default = /*#__PURE__*/_interopDefault(styles15);
|
|
136
|
-
var styles14__default = /*#__PURE__*/_interopDefault(styles14);
|
|
137
139
|
var styles17__default = /*#__PURE__*/_interopDefault(styles17);
|
|
138
|
-
var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
|
|
139
|
-
var styles16__default = /*#__PURE__*/_interopDefault(styles16);
|
|
140
140
|
var styles19__default = /*#__PURE__*/_interopDefault(styles19);
|
|
141
141
|
var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
142
142
|
var styles18__default = /*#__PURE__*/_interopDefault(styles18);
|
|
@@ -151,82 +151,52 @@ var styles26__default = /*#__PURE__*/_interopDefault(styles26);
|
|
|
151
151
|
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
152
152
|
var styles25__default = /*#__PURE__*/_interopDefault(styles25);
|
|
153
153
|
var styles27__default = /*#__PURE__*/_interopDefault(styles27);
|
|
154
|
-
var styles29__default = /*#__PURE__*/_interopDefault(styles29);
|
|
155
154
|
var styles28__default = /*#__PURE__*/_interopDefault(styles28);
|
|
155
|
+
var styles29__default = /*#__PURE__*/_interopDefault(styles29);
|
|
156
|
+
var styles31__default = /*#__PURE__*/_interopDefault(styles31);
|
|
156
157
|
var styles30__default = /*#__PURE__*/_interopDefault(styles30);
|
|
157
158
|
var styles32__default = /*#__PURE__*/_interopDefault(styles32);
|
|
158
|
-
var styles31__default = /*#__PURE__*/_interopDefault(styles31);
|
|
159
|
-
var styles33__default = /*#__PURE__*/_interopDefault(styles33);
|
|
160
159
|
var styles34__default = /*#__PURE__*/_interopDefault(styles34);
|
|
160
|
+
var styles33__default = /*#__PURE__*/_interopDefault(styles33);
|
|
161
|
+
var styles35__default = /*#__PURE__*/_interopDefault(styles35);
|
|
161
162
|
var styles36__default = /*#__PURE__*/_interopDefault(styles36);
|
|
163
|
+
var styles38__default = /*#__PURE__*/_interopDefault(styles38);
|
|
162
164
|
var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
|
|
163
|
-
var styles35__default = /*#__PURE__*/_interopDefault(styles35);
|
|
164
165
|
var styles37__default = /*#__PURE__*/_interopDefault(styles37);
|
|
165
|
-
var ProgressPrimitive__namespace = /*#__PURE__*/_interopNamespace(ProgressPrimitive);
|
|
166
|
-
var styles38__default = /*#__PURE__*/_interopDefault(styles38);
|
|
167
166
|
var styles39__default = /*#__PURE__*/_interopDefault(styles39);
|
|
168
|
-
var styles40__default = /*#__PURE__*/_interopDefault(styles40);
|
|
169
167
|
var styles41__default = /*#__PURE__*/_interopDefault(styles41);
|
|
170
|
-
var
|
|
168
|
+
var ProgressPrimitive__namespace = /*#__PURE__*/_interopNamespace(ProgressPrimitive);
|
|
169
|
+
var styles40__default = /*#__PURE__*/_interopDefault(styles40);
|
|
171
170
|
var styles42__default = /*#__PURE__*/_interopDefault(styles42);
|
|
172
|
-
var ScrollAreaPrimitive__namespace = /*#__PURE__*/_interopNamespace(ScrollAreaPrimitive);
|
|
173
171
|
var styles43__default = /*#__PURE__*/_interopDefault(styles43);
|
|
172
|
+
var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
|
|
174
173
|
var styles44__default = /*#__PURE__*/_interopDefault(styles44);
|
|
175
174
|
var styles45__default = /*#__PURE__*/_interopDefault(styles45);
|
|
175
|
+
var ScrollAreaPrimitive__namespace = /*#__PURE__*/_interopNamespace(ScrollAreaPrimitive);
|
|
176
176
|
var styles46__default = /*#__PURE__*/_interopDefault(styles46);
|
|
177
|
-
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
178
177
|
var styles47__default = /*#__PURE__*/_interopDefault(styles47);
|
|
179
178
|
var styles48__default = /*#__PURE__*/_interopDefault(styles48);
|
|
180
179
|
var styles49__default = /*#__PURE__*/_interopDefault(styles49);
|
|
180
|
+
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
181
181
|
var styles50__default = /*#__PURE__*/_interopDefault(styles50);
|
|
182
|
-
var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
|
|
183
182
|
var styles51__default = /*#__PURE__*/_interopDefault(styles51);
|
|
184
183
|
var styles52__default = /*#__PURE__*/_interopDefault(styles52);
|
|
185
184
|
var styles53__default = /*#__PURE__*/_interopDefault(styles53);
|
|
186
|
-
var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
|
|
187
185
|
var styles54__default = /*#__PURE__*/_interopDefault(styles54);
|
|
186
|
+
var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
|
|
188
187
|
var styles55__default = /*#__PURE__*/_interopDefault(styles55);
|
|
189
188
|
var styles56__default = /*#__PURE__*/_interopDefault(styles56);
|
|
189
|
+
var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
|
|
190
190
|
var styles57__default = /*#__PURE__*/_interopDefault(styles57);
|
|
191
|
-
var ToastPrimitives__namespace = /*#__PURE__*/_interopNamespace(ToastPrimitives);
|
|
192
191
|
var styles58__default = /*#__PURE__*/_interopDefault(styles58);
|
|
193
192
|
var styles59__default = /*#__PURE__*/_interopDefault(styles59);
|
|
193
|
+
var ToastPrimitives__namespace = /*#__PURE__*/_interopNamespace(ToastPrimitives);
|
|
194
194
|
var styles60__default = /*#__PURE__*/_interopDefault(styles60);
|
|
195
195
|
var styles61__default = /*#__PURE__*/_interopDefault(styles61);
|
|
196
196
|
var styles62__default = /*#__PURE__*/_interopDefault(styles62);
|
|
197
197
|
var styles63__default = /*#__PURE__*/_interopDefault(styles63);
|
|
198
198
|
|
|
199
|
-
// src/components/alert/alert.tsx
|
|
200
|
-
var ELEVATION = {
|
|
201
|
-
SUNKEN: "sunken",
|
|
202
|
-
BASE: "base",
|
|
203
|
-
RAISED: "raised",
|
|
204
|
-
OVERLAY: "overlay"
|
|
205
|
-
};
|
|
206
|
-
var generateElevationVariants = (styles64, baseClassName, defaultElevation) => {
|
|
207
|
-
const classNames = {};
|
|
208
|
-
Object.values(ELEVATION).forEach((elevation) => {
|
|
209
|
-
classNames[elevation] = styles64[`${baseClassName}--${elevation}`];
|
|
210
|
-
});
|
|
211
|
-
const variants = classVarianceAuthority.cva(styles64[baseClassName], {
|
|
212
|
-
variants: {
|
|
213
|
-
elevation: classNames
|
|
214
|
-
},
|
|
215
|
-
defaultVariants: {
|
|
216
|
-
elevation: defaultElevation
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
return variants;
|
|
220
|
-
};
|
|
221
|
-
var getRelativeElevation = (elevation, offset) => {
|
|
222
|
-
const elevationIndex = Object.values(ELEVATION).indexOf(elevation);
|
|
223
|
-
const newElevationIndex = elevationIndex + offset;
|
|
224
|
-
const relativeElevation = Object.values(ELEVATION)[newElevationIndex];
|
|
225
|
-
if (!relativeElevation) {
|
|
226
|
-
console.warn(`Invalid elevation offset: from ${elevation} with offset ${offset}`);
|
|
227
|
-
}
|
|
228
|
-
return relativeElevation || elevation;
|
|
229
|
-
};
|
|
199
|
+
// src/components/alert-dialog/alert-dialog.tsx
|
|
230
200
|
var PORTAL_ROOT_ID = "equality-theme-provider-root-portal";
|
|
231
201
|
var PortalContainerContext = React15__namespace.createContext(
|
|
232
202
|
void 0
|
|
@@ -241,131 +211,21 @@ function usePortalContainer() {
|
|
|
241
211
|
function cn(...inputs) {
|
|
242
212
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
243
213
|
}
|
|
244
|
-
var
|
|
214
|
+
var buttonVariants = classVarianceAuthority.cva(styles__default.default["button"], {
|
|
245
215
|
variants: {
|
|
216
|
+
variant: {
|
|
217
|
+
primary: styles__default.default["button--primary"],
|
|
218
|
+
danger: styles__default.default["button--danger"],
|
|
219
|
+
warning: styles__default.default["button--warning"],
|
|
220
|
+
secondary: styles__default.default["button--secondary"],
|
|
221
|
+
tertiary: styles__default.default["button--tertiary"],
|
|
222
|
+
link: styles__default.default["button--link"],
|
|
223
|
+
navigation: styles__default.default["button--navigation"]
|
|
224
|
+
},
|
|
246
225
|
size: {
|
|
247
|
-
xs: styles__default.default["size--xs"],
|
|
248
226
|
sm: styles__default.default["size--sm"],
|
|
249
227
|
md: styles__default.default["size--md"],
|
|
250
228
|
lg: styles__default.default["size--lg"]
|
|
251
|
-
},
|
|
252
|
-
background: {
|
|
253
|
-
square: styles__default.default["background--square"],
|
|
254
|
-
circle: styles__default.default["background--circle"],
|
|
255
|
-
transparent: styles__default.default["background--transparent"]
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
defaultVariants: {
|
|
259
|
-
size: "md",
|
|
260
|
-
background: "transparent"
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
|
-
var iconElevationVariants = generateElevationVariants(styles__default.default, "icon-container", ELEVATION.RAISED);
|
|
264
|
-
var Icon = React15.forwardRef(
|
|
265
|
-
({ className, size, background, icon, elevation = ELEVATION.RAISED, ...props }, ref) => {
|
|
266
|
-
let renderedIcon;
|
|
267
|
-
if (typeof icon === "string") {
|
|
268
|
-
const LucideIcon = LucideIcons__namespace[icon];
|
|
269
|
-
if (!LucideIcon) {
|
|
270
|
-
throw new Error(`Icon "${icon}" not found in lucide-react`);
|
|
271
|
-
}
|
|
272
|
-
renderedIcon = /* @__PURE__ */ jsxRuntime.jsx(LucideIcon, { className: cn(styles__default.default["icon"]) });
|
|
273
|
-
} else if (React15__namespace.isValidElement(icon)) {
|
|
274
|
-
const existingProps = icon.props;
|
|
275
|
-
renderedIcon = React15__namespace.cloneElement(
|
|
276
|
-
icon,
|
|
277
|
-
{
|
|
278
|
-
...existingProps,
|
|
279
|
-
className: cn(styles__default.default["icon"], existingProps.className)
|
|
280
|
-
}
|
|
281
|
-
);
|
|
282
|
-
} else {
|
|
283
|
-
throw new Error("Icon must be either a string (Lucide icon name) or a React element");
|
|
284
|
-
}
|
|
285
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
286
|
-
"div",
|
|
287
|
-
{
|
|
288
|
-
ref,
|
|
289
|
-
className: cn(
|
|
290
|
-
iconVariants({ size, background }),
|
|
291
|
-
iconElevationVariants({ elevation }),
|
|
292
|
-
className
|
|
293
|
-
),
|
|
294
|
-
...props,
|
|
295
|
-
children: renderedIcon
|
|
296
|
-
}
|
|
297
|
-
);
|
|
298
|
-
}
|
|
299
|
-
);
|
|
300
|
-
Icon.displayName = "Icon";
|
|
301
|
-
var alertVariants = classVarianceAuthority.cva(styles2__default.default["alert"], {
|
|
302
|
-
variants: {
|
|
303
|
-
variant: {
|
|
304
|
-
primary: styles2__default.default["alert--primary"],
|
|
305
|
-
neutral: styles2__default.default["alert--neutral"],
|
|
306
|
-
success: styles2__default.default["alert--success"],
|
|
307
|
-
warning: styles2__default.default["alert--warning"],
|
|
308
|
-
danger: styles2__default.default["alert--danger"]
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
defaultVariants: {
|
|
312
|
-
variant: "primary"
|
|
313
|
-
}
|
|
314
|
-
});
|
|
315
|
-
var defaultVariantIcons = {
|
|
316
|
-
success: "Check",
|
|
317
|
-
warning: "OctagonAlert",
|
|
318
|
-
danger: "TriangleAlert"
|
|
319
|
-
};
|
|
320
|
-
var Alert = React15__namespace.forwardRef(
|
|
321
|
-
({ className, variant, title, description, icon, children, as: Component = "div", ...props }, ref) => {
|
|
322
|
-
const effectiveIcon = icon === void 0 ? variant ? defaultVariantIcons[variant] : void 0 : icon;
|
|
323
|
-
const role = Component === "div" ? "alert" : void 0;
|
|
324
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
325
|
-
Component,
|
|
326
|
-
{
|
|
327
|
-
ref,
|
|
328
|
-
role,
|
|
329
|
-
className: cn(
|
|
330
|
-
alertVariants({ variant }),
|
|
331
|
-
effectiveIcon ? styles2__default.default["alert--with-icon"] : "",
|
|
332
|
-
className
|
|
333
|
-
),
|
|
334
|
-
...props,
|
|
335
|
-
children: [
|
|
336
|
-
effectiveIcon ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
337
|
-
Icon,
|
|
338
|
-
{
|
|
339
|
-
icon: effectiveIcon,
|
|
340
|
-
size: "sm",
|
|
341
|
-
background: "transparent",
|
|
342
|
-
className: styles2__default.default["alert-icon"]
|
|
343
|
-
}
|
|
344
|
-
) : null,
|
|
345
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: styles2__default.default["alert-title"], children: title }),
|
|
346
|
-
description ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles2__default.default["alert-description"], children: description }) : null,
|
|
347
|
-
children ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles2__default.default["alert-body"], children }) : null
|
|
348
|
-
]
|
|
349
|
-
}
|
|
350
|
-
);
|
|
351
|
-
}
|
|
352
|
-
);
|
|
353
|
-
Alert.displayName = "Alert";
|
|
354
|
-
var buttonVariants = classVarianceAuthority.cva(styles3__default.default["button"], {
|
|
355
|
-
variants: {
|
|
356
|
-
variant: {
|
|
357
|
-
primary: styles3__default.default["button--primary"],
|
|
358
|
-
danger: styles3__default.default["button--danger"],
|
|
359
|
-
warning: styles3__default.default["button--warning"],
|
|
360
|
-
secondary: styles3__default.default["button--secondary"],
|
|
361
|
-
tertiary: styles3__default.default["button--tertiary"],
|
|
362
|
-
link: styles3__default.default["button--link"],
|
|
363
|
-
navigation: styles3__default.default["button--navigation"]
|
|
364
|
-
},
|
|
365
|
-
size: {
|
|
366
|
-
sm: styles3__default.default["size--sm"],
|
|
367
|
-
md: styles3__default.default["size--md"],
|
|
368
|
-
lg: styles3__default.default["size--lg"]
|
|
369
229
|
}
|
|
370
230
|
},
|
|
371
231
|
defaultVariants: {
|
|
@@ -419,7 +279,7 @@ var AlertDialogPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(AlertDi
|
|
|
419
279
|
var AlertDialogOverlay = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
420
280
|
AlertDialogPrimitive__namespace.Overlay,
|
|
421
281
|
{
|
|
422
|
-
className: cn(
|
|
282
|
+
className: cn(styles2__default.default["alert-dialog-overlay"], className),
|
|
423
283
|
...props,
|
|
424
284
|
ref
|
|
425
285
|
}
|
|
@@ -431,21 +291,21 @@ var AlertDialogContent = React15__namespace.forwardRef(({ className, ...props },
|
|
|
431
291
|
AlertDialogPrimitive__namespace.Content,
|
|
432
292
|
{
|
|
433
293
|
ref,
|
|
434
|
-
className: cn(
|
|
294
|
+
className: cn(styles2__default.default["alert-dialog-content"], className),
|
|
435
295
|
...props
|
|
436
296
|
}
|
|
437
297
|
)
|
|
438
298
|
] }));
|
|
439
299
|
AlertDialogContent.displayName = AlertDialogPrimitive__namespace.Content.displayName;
|
|
440
|
-
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
300
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles2__default.default["alert-dialog-header"], className), ...props });
|
|
441
301
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
442
|
-
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
302
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles2__default.default["alert-dialog-footer"], className), ...props });
|
|
443
303
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
444
304
|
var AlertDialogTitle = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
445
305
|
AlertDialogPrimitive__namespace.Title,
|
|
446
306
|
{
|
|
447
307
|
ref,
|
|
448
|
-
className: cn(
|
|
308
|
+
className: cn(styles2__default.default["alert-dialog-title"], className),
|
|
449
309
|
...props
|
|
450
310
|
}
|
|
451
311
|
));
|
|
@@ -454,7 +314,7 @@ var AlertDialogDescription = React15__namespace.forwardRef(({ className, ...prop
|
|
|
454
314
|
AlertDialogPrimitive__namespace.Description,
|
|
455
315
|
{
|
|
456
316
|
ref,
|
|
457
|
-
className: cn(
|
|
317
|
+
className: cn(styles2__default.default["alert-dialog-description"], className),
|
|
458
318
|
...props
|
|
459
319
|
}
|
|
460
320
|
));
|
|
@@ -477,7 +337,7 @@ var AlertDialogCancel = React15__namespace.forwardRef(({ className, variant = "t
|
|
|
477
337
|
AlertDialogPrimitive__namespace.Cancel,
|
|
478
338
|
{
|
|
479
339
|
ref,
|
|
480
|
-
className: cn(buttonVariants({ variant, size }),
|
|
340
|
+
className: cn(buttonVariants({ variant, size }), styles2__default.default["alert-dialog-cancel"], className),
|
|
481
341
|
...props,
|
|
482
342
|
children: [
|
|
483
343
|
prefix,
|
|
@@ -487,6 +347,146 @@ var AlertDialogCancel = React15__namespace.forwardRef(({ className, variant = "t
|
|
|
487
347
|
}
|
|
488
348
|
));
|
|
489
349
|
AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayName;
|
|
350
|
+
var ELEVATION = {
|
|
351
|
+
SUNKEN: "sunken",
|
|
352
|
+
BASE: "base",
|
|
353
|
+
RAISED: "raised",
|
|
354
|
+
OVERLAY: "overlay"
|
|
355
|
+
};
|
|
356
|
+
var generateElevationVariants = (styles64, baseClassName, defaultElevation) => {
|
|
357
|
+
const classNames = {};
|
|
358
|
+
Object.values(ELEVATION).forEach((elevation) => {
|
|
359
|
+
classNames[elevation] = styles64[`${baseClassName}--${elevation}`];
|
|
360
|
+
});
|
|
361
|
+
const variants = classVarianceAuthority.cva(styles64[baseClassName], {
|
|
362
|
+
variants: {
|
|
363
|
+
elevation: classNames
|
|
364
|
+
},
|
|
365
|
+
defaultVariants: {
|
|
366
|
+
elevation: defaultElevation
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
return variants;
|
|
370
|
+
};
|
|
371
|
+
var getRelativeElevation = (elevation, offset) => {
|
|
372
|
+
const elevationIndex = Object.values(ELEVATION).indexOf(elevation);
|
|
373
|
+
const newElevationIndex = elevationIndex + offset;
|
|
374
|
+
const relativeElevation = Object.values(ELEVATION)[newElevationIndex];
|
|
375
|
+
if (!relativeElevation) {
|
|
376
|
+
console.warn(`Invalid elevation offset: from ${elevation} with offset ${offset}`);
|
|
377
|
+
}
|
|
378
|
+
return relativeElevation || elevation;
|
|
379
|
+
};
|
|
380
|
+
var iconVariants = classVarianceAuthority.cva(styles3__default.default["icon-container"], {
|
|
381
|
+
variants: {
|
|
382
|
+
size: {
|
|
383
|
+
xs: styles3__default.default["size--xs"],
|
|
384
|
+
sm: styles3__default.default["size--sm"],
|
|
385
|
+
md: styles3__default.default["size--md"],
|
|
386
|
+
lg: styles3__default.default["size--lg"]
|
|
387
|
+
},
|
|
388
|
+
background: {
|
|
389
|
+
square: styles3__default.default["background--square"],
|
|
390
|
+
circle: styles3__default.default["background--circle"],
|
|
391
|
+
transparent: styles3__default.default["background--transparent"]
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
defaultVariants: {
|
|
395
|
+
size: "md",
|
|
396
|
+
background: "transparent"
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
var iconElevationVariants = generateElevationVariants(styles3__default.default, "icon-container", ELEVATION.RAISED);
|
|
400
|
+
var Icon = React15.forwardRef(
|
|
401
|
+
({ className, size, background, icon, elevation = ELEVATION.RAISED, ...props }, ref) => {
|
|
402
|
+
let renderedIcon;
|
|
403
|
+
if (typeof icon === "string") {
|
|
404
|
+
const LucideIcon = LucideIcons__namespace[icon];
|
|
405
|
+
if (!LucideIcon) {
|
|
406
|
+
throw new Error(`Icon "${icon}" not found in lucide-react`);
|
|
407
|
+
}
|
|
408
|
+
renderedIcon = /* @__PURE__ */ jsxRuntime.jsx(LucideIcon, { className: cn(styles3__default.default["icon"]) });
|
|
409
|
+
} else if (React15__namespace.isValidElement(icon)) {
|
|
410
|
+
const existingProps = icon.props;
|
|
411
|
+
renderedIcon = React15__namespace.cloneElement(
|
|
412
|
+
icon,
|
|
413
|
+
{
|
|
414
|
+
...existingProps,
|
|
415
|
+
className: cn(styles3__default.default["icon"], existingProps.className)
|
|
416
|
+
}
|
|
417
|
+
);
|
|
418
|
+
} else {
|
|
419
|
+
throw new Error("Icon must be either a string (Lucide icon name) or a React element");
|
|
420
|
+
}
|
|
421
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
422
|
+
"div",
|
|
423
|
+
{
|
|
424
|
+
ref,
|
|
425
|
+
className: cn(
|
|
426
|
+
iconVariants({ size, background }),
|
|
427
|
+
iconElevationVariants({ elevation }),
|
|
428
|
+
className
|
|
429
|
+
),
|
|
430
|
+
...props,
|
|
431
|
+
children: renderedIcon
|
|
432
|
+
}
|
|
433
|
+
);
|
|
434
|
+
}
|
|
435
|
+
);
|
|
436
|
+
Icon.displayName = "Icon";
|
|
437
|
+
var alertVariants = classVarianceAuthority.cva(styles4__default.default["alert"], {
|
|
438
|
+
variants: {
|
|
439
|
+
variant: {
|
|
440
|
+
primary: styles4__default.default["alert--primary"],
|
|
441
|
+
neutral: styles4__default.default["alert--neutral"],
|
|
442
|
+
success: styles4__default.default["alert--success"],
|
|
443
|
+
warning: styles4__default.default["alert--warning"],
|
|
444
|
+
danger: styles4__default.default["alert--danger"]
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
defaultVariants: {
|
|
448
|
+
variant: "primary"
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
|
+
var defaultVariantIcons = {
|
|
452
|
+
success: "Check",
|
|
453
|
+
warning: "OctagonAlert",
|
|
454
|
+
danger: "TriangleAlert"
|
|
455
|
+
};
|
|
456
|
+
var Alert = React15__namespace.forwardRef(
|
|
457
|
+
({ className, variant, title, description, icon, children, as: Component = "div", ...props }, ref) => {
|
|
458
|
+
const effectiveIcon = icon === void 0 ? variant ? defaultVariantIcons[variant] : void 0 : icon;
|
|
459
|
+
const role = Component === "div" ? "alert" : void 0;
|
|
460
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
461
|
+
Component,
|
|
462
|
+
{
|
|
463
|
+
ref,
|
|
464
|
+
role,
|
|
465
|
+
className: cn(
|
|
466
|
+
alertVariants({ variant }),
|
|
467
|
+
effectiveIcon ? styles4__default.default["alert--with-icon"] : "",
|
|
468
|
+
className
|
|
469
|
+
),
|
|
470
|
+
...props,
|
|
471
|
+
children: [
|
|
472
|
+
effectiveIcon ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
473
|
+
Icon,
|
|
474
|
+
{
|
|
475
|
+
icon: effectiveIcon,
|
|
476
|
+
size: "sm",
|
|
477
|
+
background: "transparent",
|
|
478
|
+
className: styles4__default.default["alert-icon"]
|
|
479
|
+
}
|
|
480
|
+
) : null,
|
|
481
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: styles4__default.default["alert-title"], children: title }),
|
|
482
|
+
description ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles4__default.default["alert-description"], children: description }) : null,
|
|
483
|
+
children ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles4__default.default["alert-body"], children }) : null
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
);
|
|
489
|
+
Alert.displayName = "Alert";
|
|
490
490
|
var Avatar = React15__namespace.forwardRef(
|
|
491
491
|
({ className, size = "md", shape = "circle", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
492
492
|
AvatarPrimitive__namespace.Root,
|
|
@@ -866,166 +866,6 @@ var BgGradient = ({
|
|
|
866
866
|
}, [theme, placement, brandColors]);
|
|
867
867
|
return /* @__PURE__ */ jsxRuntime.jsx("canvas", { ref: canvasRef, className: styles9__default.default["bg-gradient"] });
|
|
868
868
|
};
|
|
869
|
-
var ResourceBadge = ({
|
|
870
|
-
type,
|
|
871
|
-
display = "both",
|
|
872
|
-
closeable,
|
|
873
|
-
handleClosable,
|
|
874
|
-
closeLabel,
|
|
875
|
-
children
|
|
876
|
-
}) => {
|
|
877
|
-
const config = getTypeConfig(type);
|
|
878
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
879
|
-
Badge,
|
|
880
|
-
{
|
|
881
|
-
icon: config.icon,
|
|
882
|
-
display,
|
|
883
|
-
className: config.className,
|
|
884
|
-
variant: null,
|
|
885
|
-
closeable,
|
|
886
|
-
handleClosable,
|
|
887
|
-
closeLabel,
|
|
888
|
-
children: children ?? config.label
|
|
889
|
-
}
|
|
890
|
-
);
|
|
891
|
-
};
|
|
892
|
-
var getTypeConfig = (type) => {
|
|
893
|
-
switch (type) {
|
|
894
|
-
case "agent":
|
|
895
|
-
return {
|
|
896
|
-
icon: "Bot",
|
|
897
|
-
className: styles10__default.default["badge--agent"],
|
|
898
|
-
label: "Agent"
|
|
899
|
-
};
|
|
900
|
-
case "benchmark":
|
|
901
|
-
return {
|
|
902
|
-
icon: "LineChart",
|
|
903
|
-
className: styles10__default.default["badge--benchmark"],
|
|
904
|
-
label: "Benchmark"
|
|
905
|
-
};
|
|
906
|
-
case "benchmark-result":
|
|
907
|
-
return {
|
|
908
|
-
icon: "FileChartLine",
|
|
909
|
-
className: styles10__default.default["badge--benchmark-result"],
|
|
910
|
-
label: "Benchmark Result"
|
|
911
|
-
};
|
|
912
|
-
case "code":
|
|
913
|
-
return {
|
|
914
|
-
icon: "Code",
|
|
915
|
-
className: styles10__default.default["badge--code"],
|
|
916
|
-
label: "Code"
|
|
917
|
-
};
|
|
918
|
-
case "binary":
|
|
919
|
-
return {
|
|
920
|
-
icon: "Binary",
|
|
921
|
-
className: styles10__default.default["badge--binary"],
|
|
922
|
-
label: "Binary"
|
|
923
|
-
};
|
|
924
|
-
case "certificate":
|
|
925
|
-
return {
|
|
926
|
-
icon: "Award",
|
|
927
|
-
className: styles10__default.default["badge--certificate"],
|
|
928
|
-
label: "Certificate"
|
|
929
|
-
};
|
|
930
|
-
case "compute":
|
|
931
|
-
return {
|
|
932
|
-
icon: "Cpu",
|
|
933
|
-
className: styles10__default.default["badge--compute"],
|
|
934
|
-
label: "Compute"
|
|
935
|
-
};
|
|
936
|
-
case "credential":
|
|
937
|
-
return {
|
|
938
|
-
icon: "IdCardLanyard",
|
|
939
|
-
className: styles10__default.default["badge--credential"],
|
|
940
|
-
label: "Credential"
|
|
941
|
-
};
|
|
942
|
-
case "database":
|
|
943
|
-
return {
|
|
944
|
-
icon: "Database",
|
|
945
|
-
className: styles10__default.default["badge--database"],
|
|
946
|
-
label: "Database"
|
|
947
|
-
};
|
|
948
|
-
case "dataset":
|
|
949
|
-
return {
|
|
950
|
-
icon: "Table",
|
|
951
|
-
className: styles10__default.default["badge--dataset"],
|
|
952
|
-
label: "Dataset"
|
|
953
|
-
};
|
|
954
|
-
case "document":
|
|
955
|
-
return {
|
|
956
|
-
icon: "FileText",
|
|
957
|
-
className: styles10__default.default["badge--document"],
|
|
958
|
-
label: "Document"
|
|
959
|
-
};
|
|
960
|
-
case "skill":
|
|
961
|
-
return {
|
|
962
|
-
icon: "FileCog",
|
|
963
|
-
className: styles10__default.default["badge--skill"],
|
|
964
|
-
label: "Skill"
|
|
965
|
-
};
|
|
966
|
-
case "media":
|
|
967
|
-
return {
|
|
968
|
-
icon: "FileImage",
|
|
969
|
-
className: styles10__default.default["badge--media"],
|
|
970
|
-
label: "Media"
|
|
971
|
-
};
|
|
972
|
-
case "guardrail":
|
|
973
|
-
return {
|
|
974
|
-
icon: "Fence",
|
|
975
|
-
className: styles10__default.default["badge--guardrail"],
|
|
976
|
-
label: "Guardrail"
|
|
977
|
-
};
|
|
978
|
-
case "model":
|
|
979
|
-
return {
|
|
980
|
-
icon: "Brain",
|
|
981
|
-
className: styles10__default.default["badge--model"],
|
|
982
|
-
label: "Model"
|
|
983
|
-
};
|
|
984
|
-
case "prompt":
|
|
985
|
-
return {
|
|
986
|
-
icon: "MessageSquareText",
|
|
987
|
-
className: styles10__default.default["badge--prompt"],
|
|
988
|
-
label: "Prompt"
|
|
989
|
-
};
|
|
990
|
-
case "system-prompt":
|
|
991
|
-
return {
|
|
992
|
-
icon: "MessageSquareCode",
|
|
993
|
-
className: styles10__default.default["badge--system-prompt"],
|
|
994
|
-
label: "System Prompt"
|
|
995
|
-
};
|
|
996
|
-
case "reasoning":
|
|
997
|
-
return {
|
|
998
|
-
icon: "MessageSquareMore",
|
|
999
|
-
className: styles10__default.default["badge--reasoning"],
|
|
1000
|
-
label: "Reasoning"
|
|
1001
|
-
};
|
|
1002
|
-
case "token":
|
|
1003
|
-
return {
|
|
1004
|
-
icon: "Coins",
|
|
1005
|
-
className: styles10__default.default["badge--token"],
|
|
1006
|
-
label: "Token"
|
|
1007
|
-
};
|
|
1008
|
-
case "tool":
|
|
1009
|
-
return {
|
|
1010
|
-
icon: "Wrench",
|
|
1011
|
-
className: styles10__default.default["badge--tool"],
|
|
1012
|
-
label: "Tool"
|
|
1013
|
-
};
|
|
1014
|
-
case "config":
|
|
1015
|
-
return {
|
|
1016
|
-
icon: "Settings2",
|
|
1017
|
-
className: styles10__default.default["badge--config"],
|
|
1018
|
-
label: "Configuration"
|
|
1019
|
-
};
|
|
1020
|
-
case "unknown":
|
|
1021
|
-
default:
|
|
1022
|
-
return {
|
|
1023
|
-
icon: "Box",
|
|
1024
|
-
className: styles10__default.default["badge--unknown"],
|
|
1025
|
-
label: "Unknown"
|
|
1026
|
-
};
|
|
1027
|
-
}
|
|
1028
|
-
};
|
|
1029
869
|
var CardContentHeader = React15.forwardRef(
|
|
1030
870
|
({ className, icon, heading, onButtonClick, ...props }, ref) => {
|
|
1031
871
|
const shouldRender = heading || onButtonClick;
|
|
@@ -1038,22 +878,22 @@ var CardContentHeader = React15.forwardRef(
|
|
|
1038
878
|
{
|
|
1039
879
|
ref,
|
|
1040
880
|
className: cn(
|
|
1041
|
-
|
|
1042
|
-
shouldWrap &&
|
|
881
|
+
styles10__default.default["card-content-header"],
|
|
882
|
+
shouldWrap && styles10__default.default["card-content-header--wrap"],
|
|
1043
883
|
className
|
|
1044
884
|
),
|
|
1045
885
|
...props,
|
|
1046
886
|
children: [
|
|
1047
887
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, background: "circle", elevation: "overlay" }),
|
|
1048
|
-
onButtonClick && /* @__PURE__ */ jsxRuntime.jsx(Button, { className:
|
|
1049
|
-
heading && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: cn(
|
|
888
|
+
onButtonClick && /* @__PURE__ */ jsxRuntime.jsx(Button, { className: styles10__default.default.button, variant: "tertiary", size: "sm", onClick: onButtonClick, children: "See All" }),
|
|
889
|
+
heading && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: cn(styles10__default.default.title, onButtonClick && styles10__default.default["title--button-click"]), children: heading })
|
|
1050
890
|
]
|
|
1051
891
|
}
|
|
1052
892
|
);
|
|
1053
893
|
}
|
|
1054
894
|
);
|
|
1055
895
|
CardContentHeader.displayName = "CardContentHeader";
|
|
1056
|
-
var cardElevationVariants = generateElevationVariants(
|
|
896
|
+
var cardElevationVariants = generateElevationVariants(styles11__default.default, "card", ELEVATION.RAISED);
|
|
1057
897
|
var Card = React15__namespace.forwardRef(({ className, hoverGradientClassName, elevation = ELEVATION.RAISED, ...props }, ref) => {
|
|
1058
898
|
const shouldHaveHoverStyle = props.onClick !== void 0;
|
|
1059
899
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1061,14 +901,14 @@ var Card = React15__namespace.forwardRef(({ className, hoverGradientClassName, e
|
|
|
1061
901
|
{
|
|
1062
902
|
ref,
|
|
1063
903
|
className: cn(
|
|
1064
|
-
|
|
1065
|
-
shouldHaveHoverStyle &&
|
|
904
|
+
styles11__default.default.card,
|
|
905
|
+
shouldHaveHoverStyle && styles11__default.default["card--hover"],
|
|
1066
906
|
cardElevationVariants({ elevation }),
|
|
1067
907
|
className
|
|
1068
908
|
),
|
|
1069
909
|
...props,
|
|
1070
910
|
children: [
|
|
1071
|
-
shouldHaveHoverStyle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
911
|
+
shouldHaveHoverStyle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles11__default.default["card-hover-gradient"], hoverGradientClassName) }),
|
|
1072
912
|
props.children
|
|
1073
913
|
]
|
|
1074
914
|
}
|
|
@@ -1076,23 +916,23 @@ var Card = React15__namespace.forwardRef(({ className, hoverGradientClassName, e
|
|
|
1076
916
|
});
|
|
1077
917
|
Card.displayName = "Card";
|
|
1078
918
|
var CardHeader = React15__namespace.forwardRef(
|
|
1079
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(
|
|
919
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles11__default.default["card-header"], className), ...props })
|
|
1080
920
|
);
|
|
1081
921
|
CardHeader.displayName = "CardHeader";
|
|
1082
922
|
var CardTitle = React15__namespace.forwardRef(
|
|
1083
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(
|
|
923
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles11__default.default["card-title"], className), ...props })
|
|
1084
924
|
);
|
|
1085
925
|
CardTitle.displayName = "CardTitle";
|
|
1086
926
|
var CardDescription = React15__namespace.forwardRef(
|
|
1087
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(
|
|
927
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles11__default.default["card-description"], className), ...props })
|
|
1088
928
|
);
|
|
1089
929
|
CardDescription.displayName = "CardDescription";
|
|
1090
930
|
var CardContent = React15__namespace.forwardRef(
|
|
1091
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(
|
|
931
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles11__default.default["card-content"], className), ...props })
|
|
1092
932
|
);
|
|
1093
933
|
CardContent.displayName = "CardContent";
|
|
1094
934
|
var CardFooter = React15__namespace.forwardRef(
|
|
1095
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(
|
|
935
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles11__default.default["card-footer"], className), ...props })
|
|
1096
936
|
);
|
|
1097
937
|
CardFooter.displayName = "CardFooter";
|
|
1098
938
|
var CheckIcon = LucideIcons.Check;
|
|
@@ -1101,23 +941,23 @@ var Checkbox = React15__namespace.forwardRef(
|
|
|
1101
941
|
CheckboxPrimitive__namespace.Root,
|
|
1102
942
|
{
|
|
1103
943
|
ref,
|
|
1104
|
-
className: cn(
|
|
944
|
+
className: cn(styles12__default.default.checkbox, styles12__default.default[size], className),
|
|
1105
945
|
...props,
|
|
1106
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(CheckboxPrimitive__namespace.Indicator, { className:
|
|
946
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(CheckboxPrimitive__namespace.Indicator, { className: styles12__default.default.indicator, children: Icon3 ? /* @__PURE__ */ jsxRuntime.jsx(Icon3, { className: styles12__default.default.check }) : /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { className: styles12__default.default.check }) })
|
|
1107
947
|
}
|
|
1108
948
|
)
|
|
1109
949
|
);
|
|
1110
950
|
Checkbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
|
|
1111
|
-
var iconButtonVariants = classVarianceAuthority.cva(
|
|
951
|
+
var iconButtonVariants = classVarianceAuthority.cva(styles13__default.default["icon-btn"], {
|
|
1112
952
|
variants: {
|
|
1113
953
|
size: {
|
|
1114
|
-
sm:
|
|
1115
|
-
md:
|
|
1116
|
-
lg:
|
|
954
|
+
sm: styles13__default.default["size--sm"],
|
|
955
|
+
md: styles13__default.default["size--md"],
|
|
956
|
+
lg: styles13__default.default["size--lg"]
|
|
1117
957
|
},
|
|
1118
958
|
variant: {
|
|
1119
|
-
primary:
|
|
1120
|
-
danger:
|
|
959
|
+
primary: styles13__default.default["icon-btn--primary"],
|
|
960
|
+
danger: styles13__default.default["icon-btn--danger"]
|
|
1121
961
|
}
|
|
1122
962
|
},
|
|
1123
963
|
defaultVariants: {
|
|
@@ -1272,34 +1112,34 @@ var CodeBlock = ({
|
|
|
1272
1112
|
const lines = code.replace(/\n$/, "").split("\n").length;
|
|
1273
1113
|
return Array.from({ length: lines }, (_, index) => index + 1).join("\n");
|
|
1274
1114
|
}, [code, lineNumbers]);
|
|
1275
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
1276
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1277
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1278
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1279
|
-
/* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "neutral", className:
|
|
1115
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles14__default.default["code-block"], styles14__default.default[variant], className), children: [
|
|
1116
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles14__default.default.header, children: [
|
|
1117
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles14__default.default["header-left"], children: [
|
|
1118
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles14__default.default.title, children: title }),
|
|
1119
|
+
/* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "neutral", className: styles14__default.default.badge, children: language })
|
|
1280
1120
|
] }),
|
|
1281
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1121
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles14__default.default["header-right"], children: /* @__PURE__ */ jsxRuntime.jsx(CopyButton, { value: copy || code, size: "sm" }) })
|
|
1282
1122
|
] }),
|
|
1283
1123
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1284
1124
|
"div",
|
|
1285
1125
|
{
|
|
1286
|
-
className:
|
|
1126
|
+
className: styles14__default.default.content,
|
|
1287
1127
|
tabIndex: 0,
|
|
1288
1128
|
role: "group",
|
|
1289
1129
|
"aria-label": title ? `${title}, code block` : "Code block",
|
|
1290
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
1291
|
-
gutter && /* @__PURE__ */ jsxRuntime.jsx("pre", { "aria-hidden": "true", className:
|
|
1292
|
-
/* @__PURE__ */ jsxRuntime.jsx("pre", { ref: preRef, className:
|
|
1130
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles14__default.default.body, { [styles14__default.default.numbered]: lineNumbers }), children: [
|
|
1131
|
+
gutter && /* @__PURE__ */ jsxRuntime.jsx("pre", { "aria-hidden": "true", className: styles14__default.default.gutter, children: gutter }),
|
|
1132
|
+
/* @__PURE__ */ jsxRuntime.jsx("pre", { ref: preRef, className: styles14__default.default.pre, ...{ [CODE_BLOCK_ATTRIBUTE]: "" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1293
1133
|
"code",
|
|
1294
1134
|
{
|
|
1295
|
-
className: cn(
|
|
1135
|
+
className: cn(styles14__default.default.code, `language-${language}`, { [styles14__default.default.wrap]: !lineNumbers }),
|
|
1296
1136
|
children: code
|
|
1297
1137
|
}
|
|
1298
1138
|
) })
|
|
1299
1139
|
] })
|
|
1300
1140
|
}
|
|
1301
1141
|
),
|
|
1302
|
-
codeLabel && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1142
|
+
codeLabel && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles14__default.default["code-label"], children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles14__default.default["code-label-text"], children: codeLabel }) })
|
|
1303
1143
|
] });
|
|
1304
1144
|
};
|
|
1305
1145
|
var Dialog = DialogPrimitive__namespace.Root;
|
|
@@ -1310,7 +1150,7 @@ var DialogOverlay = React15__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1310
1150
|
DialogPrimitive__namespace.Overlay,
|
|
1311
1151
|
{
|
|
1312
1152
|
ref,
|
|
1313
|
-
className: cn(
|
|
1153
|
+
className: cn(styles15__default.default["dialog-overlay"], className),
|
|
1314
1154
|
...props
|
|
1315
1155
|
}
|
|
1316
1156
|
));
|
|
@@ -1321,7 +1161,7 @@ var DialogContainer = React15__namespace.forwardRef(({ className, children, size
|
|
|
1321
1161
|
DialogPrimitive__namespace.Content,
|
|
1322
1162
|
{
|
|
1323
1163
|
ref,
|
|
1324
|
-
className: cn(
|
|
1164
|
+
className: cn(styles15__default.default["dialog-content"], styles15__default.default[`dialog-content--size-${size}`], className),
|
|
1325
1165
|
onCloseAutoFocus: (event) => {
|
|
1326
1166
|
event.preventDefault();
|
|
1327
1167
|
document.body.style.pointerEvents = "";
|
|
@@ -1332,7 +1172,7 @@ var DialogContainer = React15__namespace.forwardRef(({ className, children, size
|
|
|
1332
1172
|
)
|
|
1333
1173
|
] }));
|
|
1334
1174
|
DialogContainer.displayName = DialogPrimitive__namespace.Content.displayName;
|
|
1335
|
-
var DialogHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
1175
|
+
var DialogHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles15__default.default["dialog-header-icon"], className), ...props });
|
|
1336
1176
|
DialogHeaderIcon.displayName = "DialogHeaderIcon";
|
|
1337
1177
|
var DialogHeader = ({ className, children, ...props }) => {
|
|
1338
1178
|
const childrenArray = React15__namespace.Children.toArray(children);
|
|
@@ -1342,30 +1182,30 @@ var DialogHeader = ({ className, children, ...props }) => {
|
|
|
1342
1182
|
const otherChildren = childrenArray.filter(
|
|
1343
1183
|
(child) => !(React15__namespace.isValidElement(child) && child.type === DialogHeaderIcon)
|
|
1344
1184
|
);
|
|
1345
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
1185
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles15__default.default["dialog-header"], className), ...props, children: [
|
|
1346
1186
|
icon,
|
|
1347
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1187
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles15__default.default["dialog-header-content"], children: otherChildren }),
|
|
1348
1188
|
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { name: "X", label: "Close", size: "sm" }) })
|
|
1349
1189
|
] });
|
|
1350
1190
|
};
|
|
1351
1191
|
DialogHeader.displayName = "DialogHeader";
|
|
1352
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
1192
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles15__default.default["dialog-footer"], className), ...props });
|
|
1353
1193
|
DialogFooter.displayName = "DialogFooter";
|
|
1354
|
-
var DialogTitle = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn(
|
|
1194
|
+
var DialogTitle = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn(styles15__default.default["dialog-title"], className), ...props }));
|
|
1355
1195
|
DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
1356
1196
|
var DialogDescription = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1357
1197
|
DialogPrimitive__namespace.Description,
|
|
1358
1198
|
{
|
|
1359
1199
|
ref,
|
|
1360
|
-
className: cn(
|
|
1200
|
+
className: cn(styles15__default.default["dialog-description"], className),
|
|
1361
1201
|
...props
|
|
1362
1202
|
}
|
|
1363
1203
|
));
|
|
1364
1204
|
DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
1365
|
-
var DialogContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
1205
|
+
var DialogContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles15__default.default["dialog-body"], className), ...props });
|
|
1366
1206
|
DialogContent.displayName = "DialogContent";
|
|
1367
1207
|
function Command({ className, ...props }) {
|
|
1368
|
-
return /* @__PURE__ */ jsxRuntime.jsx(cmdk.Command, { "data-slot": "command", className: cn(
|
|
1208
|
+
return /* @__PURE__ */ jsxRuntime.jsx(cmdk.Command, { "data-slot": "command", className: cn(styles16__default.default.command, className), ...props });
|
|
1369
1209
|
}
|
|
1370
1210
|
function CommandDialog({
|
|
1371
1211
|
title = "Command Palette",
|
|
@@ -1374,24 +1214,24 @@ function CommandDialog({
|
|
|
1374
1214
|
...props
|
|
1375
1215
|
}) {
|
|
1376
1216
|
return /* @__PURE__ */ jsxRuntime.jsxs(Dialog, { ...props, children: [
|
|
1377
|
-
/* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { className:
|
|
1217
|
+
/* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { className: styles16__default.default["command-dialog-header"], children: [
|
|
1378
1218
|
/* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { children: title }),
|
|
1379
1219
|
/* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { children: description })
|
|
1380
1220
|
] }),
|
|
1381
|
-
/* @__PURE__ */ jsxRuntime.jsx(DialogContent, { className:
|
|
1221
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogContent, { className: styles16__default.default["command-dialog-content"], children: /* @__PURE__ */ jsxRuntime.jsx(Command, { className: styles16__default.default["command-dialog-content-inner"], children }) })
|
|
1382
1222
|
] });
|
|
1383
1223
|
}
|
|
1384
1224
|
function CommandInput({
|
|
1385
1225
|
className,
|
|
1386
1226
|
...props
|
|
1387
1227
|
}) {
|
|
1388
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "command-input-wrapper", className:
|
|
1389
|
-
/* @__PURE__ */ jsxRuntime.jsx(LucideIcons.SearchIcon, { className:
|
|
1228
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "command-input-wrapper", className: styles16__default.default["command-input"], children: [
|
|
1229
|
+
/* @__PURE__ */ jsxRuntime.jsx(LucideIcons.SearchIcon, { className: styles16__default.default["command-input-icon"] }),
|
|
1390
1230
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1391
1231
|
cmdk.Command.Input,
|
|
1392
1232
|
{
|
|
1393
1233
|
"data-slot": "command-input",
|
|
1394
|
-
className: cn(
|
|
1234
|
+
className: cn(styles16__default.default["command-input-input"], className),
|
|
1395
1235
|
...props
|
|
1396
1236
|
}
|
|
1397
1237
|
)
|
|
@@ -1402,7 +1242,7 @@ function CommandList({ className, ...props }) {
|
|
|
1402
1242
|
cmdk.Command.List,
|
|
1403
1243
|
{
|
|
1404
1244
|
"data-slot": "command-list",
|
|
1405
|
-
className: cn(
|
|
1245
|
+
className: cn(styles16__default.default["command-list"], className),
|
|
1406
1246
|
...props
|
|
1407
1247
|
}
|
|
1408
1248
|
);
|
|
@@ -1412,7 +1252,7 @@ function CommandEmpty({ ...props }) {
|
|
|
1412
1252
|
cmdk.Command.Empty,
|
|
1413
1253
|
{
|
|
1414
1254
|
"data-slot": "command-empty",
|
|
1415
|
-
className:
|
|
1255
|
+
className: styles16__default.default["command-empty"],
|
|
1416
1256
|
...props
|
|
1417
1257
|
}
|
|
1418
1258
|
);
|
|
@@ -1425,7 +1265,7 @@ function CommandGroup({
|
|
|
1425
1265
|
cmdk.Command.Group,
|
|
1426
1266
|
{
|
|
1427
1267
|
"data-slot": "command-group",
|
|
1428
|
-
className: cn(
|
|
1268
|
+
className: cn(styles16__default.default["command-group"], className),
|
|
1429
1269
|
...props
|
|
1430
1270
|
}
|
|
1431
1271
|
);
|
|
@@ -1438,7 +1278,7 @@ function CommandSeparator({
|
|
|
1438
1278
|
cmdk.Command.Separator,
|
|
1439
1279
|
{
|
|
1440
1280
|
"data-slot": "command-separator",
|
|
1441
|
-
className: cn(
|
|
1281
|
+
className: cn(styles16__default.default["command-separator"], className),
|
|
1442
1282
|
...props
|
|
1443
1283
|
}
|
|
1444
1284
|
);
|
|
@@ -1448,21 +1288,124 @@ function CommandItem({ className, ...props }) {
|
|
|
1448
1288
|
cmdk.Command.Item,
|
|
1449
1289
|
{
|
|
1450
1290
|
"data-slot": "command-item",
|
|
1451
|
-
className: cn(
|
|
1291
|
+
className: cn(styles16__default.default["command-item"], className),
|
|
1452
1292
|
...props
|
|
1453
1293
|
}
|
|
1454
1294
|
);
|
|
1455
1295
|
}
|
|
1456
1296
|
function CommandShortcut({ className, ...props }) {
|
|
1457
1297
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1458
|
-
"span",
|
|
1298
|
+
"span",
|
|
1299
|
+
{
|
|
1300
|
+
"data-slot": "command-shortcut",
|
|
1301
|
+
className: cn(styles16__default.default["command-shortcut"], className),
|
|
1302
|
+
...props
|
|
1303
|
+
}
|
|
1304
|
+
);
|
|
1305
|
+
}
|
|
1306
|
+
var ControlStatusBadge = ({ status, display = "both" }) => {
|
|
1307
|
+
const config = getStatusConfig(status);
|
|
1308
|
+
if (config.subLabel) {
|
|
1309
|
+
if (display === "icon-only") {
|
|
1310
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display: "icon-only", className: config.className, variant: null, children: config.label });
|
|
1311
|
+
}
|
|
1312
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles17__default.default["split-badge"], config.className), children: [
|
|
1313
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles17__default.default["split-badge__status"], children: [
|
|
1314
|
+
display !== "text-only" && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: config.icon, size: "xs", className: styles17__default.default["icon"] }),
|
|
1315
|
+
config.label
|
|
1316
|
+
] }),
|
|
1317
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles17__default.default["split-badge__sub-status"], children: config.subLabel })
|
|
1318
|
+
] });
|
|
1319
|
+
}
|
|
1320
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display, className: config.className, variant: null, children: config.label });
|
|
1321
|
+
};
|
|
1322
|
+
var getStatusConfig = (status) => {
|
|
1323
|
+
switch (status) {
|
|
1324
|
+
case "in-progress":
|
|
1325
|
+
return {
|
|
1326
|
+
icon: "Clock",
|
|
1327
|
+
className: styles17__default.default["badge--in-progress"],
|
|
1328
|
+
label: "In Progress"
|
|
1329
|
+
};
|
|
1330
|
+
case "not-started":
|
|
1331
|
+
return {
|
|
1332
|
+
icon: "CircleDashed",
|
|
1333
|
+
className: styles17__default.default["badge--not-started"],
|
|
1334
|
+
label: "Not Started"
|
|
1335
|
+
};
|
|
1336
|
+
case "ready-for-review":
|
|
1337
|
+
return {
|
|
1338
|
+
icon: "ClipboardCheck",
|
|
1339
|
+
className: styles17__default.default["badge--ready-for-review"],
|
|
1340
|
+
label: "Ready for Review"
|
|
1341
|
+
};
|
|
1342
|
+
case "in-review":
|
|
1343
|
+
return {
|
|
1344
|
+
icon: "Eye",
|
|
1345
|
+
className: styles17__default.default["badge--in-review"],
|
|
1346
|
+
label: "In Review"
|
|
1347
|
+
};
|
|
1348
|
+
case "comment":
|
|
1349
|
+
return {
|
|
1350
|
+
icon: "Eye",
|
|
1351
|
+
className: styles17__default.default["badge--comment"],
|
|
1352
|
+
label: "In Review",
|
|
1353
|
+
subLabel: "General"
|
|
1354
|
+
};
|
|
1355
|
+
case "not-applicable":
|
|
1356
|
+
return {
|
|
1357
|
+
icon: "MinusCircle",
|
|
1358
|
+
className: styles17__default.default["badge--not-applicable"],
|
|
1359
|
+
label: "Not Applicable"
|
|
1360
|
+
};
|
|
1361
|
+
case "accepted":
|
|
1362
|
+
return {
|
|
1363
|
+
icon: "Eye",
|
|
1364
|
+
className: styles17__default.default["badge--accepted"],
|
|
1365
|
+
label: "In Review",
|
|
1366
|
+
subLabel: "Accepted"
|
|
1367
|
+
};
|
|
1368
|
+
case "questioned":
|
|
1369
|
+
return {
|
|
1370
|
+
icon: "Eye",
|
|
1371
|
+
className: styles17__default.default["badge--question"],
|
|
1372
|
+
label: "In Review",
|
|
1373
|
+
subLabel: "Questioned"
|
|
1374
|
+
};
|
|
1375
|
+
case "compliant":
|
|
1376
|
+
return {
|
|
1377
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(CircleCheckFillIcon, {}),
|
|
1378
|
+
className: styles17__default.default["badge--compliant"],
|
|
1379
|
+
label: "Compliant"
|
|
1380
|
+
};
|
|
1381
|
+
case "non-compliant":
|
|
1382
|
+
return {
|
|
1383
|
+
icon: "X",
|
|
1384
|
+
className: styles17__default.default["badge--non-compliant"],
|
|
1385
|
+
label: "Non-compliant"
|
|
1386
|
+
};
|
|
1387
|
+
default:
|
|
1388
|
+
return {
|
|
1389
|
+
icon: "CircleDashed",
|
|
1390
|
+
className: styles17__default.default["badge--not-started"],
|
|
1391
|
+
label: status
|
|
1392
|
+
};
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
1395
|
+
var CircleCheckFillIcon = ({ className }) => {
|
|
1396
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1397
|
+
"svg",
|
|
1459
1398
|
{
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1399
|
+
className,
|
|
1400
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1401
|
+
width: "12",
|
|
1402
|
+
height: "12",
|
|
1403
|
+
viewBox: "0 0 24 24",
|
|
1404
|
+
fill: "currentColor",
|
|
1405
|
+
children: /* @__PURE__ */ jsxRuntime.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" })
|
|
1463
1406
|
}
|
|
1464
1407
|
);
|
|
1465
|
-
}
|
|
1408
|
+
};
|
|
1466
1409
|
var Popover = PopoverPrimitive__namespace.Root;
|
|
1467
1410
|
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
1468
1411
|
var PopoverPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { container: usePortalContainer(), children });
|
|
@@ -1852,6 +1795,12 @@ function useListSearchState(open) {
|
|
|
1852
1795
|
const [visible, setVisible] = React15__namespace.useState(false);
|
|
1853
1796
|
const [query, setQuery] = React15__namespace.useState("");
|
|
1854
1797
|
const [listId, setListId] = React15__namespace.useState(void 0);
|
|
1798
|
+
const [lockedSide, setLockedSide] = React15__namespace.useState(void 0);
|
|
1799
|
+
const interactedRef = React15__namespace.useRef(false);
|
|
1800
|
+
const markInteracted = React15__namespace.useCallback(() => {
|
|
1801
|
+
interactedRef.current = true;
|
|
1802
|
+
}, []);
|
|
1803
|
+
const interactedSinceOpen = React15__namespace.useCallback(() => interactedRef.current, []);
|
|
1855
1804
|
const [focusSignal, setFocusSignal] = React15__namespace.useState(0);
|
|
1856
1805
|
const requestFocus = React15__namespace.useCallback(() => setFocusSignal((n) => n + 1), []);
|
|
1857
1806
|
const { registerItem, unregisterItem, matchCount } = useMatchRegistry();
|
|
@@ -1859,15 +1808,23 @@ function useListSearchState(open) {
|
|
|
1859
1808
|
setVisible(true);
|
|
1860
1809
|
setQuery(seed);
|
|
1861
1810
|
}, []);
|
|
1862
|
-
const
|
|
1811
|
+
const resetStateForOpen = React15__namespace.useCallback(() => {
|
|
1863
1812
|
setVisible(false);
|
|
1864
1813
|
setQuery("");
|
|
1814
|
+
setLockedSide(void 0);
|
|
1865
1815
|
}, []);
|
|
1816
|
+
const resetForOpen = React15__namespace.useCallback(() => {
|
|
1817
|
+
resetStateForOpen();
|
|
1818
|
+
interactedRef.current = false;
|
|
1819
|
+
}, [resetStateForOpen]);
|
|
1866
1820
|
const [previousOpen, setPreviousOpen] = React15__namespace.useState(open);
|
|
1867
1821
|
if (open !== previousOpen) {
|
|
1868
1822
|
setPreviousOpen(open);
|
|
1869
|
-
if (open)
|
|
1823
|
+
if (open) resetStateForOpen();
|
|
1870
1824
|
}
|
|
1825
|
+
React15__namespace.useEffect(() => {
|
|
1826
|
+
if (open) interactedRef.current = false;
|
|
1827
|
+
}, [open]);
|
|
1871
1828
|
return React15__namespace.useMemo(
|
|
1872
1829
|
() => ({
|
|
1873
1830
|
enabled,
|
|
@@ -1883,7 +1840,11 @@ function useListSearchState(open) {
|
|
|
1883
1840
|
matchCount,
|
|
1884
1841
|
resetForOpen,
|
|
1885
1842
|
listId,
|
|
1886
|
-
setListId
|
|
1843
|
+
setListId,
|
|
1844
|
+
lockedSide,
|
|
1845
|
+
lockSide: setLockedSide,
|
|
1846
|
+
markInteracted,
|
|
1847
|
+
interactedSinceOpen
|
|
1887
1848
|
}),
|
|
1888
1849
|
[
|
|
1889
1850
|
enabled,
|
|
@@ -1896,10 +1857,28 @@ function useListSearchState(open) {
|
|
|
1896
1857
|
unregisterItem,
|
|
1897
1858
|
matchCount,
|
|
1898
1859
|
resetForOpen,
|
|
1899
|
-
listId
|
|
1860
|
+
listId,
|
|
1861
|
+
lockedSide,
|
|
1862
|
+
markInteracted,
|
|
1863
|
+
interactedSinceOpen
|
|
1900
1864
|
]
|
|
1901
1865
|
);
|
|
1902
1866
|
}
|
|
1867
|
+
function useSearchSideLock(state, contentRef, {
|
|
1868
|
+
side,
|
|
1869
|
+
avoidCollisions,
|
|
1870
|
+
enabled = true
|
|
1871
|
+
}) {
|
|
1872
|
+
const searching = isSearchActive(state);
|
|
1873
|
+
const lockedSide = state?.lockedSide;
|
|
1874
|
+
const lockSide = state?.lockSide;
|
|
1875
|
+
React15__namespace.useEffect(() => {
|
|
1876
|
+
if (!enabled || !searching || lockedSide) return;
|
|
1877
|
+
const placed = contentRef.current?.dataset.side;
|
|
1878
|
+
if (placed) lockSide?.(placed);
|
|
1879
|
+
}, [enabled, searching, lockedSide, lockSide, contentRef]);
|
|
1880
|
+
return lockedSide && enabled ? { side: lockedSide, avoidCollisions: false } : { side, avoidCollisions };
|
|
1881
|
+
}
|
|
1903
1882
|
var isSearchActive = (state) => !!state && state.query.trim().length > 0;
|
|
1904
1883
|
var isSearchEmpty = (state) => isSearchActive(state) && state.matchCount === 0;
|
|
1905
1884
|
var formatResultCount = (count2) => `${count2} result${count2 === 1 ? "" : "s"} available`;
|
|
@@ -1925,11 +1904,11 @@ function useRegisterMatch(registry, enabled, id, matches) {
|
|
|
1925
1904
|
return () => unregisterItem(id);
|
|
1926
1905
|
}, [enabled, registerItem, unregisterItem, id, matches]);
|
|
1927
1906
|
}
|
|
1928
|
-
function useFilterableItem(state, textValue, children, group) {
|
|
1907
|
+
function useFilterableItem(state, textValue, children, { group, persistent = false } = {}) {
|
|
1929
1908
|
const id = React15__namespace.useId();
|
|
1930
|
-
const matches = matchesQuery(state?.query ?? "", textValue, children);
|
|
1909
|
+
const matches = persistent || matchesQuery(state?.query ?? "", textValue, children);
|
|
1931
1910
|
const enabled = state?.enabled ?? false;
|
|
1932
|
-
useRegisterMatch(state, enabled, id, matches);
|
|
1911
|
+
useRegisterMatch(state, enabled && !persistent, id, matches);
|
|
1933
1912
|
useRegisterMatch(group, enabled, id, matches);
|
|
1934
1913
|
return matches;
|
|
1935
1914
|
}
|
|
@@ -1956,6 +1935,46 @@ function useSearchInput(state, alwaysVisible, forwardedRef) {
|
|
|
1956
1935
|
}, [alwaysVisible, visible, reveal]);
|
|
1957
1936
|
return { ref, isRendered: alwaysVisible || visible };
|
|
1958
1937
|
}
|
|
1938
|
+
function useSearchQuery(state) {
|
|
1939
|
+
const { query } = state;
|
|
1940
|
+
const isSearching = isSearchActive(state);
|
|
1941
|
+
return React15__namespace.useMemo(
|
|
1942
|
+
() => ({
|
|
1943
|
+
query,
|
|
1944
|
+
isSearching,
|
|
1945
|
+
matches: (textValue) => matchesQuery(query, textValue, null)
|
|
1946
|
+
}),
|
|
1947
|
+
[query, isSearching]
|
|
1948
|
+
);
|
|
1949
|
+
}
|
|
1950
|
+
function handleListKeyDown(state, event, { searchSelector, itemSelector }) {
|
|
1951
|
+
if (!state?.enabled) return;
|
|
1952
|
+
const target = event.target;
|
|
1953
|
+
if (target?.closest(searchSelector)) return;
|
|
1954
|
+
if (event.key === "ArrowUp" && state.visible) {
|
|
1955
|
+
const firstItem = event.currentTarget.querySelector(itemSelector);
|
|
1956
|
+
if (firstItem && firstItem === target?.closest(itemSelector)) {
|
|
1957
|
+
event.preventDefault();
|
|
1958
|
+
state.requestFocus();
|
|
1959
|
+
return;
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
if (event.defaultPrevented) return;
|
|
1963
|
+
if (event.key === "Backspace" && state.visible && state.query) {
|
|
1964
|
+
event.preventDefault();
|
|
1965
|
+
state.setQuery(state.query.slice(0, -1));
|
|
1966
|
+
state.requestFocus();
|
|
1967
|
+
return;
|
|
1968
|
+
}
|
|
1969
|
+
if (!isPrintableKey(event)) return;
|
|
1970
|
+
event.preventDefault();
|
|
1971
|
+
if (!state.visible) {
|
|
1972
|
+
state.reveal(event.key);
|
|
1973
|
+
} else {
|
|
1974
|
+
state.setQuery(state.query + event.key);
|
|
1975
|
+
state.requestFocus();
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1959
1978
|
var isPrintableKey = (event) => event.key.length === 1 && !event.metaKey && !event.ctrlKey && !event.altKey && /\S/.test(event.key);
|
|
1960
1979
|
function assignRefs(node, ...refs) {
|
|
1961
1980
|
refs.forEach((ref) => {
|
|
@@ -1970,6 +1989,13 @@ var SearchIcon2 = LucideIcons.Search;
|
|
|
1970
1989
|
var DropdownMenuSearchContext = React15__namespace.createContext(null);
|
|
1971
1990
|
var useDropdownMenuSearch = () => React15__namespace.useContext(DropdownMenuSearchContext);
|
|
1972
1991
|
var useIsSearching = () => isSearchActive(useDropdownMenuSearch());
|
|
1992
|
+
var useDropdownMenuSearchQuery = () => {
|
|
1993
|
+
const ctx = useDropdownMenuSearch();
|
|
1994
|
+
if (!ctx) {
|
|
1995
|
+
throw new Error("useDropdownMenuSearchQuery must be used within a DropdownMenu");
|
|
1996
|
+
}
|
|
1997
|
+
return useSearchQuery(ctx);
|
|
1998
|
+
};
|
|
1973
1999
|
var DropdownMenuBreadcrumbContext = React15__namespace.createContext([]);
|
|
1974
2000
|
var useBreadcrumbAncestry = () => React15__namespace.useContext(DropdownMenuBreadcrumbContext);
|
|
1975
2001
|
var SUB_CONTENT_NAME = "DropdownMenuSubContent";
|
|
@@ -2066,80 +2092,81 @@ var DropdownMenuSub = ({
|
|
|
2066
2092
|
}
|
|
2067
2093
|
return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Sub, { ...props, children });
|
|
2068
2094
|
};
|
|
2069
|
-
var
|
|
2070
|
-
var
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
if (openFocusHandledRef.current) return;
|
|
2096
|
-
openFocusHandledRef.current = true;
|
|
2097
|
-
if (event.target !== event.currentTarget || !ctx?.enabled || !ctx.visible) return;
|
|
2098
|
-
ctx.requestFocus();
|
|
2099
|
-
},
|
|
2100
|
-
onKeyDown: (event) => {
|
|
2101
|
-
onKeyDown?.(event);
|
|
2102
|
-
if (!ctx?.enabled) return;
|
|
2103
|
-
if (event.key === "ArrowUp" && ctx.visible) {
|
|
2104
|
-
const itemTarget = event.target?.closest(
|
|
2105
|
-
MENU_ITEM_SELECTOR
|
|
2106
|
-
);
|
|
2107
|
-
const items = Array.from(
|
|
2108
|
-
event.currentTarget.querySelectorAll(MENU_ITEM_SELECTOR)
|
|
2109
|
-
);
|
|
2110
|
-
if (itemTarget && items[0] === itemTarget) {
|
|
2111
|
-
event.preventDefault();
|
|
2112
|
-
ctx.requestFocus();
|
|
2113
|
-
return;
|
|
2114
|
-
}
|
|
2115
|
-
}
|
|
2116
|
-
if (event.defaultPrevented) return;
|
|
2117
|
-
if (!isPrintableKey(event)) return;
|
|
2118
|
-
const target = event.target;
|
|
2119
|
-
if (target?.closest?.("[data-dropdown-search]")) return;
|
|
2120
|
-
event.preventDefault();
|
|
2121
|
-
if (!ctx.visible) {
|
|
2122
|
-
ctx.reveal(event.key);
|
|
2123
|
-
} else {
|
|
2124
|
-
ctx.setQuery(ctx.query + event.key);
|
|
2125
|
-
ctx.requestFocus();
|
|
2126
|
-
}
|
|
2095
|
+
var SEARCH_INPUT_SELECTOR = "[data-dropdown-search]";
|
|
2096
|
+
var MENU_ITEM_SELECTOR = ':is([role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]):not([data-disabled])';
|
|
2097
|
+
var MATCHING_ITEM_SELECTOR = `${MENU_ITEM_SELECTOR}:not([data-persistent])`;
|
|
2098
|
+
var DropdownMenuContent = React15__namespace.forwardRef(
|
|
2099
|
+
({
|
|
2100
|
+
className,
|
|
2101
|
+
children,
|
|
2102
|
+
sideOffset = 4,
|
|
2103
|
+
onKeyDown,
|
|
2104
|
+
onKeyDownCapture,
|
|
2105
|
+
onPointerMoveCapture,
|
|
2106
|
+
onFocus,
|
|
2107
|
+
side,
|
|
2108
|
+
avoidCollisions,
|
|
2109
|
+
...props
|
|
2110
|
+
}, ref) => {
|
|
2111
|
+
const ctx = useDropdownMenuSearch();
|
|
2112
|
+
const setListId = ctx?.setListId;
|
|
2113
|
+
const searching = isSearchActive(ctx);
|
|
2114
|
+
const resultCount = ctx?.matchCount ?? 0;
|
|
2115
|
+
const contentRef = React15__namespace.useRef(null);
|
|
2116
|
+
const sideProps = useSearchSideLock(ctx, contentRef, { side, avoidCollisions });
|
|
2117
|
+
const composedContentRef = React15__namespace.useCallback(
|
|
2118
|
+
(node) => {
|
|
2119
|
+
assignRefs(node, ref, contentRef);
|
|
2120
|
+
setListId?.(node?.id || void 0);
|
|
2127
2121
|
},
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
}
|
|
2122
|
+
[ref, setListId]
|
|
2123
|
+
);
|
|
2124
|
+
const handleFocus = (event) => {
|
|
2125
|
+
onFocus?.(event);
|
|
2126
|
+
if (!ctx?.enabled || !ctx.visible || ctx.interactedSinceOpen()) return;
|
|
2127
|
+
if (event.target !== event.currentTarget) return;
|
|
2128
|
+
ctx.requestFocus();
|
|
2129
|
+
};
|
|
2130
|
+
const handleKeyDown = (event) => {
|
|
2131
|
+
onKeyDown?.(event);
|
|
2132
|
+
handleListKeyDown(ctx, event, {
|
|
2133
|
+
searchSelector: SEARCH_INPUT_SELECTOR,
|
|
2134
|
+
itemSelector: MENU_ITEM_SELECTOR
|
|
2135
|
+
});
|
|
2136
|
+
};
|
|
2137
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPortal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2138
|
+
DropdownMenuPrimitive__namespace.Content,
|
|
2139
|
+
{
|
|
2140
|
+
ref: composedContentRef,
|
|
2141
|
+
className: cn(styles22__default.default["dropdown-menu-content"], className),
|
|
2142
|
+
sideOffset,
|
|
2143
|
+
...sideProps,
|
|
2144
|
+
onFocus: handleFocus,
|
|
2145
|
+
onKeyDown: handleKeyDown,
|
|
2146
|
+
onKeyDownCapture: (event) => {
|
|
2147
|
+
onKeyDownCapture?.(event);
|
|
2148
|
+
ctx?.markInteracted();
|
|
2149
|
+
},
|
|
2150
|
+
onPointerMoveCapture: (event) => {
|
|
2151
|
+
onPointerMoveCapture?.(event);
|
|
2152
|
+
ctx?.markInteracted();
|
|
2153
|
+
},
|
|
2154
|
+
...props,
|
|
2155
|
+
children: [
|
|
2156
|
+
ctx?.enabled ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles22__default.default["dropdown-menu-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
|
|
2157
|
+
children
|
|
2158
|
+
]
|
|
2159
|
+
}
|
|
2160
|
+
) });
|
|
2161
|
+
}
|
|
2162
|
+
);
|
|
2136
2163
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
2137
2164
|
var DropdownMenuSearch = React15__namespace.forwardRef(
|
|
2138
2165
|
({
|
|
2139
2166
|
className,
|
|
2140
2167
|
placeholder = "Search...",
|
|
2141
2168
|
icon,
|
|
2142
|
-
alwaysVisible =
|
|
2169
|
+
alwaysVisible = true,
|
|
2143
2170
|
onKeyDown,
|
|
2144
2171
|
"aria-label": ariaLabel,
|
|
2145
2172
|
...props
|
|
@@ -2174,8 +2201,11 @@ var DropdownMenuSearch = React15__namespace.forwardRef(
|
|
|
2174
2201
|
const items = menu ? Array.from(menu.querySelectorAll(MENU_ITEM_SELECTOR)) : [];
|
|
2175
2202
|
if (!items.length || event.defaultPrevented) return;
|
|
2176
2203
|
event.preventDefault();
|
|
2177
|
-
if (event.key === "Enter")
|
|
2178
|
-
|
|
2204
|
+
if (event.key === "Enter") {
|
|
2205
|
+
menu?.querySelector(MATCHING_ITEM_SELECTOR)?.click();
|
|
2206
|
+
} else {
|
|
2207
|
+
(event.key === "ArrowUp" ? items[items.length - 1] : items[0]).focus();
|
|
2208
|
+
}
|
|
2179
2209
|
return;
|
|
2180
2210
|
}
|
|
2181
2211
|
if (["Escape", "Tab"].includes(event.key)) return;
|
|
@@ -2215,8 +2245,8 @@ var ItemBreadcrumb = () => {
|
|
|
2215
2245
|
/* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon2, {})
|
|
2216
2246
|
] }, index)) });
|
|
2217
2247
|
};
|
|
2218
|
-
var DropdownMenuItem = React15__namespace.forwardRef(({ className, inset, variant = "neutral", textValue, children, ...props }, ref) => {
|
|
2219
|
-
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children);
|
|
2248
|
+
var DropdownMenuItem = React15__namespace.forwardRef(({ className, inset, variant = "neutral", textValue, persistent, children, ...props }, ref) => {
|
|
2249
|
+
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children, { persistent });
|
|
2220
2250
|
if (!visible) return null;
|
|
2221
2251
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2222
2252
|
DropdownMenuPrimitive__namespace.Item,
|
|
@@ -2231,6 +2261,7 @@ var DropdownMenuItem = React15__namespace.forwardRef(({ className, inset, varian
|
|
|
2231
2261
|
className
|
|
2232
2262
|
),
|
|
2233
2263
|
...props,
|
|
2264
|
+
"data-persistent": persistent ? "" : void 0,
|
|
2234
2265
|
children: [
|
|
2235
2266
|
/* @__PURE__ */ jsxRuntime.jsx(ItemBreadcrumb, {}),
|
|
2236
2267
|
children
|
|
@@ -2239,8 +2270,8 @@ var DropdownMenuItem = React15__namespace.forwardRef(({ className, inset, varian
|
|
|
2239
2270
|
);
|
|
2240
2271
|
});
|
|
2241
2272
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
2242
|
-
var DropdownMenuCheckboxItem = React15__namespace.forwardRef(({ className, children, checked, textValue, ...props }, ref) => {
|
|
2243
|
-
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children);
|
|
2273
|
+
var DropdownMenuCheckboxItem = React15__namespace.forwardRef(({ className, children, checked, textValue, persistent, ...props }, ref) => {
|
|
2274
|
+
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children, { persistent });
|
|
2244
2275
|
if (!visible) return null;
|
|
2245
2276
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2246
2277
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
@@ -2250,6 +2281,7 @@ var DropdownMenuCheckboxItem = React15__namespace.forwardRef(({ className, child
|
|
|
2250
2281
|
className: cn(styles22__default.default["dropdown-menu-checkbox-item"], className),
|
|
2251
2282
|
checked,
|
|
2252
2283
|
...props,
|
|
2284
|
+
"data-persistent": persistent ? "" : void 0,
|
|
2253
2285
|
children: [
|
|
2254
2286
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles22__default.default["dropdown-menu-item-indicator-checkbox"], children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon2, { className: styles22__default.default["icon-size"] }) }) }),
|
|
2255
2287
|
/* @__PURE__ */ jsxRuntime.jsx(ItemBreadcrumb, {}),
|
|
@@ -2259,8 +2291,8 @@ var DropdownMenuCheckboxItem = React15__namespace.forwardRef(({ className, child
|
|
|
2259
2291
|
);
|
|
2260
2292
|
});
|
|
2261
2293
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
2262
|
-
var DropdownMenuRadioItem = React15__namespace.forwardRef(({ className, children, textValue, ...props }, ref) => {
|
|
2263
|
-
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children);
|
|
2294
|
+
var DropdownMenuRadioItem = React15__namespace.forwardRef(({ className, children, textValue, persistent, ...props }, ref) => {
|
|
2295
|
+
const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children, { persistent });
|
|
2264
2296
|
if (!visible) return null;
|
|
2265
2297
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2266
2298
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
@@ -2269,6 +2301,7 @@ var DropdownMenuRadioItem = React15__namespace.forwardRef(({ className, children
|
|
|
2269
2301
|
textValue,
|
|
2270
2302
|
className: cn(styles22__default.default["dropdown-menu-radio-item"], className),
|
|
2271
2303
|
...props,
|
|
2304
|
+
"data-persistent": persistent ? "" : void 0,
|
|
2272
2305
|
children: [
|
|
2273
2306
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles22__default.default["dropdown-menu-item-indicator-radio"], children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CircleIcon, { className: styles22__default.default["radio-icon"] }) }) }),
|
|
2274
2307
|
/* @__PURE__ */ jsxRuntime.jsx(ItemBreadcrumb, {}),
|
|
@@ -2295,9 +2328,9 @@ var DropdownMenuLabel = React15__namespace.forwardRef(({ className, inset, ...pr
|
|
|
2295
2328
|
);
|
|
2296
2329
|
});
|
|
2297
2330
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
2298
|
-
var DropdownMenuSeparator = React15__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
2331
|
+
var DropdownMenuSeparator = React15__namespace.forwardRef(({ className, persistent, ...props }, ref) => {
|
|
2299
2332
|
const searching = useIsSearching();
|
|
2300
|
-
if (searching) return null;
|
|
2333
|
+
if (searching && !persistent) return null;
|
|
2301
2334
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2302
2335
|
DropdownMenuPrimitive__namespace.Separator,
|
|
2303
2336
|
{
|
|
@@ -2356,8 +2389,8 @@ var FilterDropdown = ({
|
|
|
2356
2389
|
onClearAll();
|
|
2357
2390
|
};
|
|
2358
2391
|
const clearAll = (className) => (
|
|
2359
|
-
//
|
|
2360
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuItem, { textValue: "", onSelect: handleClearAll, className, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: buttonVariants({ variant: "link", size: "sm" }), children: "Clear all" }) })
|
|
2392
|
+
// Keep textValue empty: without search, typeahead would otherwise land a typed "c" on Clear all
|
|
2393
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuItem, { persistent: true, textValue: "", onSelect: handleClearAll, className, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: buttonVariants({ variant: "link", size: "sm" }), children: "Clear all" }) })
|
|
2361
2394
|
);
|
|
2362
2395
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
2363
2396
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -2382,7 +2415,7 @@ var FilterDropdown = ({
|
|
|
2382
2415
|
className: cn(styles24__default.default["dropdown-menu-content"], contentClassName),
|
|
2383
2416
|
children: [
|
|
2384
2417
|
searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2385
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, {
|
|
2418
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, { placeholder: searchPlaceholder, "aria-label": label }),
|
|
2386
2419
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
|
|
2387
2420
|
] }),
|
|
2388
2421
|
!searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -2406,7 +2439,7 @@ var FilterDropdown = ({
|
|
|
2406
2439
|
);
|
|
2407
2440
|
}),
|
|
2408
2441
|
searchable && hasSelectedFilters && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles24__default.default["clear-all-footer"], children: [
|
|
2409
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {}),
|
|
2442
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, { persistent: true }),
|
|
2410
2443
|
clearAll(styles24__default.default["clear-all"])
|
|
2411
2444
|
] })
|
|
2412
2445
|
]
|
|
@@ -2496,9 +2529,172 @@ var FormMessage = React15__namespace.forwardRef(({ className, children, ...props
|
|
|
2496
2529
|
if (!body) {
|
|
2497
2530
|
return null;
|
|
2498
2531
|
}
|
|
2499
|
-
return /* @__PURE__ */ jsxRuntime.jsx("p", { ref, id: formMessageId, className: cn(styles26__default.default["form-message"], className), ...props, children: body });
|
|
2500
|
-
});
|
|
2501
|
-
FormMessage.displayName = "FormMessage";
|
|
2532
|
+
return /* @__PURE__ */ jsxRuntime.jsx("p", { ref, id: formMessageId, className: cn(styles26__default.default["form-message"], className), ...props, children: body });
|
|
2533
|
+
});
|
|
2534
|
+
FormMessage.displayName = "FormMessage";
|
|
2535
|
+
var DEFAULT_LOCALE = "en-US";
|
|
2536
|
+
var DEFAULT_ABSOLUTE_OPTIONS = {
|
|
2537
|
+
year: "numeric",
|
|
2538
|
+
month: "short",
|
|
2539
|
+
day: "2-digit",
|
|
2540
|
+
hour: "2-digit",
|
|
2541
|
+
minute: "2-digit",
|
|
2542
|
+
second: "2-digit",
|
|
2543
|
+
hour12: false,
|
|
2544
|
+
timeZoneName: "short"
|
|
2545
|
+
};
|
|
2546
|
+
var RELATIVE_DIVISIONS = [
|
|
2547
|
+
{ amount: 60, unit: "second" },
|
|
2548
|
+
{ amount: 60, unit: "minute" },
|
|
2549
|
+
{ amount: 24, unit: "hour" },
|
|
2550
|
+
{ amount: 7, unit: "day" },
|
|
2551
|
+
{ amount: 4.34524, unit: "week" },
|
|
2552
|
+
{ amount: 12, unit: "month" },
|
|
2553
|
+
{ amount: Number.POSITIVE_INFINITY, unit: "year" }
|
|
2554
|
+
];
|
|
2555
|
+
var LIVE_INTERVAL_MS = 3e4;
|
|
2556
|
+
var MINUTE_MS = 6e4;
|
|
2557
|
+
var HOUR_MS = 60 * MINUTE_MS;
|
|
2558
|
+
var DAY_MS = 24 * HOUR_MS;
|
|
2559
|
+
var YEAR_MS = 365.25 * DAY_MS;
|
|
2560
|
+
var MONTH_MS = YEAR_MS / 12;
|
|
2561
|
+
var JUST_NOW_MS = 45e3;
|
|
2562
|
+
var COARSE_AFTER_MS = 90 * DAY_MS;
|
|
2563
|
+
var FINE_UNITS = [
|
|
2564
|
+
{ ms: DAY_MS, unit: "day" },
|
|
2565
|
+
{ ms: HOUR_MS, unit: "hour" },
|
|
2566
|
+
{ ms: MINUTE_MS, unit: "minute" }
|
|
2567
|
+
];
|
|
2568
|
+
var COARSE_UNITS = [
|
|
2569
|
+
{ ms: YEAR_MS, unit: "year" },
|
|
2570
|
+
{ ms: MONTH_MS, unit: "month" }
|
|
2571
|
+
];
|
|
2572
|
+
var NO_DATE_PLACEHOLDER = "---";
|
|
2573
|
+
function isMissing(value) {
|
|
2574
|
+
return value == null || typeof value === "string" && value.trim() === "";
|
|
2575
|
+
}
|
|
2576
|
+
function toDate(value) {
|
|
2577
|
+
const date = value instanceof Date ? value : new Date(value);
|
|
2578
|
+
return Number.isNaN(date.getTime()) ? null : date;
|
|
2579
|
+
}
|
|
2580
|
+
function formatAbsolute(date, timeZone, options, locale) {
|
|
2581
|
+
return new Intl.DateTimeFormat(locale, { ...options, timeZone }).format(date);
|
|
2582
|
+
}
|
|
2583
|
+
function formatRelative(date, now, locale) {
|
|
2584
|
+
if (Math.abs(date.getTime() - now.getTime()) < JUST_NOW_MS) return "Just now";
|
|
2585
|
+
let duration = (date.getTime() - now.getTime()) / 1e3;
|
|
2586
|
+
const rtf = new Intl.RelativeTimeFormat(locale, { numeric: "auto" });
|
|
2587
|
+
for (const division of RELATIVE_DIVISIONS) {
|
|
2588
|
+
if (Math.abs(duration) < division.amount) {
|
|
2589
|
+
return rtf.format(Math.round(duration), division.unit);
|
|
2590
|
+
}
|
|
2591
|
+
duration /= division.amount;
|
|
2592
|
+
}
|
|
2593
|
+
return "Just now";
|
|
2594
|
+
}
|
|
2595
|
+
function measureSpan(spanMs) {
|
|
2596
|
+
const units = spanMs < COARSE_AFTER_MS ? FINE_UNITS : COARSE_UNITS;
|
|
2597
|
+
const index = units.findIndex(({ ms: ms2 }) => spanMs >= ms2);
|
|
2598
|
+
if (index === -1) return { value: 1, unit: units[units.length - 1].unit };
|
|
2599
|
+
const { ms, unit } = units[index];
|
|
2600
|
+
const value = Math.round(spanMs / ms);
|
|
2601
|
+
const next = units[index - 1];
|
|
2602
|
+
if (next && value * ms >= next.ms) {
|
|
2603
|
+
return { value: Math.round(spanMs / next.ms), unit: next.unit };
|
|
2604
|
+
}
|
|
2605
|
+
return { value, unit };
|
|
2606
|
+
}
|
|
2607
|
+
function formatCountdown(date, now, locale) {
|
|
2608
|
+
const spanMs = date.getTime() - now.getTime();
|
|
2609
|
+
if (spanMs <= 0) return null;
|
|
2610
|
+
const { value, unit } = measureSpan(spanMs);
|
|
2611
|
+
return new Intl.NumberFormat(locale, { style: "unit", unit, unitDisplay: "long" }).format(value);
|
|
2612
|
+
}
|
|
2613
|
+
function DatePlaceholder({
|
|
2614
|
+
label,
|
|
2615
|
+
className,
|
|
2616
|
+
...props
|
|
2617
|
+
}) {
|
|
2618
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: cn(styles27__default.default["format-date"], className), ...props, children: [
|
|
2619
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles27__default.default["visually-hidden"], children: label }),
|
|
2620
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: NO_DATE_PLACEHOLDER })
|
|
2621
|
+
] });
|
|
2622
|
+
}
|
|
2623
|
+
function FormatDate({
|
|
2624
|
+
date,
|
|
2625
|
+
displayAs = "absolute",
|
|
2626
|
+
timeZone = "UTC",
|
|
2627
|
+
locale = DEFAULT_LOCALE,
|
|
2628
|
+
tooltip = true,
|
|
2629
|
+
live = true,
|
|
2630
|
+
absoluteOptions,
|
|
2631
|
+
className,
|
|
2632
|
+
...props
|
|
2633
|
+
}) {
|
|
2634
|
+
const missing = isMissing(date);
|
|
2635
|
+
const parsed = React15__namespace.useMemo(() => isMissing(date) ? null : toDate(date), [date]);
|
|
2636
|
+
const [now, setNow] = React15__namespace.useState(() => /* @__PURE__ */ new Date());
|
|
2637
|
+
const [mounted, setMounted] = React15__namespace.useState(false);
|
|
2638
|
+
const isAbsolute = displayAs === "absolute";
|
|
2639
|
+
React15__namespace.useEffect(() => setMounted(true), []);
|
|
2640
|
+
React15__namespace.useEffect(() => {
|
|
2641
|
+
if (isAbsolute || !live) return;
|
|
2642
|
+
const id = setInterval(() => setNow(/* @__PURE__ */ new Date()), LIVE_INTERVAL_MS);
|
|
2643
|
+
return () => clearInterval(id);
|
|
2644
|
+
}, [isAbsolute, live]);
|
|
2645
|
+
if (missing) {
|
|
2646
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DatePlaceholder, { label: "No date", className, ...props });
|
|
2647
|
+
}
|
|
2648
|
+
if (!parsed) {
|
|
2649
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(styles27__default.default["format-date"], className), ...props, children: "Invalid date" });
|
|
2650
|
+
}
|
|
2651
|
+
const machineValue = parsed.toISOString();
|
|
2652
|
+
const absolute = formatAbsolute(
|
|
2653
|
+
parsed,
|
|
2654
|
+
timeZone,
|
|
2655
|
+
absoluteOptions ?? DEFAULT_ABSOLUTE_OPTIONS,
|
|
2656
|
+
locale
|
|
2657
|
+
);
|
|
2658
|
+
if (isAbsolute) {
|
|
2659
|
+
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(styles27__default.default["format-date"], className), ...props, children: absolute });
|
|
2660
|
+
}
|
|
2661
|
+
const measured = !mounted ? absolute : displayAs === "relative" ? formatRelative(parsed, now, locale) : formatCountdown(parsed, now, locale);
|
|
2662
|
+
if (measured === null) {
|
|
2663
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DatePlaceholder, { label: "Date has passed", className, ...props });
|
|
2664
|
+
}
|
|
2665
|
+
if (!tooltip) {
|
|
2666
|
+
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(styles27__default.default["format-date"], className), ...props, children: measured });
|
|
2667
|
+
}
|
|
2668
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
2669
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2670
|
+
"time",
|
|
2671
|
+
{
|
|
2672
|
+
dateTime: machineValue,
|
|
2673
|
+
tabIndex: 0,
|
|
2674
|
+
className: cn(styles27__default.default["format-date"], styles27__default.default["format-date--interactive"], className),
|
|
2675
|
+
...props,
|
|
2676
|
+
children: measured
|
|
2677
|
+
}
|
|
2678
|
+
) }),
|
|
2679
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: absolute })
|
|
2680
|
+
] }) });
|
|
2681
|
+
}
|
|
2682
|
+
var Heading = React15.forwardRef(
|
|
2683
|
+
({ className, as, displayAs, children, ...props }, ref) => {
|
|
2684
|
+
const displayClasses = {
|
|
2685
|
+
h1: styles28__default.default["h1"],
|
|
2686
|
+
h2: styles28__default.default["h2"],
|
|
2687
|
+
h3: styles28__default.default["h3"],
|
|
2688
|
+
h4: styles28__default.default["h4"],
|
|
2689
|
+
h5: styles28__default.default["h5"],
|
|
2690
|
+
h6: styles28__default.default["h6"]
|
|
2691
|
+
};
|
|
2692
|
+
const displayClass = displayClasses[displayAs] || displayClasses[as];
|
|
2693
|
+
const HeadingTag = as;
|
|
2694
|
+
return /* @__PURE__ */ jsxRuntime.jsx(HeadingTag, { ref, className: cn(displayClass, className), ...props, children });
|
|
2695
|
+
}
|
|
2696
|
+
);
|
|
2697
|
+
Heading.displayName = "Heading";
|
|
2502
2698
|
var InfoCard = ({
|
|
2503
2699
|
label,
|
|
2504
2700
|
description,
|
|
@@ -2508,7 +2704,7 @@ var InfoCard = ({
|
|
|
2508
2704
|
onClick,
|
|
2509
2705
|
...props
|
|
2510
2706
|
}) => {
|
|
2511
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Card, { className, onClick, elevation, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2707
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Card, { className, onClick, elevation, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles29__default.default["info-card-content"], children: [
|
|
2512
2708
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2513
2709
|
Icon,
|
|
2514
2710
|
{
|
|
@@ -2518,9 +2714,9 @@ var InfoCard = ({
|
|
|
2518
2714
|
elevation: elevation === ELEVATION.SUNKEN ? ELEVATION.BASE : getRelativeElevation(elevation, -1)
|
|
2519
2715
|
}
|
|
2520
2716
|
),
|
|
2521
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2522
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
2523
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2717
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles29__default.default["copy-container"], children: [
|
|
2718
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: styles29__default.default["label"], children: label }),
|
|
2719
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles29__default.default["description"], children: description })
|
|
2524
2720
|
] })
|
|
2525
2721
|
] }) }) });
|
|
2526
2722
|
};
|
|
@@ -2554,8 +2750,8 @@ var MotionCollapsibleContent = ({
|
|
|
2554
2750
|
onAnimationStart: () => setIsSettled(false),
|
|
2555
2751
|
onAnimationComplete: () => setIsSettled(isOpen),
|
|
2556
2752
|
className: cn(
|
|
2557
|
-
|
|
2558
|
-
isSettled &&
|
|
2753
|
+
styles30__default.default["motion-collapsible"],
|
|
2754
|
+
isSettled && styles30__default.default["motion-collapsible--settled"],
|
|
2559
2755
|
className
|
|
2560
2756
|
),
|
|
2561
2757
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref: contentRef, children })
|
|
@@ -2585,42 +2781,42 @@ var Input = React15__namespace.forwardRef(
|
|
|
2585
2781
|
const hasError = hasErrorText || isMarkedInvalid;
|
|
2586
2782
|
const showHelpText = !!helpText && !hasErrorText;
|
|
2587
2783
|
const describedBy = [ariaDescribedBy, showHelpText && helpTextId, hasErrorText && errorTextId].filter(Boolean).join(" ") || void 0;
|
|
2588
|
-
const errorIcon = /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.TriangleAlert, { className:
|
|
2589
|
-
const errorMessage = errorList && errorList.length > 1 ? /* @__PURE__ */ jsxRuntime.jsx("ul", { id: errorTextId, role: "alert", className:
|
|
2784
|
+
const errorIcon = /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.TriangleAlert, { className: styles31__default.default["input-error-icon"], "aria-hidden": "true" });
|
|
2785
|
+
const errorMessage = errorList && errorList.length > 1 ? /* @__PURE__ */ jsxRuntime.jsx("ul", { id: errorTextId, role: "alert", className: styles31__default.default["input-error-list"], children: errorList.map((message) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: styles31__default.default["input-error-text"], children: [
|
|
2590
2786
|
errorIcon,
|
|
2591
2787
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: message })
|
|
2592
|
-
] }, message)) }) : /* @__PURE__ */ jsxRuntime.jsxs("p", { id: errorTextId, role: "alert", className:
|
|
2788
|
+
] }, message)) }) : /* @__PURE__ */ jsxRuntime.jsxs("p", { id: errorTextId, role: "alert", className: styles31__default.default["input-error-text"], children: [
|
|
2593
2789
|
errorIcon,
|
|
2594
2790
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: errorList ? errorList[0] : errorText })
|
|
2595
2791
|
] });
|
|
2596
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
2792
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles31__default.default["input-container"], containerClassName), children: [
|
|
2597
2793
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2598
2794
|
"div",
|
|
2599
2795
|
{
|
|
2600
2796
|
className: cn(
|
|
2601
|
-
|
|
2602
|
-
hasError &&
|
|
2797
|
+
styles31__default.default["input-wrapper"],
|
|
2798
|
+
hasError && styles31__default.default["input-wrapper--error"],
|
|
2603
2799
|
className
|
|
2604
2800
|
),
|
|
2605
2801
|
children: [
|
|
2606
|
-
prefix && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2802
|
+
prefix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles31__default.default["input-prefix"], children: prefix }),
|
|
2607
2803
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2608
2804
|
"input",
|
|
2609
2805
|
{
|
|
2610
2806
|
type,
|
|
2611
|
-
className:
|
|
2807
|
+
className: styles31__default.default["input-element"],
|
|
2612
2808
|
ref,
|
|
2613
2809
|
"aria-invalid": isMarkedInvalid ? ariaInvalid : hasErrorText || void 0,
|
|
2614
2810
|
"aria-describedby": describedBy,
|
|
2615
2811
|
...props
|
|
2616
2812
|
}
|
|
2617
2813
|
),
|
|
2618
|
-
suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2814
|
+
suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles31__default.default["input-suffix"], children: suffix })
|
|
2619
2815
|
]
|
|
2620
2816
|
}
|
|
2621
2817
|
),
|
|
2622
2818
|
helpText ? hasErrorText && errorMessage : /* @__PURE__ */ jsxRuntime.jsx(MotionCollapsibleContent, { isOpen: hasErrorText, children: errorMessage }),
|
|
2623
|
-
showHelpText && /* @__PURE__ */ jsxRuntime.jsx("p", { id: helpTextId, className:
|
|
2819
|
+
showHelpText && /* @__PURE__ */ jsxRuntime.jsx("p", { id: helpTextId, className: styles31__default.default["input-help-text"], children: helpText })
|
|
2624
2820
|
] });
|
|
2625
2821
|
}
|
|
2626
2822
|
);
|
|
@@ -2638,7 +2834,7 @@ var ListOrGridViewToggle = ({
|
|
|
2638
2834
|
const handleListClick = () => {
|
|
2639
2835
|
onViewModeChange("list");
|
|
2640
2836
|
};
|
|
2641
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
2837
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles32__default.default["list-or-grid-view-toggle"], className), children: [
|
|
2642
2838
|
order.map((mode) => {
|
|
2643
2839
|
const currentlyActive = mode === viewMode;
|
|
2644
2840
|
const Icon3 = mode === "grid" ? LucideIcons.Grid3X3 : LucideIcons.List;
|
|
@@ -2648,8 +2844,8 @@ var ListOrGridViewToggle = ({
|
|
|
2648
2844
|
type: "button",
|
|
2649
2845
|
"aria-label": mode === "grid" ? "Grid view" : "List view",
|
|
2650
2846
|
className: cn(
|
|
2651
|
-
|
|
2652
|
-
currentlyActive ?
|
|
2847
|
+
styles32__default.default["icon-button"],
|
|
2848
|
+
currentlyActive ? styles32__default.default["icon-button--active"] : styles32__default.default["icon-button--inactive"]
|
|
2653
2849
|
),
|
|
2654
2850
|
onClick: mode === "grid" ? handleGridClick : handleListClick,
|
|
2655
2851
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon3, { size: 16 })
|
|
@@ -2660,7 +2856,7 @@ var ListOrGridViewToggle = ({
|
|
|
2660
2856
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2661
2857
|
"div",
|
|
2662
2858
|
{
|
|
2663
|
-
className:
|
|
2859
|
+
className: styles32__default.default["active-button-indicator"],
|
|
2664
2860
|
style: {
|
|
2665
2861
|
transform: `translateX(${currentActiveIndex * 100}%)`,
|
|
2666
2862
|
width: `${100 / order.length}%`
|
|
@@ -2670,43 +2866,43 @@ var ListOrGridViewToggle = ({
|
|
|
2670
2866
|
] });
|
|
2671
2867
|
};
|
|
2672
2868
|
var Spinner = ({ size = "md", variant = "primary" }) => {
|
|
2673
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2674
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
2675
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
2869
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles33__default.default["spinner-container"], children: [
|
|
2870
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles33__default.default["spinner"], styles33__default.default[size], styles33__default.default[variant]) }),
|
|
2871
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles33__default.default["spinner-background"], styles33__default.default[size]) })
|
|
2676
2872
|
] });
|
|
2677
2873
|
};
|
|
2678
2874
|
function LoadingOverlay({ isVisible, message = "Loading..." }) {
|
|
2679
2875
|
if (!isVisible) return null;
|
|
2680
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2876
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles34__default.default["loading-overlay"], children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles34__default.default["content"], children: [
|
|
2681
2877
|
/* @__PURE__ */ jsxRuntime.jsx(Spinner, { variant: "primary" }),
|
|
2682
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
2878
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: styles34__default.default["message"], children: message })
|
|
2683
2879
|
] }) });
|
|
2684
2880
|
}
|
|
2685
2881
|
var metricCardElevationVariants = generateElevationVariants(
|
|
2686
|
-
|
|
2882
|
+
styles35__default.default,
|
|
2687
2883
|
"metric-card",
|
|
2688
2884
|
ELEVATION.RAISED
|
|
2689
2885
|
);
|
|
2690
2886
|
var VARIANTS = {
|
|
2691
2887
|
default: {
|
|
2692
|
-
text:
|
|
2693
|
-
iconBg:
|
|
2888
|
+
text: styles35__default.default["text-default"],
|
|
2889
|
+
iconBg: styles35__default.default["bg-default"]
|
|
2694
2890
|
},
|
|
2695
2891
|
primary: {
|
|
2696
|
-
text:
|
|
2697
|
-
iconBg:
|
|
2892
|
+
text: styles35__default.default["text-primary"],
|
|
2893
|
+
iconBg: styles35__default.default["bg-primary"]
|
|
2698
2894
|
},
|
|
2699
2895
|
danger: {
|
|
2700
|
-
text:
|
|
2701
|
-
iconBg:
|
|
2896
|
+
text: styles35__default.default["text-danger"],
|
|
2897
|
+
iconBg: styles35__default.default["bg-danger"]
|
|
2702
2898
|
},
|
|
2703
2899
|
success: {
|
|
2704
|
-
text:
|
|
2705
|
-
iconBg:
|
|
2900
|
+
text: styles35__default.default["text-success"],
|
|
2901
|
+
iconBg: styles35__default.default["bg-success"]
|
|
2706
2902
|
},
|
|
2707
2903
|
warning: {
|
|
2708
|
-
text:
|
|
2709
|
-
iconBg:
|
|
2904
|
+
text: styles35__default.default["text-warning"],
|
|
2905
|
+
iconBg: styles35__default.default["bg-warning"]
|
|
2710
2906
|
}
|
|
2711
2907
|
};
|
|
2712
2908
|
var MetricCard = ({
|
|
@@ -2719,8 +2915,8 @@ var MetricCard = ({
|
|
|
2719
2915
|
}) => {
|
|
2720
2916
|
const variantStyles = VARIANTS[variant];
|
|
2721
2917
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(metricCardElevationVariants({ elevation }), className), children: [
|
|
2722
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2723
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(
|
|
2918
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles35__default.default["value-container"], children: [
|
|
2919
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(styles35__default.default.value), children: value }),
|
|
2724
2920
|
icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2725
2921
|
Icon,
|
|
2726
2922
|
{
|
|
@@ -2731,7 +2927,7 @@ var MetricCard = ({
|
|
|
2731
2927
|
}
|
|
2732
2928
|
)
|
|
2733
2929
|
] }),
|
|
2734
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
2930
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: styles35__default.default.label, children: label })
|
|
2735
2931
|
] });
|
|
2736
2932
|
};
|
|
2737
2933
|
var OctagonAlert = LucideIcons.AlertOctagon;
|
|
@@ -2743,12 +2939,12 @@ var NotFound = ({
|
|
|
2743
2939
|
showHomeButton = true,
|
|
2744
2940
|
onHomeClick = () => window.location.href = "/"
|
|
2745
2941
|
}) => {
|
|
2746
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
2747
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2748
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
2749
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
2750
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2751
|
-
/* @__PURE__ */ jsxRuntime.jsx(HomeIcon, { className:
|
|
2942
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles36__default.default["page-not-found"], className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles36__default.default["page-not-found-inner"], children: [
|
|
2943
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles36__default.default["icon-container"], children: /* @__PURE__ */ jsxRuntime.jsx(OctagonAlert, { className: styles36__default.default["alert-icon"] }) }),
|
|
2944
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: styles36__default.default["title"], children: title }),
|
|
2945
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: styles36__default.default["description"], children: description }),
|
|
2946
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles36__default.default["actions"], children: showHomeButton && /* @__PURE__ */ jsxRuntime.jsxs(Button, { onClick: onHomeClick, variant: "secondary", children: [
|
|
2947
|
+
/* @__PURE__ */ jsxRuntime.jsx(HomeIcon, { className: styles36__default.default["home-icon"] }),
|
|
2752
2948
|
"Return Home"
|
|
2753
2949
|
] }) })
|
|
2754
2950
|
] }) });
|
|
@@ -2757,12 +2953,20 @@ var CheckIcon3 = LucideIcons.Check;
|
|
|
2757
2953
|
var ChevronDownIcon2 = LucideIcons.ChevronDown;
|
|
2758
2954
|
var ChevronUpIcon = LucideIcons.ChevronUp;
|
|
2759
2955
|
var SearchIcon3 = LucideIcons.Search;
|
|
2760
|
-
var
|
|
2956
|
+
var SEARCH_INPUT_SELECTOR2 = "[data-select-search]";
|
|
2761
2957
|
var NAVIGABLE_OPTION_SELECTOR = '[role="option"]:not([data-disabled]):not([hidden])';
|
|
2958
|
+
var MATCHING_OPTION_SELECTOR = `${NAVIGABLE_OPTION_SELECTOR}:not([data-persistent])`;
|
|
2762
2959
|
var RADIX_HANDLED_SEARCH_KEYS = ["ArrowDown", "ArrowUp", "Escape", "Tab"];
|
|
2763
2960
|
var SelectSearchContext = React15__namespace.createContext(null);
|
|
2764
2961
|
var useSelectSearch = () => React15__namespace.useContext(SelectSearchContext);
|
|
2765
2962
|
var useIsSearching2 = () => isSearchActive(useSelectSearch());
|
|
2963
|
+
var useSelectSearchQuery = () => {
|
|
2964
|
+
const ctx = useSelectSearch();
|
|
2965
|
+
if (!ctx) {
|
|
2966
|
+
throw new Error("useSelectSearchQuery must be used within a Select");
|
|
2967
|
+
}
|
|
2968
|
+
return useSearchQuery(ctx);
|
|
2969
|
+
};
|
|
2766
2970
|
var SelectGroupMatchContext = React15__namespace.createContext(null);
|
|
2767
2971
|
var Select = ({
|
|
2768
2972
|
open,
|
|
@@ -2771,33 +2975,14 @@ var Select = ({
|
|
|
2771
2975
|
}) => {
|
|
2772
2976
|
const search = useListSearchState(open);
|
|
2773
2977
|
const { resetForOpen } = search;
|
|
2774
|
-
const interactedRef = React15__namespace.useRef(false);
|
|
2775
|
-
const markInteracted = React15__namespace.useCallback(() => {
|
|
2776
|
-
interactedRef.current = true;
|
|
2777
|
-
}, []);
|
|
2778
|
-
const interactedSinceOpen = React15__namespace.useCallback(() => interactedRef.current, []);
|
|
2779
|
-
const [lockedSide, setLockedSide] = React15__namespace.useState();
|
|
2780
|
-
React15__namespace.useEffect(() => {
|
|
2781
|
-
if (!open) return;
|
|
2782
|
-
interactedRef.current = false;
|
|
2783
|
-
setLockedSide(void 0);
|
|
2784
|
-
}, [open]);
|
|
2785
2978
|
const handleOpenChange = React15__namespace.useCallback(
|
|
2786
2979
|
(nextOpen) => {
|
|
2787
|
-
if (nextOpen)
|
|
2788
|
-
resetForOpen();
|
|
2789
|
-
interactedRef.current = false;
|
|
2790
|
-
setLockedSide(void 0);
|
|
2791
|
-
}
|
|
2980
|
+
if (nextOpen) resetForOpen();
|
|
2792
2981
|
onOpenChange?.(nextOpen);
|
|
2793
2982
|
},
|
|
2794
2983
|
[onOpenChange, resetForOpen]
|
|
2795
2984
|
);
|
|
2796
|
-
|
|
2797
|
-
() => ({ ...search, markInteracted, interactedSinceOpen, lockedSide, lockSide: setLockedSide }),
|
|
2798
|
-
[search, markInteracted, interactedSinceOpen, lockedSide]
|
|
2799
|
-
);
|
|
2800
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SelectSearchContext.Provider, { value, children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Root, { open, onOpenChange: handleOpenChange, ...props }) });
|
|
2985
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectSearchContext.Provider, { value: search, children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Root, { open, onOpenChange: handleOpenChange, ...props }) });
|
|
2801
2986
|
};
|
|
2802
2987
|
Select.displayName = "Select";
|
|
2803
2988
|
var SelectGroup = React15__namespace.forwardRef(({ hidden, ...props }, ref) => {
|
|
@@ -2814,18 +2999,18 @@ var SelectGroup = React15__namespace.forwardRef(({ hidden, ...props }, ref) => {
|
|
|
2814
2999
|
});
|
|
2815
3000
|
SelectGroup.displayName = SelectPrimitive__namespace.Group.displayName;
|
|
2816
3001
|
var SelectValue = SelectPrimitive__namespace.Value;
|
|
2817
|
-
var SelectTrigger = React15__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger, { ref, className: cn(
|
|
3002
|
+
var SelectTrigger = React15__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger, { ref, className: cn(styles37__default.default["select-trigger"], className), ...props, children: [
|
|
2818
3003
|
children,
|
|
2819
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon2, { className: cn(
|
|
3004
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon2, { className: cn(styles37__default.default["select-icon"], styles37__default.default["select-icon--low-opacity"]) }) })
|
|
2820
3005
|
] }));
|
|
2821
3006
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
2822
3007
|
var SelectScrollUpButton = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2823
3008
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
2824
3009
|
{
|
|
2825
3010
|
ref,
|
|
2826
|
-
className: cn(
|
|
3011
|
+
className: cn(styles37__default.default["select-scroll-button"], className),
|
|
2827
3012
|
...props,
|
|
2828
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronUpIcon, { className:
|
|
3013
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronUpIcon, { className: styles37__default.default["select-icon"] })
|
|
2829
3014
|
}
|
|
2830
3015
|
));
|
|
2831
3016
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
@@ -2833,15 +3018,15 @@ var SelectScrollDownButton = React15__namespace.forwardRef(({ className, ...prop
|
|
|
2833
3018
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
2834
3019
|
{
|
|
2835
3020
|
ref,
|
|
2836
|
-
className: cn(
|
|
3021
|
+
className: cn(styles37__default.default["select-scroll-button"], className),
|
|
2837
3022
|
...props,
|
|
2838
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon2, { className:
|
|
3023
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon2, { className: styles37__default.default["select-icon"] })
|
|
2839
3024
|
}
|
|
2840
3025
|
));
|
|
2841
3026
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
2842
3027
|
var SelectPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { container: usePortalContainer(), children });
|
|
2843
3028
|
var selectContentElevationVariants = generateElevationVariants(
|
|
2844
|
-
|
|
3029
|
+
styles37__default.default,
|
|
2845
3030
|
"select-content",
|
|
2846
3031
|
ELEVATION.OVERLAY
|
|
2847
3032
|
);
|
|
@@ -2864,68 +3049,43 @@ var SelectContent = React15__namespace.forwardRef(
|
|
|
2864
3049
|
const searching = isSearchActive(ctx);
|
|
2865
3050
|
const resultCount = ctx?.matchCount ?? 0;
|
|
2866
3051
|
const contentRef = React15__namespace.useRef(null);
|
|
2867
|
-
const
|
|
2868
|
-
|
|
3052
|
+
const sideProps = useSearchSideLock(ctx, contentRef, {
|
|
3053
|
+
side,
|
|
3054
|
+
avoidCollisions,
|
|
3055
|
+
enabled: position === "popper"
|
|
3056
|
+
});
|
|
2869
3057
|
const composedContentRef = React15__namespace.useCallback(
|
|
2870
3058
|
(node) => {
|
|
2871
|
-
assignRefs(node, ref);
|
|
2872
|
-
contentRef.current = node;
|
|
3059
|
+
assignRefs(node, ref, contentRef);
|
|
2873
3060
|
setListId?.(node?.id || void 0);
|
|
2874
3061
|
},
|
|
2875
3062
|
[ref, setListId]
|
|
2876
3063
|
);
|
|
2877
|
-
React15__namespace.useEffect(() => {
|
|
2878
|
-
if (position !== "popper" || !searching || lockedSide) return;
|
|
2879
|
-
const placed = contentRef.current?.dataset.side;
|
|
2880
|
-
if (placed) lockSide?.(placed);
|
|
2881
|
-
}, [position, searching, lockedSide, lockSide]);
|
|
2882
3064
|
const handleFocus = (event) => {
|
|
2883
3065
|
onFocus?.(event);
|
|
2884
3066
|
if (!ctx?.enabled || !ctx.visible || ctx.interactedSinceOpen()) return;
|
|
2885
|
-
if (event.target.closest(
|
|
3067
|
+
if (event.target.closest(SEARCH_INPUT_SELECTOR2)) return;
|
|
2886
3068
|
ctx.requestFocus();
|
|
2887
3069
|
};
|
|
2888
3070
|
const handleKeyDown = (event) => {
|
|
2889
3071
|
onKeyDown?.(event);
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
const firstOption = event.currentTarget.querySelector(NAVIGABLE_OPTION_SELECTOR);
|
|
2895
|
-
if (firstOption && firstOption === target?.closest(NAVIGABLE_OPTION_SELECTOR)) {
|
|
2896
|
-
event.preventDefault();
|
|
2897
|
-
ctx.requestFocus();
|
|
2898
|
-
return;
|
|
2899
|
-
}
|
|
2900
|
-
}
|
|
2901
|
-
if (event.key === "Backspace" && ctx.visible && ctx.query) {
|
|
2902
|
-
event.preventDefault();
|
|
2903
|
-
ctx.setQuery(ctx.query.slice(0, -1));
|
|
2904
|
-
ctx.requestFocus();
|
|
2905
|
-
return;
|
|
2906
|
-
}
|
|
2907
|
-
if (!isPrintableKey(event)) return;
|
|
2908
|
-
event.preventDefault();
|
|
2909
|
-
if (!ctx.visible) {
|
|
2910
|
-
ctx.reveal(event.key);
|
|
2911
|
-
} else {
|
|
2912
|
-
ctx.setQuery(ctx.query + event.key);
|
|
2913
|
-
ctx.requestFocus();
|
|
2914
|
-
}
|
|
3072
|
+
handleListKeyDown(ctx, event, {
|
|
3073
|
+
searchSelector: SEARCH_INPUT_SELECTOR2,
|
|
3074
|
+
itemSelector: NAVIGABLE_OPTION_SELECTOR
|
|
3075
|
+
});
|
|
2915
3076
|
};
|
|
2916
3077
|
return /* @__PURE__ */ jsxRuntime.jsx(SelectPortal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2917
3078
|
SelectPrimitive__namespace.Content,
|
|
2918
3079
|
{
|
|
2919
3080
|
ref: composedContentRef,
|
|
2920
3081
|
className: cn(
|
|
2921
|
-
|
|
2922
|
-
position === "popper" &&
|
|
3082
|
+
styles37__default.default["select-content"],
|
|
3083
|
+
position === "popper" && styles37__default.default["select-content--popper"],
|
|
2923
3084
|
selectContentElevationVariants({ elevation }),
|
|
2924
3085
|
className
|
|
2925
3086
|
),
|
|
2926
3087
|
position,
|
|
2927
|
-
|
|
2928
|
-
avoidCollisions: lockedSide ? false : avoidCollisions,
|
|
3088
|
+
...sideProps,
|
|
2929
3089
|
onFocus: handleFocus,
|
|
2930
3090
|
onKeyDown: handleKeyDown,
|
|
2931
3091
|
onKeyDownCapture: (event) => {
|
|
@@ -2938,14 +3098,14 @@ var SelectContent = React15__namespace.forwardRef(
|
|
|
2938
3098
|
},
|
|
2939
3099
|
...props,
|
|
2940
3100
|
children: [
|
|
2941
|
-
ctx?.enabled ? /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3101
|
+
ctx?.enabled ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles37__default.default["select-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
|
|
2942
3102
|
/* @__PURE__ */ jsxRuntime.jsx(SelectScrollUpButton, {}),
|
|
2943
3103
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2944
3104
|
SelectPrimitive__namespace.Viewport,
|
|
2945
3105
|
{
|
|
2946
3106
|
className: cn(
|
|
2947
|
-
|
|
2948
|
-
position === "popper" &&
|
|
3107
|
+
styles37__default.default["select-viewport"],
|
|
3108
|
+
position === "popper" && styles37__default.default["select-viewport--popper"]
|
|
2949
3109
|
),
|
|
2950
3110
|
children
|
|
2951
3111
|
}
|
|
@@ -2973,15 +3133,15 @@ var SelectSearch = React15__namespace.forwardRef(
|
|
|
2973
3133
|
}
|
|
2974
3134
|
const { ref, isRendered } = useSearchInput(ctx, alwaysVisible, forwardedRef);
|
|
2975
3135
|
if (!isRendered) return null;
|
|
2976
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2977
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className:
|
|
3136
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles37__default.default["select-search"], children: [
|
|
3137
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: styles37__default.default["select-search-icon"], children: icon ?? /* @__PURE__ */ jsxRuntime.jsx(SearchIcon3, { className: cn(styles37__default.default["select-icon"], styles37__default.default["select-icon--sm"]) }) }),
|
|
2978
3138
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2979
3139
|
"input",
|
|
2980
3140
|
{
|
|
2981
3141
|
...props,
|
|
2982
3142
|
ref,
|
|
2983
3143
|
"data-select-search": "",
|
|
2984
|
-
className: cn(
|
|
3144
|
+
className: cn(styles37__default.default["select-search-input"], className),
|
|
2985
3145
|
value: ctx.query,
|
|
2986
3146
|
placeholder,
|
|
2987
3147
|
"aria-label": ariaLabel ?? placeholder,
|
|
@@ -2994,7 +3154,7 @@ var SelectSearch = React15__namespace.forwardRef(
|
|
|
2994
3154
|
if (event.key === "Enter" && !event.defaultPrevented && isSearchActive(ctx)) {
|
|
2995
3155
|
event.preventDefault();
|
|
2996
3156
|
event.stopPropagation();
|
|
2997
|
-
const firstOption = event.currentTarget.closest('[role="listbox"]')?.querySelector(
|
|
3157
|
+
const firstOption = event.currentTarget.closest('[role="listbox"]')?.querySelector(MATCHING_OPTION_SELECTOR);
|
|
2998
3158
|
firstOption?.dispatchEvent(
|
|
2999
3159
|
new KeyboardEvent("keydown", { key: "Enter", bubbles: true })
|
|
3000
3160
|
);
|
|
@@ -3018,7 +3178,7 @@ var SelectEmpty = ({ className, children, ...props }) => {
|
|
|
3018
3178
|
...props,
|
|
3019
3179
|
role: "status",
|
|
3020
3180
|
"aria-live": "polite",
|
|
3021
|
-
className: isEmpty ? cn(
|
|
3181
|
+
className: isEmpty ? cn(styles37__default.default["select-empty"], className) : void 0,
|
|
3022
3182
|
children: isEmpty ? children : null
|
|
3023
3183
|
}
|
|
3024
3184
|
);
|
|
@@ -3030,41 +3190,42 @@ var SelectLabel = React15__namespace.forwardRef(({ className, hidden, ...props }
|
|
|
3030
3190
|
SelectPrimitive__namespace.Label,
|
|
3031
3191
|
{
|
|
3032
3192
|
ref,
|
|
3033
|
-
className: cn(
|
|
3193
|
+
className: cn(styles37__default.default["select-label"], className),
|
|
3034
3194
|
...props,
|
|
3035
3195
|
hidden: hidden || searching || void 0
|
|
3036
3196
|
}
|
|
3037
3197
|
);
|
|
3038
3198
|
});
|
|
3039
3199
|
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
3040
|
-
var SelectItem = React15__namespace.forwardRef(({ className, children, textValue, hidden, ...props }, ref) => {
|
|
3200
|
+
var SelectItem = React15__namespace.forwardRef(({ className, children, textValue, hidden, persistent, ...props }, ref) => {
|
|
3041
3201
|
const search = useSelectSearch();
|
|
3042
3202
|
const group = React15__namespace.useContext(SelectGroupMatchContext);
|
|
3043
|
-
const matches = useFilterableItem(search, textValue, children, group);
|
|
3203
|
+
const matches = useFilterableItem(search, textValue, children, { group, persistent });
|
|
3044
3204
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3045
3205
|
SelectPrimitive__namespace.Item,
|
|
3046
3206
|
{
|
|
3047
3207
|
ref,
|
|
3048
|
-
className: cn(
|
|
3208
|
+
className: cn(styles37__default.default["select-item"], className),
|
|
3049
3209
|
...props,
|
|
3210
|
+
"data-persistent": persistent ? "" : void 0,
|
|
3050
3211
|
textValue,
|
|
3051
3212
|
hidden: hidden || !matches || void 0,
|
|
3052
3213
|
children: [
|
|
3053
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3214
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles37__default.default["select-item-indicator"], children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon3, { className: styles37__default.default["select-icon"] }) }) }),
|
|
3054
3215
|
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children })
|
|
3055
3216
|
]
|
|
3056
3217
|
}
|
|
3057
3218
|
);
|
|
3058
3219
|
});
|
|
3059
3220
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
3060
|
-
var SelectSeparator = React15__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3221
|
+
var SelectSeparator = React15__namespace.forwardRef(({ className, persistent, ...props }, ref) => {
|
|
3061
3222
|
const searching = useIsSearching2();
|
|
3062
|
-
if (searching) return null;
|
|
3223
|
+
if (searching && !persistent) return null;
|
|
3063
3224
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3064
3225
|
SelectPrimitive__namespace.Separator,
|
|
3065
3226
|
{
|
|
3066
3227
|
ref,
|
|
3067
|
-
className: cn(
|
|
3228
|
+
className: cn(styles37__default.default["select-separator"], className),
|
|
3068
3229
|
...props
|
|
3069
3230
|
}
|
|
3070
3231
|
);
|
|
@@ -3168,8 +3329,8 @@ var Pagination = ({
|
|
|
3168
3329
|
}
|
|
3169
3330
|
return pageButtons;
|
|
3170
3331
|
};
|
|
3171
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
3172
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3332
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles38__default.default["pagination"], className), children: [
|
|
3333
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles38__default.default["info-container"], children: showInfo && hasFilteredItems && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3173
3334
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
3174
3335
|
"Showing ",
|
|
3175
3336
|
startItem,
|
|
@@ -3179,7 +3340,7 @@ var Pagination = ({
|
|
|
3179
3340
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3180
3341
|
SelectTrigger,
|
|
3181
3342
|
{
|
|
3182
|
-
className:
|
|
3343
|
+
className: styles38__default.default["items-per-page-trigger"],
|
|
3183
3344
|
"aria-label": "Items per page",
|
|
3184
3345
|
children: /* @__PURE__ */ jsxRuntime.jsx(SelectValue, {})
|
|
3185
3346
|
}
|
|
@@ -3193,7 +3354,7 @@ var Pagination = ({
|
|
|
3193
3354
|
type
|
|
3194
3355
|
] })
|
|
3195
3356
|
] }) }),
|
|
3196
|
-
/* @__PURE__ */ jsxRuntime.jsxs("nav", { className:
|
|
3357
|
+
/* @__PURE__ */ jsxRuntime.jsxs("nav", { className: styles38__default.default["page-navigation-container"], "aria-label": "Pagination", children: [
|
|
3197
3358
|
showFirstLastButtons && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3198
3359
|
Button,
|
|
3199
3360
|
{
|
|
@@ -3243,13 +3404,13 @@ var Pagination = ({
|
|
|
3243
3404
|
] });
|
|
3244
3405
|
};
|
|
3245
3406
|
var PanelLabel = ({ className, label }) => {
|
|
3246
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
3407
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles39__default.default["panel-label"], className), children: label });
|
|
3247
3408
|
};
|
|
3248
3409
|
var Progress = React15__namespace.forwardRef(
|
|
3249
|
-
({ className, value, color = "primary", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ProgressPrimitive__namespace.Root, { ref, className: cn(
|
|
3410
|
+
({ className, value, color = "primary", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ProgressPrimitive__namespace.Root, { ref, className: cn(styles40__default.default["progress"], className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3250
3411
|
ProgressPrimitive__namespace.Indicator,
|
|
3251
3412
|
{
|
|
3252
|
-
className: cn(
|
|
3413
|
+
className: cn(styles40__default.default["progress-indicator"], styles40__default.default[color]),
|
|
3253
3414
|
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
3254
3415
|
}
|
|
3255
3416
|
) })
|
|
@@ -3271,29 +3432,29 @@ var STATUS_LABELS = {
|
|
|
3271
3432
|
info: "Information",
|
|
3272
3433
|
danger: "Error"
|
|
3273
3434
|
};
|
|
3274
|
-
var layoutVariants = classVarianceAuthority.cva(
|
|
3435
|
+
var layoutVariants = classVarianceAuthority.cva(styles41__default.default["progress-indicator"], {
|
|
3275
3436
|
variants: {
|
|
3276
3437
|
layout: {
|
|
3277
|
-
horizontal:
|
|
3278
|
-
vertical:
|
|
3438
|
+
horizontal: styles41__default.default["progress-indicator--horizontal"],
|
|
3439
|
+
vertical: styles41__default.default["progress-indicator--vertical"]
|
|
3279
3440
|
}
|
|
3280
3441
|
},
|
|
3281
3442
|
defaultVariants: {
|
|
3282
3443
|
layout: "horizontal"
|
|
3283
3444
|
}
|
|
3284
3445
|
});
|
|
3285
|
-
var markerVariants = classVarianceAuthority.cva(
|
|
3446
|
+
var markerVariants = classVarianceAuthority.cva(styles41__default.default["progress-indicator-step-marker"], {
|
|
3286
3447
|
variants: {
|
|
3287
3448
|
status: {
|
|
3288
3449
|
editing: "",
|
|
3289
3450
|
empty: "",
|
|
3290
3451
|
neutral: "",
|
|
3291
3452
|
info: "",
|
|
3292
|
-
success:
|
|
3293
|
-
danger:
|
|
3453
|
+
success: styles41__default.default["progress-indicator-step-marker--success"],
|
|
3454
|
+
danger: styles41__default.default["progress-indicator-step-marker--danger"]
|
|
3294
3455
|
},
|
|
3295
3456
|
active: {
|
|
3296
|
-
true:
|
|
3457
|
+
true: styles41__default.default["progress-indicator-step-marker--active"],
|
|
3297
3458
|
false: ""
|
|
3298
3459
|
}
|
|
3299
3460
|
},
|
|
@@ -3334,18 +3495,18 @@ function ProgressIndicator({
|
|
|
3334
3495
|
});
|
|
3335
3496
|
const Container = interactive ? "nav" : "div";
|
|
3336
3497
|
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: cn(layoutVariants({ layout }), className), ...props, children: [
|
|
3337
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3498
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles41__default.default["progress-indicator-track"], "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3338
3499
|
Progress,
|
|
3339
3500
|
{
|
|
3340
3501
|
value: 100,
|
|
3341
3502
|
color: "primary",
|
|
3342
|
-
className:
|
|
3503
|
+
className: styles41__default.default["progress-indicator-rail"],
|
|
3343
3504
|
style: {
|
|
3344
3505
|
"--pi-fill-size": `${fillSize}%`
|
|
3345
3506
|
}
|
|
3346
3507
|
}
|
|
3347
3508
|
) }),
|
|
3348
|
-
/* @__PURE__ */ jsxRuntime.jsx("ul", { className:
|
|
3509
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: styles41__default.default["progress-indicator-steps"], "aria-label": ariaLabel, children: steps })
|
|
3349
3510
|
] });
|
|
3350
3511
|
}
|
|
3351
3512
|
function ProgressIndicatorStep({
|
|
@@ -3377,15 +3538,15 @@ function ProgressIndicatorStep({
|
|
|
3377
3538
|
className: markerVariants({ status: effectiveStatus, active })
|
|
3378
3539
|
}
|
|
3379
3540
|
),
|
|
3380
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
3381
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3382
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3383
|
-
statusLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3541
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles41__default.default["progress-indicator-step-text"], children: [
|
|
3542
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles41__default.default["progress-indicator-step-name"], children: name }),
|
|
3543
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles41__default.default["progress-indicator-step-description"], children: description }),
|
|
3544
|
+
statusLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles41__default.default["progress-indicator-step-status"], children: statusLabel })
|
|
3384
3545
|
] })
|
|
3385
3546
|
] });
|
|
3386
3547
|
const innerClassName = cn(
|
|
3387
|
-
|
|
3388
|
-
interactive &&
|
|
3548
|
+
styles41__default.default["progress-indicator-step-inner"],
|
|
3549
|
+
interactive && styles41__default.default["progress-indicator-step-inner--interactive"]
|
|
3389
3550
|
);
|
|
3390
3551
|
let inner;
|
|
3391
3552
|
if (href) {
|
|
@@ -3408,8 +3569,8 @@ function ProgressIndicatorStep({
|
|
|
3408
3569
|
"li",
|
|
3409
3570
|
{
|
|
3410
3571
|
className: cn(
|
|
3411
|
-
|
|
3412
|
-
active &&
|
|
3572
|
+
styles41__default.default["progress-indicator-step"],
|
|
3573
|
+
active && styles41__default.default["progress-indicator-step--active"],
|
|
3413
3574
|
className
|
|
3414
3575
|
),
|
|
3415
3576
|
...props,
|
|
@@ -3433,16 +3594,16 @@ var RadialGraph = React15.forwardRef(
|
|
|
3433
3594
|
"div",
|
|
3434
3595
|
{
|
|
3435
3596
|
ref,
|
|
3436
|
-
className: cn(
|
|
3597
|
+
className: cn(styles42__default.default["radial-graph"], styles42__default.default[graphSize], className),
|
|
3437
3598
|
...props,
|
|
3438
3599
|
children: [
|
|
3439
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3600
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles42__default.default["bars-container"], children: bars.map((_, i) => {
|
|
3440
3601
|
const isActive = i < percentage;
|
|
3441
3602
|
const delay = `${i * 10}ms`;
|
|
3442
3603
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3443
3604
|
"div",
|
|
3444
3605
|
{
|
|
3445
|
-
className:
|
|
3606
|
+
className: styles42__default.default["bar"],
|
|
3446
3607
|
style: {
|
|
3447
3608
|
transform: `rotate(${i * 3.6}deg)`
|
|
3448
3609
|
},
|
|
@@ -3450,22 +3611,22 @@ var RadialGraph = React15.forwardRef(
|
|
|
3450
3611
|
"div",
|
|
3451
3612
|
{
|
|
3452
3613
|
className: cn(
|
|
3453
|
-
|
|
3454
|
-
isActive ?
|
|
3614
|
+
styles42__default.default["bar-inner"],
|
|
3615
|
+
isActive ? styles42__default.default["bar-inner--active"] : styles42__default.default["bar-inner--inactive"]
|
|
3455
3616
|
),
|
|
3456
3617
|
style: {
|
|
3457
3618
|
transitionDelay: delay,
|
|
3458
3619
|
animationDelay: delay
|
|
3459
3620
|
},
|
|
3460
3621
|
children: [
|
|
3461
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3622
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles42__default.default["bar-background"] }),
|
|
3462
3623
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3463
3624
|
"div",
|
|
3464
3625
|
{
|
|
3465
3626
|
className: cn(
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
isActive ?
|
|
3627
|
+
styles42__default.default["bar-gradient"],
|
|
3628
|
+
styles42__default.default[`bar-gradient--${variant}`],
|
|
3629
|
+
isActive ? styles42__default.default["bar-gradient--active"] : styles42__default.default["bar-gradient--inactive"]
|
|
3469
3630
|
),
|
|
3470
3631
|
style: {
|
|
3471
3632
|
transitionDelay: delay,
|
|
@@ -3480,9 +3641,9 @@ var RadialGraph = React15.forwardRef(
|
|
|
3480
3641
|
i
|
|
3481
3642
|
);
|
|
3482
3643
|
}) }),
|
|
3483
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3484
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(
|
|
3485
|
-
subLabel && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
3644
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles42__default.default["label-container"], children: [
|
|
3645
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(styles42__default.default["label"], styles42__default.default[graphSize]), children: label }),
|
|
3646
|
+
subLabel && /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles42__default.default["sub-label"], children: subLabel })
|
|
3486
3647
|
] })
|
|
3487
3648
|
]
|
|
3488
3649
|
}
|
|
@@ -3508,15 +3669,15 @@ var RadioDropdown = ({
|
|
|
3508
3669
|
);
|
|
3509
3670
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
3510
3671
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "tertiary", className, children: [
|
|
3511
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
3672
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles43__default.default["selector-button-inner"], children: [
|
|
3512
3673
|
selectedOption?.label || label,
|
|
3513
3674
|
hasSelectedCount && /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "primary", children: selectedOption.count })
|
|
3514
3675
|
] }),
|
|
3515
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon3, { className:
|
|
3676
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon3, { className: styles43__default.default["chevron-icon"] })
|
|
3516
3677
|
] }) }),
|
|
3517
|
-
/* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuContent, { align: "end", className:
|
|
3678
|
+
/* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuContent, { align: "end", className: styles43__default.default["dropdown-menu-content"], children: [
|
|
3518
3679
|
searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3519
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, {
|
|
3680
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, { placeholder: searchPlaceholder, "aria-label": label }),
|
|
3520
3681
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
|
|
3521
3682
|
] }),
|
|
3522
3683
|
!searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -3538,7 +3699,7 @@ var RadioGroup2 = React15__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3538
3699
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3539
3700
|
RadioGroupPrimitive__namespace.Root,
|
|
3540
3701
|
{
|
|
3541
|
-
className: cn(
|
|
3702
|
+
className: cn(styles44__default.default["radio-group"], className),
|
|
3542
3703
|
...props,
|
|
3543
3704
|
ref
|
|
3544
3705
|
}
|
|
@@ -3550,15 +3711,175 @@ var RadioGroupItem = React15__namespace.forwardRef(({ className, ...props }, ref
|
|
|
3550
3711
|
RadioGroupPrimitive__namespace.Item,
|
|
3551
3712
|
{
|
|
3552
3713
|
ref,
|
|
3553
|
-
className: cn(
|
|
3714
|
+
className: cn(styles44__default.default["radio-group-item"], className),
|
|
3554
3715
|
...props,
|
|
3555
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(RadioGroupPrimitive__namespace.Indicator, { className:
|
|
3716
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RadioGroupPrimitive__namespace.Indicator, { className: styles44__default.default["radio-group-item-indicator"], children: /* @__PURE__ */ jsxRuntime.jsx(CircleIcon2, { className: styles44__default.default["indicator-icon"] }) })
|
|
3556
3717
|
}
|
|
3557
3718
|
);
|
|
3558
3719
|
});
|
|
3559
3720
|
RadioGroupItem.displayName = RadioGroupPrimitive__namespace.Item.displayName;
|
|
3560
|
-
var
|
|
3561
|
-
|
|
3721
|
+
var ResourceBadge = ({
|
|
3722
|
+
type,
|
|
3723
|
+
display = "both",
|
|
3724
|
+
closeable,
|
|
3725
|
+
handleClosable,
|
|
3726
|
+
closeLabel,
|
|
3727
|
+
children
|
|
3728
|
+
}) => {
|
|
3729
|
+
const config = getTypeConfig(type);
|
|
3730
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3731
|
+
Badge,
|
|
3732
|
+
{
|
|
3733
|
+
icon: config.icon,
|
|
3734
|
+
display,
|
|
3735
|
+
className: config.className,
|
|
3736
|
+
variant: null,
|
|
3737
|
+
closeable,
|
|
3738
|
+
handleClosable,
|
|
3739
|
+
closeLabel,
|
|
3740
|
+
children: children ?? config.label
|
|
3741
|
+
}
|
|
3742
|
+
);
|
|
3743
|
+
};
|
|
3744
|
+
var getTypeConfig = (type) => {
|
|
3745
|
+
switch (type) {
|
|
3746
|
+
case "agent":
|
|
3747
|
+
return {
|
|
3748
|
+
icon: "Bot",
|
|
3749
|
+
className: styles45__default.default["badge--agent"],
|
|
3750
|
+
label: "Agent"
|
|
3751
|
+
};
|
|
3752
|
+
case "benchmark":
|
|
3753
|
+
return {
|
|
3754
|
+
icon: "LineChart",
|
|
3755
|
+
className: styles45__default.default["badge--benchmark"],
|
|
3756
|
+
label: "Benchmark"
|
|
3757
|
+
};
|
|
3758
|
+
case "benchmark-result":
|
|
3759
|
+
return {
|
|
3760
|
+
icon: "FileChartLine",
|
|
3761
|
+
className: styles45__default.default["badge--benchmark-result"],
|
|
3762
|
+
label: "Benchmark Result"
|
|
3763
|
+
};
|
|
3764
|
+
case "code":
|
|
3765
|
+
return {
|
|
3766
|
+
icon: "Code",
|
|
3767
|
+
className: styles45__default.default["badge--code"],
|
|
3768
|
+
label: "Code"
|
|
3769
|
+
};
|
|
3770
|
+
case "binary":
|
|
3771
|
+
return {
|
|
3772
|
+
icon: "Binary",
|
|
3773
|
+
className: styles45__default.default["badge--binary"],
|
|
3774
|
+
label: "Binary"
|
|
3775
|
+
};
|
|
3776
|
+
case "certificate":
|
|
3777
|
+
return {
|
|
3778
|
+
icon: "Award",
|
|
3779
|
+
className: styles45__default.default["badge--certificate"],
|
|
3780
|
+
label: "Certificate"
|
|
3781
|
+
};
|
|
3782
|
+
case "compute":
|
|
3783
|
+
return {
|
|
3784
|
+
icon: "Cpu",
|
|
3785
|
+
className: styles45__default.default["badge--compute"],
|
|
3786
|
+
label: "Compute"
|
|
3787
|
+
};
|
|
3788
|
+
case "credential":
|
|
3789
|
+
return {
|
|
3790
|
+
icon: "IdCardLanyard",
|
|
3791
|
+
className: styles45__default.default["badge--credential"],
|
|
3792
|
+
label: "Credential"
|
|
3793
|
+
};
|
|
3794
|
+
case "database":
|
|
3795
|
+
return {
|
|
3796
|
+
icon: "Database",
|
|
3797
|
+
className: styles45__default.default["badge--database"],
|
|
3798
|
+
label: "Database"
|
|
3799
|
+
};
|
|
3800
|
+
case "dataset":
|
|
3801
|
+
return {
|
|
3802
|
+
icon: "Table",
|
|
3803
|
+
className: styles45__default.default["badge--dataset"],
|
|
3804
|
+
label: "Dataset"
|
|
3805
|
+
};
|
|
3806
|
+
case "document":
|
|
3807
|
+
return {
|
|
3808
|
+
icon: "FileText",
|
|
3809
|
+
className: styles45__default.default["badge--document"],
|
|
3810
|
+
label: "Document"
|
|
3811
|
+
};
|
|
3812
|
+
case "skill":
|
|
3813
|
+
return {
|
|
3814
|
+
icon: "FileCog",
|
|
3815
|
+
className: styles45__default.default["badge--skill"],
|
|
3816
|
+
label: "Skill"
|
|
3817
|
+
};
|
|
3818
|
+
case "media":
|
|
3819
|
+
return {
|
|
3820
|
+
icon: "FileImage",
|
|
3821
|
+
className: styles45__default.default["badge--media"],
|
|
3822
|
+
label: "Media"
|
|
3823
|
+
};
|
|
3824
|
+
case "guardrail":
|
|
3825
|
+
return {
|
|
3826
|
+
icon: "Fence",
|
|
3827
|
+
className: styles45__default.default["badge--guardrail"],
|
|
3828
|
+
label: "Guardrail"
|
|
3829
|
+
};
|
|
3830
|
+
case "model":
|
|
3831
|
+
return {
|
|
3832
|
+
icon: "Brain",
|
|
3833
|
+
className: styles45__default.default["badge--model"],
|
|
3834
|
+
label: "Model"
|
|
3835
|
+
};
|
|
3836
|
+
case "prompt":
|
|
3837
|
+
return {
|
|
3838
|
+
icon: "MessageSquareText",
|
|
3839
|
+
className: styles45__default.default["badge--prompt"],
|
|
3840
|
+
label: "Prompt"
|
|
3841
|
+
};
|
|
3842
|
+
case "system-prompt":
|
|
3843
|
+
return {
|
|
3844
|
+
icon: "MessageSquareCode",
|
|
3845
|
+
className: styles45__default.default["badge--system-prompt"],
|
|
3846
|
+
label: "System Prompt"
|
|
3847
|
+
};
|
|
3848
|
+
case "reasoning":
|
|
3849
|
+
return {
|
|
3850
|
+
icon: "MessageSquareMore",
|
|
3851
|
+
className: styles45__default.default["badge--reasoning"],
|
|
3852
|
+
label: "Reasoning"
|
|
3853
|
+
};
|
|
3854
|
+
case "token":
|
|
3855
|
+
return {
|
|
3856
|
+
icon: "Coins",
|
|
3857
|
+
className: styles45__default.default["badge--token"],
|
|
3858
|
+
label: "Token"
|
|
3859
|
+
};
|
|
3860
|
+
case "tool":
|
|
3861
|
+
return {
|
|
3862
|
+
icon: "Wrench",
|
|
3863
|
+
className: styles45__default.default["badge--tool"],
|
|
3864
|
+
label: "Tool"
|
|
3865
|
+
};
|
|
3866
|
+
case "config":
|
|
3867
|
+
return {
|
|
3868
|
+
icon: "Settings2",
|
|
3869
|
+
className: styles45__default.default["badge--config"],
|
|
3870
|
+
label: "Configuration"
|
|
3871
|
+
};
|
|
3872
|
+
case "unknown":
|
|
3873
|
+
default:
|
|
3874
|
+
return {
|
|
3875
|
+
icon: "Box",
|
|
3876
|
+
className: styles45__default.default["badge--unknown"],
|
|
3877
|
+
label: "Unknown"
|
|
3878
|
+
};
|
|
3879
|
+
}
|
|
3880
|
+
};
|
|
3881
|
+
var ScrollArea = React15__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(ScrollAreaPrimitive__namespace.Root, { ref, className: cn(styles46__default.default["scroll-area"], className), ...props, children: [
|
|
3882
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Viewport, { className: styles46__default.default["scroll-area-viewport"], children }),
|
|
3562
3883
|
/* @__PURE__ */ jsxRuntime.jsx(ScrollBar, {}),
|
|
3563
3884
|
/* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Corner, {})
|
|
3564
3885
|
] }));
|
|
@@ -3569,13 +3890,13 @@ var ScrollBar = React15__namespace.forwardRef(({ className, orientation = "verti
|
|
|
3569
3890
|
ref,
|
|
3570
3891
|
orientation,
|
|
3571
3892
|
className: cn(
|
|
3572
|
-
|
|
3573
|
-
orientation === "vertical" &&
|
|
3574
|
-
orientation === "horizontal" &&
|
|
3893
|
+
styles46__default.default["scroll-bar"],
|
|
3894
|
+
orientation === "vertical" && styles46__default.default["scroll-bar--vertical"],
|
|
3895
|
+
orientation === "horizontal" && styles46__default.default["scroll-bar--horizontal"],
|
|
3575
3896
|
className
|
|
3576
3897
|
),
|
|
3577
3898
|
...props,
|
|
3578
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.ScrollAreaThumb, { className:
|
|
3899
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.ScrollAreaThumb, { className: styles46__default.default["scroll-area-thumb"] })
|
|
3579
3900
|
}
|
|
3580
3901
|
));
|
|
3581
3902
|
ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displayName;
|
|
@@ -3592,20 +3913,20 @@ var SearchBar = ({
|
|
|
3592
3913
|
const handleClear = () => {
|
|
3593
3914
|
setSearchQuery("");
|
|
3594
3915
|
};
|
|
3595
|
-
return /* @__PURE__ */ jsxRuntime.jsx("search", { className: cn(
|
|
3916
|
+
return /* @__PURE__ */ jsxRuntime.jsx("search", { className: cn(styles47__default.default["search-bar"], className), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3596
3917
|
Input,
|
|
3597
3918
|
{
|
|
3598
3919
|
placeholder,
|
|
3599
3920
|
value: searchQuery,
|
|
3600
3921
|
onChange: handleChange,
|
|
3601
|
-
className:
|
|
3602
|
-
prefix: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon4, { className:
|
|
3922
|
+
className: styles47__default.default["input"],
|
|
3923
|
+
prefix: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon4, { className: styles47__default.default["search-icon"] }),
|
|
3603
3924
|
suffix: searchQuery && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3604
3925
|
IconButton,
|
|
3605
3926
|
{
|
|
3606
3927
|
name: "X",
|
|
3607
3928
|
onClick: handleClear,
|
|
3608
|
-
className:
|
|
3929
|
+
className: styles47__default.default["clear-button"],
|
|
3609
3930
|
label: "Clear search"
|
|
3610
3931
|
}
|
|
3611
3932
|
)
|
|
@@ -3619,10 +3940,10 @@ var SectionHeading = ({
|
|
|
3619
3940
|
className
|
|
3620
3941
|
}) => {
|
|
3621
3942
|
const hasRightContent = !!renderRightContent;
|
|
3622
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(hasRightContent &&
|
|
3623
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3624
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
3625
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
3943
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(hasRightContent && styles48__default.default["section-heading--right-content"], className), children: [
|
|
3944
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles48__default.default["content"], children: [
|
|
3945
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: styles48__default.default["heading"], children: heading }),
|
|
3946
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles48__default.default["description"], children: description })
|
|
3626
3947
|
] }),
|
|
3627
3948
|
hasRightContent && renderRightContent()
|
|
3628
3949
|
] });
|
|
@@ -3659,7 +3980,7 @@ var SegmentedControls = ({
|
|
|
3659
3980
|
observer.observe(container);
|
|
3660
3981
|
return () => observer.disconnect();
|
|
3661
3982
|
}, [updateIndicator]);
|
|
3662
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: cn(
|
|
3983
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: cn(styles49__default.default["segmented-controls"], className), children: [
|
|
3663
3984
|
options.map((option) => {
|
|
3664
3985
|
const currentlyActive = option.value === value;
|
|
3665
3986
|
const showIcon = option.icon != null && effectiveDisplay !== "text-only";
|
|
@@ -3675,15 +3996,15 @@ var SegmentedControls = ({
|
|
|
3675
3996
|
"aria-label": isIconOnly ? option.label : void 0,
|
|
3676
3997
|
title: isIconOnly ? option.label : void 0,
|
|
3677
3998
|
className: cn(
|
|
3678
|
-
|
|
3679
|
-
isIconOnly &&
|
|
3680
|
-
currentlyActive ?
|
|
3999
|
+
styles49__default.default["segment"],
|
|
4000
|
+
isIconOnly && styles49__default.default["segment--icon-only"],
|
|
4001
|
+
currentlyActive ? styles49__default.default["segment--active"] : styles49__default.default["segment--inactive"]
|
|
3681
4002
|
),
|
|
3682
4003
|
onClick: () => onValueChange(option.value),
|
|
3683
4004
|
children: [
|
|
3684
|
-
showIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: option.icon, size: "xs", className:
|
|
4005
|
+
showIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: option.icon, size: "xs", className: styles49__default.default["segment-icon"] }),
|
|
3685
4006
|
showLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { children: option.label }),
|
|
3686
|
-
!isIconOnly && option.suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
4007
|
+
!isIconOnly && option.suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles49__default.default["segment-suffix"], children: option.suffix })
|
|
3687
4008
|
]
|
|
3688
4009
|
},
|
|
3689
4010
|
option.value
|
|
@@ -3692,7 +4013,7 @@ var SegmentedControls = ({
|
|
|
3692
4013
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3693
4014
|
"div",
|
|
3694
4015
|
{
|
|
3695
|
-
className:
|
|
4016
|
+
className: styles49__default.default["active-segment-indicator"],
|
|
3696
4017
|
style: { transform: `translateX(${indicator.left}px)`, width: `${indicator.width}px` }
|
|
3697
4018
|
}
|
|
3698
4019
|
)
|
|
@@ -3705,8 +4026,8 @@ var Separator3 = React15__namespace.forwardRef(({ className, orientation = "hori
|
|
|
3705
4026
|
decorative,
|
|
3706
4027
|
orientation,
|
|
3707
4028
|
className: cn(
|
|
3708
|
-
|
|
3709
|
-
orientation === "horizontal" ?
|
|
4029
|
+
styles50__default.default["separator"],
|
|
4030
|
+
orientation === "horizontal" ? styles50__default.default["separator--horizontal"] : styles50__default.default["separator--vertical"],
|
|
3710
4031
|
className
|
|
3711
4032
|
),
|
|
3712
4033
|
...props
|
|
@@ -3717,15 +4038,15 @@ var Sheet = DialogPrimitive__namespace.Root;
|
|
|
3717
4038
|
var SheetTrigger = DialogPrimitive__namespace.Trigger;
|
|
3718
4039
|
var SheetClose = DialogPrimitive__namespace.Close;
|
|
3719
4040
|
var SheetPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { container: usePortalContainer(), children });
|
|
3720
|
-
var SheetOverlay = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Overlay, { className: cn(
|
|
4041
|
+
var SheetOverlay = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Overlay, { className: cn(styles51__default.default["sheet-overlay"], className), ...props, ref }));
|
|
3721
4042
|
SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
3722
|
-
var sheetVariants = classVarianceAuthority.cva(
|
|
4043
|
+
var sheetVariants = classVarianceAuthority.cva(styles51__default.default["sheet-content"], {
|
|
3723
4044
|
variants: {
|
|
3724
4045
|
side: {
|
|
3725
|
-
top:
|
|
3726
|
-
bottom:
|
|
3727
|
-
left:
|
|
3728
|
-
right:
|
|
4046
|
+
top: styles51__default.default["sheet-content--side-top"],
|
|
4047
|
+
bottom: styles51__default.default["sheet-content--side-bottom"],
|
|
4048
|
+
left: styles51__default.default["sheet-content--side-left"],
|
|
4049
|
+
right: styles51__default.default["sheet-content--side-right"]
|
|
3729
4050
|
}
|
|
3730
4051
|
},
|
|
3731
4052
|
defaultVariants: {
|
|
@@ -3737,7 +4058,7 @@ var SheetContainer = React15__namespace.forwardRef(({ side = "right", className,
|
|
|
3737
4058
|
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children })
|
|
3738
4059
|
] }));
|
|
3739
4060
|
SheetContainer.displayName = DialogPrimitive__namespace.Content.displayName;
|
|
3740
|
-
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
4061
|
+
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles51__default.default["sheet-header-icon"], className), ...props });
|
|
3741
4062
|
SheetHeaderIcon.displayName = "SheetHeaderIcon";
|
|
3742
4063
|
var SheetHeader = ({ className, children, ...props }) => {
|
|
3743
4064
|
const childrenArray = React15__namespace.Children.toArray(children);
|
|
@@ -3747,30 +4068,52 @@ var SheetHeader = ({ className, children, ...props }) => {
|
|
|
3747
4068
|
const otherChildren = childrenArray.filter(
|
|
3748
4069
|
(child) => !(React15__namespace.isValidElement(child) && child.type === SheetHeaderIcon)
|
|
3749
4070
|
);
|
|
3750
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
4071
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles51__default.default["sheet-header"], className), ...props, children: [
|
|
3751
4072
|
icon,
|
|
3752
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3753
|
-
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { name: "X", label: "Close", className:
|
|
4073
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles51__default.default["sheet-header-text-content"], children: otherChildren }),
|
|
4074
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { name: "X", label: "Close", className: styles51__default.default["sheet-close"] }) })
|
|
3754
4075
|
] });
|
|
3755
4076
|
};
|
|
3756
4077
|
SheetHeader.displayName = "SheetHeader";
|
|
3757
|
-
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
4078
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles51__default.default["sheet-footer"], className), ...props });
|
|
3758
4079
|
SheetFooter.displayName = "SheetFooter";
|
|
3759
|
-
var SheetTitle = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn(
|
|
4080
|
+
var SheetTitle = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn(styles51__default.default["sheet-title"], className), ...props }));
|
|
3760
4081
|
SheetTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
3761
4082
|
var SheetDescription = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3762
4083
|
DialogPrimitive__namespace.Description,
|
|
3763
4084
|
{
|
|
3764
4085
|
ref,
|
|
3765
|
-
className: cn(
|
|
4086
|
+
className: cn(styles51__default.default["sheet-description"], className),
|
|
3766
4087
|
...props
|
|
3767
4088
|
}
|
|
3768
4089
|
));
|
|
3769
4090
|
SheetDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
3770
|
-
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
4091
|
+
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles51__default.default["sheet-body"], className), ...props });
|
|
3771
4092
|
SheetContent.displayName = "SheetContent";
|
|
3772
4093
|
function Skeleton({ className, ...props }) {
|
|
3773
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
4094
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles52__default.default["skeleton"], className), ...props });
|
|
4095
|
+
}
|
|
4096
|
+
var ArrowDownIcon = LucideIcons.ArrowDown;
|
|
4097
|
+
var ArrowUpIcon = LucideIcons.ArrowUp;
|
|
4098
|
+
var ArrowUpDownIcon = LucideIcons.ArrowUpDown;
|
|
4099
|
+
function SortButton({
|
|
4100
|
+
field,
|
|
4101
|
+
children,
|
|
4102
|
+
icon,
|
|
4103
|
+
sortField,
|
|
4104
|
+
sortDirection,
|
|
4105
|
+
onSort
|
|
4106
|
+
}) {
|
|
4107
|
+
const isActive = sortField === field;
|
|
4108
|
+
const isAscending = sortDirection === "asc";
|
|
4109
|
+
const handleClick = () => {
|
|
4110
|
+
onSort(field);
|
|
4111
|
+
};
|
|
4112
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: handleClick, className: styles53__default.default["sort-button"], children: [
|
|
4113
|
+
icon,
|
|
4114
|
+
children,
|
|
4115
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles53__default.default["arrow-container"], children: isActive ? isAscending ? /* @__PURE__ */ jsxRuntime.jsx(ArrowUpIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowUpDownIcon, { className: styles53__default.default["arrow-up-down-icon"] }) })
|
|
4116
|
+
] });
|
|
3774
4117
|
}
|
|
3775
4118
|
var ChevronDownIcon4 = LucideIcons.ChevronDown;
|
|
3776
4119
|
function SortSelector({
|
|
@@ -3814,9 +4157,9 @@ function SortSelector({
|
|
|
3814
4157
|
setCurrentPage?.(1);
|
|
3815
4158
|
};
|
|
3816
4159
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
3817
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "tertiary", className: cn(
|
|
4160
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "tertiary", className: cn(styles54__default.default["sort-selector-trigger"], className), children: [
|
|
3818
4161
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: currentLabel }),
|
|
3819
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon4, { className:
|
|
4162
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon4, { className: styles54__default.default["chevron-down-icon"] })
|
|
3820
4163
|
] }) }),
|
|
3821
4164
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3822
4165
|
DropdownMenuContent,
|
|
@@ -3837,61 +4180,39 @@ function SortSelector({
|
|
|
3837
4180
|
children: option.label
|
|
3838
4181
|
},
|
|
3839
4182
|
option.value
|
|
3840
|
-
)) })
|
|
3841
|
-
]
|
|
3842
|
-
}
|
|
3843
|
-
)
|
|
3844
|
-
] });
|
|
3845
|
-
}
|
|
3846
|
-
var Switch = React15__namespace.forwardRef(
|
|
3847
|
-
({ className, size = "md", variant = "default", thumbIcon, ...props }, ref) => {
|
|
3848
|
-
const iconSize = size === "sm" ? "xs" : size === "md" ? "sm" : "md";
|
|
3849
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3850
|
-
SwitchPrimitives__namespace.Root,
|
|
3851
|
-
{
|
|
3852
|
-
className: cn(styles51__default.default["switch"], styles51__default.default[size], styles51__default.default[variant], className),
|
|
3853
|
-
...props,
|
|
3854
|
-
ref,
|
|
3855
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(SwitchPrimitives__namespace.Thumb, { className: cn(styles51__default.default["thumb"], styles51__default.default[size]), children: thumbIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: thumbIcon, className: styles51__default.default["thumb-icon"], size: iconSize }) })
|
|
3856
|
-
}
|
|
3857
|
-
);
|
|
3858
|
-
}
|
|
3859
|
-
);
|
|
3860
|
-
Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
|
|
3861
|
-
var ArrowDownIcon = LucideIcons.ArrowDown;
|
|
3862
|
-
var ArrowUpIcon = LucideIcons.ArrowUp;
|
|
3863
|
-
var ArrowUpDownIcon = LucideIcons.ArrowUpDown;
|
|
3864
|
-
function SortButton({
|
|
3865
|
-
field,
|
|
3866
|
-
children,
|
|
3867
|
-
icon,
|
|
3868
|
-
sortField,
|
|
3869
|
-
sortDirection,
|
|
3870
|
-
onSort
|
|
3871
|
-
}) {
|
|
3872
|
-
const isActive = sortField === field;
|
|
3873
|
-
const isAscending = sortDirection === "asc";
|
|
3874
|
-
const handleClick = () => {
|
|
3875
|
-
onSort(field);
|
|
3876
|
-
};
|
|
3877
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: handleClick, className: styles52__default.default["sort-button"], children: [
|
|
3878
|
-
icon,
|
|
3879
|
-
children,
|
|
3880
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles52__default.default["arrow-container"], children: isActive ? isAscending ? /* @__PURE__ */ jsxRuntime.jsx(ArrowUpIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowUpDownIcon, { className: styles52__default.default["arrow-up-down-icon"] }) })
|
|
4183
|
+
)) })
|
|
4184
|
+
]
|
|
4185
|
+
}
|
|
4186
|
+
)
|
|
3881
4187
|
] });
|
|
3882
4188
|
}
|
|
3883
|
-
var
|
|
4189
|
+
var Switch = React15__namespace.forwardRef(
|
|
4190
|
+
({ className, size = "md", variant = "default", thumbIcon, ...props }, ref) => {
|
|
4191
|
+
const iconSize = size === "sm" ? "xs" : size === "md" ? "sm" : "md";
|
|
4192
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4193
|
+
SwitchPrimitives__namespace.Root,
|
|
4194
|
+
{
|
|
4195
|
+
className: cn(styles55__default.default["switch"], styles55__default.default[size], styles55__default.default[variant], className),
|
|
4196
|
+
...props,
|
|
4197
|
+
ref,
|
|
4198
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SwitchPrimitives__namespace.Thumb, { className: cn(styles55__default.default["thumb"], styles55__default.default[size]), children: thumbIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: thumbIcon, className: styles55__default.default["thumb-icon"], size: iconSize }) })
|
|
4199
|
+
}
|
|
4200
|
+
);
|
|
4201
|
+
}
|
|
4202
|
+
);
|
|
4203
|
+
Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
|
|
4204
|
+
var tableElevationVariants = generateElevationVariants(styles56__default.default, "table", ELEVATION.RAISED);
|
|
3884
4205
|
var TableContainer = React15__namespace.forwardRef(({ className, style, elevation = ELEVATION.RAISED, border, columns, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3885
4206
|
"div",
|
|
3886
4207
|
{
|
|
3887
4208
|
className: cn(
|
|
3888
|
-
|
|
4209
|
+
styles56__default.default["table"],
|
|
3889
4210
|
tableElevationVariants({ elevation }),
|
|
3890
|
-
border &&
|
|
4211
|
+
border && styles56__default.default["table-border"],
|
|
3891
4212
|
className
|
|
3892
4213
|
),
|
|
3893
4214
|
style: columns ? { ...style, "--table-columns": columns } : style,
|
|
3894
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className:
|
|
4215
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className: styles56__default.default["table-inner"], ...props })
|
|
3895
4216
|
}
|
|
3896
4217
|
));
|
|
3897
4218
|
TableContainer.displayName = "Table";
|
|
@@ -3900,18 +4221,18 @@ var TableHeader = React15__namespace.forwardRef(({ className, sticky = false, ..
|
|
|
3900
4221
|
{
|
|
3901
4222
|
ref,
|
|
3902
4223
|
className: cn(
|
|
3903
|
-
|
|
3904
|
-
sticky === "container" &&
|
|
3905
|
-
sticky === "page" &&
|
|
4224
|
+
styles56__default.default["table-header"],
|
|
4225
|
+
sticky === "container" && styles56__default.default["table-header--sticky-container"],
|
|
4226
|
+
sticky === "page" && styles56__default.default["table-header--sticky-page"],
|
|
3906
4227
|
className
|
|
3907
4228
|
),
|
|
3908
4229
|
...props
|
|
3909
4230
|
}
|
|
3910
4231
|
));
|
|
3911
4232
|
TableHeader.displayName = "TableHeader";
|
|
3912
|
-
var TableBody = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: cn(
|
|
4233
|
+
var TableBody = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: cn(styles56__default.default["table-body"], className), ...props }));
|
|
3913
4234
|
TableBody.displayName = "TableBody";
|
|
3914
|
-
var TableFooter = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tfoot", { ref, className: cn(
|
|
4235
|
+
var TableFooter = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tfoot", { ref, className: cn(styles56__default.default["table-footer"], className), ...props }));
|
|
3915
4236
|
TableFooter.displayName = "TableFooter";
|
|
3916
4237
|
var TableRow = React15__namespace.forwardRef(
|
|
3917
4238
|
({ className, clickable, href, hrefLabel = "View details", children, onClick, ...props }, ref) => {
|
|
@@ -3928,15 +4249,15 @@ var TableRow = React15__namespace.forwardRef(
|
|
|
3928
4249
|
{
|
|
3929
4250
|
ref,
|
|
3930
4251
|
className: cn(
|
|
3931
|
-
|
|
3932
|
-
isClickable &&
|
|
3933
|
-
href &&
|
|
4252
|
+
styles56__default.default["table-row"],
|
|
4253
|
+
isClickable && styles56__default.default["table-row--clickable"],
|
|
4254
|
+
href && styles56__default.default["table-row--linked"],
|
|
3934
4255
|
className
|
|
3935
4256
|
),
|
|
3936
4257
|
onClick: onClick ? handleClick : void 0,
|
|
3937
4258
|
...props,
|
|
3938
4259
|
children: [
|
|
3939
|
-
href && /* @__PURE__ */ jsxRuntime.jsx("a", { href, className:
|
|
4260
|
+
href && /* @__PURE__ */ jsxRuntime.jsx("a", { href, className: styles56__default.default["table-row-link"], "data-table-row-link": true, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles56__default.default["table-row-link-label"], children: hrefLabel }) }),
|
|
3940
4261
|
children
|
|
3941
4262
|
]
|
|
3942
4263
|
}
|
|
@@ -3944,18 +4265,18 @@ var TableRow = React15__namespace.forwardRef(
|
|
|
3944
4265
|
}
|
|
3945
4266
|
);
|
|
3946
4267
|
TableRow.displayName = "TableRow";
|
|
3947
|
-
var TableHead = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("th", { ref, className: cn(
|
|
4268
|
+
var TableHead = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("th", { ref, className: cn(styles56__default.default["table-head"], className), ...props }));
|
|
3948
4269
|
TableHead.displayName = "TableHead";
|
|
3949
|
-
var TableCell = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("td", { ref, className: cn(
|
|
4270
|
+
var TableCell = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("td", { ref, className: cn(styles56__default.default["table-cell"], className), ...props }));
|
|
3950
4271
|
TableCell.displayName = "TableCell";
|
|
3951
|
-
var TableCaption = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("caption", { ref, className: cn(
|
|
4272
|
+
var TableCaption = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("caption", { ref, className: cn(styles56__default.default["table-caption"], className), ...props }));
|
|
3952
4273
|
TableCaption.displayName = "TableCaption";
|
|
3953
4274
|
var TabsContainer = TabsPrimitive__namespace.Root;
|
|
3954
|
-
var TabsList = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { ref, className: cn(
|
|
4275
|
+
var TabsList = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { ref, className: cn(styles57__default.default["tabs-list"], className), ...props }));
|
|
3955
4276
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
3956
|
-
var TabsTrigger = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, { ref, className: cn(
|
|
4277
|
+
var TabsTrigger = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, { ref, className: cn(styles57__default.default["tabs-trigger"], className), ...props }));
|
|
3957
4278
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
3958
|
-
var TabsContent = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Content, { ref, className: cn(
|
|
4279
|
+
var TabsContent = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Content, { ref, className: cn(styles57__default.default["tabs-content"], className), ...props }));
|
|
3959
4280
|
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
3960
4281
|
var Tabs = ({
|
|
3961
4282
|
id,
|
|
@@ -3974,17 +4295,17 @@ var Tabs = ({
|
|
|
3974
4295
|
};
|
|
3975
4296
|
const renderIcon = (icon) => {
|
|
3976
4297
|
if (icon) {
|
|
3977
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, size: "sm", className:
|
|
4298
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, size: "sm", className: styles58__default.default["tabs-icon"] });
|
|
3978
4299
|
}
|
|
3979
4300
|
return null;
|
|
3980
4301
|
};
|
|
3981
4302
|
const indicatorClass = cn(
|
|
3982
|
-
|
|
3983
|
-
isFilled ?
|
|
4303
|
+
styles58__default.default["active-tab-indicator"],
|
|
4304
|
+
isFilled ? styles58__default.default["active-tab-indicator--filled"] : styles58__default.default["active-tab-indicator--transparent"]
|
|
3984
4305
|
);
|
|
3985
4306
|
const renderActiveStyle = (isActive) => {
|
|
3986
4307
|
if (staticRender) {
|
|
3987
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(indicatorClass,
|
|
4308
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(indicatorClass, styles58__default.default["active-tab-indicator--static"]) });
|
|
3988
4309
|
}
|
|
3989
4310
|
if (isActive) {
|
|
3990
4311
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4003,14 +4324,14 @@ var Tabs = ({
|
|
|
4003
4324
|
{
|
|
4004
4325
|
value: activeTab,
|
|
4005
4326
|
onValueChange: handleValueChange,
|
|
4006
|
-
className: cn(
|
|
4327
|
+
className: cn(styles58__default.default["tabs"], className),
|
|
4007
4328
|
children: [
|
|
4008
4329
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4009
4330
|
TabsList,
|
|
4010
4331
|
{
|
|
4011
4332
|
className: cn(
|
|
4012
|
-
|
|
4013
|
-
isFilled ?
|
|
4333
|
+
styles58__default.default["tabs-list"],
|
|
4334
|
+
isFilled ? styles58__default.default["tabs-list--filled"] : styles58__default.default["tabs-list--transparent"]
|
|
4014
4335
|
),
|
|
4015
4336
|
children: items.map(({ label, value, icon, suffix, triggerProps }) => {
|
|
4016
4337
|
const isActive = activeTab === value;
|
|
@@ -4021,8 +4342,8 @@ var Tabs = ({
|
|
|
4021
4342
|
key: value,
|
|
4022
4343
|
value,
|
|
4023
4344
|
className: cn(
|
|
4024
|
-
|
|
4025
|
-
isFilled ?
|
|
4345
|
+
styles58__default.default["tabs-trigger"],
|
|
4346
|
+
isFilled ? styles58__default.default["tabs-trigger--filled"] : styles58__default.default["tabs-trigger--transparent"],
|
|
4026
4347
|
triggerProps?.className
|
|
4027
4348
|
)
|
|
4028
4349
|
},
|
|
@@ -4038,7 +4359,7 @@ var Tabs = ({
|
|
|
4038
4359
|
TabsContent,
|
|
4039
4360
|
{
|
|
4040
4361
|
value,
|
|
4041
|
-
className:
|
|
4362
|
+
className: styles58__default.default["content"],
|
|
4042
4363
|
forceMount: staticRender || void 0,
|
|
4043
4364
|
children: content
|
|
4044
4365
|
},
|
|
@@ -4050,175 +4371,28 @@ var Tabs = ({
|
|
|
4050
4371
|
};
|
|
4051
4372
|
var Textarea = React15__namespace.forwardRef(
|
|
4052
4373
|
({ className, ...props }, ref) => {
|
|
4053
|
-
return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(
|
|
4374
|
+
return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(styles59__default.default["textarea"], className), ref, ...props });
|
|
4054
4375
|
}
|
|
4055
4376
|
);
|
|
4056
4377
|
Textarea.displayName = "Textarea";
|
|
4057
|
-
var DEFAULT_LOCALE = "en-US";
|
|
4058
|
-
var DEFAULT_ABSOLUTE_OPTIONS = {
|
|
4059
|
-
year: "numeric",
|
|
4060
|
-
month: "short",
|
|
4061
|
-
day: "2-digit",
|
|
4062
|
-
hour: "2-digit",
|
|
4063
|
-
minute: "2-digit",
|
|
4064
|
-
second: "2-digit",
|
|
4065
|
-
hour12: false,
|
|
4066
|
-
timeZoneName: "short"
|
|
4067
|
-
};
|
|
4068
|
-
var RELATIVE_DIVISIONS = [
|
|
4069
|
-
{ amount: 60, unit: "second" },
|
|
4070
|
-
{ amount: 60, unit: "minute" },
|
|
4071
|
-
{ amount: 24, unit: "hour" },
|
|
4072
|
-
{ amount: 7, unit: "day" },
|
|
4073
|
-
{ amount: 4.34524, unit: "week" },
|
|
4074
|
-
{ amount: 12, unit: "month" },
|
|
4075
|
-
{ amount: Number.POSITIVE_INFINITY, unit: "year" }
|
|
4076
|
-
];
|
|
4077
|
-
var LIVE_INTERVAL_MS = 3e4;
|
|
4078
|
-
var MINUTE_MS = 6e4;
|
|
4079
|
-
var HOUR_MS = 60 * MINUTE_MS;
|
|
4080
|
-
var DAY_MS = 24 * HOUR_MS;
|
|
4081
|
-
var YEAR_MS = 365.25 * DAY_MS;
|
|
4082
|
-
var MONTH_MS = YEAR_MS / 12;
|
|
4083
|
-
var JUST_NOW_MS = 45e3;
|
|
4084
|
-
var COARSE_AFTER_MS = 90 * DAY_MS;
|
|
4085
|
-
var FINE_UNITS = [
|
|
4086
|
-
{ ms: DAY_MS, unit: "day" },
|
|
4087
|
-
{ ms: HOUR_MS, unit: "hour" },
|
|
4088
|
-
{ ms: MINUTE_MS, unit: "minute" }
|
|
4089
|
-
];
|
|
4090
|
-
var COARSE_UNITS = [
|
|
4091
|
-
{ ms: YEAR_MS, unit: "year" },
|
|
4092
|
-
{ ms: MONTH_MS, unit: "month" }
|
|
4093
|
-
];
|
|
4094
|
-
var NO_DATE_PLACEHOLDER = "---";
|
|
4095
|
-
function isMissing(value) {
|
|
4096
|
-
return value == null || typeof value === "string" && value.trim() === "";
|
|
4097
|
-
}
|
|
4098
|
-
function toDate(value) {
|
|
4099
|
-
const date = value instanceof Date ? value : new Date(value);
|
|
4100
|
-
return Number.isNaN(date.getTime()) ? null : date;
|
|
4101
|
-
}
|
|
4102
|
-
function formatAbsolute(date, timeZone, options, locale) {
|
|
4103
|
-
return new Intl.DateTimeFormat(locale, { ...options, timeZone }).format(date);
|
|
4104
|
-
}
|
|
4105
|
-
function formatRelative(date, now, locale) {
|
|
4106
|
-
if (Math.abs(date.getTime() - now.getTime()) < JUST_NOW_MS) return "Just now";
|
|
4107
|
-
let duration = (date.getTime() - now.getTime()) / 1e3;
|
|
4108
|
-
const rtf = new Intl.RelativeTimeFormat(locale, { numeric: "auto" });
|
|
4109
|
-
for (const division of RELATIVE_DIVISIONS) {
|
|
4110
|
-
if (Math.abs(duration) < division.amount) {
|
|
4111
|
-
return rtf.format(Math.round(duration), division.unit);
|
|
4112
|
-
}
|
|
4113
|
-
duration /= division.amount;
|
|
4114
|
-
}
|
|
4115
|
-
return "Just now";
|
|
4116
|
-
}
|
|
4117
|
-
function measureSpan(spanMs) {
|
|
4118
|
-
const units = spanMs < COARSE_AFTER_MS ? FINE_UNITS : COARSE_UNITS;
|
|
4119
|
-
const index = units.findIndex(({ ms: ms2 }) => spanMs >= ms2);
|
|
4120
|
-
if (index === -1) return { value: 1, unit: units[units.length - 1].unit };
|
|
4121
|
-
const { ms, unit } = units[index];
|
|
4122
|
-
const value = Math.round(spanMs / ms);
|
|
4123
|
-
const next = units[index - 1];
|
|
4124
|
-
if (next && value * ms >= next.ms) {
|
|
4125
|
-
return { value: Math.round(spanMs / next.ms), unit: next.unit };
|
|
4126
|
-
}
|
|
4127
|
-
return { value, unit };
|
|
4128
|
-
}
|
|
4129
|
-
function formatCountdown(date, now, locale) {
|
|
4130
|
-
const spanMs = date.getTime() - now.getTime();
|
|
4131
|
-
if (spanMs <= 0) return null;
|
|
4132
|
-
const { value, unit } = measureSpan(spanMs);
|
|
4133
|
-
return new Intl.NumberFormat(locale, { style: "unit", unit, unitDisplay: "long" }).format(value);
|
|
4134
|
-
}
|
|
4135
|
-
function DatePlaceholder({
|
|
4136
|
-
label,
|
|
4137
|
-
className,
|
|
4138
|
-
...props
|
|
4139
|
-
}) {
|
|
4140
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: cn(styles57__default.default["format-date"], className), ...props, children: [
|
|
4141
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles57__default.default["visually-hidden"], children: label }),
|
|
4142
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: NO_DATE_PLACEHOLDER })
|
|
4143
|
-
] });
|
|
4144
|
-
}
|
|
4145
|
-
function FormatDate({
|
|
4146
|
-
date,
|
|
4147
|
-
displayAs = "absolute",
|
|
4148
|
-
timeZone = "UTC",
|
|
4149
|
-
locale = DEFAULT_LOCALE,
|
|
4150
|
-
tooltip = true,
|
|
4151
|
-
live = true,
|
|
4152
|
-
absoluteOptions,
|
|
4153
|
-
className,
|
|
4154
|
-
...props
|
|
4155
|
-
}) {
|
|
4156
|
-
const missing = isMissing(date);
|
|
4157
|
-
const parsed = React15__namespace.useMemo(() => isMissing(date) ? null : toDate(date), [date]);
|
|
4158
|
-
const [now, setNow] = React15__namespace.useState(() => /* @__PURE__ */ new Date());
|
|
4159
|
-
const [mounted, setMounted] = React15__namespace.useState(false);
|
|
4160
|
-
const isAbsolute = displayAs === "absolute";
|
|
4161
|
-
React15__namespace.useEffect(() => setMounted(true), []);
|
|
4162
|
-
React15__namespace.useEffect(() => {
|
|
4163
|
-
if (isAbsolute || !live) return;
|
|
4164
|
-
const id = setInterval(() => setNow(/* @__PURE__ */ new Date()), LIVE_INTERVAL_MS);
|
|
4165
|
-
return () => clearInterval(id);
|
|
4166
|
-
}, [isAbsolute, live]);
|
|
4167
|
-
if (missing) {
|
|
4168
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DatePlaceholder, { label: "No date", className, ...props });
|
|
4169
|
-
}
|
|
4170
|
-
if (!parsed) {
|
|
4171
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(styles57__default.default["format-date"], className), ...props, children: "Invalid date" });
|
|
4172
|
-
}
|
|
4173
|
-
const machineValue = parsed.toISOString();
|
|
4174
|
-
const absolute = formatAbsolute(
|
|
4175
|
-
parsed,
|
|
4176
|
-
timeZone,
|
|
4177
|
-
absoluteOptions ?? DEFAULT_ABSOLUTE_OPTIONS,
|
|
4178
|
-
locale
|
|
4179
|
-
);
|
|
4180
|
-
if (isAbsolute) {
|
|
4181
|
-
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(styles57__default.default["format-date"], className), ...props, children: absolute });
|
|
4182
|
-
}
|
|
4183
|
-
const measured = !mounted ? absolute : displayAs === "relative" ? formatRelative(parsed, now, locale) : formatCountdown(parsed, now, locale);
|
|
4184
|
-
if (measured === null) {
|
|
4185
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DatePlaceholder, { label: "Date has passed", className, ...props });
|
|
4186
|
-
}
|
|
4187
|
-
if (!tooltip) {
|
|
4188
|
-
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(styles57__default.default["format-date"], className), ...props, children: measured });
|
|
4189
|
-
}
|
|
4190
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
4191
|
-
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4192
|
-
"time",
|
|
4193
|
-
{
|
|
4194
|
-
dateTime: machineValue,
|
|
4195
|
-
tabIndex: 0,
|
|
4196
|
-
className: cn(styles57__default.default["format-date"], styles57__default.default["format-date--interactive"], className),
|
|
4197
|
-
...props,
|
|
4198
|
-
children: measured
|
|
4199
|
-
}
|
|
4200
|
-
) }),
|
|
4201
|
-
/* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: absolute })
|
|
4202
|
-
] }) });
|
|
4203
|
-
}
|
|
4204
4378
|
var XIcon2 = LucideIcons.X;
|
|
4205
4379
|
var ToastProvider = ToastPrimitives__namespace.Provider;
|
|
4206
4380
|
var ToastViewport = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4207
4381
|
ToastPrimitives__namespace.Viewport,
|
|
4208
4382
|
{
|
|
4209
4383
|
ref,
|
|
4210
|
-
className: cn(
|
|
4384
|
+
className: cn(styles60__default.default["toast-viewport"], className),
|
|
4211
4385
|
...props
|
|
4212
4386
|
}
|
|
4213
4387
|
));
|
|
4214
4388
|
ToastViewport.displayName = ToastPrimitives__namespace.Viewport.displayName;
|
|
4215
|
-
var toastVariants = classVarianceAuthority.cva(
|
|
4389
|
+
var toastVariants = classVarianceAuthority.cva(styles60__default.default["toast"], {
|
|
4216
4390
|
variants: {
|
|
4217
4391
|
variant: {
|
|
4218
|
-
default:
|
|
4219
|
-
danger:
|
|
4220
|
-
warning:
|
|
4221
|
-
success:
|
|
4392
|
+
default: styles60__default.default["toast--default"],
|
|
4393
|
+
danger: styles60__default.default["toast--danger"],
|
|
4394
|
+
warning: styles60__default.default["toast--warning"],
|
|
4395
|
+
success: styles60__default.default["toast--success"]
|
|
4222
4396
|
}
|
|
4223
4397
|
},
|
|
4224
4398
|
defaultVariants: {
|
|
@@ -4236,17 +4410,17 @@ var ToastContainer = React15__namespace.forwardRef(({ className, variant, ...pro
|
|
|
4236
4410
|
);
|
|
4237
4411
|
});
|
|
4238
4412
|
ToastContainer.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
4239
|
-
var ToastAction = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Action, { ref, className: cn(
|
|
4413
|
+
var ToastAction = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Action, { ref, className: cn(styles60__default.default["toast-action"], className), ...props }));
|
|
4240
4414
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
4241
|
-
var ToastClose = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Close, { ref, className: cn(
|
|
4415
|
+
var ToastClose = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Close, { ref, className: cn(styles60__default.default["toast-close"], className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(XIcon2, { className: styles60__default.default["toast-close-icon"] }) }));
|
|
4242
4416
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
4243
|
-
var ToastTitle = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(
|
|
4417
|
+
var ToastTitle = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(styles60__default.default["toast-title"], className), ...props }));
|
|
4244
4418
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
4245
4419
|
var ToastDescription = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4246
4420
|
ToastPrimitives__namespace.Description,
|
|
4247
4421
|
{
|
|
4248
4422
|
ref,
|
|
4249
|
-
className: cn(
|
|
4423
|
+
className: cn(styles60__default.default["toast-description"], className),
|
|
4250
4424
|
...props
|
|
4251
4425
|
}
|
|
4252
4426
|
));
|
|
@@ -4381,14 +4555,14 @@ var Toast = ({ toast: toast2 }) => {
|
|
|
4381
4555
|
};
|
|
4382
4556
|
const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
|
|
4383
4557
|
return /* @__PURE__ */ jsxRuntime.jsxs(ToastContainer, { ...props, variant, children: [
|
|
4384
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4385
|
-
title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4558
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles61__default.default["toast-copy"], children: [
|
|
4559
|
+
title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles61__default.default["toast-title-container"], children: [
|
|
4386
4560
|
displayIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
|
|
4387
4561
|
/* @__PURE__ */ jsxRuntime.jsx(ToastTitle, { children: title })
|
|
4388
4562
|
] }),
|
|
4389
4563
|
description && /* @__PURE__ */ jsxRuntime.jsx(ToastDescription, { children: description })
|
|
4390
4564
|
] }),
|
|
4391
|
-
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4565
|
+
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles61__default.default["toast-action"], children: action }),
|
|
4392
4566
|
/* @__PURE__ */ jsxRuntime.jsx(ToastClose, {})
|
|
4393
4567
|
] });
|
|
4394
4568
|
};
|
|
@@ -4418,7 +4592,7 @@ var TruncatedDescription = ({
|
|
|
4418
4592
|
e.stopPropagation();
|
|
4419
4593
|
setExpanded(!expanded);
|
|
4420
4594
|
};
|
|
4421
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
4595
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles62__default.default["truncated-description"], className), children: [
|
|
4422
4596
|
/* @__PURE__ */ jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
|
|
4423
4597
|
isLongDescription && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
|
|
4424
4598
|
] });
|
|
@@ -4426,125 +4600,6 @@ var TruncatedDescription = ({
|
|
|
4426
4600
|
var removeHtmlTags = (html) => {
|
|
4427
4601
|
return html.replace(/<[^>]*>/g, "");
|
|
4428
4602
|
};
|
|
4429
|
-
var Heading = React15.forwardRef(
|
|
4430
|
-
({ className, as, displayAs, children, ...props }, ref) => {
|
|
4431
|
-
const displayClasses = {
|
|
4432
|
-
h1: styles61__default.default["h1"],
|
|
4433
|
-
h2: styles61__default.default["h2"],
|
|
4434
|
-
h3: styles61__default.default["h3"],
|
|
4435
|
-
h4: styles61__default.default["h4"],
|
|
4436
|
-
h5: styles61__default.default["h5"],
|
|
4437
|
-
h6: styles61__default.default["h6"]
|
|
4438
|
-
};
|
|
4439
|
-
const displayClass = displayClasses[displayAs] || displayClasses[as];
|
|
4440
|
-
const HeadingTag = as;
|
|
4441
|
-
return /* @__PURE__ */ jsxRuntime.jsx(HeadingTag, { ref, className: cn(displayClass, className), ...props, children });
|
|
4442
|
-
}
|
|
4443
|
-
);
|
|
4444
|
-
Heading.displayName = "Heading";
|
|
4445
|
-
var ControlStatusBadge = ({ status, display = "both" }) => {
|
|
4446
|
-
const config = getStatusConfig(status);
|
|
4447
|
-
if (config.subLabel) {
|
|
4448
|
-
if (display === "icon-only") {
|
|
4449
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display: "icon-only", className: config.className, variant: null, children: config.label });
|
|
4450
|
-
}
|
|
4451
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles62__default.default["split-badge"], config.className), children: [
|
|
4452
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles62__default.default["split-badge__status"], children: [
|
|
4453
|
-
display !== "text-only" && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: config.icon, size: "xs", className: styles62__default.default["icon"] }),
|
|
4454
|
-
config.label
|
|
4455
|
-
] }),
|
|
4456
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles62__default.default["split-badge__sub-status"], children: config.subLabel })
|
|
4457
|
-
] });
|
|
4458
|
-
}
|
|
4459
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display, className: config.className, variant: null, children: config.label });
|
|
4460
|
-
};
|
|
4461
|
-
var getStatusConfig = (status) => {
|
|
4462
|
-
switch (status) {
|
|
4463
|
-
case "in-progress":
|
|
4464
|
-
return {
|
|
4465
|
-
icon: "Clock",
|
|
4466
|
-
className: styles62__default.default["badge--in-progress"],
|
|
4467
|
-
label: "In Progress"
|
|
4468
|
-
};
|
|
4469
|
-
case "not-started":
|
|
4470
|
-
return {
|
|
4471
|
-
icon: "CircleDashed",
|
|
4472
|
-
className: styles62__default.default["badge--not-started"],
|
|
4473
|
-
label: "Not Started"
|
|
4474
|
-
};
|
|
4475
|
-
case "ready-for-review":
|
|
4476
|
-
return {
|
|
4477
|
-
icon: "ClipboardCheck",
|
|
4478
|
-
className: styles62__default.default["badge--ready-for-review"],
|
|
4479
|
-
label: "Ready for Review"
|
|
4480
|
-
};
|
|
4481
|
-
case "in-review":
|
|
4482
|
-
return {
|
|
4483
|
-
icon: "Eye",
|
|
4484
|
-
className: styles62__default.default["badge--in-review"],
|
|
4485
|
-
label: "In Review"
|
|
4486
|
-
};
|
|
4487
|
-
case "comment":
|
|
4488
|
-
return {
|
|
4489
|
-
icon: "Eye",
|
|
4490
|
-
className: styles62__default.default["badge--comment"],
|
|
4491
|
-
label: "In Review",
|
|
4492
|
-
subLabel: "General"
|
|
4493
|
-
};
|
|
4494
|
-
case "not-applicable":
|
|
4495
|
-
return {
|
|
4496
|
-
icon: "MinusCircle",
|
|
4497
|
-
className: styles62__default.default["badge--not-applicable"],
|
|
4498
|
-
label: "Not Applicable"
|
|
4499
|
-
};
|
|
4500
|
-
case "accepted":
|
|
4501
|
-
return {
|
|
4502
|
-
icon: "Eye",
|
|
4503
|
-
className: styles62__default.default["badge--accepted"],
|
|
4504
|
-
label: "In Review",
|
|
4505
|
-
subLabel: "Accepted"
|
|
4506
|
-
};
|
|
4507
|
-
case "questioned":
|
|
4508
|
-
return {
|
|
4509
|
-
icon: "Eye",
|
|
4510
|
-
className: styles62__default.default["badge--question"],
|
|
4511
|
-
label: "In Review",
|
|
4512
|
-
subLabel: "Questioned"
|
|
4513
|
-
};
|
|
4514
|
-
case "compliant":
|
|
4515
|
-
return {
|
|
4516
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(CircleCheckFillIcon, {}),
|
|
4517
|
-
className: styles62__default.default["badge--compliant"],
|
|
4518
|
-
label: "Compliant"
|
|
4519
|
-
};
|
|
4520
|
-
case "non-compliant":
|
|
4521
|
-
return {
|
|
4522
|
-
icon: "X",
|
|
4523
|
-
className: styles62__default.default["badge--non-compliant"],
|
|
4524
|
-
label: "Non-compliant"
|
|
4525
|
-
};
|
|
4526
|
-
default:
|
|
4527
|
-
return {
|
|
4528
|
-
icon: "CircleDashed",
|
|
4529
|
-
className: styles62__default.default["badge--not-started"],
|
|
4530
|
-
label: status
|
|
4531
|
-
};
|
|
4532
|
-
}
|
|
4533
|
-
};
|
|
4534
|
-
var CircleCheckFillIcon = ({ className }) => {
|
|
4535
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4536
|
-
"svg",
|
|
4537
|
-
{
|
|
4538
|
-
className,
|
|
4539
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4540
|
-
width: "12",
|
|
4541
|
-
height: "12",
|
|
4542
|
-
viewBox: "0 0 24 24",
|
|
4543
|
-
fill: "currentColor",
|
|
4544
|
-
children: /* @__PURE__ */ jsxRuntime.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" })
|
|
4545
|
-
}
|
|
4546
|
-
);
|
|
4547
|
-
};
|
|
4548
4603
|
var Portal8 = React15__namespace.forwardRef((_props, ref) => {
|
|
4549
4604
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { id: PORTAL_ROOT_ID, ref });
|
|
4550
4605
|
});
|
|
@@ -4875,8 +4930,10 @@ exports.buttonVariants = buttonVariants;
|
|
|
4875
4930
|
exports.reducer = reducer;
|
|
4876
4931
|
exports.scheduleHighlight = scheduleHighlight;
|
|
4877
4932
|
exports.toast = toast;
|
|
4933
|
+
exports.useDropdownMenuSearchQuery = useDropdownMenuSearchQuery;
|
|
4878
4934
|
exports.useFormField = useFormField;
|
|
4879
4935
|
exports.usePortalContainer = usePortalContainer;
|
|
4936
|
+
exports.useSelectSearchQuery = useSelectSearchQuery;
|
|
4880
4937
|
exports.useTheme = useTheme;
|
|
4881
4938
|
exports.useToast = useToast;
|
|
4882
4939
|
//# sourceMappingURL=index.cjs.map
|