@eqtylab/equality 4.3.1 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/dist/index.cjs +1167 -1087
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +142 -121
- package/dist/index.d.ts +142 -121
- package/dist/index.js +1133 -1055
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.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
|
{
|
|
@@ -2349,9 +2382,15 @@ var FilterDropdown = ({
|
|
|
2349
2382
|
const filteredOptions = options.filter(
|
|
2350
2383
|
(option) => option.value && option.value.trim() !== "" && option.label && option.label.trim() !== ""
|
|
2351
2384
|
);
|
|
2385
|
+
const handleClearAll = (event) => {
|
|
2386
|
+
event.preventDefault();
|
|
2387
|
+
const menu = event.currentTarget.closest('[role="menu"]');
|
|
2388
|
+
(menu?.querySelector("[data-dropdown-search]") ?? menu)?.focus();
|
|
2389
|
+
onClearAll();
|
|
2390
|
+
};
|
|
2352
2391
|
const clearAll = (className) => (
|
|
2353
|
-
//
|
|
2354
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuItem, { textValue: "", onSelect:
|
|
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" }) })
|
|
2355
2394
|
);
|
|
2356
2395
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
2357
2396
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -2376,7 +2415,7 @@ var FilterDropdown = ({
|
|
|
2376
2415
|
className: cn(styles24__default.default["dropdown-menu-content"], contentClassName),
|
|
2377
2416
|
children: [
|
|
2378
2417
|
searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2379
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, {
|
|
2418
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, { placeholder: searchPlaceholder, "aria-label": label }),
|
|
2380
2419
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
|
|
2381
2420
|
] }),
|
|
2382
2421
|
!searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -2400,7 +2439,7 @@ var FilterDropdown = ({
|
|
|
2400
2439
|
);
|
|
2401
2440
|
}),
|
|
2402
2441
|
searchable && hasSelectedFilters && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles24__default.default["clear-all-footer"], children: [
|
|
2403
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {}),
|
|
2442
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, { persistent: true }),
|
|
2404
2443
|
clearAll(styles24__default.default["clear-all"])
|
|
2405
2444
|
] })
|
|
2406
2445
|
]
|
|
@@ -2490,9 +2529,172 @@ var FormMessage = React15__namespace.forwardRef(({ className, children, ...props
|
|
|
2490
2529
|
if (!body) {
|
|
2491
2530
|
return null;
|
|
2492
2531
|
}
|
|
2493
|
-
return /* @__PURE__ */ jsxRuntime.jsx("p", { ref, id: formMessageId, className: cn(styles26__default.default["form-message"], className), ...props, children: body });
|
|
2494
|
-
});
|
|
2495
|
-
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";
|
|
2496
2698
|
var InfoCard = ({
|
|
2497
2699
|
label,
|
|
2498
2700
|
description,
|
|
@@ -2502,7 +2704,7 @@ var InfoCard = ({
|
|
|
2502
2704
|
onClick,
|
|
2503
2705
|
...props
|
|
2504
2706
|
}) => {
|
|
2505
|
-
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: [
|
|
2506
2708
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2507
2709
|
Icon,
|
|
2508
2710
|
{
|
|
@@ -2512,9 +2714,9 @@ var InfoCard = ({
|
|
|
2512
2714
|
elevation: elevation === ELEVATION.SUNKEN ? ELEVATION.BASE : getRelativeElevation(elevation, -1)
|
|
2513
2715
|
}
|
|
2514
2716
|
),
|
|
2515
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2516
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
2517
|
-
/* @__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 })
|
|
2518
2720
|
] })
|
|
2519
2721
|
] }) }) });
|
|
2520
2722
|
};
|
|
@@ -2548,8 +2750,8 @@ var MotionCollapsibleContent = ({
|
|
|
2548
2750
|
onAnimationStart: () => setIsSettled(false),
|
|
2549
2751
|
onAnimationComplete: () => setIsSettled(isOpen),
|
|
2550
2752
|
className: cn(
|
|
2551
|
-
|
|
2552
|
-
isSettled &&
|
|
2753
|
+
styles30__default.default["motion-collapsible"],
|
|
2754
|
+
isSettled && styles30__default.default["motion-collapsible--settled"],
|
|
2553
2755
|
className
|
|
2554
2756
|
),
|
|
2555
2757
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref: contentRef, children })
|
|
@@ -2579,42 +2781,42 @@ var Input = React15__namespace.forwardRef(
|
|
|
2579
2781
|
const hasError = hasErrorText || isMarkedInvalid;
|
|
2580
2782
|
const showHelpText = !!helpText && !hasErrorText;
|
|
2581
2783
|
const describedBy = [ariaDescribedBy, showHelpText && helpTextId, hasErrorText && errorTextId].filter(Boolean).join(" ") || void 0;
|
|
2582
|
-
const errorIcon = /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.TriangleAlert, { className:
|
|
2583
|
-
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: [
|
|
2584
2786
|
errorIcon,
|
|
2585
2787
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: message })
|
|
2586
|
-
] }, 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: [
|
|
2587
2789
|
errorIcon,
|
|
2588
2790
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: errorList ? errorList[0] : errorText })
|
|
2589
2791
|
] });
|
|
2590
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
2792
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles31__default.default["input-container"], containerClassName), children: [
|
|
2591
2793
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2592
2794
|
"div",
|
|
2593
2795
|
{
|
|
2594
2796
|
className: cn(
|
|
2595
|
-
|
|
2596
|
-
hasError &&
|
|
2797
|
+
styles31__default.default["input-wrapper"],
|
|
2798
|
+
hasError && styles31__default.default["input-wrapper--error"],
|
|
2597
2799
|
className
|
|
2598
2800
|
),
|
|
2599
2801
|
children: [
|
|
2600
|
-
prefix && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2802
|
+
prefix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles31__default.default["input-prefix"], children: prefix }),
|
|
2601
2803
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2602
2804
|
"input",
|
|
2603
2805
|
{
|
|
2604
2806
|
type,
|
|
2605
|
-
className:
|
|
2807
|
+
className: styles31__default.default["input-element"],
|
|
2606
2808
|
ref,
|
|
2607
2809
|
"aria-invalid": isMarkedInvalid ? ariaInvalid : hasErrorText || void 0,
|
|
2608
2810
|
"aria-describedby": describedBy,
|
|
2609
2811
|
...props
|
|
2610
2812
|
}
|
|
2611
2813
|
),
|
|
2612
|
-
suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2814
|
+
suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles31__default.default["input-suffix"], children: suffix })
|
|
2613
2815
|
]
|
|
2614
2816
|
}
|
|
2615
2817
|
),
|
|
2616
2818
|
helpText ? hasErrorText && errorMessage : /* @__PURE__ */ jsxRuntime.jsx(MotionCollapsibleContent, { isOpen: hasErrorText, children: errorMessage }),
|
|
2617
|
-
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 })
|
|
2618
2820
|
] });
|
|
2619
2821
|
}
|
|
2620
2822
|
);
|
|
@@ -2632,7 +2834,7 @@ var ListOrGridViewToggle = ({
|
|
|
2632
2834
|
const handleListClick = () => {
|
|
2633
2835
|
onViewModeChange("list");
|
|
2634
2836
|
};
|
|
2635
|
-
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: [
|
|
2636
2838
|
order.map((mode) => {
|
|
2637
2839
|
const currentlyActive = mode === viewMode;
|
|
2638
2840
|
const Icon3 = mode === "grid" ? LucideIcons.Grid3X3 : LucideIcons.List;
|
|
@@ -2642,8 +2844,8 @@ var ListOrGridViewToggle = ({
|
|
|
2642
2844
|
type: "button",
|
|
2643
2845
|
"aria-label": mode === "grid" ? "Grid view" : "List view",
|
|
2644
2846
|
className: cn(
|
|
2645
|
-
|
|
2646
|
-
currentlyActive ?
|
|
2847
|
+
styles32__default.default["icon-button"],
|
|
2848
|
+
currentlyActive ? styles32__default.default["icon-button--active"] : styles32__default.default["icon-button--inactive"]
|
|
2647
2849
|
),
|
|
2648
2850
|
onClick: mode === "grid" ? handleGridClick : handleListClick,
|
|
2649
2851
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon3, { size: 16 })
|
|
@@ -2654,7 +2856,7 @@ var ListOrGridViewToggle = ({
|
|
|
2654
2856
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2655
2857
|
"div",
|
|
2656
2858
|
{
|
|
2657
|
-
className:
|
|
2859
|
+
className: styles32__default.default["active-button-indicator"],
|
|
2658
2860
|
style: {
|
|
2659
2861
|
transform: `translateX(${currentActiveIndex * 100}%)`,
|
|
2660
2862
|
width: `${100 / order.length}%`
|
|
@@ -2664,43 +2866,43 @@ var ListOrGridViewToggle = ({
|
|
|
2664
2866
|
] });
|
|
2665
2867
|
};
|
|
2666
2868
|
var Spinner = ({ size = "md", variant = "primary" }) => {
|
|
2667
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2668
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
2669
|
-
/* @__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]) })
|
|
2670
2872
|
] });
|
|
2671
2873
|
};
|
|
2672
2874
|
function LoadingOverlay({ isVisible, message = "Loading..." }) {
|
|
2673
2875
|
if (!isVisible) return null;
|
|
2674
|
-
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: [
|
|
2675
2877
|
/* @__PURE__ */ jsxRuntime.jsx(Spinner, { variant: "primary" }),
|
|
2676
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
2878
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: styles34__default.default["message"], children: message })
|
|
2677
2879
|
] }) });
|
|
2678
2880
|
}
|
|
2679
2881
|
var metricCardElevationVariants = generateElevationVariants(
|
|
2680
|
-
|
|
2882
|
+
styles35__default.default,
|
|
2681
2883
|
"metric-card",
|
|
2682
2884
|
ELEVATION.RAISED
|
|
2683
2885
|
);
|
|
2684
2886
|
var VARIANTS = {
|
|
2685
2887
|
default: {
|
|
2686
|
-
text:
|
|
2687
|
-
iconBg:
|
|
2888
|
+
text: styles35__default.default["text-default"],
|
|
2889
|
+
iconBg: styles35__default.default["bg-default"]
|
|
2688
2890
|
},
|
|
2689
2891
|
primary: {
|
|
2690
|
-
text:
|
|
2691
|
-
iconBg:
|
|
2892
|
+
text: styles35__default.default["text-primary"],
|
|
2893
|
+
iconBg: styles35__default.default["bg-primary"]
|
|
2692
2894
|
},
|
|
2693
2895
|
danger: {
|
|
2694
|
-
text:
|
|
2695
|
-
iconBg:
|
|
2896
|
+
text: styles35__default.default["text-danger"],
|
|
2897
|
+
iconBg: styles35__default.default["bg-danger"]
|
|
2696
2898
|
},
|
|
2697
2899
|
success: {
|
|
2698
|
-
text:
|
|
2699
|
-
iconBg:
|
|
2900
|
+
text: styles35__default.default["text-success"],
|
|
2901
|
+
iconBg: styles35__default.default["bg-success"]
|
|
2700
2902
|
},
|
|
2701
2903
|
warning: {
|
|
2702
|
-
text:
|
|
2703
|
-
iconBg:
|
|
2904
|
+
text: styles35__default.default["text-warning"],
|
|
2905
|
+
iconBg: styles35__default.default["bg-warning"]
|
|
2704
2906
|
}
|
|
2705
2907
|
};
|
|
2706
2908
|
var MetricCard = ({
|
|
@@ -2713,8 +2915,8 @@ var MetricCard = ({
|
|
|
2713
2915
|
}) => {
|
|
2714
2916
|
const variantStyles = VARIANTS[variant];
|
|
2715
2917
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(metricCardElevationVariants({ elevation }), className), children: [
|
|
2716
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2717
|
-
/* @__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 }),
|
|
2718
2920
|
icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2719
2921
|
Icon,
|
|
2720
2922
|
{
|
|
@@ -2725,7 +2927,7 @@ var MetricCard = ({
|
|
|
2725
2927
|
}
|
|
2726
2928
|
)
|
|
2727
2929
|
] }),
|
|
2728
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
2930
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: styles35__default.default.label, children: label })
|
|
2729
2931
|
] });
|
|
2730
2932
|
};
|
|
2731
2933
|
var OctagonAlert = LucideIcons.AlertOctagon;
|
|
@@ -2737,12 +2939,12 @@ var NotFound = ({
|
|
|
2737
2939
|
showHomeButton = true,
|
|
2738
2940
|
onHomeClick = () => window.location.href = "/"
|
|
2739
2941
|
}) => {
|
|
2740
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
2741
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2742
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
2743
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
2744
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2745
|
-
/* @__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"] }),
|
|
2746
2948
|
"Return Home"
|
|
2747
2949
|
] }) })
|
|
2748
2950
|
] }) });
|
|
@@ -2751,12 +2953,20 @@ var CheckIcon3 = LucideIcons.Check;
|
|
|
2751
2953
|
var ChevronDownIcon2 = LucideIcons.ChevronDown;
|
|
2752
2954
|
var ChevronUpIcon = LucideIcons.ChevronUp;
|
|
2753
2955
|
var SearchIcon3 = LucideIcons.Search;
|
|
2754
|
-
var
|
|
2956
|
+
var SEARCH_INPUT_SELECTOR2 = "[data-select-search]";
|
|
2755
2957
|
var NAVIGABLE_OPTION_SELECTOR = '[role="option"]:not([data-disabled]):not([hidden])';
|
|
2958
|
+
var MATCHING_OPTION_SELECTOR = `${NAVIGABLE_OPTION_SELECTOR}:not([data-persistent])`;
|
|
2756
2959
|
var RADIX_HANDLED_SEARCH_KEYS = ["ArrowDown", "ArrowUp", "Escape", "Tab"];
|
|
2757
2960
|
var SelectSearchContext = React15__namespace.createContext(null);
|
|
2758
2961
|
var useSelectSearch = () => React15__namespace.useContext(SelectSearchContext);
|
|
2759
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
|
+
};
|
|
2760
2970
|
var SelectGroupMatchContext = React15__namespace.createContext(null);
|
|
2761
2971
|
var Select = ({
|
|
2762
2972
|
open,
|
|
@@ -2765,29 +2975,14 @@ var Select = ({
|
|
|
2765
2975
|
}) => {
|
|
2766
2976
|
const search = useListSearchState(open);
|
|
2767
2977
|
const { resetForOpen } = search;
|
|
2768
|
-
const interactedRef = React15__namespace.useRef(false);
|
|
2769
|
-
const markInteracted = React15__namespace.useCallback(() => {
|
|
2770
|
-
interactedRef.current = true;
|
|
2771
|
-
}, []);
|
|
2772
|
-
const interactedSinceOpen = React15__namespace.useCallback(() => interactedRef.current, []);
|
|
2773
|
-
React15__namespace.useEffect(() => {
|
|
2774
|
-
if (open) interactedRef.current = false;
|
|
2775
|
-
}, [open]);
|
|
2776
2978
|
const handleOpenChange = React15__namespace.useCallback(
|
|
2777
2979
|
(nextOpen) => {
|
|
2778
|
-
if (nextOpen)
|
|
2779
|
-
resetForOpen();
|
|
2780
|
-
interactedRef.current = false;
|
|
2781
|
-
}
|
|
2980
|
+
if (nextOpen) resetForOpen();
|
|
2782
2981
|
onOpenChange?.(nextOpen);
|
|
2783
2982
|
},
|
|
2784
2983
|
[onOpenChange, resetForOpen]
|
|
2785
2984
|
);
|
|
2786
|
-
|
|
2787
|
-
() => ({ ...search, markInteracted, interactedSinceOpen }),
|
|
2788
|
-
[search, markInteracted, interactedSinceOpen]
|
|
2789
|
-
);
|
|
2790
|
-
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 }) });
|
|
2791
2986
|
};
|
|
2792
2987
|
Select.displayName = "Select";
|
|
2793
2988
|
var SelectGroup = React15__namespace.forwardRef(({ hidden, ...props }, ref) => {
|
|
@@ -2804,18 +2999,18 @@ var SelectGroup = React15__namespace.forwardRef(({ hidden, ...props }, ref) => {
|
|
|
2804
2999
|
});
|
|
2805
3000
|
SelectGroup.displayName = SelectPrimitive__namespace.Group.displayName;
|
|
2806
3001
|
var SelectValue = SelectPrimitive__namespace.Value;
|
|
2807
|
-
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: [
|
|
2808
3003
|
children,
|
|
2809
|
-
/* @__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"]) }) })
|
|
2810
3005
|
] }));
|
|
2811
3006
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
2812
3007
|
var SelectScrollUpButton = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2813
3008
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
2814
3009
|
{
|
|
2815
3010
|
ref,
|
|
2816
|
-
className: cn(
|
|
3011
|
+
className: cn(styles37__default.default["select-scroll-button"], className),
|
|
2817
3012
|
...props,
|
|
2818
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronUpIcon, { className:
|
|
3013
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronUpIcon, { className: styles37__default.default["select-icon"] })
|
|
2819
3014
|
}
|
|
2820
3015
|
));
|
|
2821
3016
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
@@ -2823,15 +3018,15 @@ var SelectScrollDownButton = React15__namespace.forwardRef(({ className, ...prop
|
|
|
2823
3018
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
2824
3019
|
{
|
|
2825
3020
|
ref,
|
|
2826
|
-
className: cn(
|
|
3021
|
+
className: cn(styles37__default.default["select-scroll-button"], className),
|
|
2827
3022
|
...props,
|
|
2828
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon2, { className:
|
|
3023
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon2, { className: styles37__default.default["select-icon"] })
|
|
2829
3024
|
}
|
|
2830
3025
|
));
|
|
2831
3026
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
2832
3027
|
var SelectPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { container: usePortalContainer(), children });
|
|
2833
3028
|
var selectContentElevationVariants = generateElevationVariants(
|
|
2834
|
-
|
|
3029
|
+
styles37__default.default,
|
|
2835
3030
|
"select-content",
|
|
2836
3031
|
ELEVATION.OVERLAY
|
|
2837
3032
|
);
|
|
@@ -2845,15 +3040,23 @@ var SelectContent = React15__namespace.forwardRef(
|
|
|
2845
3040
|
onKeyDownCapture,
|
|
2846
3041
|
onPointerMoveCapture,
|
|
2847
3042
|
onFocus,
|
|
3043
|
+
side,
|
|
3044
|
+
avoidCollisions,
|
|
2848
3045
|
...props
|
|
2849
3046
|
}, ref) => {
|
|
2850
3047
|
const ctx = useSelectSearch();
|
|
2851
3048
|
const setListId = ctx?.setListId;
|
|
2852
3049
|
const searching = isSearchActive(ctx);
|
|
2853
3050
|
const resultCount = ctx?.matchCount ?? 0;
|
|
3051
|
+
const contentRef = React15__namespace.useRef(null);
|
|
3052
|
+
const sideProps = useSearchSideLock(ctx, contentRef, {
|
|
3053
|
+
side,
|
|
3054
|
+
avoidCollisions,
|
|
3055
|
+
enabled: position === "popper"
|
|
3056
|
+
});
|
|
2854
3057
|
const composedContentRef = React15__namespace.useCallback(
|
|
2855
3058
|
(node) => {
|
|
2856
|
-
assignRefs(node, ref);
|
|
3059
|
+
assignRefs(node, ref, contentRef);
|
|
2857
3060
|
setListId?.(node?.id || void 0);
|
|
2858
3061
|
},
|
|
2859
3062
|
[ref, setListId]
|
|
@@ -2861,48 +3064,28 @@ var SelectContent = React15__namespace.forwardRef(
|
|
|
2861
3064
|
const handleFocus = (event) => {
|
|
2862
3065
|
onFocus?.(event);
|
|
2863
3066
|
if (!ctx?.enabled || !ctx.visible || ctx.interactedSinceOpen()) return;
|
|
2864
|
-
if (event.target.closest(
|
|
3067
|
+
if (event.target.closest(SEARCH_INPUT_SELECTOR2)) return;
|
|
2865
3068
|
ctx.requestFocus();
|
|
2866
3069
|
};
|
|
2867
3070
|
const handleKeyDown = (event) => {
|
|
2868
3071
|
onKeyDown?.(event);
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
const firstOption = event.currentTarget.querySelector(NAVIGABLE_OPTION_SELECTOR);
|
|
2874
|
-
if (firstOption && firstOption === target?.closest(NAVIGABLE_OPTION_SELECTOR)) {
|
|
2875
|
-
event.preventDefault();
|
|
2876
|
-
ctx.requestFocus();
|
|
2877
|
-
return;
|
|
2878
|
-
}
|
|
2879
|
-
}
|
|
2880
|
-
if (event.key === "Backspace" && ctx.visible && ctx.query) {
|
|
2881
|
-
event.preventDefault();
|
|
2882
|
-
ctx.setQuery(ctx.query.slice(0, -1));
|
|
2883
|
-
ctx.requestFocus();
|
|
2884
|
-
return;
|
|
2885
|
-
}
|
|
2886
|
-
if (!isPrintableKey(event)) return;
|
|
2887
|
-
event.preventDefault();
|
|
2888
|
-
if (!ctx.visible) {
|
|
2889
|
-
ctx.reveal(event.key);
|
|
2890
|
-
} else {
|
|
2891
|
-
ctx.setQuery(ctx.query + event.key);
|
|
2892
|
-
ctx.requestFocus();
|
|
2893
|
-
}
|
|
3072
|
+
handleListKeyDown(ctx, event, {
|
|
3073
|
+
searchSelector: SEARCH_INPUT_SELECTOR2,
|
|
3074
|
+
itemSelector: NAVIGABLE_OPTION_SELECTOR
|
|
3075
|
+
});
|
|
2894
3076
|
};
|
|
2895
3077
|
return /* @__PURE__ */ jsxRuntime.jsx(SelectPortal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2896
3078
|
SelectPrimitive__namespace.Content,
|
|
2897
3079
|
{
|
|
2898
3080
|
ref: composedContentRef,
|
|
2899
3081
|
className: cn(
|
|
2900
|
-
|
|
2901
|
-
position === "popper" &&
|
|
3082
|
+
styles37__default.default["select-content"],
|
|
3083
|
+
position === "popper" && styles37__default.default["select-content--popper"],
|
|
2902
3084
|
selectContentElevationVariants({ elevation }),
|
|
2903
3085
|
className
|
|
2904
3086
|
),
|
|
2905
3087
|
position,
|
|
3088
|
+
...sideProps,
|
|
2906
3089
|
onFocus: handleFocus,
|
|
2907
3090
|
onKeyDown: handleKeyDown,
|
|
2908
3091
|
onKeyDownCapture: (event) => {
|
|
@@ -2915,14 +3098,14 @@ var SelectContent = React15__namespace.forwardRef(
|
|
|
2915
3098
|
},
|
|
2916
3099
|
...props,
|
|
2917
3100
|
children: [
|
|
2918
|
-
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,
|
|
2919
3102
|
/* @__PURE__ */ jsxRuntime.jsx(SelectScrollUpButton, {}),
|
|
2920
3103
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2921
3104
|
SelectPrimitive__namespace.Viewport,
|
|
2922
3105
|
{
|
|
2923
3106
|
className: cn(
|
|
2924
|
-
|
|
2925
|
-
position === "popper" &&
|
|
3107
|
+
styles37__default.default["select-viewport"],
|
|
3108
|
+
position === "popper" && styles37__default.default["select-viewport--popper"]
|
|
2926
3109
|
),
|
|
2927
3110
|
children
|
|
2928
3111
|
}
|
|
@@ -2950,15 +3133,15 @@ var SelectSearch = React15__namespace.forwardRef(
|
|
|
2950
3133
|
}
|
|
2951
3134
|
const { ref, isRendered } = useSearchInput(ctx, alwaysVisible, forwardedRef);
|
|
2952
3135
|
if (!isRendered) return null;
|
|
2953
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2954
|
-
/* @__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"]) }) }),
|
|
2955
3138
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2956
3139
|
"input",
|
|
2957
3140
|
{
|
|
2958
3141
|
...props,
|
|
2959
3142
|
ref,
|
|
2960
3143
|
"data-select-search": "",
|
|
2961
|
-
className: cn(
|
|
3144
|
+
className: cn(styles37__default.default["select-search-input"], className),
|
|
2962
3145
|
value: ctx.query,
|
|
2963
3146
|
placeholder,
|
|
2964
3147
|
"aria-label": ariaLabel ?? placeholder,
|
|
@@ -2971,7 +3154,7 @@ var SelectSearch = React15__namespace.forwardRef(
|
|
|
2971
3154
|
if (event.key === "Enter" && !event.defaultPrevented && isSearchActive(ctx)) {
|
|
2972
3155
|
event.preventDefault();
|
|
2973
3156
|
event.stopPropagation();
|
|
2974
|
-
const firstOption = event.currentTarget.closest('[role="listbox"]')?.querySelector(
|
|
3157
|
+
const firstOption = event.currentTarget.closest('[role="listbox"]')?.querySelector(MATCHING_OPTION_SELECTOR);
|
|
2975
3158
|
firstOption?.dispatchEvent(
|
|
2976
3159
|
new KeyboardEvent("keydown", { key: "Enter", bubbles: true })
|
|
2977
3160
|
);
|
|
@@ -2995,7 +3178,7 @@ var SelectEmpty = ({ className, children, ...props }) => {
|
|
|
2995
3178
|
...props,
|
|
2996
3179
|
role: "status",
|
|
2997
3180
|
"aria-live": "polite",
|
|
2998
|
-
className: isEmpty ? cn(
|
|
3181
|
+
className: isEmpty ? cn(styles37__default.default["select-empty"], className) : void 0,
|
|
2999
3182
|
children: isEmpty ? children : null
|
|
3000
3183
|
}
|
|
3001
3184
|
);
|
|
@@ -3007,41 +3190,42 @@ var SelectLabel = React15__namespace.forwardRef(({ className, hidden, ...props }
|
|
|
3007
3190
|
SelectPrimitive__namespace.Label,
|
|
3008
3191
|
{
|
|
3009
3192
|
ref,
|
|
3010
|
-
className: cn(
|
|
3193
|
+
className: cn(styles37__default.default["select-label"], className),
|
|
3011
3194
|
...props,
|
|
3012
3195
|
hidden: hidden || searching || void 0
|
|
3013
3196
|
}
|
|
3014
3197
|
);
|
|
3015
3198
|
});
|
|
3016
3199
|
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
3017
|
-
var SelectItem = React15__namespace.forwardRef(({ className, children, textValue, hidden, ...props }, ref) => {
|
|
3200
|
+
var SelectItem = React15__namespace.forwardRef(({ className, children, textValue, hidden, persistent, ...props }, ref) => {
|
|
3018
3201
|
const search = useSelectSearch();
|
|
3019
3202
|
const group = React15__namespace.useContext(SelectGroupMatchContext);
|
|
3020
|
-
const matches = useFilterableItem(search, textValue, children, group);
|
|
3203
|
+
const matches = useFilterableItem(search, textValue, children, { group, persistent });
|
|
3021
3204
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3022
3205
|
SelectPrimitive__namespace.Item,
|
|
3023
3206
|
{
|
|
3024
3207
|
ref,
|
|
3025
|
-
className: cn(
|
|
3208
|
+
className: cn(styles37__default.default["select-item"], className),
|
|
3026
3209
|
...props,
|
|
3210
|
+
"data-persistent": persistent ? "" : void 0,
|
|
3027
3211
|
textValue,
|
|
3028
3212
|
hidden: hidden || !matches || void 0,
|
|
3029
3213
|
children: [
|
|
3030
|
-
/* @__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"] }) }) }),
|
|
3031
3215
|
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children })
|
|
3032
3216
|
]
|
|
3033
3217
|
}
|
|
3034
3218
|
);
|
|
3035
3219
|
});
|
|
3036
3220
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
3037
|
-
var SelectSeparator = React15__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3221
|
+
var SelectSeparator = React15__namespace.forwardRef(({ className, persistent, ...props }, ref) => {
|
|
3038
3222
|
const searching = useIsSearching2();
|
|
3039
|
-
if (searching) return null;
|
|
3223
|
+
if (searching && !persistent) return null;
|
|
3040
3224
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3041
3225
|
SelectPrimitive__namespace.Separator,
|
|
3042
3226
|
{
|
|
3043
3227
|
ref,
|
|
3044
|
-
className: cn(
|
|
3228
|
+
className: cn(styles37__default.default["select-separator"], className),
|
|
3045
3229
|
...props
|
|
3046
3230
|
}
|
|
3047
3231
|
);
|
|
@@ -3145,8 +3329,8 @@ var Pagination = ({
|
|
|
3145
3329
|
}
|
|
3146
3330
|
return pageButtons;
|
|
3147
3331
|
};
|
|
3148
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
3149
|
-
/* @__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: [
|
|
3150
3334
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
3151
3335
|
"Showing ",
|
|
3152
3336
|
startItem,
|
|
@@ -3156,7 +3340,7 @@ var Pagination = ({
|
|
|
3156
3340
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3157
3341
|
SelectTrigger,
|
|
3158
3342
|
{
|
|
3159
|
-
className:
|
|
3343
|
+
className: styles38__default.default["items-per-page-trigger"],
|
|
3160
3344
|
"aria-label": "Items per page",
|
|
3161
3345
|
children: /* @__PURE__ */ jsxRuntime.jsx(SelectValue, {})
|
|
3162
3346
|
}
|
|
@@ -3170,7 +3354,7 @@ var Pagination = ({
|
|
|
3170
3354
|
type
|
|
3171
3355
|
] })
|
|
3172
3356
|
] }) }),
|
|
3173
|
-
/* @__PURE__ */ jsxRuntime.jsxs("nav", { className:
|
|
3357
|
+
/* @__PURE__ */ jsxRuntime.jsxs("nav", { className: styles38__default.default["page-navigation-container"], "aria-label": "Pagination", children: [
|
|
3174
3358
|
showFirstLastButtons && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3175
3359
|
Button,
|
|
3176
3360
|
{
|
|
@@ -3220,13 +3404,13 @@ var Pagination = ({
|
|
|
3220
3404
|
] });
|
|
3221
3405
|
};
|
|
3222
3406
|
var PanelLabel = ({ className, label }) => {
|
|
3223
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
3407
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles39__default.default["panel-label"], className), children: label });
|
|
3224
3408
|
};
|
|
3225
3409
|
var Progress = React15__namespace.forwardRef(
|
|
3226
|
-
({ 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(
|
|
3227
3411
|
ProgressPrimitive__namespace.Indicator,
|
|
3228
3412
|
{
|
|
3229
|
-
className: cn(
|
|
3413
|
+
className: cn(styles40__default.default["progress-indicator"], styles40__default.default[color]),
|
|
3230
3414
|
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
3231
3415
|
}
|
|
3232
3416
|
) })
|
|
@@ -3248,29 +3432,29 @@ var STATUS_LABELS = {
|
|
|
3248
3432
|
info: "Information",
|
|
3249
3433
|
danger: "Error"
|
|
3250
3434
|
};
|
|
3251
|
-
var layoutVariants = classVarianceAuthority.cva(
|
|
3435
|
+
var layoutVariants = classVarianceAuthority.cva(styles41__default.default["progress-indicator"], {
|
|
3252
3436
|
variants: {
|
|
3253
3437
|
layout: {
|
|
3254
|
-
horizontal:
|
|
3255
|
-
vertical:
|
|
3438
|
+
horizontal: styles41__default.default["progress-indicator--horizontal"],
|
|
3439
|
+
vertical: styles41__default.default["progress-indicator--vertical"]
|
|
3256
3440
|
}
|
|
3257
3441
|
},
|
|
3258
3442
|
defaultVariants: {
|
|
3259
3443
|
layout: "horizontal"
|
|
3260
3444
|
}
|
|
3261
3445
|
});
|
|
3262
|
-
var markerVariants = classVarianceAuthority.cva(
|
|
3446
|
+
var markerVariants = classVarianceAuthority.cva(styles41__default.default["progress-indicator-step-marker"], {
|
|
3263
3447
|
variants: {
|
|
3264
3448
|
status: {
|
|
3265
3449
|
editing: "",
|
|
3266
3450
|
empty: "",
|
|
3267
3451
|
neutral: "",
|
|
3268
3452
|
info: "",
|
|
3269
|
-
success:
|
|
3270
|
-
danger:
|
|
3453
|
+
success: styles41__default.default["progress-indicator-step-marker--success"],
|
|
3454
|
+
danger: styles41__default.default["progress-indicator-step-marker--danger"]
|
|
3271
3455
|
},
|
|
3272
3456
|
active: {
|
|
3273
|
-
true:
|
|
3457
|
+
true: styles41__default.default["progress-indicator-step-marker--active"],
|
|
3274
3458
|
false: ""
|
|
3275
3459
|
}
|
|
3276
3460
|
},
|
|
@@ -3311,18 +3495,18 @@ function ProgressIndicator({
|
|
|
3311
3495
|
});
|
|
3312
3496
|
const Container = interactive ? "nav" : "div";
|
|
3313
3497
|
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: cn(layoutVariants({ layout }), className), ...props, children: [
|
|
3314
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3498
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles41__default.default["progress-indicator-track"], "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3315
3499
|
Progress,
|
|
3316
3500
|
{
|
|
3317
3501
|
value: 100,
|
|
3318
3502
|
color: "primary",
|
|
3319
|
-
className:
|
|
3503
|
+
className: styles41__default.default["progress-indicator-rail"],
|
|
3320
3504
|
style: {
|
|
3321
3505
|
"--pi-fill-size": `${fillSize}%`
|
|
3322
3506
|
}
|
|
3323
3507
|
}
|
|
3324
3508
|
) }),
|
|
3325
|
-
/* @__PURE__ */ jsxRuntime.jsx("ul", { className:
|
|
3509
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: styles41__default.default["progress-indicator-steps"], "aria-label": ariaLabel, children: steps })
|
|
3326
3510
|
] });
|
|
3327
3511
|
}
|
|
3328
3512
|
function ProgressIndicatorStep({
|
|
@@ -3354,15 +3538,15 @@ function ProgressIndicatorStep({
|
|
|
3354
3538
|
className: markerVariants({ status: effectiveStatus, active })
|
|
3355
3539
|
}
|
|
3356
3540
|
),
|
|
3357
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
3358
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3359
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3360
|
-
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 })
|
|
3361
3545
|
] })
|
|
3362
3546
|
] });
|
|
3363
3547
|
const innerClassName = cn(
|
|
3364
|
-
|
|
3365
|
-
interactive &&
|
|
3548
|
+
styles41__default.default["progress-indicator-step-inner"],
|
|
3549
|
+
interactive && styles41__default.default["progress-indicator-step-inner--interactive"]
|
|
3366
3550
|
);
|
|
3367
3551
|
let inner;
|
|
3368
3552
|
if (href) {
|
|
@@ -3385,8 +3569,8 @@ function ProgressIndicatorStep({
|
|
|
3385
3569
|
"li",
|
|
3386
3570
|
{
|
|
3387
3571
|
className: cn(
|
|
3388
|
-
|
|
3389
|
-
active &&
|
|
3572
|
+
styles41__default.default["progress-indicator-step"],
|
|
3573
|
+
active && styles41__default.default["progress-indicator-step--active"],
|
|
3390
3574
|
className
|
|
3391
3575
|
),
|
|
3392
3576
|
...props,
|
|
@@ -3410,16 +3594,16 @@ var RadialGraph = React15.forwardRef(
|
|
|
3410
3594
|
"div",
|
|
3411
3595
|
{
|
|
3412
3596
|
ref,
|
|
3413
|
-
className: cn(
|
|
3597
|
+
className: cn(styles42__default.default["radial-graph"], styles42__default.default[graphSize], className),
|
|
3414
3598
|
...props,
|
|
3415
3599
|
children: [
|
|
3416
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3600
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles42__default.default["bars-container"], children: bars.map((_, i) => {
|
|
3417
3601
|
const isActive = i < percentage;
|
|
3418
3602
|
const delay = `${i * 10}ms`;
|
|
3419
3603
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3420
3604
|
"div",
|
|
3421
3605
|
{
|
|
3422
|
-
className:
|
|
3606
|
+
className: styles42__default.default["bar"],
|
|
3423
3607
|
style: {
|
|
3424
3608
|
transform: `rotate(${i * 3.6}deg)`
|
|
3425
3609
|
},
|
|
@@ -3427,22 +3611,22 @@ var RadialGraph = React15.forwardRef(
|
|
|
3427
3611
|
"div",
|
|
3428
3612
|
{
|
|
3429
3613
|
className: cn(
|
|
3430
|
-
|
|
3431
|
-
isActive ?
|
|
3614
|
+
styles42__default.default["bar-inner"],
|
|
3615
|
+
isActive ? styles42__default.default["bar-inner--active"] : styles42__default.default["bar-inner--inactive"]
|
|
3432
3616
|
),
|
|
3433
3617
|
style: {
|
|
3434
3618
|
transitionDelay: delay,
|
|
3435
3619
|
animationDelay: delay
|
|
3436
3620
|
},
|
|
3437
3621
|
children: [
|
|
3438
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3622
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles42__default.default["bar-background"] }),
|
|
3439
3623
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3440
3624
|
"div",
|
|
3441
3625
|
{
|
|
3442
3626
|
className: cn(
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
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"]
|
|
3446
3630
|
),
|
|
3447
3631
|
style: {
|
|
3448
3632
|
transitionDelay: delay,
|
|
@@ -3457,9 +3641,9 @@ var RadialGraph = React15.forwardRef(
|
|
|
3457
3641
|
i
|
|
3458
3642
|
);
|
|
3459
3643
|
}) }),
|
|
3460
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3461
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(
|
|
3462
|
-
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 })
|
|
3463
3647
|
] })
|
|
3464
3648
|
]
|
|
3465
3649
|
}
|
|
@@ -3485,15 +3669,15 @@ var RadioDropdown = ({
|
|
|
3485
3669
|
);
|
|
3486
3670
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
3487
3671
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "tertiary", className, children: [
|
|
3488
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
3672
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles43__default.default["selector-button-inner"], children: [
|
|
3489
3673
|
selectedOption?.label || label,
|
|
3490
3674
|
hasSelectedCount && /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "primary", children: selectedOption.count })
|
|
3491
3675
|
] }),
|
|
3492
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon3, { className:
|
|
3676
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon3, { className: styles43__default.default["chevron-icon"] })
|
|
3493
3677
|
] }) }),
|
|
3494
|
-
/* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuContent, { align: "end", className:
|
|
3678
|
+
/* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuContent, { align: "end", className: styles43__default.default["dropdown-menu-content"], children: [
|
|
3495
3679
|
searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3496
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, {
|
|
3680
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, { placeholder: searchPlaceholder, "aria-label": label }),
|
|
3497
3681
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
|
|
3498
3682
|
] }),
|
|
3499
3683
|
!searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -3515,7 +3699,7 @@ var RadioGroup2 = React15__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3515
3699
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3516
3700
|
RadioGroupPrimitive__namespace.Root,
|
|
3517
3701
|
{
|
|
3518
|
-
className: cn(
|
|
3702
|
+
className: cn(styles44__default.default["radio-group"], className),
|
|
3519
3703
|
...props,
|
|
3520
3704
|
ref
|
|
3521
3705
|
}
|
|
@@ -3527,15 +3711,175 @@ var RadioGroupItem = React15__namespace.forwardRef(({ className, ...props }, ref
|
|
|
3527
3711
|
RadioGroupPrimitive__namespace.Item,
|
|
3528
3712
|
{
|
|
3529
3713
|
ref,
|
|
3530
|
-
className: cn(
|
|
3714
|
+
className: cn(styles44__default.default["radio-group-item"], className),
|
|
3531
3715
|
...props,
|
|
3532
|
-
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"] }) })
|
|
3533
3717
|
}
|
|
3534
3718
|
);
|
|
3535
3719
|
});
|
|
3536
3720
|
RadioGroupItem.displayName = RadioGroupPrimitive__namespace.Item.displayName;
|
|
3537
|
-
var
|
|
3538
|
-
|
|
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 }),
|
|
3539
3883
|
/* @__PURE__ */ jsxRuntime.jsx(ScrollBar, {}),
|
|
3540
3884
|
/* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Corner, {})
|
|
3541
3885
|
] }));
|
|
@@ -3546,13 +3890,13 @@ var ScrollBar = React15__namespace.forwardRef(({ className, orientation = "verti
|
|
|
3546
3890
|
ref,
|
|
3547
3891
|
orientation,
|
|
3548
3892
|
className: cn(
|
|
3549
|
-
|
|
3550
|
-
orientation === "vertical" &&
|
|
3551
|
-
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"],
|
|
3552
3896
|
className
|
|
3553
3897
|
),
|
|
3554
3898
|
...props,
|
|
3555
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.ScrollAreaThumb, { className:
|
|
3899
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.ScrollAreaThumb, { className: styles46__default.default["scroll-area-thumb"] })
|
|
3556
3900
|
}
|
|
3557
3901
|
));
|
|
3558
3902
|
ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displayName;
|
|
@@ -3569,20 +3913,20 @@ var SearchBar = ({
|
|
|
3569
3913
|
const handleClear = () => {
|
|
3570
3914
|
setSearchQuery("");
|
|
3571
3915
|
};
|
|
3572
|
-
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(
|
|
3573
3917
|
Input,
|
|
3574
3918
|
{
|
|
3575
3919
|
placeholder,
|
|
3576
3920
|
value: searchQuery,
|
|
3577
3921
|
onChange: handleChange,
|
|
3578
|
-
className:
|
|
3579
|
-
prefix: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon4, { className:
|
|
3922
|
+
className: styles47__default.default["input"],
|
|
3923
|
+
prefix: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon4, { className: styles47__default.default["search-icon"] }),
|
|
3580
3924
|
suffix: searchQuery && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3581
3925
|
IconButton,
|
|
3582
3926
|
{
|
|
3583
3927
|
name: "X",
|
|
3584
3928
|
onClick: handleClear,
|
|
3585
|
-
className:
|
|
3929
|
+
className: styles47__default.default["clear-button"],
|
|
3586
3930
|
label: "Clear search"
|
|
3587
3931
|
}
|
|
3588
3932
|
)
|
|
@@ -3596,10 +3940,10 @@ var SectionHeading = ({
|
|
|
3596
3940
|
className
|
|
3597
3941
|
}) => {
|
|
3598
3942
|
const hasRightContent = !!renderRightContent;
|
|
3599
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(hasRightContent &&
|
|
3600
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3601
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
3602
|
-
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 })
|
|
3603
3947
|
] }),
|
|
3604
3948
|
hasRightContent && renderRightContent()
|
|
3605
3949
|
] });
|
|
@@ -3636,7 +3980,7 @@ var SegmentedControls = ({
|
|
|
3636
3980
|
observer.observe(container);
|
|
3637
3981
|
return () => observer.disconnect();
|
|
3638
3982
|
}, [updateIndicator]);
|
|
3639
|
-
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: [
|
|
3640
3984
|
options.map((option) => {
|
|
3641
3985
|
const currentlyActive = option.value === value;
|
|
3642
3986
|
const showIcon = option.icon != null && effectiveDisplay !== "text-only";
|
|
@@ -3652,15 +3996,15 @@ var SegmentedControls = ({
|
|
|
3652
3996
|
"aria-label": isIconOnly ? option.label : void 0,
|
|
3653
3997
|
title: isIconOnly ? option.label : void 0,
|
|
3654
3998
|
className: cn(
|
|
3655
|
-
|
|
3656
|
-
isIconOnly &&
|
|
3657
|
-
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"]
|
|
3658
4002
|
),
|
|
3659
4003
|
onClick: () => onValueChange(option.value),
|
|
3660
4004
|
children: [
|
|
3661
|
-
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"] }),
|
|
3662
4006
|
showLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { children: option.label }),
|
|
3663
|
-
!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 })
|
|
3664
4008
|
]
|
|
3665
4009
|
},
|
|
3666
4010
|
option.value
|
|
@@ -3669,7 +4013,7 @@ var SegmentedControls = ({
|
|
|
3669
4013
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3670
4014
|
"div",
|
|
3671
4015
|
{
|
|
3672
|
-
className:
|
|
4016
|
+
className: styles49__default.default["active-segment-indicator"],
|
|
3673
4017
|
style: { transform: `translateX(${indicator.left}px)`, width: `${indicator.width}px` }
|
|
3674
4018
|
}
|
|
3675
4019
|
)
|
|
@@ -3682,8 +4026,8 @@ var Separator3 = React15__namespace.forwardRef(({ className, orientation = "hori
|
|
|
3682
4026
|
decorative,
|
|
3683
4027
|
orientation,
|
|
3684
4028
|
className: cn(
|
|
3685
|
-
|
|
3686
|
-
orientation === "horizontal" ?
|
|
4029
|
+
styles50__default.default["separator"],
|
|
4030
|
+
orientation === "horizontal" ? styles50__default.default["separator--horizontal"] : styles50__default.default["separator--vertical"],
|
|
3687
4031
|
className
|
|
3688
4032
|
),
|
|
3689
4033
|
...props
|
|
@@ -3694,15 +4038,15 @@ var Sheet = DialogPrimitive__namespace.Root;
|
|
|
3694
4038
|
var SheetTrigger = DialogPrimitive__namespace.Trigger;
|
|
3695
4039
|
var SheetClose = DialogPrimitive__namespace.Close;
|
|
3696
4040
|
var SheetPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { container: usePortalContainer(), children });
|
|
3697
|
-
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 }));
|
|
3698
4042
|
SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
3699
|
-
var sheetVariants = classVarianceAuthority.cva(
|
|
4043
|
+
var sheetVariants = classVarianceAuthority.cva(styles51__default.default["sheet-content"], {
|
|
3700
4044
|
variants: {
|
|
3701
4045
|
side: {
|
|
3702
|
-
top:
|
|
3703
|
-
bottom:
|
|
3704
|
-
left:
|
|
3705
|
-
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"]
|
|
3706
4050
|
}
|
|
3707
4051
|
},
|
|
3708
4052
|
defaultVariants: {
|
|
@@ -3714,7 +4058,7 @@ var SheetContainer = React15__namespace.forwardRef(({ side = "right", className,
|
|
|
3714
4058
|
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children })
|
|
3715
4059
|
] }));
|
|
3716
4060
|
SheetContainer.displayName = DialogPrimitive__namespace.Content.displayName;
|
|
3717
|
-
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 });
|
|
3718
4062
|
SheetHeaderIcon.displayName = "SheetHeaderIcon";
|
|
3719
4063
|
var SheetHeader = ({ className, children, ...props }) => {
|
|
3720
4064
|
const childrenArray = React15__namespace.Children.toArray(children);
|
|
@@ -3724,30 +4068,52 @@ var SheetHeader = ({ className, children, ...props }) => {
|
|
|
3724
4068
|
const otherChildren = childrenArray.filter(
|
|
3725
4069
|
(child) => !(React15__namespace.isValidElement(child) && child.type === SheetHeaderIcon)
|
|
3726
4070
|
);
|
|
3727
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
4071
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles51__default.default["sheet-header"], className), ...props, children: [
|
|
3728
4072
|
icon,
|
|
3729
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3730
|
-
/* @__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"] }) })
|
|
3731
4075
|
] });
|
|
3732
4076
|
};
|
|
3733
4077
|
SheetHeader.displayName = "SheetHeader";
|
|
3734
|
-
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 });
|
|
3735
4079
|
SheetFooter.displayName = "SheetFooter";
|
|
3736
|
-
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 }));
|
|
3737
4081
|
SheetTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
3738
4082
|
var SheetDescription = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3739
4083
|
DialogPrimitive__namespace.Description,
|
|
3740
4084
|
{
|
|
3741
4085
|
ref,
|
|
3742
|
-
className: cn(
|
|
4086
|
+
className: cn(styles51__default.default["sheet-description"], className),
|
|
3743
4087
|
...props
|
|
3744
4088
|
}
|
|
3745
4089
|
));
|
|
3746
4090
|
SheetDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
3747
|
-
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 });
|
|
3748
4092
|
SheetContent.displayName = "SheetContent";
|
|
3749
4093
|
function Skeleton({ className, ...props }) {
|
|
3750
|
-
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
|
+
] });
|
|
3751
4117
|
}
|
|
3752
4118
|
var ChevronDownIcon4 = LucideIcons.ChevronDown;
|
|
3753
4119
|
function SortSelector({
|
|
@@ -3791,9 +4157,9 @@ function SortSelector({
|
|
|
3791
4157
|
setCurrentPage?.(1);
|
|
3792
4158
|
};
|
|
3793
4159
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
3794
|
-
/* @__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: [
|
|
3795
4161
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: currentLabel }),
|
|
3796
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon4, { className:
|
|
4162
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon4, { className: styles54__default.default["chevron-down-icon"] })
|
|
3797
4163
|
] }) }),
|
|
3798
4164
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3799
4165
|
DropdownMenuContent,
|
|
@@ -3814,61 +4180,39 @@ function SortSelector({
|
|
|
3814
4180
|
children: option.label
|
|
3815
4181
|
},
|
|
3816
4182
|
option.value
|
|
3817
|
-
)) })
|
|
3818
|
-
]
|
|
3819
|
-
}
|
|
3820
|
-
)
|
|
3821
|
-
] });
|
|
3822
|
-
}
|
|
3823
|
-
var Switch = React15__namespace.forwardRef(
|
|
3824
|
-
({ className, size = "md", variant = "default", thumbIcon, ...props }, ref) => {
|
|
3825
|
-
const iconSize = size === "sm" ? "xs" : size === "md" ? "sm" : "md";
|
|
3826
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3827
|
-
SwitchPrimitives__namespace.Root,
|
|
3828
|
-
{
|
|
3829
|
-
className: cn(styles51__default.default["switch"], styles51__default.default[size], styles51__default.default[variant], className),
|
|
3830
|
-
...props,
|
|
3831
|
-
ref,
|
|
3832
|
-
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 }) })
|
|
3833
|
-
}
|
|
3834
|
-
);
|
|
3835
|
-
}
|
|
3836
|
-
);
|
|
3837
|
-
Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
|
|
3838
|
-
var ArrowDownIcon = LucideIcons.ArrowDown;
|
|
3839
|
-
var ArrowUpIcon = LucideIcons.ArrowUp;
|
|
3840
|
-
var ArrowUpDownIcon = LucideIcons.ArrowUpDown;
|
|
3841
|
-
function SortButton({
|
|
3842
|
-
field,
|
|
3843
|
-
children,
|
|
3844
|
-
icon,
|
|
3845
|
-
sortField,
|
|
3846
|
-
sortDirection,
|
|
3847
|
-
onSort
|
|
3848
|
-
}) {
|
|
3849
|
-
const isActive = sortField === field;
|
|
3850
|
-
const isAscending = sortDirection === "asc";
|
|
3851
|
-
const handleClick = () => {
|
|
3852
|
-
onSort(field);
|
|
3853
|
-
};
|
|
3854
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: handleClick, className: styles52__default.default["sort-button"], children: [
|
|
3855
|
-
icon,
|
|
3856
|
-
children,
|
|
3857
|
-
/* @__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
|
+
)
|
|
3858
4187
|
] });
|
|
3859
4188
|
}
|
|
3860
|
-
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);
|
|
3861
4205
|
var TableContainer = React15__namespace.forwardRef(({ className, style, elevation = ELEVATION.RAISED, border, columns, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3862
4206
|
"div",
|
|
3863
4207
|
{
|
|
3864
4208
|
className: cn(
|
|
3865
|
-
|
|
4209
|
+
styles56__default.default["table"],
|
|
3866
4210
|
tableElevationVariants({ elevation }),
|
|
3867
|
-
border &&
|
|
4211
|
+
border && styles56__default.default["table-border"],
|
|
3868
4212
|
className
|
|
3869
4213
|
),
|
|
3870
4214
|
style: columns ? { ...style, "--table-columns": columns } : style,
|
|
3871
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className:
|
|
4215
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className: styles56__default.default["table-inner"], ...props })
|
|
3872
4216
|
}
|
|
3873
4217
|
));
|
|
3874
4218
|
TableContainer.displayName = "Table";
|
|
@@ -3877,18 +4221,18 @@ var TableHeader = React15__namespace.forwardRef(({ className, sticky = false, ..
|
|
|
3877
4221
|
{
|
|
3878
4222
|
ref,
|
|
3879
4223
|
className: cn(
|
|
3880
|
-
|
|
3881
|
-
sticky === "container" &&
|
|
3882
|
-
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"],
|
|
3883
4227
|
className
|
|
3884
4228
|
),
|
|
3885
4229
|
...props
|
|
3886
4230
|
}
|
|
3887
4231
|
));
|
|
3888
4232
|
TableHeader.displayName = "TableHeader";
|
|
3889
|
-
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 }));
|
|
3890
4234
|
TableBody.displayName = "TableBody";
|
|
3891
|
-
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 }));
|
|
3892
4236
|
TableFooter.displayName = "TableFooter";
|
|
3893
4237
|
var TableRow = React15__namespace.forwardRef(
|
|
3894
4238
|
({ className, clickable, href, hrefLabel = "View details", children, onClick, ...props }, ref) => {
|
|
@@ -3905,15 +4249,15 @@ var TableRow = React15__namespace.forwardRef(
|
|
|
3905
4249
|
{
|
|
3906
4250
|
ref,
|
|
3907
4251
|
className: cn(
|
|
3908
|
-
|
|
3909
|
-
isClickable &&
|
|
3910
|
-
href &&
|
|
4252
|
+
styles56__default.default["table-row"],
|
|
4253
|
+
isClickable && styles56__default.default["table-row--clickable"],
|
|
4254
|
+
href && styles56__default.default["table-row--linked"],
|
|
3911
4255
|
className
|
|
3912
4256
|
),
|
|
3913
4257
|
onClick: onClick ? handleClick : void 0,
|
|
3914
4258
|
...props,
|
|
3915
4259
|
children: [
|
|
3916
|
-
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 }) }),
|
|
3917
4261
|
children
|
|
3918
4262
|
]
|
|
3919
4263
|
}
|
|
@@ -3921,18 +4265,18 @@ var TableRow = React15__namespace.forwardRef(
|
|
|
3921
4265
|
}
|
|
3922
4266
|
);
|
|
3923
4267
|
TableRow.displayName = "TableRow";
|
|
3924
|
-
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 }));
|
|
3925
4269
|
TableHead.displayName = "TableHead";
|
|
3926
|
-
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 }));
|
|
3927
4271
|
TableCell.displayName = "TableCell";
|
|
3928
|
-
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 }));
|
|
3929
4273
|
TableCaption.displayName = "TableCaption";
|
|
3930
4274
|
var TabsContainer = TabsPrimitive__namespace.Root;
|
|
3931
|
-
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 }));
|
|
3932
4276
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
3933
|
-
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 }));
|
|
3934
4278
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
3935
|
-
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 }));
|
|
3936
4280
|
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
3937
4281
|
var Tabs = ({
|
|
3938
4282
|
id,
|
|
@@ -3951,17 +4295,17 @@ var Tabs = ({
|
|
|
3951
4295
|
};
|
|
3952
4296
|
const renderIcon = (icon) => {
|
|
3953
4297
|
if (icon) {
|
|
3954
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, size: "sm", className:
|
|
4298
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, size: "sm", className: styles58__default.default["tabs-icon"] });
|
|
3955
4299
|
}
|
|
3956
4300
|
return null;
|
|
3957
4301
|
};
|
|
3958
4302
|
const indicatorClass = cn(
|
|
3959
|
-
|
|
3960
|
-
isFilled ?
|
|
4303
|
+
styles58__default.default["active-tab-indicator"],
|
|
4304
|
+
isFilled ? styles58__default.default["active-tab-indicator--filled"] : styles58__default.default["active-tab-indicator--transparent"]
|
|
3961
4305
|
);
|
|
3962
4306
|
const renderActiveStyle = (isActive) => {
|
|
3963
4307
|
if (staticRender) {
|
|
3964
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(indicatorClass,
|
|
4308
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(indicatorClass, styles58__default.default["active-tab-indicator--static"]) });
|
|
3965
4309
|
}
|
|
3966
4310
|
if (isActive) {
|
|
3967
4311
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3980,14 +4324,14 @@ var Tabs = ({
|
|
|
3980
4324
|
{
|
|
3981
4325
|
value: activeTab,
|
|
3982
4326
|
onValueChange: handleValueChange,
|
|
3983
|
-
className: cn(
|
|
4327
|
+
className: cn(styles58__default.default["tabs"], className),
|
|
3984
4328
|
children: [
|
|
3985
4329
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3986
4330
|
TabsList,
|
|
3987
4331
|
{
|
|
3988
4332
|
className: cn(
|
|
3989
|
-
|
|
3990
|
-
isFilled ?
|
|
4333
|
+
styles58__default.default["tabs-list"],
|
|
4334
|
+
isFilled ? styles58__default.default["tabs-list--filled"] : styles58__default.default["tabs-list--transparent"]
|
|
3991
4335
|
),
|
|
3992
4336
|
children: items.map(({ label, value, icon, suffix, triggerProps }) => {
|
|
3993
4337
|
const isActive = activeTab === value;
|
|
@@ -3998,8 +4342,8 @@ var Tabs = ({
|
|
|
3998
4342
|
key: value,
|
|
3999
4343
|
value,
|
|
4000
4344
|
className: cn(
|
|
4001
|
-
|
|
4002
|
-
isFilled ?
|
|
4345
|
+
styles58__default.default["tabs-trigger"],
|
|
4346
|
+
isFilled ? styles58__default.default["tabs-trigger--filled"] : styles58__default.default["tabs-trigger--transparent"],
|
|
4003
4347
|
triggerProps?.className
|
|
4004
4348
|
)
|
|
4005
4349
|
},
|
|
@@ -4015,7 +4359,7 @@ var Tabs = ({
|
|
|
4015
4359
|
TabsContent,
|
|
4016
4360
|
{
|
|
4017
4361
|
value,
|
|
4018
|
-
className:
|
|
4362
|
+
className: styles58__default.default["content"],
|
|
4019
4363
|
forceMount: staticRender || void 0,
|
|
4020
4364
|
children: content
|
|
4021
4365
|
},
|
|
@@ -4027,175 +4371,28 @@ var Tabs = ({
|
|
|
4027
4371
|
};
|
|
4028
4372
|
var Textarea = React15__namespace.forwardRef(
|
|
4029
4373
|
({ className, ...props }, ref) => {
|
|
4030
|
-
return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(
|
|
4374
|
+
return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(styles59__default.default["textarea"], className), ref, ...props });
|
|
4031
4375
|
}
|
|
4032
4376
|
);
|
|
4033
4377
|
Textarea.displayName = "Textarea";
|
|
4034
|
-
var DEFAULT_LOCALE = "en-US";
|
|
4035
|
-
var DEFAULT_ABSOLUTE_OPTIONS = {
|
|
4036
|
-
year: "numeric",
|
|
4037
|
-
month: "short",
|
|
4038
|
-
day: "2-digit",
|
|
4039
|
-
hour: "2-digit",
|
|
4040
|
-
minute: "2-digit",
|
|
4041
|
-
second: "2-digit",
|
|
4042
|
-
hour12: false,
|
|
4043
|
-
timeZoneName: "short"
|
|
4044
|
-
};
|
|
4045
|
-
var RELATIVE_DIVISIONS = [
|
|
4046
|
-
{ amount: 60, unit: "second" },
|
|
4047
|
-
{ amount: 60, unit: "minute" },
|
|
4048
|
-
{ amount: 24, unit: "hour" },
|
|
4049
|
-
{ amount: 7, unit: "day" },
|
|
4050
|
-
{ amount: 4.34524, unit: "week" },
|
|
4051
|
-
{ amount: 12, unit: "month" },
|
|
4052
|
-
{ amount: Number.POSITIVE_INFINITY, unit: "year" }
|
|
4053
|
-
];
|
|
4054
|
-
var LIVE_INTERVAL_MS = 3e4;
|
|
4055
|
-
var MINUTE_MS = 6e4;
|
|
4056
|
-
var HOUR_MS = 60 * MINUTE_MS;
|
|
4057
|
-
var DAY_MS = 24 * HOUR_MS;
|
|
4058
|
-
var YEAR_MS = 365.25 * DAY_MS;
|
|
4059
|
-
var MONTH_MS = YEAR_MS / 12;
|
|
4060
|
-
var JUST_NOW_MS = 45e3;
|
|
4061
|
-
var COARSE_AFTER_MS = 90 * DAY_MS;
|
|
4062
|
-
var FINE_UNITS = [
|
|
4063
|
-
{ ms: DAY_MS, unit: "day" },
|
|
4064
|
-
{ ms: HOUR_MS, unit: "hour" },
|
|
4065
|
-
{ ms: MINUTE_MS, unit: "minute" }
|
|
4066
|
-
];
|
|
4067
|
-
var COARSE_UNITS = [
|
|
4068
|
-
{ ms: YEAR_MS, unit: "year" },
|
|
4069
|
-
{ ms: MONTH_MS, unit: "month" }
|
|
4070
|
-
];
|
|
4071
|
-
var NO_DATE_PLACEHOLDER = "---";
|
|
4072
|
-
function isMissing(value) {
|
|
4073
|
-
return value == null || typeof value === "string" && value.trim() === "";
|
|
4074
|
-
}
|
|
4075
|
-
function toDate(value) {
|
|
4076
|
-
const date = value instanceof Date ? value : new Date(value);
|
|
4077
|
-
return Number.isNaN(date.getTime()) ? null : date;
|
|
4078
|
-
}
|
|
4079
|
-
function formatAbsolute(date, timeZone, options, locale) {
|
|
4080
|
-
return new Intl.DateTimeFormat(locale, { ...options, timeZone }).format(date);
|
|
4081
|
-
}
|
|
4082
|
-
function formatRelative(date, now, locale) {
|
|
4083
|
-
if (Math.abs(date.getTime() - now.getTime()) < JUST_NOW_MS) return "Just now";
|
|
4084
|
-
let duration = (date.getTime() - now.getTime()) / 1e3;
|
|
4085
|
-
const rtf = new Intl.RelativeTimeFormat(locale, { numeric: "auto" });
|
|
4086
|
-
for (const division of RELATIVE_DIVISIONS) {
|
|
4087
|
-
if (Math.abs(duration) < division.amount) {
|
|
4088
|
-
return rtf.format(Math.round(duration), division.unit);
|
|
4089
|
-
}
|
|
4090
|
-
duration /= division.amount;
|
|
4091
|
-
}
|
|
4092
|
-
return "Just now";
|
|
4093
|
-
}
|
|
4094
|
-
function measureSpan(spanMs) {
|
|
4095
|
-
const units = spanMs < COARSE_AFTER_MS ? FINE_UNITS : COARSE_UNITS;
|
|
4096
|
-
const index = units.findIndex(({ ms: ms2 }) => spanMs >= ms2);
|
|
4097
|
-
if (index === -1) return { value: 1, unit: units[units.length - 1].unit };
|
|
4098
|
-
const { ms, unit } = units[index];
|
|
4099
|
-
const value = Math.round(spanMs / ms);
|
|
4100
|
-
const next = units[index - 1];
|
|
4101
|
-
if (next && value * ms >= next.ms) {
|
|
4102
|
-
return { value: Math.round(spanMs / next.ms), unit: next.unit };
|
|
4103
|
-
}
|
|
4104
|
-
return { value, unit };
|
|
4105
|
-
}
|
|
4106
|
-
function formatCountdown(date, now, locale) {
|
|
4107
|
-
const spanMs = date.getTime() - now.getTime();
|
|
4108
|
-
if (spanMs <= 0) return null;
|
|
4109
|
-
const { value, unit } = measureSpan(spanMs);
|
|
4110
|
-
return new Intl.NumberFormat(locale, { style: "unit", unit, unitDisplay: "long" }).format(value);
|
|
4111
|
-
}
|
|
4112
|
-
function DatePlaceholder({
|
|
4113
|
-
label,
|
|
4114
|
-
className,
|
|
4115
|
-
...props
|
|
4116
|
-
}) {
|
|
4117
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: cn(styles57__default.default["format-date"], className), ...props, children: [
|
|
4118
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles57__default.default["visually-hidden"], children: label }),
|
|
4119
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: NO_DATE_PLACEHOLDER })
|
|
4120
|
-
] });
|
|
4121
|
-
}
|
|
4122
|
-
function FormatDate({
|
|
4123
|
-
date,
|
|
4124
|
-
displayAs = "absolute",
|
|
4125
|
-
timeZone = "UTC",
|
|
4126
|
-
locale = DEFAULT_LOCALE,
|
|
4127
|
-
tooltip = true,
|
|
4128
|
-
live = true,
|
|
4129
|
-
absoluteOptions,
|
|
4130
|
-
className,
|
|
4131
|
-
...props
|
|
4132
|
-
}) {
|
|
4133
|
-
const missing = isMissing(date);
|
|
4134
|
-
const parsed = React15__namespace.useMemo(() => isMissing(date) ? null : toDate(date), [date]);
|
|
4135
|
-
const [now, setNow] = React15__namespace.useState(() => /* @__PURE__ */ new Date());
|
|
4136
|
-
const [mounted, setMounted] = React15__namespace.useState(false);
|
|
4137
|
-
const isAbsolute = displayAs === "absolute";
|
|
4138
|
-
React15__namespace.useEffect(() => setMounted(true), []);
|
|
4139
|
-
React15__namespace.useEffect(() => {
|
|
4140
|
-
if (isAbsolute || !live) return;
|
|
4141
|
-
const id = setInterval(() => setNow(/* @__PURE__ */ new Date()), LIVE_INTERVAL_MS);
|
|
4142
|
-
return () => clearInterval(id);
|
|
4143
|
-
}, [isAbsolute, live]);
|
|
4144
|
-
if (missing) {
|
|
4145
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DatePlaceholder, { label: "No date", className, ...props });
|
|
4146
|
-
}
|
|
4147
|
-
if (!parsed) {
|
|
4148
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(styles57__default.default["format-date"], className), ...props, children: "Invalid date" });
|
|
4149
|
-
}
|
|
4150
|
-
const machineValue = parsed.toISOString();
|
|
4151
|
-
const absolute = formatAbsolute(
|
|
4152
|
-
parsed,
|
|
4153
|
-
timeZone,
|
|
4154
|
-
absoluteOptions ?? DEFAULT_ABSOLUTE_OPTIONS,
|
|
4155
|
-
locale
|
|
4156
|
-
);
|
|
4157
|
-
if (isAbsolute) {
|
|
4158
|
-
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(styles57__default.default["format-date"], className), ...props, children: absolute });
|
|
4159
|
-
}
|
|
4160
|
-
const measured = !mounted ? absolute : displayAs === "relative" ? formatRelative(parsed, now, locale) : formatCountdown(parsed, now, locale);
|
|
4161
|
-
if (measured === null) {
|
|
4162
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DatePlaceholder, { label: "Date has passed", className, ...props });
|
|
4163
|
-
}
|
|
4164
|
-
if (!tooltip) {
|
|
4165
|
-
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(styles57__default.default["format-date"], className), ...props, children: measured });
|
|
4166
|
-
}
|
|
4167
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
4168
|
-
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4169
|
-
"time",
|
|
4170
|
-
{
|
|
4171
|
-
dateTime: machineValue,
|
|
4172
|
-
tabIndex: 0,
|
|
4173
|
-
className: cn(styles57__default.default["format-date"], styles57__default.default["format-date--interactive"], className),
|
|
4174
|
-
...props,
|
|
4175
|
-
children: measured
|
|
4176
|
-
}
|
|
4177
|
-
) }),
|
|
4178
|
-
/* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: absolute })
|
|
4179
|
-
] }) });
|
|
4180
|
-
}
|
|
4181
4378
|
var XIcon2 = LucideIcons.X;
|
|
4182
4379
|
var ToastProvider = ToastPrimitives__namespace.Provider;
|
|
4183
4380
|
var ToastViewport = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4184
4381
|
ToastPrimitives__namespace.Viewport,
|
|
4185
4382
|
{
|
|
4186
4383
|
ref,
|
|
4187
|
-
className: cn(
|
|
4384
|
+
className: cn(styles60__default.default["toast-viewport"], className),
|
|
4188
4385
|
...props
|
|
4189
4386
|
}
|
|
4190
4387
|
));
|
|
4191
4388
|
ToastViewport.displayName = ToastPrimitives__namespace.Viewport.displayName;
|
|
4192
|
-
var toastVariants = classVarianceAuthority.cva(
|
|
4389
|
+
var toastVariants = classVarianceAuthority.cva(styles60__default.default["toast"], {
|
|
4193
4390
|
variants: {
|
|
4194
4391
|
variant: {
|
|
4195
|
-
default:
|
|
4196
|
-
danger:
|
|
4197
|
-
warning:
|
|
4198
|
-
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"]
|
|
4199
4396
|
}
|
|
4200
4397
|
},
|
|
4201
4398
|
defaultVariants: {
|
|
@@ -4213,17 +4410,17 @@ var ToastContainer = React15__namespace.forwardRef(({ className, variant, ...pro
|
|
|
4213
4410
|
);
|
|
4214
4411
|
});
|
|
4215
4412
|
ToastContainer.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
4216
|
-
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 }));
|
|
4217
4414
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
4218
|
-
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"] }) }));
|
|
4219
4416
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
4220
|
-
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 }));
|
|
4221
4418
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
4222
4419
|
var ToastDescription = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4223
4420
|
ToastPrimitives__namespace.Description,
|
|
4224
4421
|
{
|
|
4225
4422
|
ref,
|
|
4226
|
-
className: cn(
|
|
4423
|
+
className: cn(styles60__default.default["toast-description"], className),
|
|
4227
4424
|
...props
|
|
4228
4425
|
}
|
|
4229
4426
|
));
|
|
@@ -4358,14 +4555,14 @@ var Toast = ({ toast: toast2 }) => {
|
|
|
4358
4555
|
};
|
|
4359
4556
|
const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
|
|
4360
4557
|
return /* @__PURE__ */ jsxRuntime.jsxs(ToastContainer, { ...props, variant, children: [
|
|
4361
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4362
|
-
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: [
|
|
4363
4560
|
displayIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
|
|
4364
4561
|
/* @__PURE__ */ jsxRuntime.jsx(ToastTitle, { children: title })
|
|
4365
4562
|
] }),
|
|
4366
4563
|
description && /* @__PURE__ */ jsxRuntime.jsx(ToastDescription, { children: description })
|
|
4367
4564
|
] }),
|
|
4368
|
-
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4565
|
+
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles61__default.default["toast-action"], children: action }),
|
|
4369
4566
|
/* @__PURE__ */ jsxRuntime.jsx(ToastClose, {})
|
|
4370
4567
|
] });
|
|
4371
4568
|
};
|
|
@@ -4395,7 +4592,7 @@ var TruncatedDescription = ({
|
|
|
4395
4592
|
e.stopPropagation();
|
|
4396
4593
|
setExpanded(!expanded);
|
|
4397
4594
|
};
|
|
4398
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
4595
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles62__default.default["truncated-description"], className), children: [
|
|
4399
4596
|
/* @__PURE__ */ jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
|
|
4400
4597
|
isLongDescription && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
|
|
4401
4598
|
] });
|
|
@@ -4403,125 +4600,6 @@ var TruncatedDescription = ({
|
|
|
4403
4600
|
var removeHtmlTags = (html) => {
|
|
4404
4601
|
return html.replace(/<[^>]*>/g, "");
|
|
4405
4602
|
};
|
|
4406
|
-
var Heading = React15.forwardRef(
|
|
4407
|
-
({ className, as, displayAs, children, ...props }, ref) => {
|
|
4408
|
-
const displayClasses = {
|
|
4409
|
-
h1: styles61__default.default["h1"],
|
|
4410
|
-
h2: styles61__default.default["h2"],
|
|
4411
|
-
h3: styles61__default.default["h3"],
|
|
4412
|
-
h4: styles61__default.default["h4"],
|
|
4413
|
-
h5: styles61__default.default["h5"],
|
|
4414
|
-
h6: styles61__default.default["h6"]
|
|
4415
|
-
};
|
|
4416
|
-
const displayClass = displayClasses[displayAs] || displayClasses[as];
|
|
4417
|
-
const HeadingTag = as;
|
|
4418
|
-
return /* @__PURE__ */ jsxRuntime.jsx(HeadingTag, { ref, className: cn(displayClass, className), ...props, children });
|
|
4419
|
-
}
|
|
4420
|
-
);
|
|
4421
|
-
Heading.displayName = "Heading";
|
|
4422
|
-
var ControlStatusBadge = ({ status, display = "both" }) => {
|
|
4423
|
-
const config = getStatusConfig(status);
|
|
4424
|
-
if (config.subLabel) {
|
|
4425
|
-
if (display === "icon-only") {
|
|
4426
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display: "icon-only", className: config.className, variant: null, children: config.label });
|
|
4427
|
-
}
|
|
4428
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles62__default.default["split-badge"], config.className), children: [
|
|
4429
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles62__default.default["split-badge__status"], children: [
|
|
4430
|
-
display !== "text-only" && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: config.icon, size: "xs", className: styles62__default.default["icon"] }),
|
|
4431
|
-
config.label
|
|
4432
|
-
] }),
|
|
4433
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles62__default.default["split-badge__sub-status"], children: config.subLabel })
|
|
4434
|
-
] });
|
|
4435
|
-
}
|
|
4436
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display, className: config.className, variant: null, children: config.label });
|
|
4437
|
-
};
|
|
4438
|
-
var getStatusConfig = (status) => {
|
|
4439
|
-
switch (status) {
|
|
4440
|
-
case "in-progress":
|
|
4441
|
-
return {
|
|
4442
|
-
icon: "Clock",
|
|
4443
|
-
className: styles62__default.default["badge--in-progress"],
|
|
4444
|
-
label: "In Progress"
|
|
4445
|
-
};
|
|
4446
|
-
case "not-started":
|
|
4447
|
-
return {
|
|
4448
|
-
icon: "CircleDashed",
|
|
4449
|
-
className: styles62__default.default["badge--not-started"],
|
|
4450
|
-
label: "Not Started"
|
|
4451
|
-
};
|
|
4452
|
-
case "ready-for-review":
|
|
4453
|
-
return {
|
|
4454
|
-
icon: "ClipboardCheck",
|
|
4455
|
-
className: styles62__default.default["badge--ready-for-review"],
|
|
4456
|
-
label: "Ready for Review"
|
|
4457
|
-
};
|
|
4458
|
-
case "in-review":
|
|
4459
|
-
return {
|
|
4460
|
-
icon: "Eye",
|
|
4461
|
-
className: styles62__default.default["badge--in-review"],
|
|
4462
|
-
label: "In Review"
|
|
4463
|
-
};
|
|
4464
|
-
case "comment":
|
|
4465
|
-
return {
|
|
4466
|
-
icon: "Eye",
|
|
4467
|
-
className: styles62__default.default["badge--comment"],
|
|
4468
|
-
label: "In Review",
|
|
4469
|
-
subLabel: "General"
|
|
4470
|
-
};
|
|
4471
|
-
case "not-applicable":
|
|
4472
|
-
return {
|
|
4473
|
-
icon: "MinusCircle",
|
|
4474
|
-
className: styles62__default.default["badge--not-applicable"],
|
|
4475
|
-
label: "Not Applicable"
|
|
4476
|
-
};
|
|
4477
|
-
case "accepted":
|
|
4478
|
-
return {
|
|
4479
|
-
icon: "Eye",
|
|
4480
|
-
className: styles62__default.default["badge--accepted"],
|
|
4481
|
-
label: "In Review",
|
|
4482
|
-
subLabel: "Accepted"
|
|
4483
|
-
};
|
|
4484
|
-
case "questioned":
|
|
4485
|
-
return {
|
|
4486
|
-
icon: "Eye",
|
|
4487
|
-
className: styles62__default.default["badge--question"],
|
|
4488
|
-
label: "In Review",
|
|
4489
|
-
subLabel: "Questioned"
|
|
4490
|
-
};
|
|
4491
|
-
case "compliant":
|
|
4492
|
-
return {
|
|
4493
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(CircleCheckFillIcon, {}),
|
|
4494
|
-
className: styles62__default.default["badge--compliant"],
|
|
4495
|
-
label: "Compliant"
|
|
4496
|
-
};
|
|
4497
|
-
case "non-compliant":
|
|
4498
|
-
return {
|
|
4499
|
-
icon: "X",
|
|
4500
|
-
className: styles62__default.default["badge--non-compliant"],
|
|
4501
|
-
label: "Non-compliant"
|
|
4502
|
-
};
|
|
4503
|
-
default:
|
|
4504
|
-
return {
|
|
4505
|
-
icon: "CircleDashed",
|
|
4506
|
-
className: styles62__default.default["badge--not-started"],
|
|
4507
|
-
label: status
|
|
4508
|
-
};
|
|
4509
|
-
}
|
|
4510
|
-
};
|
|
4511
|
-
var CircleCheckFillIcon = ({ className }) => {
|
|
4512
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4513
|
-
"svg",
|
|
4514
|
-
{
|
|
4515
|
-
className,
|
|
4516
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4517
|
-
width: "12",
|
|
4518
|
-
height: "12",
|
|
4519
|
-
viewBox: "0 0 24 24",
|
|
4520
|
-
fill: "currentColor",
|
|
4521
|
-
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" })
|
|
4522
|
-
}
|
|
4523
|
-
);
|
|
4524
|
-
};
|
|
4525
4603
|
var Portal8 = React15__namespace.forwardRef((_props, ref) => {
|
|
4526
4604
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { id: PORTAL_ROOT_ID, ref });
|
|
4527
4605
|
});
|
|
@@ -4852,8 +4930,10 @@ exports.buttonVariants = buttonVariants;
|
|
|
4852
4930
|
exports.reducer = reducer;
|
|
4853
4931
|
exports.scheduleHighlight = scheduleHighlight;
|
|
4854
4932
|
exports.toast = toast;
|
|
4933
|
+
exports.useDropdownMenuSearchQuery = useDropdownMenuSearchQuery;
|
|
4855
4934
|
exports.useFormField = useFormField;
|
|
4856
4935
|
exports.usePortalContainer = usePortalContainer;
|
|
4936
|
+
exports.useSelectSearchQuery = useSelectSearchQuery;
|
|
4857
4937
|
exports.useTheme = useTheme;
|
|
4858
4938
|
exports.useToast = useToast;
|
|
4859
4939
|
//# sourceMappingURL=index.cjs.map
|