@ox0/ui 3.1.2 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/app-shell.d.ts +47 -0
- package/dist/components/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell.test.d.ts +2 -0
- package/dist/components/app-shell.test.d.ts.map +1 -0
- package/dist/components/box.d.ts +2 -2
- package/dist/components/box.d.ts.map +1 -1
- package/dist/components/card.d.ts +8 -1
- package/dist/components/card.d.ts.map +1 -1
- package/dist/components/card.test.d.ts +2 -0
- package/dist/components/card.test.d.ts.map +1 -0
- package/dist/components/checkbox-group.d.ts +2 -1
- package/dist/components/checkbox-group.d.ts.map +1 -1
- package/dist/components/checkbox.d.ts +2 -1
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/chevron.d.ts +4 -0
- package/dist/components/chevron.d.ts.map +1 -1
- package/dist/components/combobox.d.ts +2 -1
- package/dist/components/combobox.d.ts.map +1 -1
- package/dist/components/confirm-dialog.d.ts +80 -0
- package/dist/components/confirm-dialog.d.ts.map +1 -0
- package/dist/components/confirm-dialog.test.d.ts +2 -0
- package/dist/components/confirm-dialog.test.d.ts.map +1 -0
- package/dist/components/drop-zone.d.ts +32 -0
- package/dist/components/drop-zone.d.ts.map +1 -0
- package/dist/components/drop-zone.test.d.ts +2 -0
- package/dist/components/drop-zone.test.d.ts.map +1 -0
- package/dist/components/field-group.d.ts +2 -1
- package/dist/components/field-group.d.ts.map +1 -1
- package/dist/components/file-trigger.d.ts +29 -0
- package/dist/components/file-trigger.d.ts.map +1 -0
- package/dist/components/file-trigger.test.d.ts +2 -0
- package/dist/components/file-trigger.test.d.ts.map +1 -0
- package/dist/components/heading.d.ts +8 -0
- package/dist/components/heading.d.ts.map +1 -1
- package/dist/components/href.d.ts +2 -0
- package/dist/components/href.d.ts.map +1 -0
- package/dist/components/link.d.ts.map +1 -1
- package/dist/components/number-field.d.ts +2 -1
- package/dist/components/number-field.d.ts.map +1 -1
- package/dist/components/page.d.ts +40 -0
- package/dist/components/page.d.ts.map +1 -0
- package/dist/components/page.test.d.ts +2 -0
- package/dist/components/page.test.d.ts.map +1 -0
- package/dist/components/radio-group.d.ts +2 -1
- package/dist/components/radio-group.d.ts.map +1 -1
- package/dist/components/search-field.d.ts +2 -1
- package/dist/components/search-field.d.ts.map +1 -1
- package/dist/components/select.d.ts +2 -1
- package/dist/components/select.d.ts.map +1 -1
- package/dist/components/slider.d.ts +2 -1
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/surface.d.ts +2 -1
- package/dist/components/surface.d.ts.map +1 -1
- package/dist/components/switch.d.ts +2 -1
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/table.d.ts +11 -2
- package/dist/components/table.d.ts.map +1 -1
- package/dist/components/tag-group.d.ts +3 -2
- package/dist/components/tag-group.d.ts.map +1 -1
- package/dist/components/text-area.d.ts +2 -1
- package/dist/components/text-area.d.ts.map +1 -1
- package/dist/components/text-field.d.ts +2 -1
- package/dist/components/text-field.d.ts.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2240 -989
- package/dist/layout/grid.d.ts +32 -16
- package/dist/layout/grid.d.ts.map +1 -1
- package/dist/layout/grid.test.d.ts +2 -0
- package/dist/layout/grid.test.d.ts.map +1 -0
- package/dist/layout/inline.d.ts +2 -2
- package/dist/layout/inline.d.ts.map +1 -1
- package/dist/layout/responsive.d.ts +31 -0
- package/dist/layout/responsive.d.ts.map +1 -0
- package/dist/layout/split.d.ts +2 -1
- package/dist/layout/split.d.ts.map +1 -1
- package/dist/layout/stack.d.ts +2 -2
- package/dist/layout/stack.d.ts.map +1 -1
- package/dist/layout/use-breakpoint-up.d.ts +22 -0
- package/dist/layout/use-breakpoint-up.d.ts.map +1 -0
- package/dist/layout/use-breakpoint-up.test.d.ts +2 -0
- package/dist/layout/use-breakpoint-up.test.d.ts.map +1 -0
- package/dist/messages.d.ts +7 -0
- package/dist/messages.d.ts.map +1 -1
- package/dist/mixins/index.d.ts +1 -0
- package/dist/mixins/index.d.ts.map +1 -1
- package/dist/mixins/layout-item.d.ts +20 -0
- package/dist/mixins/layout-item.d.ts.map +1 -0
- package/dist/mixins/layout-item.test.d.ts +2 -0
- package/dist/mixins/layout-item.test.d.ts.map +1 -0
- package/dist/providers/ox0-provider.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Children, Fragment as external_react_Fragment, cloneElement, createContext, createElement, forwardRef, isValidElement, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { isFocusVisible as hooks_isFocusVisible, useControllableState, usePress } from "@ox0/hooks";
|
|
4
|
-
import { FloatingFocusManager, FloatingPortal, autoUpdate, flip, offset, shift, size as react_size, useClick, useDismiss, useFloating, useInteractions, useListNavigation, useMergeRefs, useRole } from "@floating-ui/react";
|
|
5
|
-
import { createPortal } from "react-dom";
|
|
3
|
+
import { isFocusVisible as hooks_isFocusVisible, useControllableState, useMediaQuery, usePress } from "@ox0/hooks";
|
|
6
4
|
import { Ox0I18nProvider, useMessage } from "@ox0/i18n";
|
|
5
|
+
import { createPortal } from "react-dom";
|
|
6
|
+
import { FloatingFocusManager, FloatingPortal, autoUpdate, flip, offset, shift, size as react_size, useClick, useDismiss, useFloating, useInteractions, useListNavigation, useMergeRefs, useRole } from "@floating-ui/react";
|
|
7
7
|
import { DismissButton, HiddenSelect, Overlay, mergeProps, useButton, useFocusRing, useListBox, useListBoxSection, useObjectRef, useOption, usePopover, useSelect } from "react-aria";
|
|
8
8
|
import { Item, Section, useListState, useSelectState } from "react-stately";
|
|
9
|
-
import { createTheme } from "@ox0/tokens";
|
|
9
|
+
import { breakpoints, createTheme } from "@ox0/tokens";
|
|
10
10
|
import "@ox0/tokens/styles.css";
|
|
11
11
|
var __webpack_modules__ = {};
|
|
12
12
|
var __webpack_module_cache__ = {};
|
|
@@ -138,6 +138,183 @@ __webpack_require__.add({
|
|
|
138
138
|
A: __rspack_default_export
|
|
139
139
|
});
|
|
140
140
|
},
|
|
141
|
+
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/app-shell.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
142
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
143
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
144
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
145
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
146
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
147
|
+
___CSS_LOADER_EXPORT___.push([
|
|
148
|
+
module.id,
|
|
149
|
+
`.shell-PMruQs {
|
|
150
|
+
background: var(--ox0-color-canvas);
|
|
151
|
+
color: var(--ox0-color-foreground);
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
min-block-size: 100dvh;
|
|
154
|
+
display: flex;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.skipLink-yR80ud {
|
|
158
|
+
background: var(--ox0-color-surface);
|
|
159
|
+
border-radius: var(--ox0-radius-sm);
|
|
160
|
+
box-shadow: var(--ox0-shadow-md);
|
|
161
|
+
color: var(--ox0-color-accent-text);
|
|
162
|
+
font-weight: var(--ox0-font-weight-semibold);
|
|
163
|
+
padding: var(--ox0-space-sm) var(--ox0-space-md);
|
|
164
|
+
z-index: 20;
|
|
165
|
+
position: absolute;
|
|
166
|
+
inset-block-start: var(--ox0-space-sm);
|
|
167
|
+
inset-inline-start: var(--ox0-space-sm);
|
|
168
|
+
transform: translateY(-200%);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.skipLink-yR80ud:focus-visible {
|
|
172
|
+
outline: 2px solid var(--ox0-color-focus-ring);
|
|
173
|
+
transform: none;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.bar-o8AymB {
|
|
177
|
+
background: var(--ox0-color-surface);
|
|
178
|
+
border-block-end: 1px solid var(--ox0-color-border-subtle);
|
|
179
|
+
z-index: 10;
|
|
180
|
+
position: sticky;
|
|
181
|
+
inset-block-start: 0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.barInner-feWiUP {
|
|
185
|
+
align-items: center;
|
|
186
|
+
gap: var(--ox0-space-lg);
|
|
187
|
+
min-block-size: 3.5rem;
|
|
188
|
+
padding-inline: var(--ox0-space-lg);
|
|
189
|
+
display: flex;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.brand-KL4jhb {
|
|
193
|
+
font-weight: var(--ox0-font-weight-semibold);
|
|
194
|
+
align-items: center;
|
|
195
|
+
gap: var(--ox0-space-sm);
|
|
196
|
+
flex-shrink: 0;
|
|
197
|
+
display: flex;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.barNav-MoDjCs {
|
|
201
|
+
flex: auto;
|
|
202
|
+
min-inline-size: 0;
|
|
203
|
+
display: none;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.actions-b1jjay {
|
|
207
|
+
align-items: center;
|
|
208
|
+
gap: var(--ox0-space-sm);
|
|
209
|
+
margin-inline-start: auto;
|
|
210
|
+
display: flex;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.menuButton-Dp7SLY {
|
|
214
|
+
margin-inline-start: calc(-1 * var(--ox0-space-xs));
|
|
215
|
+
display: flex;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@media (width >= 48rem) {
|
|
219
|
+
.barInner-feWiUP {
|
|
220
|
+
padding-inline: var(--ox0-space-2xl);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.barNav-MoDjCs {
|
|
224
|
+
display: flex;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.menuButton-Dp7SLY {
|
|
228
|
+
display: none;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.main-hxEowA {
|
|
233
|
+
outline: none;
|
|
234
|
+
flex-direction: column;
|
|
235
|
+
flex: auto;
|
|
236
|
+
display: flex;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.navList-Zq3sIY {
|
|
240
|
+
gap: var(--ox0-space-2xs);
|
|
241
|
+
margin: 0;
|
|
242
|
+
padding: 0;
|
|
243
|
+
list-style: none;
|
|
244
|
+
display: flex;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.navList-Zq3sIY[data-orientation="horizontal"] {
|
|
248
|
+
scrollbar-width: none;
|
|
249
|
+
flex-wrap: nowrap;
|
|
250
|
+
align-items: center;
|
|
251
|
+
overflow-x: auto;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.navList-Zq3sIY[data-orientation="vertical"] {
|
|
255
|
+
flex-direction: column;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.navItem-LuewCO {
|
|
259
|
+
border-radius: var(--ox0-radius-md);
|
|
260
|
+
color: var(--ox0-color-muted);
|
|
261
|
+
font-size: var(--ox0-font-size-sm);
|
|
262
|
+
font-weight: var(--ox0-font-weight-medium);
|
|
263
|
+
align-items: center;
|
|
264
|
+
gap: var(--ox0-space-sm);
|
|
265
|
+
padding: var(--ox0-space-sm) var(--ox0-space-md);
|
|
266
|
+
white-space: nowrap;
|
|
267
|
+
text-decoration: none;
|
|
268
|
+
display: flex;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.navItem-LuewCO:hover {
|
|
272
|
+
background: var(--ox0-color-surface-hover);
|
|
273
|
+
color: var(--ox0-color-foreground);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.navItem-LuewCO:focus-visible {
|
|
277
|
+
outline: 2px solid var(--ox0-color-focus-ring);
|
|
278
|
+
outline-offset: 1px;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.navItem-LuewCO[aria-current="page"] {
|
|
282
|
+
background: var(--ox0-color-surface-selected);
|
|
283
|
+
color: var(--ox0-color-foreground);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.navList-Zq3sIY[data-orientation="horizontal"] .navItem-LuewCO[aria-current="page"] {
|
|
287
|
+
box-shadow: inset 0 -2px 0 var(--ox0-color-accent);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.navList-Zq3sIY[data-orientation="vertical"] .navItem-LuewCO {
|
|
291
|
+
font-size: var(--ox0-font-size-md);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.navList-Zq3sIY[data-orientation="vertical"] .navItem-LuewCO[aria-current="page"] {
|
|
295
|
+
box-shadow: inset 2px 0 0 var(--ox0-color-accent);
|
|
296
|
+
}
|
|
297
|
+
`,
|
|
298
|
+
""
|
|
299
|
+
]);
|
|
300
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
301
|
+
shell: "shell-PMruQs",
|
|
302
|
+
skipLink: "skipLink-yR80ud",
|
|
303
|
+
bar: "bar-o8AymB",
|
|
304
|
+
barInner: "barInner-feWiUP",
|
|
305
|
+
brand: "brand-KL4jhb",
|
|
306
|
+
barNav: "barNav-MoDjCs",
|
|
307
|
+
actions: "actions-b1jjay",
|
|
308
|
+
menuButton: "menuButton-Dp7SLY",
|
|
309
|
+
main: "main-hxEowA",
|
|
310
|
+
navList: "navList-Zq3sIY",
|
|
311
|
+
navItem: "navItem-LuewCO"
|
|
312
|
+
};
|
|
313
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
314
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
315
|
+
A: __rspack_default_export
|
|
316
|
+
});
|
|
317
|
+
},
|
|
141
318
|
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/badge.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
142
319
|
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
143
320
|
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
@@ -511,9 +688,9 @@ __webpack_require__.add({
|
|
|
511
688
|
___CSS_LOADER_EXPORT___.push([
|
|
512
689
|
module.id,
|
|
513
690
|
`.list-eL6_dI {
|
|
514
|
-
flex-wrap: wrap;
|
|
515
691
|
align-items: center;
|
|
516
|
-
gap:
|
|
692
|
+
gap: var(--ox0-space-2xs) var(--ox0-space-xs);
|
|
693
|
+
flex-wrap: wrap;
|
|
517
694
|
margin: 0;
|
|
518
695
|
padding: 0;
|
|
519
696
|
list-style: none;
|
|
@@ -1058,6 +1235,8 @@ __webpack_require__.add({
|
|
|
1058
1235
|
___CSS_LOADER_EXPORT___.push([
|
|
1059
1236
|
module.id,
|
|
1060
1237
|
`.fieldset-ppnMnv {
|
|
1238
|
+
color: var(--ox0-color-foreground);
|
|
1239
|
+
align-content: start;
|
|
1061
1240
|
gap: var(--ox0-space-xs);
|
|
1062
1241
|
min-width: 0;
|
|
1063
1242
|
font-size: var(--ox0-font-size-md);
|
|
@@ -1070,7 +1249,6 @@ __webpack_require__.add({
|
|
|
1070
1249
|
.legend-q3mvtg {
|
|
1071
1250
|
float: left;
|
|
1072
1251
|
width: 100%;
|
|
1073
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
1074
1252
|
margin-bottom: var(--ox0-space-2xs);
|
|
1075
1253
|
padding: 0;
|
|
1076
1254
|
}
|
|
@@ -1154,11 +1332,13 @@ __webpack_require__.add({
|
|
|
1154
1332
|
module.id,
|
|
1155
1333
|
`.root-ZfGmPt {
|
|
1156
1334
|
font-size: var(--ox0-font-size-md);
|
|
1335
|
+
align-content: start;
|
|
1157
1336
|
gap: var(--ox0-space-xs);
|
|
1158
1337
|
display: grid;
|
|
1159
1338
|
}
|
|
1160
1339
|
|
|
1161
1340
|
.label-NpcnDS {
|
|
1341
|
+
color: var(--ox0-color-foreground);
|
|
1162
1342
|
cursor: pointer;
|
|
1163
1343
|
align-items: flex-start;
|
|
1164
1344
|
gap: .5rem;
|
|
@@ -1336,16 +1516,11 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
1336
1516
|
___CSS_LOADER_EXPORT___.push([
|
|
1337
1517
|
module.id,
|
|
1338
1518
|
`.root-WkZ_BN {
|
|
1519
|
+
align-content: start;
|
|
1339
1520
|
gap: var(--ox0-space-xs);
|
|
1340
1521
|
display: grid;
|
|
1341
1522
|
}
|
|
1342
1523
|
|
|
1343
|
-
.label-UcLArk {
|
|
1344
|
-
color: var(--ox0-color-muted);
|
|
1345
|
-
font-size: var(--ox0-font-size-sm);
|
|
1346
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
1524
|
.inputWrap-v2pqb1 {
|
|
1350
1525
|
display: grid;
|
|
1351
1526
|
position: relative;
|
|
@@ -1458,7 +1633,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
1458
1633
|
]);
|
|
1459
1634
|
___CSS_LOADER_EXPORT___.locals = {
|
|
1460
1635
|
root: "root-WkZ_BN",
|
|
1461
|
-
label: "label-UcLArk",
|
|
1462
1636
|
inputWrap: "inputWrap-v2pqb1",
|
|
1463
1637
|
input: "input-n3GGKy",
|
|
1464
1638
|
focusVisible: "focusVisible-adjirQ",
|
|
@@ -1478,6 +1652,53 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
1478
1652
|
A: __rspack_default_export
|
|
1479
1653
|
});
|
|
1480
1654
|
},
|
|
1655
|
+
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/confirm-dialog.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
1656
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
1657
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
1658
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
1659
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
1660
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
1661
|
+
___CSS_LOADER_EXPORT___.push([
|
|
1662
|
+
module.id,
|
|
1663
|
+
`.popover-r6JCmT {
|
|
1664
|
+
gap: var(--ox0-space-sm);
|
|
1665
|
+
max-inline-size: min(20rem, calc(100vw - 2 * var(--ox0-space-sm)));
|
|
1666
|
+
display: grid;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
.title-LdDtKM {
|
|
1670
|
+
color: var(--ox0-color-foreground);
|
|
1671
|
+
font-size: var(--ox0-font-size-md);
|
|
1672
|
+
font-weight: var(--ox0-font-weight-semibold);
|
|
1673
|
+
line-height: var(--ox0-line-height-snug);
|
|
1674
|
+
margin: 0;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
.description-LzMR2m {
|
|
1678
|
+
color: var(--ox0-color-muted);
|
|
1679
|
+
font-size: var(--ox0-font-size-sm);
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
.actions-GuPli0 {
|
|
1683
|
+
gap: var(--ox0-space-sm);
|
|
1684
|
+
justify-content: flex-end;
|
|
1685
|
+
margin-block-start: var(--ox0-space-xs);
|
|
1686
|
+
display: flex;
|
|
1687
|
+
}
|
|
1688
|
+
`,
|
|
1689
|
+
""
|
|
1690
|
+
]);
|
|
1691
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
1692
|
+
popover: "popover-r6JCmT",
|
|
1693
|
+
title: "title-LdDtKM",
|
|
1694
|
+
description: "description-LzMR2m",
|
|
1695
|
+
actions: "actions-GuPli0"
|
|
1696
|
+
};
|
|
1697
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
1698
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
1699
|
+
A: __rspack_default_export
|
|
1700
|
+
});
|
|
1701
|
+
},
|
|
1481
1702
|
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/dialog.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
1482
1703
|
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
1483
1704
|
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
@@ -2026,6 +2247,78 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2026
2247
|
A: __rspack_default_export
|
|
2027
2248
|
});
|
|
2028
2249
|
},
|
|
2250
|
+
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/drop-zone.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
2251
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
2252
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
2253
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
2254
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
2255
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
2256
|
+
___CSS_LOADER_EXPORT___.push([
|
|
2257
|
+
module.id,
|
|
2258
|
+
`.root-HAlTlg {
|
|
2259
|
+
align-content: start;
|
|
2260
|
+
gap: var(--ox0-space-xs);
|
|
2261
|
+
display: grid;
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
.zone-jE0ABH {
|
|
2265
|
+
background: var(--ox0-color-surface);
|
|
2266
|
+
border: 1.5px dashed var(--ox0-color-border-strong);
|
|
2267
|
+
border-radius: var(--ox0-radius-lg);
|
|
2268
|
+
color: var(--ox0-color-foreground);
|
|
2269
|
+
align-items: center;
|
|
2270
|
+
gap: var(--ox0-space-sm);
|
|
2271
|
+
padding: var(--ox0-space-xl) var(--ox0-space-lg);
|
|
2272
|
+
text-align: center;
|
|
2273
|
+
flex-direction: column;
|
|
2274
|
+
justify-content: center;
|
|
2275
|
+
display: flex;
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
.zone-jE0ABH[data-drop-target] {
|
|
2279
|
+
background: var(--ox0-color-accent-subtle);
|
|
2280
|
+
border-color: var(--ox0-color-accent);
|
|
2281
|
+
border-style: solid;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
.zone-jE0ABH[data-invalid] {
|
|
2285
|
+
border-color: var(--ox0-color-danger);
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
.zone-jE0ABH[data-disabled] {
|
|
2289
|
+
opacity: .5;
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
.hint-LFK4TH {
|
|
2293
|
+
color: var(--ox0-color-muted);
|
|
2294
|
+
font-size: var(--ox0-font-size-sm);
|
|
2295
|
+
margin: 0;
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
.description-SgOExI {
|
|
2299
|
+
color: var(--ox0-color-muted);
|
|
2300
|
+
font-size: var(--ox0-font-size-sm);
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
.error-MBDZz6 {
|
|
2304
|
+
color: var(--ox0-color-danger-text);
|
|
2305
|
+
font-size: var(--ox0-font-size-sm);
|
|
2306
|
+
}
|
|
2307
|
+
`,
|
|
2308
|
+
""
|
|
2309
|
+
]);
|
|
2310
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
2311
|
+
root: "root-HAlTlg",
|
|
2312
|
+
zone: "zone-jE0ABH",
|
|
2313
|
+
hint: "hint-LFK4TH",
|
|
2314
|
+
description: "description-SgOExI",
|
|
2315
|
+
error: "error-MBDZz6"
|
|
2316
|
+
};
|
|
2317
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
2318
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
2319
|
+
A: __rspack_default_export
|
|
2320
|
+
});
|
|
2321
|
+
},
|
|
2029
2322
|
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/field-group.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
2030
2323
|
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
2031
2324
|
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
@@ -2035,6 +2328,8 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2035
2328
|
___CSS_LOADER_EXPORT___.push([
|
|
2036
2329
|
module.id,
|
|
2037
2330
|
`.fieldset-MruCMe {
|
|
2331
|
+
color: var(--ox0-color-foreground);
|
|
2332
|
+
align-content: start;
|
|
2038
2333
|
gap: var(--ox0-space-xs);
|
|
2039
2334
|
min-width: 0;
|
|
2040
2335
|
font-size: var(--ox0-font-size-md);
|
|
@@ -2047,7 +2342,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2047
2342
|
.legend-ALGR7i {
|
|
2048
2343
|
float: left;
|
|
2049
2344
|
width: 100%;
|
|
2050
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
2051
2345
|
margin-bottom: var(--ox0-space-2xs);
|
|
2052
2346
|
padding: 0;
|
|
2053
2347
|
}
|
|
@@ -2096,7 +2390,7 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2096
2390
|
A: __rspack_default_export
|
|
2097
2391
|
});
|
|
2098
2392
|
},
|
|
2099
|
-
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/
|
|
2393
|
+
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/field.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
2100
2394
|
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
2101
2395
|
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
2102
2396
|
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
@@ -2104,39 +2398,102 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2104
2398
|
var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
2105
2399
|
___CSS_LOADER_EXPORT___.push([
|
|
2106
2400
|
module.id,
|
|
2107
|
-
`.
|
|
2401
|
+
`.label-YreTfV {
|
|
2108
2402
|
color: var(--ox0-color-foreground);
|
|
2109
|
-
align-items: baseline;
|
|
2110
|
-
gap: var(--ox0-space-xs);
|
|
2111
|
-
margin: 0;
|
|
2112
|
-
display: inline-flex;
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
.h1-HyQSOQ {
|
|
2116
|
-
font-size: var(--ox0-font-size-3xl);
|
|
2117
|
-
font-weight: var(--ox0-font-weight-bold);
|
|
2118
|
-
letter-spacing: var(--ox0-tracking-tight);
|
|
2119
|
-
line-height: var(--ox0-line-height-dense);
|
|
2120
|
-
}
|
|
2121
|
-
|
|
2122
|
-
.h2-LFrWtM {
|
|
2123
|
-
font-size: var(--ox0-font-size-2xl);
|
|
2124
|
-
font-weight: var(--ox0-font-weight-semibold);
|
|
2125
|
-
letter-spacing: var(--ox0-tracking-tight);
|
|
2126
|
-
line-height: var(--ox0-line-height-snug);
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
|
-
.h3-Q0U0vZ {
|
|
2130
|
-
color: var(--ox0-color-muted);
|
|
2131
2403
|
font-size: var(--ox0-font-size-sm);
|
|
2132
|
-
font-weight: var(--ox0-font-weight-
|
|
2133
|
-
|
|
2134
|
-
line-height: var(--ox0-line-height-normal);
|
|
2135
|
-
text-transform: uppercase;
|
|
2404
|
+
font-weight: var(--ox0-font-weight-medium);
|
|
2405
|
+
line-height: var(--ox0-line-height-snug);
|
|
2136
2406
|
}
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2407
|
+
`,
|
|
2408
|
+
""
|
|
2409
|
+
]);
|
|
2410
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
2411
|
+
label: "label-YreTfV"
|
|
2412
|
+
};
|
|
2413
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
2414
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
2415
|
+
A: __rspack_default_export
|
|
2416
|
+
});
|
|
2417
|
+
},
|
|
2418
|
+
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/file-trigger.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
2419
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
2420
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
2421
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
2422
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
2423
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
2424
|
+
___CSS_LOADER_EXPORT___.push([
|
|
2425
|
+
module.id,
|
|
2426
|
+
`.input-KbwbR8 {
|
|
2427
|
+
clip-path: inset(50%);
|
|
2428
|
+
white-space: nowrap;
|
|
2429
|
+
block-size: 1px;
|
|
2430
|
+
inline-size: 1px;
|
|
2431
|
+
position: absolute;
|
|
2432
|
+
overflow: hidden;
|
|
2433
|
+
}
|
|
2434
|
+
`,
|
|
2435
|
+
""
|
|
2436
|
+
]);
|
|
2437
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
2438
|
+
input: "input-KbwbR8"
|
|
2439
|
+
};
|
|
2440
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
2441
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
2442
|
+
A: __rspack_default_export
|
|
2443
|
+
});
|
|
2444
|
+
},
|
|
2445
|
+
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/heading.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
2446
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
2447
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
2448
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
2449
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
2450
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
2451
|
+
___CSS_LOADER_EXPORT___.push([
|
|
2452
|
+
module.id,
|
|
2453
|
+
`.heading-gDgjx2 {
|
|
2454
|
+
font-optical-sizing: auto;
|
|
2455
|
+
font-variant-numeric: lining-nums;
|
|
2456
|
+
text-wrap: balance;
|
|
2457
|
+
color: var(--ox0-color-foreground);
|
|
2458
|
+
align-items: baseline;
|
|
2459
|
+
gap: var(--ox0-space-xs);
|
|
2460
|
+
margin: 0;
|
|
2461
|
+
display: inline-flex;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
.h1-HyQSOQ {
|
|
2465
|
+
font-family: var(--ox0-font-heading);
|
|
2466
|
+
font-size: var(--ox0-font-size-4xl);
|
|
2467
|
+
font-weight: var(--ox0-font-weight-heading);
|
|
2468
|
+
letter-spacing: var(--ox0-tracking-heading);
|
|
2469
|
+
line-height: var(--ox0-line-height-tight);
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
.h2-LFrWtM {
|
|
2473
|
+
font-family: var(--ox0-font-subheading, var(--ox0-font-heading));
|
|
2474
|
+
font-size: var(--ox0-font-size-2xl);
|
|
2475
|
+
font-weight: var(--ox0-font-weight-subheading);
|
|
2476
|
+
letter-spacing: var(--ox0-tracking-subheading);
|
|
2477
|
+
line-height: var(--ox0-line-height-dense);
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
.h3-Q0U0vZ {
|
|
2481
|
+
font-size: var(--ox0-font-size-lg);
|
|
2482
|
+
font-weight: var(--ox0-font-weight-semibold);
|
|
2483
|
+
line-height: var(--ox0-line-height-snug);
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
.eyebrow-Bds3ov {
|
|
2487
|
+
color: var(--ox0-color-muted);
|
|
2488
|
+
font-size: var(--ox0-font-size-sm);
|
|
2489
|
+
font-weight: var(--ox0-font-weight-semibold);
|
|
2490
|
+
letter-spacing: var(--ox0-tracking-widest);
|
|
2491
|
+
line-height: var(--ox0-line-height-normal);
|
|
2492
|
+
text-transform: uppercase;
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
.anchor-OEWzis {
|
|
2496
|
+
color: var(--ox0-color-muted);
|
|
2140
2497
|
opacity: 0;
|
|
2141
2498
|
transition: opacity var(--ox0-duration-fast) var(--ox0-ease-crisp);
|
|
2142
2499
|
font-size: .8em;
|
|
@@ -2154,6 +2511,7 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2154
2511
|
h1: "h1-HyQSOQ",
|
|
2155
2512
|
h2: "h2-LFrWtM",
|
|
2156
2513
|
h3: "h3-Q0U0vZ",
|
|
2514
|
+
eyebrow: "eyebrow-Bds3ov",
|
|
2157
2515
|
anchor: "anchor-OEWzis"
|
|
2158
2516
|
};
|
|
2159
2517
|
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
@@ -2537,14 +2895,11 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2537
2895
|
`.root-DxBVJW {
|
|
2538
2896
|
color: var(--ox0-color-foreground);
|
|
2539
2897
|
font-size: var(--ox0-font-size-md);
|
|
2898
|
+
align-content: start;
|
|
2540
2899
|
gap: var(--ox0-space-xs);
|
|
2541
2900
|
display: grid;
|
|
2542
2901
|
}
|
|
2543
2902
|
|
|
2544
|
-
.label-GfyPDB {
|
|
2545
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
2546
|
-
}
|
|
2547
|
-
|
|
2548
2903
|
.control-iBbH3T {
|
|
2549
2904
|
background: var(--ox0-color-surface);
|
|
2550
2905
|
border: 1px solid var(--ox0-color-border);
|
|
@@ -2654,7 +3009,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2654
3009
|
]);
|
|
2655
3010
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2656
3011
|
root: "root-DxBVJW",
|
|
2657
|
-
label: "label-GfyPDB",
|
|
2658
3012
|
control: "control-iBbH3T",
|
|
2659
3013
|
focusVisible: "focusVisible-zo4PYi",
|
|
2660
3014
|
invalid: "invalid-ZWjZxr",
|
|
@@ -2669,6 +3023,90 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2669
3023
|
A: __rspack_default_export
|
|
2670
3024
|
});
|
|
2671
3025
|
},
|
|
3026
|
+
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/page.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
3027
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
3028
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
3029
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
3030
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
3031
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
3032
|
+
___CSS_LOADER_EXPORT___.push([
|
|
3033
|
+
module.id,
|
|
3034
|
+
`.page-_SlYJ7 {
|
|
3035
|
+
box-sizing: border-box;
|
|
3036
|
+
inline-size: 100%;
|
|
3037
|
+
padding-block: var(--ox0-space-xl) var(--ox0-space-3xl);
|
|
3038
|
+
padding-inline: var(--ox0-space-lg);
|
|
3039
|
+
flex-direction: column;
|
|
3040
|
+
margin-inline: auto;
|
|
3041
|
+
display: flex;
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
@media (width >= 48rem) {
|
|
3045
|
+
.page-_SlYJ7 {
|
|
3046
|
+
padding-block: var(--ox0-space-2xl) var(--ox0-space-4xl);
|
|
3047
|
+
padding-inline: var(--ox0-space-2xl);
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
|
|
3051
|
+
@media (width >= 64rem) {
|
|
3052
|
+
.page-_SlYJ7 {
|
|
3053
|
+
padding-inline: var(--ox0-space-3xl);
|
|
3054
|
+
}
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
.header-vK8pCg {
|
|
3058
|
+
gap: var(--ox0-space-sm);
|
|
3059
|
+
flex-direction: column;
|
|
3060
|
+
display: flex;
|
|
3061
|
+
}
|
|
3062
|
+
|
|
3063
|
+
.titleRow-O_tO2Q {
|
|
3064
|
+
align-items: flex-start;
|
|
3065
|
+
gap: var(--ox0-space-md) var(--ox0-space-lg);
|
|
3066
|
+
flex-wrap: wrap;
|
|
3067
|
+
justify-content: space-between;
|
|
3068
|
+
display: flex;
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
.titleBlock-lTKPdy {
|
|
3072
|
+
gap: var(--ox0-space-xs);
|
|
3073
|
+
flex-direction: column;
|
|
3074
|
+
flex: 20rem;
|
|
3075
|
+
min-inline-size: 0;
|
|
3076
|
+
display: flex;
|
|
3077
|
+
}
|
|
3078
|
+
|
|
3079
|
+
.description-adu2_d {
|
|
3080
|
+
color: var(--ox0-color-muted);
|
|
3081
|
+
font-size: var(--ox0-font-size-sm);
|
|
3082
|
+
letter-spacing: var(--ox0-tracking-small);
|
|
3083
|
+
line-height: var(--ox0-line-height-normal);
|
|
3084
|
+
max-inline-size: 60ch;
|
|
3085
|
+
margin: 0;
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
.actions-gRLYOT {
|
|
3089
|
+
align-items: center;
|
|
3090
|
+
gap: var(--ox0-space-sm);
|
|
3091
|
+
flex-wrap: wrap;
|
|
3092
|
+
display: flex;
|
|
3093
|
+
}
|
|
3094
|
+
`,
|
|
3095
|
+
""
|
|
3096
|
+
]);
|
|
3097
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
3098
|
+
page: "page-_SlYJ7",
|
|
3099
|
+
header: "header-vK8pCg",
|
|
3100
|
+
titleRow: "titleRow-O_tO2Q",
|
|
3101
|
+
titleBlock: "titleBlock-lTKPdy",
|
|
3102
|
+
description: "description-adu2_d",
|
|
3103
|
+
actions: "actions-gRLYOT"
|
|
3104
|
+
};
|
|
3105
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
3106
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
3107
|
+
A: __rspack_default_export
|
|
3108
|
+
});
|
|
3109
|
+
},
|
|
2672
3110
|
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/popover.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
2673
3111
|
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
2674
3112
|
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
@@ -2705,6 +3143,8 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2705
3143
|
___CSS_LOADER_EXPORT___.push([
|
|
2706
3144
|
module.id,
|
|
2707
3145
|
`.fieldset-PcJq3W {
|
|
3146
|
+
color: var(--ox0-color-foreground);
|
|
3147
|
+
align-content: start;
|
|
2708
3148
|
gap: var(--ox0-space-xs);
|
|
2709
3149
|
min-width: 0;
|
|
2710
3150
|
font-size: var(--ox0-font-size-md);
|
|
@@ -2717,7 +3157,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2717
3157
|
.legend-PnQZ5W {
|
|
2718
3158
|
float: left;
|
|
2719
3159
|
width: 100%;
|
|
2720
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
2721
3160
|
margin-bottom: var(--ox0-space-2xs);
|
|
2722
3161
|
padding: 0;
|
|
2723
3162
|
}
|
|
@@ -2802,14 +3241,11 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2802
3241
|
`.root-Bq3cNE {
|
|
2803
3242
|
color: var(--ox0-color-foreground);
|
|
2804
3243
|
font-size: var(--ox0-font-size-md);
|
|
3244
|
+
align-content: start;
|
|
2805
3245
|
gap: var(--ox0-space-xs);
|
|
2806
3246
|
display: grid;
|
|
2807
3247
|
}
|
|
2808
3248
|
|
|
2809
|
-
.label-apzt7o {
|
|
2810
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
2811
|
-
}
|
|
2812
|
-
|
|
2813
3249
|
.control-dbqWBN {
|
|
2814
3250
|
background: var(--ox0-color-surface);
|
|
2815
3251
|
border: 1px solid var(--ox0-color-border);
|
|
@@ -2908,7 +3344,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2908
3344
|
]);
|
|
2909
3345
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2910
3346
|
root: "root-Bq3cNE",
|
|
2911
|
-
label: "label-apzt7o",
|
|
2912
3347
|
control: "control-dbqWBN",
|
|
2913
3348
|
focusVisible: "focusVisible-BqgPk4",
|
|
2914
3349
|
invalid: "invalid-rUFqjW",
|
|
@@ -2932,16 +3367,11 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2932
3367
|
___CSS_LOADER_EXPORT___.push([
|
|
2933
3368
|
module.id,
|
|
2934
3369
|
`.root-FHU2Km {
|
|
3370
|
+
align-content: start;
|
|
2935
3371
|
gap: var(--ox0-space-xs);
|
|
2936
3372
|
display: grid;
|
|
2937
3373
|
}
|
|
2938
3374
|
|
|
2939
|
-
.label-QcwXLk {
|
|
2940
|
-
color: var(--ox0-color-muted);
|
|
2941
|
-
font-size: var(--ox0-font-size-sm);
|
|
2942
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
2943
|
-
}
|
|
2944
|
-
|
|
2945
3375
|
.trigger-fW1Sil {
|
|
2946
3376
|
background: var(--ox0-color-surface);
|
|
2947
3377
|
border: 1px solid var(--ox0-color-border);
|
|
@@ -3153,7 +3583,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3153
3583
|
]);
|
|
3154
3584
|
___CSS_LOADER_EXPORT___.locals = {
|
|
3155
3585
|
root: "root-FHU2Km",
|
|
3156
|
-
label: "label-QcwXLk",
|
|
3157
3586
|
trigger: "trigger-fW1Sil",
|
|
3158
3587
|
focusVisible: "focusVisible-jXb33t",
|
|
3159
3588
|
open: "open-b1Av3y",
|
|
@@ -3267,14 +3696,11 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3267
3696
|
`.root-TON2np {
|
|
3268
3697
|
color: var(--ox0-color-foreground);
|
|
3269
3698
|
font-size: var(--ox0-font-size-md);
|
|
3699
|
+
align-content: start;
|
|
3270
3700
|
gap: var(--ox0-space-xs);
|
|
3271
3701
|
display: grid;
|
|
3272
3702
|
}
|
|
3273
3703
|
|
|
3274
|
-
.label-OvvORl {
|
|
3275
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
3276
|
-
}
|
|
3277
|
-
|
|
3278
3704
|
.track-ORxtg9 {
|
|
3279
3705
|
-webkit-appearance: none;
|
|
3280
3706
|
appearance: none;
|
|
@@ -3401,7 +3827,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3401
3827
|
]);
|
|
3402
3828
|
___CSS_LOADER_EXPORT___.locals = {
|
|
3403
3829
|
root: "root-TON2np",
|
|
3404
|
-
label: "label-OvvORl",
|
|
3405
3830
|
track: "track-ORxtg9",
|
|
3406
3831
|
invalid: "invalid-zIlN78",
|
|
3407
3832
|
description: "description-coDMjf",
|
|
@@ -3534,11 +3959,13 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3534
3959
|
___CSS_LOADER_EXPORT___.push([
|
|
3535
3960
|
module.id,
|
|
3536
3961
|
`.root-oT5_Un {
|
|
3962
|
+
align-content: start;
|
|
3537
3963
|
gap: var(--ox0-space-xs);
|
|
3538
3964
|
display: grid;
|
|
3539
3965
|
}
|
|
3540
3966
|
|
|
3541
3967
|
.label-hZdO11 {
|
|
3968
|
+
color: var(--ox0-color-foreground);
|
|
3542
3969
|
cursor: pointer;
|
|
3543
3970
|
align-items: center;
|
|
3544
3971
|
gap: var(--ox0-space-sm);
|
|
@@ -3639,10 +4066,15 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3639
4066
|
overflow-x: auto;
|
|
3640
4067
|
}
|
|
3641
4068
|
|
|
4069
|
+
[data-ox0-flush] > .wrapper-XstlVN {
|
|
4070
|
+
border: none;
|
|
4071
|
+
border-radius: 0;
|
|
4072
|
+
}
|
|
4073
|
+
|
|
3642
4074
|
.table-FTBKr2 {
|
|
3643
4075
|
border-collapse: collapse;
|
|
3644
4076
|
width: 100%;
|
|
3645
|
-
font-size: var(--ox0-font-size-
|
|
4077
|
+
font-size: var(--ox0-font-size-sm);
|
|
3646
4078
|
color: var(--ox0-color-foreground);
|
|
3647
4079
|
}
|
|
3648
4080
|
|
|
@@ -3653,9 +4085,10 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3653
4085
|
|
|
3654
4086
|
.th-_gOdfi {
|
|
3655
4087
|
padding: var(--ox0-space-sm) var(--ox0-space-md);
|
|
3656
|
-
text-align:
|
|
3657
|
-
font-size: var(--ox0-font-size-
|
|
4088
|
+
text-align: start;
|
|
4089
|
+
font-size: var(--ox0-font-size-caption);
|
|
3658
4090
|
font-weight: var(--ox0-font-weight-medium);
|
|
4091
|
+
letter-spacing: var(--ox0-tracking-small);
|
|
3659
4092
|
color: var(--ox0-color-muted);
|
|
3660
4093
|
white-space: nowrap;
|
|
3661
4094
|
user-select: none;
|
|
@@ -3712,6 +4145,15 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3712
4145
|
outline: none;
|
|
3713
4146
|
}
|
|
3714
4147
|
|
|
4148
|
+
.alignCenter-UdU7O4 {
|
|
4149
|
+
text-align: center;
|
|
4150
|
+
}
|
|
4151
|
+
|
|
4152
|
+
.alignEnd-Tibq08 {
|
|
4153
|
+
font-variant-numeric: tabular-nums;
|
|
4154
|
+
text-align: end;
|
|
4155
|
+
}
|
|
4156
|
+
|
|
3715
4157
|
.td-eVn_gZ:focus-visible {
|
|
3716
4158
|
box-shadow: inset 0 0 0 2px var(--ox0-color-accent);
|
|
3717
4159
|
outline: none;
|
|
@@ -3728,7 +4170,9 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3728
4170
|
sortIcon: "sortIcon-ynIcGa",
|
|
3729
4171
|
tr: "tr-Nj6e6z",
|
|
3730
4172
|
selected: "selected-AJn0w7",
|
|
3731
|
-
td: "td-eVn_gZ"
|
|
4173
|
+
td: "td-eVn_gZ",
|
|
4174
|
+
alignCenter: "alignCenter-UdU7O4",
|
|
4175
|
+
alignEnd: "alignEnd-Tibq08"
|
|
3732
4176
|
};
|
|
3733
4177
|
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
3734
4178
|
__webpack_require__.d(__webpack_exports__, {}, {
|
|
@@ -3841,14 +4285,11 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3841
4285
|
`.root-czq2dC {
|
|
3842
4286
|
color: var(--ox0-color-foreground);
|
|
3843
4287
|
font-size: var(--ox0-font-size-md);
|
|
4288
|
+
align-content: start;
|
|
3844
4289
|
gap: var(--ox0-space-xs);
|
|
3845
4290
|
display: grid;
|
|
3846
4291
|
}
|
|
3847
4292
|
|
|
3848
|
-
.label-pNCdm5 {
|
|
3849
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
3850
|
-
}
|
|
3851
|
-
|
|
3852
4293
|
.description-FYzKc1 {
|
|
3853
4294
|
color: var(--ox0-color-muted);
|
|
3854
4295
|
font-size: var(--ox0-font-size-sm);
|
|
@@ -3972,7 +4413,6 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
3972
4413
|
]);
|
|
3973
4414
|
___CSS_LOADER_EXPORT___.locals = {
|
|
3974
4415
|
root: "root-czq2dC",
|
|
3975
|
-
label: "label-pNCdm5",
|
|
3976
4416
|
description: "description-FYzKc1",
|
|
3977
4417
|
error: "error-Ki_ghh",
|
|
3978
4418
|
tags: "tags-zkvYh0",
|
|
@@ -3998,14 +4438,11 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
3998
4438
|
`.root-EDj_sz {
|
|
3999
4439
|
color: var(--ox0-color-foreground);
|
|
4000
4440
|
font-size: var(--ox0-font-size-md);
|
|
4441
|
+
align-content: start;
|
|
4001
4442
|
gap: var(--ox0-space-xs);
|
|
4002
4443
|
display: grid;
|
|
4003
4444
|
}
|
|
4004
4445
|
|
|
4005
|
-
.label-S2rwc9 {
|
|
4006
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
4007
|
-
}
|
|
4008
|
-
|
|
4009
4446
|
.control-Vog3id {
|
|
4010
4447
|
background: var(--ox0-color-surface);
|
|
4011
4448
|
border: 1px solid var(--ox0-color-border);
|
|
@@ -4152,7 +4589,6 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
4152
4589
|
]);
|
|
4153
4590
|
___CSS_LOADER_EXPORT___.locals = {
|
|
4154
4591
|
root: "root-EDj_sz",
|
|
4155
|
-
label: "label-S2rwc9",
|
|
4156
4592
|
control: "control-Vog3id",
|
|
4157
4593
|
focusVisible: "focusVisible-r4K4nT",
|
|
4158
4594
|
invalid: "invalid-M29JY3",
|
|
@@ -4181,17 +4617,19 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
4181
4617
|
}
|
|
4182
4618
|
|
|
4183
4619
|
.display-FqY2br {
|
|
4184
|
-
font-
|
|
4185
|
-
font-
|
|
4186
|
-
|
|
4187
|
-
|
|
4620
|
+
font-family: var(--ox0-font-heading);
|
|
4621
|
+
font-size: var(--ox0-text-display-size, var(--ox0-font-size-4xl));
|
|
4622
|
+
font-weight: var(--ox0-text-display-weight, var(--ox0-font-weight-heading));
|
|
4623
|
+
line-height: var(--ox0-text-display-leading, var(--ox0-line-height-tight));
|
|
4624
|
+
letter-spacing: var(--ox0-text-display-tracking, var(--ox0-tracking-heading));
|
|
4188
4625
|
}
|
|
4189
4626
|
|
|
4190
4627
|
.heading-lg-sGfoZF {
|
|
4628
|
+
font-family: var(--ox0-font-subheading, var(--ox0-font-heading));
|
|
4191
4629
|
font-size: var(--ox0-text-heading-lg-size, var(--ox0-font-size-2xl));
|
|
4192
|
-
font-weight: var(--ox0-text-heading-lg-weight, var(--ox0-font-weight-
|
|
4193
|
-
line-height: var(--ox0-text-heading-lg-leading, var(--ox0-line-height-
|
|
4194
|
-
letter-spacing: var(--ox0-text-heading-lg-tracking, var(--ox0-tracking-
|
|
4630
|
+
font-weight: var(--ox0-text-heading-lg-weight, var(--ox0-font-weight-subheading));
|
|
4631
|
+
line-height: var(--ox0-text-heading-lg-leading, var(--ox0-line-height-dense));
|
|
4632
|
+
letter-spacing: var(--ox0-text-heading-lg-tracking, var(--ox0-tracking-subheading));
|
|
4195
4633
|
}
|
|
4196
4634
|
|
|
4197
4635
|
.heading-udDMTP {
|
|
@@ -4219,7 +4657,7 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
4219
4657
|
font-size: var(--ox0-text-body-sm-size, var(--ox0-font-size-sm));
|
|
4220
4658
|
font-weight: var(--ox0-text-body-sm-weight, var(--ox0-font-weight-normal));
|
|
4221
4659
|
line-height: var(--ox0-text-body-sm-leading, var(--ox0-line-height-normal));
|
|
4222
|
-
letter-spacing: var(--ox0-text-body-sm-tracking, var(--ox0-tracking-
|
|
4660
|
+
letter-spacing: var(--ox0-text-body-sm-tracking, var(--ox0-tracking-small));
|
|
4223
4661
|
}
|
|
4224
4662
|
|
|
4225
4663
|
.label-gX6o1x {
|
|
@@ -4231,10 +4669,10 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
4231
4669
|
}
|
|
4232
4670
|
|
|
4233
4671
|
.caption-F0inTg {
|
|
4234
|
-
font-size: var(--ox0-text-caption-size, var(--ox0-font-size-
|
|
4672
|
+
font-size: var(--ox0-text-caption-size, var(--ox0-font-size-caption));
|
|
4235
4673
|
font-weight: var(--ox0-text-caption-weight, var(--ox0-font-weight-normal));
|
|
4236
4674
|
line-height: var(--ox0-text-caption-leading, var(--ox0-line-height-normal));
|
|
4237
|
-
letter-spacing: var(--ox0-text-caption-tracking, var(--ox0-tracking-
|
|
4675
|
+
letter-spacing: var(--ox0-text-caption-tracking, var(--ox0-tracking-small));
|
|
4238
4676
|
}
|
|
4239
4677
|
|
|
4240
4678
|
.numeric-lD47Jl {
|
|
@@ -4552,6 +4990,91 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
4552
4990
|
A: __rspack_default_export
|
|
4553
4991
|
});
|
|
4554
4992
|
},
|
|
4993
|
+
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/layout/grid.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
4994
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
4995
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
4996
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
4997
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
4998
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
4999
|
+
___CSS_LOADER_EXPORT___.push([
|
|
5000
|
+
module.id,
|
|
5001
|
+
`.grid-bGKCj5 {
|
|
5002
|
+
--ox0-grid-auto-columns: repeat(auto-fit,
|
|
5003
|
+
minmax(min(var(--ox0-grid-min-column, 12rem), 100%), 1fr));
|
|
5004
|
+
grid-template-columns: var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns));
|
|
5005
|
+
grid-template-rows: var(--ox0-grid-rows-base, none);
|
|
5006
|
+
grid-template-areas: var(--ox0-grid-areas-base, none);
|
|
5007
|
+
display: grid;
|
|
5008
|
+
}
|
|
5009
|
+
|
|
5010
|
+
@media (width >= 30rem) {
|
|
5011
|
+
.grid-bGKCj5 {
|
|
5012
|
+
grid-template-columns: var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns)));
|
|
5013
|
+
grid-template-rows: var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none));
|
|
5014
|
+
grid-template-areas: var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none));
|
|
5015
|
+
}
|
|
5016
|
+
}
|
|
5017
|
+
|
|
5018
|
+
@media (width >= 48rem) {
|
|
5019
|
+
.grid-bGKCj5 {
|
|
5020
|
+
grid-template-columns: var(--ox0-grid-columns-md, var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns))));
|
|
5021
|
+
grid-template-rows: var(--ox0-grid-rows-md, var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none)));
|
|
5022
|
+
grid-template-areas: var(--ox0-grid-areas-md, var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none)));
|
|
5023
|
+
}
|
|
5024
|
+
}
|
|
5025
|
+
|
|
5026
|
+
@media (width >= 64rem) {
|
|
5027
|
+
.grid-bGKCj5 {
|
|
5028
|
+
grid-template-columns: var(--ox0-grid-columns-lg, var(--ox0-grid-columns-md, var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns)))));
|
|
5029
|
+
grid-template-rows: var(--ox0-grid-rows-lg, var(--ox0-grid-rows-md, var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none))));
|
|
5030
|
+
grid-template-areas: var(--ox0-grid-areas-lg, var(--ox0-grid-areas-md, var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none))));
|
|
5031
|
+
}
|
|
5032
|
+
}
|
|
5033
|
+
|
|
5034
|
+
@media (width >= 80rem) {
|
|
5035
|
+
.grid-bGKCj5 {
|
|
5036
|
+
grid-template-columns: var(--ox0-grid-columns-xl, var(--ox0-grid-columns-lg, var(--ox0-grid-columns-md, var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns))))));
|
|
5037
|
+
grid-template-rows: var(--ox0-grid-rows-xl, var(--ox0-grid-rows-lg, var(--ox0-grid-rows-md, var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none)))));
|
|
5038
|
+
grid-template-areas: var(--ox0-grid-areas-xl, var(--ox0-grid-areas-lg, var(--ox0-grid-areas-md, var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none)))));
|
|
5039
|
+
}
|
|
5040
|
+
}
|
|
5041
|
+
`,
|
|
5042
|
+
""
|
|
5043
|
+
]);
|
|
5044
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
5045
|
+
grid: "grid-bGKCj5"
|
|
5046
|
+
};
|
|
5047
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
5048
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
5049
|
+
A: __rspack_default_export
|
|
5050
|
+
});
|
|
5051
|
+
},
|
|
5052
|
+
"../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/providers/ox0-provider.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
5053
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
5054
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
5055
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
5056
|
+
var _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
5057
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_pnpm_rsbuild_core_2_1_13_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
5058
|
+
___CSS_LOADER_EXPORT___.push([
|
|
5059
|
+
module.id,
|
|
5060
|
+
`.root-_RvXxD {
|
|
5061
|
+
color: var(--ox0-color-foreground);
|
|
5062
|
+
font-family: var(--ox0-font-sans);
|
|
5063
|
+
font-size: var(--ox0-font-size-md);
|
|
5064
|
+
line-height: var(--ox0-line-height-normal);
|
|
5065
|
+
display: contents;
|
|
5066
|
+
}
|
|
5067
|
+
`,
|
|
5068
|
+
""
|
|
5069
|
+
]);
|
|
5070
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
5071
|
+
root: "root-_RvXxD"
|
|
5072
|
+
};
|
|
5073
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
5074
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
5075
|
+
A: __rspack_default_export
|
|
5076
|
+
});
|
|
5077
|
+
},
|
|
4555
5078
|
"data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M3.5 8.5l3 3 6-7%27/%3E%3C/svg%3E" (module) {
|
|
4556
5079
|
module.exports = "data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M3.5 8.5l3 3 6-7%27/%3E%3C/svg%3E";
|
|
4557
5080
|
},
|
|
@@ -4790,6 +5313,13 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
4790
5313
|
}
|
|
4791
5314
|
});
|
|
4792
5315
|
const defaultUiMessages = {
|
|
5316
|
+
"ox0.appShell.navTitle": "Menu",
|
|
5317
|
+
"ox0.appShell.openNav": "Open navigation",
|
|
5318
|
+
"ox0.appShell.skipToContent": "Skip to content",
|
|
5319
|
+
"ox0.confirm.cancel": "Cancel",
|
|
5320
|
+
"ox0.confirm.confirm": "Confirm",
|
|
5321
|
+
"ox0.dropZone.browse": "Choose file",
|
|
5322
|
+
"ox0.dropZone.browseMultiple": "Choose files",
|
|
4793
5323
|
"ox0.heading.anchorLabel": "Link to {id}",
|
|
4794
5324
|
"ox0.heading.anchorMarker": "#",
|
|
4795
5325
|
"ox0.select.selectedCount": "{count} selected",
|
|
@@ -4945,6 +5475,46 @@ const useSizing = (props)=>useMemo(()=>{
|
|
|
4945
5475
|
props.maxHeight,
|
|
4946
5476
|
props.aspectRatio
|
|
4947
5477
|
]);
|
|
5478
|
+
function splitLayoutItemProps({ width, minWidth, maxWidth, height, minHeight, maxHeight, aspectRatio, flex, flexGrow, flexShrink, flexBasis, alignSelf, gridArea, gridColumn, gridRow, order, ...rest }) {
|
|
5479
|
+
const layout = {
|
|
5480
|
+
width,
|
|
5481
|
+
minWidth,
|
|
5482
|
+
maxWidth,
|
|
5483
|
+
height,
|
|
5484
|
+
minHeight,
|
|
5485
|
+
maxHeight,
|
|
5486
|
+
aspectRatio,
|
|
5487
|
+
flex,
|
|
5488
|
+
flexGrow,
|
|
5489
|
+
flexShrink,
|
|
5490
|
+
flexBasis,
|
|
5491
|
+
alignSelf,
|
|
5492
|
+
gridArea,
|
|
5493
|
+
gridColumn,
|
|
5494
|
+
gridRow,
|
|
5495
|
+
order
|
|
5496
|
+
};
|
|
5497
|
+
return [
|
|
5498
|
+
layout,
|
|
5499
|
+
rest
|
|
5500
|
+
];
|
|
5501
|
+
}
|
|
5502
|
+
const useLayoutItem = (props)=>{
|
|
5503
|
+
const { style: sizingStyle } = useSizing(props);
|
|
5504
|
+
const { style: flexStyle } = useFlexItem(props);
|
|
5505
|
+
const { style: placementStyle } = usePlacement(props);
|
|
5506
|
+
return useMemo(()=>({
|
|
5507
|
+
style: {
|
|
5508
|
+
...sizingStyle,
|
|
5509
|
+
...flexStyle,
|
|
5510
|
+
...placementStyle
|
|
5511
|
+
}
|
|
5512
|
+
}), [
|
|
5513
|
+
sizingStyle,
|
|
5514
|
+
flexStyle,
|
|
5515
|
+
placementStyle
|
|
5516
|
+
]);
|
|
5517
|
+
};
|
|
4948
5518
|
const spacingMap = {
|
|
4949
5519
|
none: "0",
|
|
4950
5520
|
"2xs": "var(--ox0-space-2xs)",
|
|
@@ -5186,56 +5756,229 @@ function AccordionPanel({ children }) {
|
|
|
5186
5756
|
})
|
|
5187
5757
|
});
|
|
5188
5758
|
}
|
|
5189
|
-
const
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
const { style: spacingStyle } = useSpacing({
|
|
5208
|
-
gap,
|
|
5209
|
-
padding,
|
|
5210
|
-
paddingX,
|
|
5211
|
-
paddingY,
|
|
5212
|
-
paddingTop,
|
|
5213
|
-
paddingRight,
|
|
5214
|
-
paddingBottom,
|
|
5215
|
-
paddingLeft
|
|
5216
|
-
});
|
|
5217
|
-
return /*#__PURE__*/ jsx(Tag, {
|
|
5218
|
-
ref: ref,
|
|
5219
|
-
style: {
|
|
5220
|
-
alignItems: alignMap[align],
|
|
5221
|
-
display: "flex",
|
|
5222
|
-
flexWrap: wrap ? "wrap" : "nowrap",
|
|
5223
|
-
justifyContent: justifyMap[justify],
|
|
5224
|
-
...gridItemStyle,
|
|
5225
|
-
...spacingStyle
|
|
5226
|
-
},
|
|
5227
|
-
children: children
|
|
5759
|
+
const RouterContext = createContext(null);
|
|
5760
|
+
function useRouter() {
|
|
5761
|
+
return useContext(RouterContext);
|
|
5762
|
+
}
|
|
5763
|
+
function Chevron({ direction = "down", size = 16 }) {
|
|
5764
|
+
return /*#__PURE__*/ jsx("svg", {
|
|
5765
|
+
"aria-hidden": "true",
|
|
5766
|
+
fill: "none",
|
|
5767
|
+
height: size,
|
|
5768
|
+
stroke: "currentColor",
|
|
5769
|
+
strokeLinecap: "round",
|
|
5770
|
+
strokeLinejoin: "round",
|
|
5771
|
+
strokeWidth: 2,
|
|
5772
|
+
viewBox: "0 0 24 24",
|
|
5773
|
+
width: size,
|
|
5774
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
5775
|
+
d: "down" === direction ? "m6 9 6 6 6-6" : "m18 15-6-6-6 6"
|
|
5776
|
+
})
|
|
5228
5777
|
});
|
|
5229
|
-
}
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5778
|
+
}
|
|
5779
|
+
function Checkmark({ size = 16 }) {
|
|
5780
|
+
return /*#__PURE__*/ jsx("svg", {
|
|
5781
|
+
"aria-hidden": "true",
|
|
5782
|
+
fill: "none",
|
|
5783
|
+
height: size,
|
|
5784
|
+
stroke: "currentColor",
|
|
5785
|
+
strokeLinecap: "round",
|
|
5786
|
+
strokeLinejoin: "round",
|
|
5787
|
+
strokeWidth: 2,
|
|
5788
|
+
viewBox: "0 0 24 24",
|
|
5789
|
+
width: size,
|
|
5790
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
5791
|
+
d: "M20 6 9 17l-5-5"
|
|
5792
|
+
})
|
|
5793
|
+
});
|
|
5794
|
+
}
|
|
5795
|
+
function MenuGlyph({ size = 16 }) {
|
|
5796
|
+
return /*#__PURE__*/ jsx("svg", {
|
|
5797
|
+
"aria-hidden": "true",
|
|
5798
|
+
fill: "none",
|
|
5799
|
+
height: size,
|
|
5800
|
+
stroke: "currentColor",
|
|
5801
|
+
strokeLinecap: "round",
|
|
5802
|
+
strokeLinejoin: "round",
|
|
5803
|
+
strokeWidth: 2,
|
|
5804
|
+
viewBox: "0 0 24 24",
|
|
5805
|
+
width: size,
|
|
5806
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
5807
|
+
d: "M4 6h16M4 12h16M4 18h16"
|
|
5808
|
+
})
|
|
5809
|
+
});
|
|
5810
|
+
}
|
|
5811
|
+
const drawer_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/drawer.module.css");
|
|
5812
|
+
var drawer_module_options = {};
|
|
5813
|
+
drawer_module_options.styleTagTransform = styleTagTransform_default();
|
|
5814
|
+
drawer_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
5815
|
+
drawer_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
5816
|
+
drawer_module_options.domAPI = styleDomAPI_default();
|
|
5817
|
+
drawer_module_options.insertStyleElement = insertStyleElement_default();
|
|
5818
|
+
injectStylesIntoStyleTag_default()(drawer_module_0.A, drawer_module_options);
|
|
5819
|
+
const drawer_module = drawer_module_0.A && drawer_module_0.A.locals ? drawer_module_0.A.locals : void 0;
|
|
5820
|
+
const DEFAULT_WIDTH = 320;
|
|
5821
|
+
const DEFAULT_MIN_WIDTH = 240;
|
|
5822
|
+
const DEFAULT_MAX_WIDTH = 640;
|
|
5823
|
+
const KEYBOARD_RESIZE_STEP = 16;
|
|
5824
|
+
const DrawerContext = /*#__PURE__*/ createContext(null);
|
|
5825
|
+
function useDrawerContext() {
|
|
5826
|
+
const ctx = useContext(DrawerContext);
|
|
5827
|
+
if (!ctx) throw new Error("Drawer subcomponents must be used inside <Drawer>");
|
|
5828
|
+
return ctx;
|
|
5829
|
+
}
|
|
5830
|
+
function DrawerRoot({ children, isOpen, onClose, placement = "right", variant = "overlay", isDismissDisabled, isResizable = false, width: widthProp, defaultWidth = DEFAULT_WIDTH, onWidthChange, minWidth = DEFAULT_MIN_WIDTH, maxWidth = DEFAULT_MAX_WIDTH }) {
|
|
5831
|
+
const titleId = useId();
|
|
5832
|
+
const [phase, setPhase] = useState(isOpen ? "entering" : "closed");
|
|
5833
|
+
const [width, setWidth] = useControllableState({
|
|
5834
|
+
defaultValue: defaultWidth,
|
|
5835
|
+
value: widthProp,
|
|
5836
|
+
onChange: onWidthChange
|
|
5837
|
+
});
|
|
5838
|
+
const dragRef = useRef(null);
|
|
5839
|
+
const panelRef = useRef(null);
|
|
5840
|
+
useEffect(()=>{
|
|
5841
|
+
setPhase((current)=>{
|
|
5842
|
+
if (isOpen) return "closed" === current ? "entering" : "exiting" === current ? "open" : current;
|
|
5843
|
+
return "closed" === current ? "closed" : "exiting";
|
|
5844
|
+
});
|
|
5845
|
+
}, [
|
|
5846
|
+
isOpen
|
|
5847
|
+
]);
|
|
5848
|
+
const contextValue = useMemo(()=>({
|
|
5849
|
+
onClose,
|
|
5850
|
+
titleId
|
|
5851
|
+
}), [
|
|
5852
|
+
onClose,
|
|
5853
|
+
titleId
|
|
5854
|
+
]);
|
|
5855
|
+
useEffect(()=>{
|
|
5856
|
+
if (!isOpen) return;
|
|
5857
|
+
const handler = (e)=>{
|
|
5858
|
+
if ("Escape" === e.key) {
|
|
5859
|
+
e.preventDefault();
|
|
5860
|
+
if (!isDismissDisabled) onClose();
|
|
5861
|
+
}
|
|
5862
|
+
};
|
|
5863
|
+
document.addEventListener("keydown", handler);
|
|
5864
|
+
return ()=>document.removeEventListener("keydown", handler);
|
|
5865
|
+
}, [
|
|
5866
|
+
isDismissDisabled,
|
|
5867
|
+
isOpen,
|
|
5868
|
+
onClose
|
|
5869
|
+
]);
|
|
5870
|
+
useEffect(()=>{
|
|
5871
|
+
if (!isOpen || "overlay" !== variant) return;
|
|
5872
|
+
const handler = (e)=>{
|
|
5873
|
+
if (isDismissDisabled) return;
|
|
5874
|
+
if (!(e.target instanceof Node)) return;
|
|
5875
|
+
if (panelRef.current?.contains(e.target)) return;
|
|
5876
|
+
onClose();
|
|
5877
|
+
};
|
|
5878
|
+
document.addEventListener("pointerdown", handler);
|
|
5879
|
+
return ()=>document.removeEventListener("pointerdown", handler);
|
|
5880
|
+
}, [
|
|
5881
|
+
isDismissDisabled,
|
|
5882
|
+
isOpen,
|
|
5883
|
+
onClose,
|
|
5884
|
+
variant
|
|
5885
|
+
]);
|
|
5886
|
+
if ("closed" === phase) return null;
|
|
5887
|
+
function clampWidth(next) {
|
|
5888
|
+
return Math.min(maxWidth, Math.max(minWidth, next));
|
|
5889
|
+
}
|
|
5890
|
+
function handleResizePointerDown(event) {
|
|
5891
|
+
dragRef.current = {
|
|
5892
|
+
startX: event.clientX,
|
|
5893
|
+
startWidth: width
|
|
5894
|
+
};
|
|
5895
|
+
event.currentTarget.setPointerCapture(event.pointerId);
|
|
5896
|
+
}
|
|
5897
|
+
function handleResizePointerMove(event) {
|
|
5898
|
+
const drag = dragRef.current;
|
|
5899
|
+
if (!drag) return;
|
|
5900
|
+
const delta = event.clientX - drag.startX;
|
|
5901
|
+
const signedDelta = "right" === placement ? -delta : delta;
|
|
5902
|
+
setWidth(clampWidth(drag.startWidth + signedDelta));
|
|
5903
|
+
}
|
|
5904
|
+
function handleResizePointerUp(event) {
|
|
5905
|
+
dragRef.current = null;
|
|
5906
|
+
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
5907
|
+
}
|
|
5908
|
+
function handleResizeKeyDown(event) {
|
|
5909
|
+
const directionSign = "right" === placement ? -1 : 1;
|
|
5910
|
+
if ("ArrowLeft" === event.key) {
|
|
5911
|
+
event.preventDefault();
|
|
5912
|
+
setWidth(clampWidth(width - directionSign * KEYBOARD_RESIZE_STEP));
|
|
5913
|
+
} else if ("ArrowRight" === event.key) {
|
|
5914
|
+
event.preventDefault();
|
|
5915
|
+
setWidth(clampWidth(width + directionSign * KEYBOARD_RESIZE_STEP));
|
|
5916
|
+
}
|
|
5917
|
+
}
|
|
5918
|
+
const panelStyle = {
|
|
5919
|
+
width,
|
|
5920
|
+
"--ox0-drawer-width": `${width}px`
|
|
5921
|
+
};
|
|
5922
|
+
const panel = /*#__PURE__*/ jsx(DrawerContext.Provider, {
|
|
5923
|
+
value: contextValue,
|
|
5924
|
+
children: /*#__PURE__*/ jsxs("aside", {
|
|
5925
|
+
"aria-labelledby": titleId,
|
|
5926
|
+
className: drawer_module.panel,
|
|
5927
|
+
"data-phase": phase,
|
|
5928
|
+
"data-placement": placement,
|
|
5929
|
+
"data-variant": variant,
|
|
5930
|
+
ref: panelRef,
|
|
5931
|
+
style: panelStyle,
|
|
5932
|
+
onAnimationEnd: (e)=>{
|
|
5933
|
+
if (e.target !== e.currentTarget) return;
|
|
5934
|
+
if ("entering" === phase) setPhase("open");
|
|
5935
|
+
else if ("exiting" === phase) setPhase("closed");
|
|
5936
|
+
},
|
|
5937
|
+
children: [
|
|
5938
|
+
isResizable && /*#__PURE__*/ jsx("div", {
|
|
5939
|
+
"aria-label": "Resize panel",
|
|
5940
|
+
"aria-orientation": "vertical",
|
|
5941
|
+
"aria-valuemax": maxWidth,
|
|
5942
|
+
"aria-valuemin": minWidth,
|
|
5943
|
+
"aria-valuenow": width,
|
|
5944
|
+
className: drawer_module.resizeHandle,
|
|
5945
|
+
"data-placement": placement,
|
|
5946
|
+
role: "separator",
|
|
5947
|
+
tabIndex: 0,
|
|
5948
|
+
onKeyDown: handleResizeKeyDown,
|
|
5949
|
+
onPointerDown: handleResizePointerDown,
|
|
5950
|
+
onPointerMove: handleResizePointerMove,
|
|
5951
|
+
onPointerUp: handleResizePointerUp
|
|
5952
|
+
}),
|
|
5953
|
+
/*#__PURE__*/ jsx("div", {
|
|
5954
|
+
className: drawer_module.content,
|
|
5955
|
+
children: children
|
|
5956
|
+
})
|
|
5957
|
+
]
|
|
5958
|
+
})
|
|
5959
|
+
});
|
|
5960
|
+
if ("push" === variant) {
|
|
5961
|
+
const pushStyle = {
|
|
5962
|
+
"--ox0-drawer-width": `${width}px`
|
|
5963
|
+
};
|
|
5964
|
+
return /*#__PURE__*/ jsx("div", {
|
|
5965
|
+
className: drawer_module.pushContainer,
|
|
5966
|
+
"data-phase": phase,
|
|
5967
|
+
style: pushStyle,
|
|
5968
|
+
onAnimationEnd: (e)=>{
|
|
5969
|
+
if (e.target !== e.currentTarget) return;
|
|
5970
|
+
if ("entering" === phase) setPhase("open");
|
|
5971
|
+
else if ("exiting" === phase) setPhase("closed");
|
|
5972
|
+
},
|
|
5973
|
+
children: panel
|
|
5974
|
+
});
|
|
5975
|
+
}
|
|
5976
|
+
return /*#__PURE__*/ createPortal(/*#__PURE__*/ jsx("div", {
|
|
5977
|
+
className: drawer_module.overlayContainer,
|
|
5978
|
+
"data-placement": placement,
|
|
5979
|
+
children: panel
|
|
5980
|
+
}), document.body);
|
|
5981
|
+
}
|
|
5239
5982
|
const CloseIcon = ()=>/*#__PURE__*/ jsxs("svg", {
|
|
5240
5983
|
"aria-hidden": "true",
|
|
5241
5984
|
fill: "none",
|
|
@@ -5261,20 +6004,553 @@ const CloseIcon = ()=>/*#__PURE__*/ jsxs("svg", {
|
|
|
5261
6004
|
})
|
|
5262
6005
|
]
|
|
5263
6006
|
});
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
fill: "none",
|
|
5269
|
-
height: "16",
|
|
5270
|
-
stroke: "currentColor",
|
|
5271
|
-
strokeLinecap: "round",
|
|
5272
|
-
strokeLinejoin: "round",
|
|
5273
|
-
strokeWidth: "2",
|
|
5274
|
-
viewBox: "0 0 16 16",
|
|
5275
|
-
width: "16",
|
|
6007
|
+
function DrawerHeader({ children }) {
|
|
6008
|
+
const { onClose } = useDrawerContext();
|
|
6009
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
6010
|
+
className: drawer_module.header,
|
|
5276
6011
|
children: [
|
|
5277
|
-
/*#__PURE__*/ jsx("
|
|
6012
|
+
/*#__PURE__*/ jsx("div", {
|
|
6013
|
+
className: drawer_module.headerContent,
|
|
6014
|
+
children: children
|
|
6015
|
+
}),
|
|
6016
|
+
/*#__PURE__*/ jsx("button", {
|
|
6017
|
+
"aria-label": "Close",
|
|
6018
|
+
className: drawer_module.closeButton,
|
|
6019
|
+
type: "button",
|
|
6020
|
+
onClick: onClose,
|
|
6021
|
+
children: /*#__PURE__*/ jsx(CloseIcon, {})
|
|
6022
|
+
})
|
|
6023
|
+
]
|
|
6024
|
+
});
|
|
6025
|
+
}
|
|
6026
|
+
function DrawerTitle({ children }) {
|
|
6027
|
+
const { titleId } = useDrawerContext();
|
|
6028
|
+
return /*#__PURE__*/ jsx("h2", {
|
|
6029
|
+
id: titleId,
|
|
6030
|
+
className: drawer_module.title,
|
|
6031
|
+
children: children
|
|
6032
|
+
});
|
|
6033
|
+
}
|
|
6034
|
+
function DrawerBody({ children }) {
|
|
6035
|
+
return /*#__PURE__*/ jsx("div", {
|
|
6036
|
+
className: drawer_module.body,
|
|
6037
|
+
children: children
|
|
6038
|
+
});
|
|
6039
|
+
}
|
|
6040
|
+
function DrawerFooter({ children }) {
|
|
6041
|
+
return /*#__PURE__*/ jsx("div", {
|
|
6042
|
+
className: drawer_module.footer,
|
|
6043
|
+
children: children
|
|
6044
|
+
});
|
|
6045
|
+
}
|
|
6046
|
+
const Drawer = Object.assign(DrawerRoot, {
|
|
6047
|
+
displayName: "Drawer",
|
|
6048
|
+
Header: DrawerHeader,
|
|
6049
|
+
Title: DrawerTitle,
|
|
6050
|
+
Body: DrawerBody,
|
|
6051
|
+
Footer: DrawerFooter
|
|
6052
|
+
});
|
|
6053
|
+
const SAFE_HREF = /^(\/|\.\.?\/|#.+|https?:\/\/|mailto:|tel:)/i;
|
|
6054
|
+
function isSafeHref(to) {
|
|
6055
|
+
return SAFE_HREF.test(to);
|
|
6056
|
+
}
|
|
6057
|
+
const button_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/button.module.css");
|
|
6058
|
+
var button_module_options = {};
|
|
6059
|
+
button_module_options.styleTagTransform = styleTagTransform_default();
|
|
6060
|
+
button_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
6061
|
+
button_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
6062
|
+
button_module_options.domAPI = styleDomAPI_default();
|
|
6063
|
+
button_module_options.insertStyleElement = insertStyleElement_default();
|
|
6064
|
+
injectStylesIntoStyleTag_default()(button_module_0.A, button_module_options);
|
|
6065
|
+
const button_module = button_module_0.A && button_module_0.A.locals ? button_module_0.A.locals : void 0;
|
|
6066
|
+
const iconSize = {
|
|
6067
|
+
xs: 12,
|
|
6068
|
+
sm: 14,
|
|
6069
|
+
md: 16,
|
|
6070
|
+
lg: 18
|
|
6071
|
+
};
|
|
6072
|
+
const MIN_PRESS_MS = 150;
|
|
6073
|
+
function useMinPressDuration(isPressed) {
|
|
6074
|
+
const [isVisuallyPressed, setIsVisuallyPressed] = useState(false);
|
|
6075
|
+
const pressStartRef = useRef(0);
|
|
6076
|
+
const timeoutRef = useRef(void 0);
|
|
6077
|
+
useEffect(()=>{
|
|
6078
|
+
if (isPressed) {
|
|
6079
|
+
clearTimeout(timeoutRef.current);
|
|
6080
|
+
pressStartRef.current = Date.now();
|
|
6081
|
+
setIsVisuallyPressed(true);
|
|
6082
|
+
} else {
|
|
6083
|
+
const remaining = MIN_PRESS_MS - (Date.now() - pressStartRef.current);
|
|
6084
|
+
if (remaining > 0) timeoutRef.current = setTimeout(()=>setIsVisuallyPressed(false), remaining);
|
|
6085
|
+
else setIsVisuallyPressed(false);
|
|
6086
|
+
}
|
|
6087
|
+
return ()=>clearTimeout(timeoutRef.current);
|
|
6088
|
+
}, [
|
|
6089
|
+
isPressed
|
|
6090
|
+
]);
|
|
6091
|
+
return isVisuallyPressed;
|
|
6092
|
+
}
|
|
6093
|
+
const button_Button = /*#__PURE__*/ forwardRef(function({ children, icon: Icon, iconEnd: IconEnd, isDisabled, isSelected, onPress, onPressStart, onPressEnd, onPressChange, onPressUp, onPointerEnter, onPointerLeave, size = "md", type = "button", variant = "secondary", ...rest }, ref) {
|
|
6094
|
+
const { pressProps, isPressed: isActuallyPressed } = usePress({
|
|
6095
|
+
onPress,
|
|
6096
|
+
onPressStart,
|
|
6097
|
+
onPressEnd,
|
|
6098
|
+
onPressChange,
|
|
6099
|
+
onPressUp,
|
|
6100
|
+
isDisabled
|
|
6101
|
+
});
|
|
6102
|
+
const isPressed = useMinPressDuration(isActuallyPressed);
|
|
6103
|
+
const isIconOnly = void 0 !== Icon && void 0 === IconEnd && null == children;
|
|
6104
|
+
const composedPointerEnter = onPointerEnter ? (e)=>{
|
|
6105
|
+
onPointerEnter(e);
|
|
6106
|
+
pressProps.onPointerEnter?.(e);
|
|
6107
|
+
} : pressProps.onPointerEnter;
|
|
6108
|
+
const composedPointerLeave = onPointerLeave ? (e)=>{
|
|
6109
|
+
onPointerLeave(e);
|
|
6110
|
+
pressProps.onPointerLeave?.(e);
|
|
6111
|
+
} : pressProps.onPointerLeave;
|
|
6112
|
+
return /*#__PURE__*/ jsx("button", {
|
|
6113
|
+
ref: ref,
|
|
6114
|
+
...rest,
|
|
6115
|
+
...pressProps,
|
|
6116
|
+
onPointerEnter: composedPointerEnter,
|
|
6117
|
+
onPointerLeave: composedPointerLeave,
|
|
6118
|
+
"aria-pressed": isSelected,
|
|
6119
|
+
className: [
|
|
6120
|
+
button_module.button,
|
|
6121
|
+
button_module[variant],
|
|
6122
|
+
button_module[size],
|
|
6123
|
+
isPressed && button_module.pressed,
|
|
6124
|
+
isSelected && button_module.selected,
|
|
6125
|
+
isIconOnly ? button_module.iconOnly : Icon && button_module.hasIcon,
|
|
6126
|
+
IconEnd && button_module.hasIconEnd
|
|
6127
|
+
].filter(Boolean).join(" "),
|
|
6128
|
+
"data-variant": variant,
|
|
6129
|
+
disabled: isDisabled,
|
|
6130
|
+
type: type,
|
|
6131
|
+
children: /*#__PURE__*/ jsxs("span", {
|
|
6132
|
+
className: button_module.content,
|
|
6133
|
+
children: [
|
|
6134
|
+
Icon && /*#__PURE__*/ jsx(Icon, {
|
|
6135
|
+
size: iconSize[size]
|
|
6136
|
+
}),
|
|
6137
|
+
children,
|
|
6138
|
+
IconEnd && /*#__PURE__*/ jsx(IconEnd, {
|
|
6139
|
+
size: iconSize[size]
|
|
6140
|
+
})
|
|
6141
|
+
]
|
|
6142
|
+
})
|
|
6143
|
+
});
|
|
6144
|
+
});
|
|
6145
|
+
const WARMUP_MS = 1000;
|
|
6146
|
+
const COOLDOWN_MS = 500;
|
|
6147
|
+
let warm = false;
|
|
6148
|
+
let cooldownTimer = null;
|
|
6149
|
+
const tooltipManager = {
|
|
6150
|
+
getDelay () {
|
|
6151
|
+
return warm ? 0 : WARMUP_MS;
|
|
6152
|
+
},
|
|
6153
|
+
onOpen () {
|
|
6154
|
+
if (null !== cooldownTimer) {
|
|
6155
|
+
clearTimeout(cooldownTimer);
|
|
6156
|
+
cooldownTimer = null;
|
|
6157
|
+
}
|
|
6158
|
+
warm = true;
|
|
6159
|
+
},
|
|
6160
|
+
onClose () {
|
|
6161
|
+
if (null !== cooldownTimer) clearTimeout(cooldownTimer);
|
|
6162
|
+
cooldownTimer = setTimeout(()=>{
|
|
6163
|
+
warm = false;
|
|
6164
|
+
cooldownTimer = null;
|
|
6165
|
+
}, COOLDOWN_MS);
|
|
6166
|
+
}
|
|
6167
|
+
};
|
|
6168
|
+
const tooltip_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tooltip.module.css");
|
|
6169
|
+
var tooltip_module_options = {};
|
|
6170
|
+
tooltip_module_options.styleTagTransform = styleTagTransform_default();
|
|
6171
|
+
tooltip_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
6172
|
+
tooltip_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
6173
|
+
tooltip_module_options.domAPI = styleDomAPI_default();
|
|
6174
|
+
tooltip_module_options.insertStyleElement = insertStyleElement_default();
|
|
6175
|
+
injectStylesIntoStyleTag_default()(tooltip_module_0.A, tooltip_module_options);
|
|
6176
|
+
const tooltip_module = tooltip_module_0.A && tooltip_module_0.A.locals ? tooltip_module_0.A.locals : void 0;
|
|
6177
|
+
const TooltipContext = /*#__PURE__*/ createContext(null);
|
|
6178
|
+
function useTooltipContext() {
|
|
6179
|
+
const ctx = useContext(TooltipContext);
|
|
6180
|
+
if (!ctx) throw new Error("TooltipTrigger and TooltipContent must be used inside <Tooltip>");
|
|
6181
|
+
return ctx;
|
|
6182
|
+
}
|
|
6183
|
+
function Tooltip({ children, placement = "top", isDisabled = false }) {
|
|
6184
|
+
const [open, setOpen] = useState(false);
|
|
6185
|
+
const openTimerRef = useRef(null);
|
|
6186
|
+
const isHoveringRef = useRef(false);
|
|
6187
|
+
const isFocusedRef = useRef(false);
|
|
6188
|
+
const clearOpenTimer = useCallback(()=>{
|
|
6189
|
+
if (null !== openTimerRef.current) {
|
|
6190
|
+
clearTimeout(openTimerRef.current);
|
|
6191
|
+
openTimerRef.current = null;
|
|
6192
|
+
}
|
|
6193
|
+
}, []);
|
|
6194
|
+
const { refs, floatingStyles, context } = useFloating({
|
|
6195
|
+
open,
|
|
6196
|
+
onOpenChange: (nextOpen)=>{
|
|
6197
|
+
if (!nextOpen) {
|
|
6198
|
+
clearOpenTimer();
|
|
6199
|
+
isHoveringRef.current = false;
|
|
6200
|
+
isFocusedRef.current = false;
|
|
6201
|
+
setOpen(false);
|
|
6202
|
+
tooltipManager.onClose();
|
|
6203
|
+
}
|
|
6204
|
+
},
|
|
6205
|
+
placement,
|
|
6206
|
+
middleware: [
|
|
6207
|
+
offset(8),
|
|
6208
|
+
flip(),
|
|
6209
|
+
shift({
|
|
6210
|
+
padding: 8
|
|
6211
|
+
})
|
|
6212
|
+
],
|
|
6213
|
+
whileElementsMounted: autoUpdate
|
|
6214
|
+
});
|
|
6215
|
+
const dismiss = useDismiss(context, {
|
|
6216
|
+
referencePress: false
|
|
6217
|
+
});
|
|
6218
|
+
const role = useRole(context, {
|
|
6219
|
+
role: "tooltip"
|
|
6220
|
+
});
|
|
6221
|
+
const { getReferenceProps, getFloatingProps } = useInteractions([
|
|
6222
|
+
dismiss,
|
|
6223
|
+
role
|
|
6224
|
+
]);
|
|
6225
|
+
const doOpen = useCallback(()=>{
|
|
6226
|
+
clearOpenTimer();
|
|
6227
|
+
setOpen(true);
|
|
6228
|
+
tooltipManager.onOpen();
|
|
6229
|
+
}, [
|
|
6230
|
+
clearOpenTimer
|
|
6231
|
+
]);
|
|
6232
|
+
const tryClose = useCallback(()=>{
|
|
6233
|
+
if (!isHoveringRef.current && !isFocusedRef.current) {
|
|
6234
|
+
clearOpenTimer();
|
|
6235
|
+
setOpen(false);
|
|
6236
|
+
tooltipManager.onClose();
|
|
6237
|
+
}
|
|
6238
|
+
}, [
|
|
6239
|
+
clearOpenTimer
|
|
6240
|
+
]);
|
|
6241
|
+
const referenceProps = getReferenceProps({
|
|
6242
|
+
onPointerEnter (e) {
|
|
6243
|
+
if ("touch" === e.pointerType) return;
|
|
6244
|
+
if (isHoveringRef.current) return;
|
|
6245
|
+
isHoveringRef.current = true;
|
|
6246
|
+
const delay = tooltipManager.getDelay();
|
|
6247
|
+
if (0 === delay) doOpen();
|
|
6248
|
+
else openTimerRef.current = setTimeout(()=>{
|
|
6249
|
+
openTimerRef.current = null;
|
|
6250
|
+
doOpen();
|
|
6251
|
+
}, delay);
|
|
6252
|
+
},
|
|
6253
|
+
onPointerLeave () {
|
|
6254
|
+
isHoveringRef.current = false;
|
|
6255
|
+
tryClose();
|
|
6256
|
+
},
|
|
6257
|
+
onFocus () {
|
|
6258
|
+
if (!hooks_isFocusVisible()) return;
|
|
6259
|
+
isFocusedRef.current = true;
|
|
6260
|
+
clearOpenTimer();
|
|
6261
|
+
doOpen();
|
|
6262
|
+
},
|
|
6263
|
+
onBlur () {
|
|
6264
|
+
isFocusedRef.current = false;
|
|
6265
|
+
tryClose();
|
|
6266
|
+
}
|
|
6267
|
+
});
|
|
6268
|
+
const value = {
|
|
6269
|
+
open,
|
|
6270
|
+
isDisabled,
|
|
6271
|
+
referenceRef: refs.setReference,
|
|
6272
|
+
floatingRef: refs.setFloating,
|
|
6273
|
+
floatingStyles,
|
|
6274
|
+
getReferenceProps: ()=>referenceProps,
|
|
6275
|
+
getFloatingProps
|
|
6276
|
+
};
|
|
6277
|
+
return /*#__PURE__*/ jsx(TooltipContext.Provider, {
|
|
6278
|
+
value: value,
|
|
6279
|
+
children: children
|
|
6280
|
+
});
|
|
6281
|
+
}
|
|
6282
|
+
function TooltipTrigger({ children }) {
|
|
6283
|
+
const { isDisabled, referenceRef, getReferenceProps } = useTooltipContext();
|
|
6284
|
+
const { ref: childRef, ...childProps } = children.props;
|
|
6285
|
+
const composedRef = useMergeRefs([
|
|
6286
|
+
referenceRef,
|
|
6287
|
+
childRef ?? null
|
|
6288
|
+
]);
|
|
6289
|
+
if (isDisabled) return children;
|
|
6290
|
+
return /*#__PURE__*/ cloneElement(children, {
|
|
6291
|
+
...getReferenceProps(childProps),
|
|
6292
|
+
ref: composedRef
|
|
6293
|
+
});
|
|
6294
|
+
}
|
|
6295
|
+
function TooltipContent({ children }) {
|
|
6296
|
+
const { open, floatingRef, floatingStyles, getFloatingProps } = useTooltipContext();
|
|
6297
|
+
if (!open) return null;
|
|
6298
|
+
return /*#__PURE__*/ jsx(FloatingPortal, {
|
|
6299
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
6300
|
+
ref: floatingRef,
|
|
6301
|
+
style: floatingStyles,
|
|
6302
|
+
className: tooltip_module.tooltip,
|
|
6303
|
+
...getFloatingProps(),
|
|
6304
|
+
children: children
|
|
6305
|
+
})
|
|
6306
|
+
});
|
|
6307
|
+
}
|
|
6308
|
+
const icon_button_IconButton = /*#__PURE__*/ forwardRef(function({ icon: Icon, label, size = "md", tooltipPlacement, variant = "circle", ...props }, ref) {
|
|
6309
|
+
return /*#__PURE__*/ jsxs(Tooltip, {
|
|
6310
|
+
placement: tooltipPlacement,
|
|
6311
|
+
children: [
|
|
6312
|
+
/*#__PURE__*/ jsx(TooltipTrigger, {
|
|
6313
|
+
children: /*#__PURE__*/ jsx(button_Button, {
|
|
6314
|
+
...props,
|
|
6315
|
+
ref: ref,
|
|
6316
|
+
"aria-label": label,
|
|
6317
|
+
icon: Icon,
|
|
6318
|
+
size: size,
|
|
6319
|
+
variant: variant
|
|
6320
|
+
})
|
|
6321
|
+
}),
|
|
6322
|
+
/*#__PURE__*/ jsx(TooltipContent, {
|
|
6323
|
+
children: label
|
|
6324
|
+
})
|
|
6325
|
+
]
|
|
6326
|
+
});
|
|
6327
|
+
});
|
|
6328
|
+
const app_shell_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/app-shell.module.css");
|
|
6329
|
+
var app_shell_module_options = {};
|
|
6330
|
+
app_shell_module_options.styleTagTransform = styleTagTransform_default();
|
|
6331
|
+
app_shell_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
6332
|
+
app_shell_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
6333
|
+
app_shell_module_options.domAPI = styleDomAPI_default();
|
|
6334
|
+
app_shell_module_options.insertStyleElement = insertStyleElement_default();
|
|
6335
|
+
injectStylesIntoStyleTag_default()(app_shell_module_0.A, app_shell_module_options);
|
|
6336
|
+
const app_shell_module = app_shell_module_0.A && app_shell_module_0.A.locals ? app_shell_module_0.A.locals : void 0;
|
|
6337
|
+
const NavContext = /*#__PURE__*/ createContext({
|
|
6338
|
+
orientation: "horizontal"
|
|
6339
|
+
});
|
|
6340
|
+
const horizontalNav = {
|
|
6341
|
+
orientation: "horizontal"
|
|
6342
|
+
};
|
|
6343
|
+
function AppShell({ brand, nav, actions, children }) {
|
|
6344
|
+
const mainId = useId();
|
|
6345
|
+
const [isNavOpen, setIsNavOpen] = useState(false);
|
|
6346
|
+
const openNavLabel = useMessage("ox0.appShell.openNav", "Open navigation");
|
|
6347
|
+
const navTitle = useMessage("ox0.appShell.navTitle", "Menu");
|
|
6348
|
+
const skipLabel = useMessage("ox0.appShell.skipToContent", "Skip to content");
|
|
6349
|
+
const closeNav = useCallback(()=>setIsNavOpen(false), []);
|
|
6350
|
+
const drawerNav = useMemo(()=>({
|
|
6351
|
+
orientation: "vertical",
|
|
6352
|
+
onNavigate: closeNav
|
|
6353
|
+
}), [
|
|
6354
|
+
closeNav
|
|
6355
|
+
]);
|
|
6356
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
6357
|
+
className: app_shell_module.shell,
|
|
6358
|
+
children: [
|
|
6359
|
+
/*#__PURE__*/ jsx("a", {
|
|
6360
|
+
className: app_shell_module.skipLink,
|
|
6361
|
+
href: `#${mainId}`,
|
|
6362
|
+
children: skipLabel
|
|
6363
|
+
}),
|
|
6364
|
+
/*#__PURE__*/ jsx("header", {
|
|
6365
|
+
className: app_shell_module.bar,
|
|
6366
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
6367
|
+
className: app_shell_module.barInner,
|
|
6368
|
+
children: [
|
|
6369
|
+
null != nav ? /*#__PURE__*/ jsx("div", {
|
|
6370
|
+
className: app_shell_module.menuButton,
|
|
6371
|
+
children: /*#__PURE__*/ jsx(icon_button_IconButton, {
|
|
6372
|
+
"aria-expanded": isNavOpen,
|
|
6373
|
+
icon: MenuGlyph,
|
|
6374
|
+
label: openNavLabel,
|
|
6375
|
+
tooltipPlacement: "bottom",
|
|
6376
|
+
variant: "ghost",
|
|
6377
|
+
onPress: ()=>setIsNavOpen(true)
|
|
6378
|
+
})
|
|
6379
|
+
}) : null,
|
|
6380
|
+
null != brand ? /*#__PURE__*/ jsx("div", {
|
|
6381
|
+
className: app_shell_module.brand,
|
|
6382
|
+
children: brand
|
|
6383
|
+
}) : null,
|
|
6384
|
+
null != nav ? /*#__PURE__*/ jsx("div", {
|
|
6385
|
+
className: app_shell_module.barNav,
|
|
6386
|
+
children: /*#__PURE__*/ jsx(NavContext.Provider, {
|
|
6387
|
+
value: horizontalNav,
|
|
6388
|
+
children: nav
|
|
6389
|
+
})
|
|
6390
|
+
}) : null,
|
|
6391
|
+
null != actions ? /*#__PURE__*/ jsx("div", {
|
|
6392
|
+
className: app_shell_module.actions,
|
|
6393
|
+
children: actions
|
|
6394
|
+
}) : null
|
|
6395
|
+
]
|
|
6396
|
+
})
|
|
6397
|
+
}),
|
|
6398
|
+
/*#__PURE__*/ jsx("div", {
|
|
6399
|
+
className: app_shell_module.main,
|
|
6400
|
+
id: mainId,
|
|
6401
|
+
tabIndex: -1,
|
|
6402
|
+
children: children
|
|
6403
|
+
}),
|
|
6404
|
+
null != nav ? /*#__PURE__*/ jsxs(Drawer, {
|
|
6405
|
+
isOpen: isNavOpen,
|
|
6406
|
+
placement: "left",
|
|
6407
|
+
onClose: closeNav,
|
|
6408
|
+
children: [
|
|
6409
|
+
/*#__PURE__*/ jsx(Drawer.Header, {
|
|
6410
|
+
children: /*#__PURE__*/ jsx(Drawer.Title, {
|
|
6411
|
+
children: navTitle
|
|
6412
|
+
})
|
|
6413
|
+
}),
|
|
6414
|
+
/*#__PURE__*/ jsx(Drawer.Body, {
|
|
6415
|
+
children: /*#__PURE__*/ jsx(NavContext.Provider, {
|
|
6416
|
+
value: drawerNav,
|
|
6417
|
+
children: nav
|
|
6418
|
+
})
|
|
6419
|
+
})
|
|
6420
|
+
]
|
|
6421
|
+
}) : null
|
|
6422
|
+
]
|
|
6423
|
+
});
|
|
6424
|
+
}
|
|
6425
|
+
function Nav({ ariaLabel, children }) {
|
|
6426
|
+
const { orientation } = useContext(NavContext);
|
|
6427
|
+
return /*#__PURE__*/ jsx("nav", {
|
|
6428
|
+
"aria-label": ariaLabel,
|
|
6429
|
+
children: /*#__PURE__*/ jsx("ul", {
|
|
6430
|
+
className: app_shell_module.navList,
|
|
6431
|
+
"data-orientation": orientation,
|
|
6432
|
+
children: children
|
|
6433
|
+
})
|
|
6434
|
+
});
|
|
6435
|
+
}
|
|
6436
|
+
function NavItem({ to, isCurrent = false, icon: Icon, children }) {
|
|
6437
|
+
const router = useRouter();
|
|
6438
|
+
const { onNavigate } = useContext(NavContext);
|
|
6439
|
+
if (!isSafeHref(to)) {
|
|
6440
|
+
if ("production" !== process.env.NODE_ENV) console.error(`[ox0/ui] <NavItem> blocked unsafe or invalid \`to\`: "${to}".`);
|
|
6441
|
+
return null;
|
|
6442
|
+
}
|
|
6443
|
+
function handleClick(e) {
|
|
6444
|
+
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
|
|
6445
|
+
if (router) {
|
|
6446
|
+
e.preventDefault();
|
|
6447
|
+
router.navigate(to);
|
|
6448
|
+
}
|
|
6449
|
+
onNavigate?.();
|
|
6450
|
+
}
|
|
6451
|
+
return /*#__PURE__*/ jsx("li", {
|
|
6452
|
+
children: /*#__PURE__*/ jsxs("a", {
|
|
6453
|
+
"aria-current": isCurrent ? "page" : void 0,
|
|
6454
|
+
className: app_shell_module.navItem,
|
|
6455
|
+
href: to,
|
|
6456
|
+
onClick: handleClick,
|
|
6457
|
+
children: [
|
|
6458
|
+
Icon ? /*#__PURE__*/ jsx(Icon, {
|
|
6459
|
+
size: 16
|
|
6460
|
+
}) : null,
|
|
6461
|
+
children
|
|
6462
|
+
]
|
|
6463
|
+
})
|
|
6464
|
+
});
|
|
6465
|
+
}
|
|
6466
|
+
const alignMap = {
|
|
6467
|
+
start: "flex-start",
|
|
6468
|
+
center: "center",
|
|
6469
|
+
end: "flex-end",
|
|
6470
|
+
stretch: "stretch",
|
|
6471
|
+
baseline: "baseline"
|
|
6472
|
+
};
|
|
6473
|
+
const justifyMap = {
|
|
6474
|
+
start: "flex-start",
|
|
6475
|
+
center: "center",
|
|
6476
|
+
end: "flex-end",
|
|
6477
|
+
between: "space-between",
|
|
6478
|
+
around: "space-around"
|
|
6479
|
+
};
|
|
6480
|
+
const inline_Inline = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
6481
|
+
const [layout, { children, align = "center", justify = "start", wrap = true, as: Tag = "div", gap = "md", padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft }] = splitLayoutItemProps(props);
|
|
6482
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
6483
|
+
const { style: spacingStyle } = useSpacing({
|
|
6484
|
+
gap,
|
|
6485
|
+
padding,
|
|
6486
|
+
paddingX,
|
|
6487
|
+
paddingY,
|
|
6488
|
+
paddingTop,
|
|
6489
|
+
paddingRight,
|
|
6490
|
+
paddingBottom,
|
|
6491
|
+
paddingLeft
|
|
6492
|
+
});
|
|
6493
|
+
return /*#__PURE__*/ jsx(Tag, {
|
|
6494
|
+
ref: ref,
|
|
6495
|
+
style: {
|
|
6496
|
+
alignItems: alignMap[align],
|
|
6497
|
+
display: "flex",
|
|
6498
|
+
flexWrap: wrap ? "wrap" : "nowrap",
|
|
6499
|
+
justifyContent: justifyMap[justify],
|
|
6500
|
+
...layoutStyle,
|
|
6501
|
+
...spacingStyle
|
|
6502
|
+
},
|
|
6503
|
+
children: children
|
|
6504
|
+
});
|
|
6505
|
+
});
|
|
6506
|
+
const banner_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/banner.module.css");
|
|
6507
|
+
var banner_module_options = {};
|
|
6508
|
+
banner_module_options.styleTagTransform = styleTagTransform_default();
|
|
6509
|
+
banner_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
6510
|
+
banner_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
6511
|
+
banner_module_options.domAPI = styleDomAPI_default();
|
|
6512
|
+
banner_module_options.insertStyleElement = insertStyleElement_default();
|
|
6513
|
+
injectStylesIntoStyleTag_default()(banner_module_0.A, banner_module_options);
|
|
6514
|
+
const banner_module = banner_module_0.A && banner_module_0.A.locals ? banner_module_0.A.locals : void 0;
|
|
6515
|
+
const banner_CloseIcon = ()=>/*#__PURE__*/ jsxs("svg", {
|
|
6516
|
+
"aria-hidden": "true",
|
|
6517
|
+
fill: "none",
|
|
6518
|
+
height: "12",
|
|
6519
|
+
stroke: "currentColor",
|
|
6520
|
+
strokeLinecap: "round",
|
|
6521
|
+
strokeLinejoin: "round",
|
|
6522
|
+
strokeWidth: "2",
|
|
6523
|
+
viewBox: "0 0 12 12",
|
|
6524
|
+
width: "12",
|
|
6525
|
+
children: [
|
|
6526
|
+
/*#__PURE__*/ jsx("line", {
|
|
6527
|
+
x1: "1",
|
|
6528
|
+
y1: "1",
|
|
6529
|
+
x2: "11",
|
|
6530
|
+
y2: "11"
|
|
6531
|
+
}),
|
|
6532
|
+
/*#__PURE__*/ jsx("line", {
|
|
6533
|
+
x1: "11",
|
|
6534
|
+
y1: "1",
|
|
6535
|
+
x2: "1",
|
|
6536
|
+
y2: "11"
|
|
6537
|
+
})
|
|
6538
|
+
]
|
|
6539
|
+
});
|
|
6540
|
+
const ToneIcon = ({ tone })=>{
|
|
6541
|
+
if ("neutral" === tone) return null;
|
|
6542
|
+
if ("info" === tone) return /*#__PURE__*/ jsxs("svg", {
|
|
6543
|
+
"aria-hidden": "true",
|
|
6544
|
+
fill: "none",
|
|
6545
|
+
height: "16",
|
|
6546
|
+
stroke: "currentColor",
|
|
6547
|
+
strokeLinecap: "round",
|
|
6548
|
+
strokeLinejoin: "round",
|
|
6549
|
+
strokeWidth: "2",
|
|
6550
|
+
viewBox: "0 0 16 16",
|
|
6551
|
+
width: "16",
|
|
6552
|
+
children: [
|
|
6553
|
+
/*#__PURE__*/ jsx("circle", {
|
|
5278
6554
|
cx: "8",
|
|
5279
6555
|
cy: "8",
|
|
5280
6556
|
r: "7"
|
|
@@ -5419,7 +6695,7 @@ const banner_Banner = /*#__PURE__*/ forwardRef(function({ children, dismissLabel
|
|
|
5419
6695
|
className: banner_module.dismissButton,
|
|
5420
6696
|
type: "button",
|
|
5421
6697
|
onClick: onDismiss,
|
|
5422
|
-
children: /*#__PURE__*/ jsx(
|
|
6698
|
+
children: /*#__PURE__*/ jsx(banner_CloseIcon, {})
|
|
5423
6699
|
})
|
|
5424
6700
|
]
|
|
5425
6701
|
})
|
|
@@ -5576,10 +6852,9 @@ const badge_Badge = /*#__PURE__*/ forwardRef(function({ children, dismissLabel =
|
|
|
5576
6852
|
]
|
|
5577
6853
|
});
|
|
5578
6854
|
});
|
|
5579
|
-
const box_Box = /*#__PURE__*/ forwardRef(function(
|
|
5580
|
-
const {
|
|
5581
|
-
|
|
5582
|
-
});
|
|
6855
|
+
const box_Box = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
6856
|
+
const [layout, { as: Tag = "div", gap, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, borderRadius, shadow, border, borderTop, borderRight, borderBottom, borderLeft, surface, ...rest }] = splitLayoutItemProps(props);
|
|
6857
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
5583
6858
|
const { style: spacingStyle } = useSpacing({
|
|
5584
6859
|
gap,
|
|
5585
6860
|
padding,
|
|
@@ -5605,7 +6880,7 @@ const box_Box = /*#__PURE__*/ forwardRef(function({ as: Tag = "div", gap, paddin
|
|
|
5605
6880
|
return /*#__PURE__*/ jsx(Tag, {
|
|
5606
6881
|
ref: ref,
|
|
5607
6882
|
style: {
|
|
5608
|
-
...
|
|
6883
|
+
...layoutStyle,
|
|
5609
6884
|
...spacingStyle,
|
|
5610
6885
|
...bordersStyle,
|
|
5611
6886
|
...surfaceStyle
|
|
@@ -5622,7 +6897,14 @@ card_module_options.domAPI = styleDomAPI_default();
|
|
|
5622
6897
|
card_module_options.insertStyleElement = insertStyleElement_default();
|
|
5623
6898
|
injectStylesIntoStyleTag_default()(card_module_0.A, card_module_options);
|
|
5624
6899
|
const card_module = card_module_0.A && card_module_0.A.locals ? card_module_0.A.locals : void 0;
|
|
5625
|
-
|
|
6900
|
+
function paddingStyle(padding) {
|
|
6901
|
+
return {
|
|
6902
|
+
padding: "none" === padding ? "0" : `var(--ox0-space-${padding})`
|
|
6903
|
+
};
|
|
6904
|
+
}
|
|
6905
|
+
const card_Card = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
6906
|
+
const [layout, { children, footer, header, padding = "lg", bodyPadding = padding, surface = "surface", borderRadius = "lg", shadow = "sm", as: Tag = "div", ...rest }] = splitLayoutItemProps(props);
|
|
6907
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
5626
6908
|
const { style: bordersStyle } = useBorders({
|
|
5627
6909
|
borderRadius,
|
|
5628
6910
|
shadow,
|
|
@@ -5631,13 +6913,12 @@ const card_Card = /*#__PURE__*/ forwardRef(function({ children, footer, header,
|
|
|
5631
6913
|
const { style: surfaceStyle } = useSurface({
|
|
5632
6914
|
surface
|
|
5633
6915
|
});
|
|
5634
|
-
const sectionStyle =
|
|
5635
|
-
padding: "none" === padding ? "0" : `var(--ox0-space-${padding})`
|
|
5636
|
-
};
|
|
6916
|
+
const sectionStyle = paddingStyle(padding);
|
|
5637
6917
|
return /*#__PURE__*/ jsxs(Tag, {
|
|
5638
6918
|
ref: ref,
|
|
5639
6919
|
className: card_module.card,
|
|
5640
6920
|
style: {
|
|
6921
|
+
...layoutStyle,
|
|
5641
6922
|
...bordersStyle,
|
|
5642
6923
|
...surfaceStyle
|
|
5643
6924
|
},
|
|
@@ -5650,7 +6931,8 @@ const card_Card = /*#__PURE__*/ forwardRef(function({ children, footer, header,
|
|
|
5650
6931
|
}),
|
|
5651
6932
|
/*#__PURE__*/ jsx("div", {
|
|
5652
6933
|
className: card_module.body,
|
|
5653
|
-
|
|
6934
|
+
"data-ox0-flush": "none" === bodyPadding || void 0,
|
|
6935
|
+
style: paddingStyle(bodyPadding),
|
|
5654
6936
|
children: children
|
|
5655
6937
|
}),
|
|
5656
6938
|
null != footer && /*#__PURE__*/ jsx("div", {
|
|
@@ -5934,115 +7216,23 @@ const text_Text = /*#__PURE__*/ forwardRef(function({ align, as, children, color
|
|
|
5934
7216
|
inlineStyle.display = "-webkit-box";
|
|
5935
7217
|
inlineStyle.WebkitLineClamp = lineClamp;
|
|
5936
7218
|
inlineStyle.WebkitBoxOrient = "vertical";
|
|
5937
|
-
inlineStyle.overflow = "hidden";
|
|
5938
|
-
}
|
|
5939
|
-
return /*#__PURE__*/ jsx(Element, {
|
|
5940
|
-
ref: ref,
|
|
5941
|
-
id: id,
|
|
5942
|
-
className: [
|
|
5943
|
-
text_module.text,
|
|
5944
|
-
text_module[variant],
|
|
5945
|
-
text_module[resolvedColor],
|
|
5946
|
-
align ? text_module[`align-${align}`] : void 0,
|
|
5947
|
-
truncate && !lineClamp ? text_module.truncate : void 0
|
|
5948
|
-
].filter(Boolean).join(" "),
|
|
5949
|
-
style: Object.keys(inlineStyle).length > 0 ? inlineStyle : void 0,
|
|
5950
|
-
...props,
|
|
5951
|
-
children: children
|
|
5952
|
-
});
|
|
5953
|
-
});
|
|
5954
|
-
const button_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/button.module.css");
|
|
5955
|
-
var button_module_options = {};
|
|
5956
|
-
button_module_options.styleTagTransform = styleTagTransform_default();
|
|
5957
|
-
button_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
5958
|
-
button_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
5959
|
-
button_module_options.domAPI = styleDomAPI_default();
|
|
5960
|
-
button_module_options.insertStyleElement = insertStyleElement_default();
|
|
5961
|
-
injectStylesIntoStyleTag_default()(button_module_0.A, button_module_options);
|
|
5962
|
-
const button_module = button_module_0.A && button_module_0.A.locals ? button_module_0.A.locals : void 0;
|
|
5963
|
-
const iconSize = {
|
|
5964
|
-
xs: 12,
|
|
5965
|
-
sm: 14,
|
|
5966
|
-
md: 16,
|
|
5967
|
-
lg: 18
|
|
5968
|
-
};
|
|
5969
|
-
const MIN_PRESS_MS = 150;
|
|
5970
|
-
function useMinPressDuration(isPressed) {
|
|
5971
|
-
const [isVisuallyPressed, setIsVisuallyPressed] = useState(false);
|
|
5972
|
-
const pressStartRef = useRef(0);
|
|
5973
|
-
const timeoutRef = useRef(void 0);
|
|
5974
|
-
useEffect(()=>{
|
|
5975
|
-
if (isPressed) {
|
|
5976
|
-
clearTimeout(timeoutRef.current);
|
|
5977
|
-
pressStartRef.current = Date.now();
|
|
5978
|
-
setIsVisuallyPressed(true);
|
|
5979
|
-
} else {
|
|
5980
|
-
const remaining = MIN_PRESS_MS - (Date.now() - pressStartRef.current);
|
|
5981
|
-
if (remaining > 0) timeoutRef.current = setTimeout(()=>setIsVisuallyPressed(false), remaining);
|
|
5982
|
-
else setIsVisuallyPressed(false);
|
|
5983
|
-
}
|
|
5984
|
-
return ()=>clearTimeout(timeoutRef.current);
|
|
5985
|
-
}, [
|
|
5986
|
-
isPressed
|
|
5987
|
-
]);
|
|
5988
|
-
return isVisuallyPressed;
|
|
5989
|
-
}
|
|
5990
|
-
const button_Button = /*#__PURE__*/ forwardRef(function({ children, icon: Icon, iconEnd: IconEnd, isDisabled, isSelected, onPress, onPressStart, onPressEnd, onPressChange, onPressUp, onPointerEnter, onPointerLeave, size = "md", type = "button", variant = "secondary", ...rest }, ref) {
|
|
5991
|
-
const { pressProps, isPressed: isActuallyPressed } = usePress({
|
|
5992
|
-
onPress,
|
|
5993
|
-
onPressStart,
|
|
5994
|
-
onPressEnd,
|
|
5995
|
-
onPressChange,
|
|
5996
|
-
onPressUp,
|
|
5997
|
-
isDisabled
|
|
5998
|
-
});
|
|
5999
|
-
const isPressed = useMinPressDuration(isActuallyPressed);
|
|
6000
|
-
const isIconOnly = void 0 !== Icon && void 0 === IconEnd && null == children;
|
|
6001
|
-
const composedPointerEnter = onPointerEnter ? (e)=>{
|
|
6002
|
-
onPointerEnter(e);
|
|
6003
|
-
pressProps.onPointerEnter?.(e);
|
|
6004
|
-
} : pressProps.onPointerEnter;
|
|
6005
|
-
const composedPointerLeave = onPointerLeave ? (e)=>{
|
|
6006
|
-
onPointerLeave(e);
|
|
6007
|
-
pressProps.onPointerLeave?.(e);
|
|
6008
|
-
} : pressProps.onPointerLeave;
|
|
6009
|
-
return /*#__PURE__*/ jsx("button", {
|
|
6010
|
-
ref: ref,
|
|
6011
|
-
...rest,
|
|
6012
|
-
...pressProps,
|
|
6013
|
-
onPointerEnter: composedPointerEnter,
|
|
6014
|
-
onPointerLeave: composedPointerLeave,
|
|
6015
|
-
"aria-pressed": isSelected,
|
|
6016
|
-
className: [
|
|
6017
|
-
button_module.button,
|
|
6018
|
-
button_module[variant],
|
|
6019
|
-
button_module[size],
|
|
6020
|
-
isPressed && button_module.pressed,
|
|
6021
|
-
isSelected && button_module.selected,
|
|
6022
|
-
isIconOnly ? button_module.iconOnly : Icon && button_module.hasIcon,
|
|
6023
|
-
IconEnd && button_module.hasIconEnd
|
|
6024
|
-
].filter(Boolean).join(" "),
|
|
6025
|
-
"data-variant": variant,
|
|
6026
|
-
disabled: isDisabled,
|
|
6027
|
-
type: type,
|
|
6028
|
-
children: /*#__PURE__*/ jsxs("span", {
|
|
6029
|
-
className: button_module.content,
|
|
6030
|
-
children: [
|
|
6031
|
-
Icon && /*#__PURE__*/ jsx(Icon, {
|
|
6032
|
-
size: iconSize[size]
|
|
6033
|
-
}),
|
|
6034
|
-
children,
|
|
6035
|
-
IconEnd && /*#__PURE__*/ jsx(IconEnd, {
|
|
6036
|
-
size: iconSize[size]
|
|
6037
|
-
})
|
|
6038
|
-
]
|
|
6039
|
-
})
|
|
7219
|
+
inlineStyle.overflow = "hidden";
|
|
7220
|
+
}
|
|
7221
|
+
return /*#__PURE__*/ jsx(Element, {
|
|
7222
|
+
ref: ref,
|
|
7223
|
+
id: id,
|
|
7224
|
+
className: [
|
|
7225
|
+
text_module.text,
|
|
7226
|
+
text_module[variant],
|
|
7227
|
+
text_module[resolvedColor],
|
|
7228
|
+
align ? text_module[`align-${align}`] : void 0,
|
|
7229
|
+
truncate && !lineClamp ? text_module.truncate : void 0
|
|
7230
|
+
].filter(Boolean).join(" "),
|
|
7231
|
+
style: Object.keys(inlineStyle).length > 0 ? inlineStyle : void 0,
|
|
7232
|
+
...props,
|
|
7233
|
+
children: children
|
|
6040
7234
|
});
|
|
6041
7235
|
});
|
|
6042
|
-
const RouterContext = createContext(null);
|
|
6043
|
-
function useRouter() {
|
|
6044
|
-
return useContext(RouterContext);
|
|
6045
|
-
}
|
|
6046
7236
|
const link_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/link.module.css");
|
|
6047
7237
|
var link_module_options = {};
|
|
6048
7238
|
link_module_options.styleTagTransform = styleTagTransform_default();
|
|
@@ -6052,10 +7242,6 @@ link_module_options.domAPI = styleDomAPI_default();
|
|
|
6052
7242
|
link_module_options.insertStyleElement = insertStyleElement_default();
|
|
6053
7243
|
injectStylesIntoStyleTag_default()(link_module_0.A, link_module_options);
|
|
6054
7244
|
const link_module = link_module_0.A && link_module_0.A.locals ? link_module_0.A.locals : void 0;
|
|
6055
|
-
const SAFE_HREF = /^(\/|\.\.?\/|#.+|https?:\/\/|mailto:|tel:)/i;
|
|
6056
|
-
function isValidTo(to) {
|
|
6057
|
-
return SAFE_HREF.test(to);
|
|
6058
|
-
}
|
|
6059
7245
|
const ExternalIcon = ()=>/*#__PURE__*/ jsxs("svg", {
|
|
6060
7246
|
"aria-hidden": "true",
|
|
6061
7247
|
className: link_module.externalIcon,
|
|
@@ -6091,7 +7277,7 @@ const link_Link = /*#__PURE__*/ forwardRef(function({ children, isExternal: isEx
|
|
|
6091
7277
|
onPressChange,
|
|
6092
7278
|
onPressUp
|
|
6093
7279
|
});
|
|
6094
|
-
if (!
|
|
7280
|
+
if (!isSafeHref(to)) {
|
|
6095
7281
|
if ("production" !== process.env.NODE_ENV) console.error(`[ox0/ui] <Link> blocked unsafe or invalid \`to\`: "${to}". Accepted: /path, ./path, ../path, #fragment, https://, http://, mailto:, tel:. Bare "#" is not allowed. Rendering as <span>.`);
|
|
6096
7282
|
return /*#__PURE__*/ jsx("span", {
|
|
6097
7283
|
className: [
|
|
@@ -6165,7 +7351,9 @@ choice_module_options.domAPI = styleDomAPI_default();
|
|
|
6165
7351
|
choice_module_options.insertStyleElement = insertStyleElement_default();
|
|
6166
7352
|
injectStylesIntoStyleTag_default()(choice_module_0.A, choice_module_options);
|
|
6167
7353
|
const choice_module = choice_module_0.A && choice_module_0.A.locals ? choice_module_0.A.locals : void 0;
|
|
6168
|
-
const checkbox_Checkbox = /*#__PURE__*/ forwardRef(function({ label, description, isDisabled, isInvalid, isSelected, defaultSelected, errorMessage, onChange, id: idProp, ...
|
|
7354
|
+
const checkbox_Checkbox = /*#__PURE__*/ forwardRef(function({ label, description, isDisabled, isInvalid, isSelected, defaultSelected, errorMessage, onChange, id: idProp, ...restProps }, ref) {
|
|
7355
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
7356
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
6169
7357
|
const generatedId = useId();
|
|
6170
7358
|
const id = idProp ?? generatedId;
|
|
6171
7359
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -6177,6 +7365,7 @@ const checkbox_Checkbox = /*#__PURE__*/ forwardRef(function({ label, description
|
|
|
6177
7365
|
const invalid = isInvalid || !!errorMessage;
|
|
6178
7366
|
return /*#__PURE__*/ jsxs("div", {
|
|
6179
7367
|
className: checkbox_module.root,
|
|
7368
|
+
style: layoutStyle,
|
|
6180
7369
|
children: [
|
|
6181
7370
|
/*#__PURE__*/ jsxs("label", {
|
|
6182
7371
|
className: `${checkbox_module.label}${isDisabled ? ` ${checkbox_module.disabled}` : ""}`,
|
|
@@ -6225,13 +7414,24 @@ checkbox_group_module_options.domAPI = styleDomAPI_default();
|
|
|
6225
7414
|
checkbox_group_module_options.insertStyleElement = insertStyleElement_default();
|
|
6226
7415
|
injectStylesIntoStyleTag_default()(checkbox_group_module_0.A, checkbox_group_module_options);
|
|
6227
7416
|
const checkbox_group_module = checkbox_group_module_0.A && checkbox_group_module_0.A.locals ? checkbox_group_module_0.A.locals : void 0;
|
|
7417
|
+
const field_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/field.module.css");
|
|
7418
|
+
var field_module_options = {};
|
|
7419
|
+
field_module_options.styleTagTransform = styleTagTransform_default();
|
|
7420
|
+
field_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
7421
|
+
field_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
7422
|
+
field_module_options.domAPI = styleDomAPI_default();
|
|
7423
|
+
field_module_options.insertStyleElement = insertStyleElement_default();
|
|
7424
|
+
injectStylesIntoStyleTag_default()(field_module_0.A, field_module_options);
|
|
7425
|
+
const field_module = field_module_0.A && field_module_0.A.locals ? field_module_0.A.locals : void 0;
|
|
6228
7426
|
const CheckboxGroupContext = /*#__PURE__*/ createContext(null);
|
|
6229
7427
|
function useCheckboxGroupContext() {
|
|
6230
7428
|
const ctx = useContext(CheckboxGroupContext);
|
|
6231
7429
|
if (!ctx) throw new Error("<GroupCheckbox> must be used inside <CheckboxGroup>");
|
|
6232
7430
|
return ctx;
|
|
6233
7431
|
}
|
|
6234
|
-
const checkbox_group_CheckboxGroup = /*#__PURE__*/ forwardRef(function({ label, description, isInvalid, isDisabled = false, errorMessage, value: valueProp, defaultValue, onChange, orientation = "vertical", children, id: idProp, ...
|
|
7432
|
+
const checkbox_group_CheckboxGroup = /*#__PURE__*/ forwardRef(function({ label, description, isInvalid, isDisabled = false, errorMessage, value: valueProp, defaultValue, onChange, orientation = "vertical", children, id: idProp, ...restProps }, ref) {
|
|
7433
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
7434
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
6235
7435
|
const generatedId = useId();
|
|
6236
7436
|
const id = idProp ?? generatedId;
|
|
6237
7437
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -6271,11 +7471,12 @@ const checkbox_group_CheckboxGroup = /*#__PURE__*/ forwardRef(function({ label,
|
|
|
6271
7471
|
].filter(Boolean).join(" ") || void 0,
|
|
6272
7472
|
"aria-invalid": invalid || void 0,
|
|
6273
7473
|
className: checkbox_group_module.fieldset,
|
|
7474
|
+
style: layoutStyle,
|
|
6274
7475
|
disabled: isDisabled,
|
|
6275
7476
|
id: id,
|
|
6276
7477
|
children: [
|
|
6277
7478
|
label ? /*#__PURE__*/ jsx("legend", {
|
|
6278
|
-
className: checkbox_group_module.legend
|
|
7479
|
+
className: `${checkbox_group_module.legend} ${field_module.label}`,
|
|
6279
7480
|
children: label
|
|
6280
7481
|
}) : null,
|
|
6281
7482
|
description ? /*#__PURE__*/ jsx("span", {
|
|
@@ -6358,7 +7559,9 @@ field_group_module_options.domAPI = styleDomAPI_default();
|
|
|
6358
7559
|
field_group_module_options.insertStyleElement = insertStyleElement_default();
|
|
6359
7560
|
injectStylesIntoStyleTag_default()(field_group_module_0.A, field_group_module_options);
|
|
6360
7561
|
const field_group_module = field_group_module_0.A && field_group_module_0.A.locals ? field_group_module_0.A.locals : void 0;
|
|
6361
|
-
const field_group_FieldGroup = /*#__PURE__*/ forwardRef(function({ label, description, isInvalid, isDisabled, errorMessage, orientation = "vertical", children, id: idProp, ...
|
|
7562
|
+
const field_group_FieldGroup = /*#__PURE__*/ forwardRef(function({ label, description, isInvalid, isDisabled, errorMessage, orientation = "vertical", children, id: idProp, ...restProps }, ref) {
|
|
7563
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
7564
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
6362
7565
|
const generatedId = useId();
|
|
6363
7566
|
const id = idProp ?? generatedId;
|
|
6364
7567
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -6374,11 +7577,12 @@ const field_group_FieldGroup = /*#__PURE__*/ forwardRef(function({ label, descri
|
|
|
6374
7577
|
"aria-describedby": describedBy,
|
|
6375
7578
|
"aria-invalid": invalid || void 0,
|
|
6376
7579
|
className: field_group_module.fieldset,
|
|
7580
|
+
style: layoutStyle,
|
|
6377
7581
|
disabled: isDisabled,
|
|
6378
7582
|
id: id,
|
|
6379
7583
|
children: [
|
|
6380
7584
|
label ? /*#__PURE__*/ jsx("legend", {
|
|
6381
|
-
className: field_group_module.legend
|
|
7585
|
+
className: `${field_group_module.legend} ${field_module.label}`,
|
|
6382
7586
|
children: label
|
|
6383
7587
|
}) : null,
|
|
6384
7588
|
description ? /*#__PURE__*/ jsx("span", {
|
|
@@ -6401,38 +7605,6 @@ const field_group_FieldGroup = /*#__PURE__*/ forwardRef(function({ label, descri
|
|
|
6401
7605
|
]
|
|
6402
7606
|
});
|
|
6403
7607
|
});
|
|
6404
|
-
function Chevron({ direction = "down", size = 16 }) {
|
|
6405
|
-
return /*#__PURE__*/ jsx("svg", {
|
|
6406
|
-
"aria-hidden": "true",
|
|
6407
|
-
fill: "none",
|
|
6408
|
-
height: size,
|
|
6409
|
-
stroke: "currentColor",
|
|
6410
|
-
strokeLinecap: "round",
|
|
6411
|
-
strokeLinejoin: "round",
|
|
6412
|
-
strokeWidth: 2,
|
|
6413
|
-
viewBox: "0 0 24 24",
|
|
6414
|
-
width: size,
|
|
6415
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
6416
|
-
d: "down" === direction ? "m6 9 6 6 6-6" : "m18 15-6-6-6 6"
|
|
6417
|
-
})
|
|
6418
|
-
});
|
|
6419
|
-
}
|
|
6420
|
-
function Checkmark({ size = 16 }) {
|
|
6421
|
-
return /*#__PURE__*/ jsx("svg", {
|
|
6422
|
-
"aria-hidden": "true",
|
|
6423
|
-
fill: "none",
|
|
6424
|
-
height: size,
|
|
6425
|
-
stroke: "currentColor",
|
|
6426
|
-
strokeLinecap: "round",
|
|
6427
|
-
strokeLinejoin: "round",
|
|
6428
|
-
strokeWidth: 2,
|
|
6429
|
-
viewBox: "0 0 24 24",
|
|
6430
|
-
width: size,
|
|
6431
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
6432
|
-
d: "M20 6 9 17l-5-5"
|
|
6433
|
-
})
|
|
6434
|
-
});
|
|
6435
|
-
}
|
|
6436
7608
|
const combobox_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/combobox.module.css");
|
|
6437
7609
|
var combobox_module_options = {};
|
|
6438
7610
|
combobox_module_options.styleTagTransform = styleTagTransform_default();
|
|
@@ -6458,7 +7630,9 @@ function filterOptions(options, inputText) {
|
|
|
6458
7630
|
if (!q) return options;
|
|
6459
7631
|
return options.filter((o)=>o.label.toLowerCase().includes(q));
|
|
6460
7632
|
}
|
|
6461
|
-
const combobox_Combobox = /*#__PURE__*/ forwardRef(function({ label, ariaLabel, description, isDisabled, isInvalid, errorMessage, options, value: valueProp, defaultValue, placeholder, onChange, noOptionsMessage = "No options", allowsCustomValue = false, id: idProp, onBlur: onBlurProp, onFocus: onFocusProp, onKeyDown: onKeyDownProp, onPointerDown: onPointerDownProp, ...
|
|
7633
|
+
const combobox_Combobox = /*#__PURE__*/ forwardRef(function({ label, ariaLabel, description, isDisabled, isInvalid, errorMessage, options, value: valueProp, defaultValue, placeholder, onChange, noOptionsMessage = "No options", allowsCustomValue = false, id: idProp, onBlur: onBlurProp, onFocus: onFocusProp, onKeyDown: onKeyDownProp, onPointerDown: onPointerDownProp, ...restProps }, forwardedRef) {
|
|
7634
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
7635
|
+
const [, inputProps] = splitLayoutItemProps(restProps);
|
|
6462
7636
|
if (!label && !ariaLabel) throw new Error("Combobox requires `label` or `ariaLabel`.");
|
|
6463
7637
|
const generatedId = useId();
|
|
6464
7638
|
const controlId = idProp ?? generatedId;
|
|
@@ -6589,9 +7763,10 @@ const combobox_Combobox = /*#__PURE__*/ forwardRef(function({ label, ariaLabel,
|
|
|
6589
7763
|
const activeDescendant = null !== activeIndex && filteredOptions[activeIndex] ? `${listboxId}-option-${activeIndex}` : void 0;
|
|
6590
7764
|
return /*#__PURE__*/ jsxs("div", {
|
|
6591
7765
|
className: combobox_module.root,
|
|
7766
|
+
style: layoutStyle,
|
|
6592
7767
|
children: [
|
|
6593
7768
|
label ? /*#__PURE__*/ jsx("label", {
|
|
6594
|
-
className:
|
|
7769
|
+
className: field_module.label,
|
|
6595
7770
|
htmlFor: controlId,
|
|
6596
7771
|
id: labelId,
|
|
6597
7772
|
children: label
|
|
@@ -6620,213 +7795,86 @@ const combobox_Combobox = /*#__PURE__*/ forwardRef(function({ label, ariaLabel,
|
|
|
6620
7795
|
className: [
|
|
6621
7796
|
combobox_module.input,
|
|
6622
7797
|
invalid ? combobox_module.invalid : null,
|
|
6623
|
-
isFocusVisible ? combobox_module.focusVisible : null
|
|
6624
|
-
].filter(Boolean).join(" "),
|
|
6625
|
-
disabled: isDisabled,
|
|
6626
|
-
placeholder,
|
|
6627
|
-
value: inputText,
|
|
6628
|
-
onChange: handleInputChange,
|
|
6629
|
-
onKeyDown: handleKeyDown,
|
|
6630
|
-
onBlur: handleBlur,
|
|
6631
|
-
onPointerDown: (e)=>{
|
|
6632
|
-
pointerDown.current = true;
|
|
6633
|
-
onPointerDownProp?.(e);
|
|
6634
|
-
},
|
|
6635
|
-
onFocus: (e)=>{
|
|
6636
|
-
if (!pointerDown.current) setIsFocusVisible(true);
|
|
6637
|
-
pointerDown.current = false;
|
|
6638
|
-
open();
|
|
6639
|
-
onFocusProp?.(e);
|
|
6640
|
-
},
|
|
6641
|
-
onBlurCapture: ()=>setIsFocusVisible(false)
|
|
6642
|
-
}),
|
|
6643
|
-
"aria-label": ariaLabel
|
|
6644
|
-
}),
|
|
6645
|
-
/*#__PURE__*/ jsx("span", {
|
|
6646
|
-
"aria-hidden": true,
|
|
6647
|
-
className: combobox_module.chevron,
|
|
6648
|
-
children: /*#__PURE__*/ jsx(Chevron, {})
|
|
6649
|
-
})
|
|
6650
|
-
]
|
|
6651
|
-
}),
|
|
6652
|
-
description ? /*#__PURE__*/ jsx("span", {
|
|
6653
|
-
className: combobox_module.description,
|
|
6654
|
-
id: descriptionId,
|
|
6655
|
-
children: description
|
|
6656
|
-
}) : null,
|
|
6657
|
-
errorMessage ? /*#__PURE__*/ jsx("span", {
|
|
6658
|
-
className: combobox_module.error,
|
|
6659
|
-
id: errorId,
|
|
6660
|
-
children: errorMessage
|
|
6661
|
-
}) : null,
|
|
6662
|
-
isOpen && !(allowsCustomValue && 0 === filteredOptions.length) && /*#__PURE__*/ jsx(FloatingPortal, {
|
|
6663
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
6664
|
-
ref: refs.setFloating,
|
|
6665
|
-
style: floatingStyles,
|
|
6666
|
-
...getFloatingProps({
|
|
6667
|
-
id: listboxId,
|
|
6668
|
-
"aria-label": ariaLabel,
|
|
6669
|
-
"aria-labelledby": labelId,
|
|
6670
|
-
className: combobox_module.listbox,
|
|
6671
|
-
role: "listbox"
|
|
6672
|
-
}),
|
|
6673
|
-
children: 0 === filteredOptions.length ? /*#__PURE__*/ jsx("div", {
|
|
6674
|
-
className: combobox_module.empty,
|
|
6675
|
-
children: noOptionsMessage
|
|
6676
|
-
}) : filteredOptions.map((option, index)=>/*#__PURE__*/ jsx("div", {
|
|
6677
|
-
ref: (node)=>{
|
|
6678
|
-
optionRefs.current[index] = node;
|
|
6679
|
-
},
|
|
6680
|
-
...getItemProps({
|
|
6681
|
-
id: `${listboxId}-option-${index}`,
|
|
6682
|
-
role: "option",
|
|
6683
|
-
"aria-selected": option.value === selectedValue,
|
|
6684
|
-
"aria-disabled": option.disabled,
|
|
6685
|
-
className: [
|
|
6686
|
-
combobox_module.option,
|
|
6687
|
-
index === activeIndex ? combobox_module.active : null,
|
|
6688
|
-
option.value === selectedValue ? combobox_module.selected : null,
|
|
6689
|
-
option.disabled ? combobox_module.optionDisabled : null
|
|
6690
|
-
].filter(Boolean).join(" "),
|
|
6691
|
-
onMouseDown: (e)=>{
|
|
6692
|
-
e.preventDefault();
|
|
6693
|
-
},
|
|
6694
|
-
onClick: ()=>{
|
|
6695
|
-
if (!option.disabled) selectOption(option);
|
|
6696
|
-
}
|
|
6697
|
-
}),
|
|
6698
|
-
children: option.label
|
|
6699
|
-
}, option.value))
|
|
6700
|
-
})
|
|
6701
|
-
})
|
|
6702
|
-
]
|
|
6703
|
-
});
|
|
6704
|
-
});
|
|
6705
|
-
const radio_group_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/radio-group.module.css");
|
|
6706
|
-
var radio_group_module_options = {};
|
|
6707
|
-
radio_group_module_options.styleTagTransform = styleTagTransform_default();
|
|
6708
|
-
radio_group_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
6709
|
-
radio_group_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
6710
|
-
radio_group_module_options.domAPI = styleDomAPI_default();
|
|
6711
|
-
radio_group_module_options.insertStyleElement = insertStyleElement_default();
|
|
6712
|
-
injectStylesIntoStyleTag_default()(radio_group_module_0.A, radio_group_module_options);
|
|
6713
|
-
const radio_group_module = radio_group_module_0.A && radio_group_module_0.A.locals ? radio_group_module_0.A.locals : void 0;
|
|
6714
|
-
const RadioGroupContext = /*#__PURE__*/ createContext(null);
|
|
6715
|
-
function useRadioGroupContext() {
|
|
6716
|
-
const ctx = useContext(RadioGroupContext);
|
|
6717
|
-
if (!ctx) throw new Error("<Radio> must be used inside <RadioGroup>");
|
|
6718
|
-
return ctx;
|
|
6719
|
-
}
|
|
6720
|
-
const radio_group_RadioGroup = /*#__PURE__*/ forwardRef(function({ label, description, isInvalid, isDisabled = false, errorMessage, value: valueProp, defaultValue, onChange, orientation = "vertical", children, id: idProp, ...props }, ref) {
|
|
6721
|
-
const generatedId = useId();
|
|
6722
|
-
const id = idProp ?? generatedId;
|
|
6723
|
-
const descriptionId = description ? `${id}-description` : void 0;
|
|
6724
|
-
const errorId = errorMessage ? `${id}-error` : void 0;
|
|
6725
|
-
const invalid = isInvalid || !!errorMessage;
|
|
6726
|
-
const isControlled = void 0 !== valueProp;
|
|
6727
|
-
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
|
|
6728
|
-
const value = isControlled ? valueProp : uncontrolledValue;
|
|
6729
|
-
function handleChange(next) {
|
|
6730
|
-
if (!isControlled) setUncontrolledValue(next);
|
|
6731
|
-
onChange?.(next);
|
|
6732
|
-
}
|
|
6733
|
-
const ctx = useMemo(()=>({
|
|
6734
|
-
name: id,
|
|
6735
|
-
value,
|
|
6736
|
-
onChange: handleChange,
|
|
6737
|
-
isDisabled,
|
|
6738
|
-
isInvalid: invalid,
|
|
6739
|
-
descriptionId,
|
|
6740
|
-
errorId
|
|
6741
|
-
}), [
|
|
6742
|
-
id,
|
|
6743
|
-
value,
|
|
6744
|
-
isDisabled,
|
|
6745
|
-
invalid,
|
|
6746
|
-
descriptionId,
|
|
6747
|
-
errorId
|
|
6748
|
-
]);
|
|
6749
|
-
return /*#__PURE__*/ jsx(RadioGroupContext.Provider, {
|
|
6750
|
-
value: ctx,
|
|
6751
|
-
children: /*#__PURE__*/ jsxs("fieldset", {
|
|
6752
|
-
...props,
|
|
6753
|
-
ref: ref,
|
|
6754
|
-
"aria-describedby": [
|
|
6755
|
-
descriptionId,
|
|
6756
|
-
errorId
|
|
6757
|
-
].filter(Boolean).join(" ") || void 0,
|
|
6758
|
-
"aria-invalid": invalid || void 0,
|
|
6759
|
-
className: radio_group_module.fieldset,
|
|
6760
|
-
disabled: isDisabled,
|
|
6761
|
-
id: id,
|
|
6762
|
-
children: [
|
|
6763
|
-
label ? /*#__PURE__*/ jsx("legend", {
|
|
6764
|
-
className: radio_group_module.legend,
|
|
6765
|
-
children: label
|
|
6766
|
-
}) : null,
|
|
6767
|
-
description ? /*#__PURE__*/ jsx("span", {
|
|
6768
|
-
className: radio_group_module.description,
|
|
6769
|
-
id: descriptionId,
|
|
6770
|
-
children: description
|
|
6771
|
-
}) : null,
|
|
6772
|
-
/*#__PURE__*/ jsx("div", {
|
|
6773
|
-
className: [
|
|
6774
|
-
radio_group_module.group,
|
|
6775
|
-
"horizontal" === orientation ? radio_group_module.horizontal : radio_group_module.vertical
|
|
6776
|
-
].join(" "),
|
|
6777
|
-
children: children
|
|
6778
|
-
}),
|
|
6779
|
-
errorMessage ? /*#__PURE__*/ jsx("span", {
|
|
6780
|
-
className: radio_group_module.error,
|
|
6781
|
-
id: errorId,
|
|
6782
|
-
children: errorMessage
|
|
6783
|
-
}) : null
|
|
6784
|
-
]
|
|
6785
|
-
})
|
|
6786
|
-
});
|
|
6787
|
-
});
|
|
6788
|
-
const radio_group_Radio = /*#__PURE__*/ forwardRef(function({ value, label, description, isDisabled: isDisabledProp, id: idProp, children, ...props }, ref) {
|
|
6789
|
-
const ctx = useRadioGroupContext();
|
|
6790
|
-
const generatedId = useId();
|
|
6791
|
-
const id = idProp ?? generatedId;
|
|
6792
|
-
const descriptionId = description ? `${id}-description` : void 0;
|
|
6793
|
-
const isDisabled = isDisabledProp ?? ctx.isDisabled;
|
|
6794
|
-
const labelContent = label ?? children;
|
|
6795
|
-
return /*#__PURE__*/ jsx("div", {
|
|
6796
|
-
className: radio_group_module.item,
|
|
6797
|
-
children: /*#__PURE__*/ jsxs("label", {
|
|
6798
|
-
className: `${radio_group_module.itemLabel}${isDisabled ? ` ${radio_group_module.disabled}` : ""}`,
|
|
6799
|
-
children: [
|
|
6800
|
-
/*#__PURE__*/ jsx("input", {
|
|
6801
|
-
...props,
|
|
6802
|
-
ref: ref,
|
|
6803
|
-
"aria-describedby": [
|
|
6804
|
-
descriptionId,
|
|
6805
|
-
ctx.errorId
|
|
6806
|
-
].filter(Boolean).join(" ") || void 0,
|
|
6807
|
-
checked: ctx.value === value,
|
|
6808
|
-
className: `${choice_module.control} ${choice_module.radio}`,
|
|
6809
|
-
disabled: isDisabled,
|
|
6810
|
-
id: id,
|
|
6811
|
-
name: ctx.name,
|
|
6812
|
-
onChange: ()=>ctx.onChange(value),
|
|
6813
|
-
type: "radio",
|
|
6814
|
-
value: value
|
|
6815
|
-
}),
|
|
6816
|
-
/*#__PURE__*/ jsxs("span", {
|
|
6817
|
-
children: [
|
|
6818
|
-
labelContent ? /*#__PURE__*/ jsx("span", {
|
|
6819
|
-
children: labelContent
|
|
6820
|
-
}) : null,
|
|
6821
|
-
description ? /*#__PURE__*/ jsx("span", {
|
|
6822
|
-
className: radio_group_module.itemDescription,
|
|
6823
|
-
id: descriptionId,
|
|
6824
|
-
children: description
|
|
6825
|
-
}) : null
|
|
6826
|
-
]
|
|
7798
|
+
isFocusVisible ? combobox_module.focusVisible : null
|
|
7799
|
+
].filter(Boolean).join(" "),
|
|
7800
|
+
disabled: isDisabled,
|
|
7801
|
+
placeholder,
|
|
7802
|
+
value: inputText,
|
|
7803
|
+
onChange: handleInputChange,
|
|
7804
|
+
onKeyDown: handleKeyDown,
|
|
7805
|
+
onBlur: handleBlur,
|
|
7806
|
+
onPointerDown: (e)=>{
|
|
7807
|
+
pointerDown.current = true;
|
|
7808
|
+
onPointerDownProp?.(e);
|
|
7809
|
+
},
|
|
7810
|
+
onFocus: (e)=>{
|
|
7811
|
+
if (!pointerDown.current) setIsFocusVisible(true);
|
|
7812
|
+
pointerDown.current = false;
|
|
7813
|
+
open();
|
|
7814
|
+
onFocusProp?.(e);
|
|
7815
|
+
},
|
|
7816
|
+
onBlurCapture: ()=>setIsFocusVisible(false)
|
|
7817
|
+
}),
|
|
7818
|
+
"aria-label": ariaLabel
|
|
7819
|
+
}),
|
|
7820
|
+
/*#__PURE__*/ jsx("span", {
|
|
7821
|
+
"aria-hidden": true,
|
|
7822
|
+
className: combobox_module.chevron,
|
|
7823
|
+
children: /*#__PURE__*/ jsx(Chevron, {})
|
|
7824
|
+
})
|
|
7825
|
+
]
|
|
7826
|
+
}),
|
|
7827
|
+
description ? /*#__PURE__*/ jsx("span", {
|
|
7828
|
+
className: combobox_module.description,
|
|
7829
|
+
id: descriptionId,
|
|
7830
|
+
children: description
|
|
7831
|
+
}) : null,
|
|
7832
|
+
errorMessage ? /*#__PURE__*/ jsx("span", {
|
|
7833
|
+
className: combobox_module.error,
|
|
7834
|
+
id: errorId,
|
|
7835
|
+
children: errorMessage
|
|
7836
|
+
}) : null,
|
|
7837
|
+
isOpen && !(allowsCustomValue && 0 === filteredOptions.length) && /*#__PURE__*/ jsx(FloatingPortal, {
|
|
7838
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
7839
|
+
ref: refs.setFloating,
|
|
7840
|
+
style: floatingStyles,
|
|
7841
|
+
...getFloatingProps({
|
|
7842
|
+
id: listboxId,
|
|
7843
|
+
"aria-label": ariaLabel,
|
|
7844
|
+
"aria-labelledby": labelId,
|
|
7845
|
+
className: combobox_module.listbox,
|
|
7846
|
+
role: "listbox"
|
|
7847
|
+
}),
|
|
7848
|
+
children: 0 === filteredOptions.length ? /*#__PURE__*/ jsx("div", {
|
|
7849
|
+
className: combobox_module.empty,
|
|
7850
|
+
children: noOptionsMessage
|
|
7851
|
+
}) : filteredOptions.map((option, index)=>/*#__PURE__*/ jsx("div", {
|
|
7852
|
+
ref: (node)=>{
|
|
7853
|
+
optionRefs.current[index] = node;
|
|
7854
|
+
},
|
|
7855
|
+
...getItemProps({
|
|
7856
|
+
id: `${listboxId}-option-${index}`,
|
|
7857
|
+
role: "option",
|
|
7858
|
+
"aria-selected": option.value === selectedValue,
|
|
7859
|
+
"aria-disabled": option.disabled,
|
|
7860
|
+
className: [
|
|
7861
|
+
combobox_module.option,
|
|
7862
|
+
index === activeIndex ? combobox_module.active : null,
|
|
7863
|
+
option.value === selectedValue ? combobox_module.selected : null,
|
|
7864
|
+
option.disabled ? combobox_module.optionDisabled : null
|
|
7865
|
+
].filter(Boolean).join(" "),
|
|
7866
|
+
onMouseDown: (e)=>{
|
|
7867
|
+
e.preventDefault();
|
|
7868
|
+
},
|
|
7869
|
+
onClick: ()=>{
|
|
7870
|
+
if (!option.disabled) selectOption(option);
|
|
7871
|
+
}
|
|
7872
|
+
}),
|
|
7873
|
+
children: option.label
|
|
7874
|
+
}, option.value))
|
|
6827
7875
|
})
|
|
6828
|
-
|
|
6829
|
-
|
|
7876
|
+
})
|
|
7877
|
+
]
|
|
6830
7878
|
});
|
|
6831
7879
|
});
|
|
6832
7880
|
const dialog_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/dialog.module.css");
|
|
@@ -6973,247 +8021,476 @@ const Dialog = Object.assign(DialogRoot, {
|
|
|
6973
8021
|
Body: DialogBody,
|
|
6974
8022
|
Footer: DialogFooter
|
|
6975
8023
|
});
|
|
6976
|
-
const
|
|
6977
|
-
var
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
injectStylesIntoStyleTag_default()(
|
|
6984
|
-
const
|
|
6985
|
-
const
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
8024
|
+
const confirm_dialog_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/confirm-dialog.module.css");
|
|
8025
|
+
var confirm_dialog_module_options = {};
|
|
8026
|
+
confirm_dialog_module_options.styleTagTransform = styleTagTransform_default();
|
|
8027
|
+
confirm_dialog_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8028
|
+
confirm_dialog_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8029
|
+
confirm_dialog_module_options.domAPI = styleDomAPI_default();
|
|
8030
|
+
confirm_dialog_module_options.insertStyleElement = insertStyleElement_default();
|
|
8031
|
+
injectStylesIntoStyleTag_default()(confirm_dialog_module_0.A, confirm_dialog_module_options);
|
|
8032
|
+
const confirm_dialog_module = confirm_dialog_module_0.A && confirm_dialog_module_0.A.locals ? confirm_dialog_module_0.A.locals : void 0;
|
|
8033
|
+
const popover_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/popover.module.css");
|
|
8034
|
+
var popover_module_options = {};
|
|
8035
|
+
popover_module_options.styleTagTransform = styleTagTransform_default();
|
|
8036
|
+
popover_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8037
|
+
popover_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8038
|
+
popover_module_options.domAPI = styleDomAPI_default();
|
|
8039
|
+
popover_module_options.insertStyleElement = insertStyleElement_default();
|
|
8040
|
+
injectStylesIntoStyleTag_default()(popover_module_0.A, popover_module_options);
|
|
8041
|
+
const popover_module = popover_module_0.A && popover_module_0.A.locals ? popover_module_0.A.locals : void 0;
|
|
8042
|
+
function ConfirmDialog({ cancelLabel, children, confirmLabel, isOpen, isPending = false, onCancel, onConfirm, title, tone = "default" }) {
|
|
8043
|
+
const defaultConfirm = useMessage("ox0.confirm.confirm", "Confirm");
|
|
8044
|
+
const defaultCancel = useMessage("ox0.confirm.cancel", "Cancel");
|
|
8045
|
+
return /*#__PURE__*/ jsxs(Dialog, {
|
|
8046
|
+
isDismissDisabled: isPending,
|
|
8047
|
+
isEphemeral: !isPending,
|
|
8048
|
+
isOpen: isOpen,
|
|
8049
|
+
width: "sm",
|
|
8050
|
+
onClose: onCancel,
|
|
8051
|
+
children: [
|
|
8052
|
+
/*#__PURE__*/ jsx(Dialog.Header, {
|
|
8053
|
+
children: /*#__PURE__*/ jsx(Dialog.Title, {
|
|
8054
|
+
children: title
|
|
8055
|
+
})
|
|
8056
|
+
}),
|
|
8057
|
+
null != children ? /*#__PURE__*/ jsx(Dialog.Body, {
|
|
8058
|
+
children: children
|
|
8059
|
+
}) : null,
|
|
8060
|
+
/*#__PURE__*/ jsxs(Dialog.Footer, {
|
|
8061
|
+
children: [
|
|
8062
|
+
/*#__PURE__*/ jsx(button_Button, {
|
|
8063
|
+
isDisabled: isPending,
|
|
8064
|
+
onPress: onCancel,
|
|
8065
|
+
children: cancelLabel ?? defaultCancel
|
|
8066
|
+
}),
|
|
8067
|
+
/*#__PURE__*/ jsx(button_Button, {
|
|
8068
|
+
isDisabled: isPending,
|
|
8069
|
+
variant: "danger" === tone ? "danger" : "primary",
|
|
8070
|
+
onPress: onConfirm,
|
|
8071
|
+
children: confirmLabel ?? defaultConfirm
|
|
8072
|
+
})
|
|
8073
|
+
]
|
|
8074
|
+
})
|
|
8075
|
+
]
|
|
8076
|
+
});
|
|
6994
8077
|
}
|
|
6995
|
-
function
|
|
6996
|
-
const
|
|
6997
|
-
const
|
|
6998
|
-
const
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
8078
|
+
function ConfirmPopover({ anchor, cancelLabel, children, confirmLabel, isOpen, onCancel, onConfirm, placement = "bottom", title, tone = "default" }) {
|
|
8079
|
+
const id = useId();
|
|
8080
|
+
const titleId = `${id}-title`;
|
|
8081
|
+
const descriptionId = `${id}-description`;
|
|
8082
|
+
const defaultConfirm = useMessage("ox0.confirm.confirm", "Confirm");
|
|
8083
|
+
const defaultCancel = useMessage("ox0.confirm.cancel", "Cancel");
|
|
8084
|
+
const cancelRef = useRef(null);
|
|
8085
|
+
const { refs: { setFloating }, floatingStyles, context } = useFloating({
|
|
8086
|
+
elements: {
|
|
8087
|
+
reference: anchor
|
|
8088
|
+
},
|
|
8089
|
+
open: isOpen,
|
|
8090
|
+
onOpenChange: (open)=>{
|
|
8091
|
+
if (!open) onCancel();
|
|
8092
|
+
},
|
|
8093
|
+
placement,
|
|
8094
|
+
middleware: [
|
|
8095
|
+
offset(8),
|
|
8096
|
+
flip(),
|
|
8097
|
+
shift({
|
|
8098
|
+
padding: 8
|
|
8099
|
+
})
|
|
8100
|
+
],
|
|
8101
|
+
whileElementsMounted: autoUpdate
|
|
7002
8102
|
});
|
|
7003
|
-
const
|
|
7004
|
-
const
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
}, [
|
|
7011
|
-
isOpen
|
|
7012
|
-
]);
|
|
7013
|
-
const contextValue = useMemo(()=>({
|
|
7014
|
-
onClose,
|
|
7015
|
-
titleId
|
|
7016
|
-
}), [
|
|
7017
|
-
onClose,
|
|
7018
|
-
titleId
|
|
7019
|
-
]);
|
|
7020
|
-
useEffect(()=>{
|
|
7021
|
-
if (!isOpen) return;
|
|
7022
|
-
const handler = (e)=>{
|
|
7023
|
-
if ("Escape" === e.key) {
|
|
7024
|
-
e.preventDefault();
|
|
7025
|
-
if (!isDismissDisabled) onClose();
|
|
7026
|
-
}
|
|
7027
|
-
};
|
|
7028
|
-
document.addEventListener("keydown", handler);
|
|
7029
|
-
return ()=>document.removeEventListener("keydown", handler);
|
|
7030
|
-
}, [
|
|
7031
|
-
isDismissDisabled,
|
|
7032
|
-
isOpen,
|
|
7033
|
-
onClose
|
|
7034
|
-
]);
|
|
7035
|
-
useEffect(()=>{
|
|
7036
|
-
if (!isOpen || "overlay" !== variant) return;
|
|
7037
|
-
const handler = (e)=>{
|
|
7038
|
-
if (isDismissDisabled) return;
|
|
7039
|
-
if (!(e.target instanceof Node)) return;
|
|
7040
|
-
if (panelRef.current?.contains(e.target)) return;
|
|
7041
|
-
onClose();
|
|
7042
|
-
};
|
|
7043
|
-
document.addEventListener("pointerdown", handler);
|
|
7044
|
-
return ()=>document.removeEventListener("pointerdown", handler);
|
|
7045
|
-
}, [
|
|
7046
|
-
isDismissDisabled,
|
|
7047
|
-
isOpen,
|
|
7048
|
-
onClose,
|
|
7049
|
-
variant
|
|
8103
|
+
const dismiss = useDismiss(context);
|
|
8104
|
+
const role = useRole(context, {
|
|
8105
|
+
role: "alertdialog"
|
|
8106
|
+
});
|
|
8107
|
+
const { getFloatingProps } = useInteractions([
|
|
8108
|
+
dismiss,
|
|
8109
|
+
role
|
|
7050
8110
|
]);
|
|
7051
|
-
if (
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
8111
|
+
if (!isOpen) return null;
|
|
8112
|
+
return /*#__PURE__*/ jsx(FloatingPortal, {
|
|
8113
|
+
children: /*#__PURE__*/ jsx(FloatingFocusManager, {
|
|
8114
|
+
context: context,
|
|
8115
|
+
initialFocus: cancelRef,
|
|
8116
|
+
returnFocus: true,
|
|
8117
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
8118
|
+
ref: setFloating,
|
|
8119
|
+
"aria-describedby": null != children ? descriptionId : void 0,
|
|
8120
|
+
"aria-labelledby": titleId,
|
|
8121
|
+
className: `${popover_module.popover} ${confirm_dialog_module.popover}`,
|
|
8122
|
+
style: floatingStyles,
|
|
8123
|
+
...getFloatingProps(),
|
|
8124
|
+
children: [
|
|
8125
|
+
/*#__PURE__*/ jsx("h2", {
|
|
8126
|
+
className: confirm_dialog_module.title,
|
|
8127
|
+
id: titleId,
|
|
8128
|
+
children: title
|
|
8129
|
+
}),
|
|
8130
|
+
null != children ? /*#__PURE__*/ jsx("div", {
|
|
8131
|
+
className: confirm_dialog_module.description,
|
|
8132
|
+
id: descriptionId,
|
|
8133
|
+
children: children
|
|
8134
|
+
}) : null,
|
|
8135
|
+
/*#__PURE__*/ jsxs("div", {
|
|
8136
|
+
className: confirm_dialog_module.actions,
|
|
8137
|
+
children: [
|
|
8138
|
+
/*#__PURE__*/ jsx(button_Button, {
|
|
8139
|
+
ref: cancelRef,
|
|
8140
|
+
size: "sm",
|
|
8141
|
+
onPress: onCancel,
|
|
8142
|
+
children: cancelLabel ?? defaultCancel
|
|
8143
|
+
}),
|
|
8144
|
+
/*#__PURE__*/ jsx(button_Button, {
|
|
8145
|
+
size: "sm",
|
|
8146
|
+
variant: "danger" === tone ? "danger" : "primary",
|
|
8147
|
+
onPress: onConfirm,
|
|
8148
|
+
children: confirmLabel ?? defaultConfirm
|
|
8149
|
+
})
|
|
8150
|
+
]
|
|
8151
|
+
})
|
|
8152
|
+
]
|
|
8153
|
+
})
|
|
8154
|
+
})
|
|
8155
|
+
});
|
|
8156
|
+
}
|
|
8157
|
+
const ConfirmContext = /*#__PURE__*/ createContext(null);
|
|
8158
|
+
function useConfirm() {
|
|
8159
|
+
const confirm = useContext(ConfirmContext);
|
|
8160
|
+
if (!confirm) throw new Error("useConfirm must be used inside <Ox0Provider> or <ConfirmProvider>");
|
|
8161
|
+
return confirm;
|
|
8162
|
+
}
|
|
8163
|
+
function ConfirmProvider({ children }) {
|
|
8164
|
+
const [pending, setPending] = useState(null);
|
|
8165
|
+
const [shown, setShown] = useState(null);
|
|
8166
|
+
const pendingRef = useRef(null);
|
|
8167
|
+
const settle = useCallback((confirmed)=>{
|
|
8168
|
+
pendingRef.current?.resolve(confirmed);
|
|
8169
|
+
pendingRef.current = null;
|
|
8170
|
+
setPending(null);
|
|
8171
|
+
}, []);
|
|
8172
|
+
const confirm = useCallback((options)=>{
|
|
8173
|
+
pendingRef.current?.resolve(false);
|
|
8174
|
+
return new Promise((resolve)=>{
|
|
8175
|
+
const next = {
|
|
8176
|
+
options,
|
|
8177
|
+
resolve
|
|
8178
|
+
};
|
|
8179
|
+
pendingRef.current = next;
|
|
8180
|
+
setPending(next);
|
|
8181
|
+
setShown(options);
|
|
8182
|
+
});
|
|
8183
|
+
}, []);
|
|
8184
|
+
return /*#__PURE__*/ jsxs(ConfirmContext.Provider, {
|
|
8185
|
+
value: confirm,
|
|
8186
|
+
children: [
|
|
8187
|
+
children,
|
|
8188
|
+
shown?.anchor ? /*#__PURE__*/ jsx(ConfirmPopover, {
|
|
8189
|
+
anchor: shown.anchor,
|
|
8190
|
+
cancelLabel: shown.cancelLabel,
|
|
8191
|
+
confirmLabel: shown.confirmLabel,
|
|
8192
|
+
isOpen: null !== pending,
|
|
8193
|
+
title: shown.title,
|
|
8194
|
+
tone: shown.tone,
|
|
8195
|
+
onCancel: ()=>settle(false),
|
|
8196
|
+
onConfirm: ()=>settle(true),
|
|
8197
|
+
children: shown.description
|
|
8198
|
+
}) : shown ? /*#__PURE__*/ jsx(ConfirmDialog, {
|
|
8199
|
+
cancelLabel: shown.cancelLabel,
|
|
8200
|
+
confirmLabel: shown.confirmLabel,
|
|
8201
|
+
isOpen: null !== pending,
|
|
8202
|
+
title: shown.title,
|
|
8203
|
+
tone: shown.tone,
|
|
8204
|
+
onCancel: ()=>settle(false),
|
|
8205
|
+
onConfirm: ()=>settle(true),
|
|
8206
|
+
children: shown.description
|
|
8207
|
+
}) : null
|
|
8208
|
+
]
|
|
8209
|
+
});
|
|
8210
|
+
}
|
|
8211
|
+
const radio_group_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/radio-group.module.css");
|
|
8212
|
+
var radio_group_module_options = {};
|
|
8213
|
+
radio_group_module_options.styleTagTransform = styleTagTransform_default();
|
|
8214
|
+
radio_group_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8215
|
+
radio_group_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8216
|
+
radio_group_module_options.domAPI = styleDomAPI_default();
|
|
8217
|
+
radio_group_module_options.insertStyleElement = insertStyleElement_default();
|
|
8218
|
+
injectStylesIntoStyleTag_default()(radio_group_module_0.A, radio_group_module_options);
|
|
8219
|
+
const radio_group_module = radio_group_module_0.A && radio_group_module_0.A.locals ? radio_group_module_0.A.locals : void 0;
|
|
8220
|
+
const RadioGroupContext = /*#__PURE__*/ createContext(null);
|
|
8221
|
+
function useRadioGroupContext() {
|
|
8222
|
+
const ctx = useContext(RadioGroupContext);
|
|
8223
|
+
if (!ctx) throw new Error("<Radio> must be used inside <RadioGroup>");
|
|
8224
|
+
return ctx;
|
|
8225
|
+
}
|
|
8226
|
+
const radio_group_RadioGroup = /*#__PURE__*/ forwardRef(function({ label, description, isInvalid, isDisabled = false, errorMessage, value: valueProp, defaultValue, onChange, orientation = "vertical", children, id: idProp, ...restProps }, ref) {
|
|
8227
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
8228
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
8229
|
+
const generatedId = useId();
|
|
8230
|
+
const id = idProp ?? generatedId;
|
|
8231
|
+
const descriptionId = description ? `${id}-description` : void 0;
|
|
8232
|
+
const errorId = errorMessage ? `${id}-error` : void 0;
|
|
8233
|
+
const invalid = isInvalid || !!errorMessage;
|
|
8234
|
+
const isControlled = void 0 !== valueProp;
|
|
8235
|
+
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
|
|
8236
|
+
const value = isControlled ? valueProp : uncontrolledValue;
|
|
8237
|
+
function handleChange(next) {
|
|
8238
|
+
if (!isControlled) setUncontrolledValue(next);
|
|
8239
|
+
onChange?.(next);
|
|
7082
8240
|
}
|
|
7083
|
-
const
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
8241
|
+
const ctx = useMemo(()=>({
|
|
8242
|
+
name: id,
|
|
8243
|
+
value,
|
|
8244
|
+
onChange: handleChange,
|
|
8245
|
+
isDisabled,
|
|
8246
|
+
isInvalid: invalid,
|
|
8247
|
+
descriptionId,
|
|
8248
|
+
errorId
|
|
8249
|
+
}), [
|
|
8250
|
+
id,
|
|
8251
|
+
value,
|
|
8252
|
+
isDisabled,
|
|
8253
|
+
invalid,
|
|
8254
|
+
descriptionId,
|
|
8255
|
+
errorId
|
|
8256
|
+
]);
|
|
8257
|
+
return /*#__PURE__*/ jsx(RadioGroupContext.Provider, {
|
|
8258
|
+
value: ctx,
|
|
8259
|
+
children: /*#__PURE__*/ jsxs("fieldset", {
|
|
8260
|
+
...props,
|
|
8261
|
+
ref: ref,
|
|
8262
|
+
"aria-describedby": [
|
|
8263
|
+
descriptionId,
|
|
8264
|
+
errorId
|
|
8265
|
+
].filter(Boolean).join(" ") || void 0,
|
|
8266
|
+
"aria-invalid": invalid || void 0,
|
|
8267
|
+
className: radio_group_module.fieldset,
|
|
8268
|
+
style: layoutStyle,
|
|
8269
|
+
disabled: isDisabled,
|
|
8270
|
+
id: id,
|
|
7102
8271
|
children: [
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
tabIndex: 0,
|
|
7113
|
-
onKeyDown: handleResizeKeyDown,
|
|
7114
|
-
onPointerDown: handleResizePointerDown,
|
|
7115
|
-
onPointerMove: handleResizePointerMove,
|
|
7116
|
-
onPointerUp: handleResizePointerUp
|
|
7117
|
-
}),
|
|
8272
|
+
label ? /*#__PURE__*/ jsx("legend", {
|
|
8273
|
+
className: `${radio_group_module.legend} ${field_module.label}`,
|
|
8274
|
+
children: label
|
|
8275
|
+
}) : null,
|
|
8276
|
+
description ? /*#__PURE__*/ jsx("span", {
|
|
8277
|
+
className: radio_group_module.description,
|
|
8278
|
+
id: descriptionId,
|
|
8279
|
+
children: description
|
|
8280
|
+
}) : null,
|
|
7118
8281
|
/*#__PURE__*/ jsx("div", {
|
|
7119
|
-
className:
|
|
8282
|
+
className: [
|
|
8283
|
+
radio_group_module.group,
|
|
8284
|
+
"horizontal" === orientation ? radio_group_module.horizontal : radio_group_module.vertical
|
|
8285
|
+
].join(" "),
|
|
7120
8286
|
children: children
|
|
8287
|
+
}),
|
|
8288
|
+
errorMessage ? /*#__PURE__*/ jsx("span", {
|
|
8289
|
+
className: radio_group_module.error,
|
|
8290
|
+
id: errorId,
|
|
8291
|
+
children: errorMessage
|
|
8292
|
+
}) : null
|
|
8293
|
+
]
|
|
8294
|
+
})
|
|
8295
|
+
});
|
|
8296
|
+
});
|
|
8297
|
+
const radio_group_Radio = /*#__PURE__*/ forwardRef(function({ value, label, description, isDisabled: isDisabledProp, id: idProp, children, ...props }, ref) {
|
|
8298
|
+
const ctx = useRadioGroupContext();
|
|
8299
|
+
const generatedId = useId();
|
|
8300
|
+
const id = idProp ?? generatedId;
|
|
8301
|
+
const descriptionId = description ? `${id}-description` : void 0;
|
|
8302
|
+
const isDisabled = isDisabledProp ?? ctx.isDisabled;
|
|
8303
|
+
const labelContent = label ?? children;
|
|
8304
|
+
return /*#__PURE__*/ jsx("div", {
|
|
8305
|
+
className: radio_group_module.item,
|
|
8306
|
+
children: /*#__PURE__*/ jsxs("label", {
|
|
8307
|
+
className: `${radio_group_module.itemLabel}${isDisabled ? ` ${radio_group_module.disabled}` : ""}`,
|
|
8308
|
+
children: [
|
|
8309
|
+
/*#__PURE__*/ jsx("input", {
|
|
8310
|
+
...props,
|
|
8311
|
+
ref: ref,
|
|
8312
|
+
"aria-describedby": [
|
|
8313
|
+
descriptionId,
|
|
8314
|
+
ctx.errorId
|
|
8315
|
+
].filter(Boolean).join(" ") || void 0,
|
|
8316
|
+
checked: ctx.value === value,
|
|
8317
|
+
className: `${choice_module.control} ${choice_module.radio}`,
|
|
8318
|
+
disabled: isDisabled,
|
|
8319
|
+
id: id,
|
|
8320
|
+
name: ctx.name,
|
|
8321
|
+
onChange: ()=>ctx.onChange(value),
|
|
8322
|
+
type: "radio",
|
|
8323
|
+
value: value
|
|
8324
|
+
}),
|
|
8325
|
+
/*#__PURE__*/ jsxs("span", {
|
|
8326
|
+
children: [
|
|
8327
|
+
labelContent ? /*#__PURE__*/ jsx("span", {
|
|
8328
|
+
children: labelContent
|
|
8329
|
+
}) : null,
|
|
8330
|
+
description ? /*#__PURE__*/ jsx("span", {
|
|
8331
|
+
className: radio_group_module.itemDescription,
|
|
8332
|
+
id: descriptionId,
|
|
8333
|
+
children: description
|
|
8334
|
+
}) : null
|
|
8335
|
+
]
|
|
7121
8336
|
})
|
|
7122
8337
|
]
|
|
7123
8338
|
})
|
|
7124
8339
|
});
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
8340
|
+
});
|
|
8341
|
+
const file_trigger_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/file-trigger.module.css");
|
|
8342
|
+
var file_trigger_module_options = {};
|
|
8343
|
+
file_trigger_module_options.styleTagTransform = styleTagTransform_default();
|
|
8344
|
+
file_trigger_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8345
|
+
file_trigger_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8346
|
+
file_trigger_module_options.domAPI = styleDomAPI_default();
|
|
8347
|
+
file_trigger_module_options.insertStyleElement = insertStyleElement_default();
|
|
8348
|
+
injectStylesIntoStyleTag_default()(file_trigger_module_0.A, file_trigger_module_options);
|
|
8349
|
+
const file_trigger_module = file_trigger_module_0.A && file_trigger_module_0.A.locals ? file_trigger_module_0.A.locals : void 0;
|
|
8350
|
+
function matchesAccept(file, accept) {
|
|
8351
|
+
if (!accept) return true;
|
|
8352
|
+
const name = file.name.toLowerCase();
|
|
8353
|
+
const type = file.type.toLowerCase();
|
|
8354
|
+
return accept.split(",").map((t)=>t.trim().toLowerCase()).filter(Boolean).some((t)=>{
|
|
8355
|
+
if (t.startsWith(".")) return name.endsWith(t);
|
|
8356
|
+
if (t.endsWith("/*")) return type.startsWith(t.slice(0, -1));
|
|
8357
|
+
return type === t;
|
|
8358
|
+
});
|
|
8359
|
+
}
|
|
8360
|
+
const file_trigger_FileTrigger = /*#__PURE__*/ forwardRef(function({ accept, acceptDirectory = false, capture, children, isMultiple = false, name, onSelect, variant = "secondary", id: idProp, ...buttonProps }, ref) {
|
|
8361
|
+
const inputRef = useRef(null);
|
|
8362
|
+
const generatedId = useId();
|
|
8363
|
+
const buttonId = idProp ?? generatedId;
|
|
8364
|
+
function handleChange(e) {
|
|
8365
|
+
const files = Array.from(e.target.files ?? []);
|
|
8366
|
+
e.target.value = "";
|
|
8367
|
+
if (files.length > 0) onSelect(files);
|
|
7140
8368
|
}
|
|
7141
|
-
return /*#__PURE__*/
|
|
7142
|
-
className: drawer_module.overlayContainer,
|
|
7143
|
-
"data-placement": placement,
|
|
7144
|
-
children: panel
|
|
7145
|
-
}), document.body);
|
|
7146
|
-
}
|
|
7147
|
-
const drawer_CloseIcon = ()=>/*#__PURE__*/ jsxs("svg", {
|
|
7148
|
-
"aria-hidden": "true",
|
|
7149
|
-
fill: "none",
|
|
7150
|
-
height: "12",
|
|
7151
|
-
stroke: "currentColor",
|
|
7152
|
-
strokeLinecap: "round",
|
|
7153
|
-
strokeLinejoin: "round",
|
|
7154
|
-
strokeWidth: "2",
|
|
7155
|
-
viewBox: "0 0 12 12",
|
|
7156
|
-
width: "12",
|
|
8369
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
7157
8370
|
children: [
|
|
7158
|
-
/*#__PURE__*/ jsx(
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
8371
|
+
/*#__PURE__*/ jsx(button_Button, {
|
|
8372
|
+
ref: ref,
|
|
8373
|
+
...buttonProps,
|
|
8374
|
+
id: buttonId,
|
|
8375
|
+
variant: variant,
|
|
8376
|
+
onPress: ()=>inputRef.current?.click(),
|
|
8377
|
+
children: children
|
|
7163
8378
|
}),
|
|
7164
|
-
/*#__PURE__*/ jsx("
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
8379
|
+
/*#__PURE__*/ jsx("input", {
|
|
8380
|
+
ref: inputRef,
|
|
8381
|
+
accept: accept,
|
|
8382
|
+
"aria-hidden": "true",
|
|
8383
|
+
"aria-labelledby": buttonProps["aria-labelledby"] ?? buttonId,
|
|
8384
|
+
capture: capture,
|
|
8385
|
+
className: file_trigger_module.input,
|
|
8386
|
+
multiple: isMultiple,
|
|
8387
|
+
name: name,
|
|
8388
|
+
tabIndex: -1,
|
|
8389
|
+
type: "file",
|
|
8390
|
+
onChange: handleChange,
|
|
8391
|
+
...acceptDirectory ? {
|
|
8392
|
+
webkitdirectory: ""
|
|
8393
|
+
} : {}
|
|
7169
8394
|
})
|
|
7170
8395
|
]
|
|
7171
8396
|
});
|
|
7172
|
-
|
|
7173
|
-
|
|
8397
|
+
});
|
|
8398
|
+
const drop_zone_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/drop-zone.module.css");
|
|
8399
|
+
var drop_zone_module_options = {};
|
|
8400
|
+
drop_zone_module_options.styleTagTransform = styleTagTransform_default();
|
|
8401
|
+
drop_zone_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8402
|
+
drop_zone_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8403
|
+
drop_zone_module_options.domAPI = styleDomAPI_default();
|
|
8404
|
+
drop_zone_module_options.insertStyleElement = insertStyleElement_default();
|
|
8405
|
+
injectStylesIntoStyleTag_default()(drop_zone_module_0.A, drop_zone_module_options);
|
|
8406
|
+
const drop_zone_module = drop_zone_module_0.A && drop_zone_module_0.A.locals ? drop_zone_module_0.A.locals : void 0;
|
|
8407
|
+
const drop_zone_DropZone = /*#__PURE__*/ forwardRef(function(allProps, ref) {
|
|
8408
|
+
const [layout, { accept, buttonLabel, description, errorMessage, hint, isDisabled = false, isInvalid, isMultiple = false, label, name, onReject, onSelect }] = splitLayoutItemProps(allProps);
|
|
8409
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
8410
|
+
const id = useId();
|
|
8411
|
+
const labelId = `${id}-label`;
|
|
8412
|
+
const buttonId = `${id}-button`;
|
|
8413
|
+
const descriptionId = description ? `${id}-description` : void 0;
|
|
8414
|
+
const errorId = errorMessage ? `${id}-error` : void 0;
|
|
8415
|
+
const invalid = Boolean(isInvalid || errorMessage);
|
|
8416
|
+
const [isDropTarget, setIsDropTarget] = useState(false);
|
|
8417
|
+
const browse = useMessage("ox0.dropZone.browse", "Choose file");
|
|
8418
|
+
const browseMultiple = useMessage("ox0.dropZone.browseMultiple", "Choose files");
|
|
8419
|
+
function handleDragOver(e) {
|
|
8420
|
+
if (isDisabled || !e.dataTransfer.types.includes("Files")) return;
|
|
8421
|
+
e.preventDefault();
|
|
8422
|
+
e.dataTransfer.dropEffect = "copy";
|
|
8423
|
+
setIsDropTarget(true);
|
|
8424
|
+
}
|
|
8425
|
+
function handleDragLeave(e) {
|
|
8426
|
+
if (e.relatedTarget instanceof Node && e.currentTarget.contains(e.relatedTarget)) return;
|
|
8427
|
+
setIsDropTarget(false);
|
|
8428
|
+
}
|
|
8429
|
+
function handleDrop(e) {
|
|
8430
|
+
if (isDisabled) return;
|
|
8431
|
+
e.preventDefault();
|
|
8432
|
+
setIsDropTarget(false);
|
|
8433
|
+
const dropped = Array.from(e.dataTransfer.files);
|
|
8434
|
+
const matching = dropped.filter((f)=>matchesAccept(f, accept));
|
|
8435
|
+
const accepted = isMultiple ? matching : matching.slice(0, 1);
|
|
8436
|
+
const rejected = dropped.filter((f)=>!accepted.includes(f));
|
|
8437
|
+
if (accepted.length > 0) onSelect(accepted);
|
|
8438
|
+
if (rejected.length > 0) onReject?.(rejected);
|
|
8439
|
+
}
|
|
8440
|
+
const labelledBy = label ? `${labelId} ${buttonId}` : void 0;
|
|
8441
|
+
const describedBy = [
|
|
8442
|
+
descriptionId,
|
|
8443
|
+
errorId
|
|
8444
|
+
].filter(Boolean).join(" ") || void 0;
|
|
7174
8445
|
return /*#__PURE__*/ jsxs("div", {
|
|
7175
|
-
|
|
8446
|
+
ref: ref,
|
|
8447
|
+
className: drop_zone_module.root,
|
|
8448
|
+
style: layoutStyle,
|
|
7176
8449
|
children: [
|
|
7177
|
-
/*#__PURE__*/ jsx("
|
|
7178
|
-
className:
|
|
7179
|
-
|
|
8450
|
+
label ? /*#__PURE__*/ jsx("span", {
|
|
8451
|
+
className: field_module.label,
|
|
8452
|
+
id: labelId,
|
|
8453
|
+
children: label
|
|
8454
|
+
}) : null,
|
|
8455
|
+
/*#__PURE__*/ jsxs("div", {
|
|
8456
|
+
className: drop_zone_module.zone,
|
|
8457
|
+
"data-disabled": isDisabled || void 0,
|
|
8458
|
+
"data-drop-target": isDropTarget || void 0,
|
|
8459
|
+
"data-invalid": invalid || void 0,
|
|
8460
|
+
onDragLeave: handleDragLeave,
|
|
8461
|
+
onDragOver: handleDragOver,
|
|
8462
|
+
onDrop: handleDrop,
|
|
8463
|
+
children: [
|
|
8464
|
+
null != hint ? /*#__PURE__*/ jsx("p", {
|
|
8465
|
+
className: drop_zone_module.hint,
|
|
8466
|
+
children: hint
|
|
8467
|
+
}) : null,
|
|
8468
|
+
/*#__PURE__*/ jsx(file_trigger_FileTrigger, {
|
|
8469
|
+
accept: accept,
|
|
8470
|
+
"aria-describedby": describedBy,
|
|
8471
|
+
"aria-labelledby": labelledBy,
|
|
8472
|
+
id: buttonId,
|
|
8473
|
+
isDisabled: isDisabled,
|
|
8474
|
+
isMultiple: isMultiple,
|
|
8475
|
+
name: name,
|
|
8476
|
+
size: "sm",
|
|
8477
|
+
onSelect: onSelect,
|
|
8478
|
+
children: buttonLabel ?? (isMultiple ? browseMultiple : browse)
|
|
8479
|
+
})
|
|
8480
|
+
]
|
|
7180
8481
|
}),
|
|
7181
|
-
/*#__PURE__*/ jsx("
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
}
|
|
7191
|
-
|
|
7192
|
-
const { titleId } = useDrawerContext();
|
|
7193
|
-
return /*#__PURE__*/ jsx("h2", {
|
|
7194
|
-
id: titleId,
|
|
7195
|
-
className: drawer_module.title,
|
|
7196
|
-
children: children
|
|
7197
|
-
});
|
|
7198
|
-
}
|
|
7199
|
-
function DrawerBody({ children }) {
|
|
7200
|
-
return /*#__PURE__*/ jsx("div", {
|
|
7201
|
-
className: drawer_module.body,
|
|
7202
|
-
children: children
|
|
7203
|
-
});
|
|
7204
|
-
}
|
|
7205
|
-
function DrawerFooter({ children }) {
|
|
7206
|
-
return /*#__PURE__*/ jsx("div", {
|
|
7207
|
-
className: drawer_module.footer,
|
|
7208
|
-
children: children
|
|
8482
|
+
description ? /*#__PURE__*/ jsx("span", {
|
|
8483
|
+
className: drop_zone_module.description,
|
|
8484
|
+
id: descriptionId,
|
|
8485
|
+
children: description
|
|
8486
|
+
}) : null,
|
|
8487
|
+
errorMessage ? /*#__PURE__*/ jsx("span", {
|
|
8488
|
+
className: drop_zone_module.error,
|
|
8489
|
+
id: errorId,
|
|
8490
|
+
children: errorMessage
|
|
8491
|
+
}) : null
|
|
8492
|
+
]
|
|
7209
8493
|
});
|
|
7210
|
-
}
|
|
7211
|
-
const Drawer = Object.assign(DrawerRoot, {
|
|
7212
|
-
displayName: "Drawer",
|
|
7213
|
-
Header: DrawerHeader,
|
|
7214
|
-
Title: DrawerTitle,
|
|
7215
|
-
Body: DrawerBody,
|
|
7216
|
-
Footer: DrawerFooter
|
|
7217
8494
|
});
|
|
7218
8495
|
const divider_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/divider.module.css");
|
|
7219
8496
|
var divider_module_options = {};
|
|
@@ -7250,7 +8527,7 @@ const levelClass = {
|
|
|
7250
8527
|
2: heading_module.h2 ?? "",
|
|
7251
8528
|
3: heading_module.h3 ?? ""
|
|
7252
8529
|
};
|
|
7253
|
-
const heading_Heading = /*#__PURE__*/ forwardRef(function({ children, id, level = 2 }, ref) {
|
|
8530
|
+
const heading_Heading = /*#__PURE__*/ forwardRef(function({ children, id, level = 2, variant = "default" }, ref) {
|
|
7254
8531
|
const anchorLabel = useMessage("ox0.heading.anchorLabel", "Link to {id}", {
|
|
7255
8532
|
id: id ?? ""
|
|
7256
8533
|
});
|
|
@@ -7260,7 +8537,7 @@ const heading_Heading = /*#__PURE__*/ forwardRef(function({ children, id, level
|
|
|
7260
8537
|
id,
|
|
7261
8538
|
className: [
|
|
7262
8539
|
heading_module.heading,
|
|
7263
|
-
levelClass[level]
|
|
8540
|
+
"eyebrow" === variant ? heading_module.eyebrow : levelClass[level]
|
|
7264
8541
|
].filter(Boolean).join(" ")
|
|
7265
8542
|
}, /*#__PURE__*/ jsxs(Fragment, {
|
|
7266
8543
|
children: [
|
|
@@ -7276,189 +8553,6 @@ const heading_Heading = /*#__PURE__*/ forwardRef(function({ children, id, level
|
|
|
7276
8553
|
]
|
|
7277
8554
|
}));
|
|
7278
8555
|
});
|
|
7279
|
-
const WARMUP_MS = 1000;
|
|
7280
|
-
const COOLDOWN_MS = 500;
|
|
7281
|
-
let warm = false;
|
|
7282
|
-
let cooldownTimer = null;
|
|
7283
|
-
const tooltipManager = {
|
|
7284
|
-
getDelay () {
|
|
7285
|
-
return warm ? 0 : WARMUP_MS;
|
|
7286
|
-
},
|
|
7287
|
-
onOpen () {
|
|
7288
|
-
if (null !== cooldownTimer) {
|
|
7289
|
-
clearTimeout(cooldownTimer);
|
|
7290
|
-
cooldownTimer = null;
|
|
7291
|
-
}
|
|
7292
|
-
warm = true;
|
|
7293
|
-
},
|
|
7294
|
-
onClose () {
|
|
7295
|
-
if (null !== cooldownTimer) clearTimeout(cooldownTimer);
|
|
7296
|
-
cooldownTimer = setTimeout(()=>{
|
|
7297
|
-
warm = false;
|
|
7298
|
-
cooldownTimer = null;
|
|
7299
|
-
}, COOLDOWN_MS);
|
|
7300
|
-
}
|
|
7301
|
-
};
|
|
7302
|
-
const tooltip_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tooltip.module.css");
|
|
7303
|
-
var tooltip_module_options = {};
|
|
7304
|
-
tooltip_module_options.styleTagTransform = styleTagTransform_default();
|
|
7305
|
-
tooltip_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
7306
|
-
tooltip_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
7307
|
-
tooltip_module_options.domAPI = styleDomAPI_default();
|
|
7308
|
-
tooltip_module_options.insertStyleElement = insertStyleElement_default();
|
|
7309
|
-
injectStylesIntoStyleTag_default()(tooltip_module_0.A, tooltip_module_options);
|
|
7310
|
-
const tooltip_module = tooltip_module_0.A && tooltip_module_0.A.locals ? tooltip_module_0.A.locals : void 0;
|
|
7311
|
-
const TooltipContext = /*#__PURE__*/ createContext(null);
|
|
7312
|
-
function useTooltipContext() {
|
|
7313
|
-
const ctx = useContext(TooltipContext);
|
|
7314
|
-
if (!ctx) throw new Error("TooltipTrigger and TooltipContent must be used inside <Tooltip>");
|
|
7315
|
-
return ctx;
|
|
7316
|
-
}
|
|
7317
|
-
function Tooltip({ children, placement = "top", isDisabled = false }) {
|
|
7318
|
-
const [open, setOpen] = useState(false);
|
|
7319
|
-
const openTimerRef = useRef(null);
|
|
7320
|
-
const isHoveringRef = useRef(false);
|
|
7321
|
-
const isFocusedRef = useRef(false);
|
|
7322
|
-
const clearOpenTimer = useCallback(()=>{
|
|
7323
|
-
if (null !== openTimerRef.current) {
|
|
7324
|
-
clearTimeout(openTimerRef.current);
|
|
7325
|
-
openTimerRef.current = null;
|
|
7326
|
-
}
|
|
7327
|
-
}, []);
|
|
7328
|
-
const { refs, floatingStyles, context } = useFloating({
|
|
7329
|
-
open,
|
|
7330
|
-
onOpenChange: (nextOpen)=>{
|
|
7331
|
-
if (!nextOpen) {
|
|
7332
|
-
clearOpenTimer();
|
|
7333
|
-
isHoveringRef.current = false;
|
|
7334
|
-
isFocusedRef.current = false;
|
|
7335
|
-
setOpen(false);
|
|
7336
|
-
tooltipManager.onClose();
|
|
7337
|
-
}
|
|
7338
|
-
},
|
|
7339
|
-
placement,
|
|
7340
|
-
middleware: [
|
|
7341
|
-
offset(8),
|
|
7342
|
-
flip(),
|
|
7343
|
-
shift({
|
|
7344
|
-
padding: 8
|
|
7345
|
-
})
|
|
7346
|
-
],
|
|
7347
|
-
whileElementsMounted: autoUpdate
|
|
7348
|
-
});
|
|
7349
|
-
const dismiss = useDismiss(context, {
|
|
7350
|
-
referencePress: false
|
|
7351
|
-
});
|
|
7352
|
-
const role = useRole(context, {
|
|
7353
|
-
role: "tooltip"
|
|
7354
|
-
});
|
|
7355
|
-
const { getReferenceProps, getFloatingProps } = useInteractions([
|
|
7356
|
-
dismiss,
|
|
7357
|
-
role
|
|
7358
|
-
]);
|
|
7359
|
-
const doOpen = useCallback(()=>{
|
|
7360
|
-
clearOpenTimer();
|
|
7361
|
-
setOpen(true);
|
|
7362
|
-
tooltipManager.onOpen();
|
|
7363
|
-
}, [
|
|
7364
|
-
clearOpenTimer
|
|
7365
|
-
]);
|
|
7366
|
-
const tryClose = useCallback(()=>{
|
|
7367
|
-
if (!isHoveringRef.current && !isFocusedRef.current) {
|
|
7368
|
-
clearOpenTimer();
|
|
7369
|
-
setOpen(false);
|
|
7370
|
-
tooltipManager.onClose();
|
|
7371
|
-
}
|
|
7372
|
-
}, [
|
|
7373
|
-
clearOpenTimer
|
|
7374
|
-
]);
|
|
7375
|
-
const referenceProps = getReferenceProps({
|
|
7376
|
-
onPointerEnter (e) {
|
|
7377
|
-
if ("touch" === e.pointerType) return;
|
|
7378
|
-
if (isHoveringRef.current) return;
|
|
7379
|
-
isHoveringRef.current = true;
|
|
7380
|
-
const delay = tooltipManager.getDelay();
|
|
7381
|
-
if (0 === delay) doOpen();
|
|
7382
|
-
else openTimerRef.current = setTimeout(()=>{
|
|
7383
|
-
openTimerRef.current = null;
|
|
7384
|
-
doOpen();
|
|
7385
|
-
}, delay);
|
|
7386
|
-
},
|
|
7387
|
-
onPointerLeave () {
|
|
7388
|
-
isHoveringRef.current = false;
|
|
7389
|
-
tryClose();
|
|
7390
|
-
},
|
|
7391
|
-
onFocus () {
|
|
7392
|
-
if (!hooks_isFocusVisible()) return;
|
|
7393
|
-
isFocusedRef.current = true;
|
|
7394
|
-
clearOpenTimer();
|
|
7395
|
-
doOpen();
|
|
7396
|
-
},
|
|
7397
|
-
onBlur () {
|
|
7398
|
-
isFocusedRef.current = false;
|
|
7399
|
-
tryClose();
|
|
7400
|
-
}
|
|
7401
|
-
});
|
|
7402
|
-
const value = {
|
|
7403
|
-
open,
|
|
7404
|
-
isDisabled,
|
|
7405
|
-
referenceRef: refs.setReference,
|
|
7406
|
-
floatingRef: refs.setFloating,
|
|
7407
|
-
floatingStyles,
|
|
7408
|
-
getReferenceProps: ()=>referenceProps,
|
|
7409
|
-
getFloatingProps
|
|
7410
|
-
};
|
|
7411
|
-
return /*#__PURE__*/ jsx(TooltipContext.Provider, {
|
|
7412
|
-
value: value,
|
|
7413
|
-
children: children
|
|
7414
|
-
});
|
|
7415
|
-
}
|
|
7416
|
-
function TooltipTrigger({ children }) {
|
|
7417
|
-
const { isDisabled, referenceRef, getReferenceProps } = useTooltipContext();
|
|
7418
|
-
const { ref: childRef, ...childProps } = children.props;
|
|
7419
|
-
const composedRef = useMergeRefs([
|
|
7420
|
-
referenceRef,
|
|
7421
|
-
childRef ?? null
|
|
7422
|
-
]);
|
|
7423
|
-
if (isDisabled) return children;
|
|
7424
|
-
return /*#__PURE__*/ cloneElement(children, {
|
|
7425
|
-
...getReferenceProps(childProps),
|
|
7426
|
-
ref: composedRef
|
|
7427
|
-
});
|
|
7428
|
-
}
|
|
7429
|
-
function TooltipContent({ children }) {
|
|
7430
|
-
const { open, floatingRef, floatingStyles, getFloatingProps } = useTooltipContext();
|
|
7431
|
-
if (!open) return null;
|
|
7432
|
-
return /*#__PURE__*/ jsx(FloatingPortal, {
|
|
7433
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
7434
|
-
ref: floatingRef,
|
|
7435
|
-
style: floatingStyles,
|
|
7436
|
-
className: tooltip_module.tooltip,
|
|
7437
|
-
...getFloatingProps(),
|
|
7438
|
-
children: children
|
|
7439
|
-
})
|
|
7440
|
-
});
|
|
7441
|
-
}
|
|
7442
|
-
const icon_button_IconButton = /*#__PURE__*/ forwardRef(function({ icon: Icon, label, size = "md", tooltipPlacement, variant = "circle", ...props }, ref) {
|
|
7443
|
-
return /*#__PURE__*/ jsxs(Tooltip, {
|
|
7444
|
-
placement: tooltipPlacement,
|
|
7445
|
-
children: [
|
|
7446
|
-
/*#__PURE__*/ jsx(TooltipTrigger, {
|
|
7447
|
-
children: /*#__PURE__*/ jsx(button_Button, {
|
|
7448
|
-
...props,
|
|
7449
|
-
ref: ref,
|
|
7450
|
-
"aria-label": label,
|
|
7451
|
-
icon: Icon,
|
|
7452
|
-
size: size,
|
|
7453
|
-
variant: variant
|
|
7454
|
-
})
|
|
7455
|
-
}),
|
|
7456
|
-
/*#__PURE__*/ jsx(TooltipContent, {
|
|
7457
|
-
children: label
|
|
7458
|
-
})
|
|
7459
|
-
]
|
|
7460
|
-
});
|
|
7461
|
-
});
|
|
7462
8556
|
const icon_toggle_IconToggle = /*#__PURE__*/ forwardRef(function({ isSelected: controlledSelected, defaultSelected = false, onChange, onPress, variant = "flat", ...props }, ref) {
|
|
7463
8557
|
const [isSelected, setIsSelected] = useControllableState({
|
|
7464
8558
|
value: controlledSelected,
|
|
@@ -8310,15 +9404,6 @@ function Menu({ "aria-label": ariaLabel, trigger, children }) {
|
|
|
8310
9404
|
]
|
|
8311
9405
|
});
|
|
8312
9406
|
}
|
|
8313
|
-
const popover_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/popover.module.css");
|
|
8314
|
-
var popover_module_options = {};
|
|
8315
|
-
popover_module_options.styleTagTransform = styleTagTransform_default();
|
|
8316
|
-
popover_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8317
|
-
popover_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8318
|
-
popover_module_options.domAPI = styleDomAPI_default();
|
|
8319
|
-
popover_module_options.insertStyleElement = insertStyleElement_default();
|
|
8320
|
-
injectStylesIntoStyleTag_default()(popover_module_0.A, popover_module_options);
|
|
8321
|
-
const popover_module = popover_module_0.A && popover_module_0.A.locals ? popover_module_0.A.locals : void 0;
|
|
8322
9407
|
const PopoverContext = /*#__PURE__*/ createContext(null);
|
|
8323
9408
|
function usePopoverContext() {
|
|
8324
9409
|
const ctx = useContext(PopoverContext);
|
|
@@ -9150,6 +10235,7 @@ function flatOptions(options) {
|
|
|
9150
10235
|
const select_Select = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
9151
10236
|
const { ariaLabel, autoFocus, description, errorMessage, id, isDisabled, isInvalid, isRequired, label, name, options, placeholder } = props;
|
|
9152
10237
|
if (!label && !ariaLabel) throw new Error("Select requires `label` or `ariaLabel`.");
|
|
10238
|
+
const { style: layoutStyle } = useLayoutItem(props);
|
|
9153
10239
|
const isMultiple = "multiple" === props.selectionMode;
|
|
9154
10240
|
const all = useMemo(()=>flatOptions(options), [
|
|
9155
10241
|
options
|
|
@@ -9228,10 +10314,11 @@ const select_Select = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
9228
10314
|
}) : 1 === selected.length ? single?.label ?? selected[0]?.textValue : countLabel;
|
|
9229
10315
|
return /*#__PURE__*/ jsxs("div", {
|
|
9230
10316
|
className: select_module.root,
|
|
10317
|
+
style: layoutStyle,
|
|
9231
10318
|
children: [
|
|
9232
10319
|
label ? /*#__PURE__*/ jsx("span", {
|
|
9233
10320
|
...labelProps,
|
|
9234
|
-
className:
|
|
10321
|
+
className: field_module.label,
|
|
9235
10322
|
children: label
|
|
9236
10323
|
}) : null,
|
|
9237
10324
|
/*#__PURE__*/ jsx(HiddenSelect, {
|
|
@@ -9444,7 +10531,9 @@ switch_module_options.domAPI = styleDomAPI_default();
|
|
|
9444
10531
|
switch_module_options.insertStyleElement = insertStyleElement_default();
|
|
9445
10532
|
injectStylesIntoStyleTag_default()(switch_module_0.A, switch_module_options);
|
|
9446
10533
|
const switch_module = switch_module_0.A && switch_module_0.A.locals ? switch_module_0.A.locals : void 0;
|
|
9447
|
-
const switch_Switch = /*#__PURE__*/ forwardRef(function({ label, description, isDisabled, isInvalid, isSelected, defaultSelected, errorMessage, onChange, id: idProp, ...
|
|
10534
|
+
const switch_Switch = /*#__PURE__*/ forwardRef(function({ label, description, isDisabled, isInvalid, isSelected, defaultSelected, errorMessage, onChange, id: idProp, ...restProps }, ref) {
|
|
10535
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
10536
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
9448
10537
|
const generatedId = useId();
|
|
9449
10538
|
const id = idProp ?? generatedId;
|
|
9450
10539
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -9459,6 +10548,7 @@ const switch_Switch = /*#__PURE__*/ forwardRef(function({ label, description, is
|
|
|
9459
10548
|
const ariaChecked = isControlled ? isSelected : uncontrolledChecked;
|
|
9460
10549
|
return /*#__PURE__*/ jsxs("div", {
|
|
9461
10550
|
className: switch_module.root,
|
|
10551
|
+
style: layoutStyle,
|
|
9462
10552
|
children: [
|
|
9463
10553
|
/*#__PURE__*/ jsxs("label", {
|
|
9464
10554
|
className: `${switch_module.label}${isDisabled ? ` ${switch_module.disabled}` : ""}`,
|
|
@@ -9518,7 +10608,9 @@ text_field_module_options.domAPI = styleDomAPI_default();
|
|
|
9518
10608
|
text_field_module_options.insertStyleElement = insertStyleElement_default();
|
|
9519
10609
|
injectStylesIntoStyleTag_default()(text_field_module_0.A, text_field_module_options);
|
|
9520
10610
|
const text_field_module = text_field_module_0.A && text_field_module_0.A.locals ? text_field_module_0.A.locals : void 0;
|
|
9521
|
-
const text_area_TextArea = /*#__PURE__*/ forwardRef(function({ ariaLabel, className, description, errorMessage, id: idProp, isDisabled, isInvalid, label, lines, minLines = lines ?? 1, maxLines = lines ?? 1 / 0, onChange, style, value, defaultValue, ...
|
|
10611
|
+
const text_area_TextArea = /*#__PURE__*/ forwardRef(function({ ariaLabel, className, description, errorMessage, id: idProp, isDisabled, isInvalid, label, lines, minLines = lines ?? 1, maxLines = lines ?? 1 / 0, onChange, style, value, defaultValue, ...restProps }, forwardedRef) {
|
|
10612
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
10613
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
9522
10614
|
const generatedId = useId();
|
|
9523
10615
|
const id = idProp ?? generatedId;
|
|
9524
10616
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -9558,9 +10650,10 @@ const text_area_TextArea = /*#__PURE__*/ forwardRef(function({ ariaLabel, classN
|
|
|
9558
10650
|
}, []);
|
|
9559
10651
|
return /*#__PURE__*/ jsxs("div", {
|
|
9560
10652
|
className: text_field_module.root,
|
|
10653
|
+
style: layoutStyle,
|
|
9561
10654
|
children: [
|
|
9562
10655
|
label ? /*#__PURE__*/ jsx("label", {
|
|
9563
|
-
className:
|
|
10656
|
+
className: field_module.label,
|
|
9564
10657
|
htmlFor: id,
|
|
9565
10658
|
children: label
|
|
9566
10659
|
}) : null,
|
|
@@ -9612,7 +10705,9 @@ number_field_module_options.domAPI = styleDomAPI_default();
|
|
|
9612
10705
|
number_field_module_options.insertStyleElement = insertStyleElement_default();
|
|
9613
10706
|
injectStylesIntoStyleTag_default()(number_field_module_0.A, number_field_module_options);
|
|
9614
10707
|
const number_field_module = number_field_module_0.A && number_field_module_0.A.locals ? number_field_module_0.A.locals : void 0;
|
|
9615
|
-
const number_field_NumberField = /*#__PURE__*/ forwardRef(function({ ariaLabel, defaultValue = null, description, errorMessage, id: idProp, isDisabled, isInvalid, label, max, min, onBlur, onChange, onFocus, onKeyDown, onPointerDown, step, value, ...
|
|
10708
|
+
const number_field_NumberField = /*#__PURE__*/ forwardRef(function({ ariaLabel, defaultValue = null, description, errorMessage, id: idProp, isDisabled, isInvalid, label, max, min, onBlur, onChange, onFocus, onKeyDown, onPointerDown, step, value, ...restProps }, ref) {
|
|
10709
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
10710
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
9616
10711
|
const generatedId = useId();
|
|
9617
10712
|
const id = idProp ?? generatedId;
|
|
9618
10713
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -9754,9 +10849,10 @@ const number_field_NumberField = /*#__PURE__*/ forwardRef(function({ ariaLabel,
|
|
|
9754
10849
|
]);
|
|
9755
10850
|
return /*#__PURE__*/ jsxs("div", {
|
|
9756
10851
|
className: number_field_module.root,
|
|
10852
|
+
style: layoutStyle,
|
|
9757
10853
|
children: [
|
|
9758
10854
|
label ? /*#__PURE__*/ jsx("label", {
|
|
9759
|
-
className:
|
|
10855
|
+
className: field_module.label,
|
|
9760
10856
|
htmlFor: id,
|
|
9761
10857
|
children: label
|
|
9762
10858
|
}) : null,
|
|
@@ -9840,6 +10936,64 @@ const number_field_NumberField = /*#__PURE__*/ forwardRef(function({ ariaLabel,
|
|
|
9840
10936
|
]
|
|
9841
10937
|
});
|
|
9842
10938
|
});
|
|
10939
|
+
const page_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/page.module.css");
|
|
10940
|
+
var page_module_options = {};
|
|
10941
|
+
page_module_options.styleTagTransform = styleTagTransform_default();
|
|
10942
|
+
page_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
10943
|
+
page_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
10944
|
+
page_module_options.domAPI = styleDomAPI_default();
|
|
10945
|
+
page_module_options.insertStyleElement = insertStyleElement_default();
|
|
10946
|
+
injectStylesIntoStyleTag_default()(page_module_0.A, page_module_options);
|
|
10947
|
+
const page_module = page_module_0.A && page_module_0.A.locals ? page_module_0.A.locals : void 0;
|
|
10948
|
+
const page_Page = /*#__PURE__*/ forwardRef(function({ children, maxWidth = "xl", gap = "xl", as: Tag = "main" }, ref) {
|
|
10949
|
+
const { style: sizingStyle } = useSizing({
|
|
10950
|
+
maxWidth
|
|
10951
|
+
});
|
|
10952
|
+
const { style: spacingStyle } = useSpacing({
|
|
10953
|
+
gap
|
|
10954
|
+
});
|
|
10955
|
+
return /*#__PURE__*/ jsx(Tag, {
|
|
10956
|
+
ref: ref,
|
|
10957
|
+
className: page_module.page,
|
|
10958
|
+
style: {
|
|
10959
|
+
...sizingStyle,
|
|
10960
|
+
...spacingStyle
|
|
10961
|
+
},
|
|
10962
|
+
children: children
|
|
10963
|
+
});
|
|
10964
|
+
});
|
|
10965
|
+
const page_PageHeader = /*#__PURE__*/ forwardRef(function({ title, description, actions, breadcrumbs, headingLevel = 1, id }, ref) {
|
|
10966
|
+
return /*#__PURE__*/ jsxs("header", {
|
|
10967
|
+
ref: ref,
|
|
10968
|
+
className: page_module.header,
|
|
10969
|
+
children: [
|
|
10970
|
+
breadcrumbs,
|
|
10971
|
+
/*#__PURE__*/ jsxs("div", {
|
|
10972
|
+
className: page_module.titleRow,
|
|
10973
|
+
children: [
|
|
10974
|
+
/*#__PURE__*/ jsxs("div", {
|
|
10975
|
+
className: page_module.titleBlock,
|
|
10976
|
+
children: [
|
|
10977
|
+
/*#__PURE__*/ jsx(heading_Heading, {
|
|
10978
|
+
level: headingLevel,
|
|
10979
|
+
id: id,
|
|
10980
|
+
children: title
|
|
10981
|
+
}),
|
|
10982
|
+
null != description ? /*#__PURE__*/ jsx("p", {
|
|
10983
|
+
className: page_module.description,
|
|
10984
|
+
children: description
|
|
10985
|
+
}) : null
|
|
10986
|
+
]
|
|
10987
|
+
}),
|
|
10988
|
+
null != actions ? /*#__PURE__*/ jsx("div", {
|
|
10989
|
+
className: page_module.actions,
|
|
10990
|
+
children: actions
|
|
10991
|
+
}) : null
|
|
10992
|
+
]
|
|
10993
|
+
})
|
|
10994
|
+
]
|
|
10995
|
+
});
|
|
10996
|
+
});
|
|
9843
10997
|
const search_field_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/search-field.module.css");
|
|
9844
10998
|
var search_field_module_options = {};
|
|
9845
10999
|
search_field_module_options.styleTagTransform = styleTagTransform_default();
|
|
@@ -9849,7 +11003,9 @@ search_field_module_options.domAPI = styleDomAPI_default();
|
|
|
9849
11003
|
search_field_module_options.insertStyleElement = insertStyleElement_default();
|
|
9850
11004
|
injectStylesIntoStyleTag_default()(search_field_module_0.A, search_field_module_options);
|
|
9851
11005
|
const search_field_module = search_field_module_0.A && search_field_module_0.A.locals ? search_field_module_0.A.locals : void 0;
|
|
9852
|
-
const search_field_SearchField = /*#__PURE__*/ forwardRef(function({ ariaLabel, description, errorMessage, id: idProp, isDisabled, isInvalid, label, onBlur, onChange, onFocus, onKeyDown, onPointerDown, value, defaultValue, ...
|
|
11006
|
+
const search_field_SearchField = /*#__PURE__*/ forwardRef(function({ ariaLabel, description, errorMessage, id: idProp, isDisabled, isInvalid, label, onBlur, onChange, onFocus, onKeyDown, onPointerDown, value, defaultValue, ...restProps }, ref) {
|
|
11007
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
11008
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
9853
11009
|
const generatedId = useId();
|
|
9854
11010
|
const id = idProp ?? generatedId;
|
|
9855
11011
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -9889,9 +11045,10 @@ const search_field_SearchField = /*#__PURE__*/ forwardRef(function({ ariaLabel,
|
|
|
9889
11045
|
]);
|
|
9890
11046
|
return /*#__PURE__*/ jsxs("search", {
|
|
9891
11047
|
className: search_field_module.root,
|
|
11048
|
+
style: layoutStyle,
|
|
9892
11049
|
children: [
|
|
9893
11050
|
label ? /*#__PURE__*/ jsx("label", {
|
|
9894
|
-
className:
|
|
11051
|
+
className: field_module.label,
|
|
9895
11052
|
htmlFor: id,
|
|
9896
11053
|
children: label
|
|
9897
11054
|
}) : null,
|
|
@@ -10004,7 +11161,9 @@ slider_module_options.domAPI = styleDomAPI_default();
|
|
|
10004
11161
|
slider_module_options.insertStyleElement = insertStyleElement_default();
|
|
10005
11162
|
injectStylesIntoStyleTag_default()(slider_module_0.A, slider_module_options);
|
|
10006
11163
|
const slider_module = slider_module_0.A && slider_module_0.A.locals ? slider_module_0.A.locals : void 0;
|
|
10007
|
-
const slider_Slider = /*#__PURE__*/ forwardRef(function({ ariaLabel, defaultValue, description, errorMessage, id: idProp, isDisabled, isInvalid, label, max = 100, min = 0, onChange, onKeyDown, step = 1, value, ...
|
|
11164
|
+
const slider_Slider = /*#__PURE__*/ forwardRef(function({ ariaLabel, defaultValue, description, errorMessage, id: idProp, isDisabled, isInvalid, label, max = 100, min = 0, onChange, onKeyDown, step = 1, value, ...restProps }, ref) {
|
|
11165
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
11166
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
10008
11167
|
const generatedId = useId();
|
|
10009
11168
|
const id = idProp ?? generatedId;
|
|
10010
11169
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -10067,9 +11226,10 @@ const slider_Slider = /*#__PURE__*/ forwardRef(function({ ariaLabel, defaultValu
|
|
|
10067
11226
|
]);
|
|
10068
11227
|
return /*#__PURE__*/ jsxs("div", {
|
|
10069
11228
|
className: slider_module.root,
|
|
11229
|
+
style: layoutStyle,
|
|
10070
11230
|
children: [
|
|
10071
11231
|
label ? /*#__PURE__*/ jsx("label", {
|
|
10072
|
-
className:
|
|
11232
|
+
className: field_module.label,
|
|
10073
11233
|
htmlFor: id,
|
|
10074
11234
|
children: label
|
|
10075
11235
|
}) : null,
|
|
@@ -10121,6 +11281,11 @@ table_module_options.domAPI = styleDomAPI_default();
|
|
|
10121
11281
|
table_module_options.insertStyleElement = insertStyleElement_default();
|
|
10122
11282
|
injectStylesIntoStyleTag_default()(table_module_0.A, table_module_options);
|
|
10123
11283
|
const table_module = table_module_0.A && table_module_0.A.locals ? table_module_0.A.locals : void 0;
|
|
11284
|
+
const alignClass = {
|
|
11285
|
+
start: void 0,
|
|
11286
|
+
center: table_module.alignCenter,
|
|
11287
|
+
end: table_module.alignEnd
|
|
11288
|
+
};
|
|
10124
11289
|
const TableContext = /*#__PURE__*/ createContext(null);
|
|
10125
11290
|
function useTableContext() {
|
|
10126
11291
|
const ctx = useContext(TableContext);
|
|
@@ -10274,13 +11439,16 @@ function TableHeader({ children }) {
|
|
|
10274
11439
|
})
|
|
10275
11440
|
});
|
|
10276
11441
|
}
|
|
10277
|
-
function TableColumn({ id, isSortable, children }) {
|
|
11442
|
+
function TableColumn({ id, isSortable, align = "start", children }) {
|
|
10278
11443
|
const { sortColumn, sortDirection, toggleSort } = useTableContext();
|
|
10279
11444
|
const isCurrentSort = Boolean(isSortable && void 0 !== id && sortColumn === id);
|
|
10280
11445
|
const ariaSort = isSortable ? isCurrentSort && null != sortDirection ? sortDirection : "none" : void 0;
|
|
10281
11446
|
return /*#__PURE__*/ jsx("th", {
|
|
10282
11447
|
scope: "col",
|
|
10283
|
-
className:
|
|
11448
|
+
className: [
|
|
11449
|
+
table_module.th,
|
|
11450
|
+
alignClass[align]
|
|
11451
|
+
].filter(Boolean).join(" "),
|
|
10284
11452
|
"aria-sort": ariaSort,
|
|
10285
11453
|
children: isSortable && void 0 !== id ? /*#__PURE__*/ jsxs("button", {
|
|
10286
11454
|
className: table_module.sortButton,
|
|
@@ -10317,10 +11485,13 @@ function TableRow({ id, children }) {
|
|
|
10317
11485
|
children: children
|
|
10318
11486
|
});
|
|
10319
11487
|
}
|
|
10320
|
-
function TableCell({ children }) {
|
|
11488
|
+
function TableCell({ align = "start", children }) {
|
|
10321
11489
|
const { isGrid } = useTableContext();
|
|
10322
11490
|
return /*#__PURE__*/ jsx("td", {
|
|
10323
|
-
className:
|
|
11491
|
+
className: [
|
|
11492
|
+
table_module.td,
|
|
11493
|
+
alignClass[align]
|
|
11494
|
+
].filter(Boolean).join(" "),
|
|
10324
11495
|
role: isGrid ? "gridcell" : void 0,
|
|
10325
11496
|
tabIndex: isGrid ? -1 : void 0,
|
|
10326
11497
|
children: children
|
|
@@ -10341,7 +11512,9 @@ function useTagGroupContext() {
|
|
|
10341
11512
|
if (!ctx) throw new Error("<Tag> must be used inside <TagGroup>");
|
|
10342
11513
|
return ctx;
|
|
10343
11514
|
}
|
|
10344
|
-
function TagGroup(
|
|
11515
|
+
function TagGroup(allProps) {
|
|
11516
|
+
const [layout, { label, description, isInvalid, isDisabled = false, errorMessage, selectionMode = "multiple", selectedKeys: selectedKeysProp, defaultSelectedKeys, onSelectionChange, onRemove, ariaLabel, children }] = splitLayoutItemProps(allProps);
|
|
11517
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
10345
11518
|
const uid = useId();
|
|
10346
11519
|
const labelId = label ? `${uid}-label` : void 0;
|
|
10347
11520
|
const descriptionId = description ? `${uid}-description` : void 0;
|
|
@@ -10486,9 +11659,10 @@ function TagGroup({ label, description, isInvalid, isDisabled = false, errorMess
|
|
|
10486
11659
|
value: ctx,
|
|
10487
11660
|
children: /*#__PURE__*/ jsxs("div", {
|
|
10488
11661
|
className: tag_group_module.root,
|
|
11662
|
+
style: layoutStyle,
|
|
10489
11663
|
children: [
|
|
10490
11664
|
label ? /*#__PURE__*/ jsx("span", {
|
|
10491
|
-
className:
|
|
11665
|
+
className: field_module.label,
|
|
10492
11666
|
id: labelId,
|
|
10493
11667
|
children: label
|
|
10494
11668
|
}) : null,
|
|
@@ -10582,7 +11756,9 @@ function tag_group_Tag({ id, isDisabled: isDisabledProp, children }) {
|
|
|
10582
11756
|
children: children
|
|
10583
11757
|
});
|
|
10584
11758
|
}
|
|
10585
|
-
const text_field_TextField = /*#__PURE__*/ forwardRef(function({ ariaLabel, description, errorMessage, icon: Icon, id: idProp, isClearable = false, isDisabled, isInvalid, isReadOnly, label, onBlur, onClear, onChange, onFocus, onKeyDown, onPointerDown, variant = "default", ...
|
|
11759
|
+
const text_field_TextField = /*#__PURE__*/ forwardRef(function({ ariaLabel, description, errorMessage, icon: Icon, id: idProp, isClearable = false, isDisabled, isInvalid, isReadOnly, label, onBlur, onClear, onChange, onFocus, onKeyDown, onPointerDown, variant = "default", ...restProps }, ref) {
|
|
11760
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
11761
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
10586
11762
|
const generatedId = useId();
|
|
10587
11763
|
const id = idProp ?? generatedId;
|
|
10588
11764
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -10613,9 +11789,10 @@ const text_field_TextField = /*#__PURE__*/ forwardRef(function({ ariaLabel, desc
|
|
|
10613
11789
|
]);
|
|
10614
11790
|
return /*#__PURE__*/ jsxs("div", {
|
|
10615
11791
|
className: text_field_module.root,
|
|
11792
|
+
style: layoutStyle,
|
|
10616
11793
|
children: [
|
|
10617
11794
|
label ? /*#__PURE__*/ jsx("label", {
|
|
10618
|
-
className:
|
|
11795
|
+
className: field_module.label,
|
|
10619
11796
|
htmlFor: id,
|
|
10620
11797
|
children: label
|
|
10621
11798
|
}) : null,
|
|
@@ -10701,12 +11878,54 @@ const text_field_TextField = /*#__PURE__*/ forwardRef(function({ ariaLabel, desc
|
|
|
10701
11878
|
]
|
|
10702
11879
|
});
|
|
10703
11880
|
});
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
11881
|
+
const responsiveKeys = [
|
|
11882
|
+
"base",
|
|
11883
|
+
"sm",
|
|
11884
|
+
"md",
|
|
11885
|
+
"lg",
|
|
11886
|
+
"xl"
|
|
11887
|
+
];
|
|
11888
|
+
function isResponsiveObject(value) {
|
|
11889
|
+
return "object" == typeof value && null !== value && !Array.isArray(value) && Object.keys(value).every((key)=>responsiveKeys.some((k)=>k === key));
|
|
11890
|
+
}
|
|
11891
|
+
function byBreakpoint(value) {
|
|
11892
|
+
if (isResponsiveObject(value)) return value;
|
|
11893
|
+
return {
|
|
11894
|
+
base: value
|
|
11895
|
+
};
|
|
11896
|
+
}
|
|
11897
|
+
function responsiveVars(name, value, resolve) {
|
|
11898
|
+
const vars = {};
|
|
11899
|
+
const byKey = void 0 === value ? void 0 : byBreakpoint(value);
|
|
11900
|
+
for (const key of responsiveKeys){
|
|
11901
|
+
const v = byKey?.[key];
|
|
11902
|
+
vars[`--${name}-${key}`] = void 0 === v ? "initial" : resolve(v);
|
|
11903
|
+
}
|
|
11904
|
+
return vars;
|
|
10708
11905
|
}
|
|
10709
|
-
const
|
|
11906
|
+
const grid_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/layout/grid.module.css");
|
|
11907
|
+
var grid_module_options = {};
|
|
11908
|
+
grid_module_options.styleTagTransform = styleTagTransform_default();
|
|
11909
|
+
grid_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
11910
|
+
grid_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
11911
|
+
grid_module_options.domAPI = styleDomAPI_default();
|
|
11912
|
+
grid_module_options.insertStyleElement = insertStyleElement_default();
|
|
11913
|
+
injectStylesIntoStyleTag_default()(grid_module_0.A, grid_module_options);
|
|
11914
|
+
const grid_module = grid_module_0.A && grid_module_0.A.locals ? grid_module_0.A.locals : void 0;
|
|
11915
|
+
function resolveTracks(value) {
|
|
11916
|
+
if ("number" == typeof value) return `repeat(${value}, minmax(0, 1fr))`;
|
|
11917
|
+
if ("string" == typeof value) return value;
|
|
11918
|
+
return value.join(" ");
|
|
11919
|
+
}
|
|
11920
|
+
function resolveAreas(value) {
|
|
11921
|
+
return value.map((row)=>`"${row.join(" ")}"`).join(" ");
|
|
11922
|
+
}
|
|
11923
|
+
function grid_resolveSize(value) {
|
|
11924
|
+
return "number" == typeof value ? `${value}px` : value;
|
|
11925
|
+
}
|
|
11926
|
+
const grid_Grid = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
11927
|
+
const [layout, { children, columns, minColumnWidth, rows, areas, alignItems, as: Tag = "div", gap = "md", padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft }] = splitLayoutItemProps(props);
|
|
11928
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
10710
11929
|
const { style: spacingStyle } = useSpacing({
|
|
10711
11930
|
gap,
|
|
10712
11931
|
padding,
|
|
@@ -10717,21 +11936,40 @@ const grid_Grid = /*#__PURE__*/ forwardRef(function({ children, columns = "repea
|
|
|
10717
11936
|
paddingBottom,
|
|
10718
11937
|
paddingLeft
|
|
10719
11938
|
});
|
|
10720
|
-
const
|
|
10721
|
-
|
|
10722
|
-
|
|
11939
|
+
const style = {
|
|
11940
|
+
...responsiveVars("ox0-grid-columns", columns, resolveTracks),
|
|
11941
|
+
...responsiveVars("ox0-grid-rows", rows, resolveTracks),
|
|
11942
|
+
...responsiveVars("ox0-grid-areas", areas, resolveAreas),
|
|
11943
|
+
"--ox0-grid-min-column": void 0 === minColumnWidth ? "initial" : grid_resolveSize(minColumnWidth),
|
|
11944
|
+
alignItems,
|
|
11945
|
+
...layoutStyle,
|
|
11946
|
+
...spacingStyle
|
|
11947
|
+
};
|
|
10723
11948
|
return /*#__PURE__*/ jsx(Tag, {
|
|
10724
11949
|
ref: ref,
|
|
10725
|
-
|
|
10726
|
-
|
|
10727
|
-
gridTemplateColumns,
|
|
10728
|
-
gridTemplateRows,
|
|
10729
|
-
gridTemplateAreas,
|
|
10730
|
-
...spacingStyle
|
|
10731
|
-
},
|
|
11950
|
+
className: grid_module.grid,
|
|
11951
|
+
style: style,
|
|
10732
11952
|
children: children
|
|
10733
11953
|
});
|
|
10734
11954
|
});
|
|
11955
|
+
function minWidthQuery(breakpoint) {
|
|
11956
|
+
return `(min-width: ${breakpoints[breakpoint] / 16}rem)`;
|
|
11957
|
+
}
|
|
11958
|
+
function useBreakpointUp(breakpoint) {
|
|
11959
|
+
return useMediaQuery(minWidthQuery(breakpoint));
|
|
11960
|
+
}
|
|
11961
|
+
function useResponsiveValue(value) {
|
|
11962
|
+
const sm = useBreakpointUp("sm");
|
|
11963
|
+
const md = useBreakpointUp("md");
|
|
11964
|
+
const lg = useBreakpointUp("lg");
|
|
11965
|
+
const xl = useBreakpointUp("xl");
|
|
11966
|
+
const byKey = byBreakpoint(value);
|
|
11967
|
+
if (xl && void 0 !== byKey.xl) return byKey.xl;
|
|
11968
|
+
if (lg && void 0 !== byKey.lg) return byKey.lg;
|
|
11969
|
+
if (md && void 0 !== byKey.md) return byKey.md;
|
|
11970
|
+
if (sm && void 0 !== byKey.sm) return byKey.sm;
|
|
11971
|
+
return byKey.base;
|
|
11972
|
+
}
|
|
10735
11973
|
const split_alignMap = {
|
|
10736
11974
|
start: "flex-start",
|
|
10737
11975
|
center: "center",
|
|
@@ -10739,7 +11977,9 @@ const split_alignMap = {
|
|
|
10739
11977
|
stretch: "stretch",
|
|
10740
11978
|
baseline: "baseline"
|
|
10741
11979
|
};
|
|
10742
|
-
const split_Split = /*#__PURE__*/ forwardRef(function(
|
|
11980
|
+
const split_Split = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
11981
|
+
const [layout, { children, align = "center", as: Tag = "div", gap = "md", padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft }] = splitLayoutItemProps(props);
|
|
11982
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
10743
11983
|
const { style: spacingStyle } = useSpacing({
|
|
10744
11984
|
gap,
|
|
10745
11985
|
padding,
|
|
@@ -10756,6 +11996,7 @@ const split_Split = /*#__PURE__*/ forwardRef(function({ children, align = "cente
|
|
|
10756
11996
|
alignItems: split_alignMap[align],
|
|
10757
11997
|
display: "flex",
|
|
10758
11998
|
justifyContent: "space-between",
|
|
11999
|
+
...layoutStyle,
|
|
10759
12000
|
...spacingStyle
|
|
10760
12001
|
},
|
|
10761
12002
|
children: children
|
|
@@ -10767,10 +12008,9 @@ const stack_alignMap = {
|
|
|
10767
12008
|
end: "flex-end",
|
|
10768
12009
|
stretch: "stretch"
|
|
10769
12010
|
};
|
|
10770
|
-
const stack_Stack = /*#__PURE__*/ forwardRef(function(
|
|
10771
|
-
const {
|
|
10772
|
-
|
|
10773
|
-
});
|
|
12011
|
+
const stack_Stack = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
12012
|
+
const [layout, { children, align = "stretch", as: Tag = "div", gap = "md", padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, borderRadius, shadow, border, borderTop, borderRight, borderBottom, borderLeft, surface }] = splitLayoutItemProps(props);
|
|
12013
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
10774
12014
|
const { style: spacingStyle } = useSpacing({
|
|
10775
12015
|
gap,
|
|
10776
12016
|
padding,
|
|
@@ -10799,7 +12039,7 @@ const stack_Stack = /*#__PURE__*/ forwardRef(function({ children, align = "stret
|
|
|
10799
12039
|
alignItems: stack_alignMap[align],
|
|
10800
12040
|
display: "flex",
|
|
10801
12041
|
flexDirection: "column",
|
|
10802
|
-
...
|
|
12042
|
+
...layoutStyle,
|
|
10803
12043
|
...spacingStyle,
|
|
10804
12044
|
...bordersStyle,
|
|
10805
12045
|
...surfaceStyle
|
|
@@ -10807,6 +12047,15 @@ const stack_Stack = /*#__PURE__*/ forwardRef(function({ children, align = "stret
|
|
|
10807
12047
|
children: children
|
|
10808
12048
|
});
|
|
10809
12049
|
});
|
|
12050
|
+
const ox0_provider_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/providers/ox0-provider.module.css");
|
|
12051
|
+
var ox0_provider_module_options = {};
|
|
12052
|
+
ox0_provider_module_options.styleTagTransform = styleTagTransform_default();
|
|
12053
|
+
ox0_provider_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
12054
|
+
ox0_provider_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
12055
|
+
ox0_provider_module_options.domAPI = styleDomAPI_default();
|
|
12056
|
+
ox0_provider_module_options.insertStyleElement = insertStyleElement_default();
|
|
12057
|
+
injectStylesIntoStyleTag_default()(ox0_provider_module_0.A, ox0_provider_module_options);
|
|
12058
|
+
const ox0_provider_module = ox0_provider_module_0.A && ox0_provider_module_0.A.locals ? ox0_provider_module_0.A.locals : void 0;
|
|
10810
12059
|
function Ox0Provider({ children, colorScheme, density, locale, messages, navigate, neutralTheme, textStyles, tokenOverrides }) {
|
|
10811
12060
|
const themeVars = tokenOverrides ? createTheme(tokenOverrides) : void 0;
|
|
10812
12061
|
const textStyleVars = textStyles ? createTextStyles(textStyles) : void 0;
|
|
@@ -10819,21 +12068,23 @@ function Ox0Provider({ children, colorScheme, density, locale, messages, navigat
|
|
|
10819
12068
|
locale: locale,
|
|
10820
12069
|
messages: messages,
|
|
10821
12070
|
children: /*#__PURE__*/ jsx(ToastProvider, {
|
|
10822
|
-
children: /*#__PURE__*/ jsx(
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
"
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
|
|
12071
|
+
children: /*#__PURE__*/ jsx(ConfirmProvider, {
|
|
12072
|
+
children: /*#__PURE__*/ jsx(RouterContext.Provider, {
|
|
12073
|
+
value: routerValue,
|
|
12074
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
12075
|
+
className: ox0_provider_module.root,
|
|
12076
|
+
"data-theme": neutralTheme,
|
|
12077
|
+
"data-color-scheme": dataColorScheme,
|
|
12078
|
+
"data-density": dataDensity,
|
|
12079
|
+
style: {
|
|
12080
|
+
...themeVars,
|
|
12081
|
+
...textStyleVars
|
|
12082
|
+
},
|
|
12083
|
+
children: children
|
|
12084
|
+
})
|
|
10834
12085
|
})
|
|
10835
12086
|
})
|
|
10836
12087
|
})
|
|
10837
12088
|
});
|
|
10838
12089
|
}
|
|
10839
|
-
export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, BreadcrumbItem, Breadcrumbs, Dialog, Drawer, ListBox, ListBoxFilter, ListItem, ListItemDivider, ListItemGroup, ListItemStatic, MarkProvider, Markable, Menu, MenuItem, MenuSection, MenuSeparator, MenuSubTrigger, Ox0Provider, Popover, PopoverContent, PopoverTrigger, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, TagGroup, ToastProvider, Tooltip, TooltipContent, TooltipTrigger, badge_Badge as Badge, banner_Banner as Banner, box_Box as Box, button_Button as Button, button_group_ButtonGroup as ButtonGroup, caption_Caption as Caption, card_Card as Card, checkbox_Checkbox as Checkbox, checkbox_group_CheckboxGroup as CheckboxGroup, checkbox_group_GroupCheckbox as GroupCheckbox, code_Code as Code, code_block_CodeBlock as CodeBlock, combobox_Combobox as Combobox, createTextStyles, defaultUiMessages, disclosure_triangle_DisclosureTriangle as DisclosureTriangle, divider_Divider as Divider, field_group_FieldGroup as FieldGroup, grid_Grid as Grid, heading_Heading as Heading, icon_button_IconButton as IconButton, icon_label_IconLabel as IconLabel, icon_toggle_IconToggle as IconToggle, inline_Inline as Inline, keyboard_Keyboard as Keyboard, label_Label as Label, link_Link as Link, number_field_NumberField as NumberField, numeric_Numeric as Numeric, radio_group_Radio as Radio, radio_group_RadioGroup as RadioGroup, search_field_SearchField as SearchField, select_Select as Select, skeleton_Skeleton as Skeleton, slider_Slider as Slider, spinner_Spinner as Spinner, split_Split as Split, stack_Stack as Stack, surface_Surface as Surface, switch_Switch as Switch, tag_group_Tag as Tag, text_Text as Text, text_area_TextArea as TextArea, text_field_TextField as TextField, useBorders, useFlexItem, useGridItem, useListItemState, useMark, usePlacement, useSizing, useSpacing, useSurface, useToast };
|
|
12090
|
+
export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AppShell, BreadcrumbItem, Breadcrumbs, ConfirmDialog, ConfirmPopover, ConfirmProvider, Dialog, Drawer, ListBox, ListBoxFilter, ListItem, ListItemDivider, ListItemGroup, ListItemStatic, MarkProvider, Markable, Menu, MenuItem, MenuSection, MenuSeparator, MenuSubTrigger, Nav, NavItem, Ox0Provider, Popover, PopoverContent, PopoverTrigger, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, TagGroup, ToastProvider, Tooltip, TooltipContent, TooltipTrigger, badge_Badge as Badge, banner_Banner as Banner, box_Box as Box, button_Button as Button, button_group_ButtonGroup as ButtonGroup, caption_Caption as Caption, card_Card as Card, checkbox_Checkbox as Checkbox, checkbox_group_CheckboxGroup as CheckboxGroup, checkbox_group_GroupCheckbox as GroupCheckbox, code_Code as Code, code_block_CodeBlock as CodeBlock, combobox_Combobox as Combobox, createTextStyles, defaultUiMessages, disclosure_triangle_DisclosureTriangle as DisclosureTriangle, divider_Divider as Divider, drop_zone_DropZone as DropZone, field_group_FieldGroup as FieldGroup, file_trigger_FileTrigger as FileTrigger, grid_Grid as Grid, heading_Heading as Heading, icon_button_IconButton as IconButton, icon_label_IconLabel as IconLabel, icon_toggle_IconToggle as IconToggle, inline_Inline as Inline, keyboard_Keyboard as Keyboard, label_Label as Label, link_Link as Link, matchesAccept, number_field_NumberField as NumberField, numeric_Numeric as Numeric, page_Page as Page, page_PageHeader as PageHeader, radio_group_Radio as Radio, radio_group_RadioGroup as RadioGroup, search_field_SearchField as SearchField, select_Select as Select, skeleton_Skeleton as Skeleton, slider_Slider as Slider, spinner_Spinner as Spinner, splitLayoutItemProps, split_Split as Split, stack_Stack as Stack, surface_Surface as Surface, switch_Switch as Switch, tag_group_Tag as Tag, text_Text as Text, text_area_TextArea as TextArea, text_field_TextField as TextField, useBorders, useBreakpointUp, useConfirm, useFlexItem, useGridItem, useLayoutItem, useListItemState, useMark, usePlacement, useResponsiveValue, useSizing, useSpacing, useSurface, useToast };
|