@ox0/ui 3.1.0 → 3.2.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 +2 -1
- package/dist/components/card.d.ts.map +1 -1
- 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 +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2225 -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 +30 -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/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 +2 -2
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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
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";
|
|
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
9
|
import { createTheme } from "@ox0/tokens";
|
|
@@ -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);
|
|
@@ -660,22 +837,25 @@ __webpack_require__.add({
|
|
|
660
837
|
--_face-hover: var(--_face);
|
|
661
838
|
--_fg: var(--ox0-color-foreground);
|
|
662
839
|
--_edge: transparent;
|
|
840
|
+
--_edge-bottom: var(--_edge);
|
|
663
841
|
--_sheen: transparent;
|
|
664
842
|
--_bevel: transparent;
|
|
665
843
|
--_ink-face: 100%;
|
|
666
844
|
--_ink-edge: 100%;
|
|
667
845
|
--_ink-fg: 100%;
|
|
668
|
-
--_cast-
|
|
669
|
-
--_cast-
|
|
846
|
+
--_cast-tint: light-dark(color-mix(in oklab, var(--ox0-ref-shadow) 55%, #604226), var(--ox0-ref-shadow));
|
|
847
|
+
--_cast-1: light-dark(color-mix(in srgb, var(--_cast-tint) 24%, transparent), color-mix(in srgb, var(--_cast-tint) 50%, transparent));
|
|
848
|
+
--_cast-2: light-dark(color-mix(in srgb, var(--_cast-tint) 26%, transparent), color-mix(in srgb, var(--_cast-tint) 60%, transparent));
|
|
670
849
|
--_shade: light-dark(color-mix(in srgb, var(--ox0-ref-shadow) 7%, transparent), color-mix(in srgb, var(--ox0-ref-shadow) 18%, transparent));
|
|
671
850
|
--_shade-strong: light-dark(color-mix(in srgb, var(--ox0-ref-shadow) 22%, transparent), color-mix(in srgb, var(--ox0-ref-shadow) 50%, transparent));
|
|
672
851
|
--_ledge-max: 0px;
|
|
673
852
|
--_ledge: var(--_ledge-max);
|
|
674
853
|
--_ledge-color: transparent;
|
|
675
854
|
--_drop: 0px;
|
|
855
|
+
--_travel: var(--ox0-duration-fast);
|
|
676
856
|
--_shadow-up: inset 0 1px 0 var(--_bevel), 0 var(--_ledge) 0 var(--_ink-ledge),
|
|
677
857
|
0 calc(var(--_ledge) + 1px) 1px var(--_ink-cast-1),
|
|
678
|
-
0 calc(var(--_ledge) + 2px)
|
|
858
|
+
0 calc(var(--_ledge) + 2px) 6px -1px var(--_ink-cast-2);
|
|
679
859
|
--_shadow-down: inset 0 1px 0 var(--_bevel), 0 0 0 var(--_ink-ledge), 0 0 1px var(--_ink-cast-1),
|
|
680
860
|
0 0 0 0 transparent;
|
|
681
861
|
--_shadow-held: inset 0 1px 2px var(--_shade-strong), 0 0 0 var(--_ink-ledge), 0 0 1px var(--_ink-cast-1),
|
|
@@ -720,17 +900,35 @@ __webpack_require__.add({
|
|
|
720
900
|
pointer-events: none;
|
|
721
901
|
transition: background-color var(--ox0-duration-fast) var(--ox0-ease-soft),
|
|
722
902
|
border-color var(--ox0-duration-fast) var(--ox0-ease-soft),
|
|
723
|
-
bottom var(--
|
|
724
|
-
box-shadow var(--
|
|
725
|
-
top var(--
|
|
903
|
+
bottom var(--_travel) var(--ox0-ease-soft),
|
|
904
|
+
box-shadow var(--_travel) var(--ox0-ease-soft),
|
|
905
|
+
top var(--_travel) var(--ox0-ease-soft);
|
|
906
|
+
z-index: -1;
|
|
907
|
+
position: absolute;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.button-gV6kKp:after {
|
|
911
|
+
background: linear-gradient(to bottom,
|
|
912
|
+
transparent calc(100% - var(--_radius)),
|
|
913
|
+
color-mix(in srgb, var(--_edge-bottom) var(--_ink-edge), transparent))
|
|
914
|
+
border-box;
|
|
915
|
+
border-radius: inherit;
|
|
916
|
+
box-sizing: border-box;
|
|
917
|
+
content: "";
|
|
918
|
+
inset: calc(var(--_ledge-max) - var(--_ledge)) 0 var(--_ledge);
|
|
919
|
+
pointer-events: none;
|
|
920
|
+
transition: bottom var(--_travel) var(--ox0-ease-soft),
|
|
921
|
+
top var(--_travel) var(--ox0-ease-soft);
|
|
726
922
|
z-index: -1;
|
|
923
|
+
border: 1px solid #0000;
|
|
727
924
|
position: absolute;
|
|
925
|
+
mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
|
|
728
926
|
}
|
|
729
927
|
|
|
730
928
|
.content-A8tTMi {
|
|
731
929
|
align-items: center;
|
|
732
930
|
gap: var(--_gap);
|
|
733
|
-
transition: translate var(--
|
|
931
|
+
transition: translate var(--_travel) var(--ox0-ease-soft);
|
|
734
932
|
translate: 0 calc(var(--_ledge-max) - var(--_ledge) + var(--_drop));
|
|
735
933
|
will-change: translate;
|
|
736
934
|
display: inline-flex;
|
|
@@ -794,6 +992,10 @@ __webpack_require__.add({
|
|
|
794
992
|
padding-inline: 0;
|
|
795
993
|
}
|
|
796
994
|
|
|
995
|
+
.pressed-egzbhE {
|
|
996
|
+
--_travel: var(--ox0-duration-instant);
|
|
997
|
+
}
|
|
998
|
+
|
|
797
999
|
.primary-VXuTnQ, .secondary-yGEbH1, .danger-S8YoTI, .danger-secondary-SKDzBf {
|
|
798
1000
|
--_ledge-max: 1px;
|
|
799
1001
|
--_shadow: var(--_shadow-up);
|
|
@@ -820,25 +1022,25 @@ __webpack_require__.add({
|
|
|
820
1022
|
}
|
|
821
1023
|
|
|
822
1024
|
.secondary-yGEbH1 {
|
|
823
|
-
--_face: var(--ox0-color-surface-raised);
|
|
824
|
-
--_face-hover: color-mix(in srgb,
|
|
825
|
-
var(--ox0-color-surface-raised) 95%,
|
|
826
|
-
var(--ox0-color-foreground));
|
|
1025
|
+
--_face: light-dark(var(--ox0-color-surface-raised), color-mix(in srgb, var(--ox0-color-surface-raised) 72%, var(--ox0-ref-shadow)));
|
|
1026
|
+
--_face-hover: color-mix(in srgb, var(--_face) 95%, var(--ox0-color-foreground));
|
|
827
1027
|
--_fg: var(--ox0-color-foreground);
|
|
828
1028
|
--_edge: light-dark(color-mix(in srgb, var(--ox0-color-border) 70%, var(--ox0-color-border-strong)), color-mix(in srgb, var(--ox0-ref-shadow) 55%, var(--ox0-color-border)));
|
|
829
|
-
--
|
|
830
|
-
--
|
|
831
|
-
--
|
|
1029
|
+
--_edge-bottom: light-dark(var(--ox0-color-border-strong), color-mix(in srgb, var(--ox0-ref-shadow) 70%, var(--ox0-color-border)));
|
|
1030
|
+
--_ledge-color: light-dark(color-mix(in srgb, var(--ox0-color-border-strong) 88%, var(--_cast-tint)), color-mix(in srgb, var(--ox0-ref-shadow) 80%, var(--ox0-color-border)));
|
|
1031
|
+
--_sheen: light-dark(#ffffff8c, #ffffff05);
|
|
1032
|
+
--_bevel: light-dark(#fffc, #ffffff29);
|
|
832
1033
|
}
|
|
833
1034
|
|
|
834
1035
|
.danger-secondary-SKDzBf {
|
|
835
|
-
--_face: var(--ox0-color-surface-raised);
|
|
1036
|
+
--_face: light-dark(var(--ox0-color-surface-raised), color-mix(in srgb, var(--ox0-color-surface-raised) 72%, var(--ox0-ref-shadow)));
|
|
836
1037
|
--_face-hover: var(--ox0-color-danger-subtle);
|
|
837
1038
|
--_fg: var(--ox0-color-danger);
|
|
838
1039
|
--_edge: color-mix(in srgb, var(--ox0-color-danger) 40%, var(--ox0-color-border));
|
|
839
|
-
--
|
|
840
|
-
--
|
|
841
|
-
--
|
|
1040
|
+
--_edge-bottom: light-dark(color-mix(in srgb, var(--ox0-color-danger) 48%, var(--ox0-color-border)), color-mix(in srgb, var(--ox0-color-danger) 45%, var(--ox0-ref-shadow)));
|
|
1041
|
+
--_ledge-color: light-dark(color-mix(in srgb, var(--ox0-color-danger) 55%, var(--ox0-color-border)), color-mix(in srgb, var(--ox0-color-danger) 35%, var(--ox0-ref-shadow)));
|
|
1042
|
+
--_sheen: light-dark(#ffffff8c, #ffffff05);
|
|
1043
|
+
--_bevel: light-dark(#fffc, #ffffff29);
|
|
842
1044
|
}
|
|
843
1045
|
|
|
844
1046
|
.primary-VXuTnQ:not(:disabled):hover, .secondary-yGEbH1:not(:disabled):hover, .danger-S8YoTI:not(:disabled):hover, .danger-secondary-SKDzBf:not(:disabled):hover {
|
|
@@ -853,12 +1055,13 @@ __webpack_require__.add({
|
|
|
853
1055
|
.ghost-jToGzF, .flat-WzquwN, .circle-Hk06Xp {
|
|
854
1056
|
--_cast-1: transparent;
|
|
855
1057
|
--_cast-2: transparent;
|
|
1058
|
+
--_shadow: var(--_shadow-down);
|
|
856
1059
|
--_fg: color-mix(in srgb, var(--ox0-color-foreground) 82%, transparent);
|
|
857
1060
|
}
|
|
858
1061
|
|
|
859
1062
|
.flat-WzquwN {
|
|
860
1063
|
--_edge: var(--ox0-color-border);
|
|
861
|
-
--_sheen: light-dark(#
|
|
1064
|
+
--_sheen: light-dark(#fff6, #ffffff03);
|
|
862
1065
|
--_bevel: light-dark(#fff9, #ffffff09);
|
|
863
1066
|
--_shadow: var(--_shadow-down);
|
|
864
1067
|
}
|
|
@@ -874,6 +1077,10 @@ __webpack_require__.add({
|
|
|
874
1077
|
--_fg: var(--ox0-color-foreground);
|
|
875
1078
|
}
|
|
876
1079
|
|
|
1080
|
+
.flat-WzquwN:not(:disabled):hover {
|
|
1081
|
+
--_sheen: light-dark(#ffffffbf, #ffffff06);
|
|
1082
|
+
}
|
|
1083
|
+
|
|
877
1084
|
.ghost-jToGzF:not(:disabled).pressed-egzbhE, .flat-WzquwN:not(:disabled).pressed-egzbhE, .circle-Hk06Xp:not(:disabled).pressed-egzbhE {
|
|
878
1085
|
--_drop: 1px;
|
|
879
1086
|
--_face: color-mix(in srgb, var(--ox0-color-foreground) 11%, transparent);
|
|
@@ -961,12 +1168,12 @@ __webpack_require__.add({
|
|
|
961
1168
|
hasIcon: "hasIcon-AtG6pQ",
|
|
962
1169
|
hasIconEnd: "hasIconEnd-PZ2yhA",
|
|
963
1170
|
iconOnly: "iconOnly-OzYHgJ",
|
|
1171
|
+
pressed: "pressed-egzbhE",
|
|
964
1172
|
primary: "primary-VXuTnQ",
|
|
965
1173
|
secondary: "secondary-yGEbH1",
|
|
966
1174
|
danger: "danger-S8YoTI",
|
|
967
1175
|
"danger-secondary": "danger-secondary-SKDzBf",
|
|
968
1176
|
dangerSecondary: "danger-secondary-SKDzBf",
|
|
969
|
-
pressed: "pressed-egzbhE",
|
|
970
1177
|
ghost: "ghost-jToGzF",
|
|
971
1178
|
flat: "flat-WzquwN",
|
|
972
1179
|
circle: "circle-Hk06Xp",
|
|
@@ -1028,6 +1235,7 @@ __webpack_require__.add({
|
|
|
1028
1235
|
___CSS_LOADER_EXPORT___.push([
|
|
1029
1236
|
module.id,
|
|
1030
1237
|
`.fieldset-ppnMnv {
|
|
1238
|
+
color: var(--ox0-color-foreground);
|
|
1031
1239
|
gap: var(--ox0-space-xs);
|
|
1032
1240
|
min-width: 0;
|
|
1033
1241
|
font-size: var(--ox0-font-size-md);
|
|
@@ -1040,7 +1248,6 @@ __webpack_require__.add({
|
|
|
1040
1248
|
.legend-q3mvtg {
|
|
1041
1249
|
float: left;
|
|
1042
1250
|
width: 100%;
|
|
1043
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
1044
1251
|
margin-bottom: var(--ox0-space-2xs);
|
|
1045
1252
|
padding: 0;
|
|
1046
1253
|
}
|
|
@@ -1129,6 +1336,7 @@ __webpack_require__.add({
|
|
|
1129
1336
|
}
|
|
1130
1337
|
|
|
1131
1338
|
.label-NpcnDS {
|
|
1339
|
+
color: var(--ox0-color-foreground);
|
|
1132
1340
|
cursor: pointer;
|
|
1133
1341
|
align-items: flex-start;
|
|
1134
1342
|
gap: .5rem;
|
|
@@ -1310,12 +1518,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
1310
1518
|
display: grid;
|
|
1311
1519
|
}
|
|
1312
1520
|
|
|
1313
|
-
.label-UcLArk {
|
|
1314
|
-
color: var(--ox0-color-muted);
|
|
1315
|
-
font-size: var(--ox0-font-size-sm);
|
|
1316
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
1521
|
.inputWrap-v2pqb1 {
|
|
1320
1522
|
display: grid;
|
|
1321
1523
|
position: relative;
|
|
@@ -1428,7 +1630,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
1428
1630
|
]);
|
|
1429
1631
|
___CSS_LOADER_EXPORT___.locals = {
|
|
1430
1632
|
root: "root-WkZ_BN",
|
|
1431
|
-
label: "label-UcLArk",
|
|
1432
1633
|
inputWrap: "inputWrap-v2pqb1",
|
|
1433
1634
|
input: "input-n3GGKy",
|
|
1434
1635
|
focusVisible: "focusVisible-adjirQ",
|
|
@@ -1448,6 +1649,53 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
1448
1649
|
A: __rspack_default_export
|
|
1449
1650
|
});
|
|
1450
1651
|
},
|
|
1652
|
+
"../../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__) {
|
|
1653
|
+
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");
|
|
1654
|
+
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);
|
|
1655
|
+
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");
|
|
1656
|
+
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);
|
|
1657
|
+
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());
|
|
1658
|
+
___CSS_LOADER_EXPORT___.push([
|
|
1659
|
+
module.id,
|
|
1660
|
+
`.popover-r6JCmT {
|
|
1661
|
+
gap: var(--ox0-space-sm);
|
|
1662
|
+
max-inline-size: min(20rem, calc(100vw - 2 * var(--ox0-space-sm)));
|
|
1663
|
+
display: grid;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
.title-LdDtKM {
|
|
1667
|
+
color: var(--ox0-color-foreground);
|
|
1668
|
+
font-size: var(--ox0-font-size-md);
|
|
1669
|
+
font-weight: var(--ox0-font-weight-semibold);
|
|
1670
|
+
line-height: var(--ox0-line-height-snug);
|
|
1671
|
+
margin: 0;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
.description-LzMR2m {
|
|
1675
|
+
color: var(--ox0-color-muted);
|
|
1676
|
+
font-size: var(--ox0-font-size-sm);
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
.actions-GuPli0 {
|
|
1680
|
+
gap: var(--ox0-space-sm);
|
|
1681
|
+
justify-content: flex-end;
|
|
1682
|
+
margin-block-start: var(--ox0-space-xs);
|
|
1683
|
+
display: flex;
|
|
1684
|
+
}
|
|
1685
|
+
`,
|
|
1686
|
+
""
|
|
1687
|
+
]);
|
|
1688
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
1689
|
+
popover: "popover-r6JCmT",
|
|
1690
|
+
title: "title-LdDtKM",
|
|
1691
|
+
description: "description-LzMR2m",
|
|
1692
|
+
actions: "actions-GuPli0"
|
|
1693
|
+
};
|
|
1694
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
1695
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
1696
|
+
A: __rspack_default_export
|
|
1697
|
+
});
|
|
1698
|
+
},
|
|
1451
1699
|
"../../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__) {
|
|
1452
1700
|
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");
|
|
1453
1701
|
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);
|
|
@@ -1996,6 +2244,77 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
1996
2244
|
A: __rspack_default_export
|
|
1997
2245
|
});
|
|
1998
2246
|
},
|
|
2247
|
+
"../../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__) {
|
|
2248
|
+
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");
|
|
2249
|
+
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);
|
|
2250
|
+
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");
|
|
2251
|
+
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);
|
|
2252
|
+
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());
|
|
2253
|
+
___CSS_LOADER_EXPORT___.push([
|
|
2254
|
+
module.id,
|
|
2255
|
+
`.root-HAlTlg {
|
|
2256
|
+
gap: var(--ox0-space-xs);
|
|
2257
|
+
display: grid;
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
.zone-jE0ABH {
|
|
2261
|
+
background: var(--ox0-color-surface);
|
|
2262
|
+
border: 1.5px dashed var(--ox0-color-border-strong);
|
|
2263
|
+
border-radius: var(--ox0-radius-lg);
|
|
2264
|
+
color: var(--ox0-color-foreground);
|
|
2265
|
+
align-items: center;
|
|
2266
|
+
gap: var(--ox0-space-sm);
|
|
2267
|
+
padding: var(--ox0-space-xl) var(--ox0-space-lg);
|
|
2268
|
+
text-align: center;
|
|
2269
|
+
flex-direction: column;
|
|
2270
|
+
justify-content: center;
|
|
2271
|
+
display: flex;
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
.zone-jE0ABH[data-drop-target] {
|
|
2275
|
+
background: var(--ox0-color-accent-subtle);
|
|
2276
|
+
border-color: var(--ox0-color-accent);
|
|
2277
|
+
border-style: solid;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
.zone-jE0ABH[data-invalid] {
|
|
2281
|
+
border-color: var(--ox0-color-danger);
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
.zone-jE0ABH[data-disabled] {
|
|
2285
|
+
opacity: .5;
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
.hint-LFK4TH {
|
|
2289
|
+
color: var(--ox0-color-muted);
|
|
2290
|
+
font-size: var(--ox0-font-size-sm);
|
|
2291
|
+
margin: 0;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
.description-SgOExI {
|
|
2295
|
+
color: var(--ox0-color-muted);
|
|
2296
|
+
font-size: var(--ox0-font-size-sm);
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
.error-MBDZz6 {
|
|
2300
|
+
color: var(--ox0-color-danger-text);
|
|
2301
|
+
font-size: var(--ox0-font-size-sm);
|
|
2302
|
+
}
|
|
2303
|
+
`,
|
|
2304
|
+
""
|
|
2305
|
+
]);
|
|
2306
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
2307
|
+
root: "root-HAlTlg",
|
|
2308
|
+
zone: "zone-jE0ABH",
|
|
2309
|
+
hint: "hint-LFK4TH",
|
|
2310
|
+
description: "description-SgOExI",
|
|
2311
|
+
error: "error-MBDZz6"
|
|
2312
|
+
};
|
|
2313
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
2314
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
2315
|
+
A: __rspack_default_export
|
|
2316
|
+
});
|
|
2317
|
+
},
|
|
1999
2318
|
"../../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__) {
|
|
2000
2319
|
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");
|
|
2001
2320
|
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);
|
|
@@ -2005,6 +2324,7 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2005
2324
|
___CSS_LOADER_EXPORT___.push([
|
|
2006
2325
|
module.id,
|
|
2007
2326
|
`.fieldset-MruCMe {
|
|
2327
|
+
color: var(--ox0-color-foreground);
|
|
2008
2328
|
gap: var(--ox0-space-xs);
|
|
2009
2329
|
min-width: 0;
|
|
2010
2330
|
font-size: var(--ox0-font-size-md);
|
|
@@ -2017,7 +2337,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2017
2337
|
.legend-ALGR7i {
|
|
2018
2338
|
float: left;
|
|
2019
2339
|
width: 100%;
|
|
2020
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
2021
2340
|
margin-bottom: var(--ox0-space-2xs);
|
|
2022
2341
|
padding: 0;
|
|
2023
2342
|
}
|
|
@@ -2066,7 +2385,7 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2066
2385
|
A: __rspack_default_export
|
|
2067
2386
|
});
|
|
2068
2387
|
},
|
|
2069
|
-
"../../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/
|
|
2388
|
+
"../../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__) {
|
|
2070
2389
|
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");
|
|
2071
2390
|
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);
|
|
2072
2391
|
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");
|
|
@@ -2074,18 +2393,70 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2074
2393
|
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());
|
|
2075
2394
|
___CSS_LOADER_EXPORT___.push([
|
|
2076
2395
|
module.id,
|
|
2077
|
-
`.
|
|
2396
|
+
`.label-YreTfV {
|
|
2078
2397
|
color: var(--ox0-color-foreground);
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
display: inline-flex;
|
|
2398
|
+
font-size: var(--ox0-font-size-sm);
|
|
2399
|
+
font-weight: var(--ox0-font-weight-medium);
|
|
2400
|
+
line-height: var(--ox0-line-height-snug);
|
|
2083
2401
|
}
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2402
|
+
`,
|
|
2403
|
+
""
|
|
2404
|
+
]);
|
|
2405
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
2406
|
+
label: "label-YreTfV"
|
|
2407
|
+
};
|
|
2408
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
2409
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
2410
|
+
A: __rspack_default_export
|
|
2411
|
+
});
|
|
2412
|
+
},
|
|
2413
|
+
"../../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__) {
|
|
2414
|
+
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");
|
|
2415
|
+
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);
|
|
2416
|
+
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");
|
|
2417
|
+
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);
|
|
2418
|
+
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());
|
|
2419
|
+
___CSS_LOADER_EXPORT___.push([
|
|
2420
|
+
module.id,
|
|
2421
|
+
`.input-KbwbR8 {
|
|
2422
|
+
clip-path: inset(50%);
|
|
2423
|
+
white-space: nowrap;
|
|
2424
|
+
block-size: 1px;
|
|
2425
|
+
inline-size: 1px;
|
|
2426
|
+
position: absolute;
|
|
2427
|
+
overflow: hidden;
|
|
2428
|
+
}
|
|
2429
|
+
`,
|
|
2430
|
+
""
|
|
2431
|
+
]);
|
|
2432
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
2433
|
+
input: "input-KbwbR8"
|
|
2434
|
+
};
|
|
2435
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
2436
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
2437
|
+
A: __rspack_default_export
|
|
2438
|
+
});
|
|
2439
|
+
},
|
|
2440
|
+
"../../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__) {
|
|
2441
|
+
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");
|
|
2442
|
+
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);
|
|
2443
|
+
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");
|
|
2444
|
+
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);
|
|
2445
|
+
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());
|
|
2446
|
+
___CSS_LOADER_EXPORT___.push([
|
|
2447
|
+
module.id,
|
|
2448
|
+
`.heading-gDgjx2 {
|
|
2449
|
+
color: var(--ox0-color-foreground);
|
|
2450
|
+
align-items: baseline;
|
|
2451
|
+
gap: var(--ox0-space-xs);
|
|
2452
|
+
margin: 0;
|
|
2453
|
+
display: inline-flex;
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
.h1-HyQSOQ {
|
|
2457
|
+
font-size: var(--ox0-font-size-3xl);
|
|
2458
|
+
font-weight: var(--ox0-font-weight-bold);
|
|
2459
|
+
letter-spacing: var(--ox0-tracking-tight);
|
|
2089
2460
|
line-height: var(--ox0-line-height-dense);
|
|
2090
2461
|
}
|
|
2091
2462
|
|
|
@@ -2097,6 +2468,12 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2097
2468
|
}
|
|
2098
2469
|
|
|
2099
2470
|
.h3-Q0U0vZ {
|
|
2471
|
+
font-size: var(--ox0-font-size-lg);
|
|
2472
|
+
font-weight: var(--ox0-font-weight-semibold);
|
|
2473
|
+
line-height: var(--ox0-line-height-snug);
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
.eyebrow-Bds3ov {
|
|
2100
2477
|
color: var(--ox0-color-muted);
|
|
2101
2478
|
font-size: var(--ox0-font-size-sm);
|
|
2102
2479
|
font-weight: var(--ox0-font-weight-semibold);
|
|
@@ -2124,6 +2501,7 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2124
2501
|
h1: "h1-HyQSOQ",
|
|
2125
2502
|
h2: "h2-LFrWtM",
|
|
2126
2503
|
h3: "h3-Q0U0vZ",
|
|
2504
|
+
eyebrow: "eyebrow-Bds3ov",
|
|
2127
2505
|
anchor: "anchor-OEWzis"
|
|
2128
2506
|
};
|
|
2129
2507
|
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
@@ -2511,10 +2889,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2511
2889
|
display: grid;
|
|
2512
2890
|
}
|
|
2513
2891
|
|
|
2514
|
-
.label-GfyPDB {
|
|
2515
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
2892
|
.control-iBbH3T {
|
|
2519
2893
|
background: var(--ox0-color-surface);
|
|
2520
2894
|
border: 1px solid var(--ox0-color-border);
|
|
@@ -2624,7 +2998,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2624
2998
|
]);
|
|
2625
2999
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2626
3000
|
root: "root-DxBVJW",
|
|
2627
|
-
label: "label-GfyPDB",
|
|
2628
3001
|
control: "control-iBbH3T",
|
|
2629
3002
|
focusVisible: "focusVisible-zo4PYi",
|
|
2630
3003
|
invalid: "invalid-ZWjZxr",
|
|
@@ -2639,6 +3012,88 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2639
3012
|
A: __rspack_default_export
|
|
2640
3013
|
});
|
|
2641
3014
|
},
|
|
3015
|
+
"../../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__) {
|
|
3016
|
+
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");
|
|
3017
|
+
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);
|
|
3018
|
+
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");
|
|
3019
|
+
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);
|
|
3020
|
+
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());
|
|
3021
|
+
___CSS_LOADER_EXPORT___.push([
|
|
3022
|
+
module.id,
|
|
3023
|
+
`.page-_SlYJ7 {
|
|
3024
|
+
box-sizing: border-box;
|
|
3025
|
+
inline-size: 100%;
|
|
3026
|
+
padding-block: var(--ox0-space-xl) var(--ox0-space-3xl);
|
|
3027
|
+
padding-inline: var(--ox0-space-lg);
|
|
3028
|
+
flex-direction: column;
|
|
3029
|
+
margin-inline: auto;
|
|
3030
|
+
display: flex;
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
@media (width >= 48rem) {
|
|
3034
|
+
.page-_SlYJ7 {
|
|
3035
|
+
padding-block: var(--ox0-space-2xl) var(--ox0-space-4xl);
|
|
3036
|
+
padding-inline: var(--ox0-space-2xl);
|
|
3037
|
+
}
|
|
3038
|
+
}
|
|
3039
|
+
|
|
3040
|
+
@media (width >= 64rem) {
|
|
3041
|
+
.page-_SlYJ7 {
|
|
3042
|
+
padding-inline: var(--ox0-space-3xl);
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
|
|
3046
|
+
.header-vK8pCg {
|
|
3047
|
+
gap: var(--ox0-space-sm);
|
|
3048
|
+
flex-direction: column;
|
|
3049
|
+
display: flex;
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
.titleRow-O_tO2Q {
|
|
3053
|
+
align-items: flex-start;
|
|
3054
|
+
gap: var(--ox0-space-md) var(--ox0-space-lg);
|
|
3055
|
+
flex-wrap: wrap;
|
|
3056
|
+
justify-content: space-between;
|
|
3057
|
+
display: flex;
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
.titleBlock-lTKPdy {
|
|
3061
|
+
gap: var(--ox0-space-xs);
|
|
3062
|
+
flex-direction: column;
|
|
3063
|
+
flex: 20rem;
|
|
3064
|
+
min-inline-size: 0;
|
|
3065
|
+
display: flex;
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
.description-adu2_d {
|
|
3069
|
+
color: var(--ox0-color-muted);
|
|
3070
|
+
font-size: var(--ox0-font-size-md);
|
|
3071
|
+
max-inline-size: var(--ox0-maxw-prose);
|
|
3072
|
+
margin: 0;
|
|
3073
|
+
}
|
|
3074
|
+
|
|
3075
|
+
.actions-gRLYOT {
|
|
3076
|
+
align-items: center;
|
|
3077
|
+
gap: var(--ox0-space-sm);
|
|
3078
|
+
flex-wrap: wrap;
|
|
3079
|
+
display: flex;
|
|
3080
|
+
}
|
|
3081
|
+
`,
|
|
3082
|
+
""
|
|
3083
|
+
]);
|
|
3084
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
3085
|
+
page: "page-_SlYJ7",
|
|
3086
|
+
header: "header-vK8pCg",
|
|
3087
|
+
titleRow: "titleRow-O_tO2Q",
|
|
3088
|
+
titleBlock: "titleBlock-lTKPdy",
|
|
3089
|
+
description: "description-adu2_d",
|
|
3090
|
+
actions: "actions-gRLYOT"
|
|
3091
|
+
};
|
|
3092
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
3093
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
3094
|
+
A: __rspack_default_export
|
|
3095
|
+
});
|
|
3096
|
+
},
|
|
2642
3097
|
"../../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__) {
|
|
2643
3098
|
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");
|
|
2644
3099
|
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);
|
|
@@ -2675,6 +3130,7 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2675
3130
|
___CSS_LOADER_EXPORT___.push([
|
|
2676
3131
|
module.id,
|
|
2677
3132
|
`.fieldset-PcJq3W {
|
|
3133
|
+
color: var(--ox0-color-foreground);
|
|
2678
3134
|
gap: var(--ox0-space-xs);
|
|
2679
3135
|
min-width: 0;
|
|
2680
3136
|
font-size: var(--ox0-font-size-md);
|
|
@@ -2687,7 +3143,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2687
3143
|
.legend-PnQZ5W {
|
|
2688
3144
|
float: left;
|
|
2689
3145
|
width: 100%;
|
|
2690
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
2691
3146
|
margin-bottom: var(--ox0-space-2xs);
|
|
2692
3147
|
padding: 0;
|
|
2693
3148
|
}
|
|
@@ -2776,10 +3231,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2776
3231
|
display: grid;
|
|
2777
3232
|
}
|
|
2778
3233
|
|
|
2779
|
-
.label-apzt7o {
|
|
2780
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
2781
|
-
}
|
|
2782
|
-
|
|
2783
3234
|
.control-dbqWBN {
|
|
2784
3235
|
background: var(--ox0-color-surface);
|
|
2785
3236
|
border: 1px solid var(--ox0-color-border);
|
|
@@ -2878,7 +3329,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2878
3329
|
]);
|
|
2879
3330
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2880
3331
|
root: "root-Bq3cNE",
|
|
2881
|
-
label: "label-apzt7o",
|
|
2882
3332
|
control: "control-dbqWBN",
|
|
2883
3333
|
focusVisible: "focusVisible-BqgPk4",
|
|
2884
3334
|
invalid: "invalid-rUFqjW",
|
|
@@ -2906,12 +3356,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2906
3356
|
display: grid;
|
|
2907
3357
|
}
|
|
2908
3358
|
|
|
2909
|
-
.label-QcwXLk {
|
|
2910
|
-
color: var(--ox0-color-muted);
|
|
2911
|
-
font-size: var(--ox0-font-size-sm);
|
|
2912
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
2913
|
-
}
|
|
2914
|
-
|
|
2915
3359
|
.trigger-fW1Sil {
|
|
2916
3360
|
background: var(--ox0-color-surface);
|
|
2917
3361
|
border: 1px solid var(--ox0-color-border);
|
|
@@ -3123,7 +3567,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3123
3567
|
]);
|
|
3124
3568
|
___CSS_LOADER_EXPORT___.locals = {
|
|
3125
3569
|
root: "root-FHU2Km",
|
|
3126
|
-
label: "label-QcwXLk",
|
|
3127
3570
|
trigger: "trigger-fW1Sil",
|
|
3128
3571
|
focusVisible: "focusVisible-jXb33t",
|
|
3129
3572
|
open: "open-b1Av3y",
|
|
@@ -3241,10 +3684,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3241
3684
|
display: grid;
|
|
3242
3685
|
}
|
|
3243
3686
|
|
|
3244
|
-
.label-OvvORl {
|
|
3245
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
3246
|
-
}
|
|
3247
|
-
|
|
3248
3687
|
.track-ORxtg9 {
|
|
3249
3688
|
-webkit-appearance: none;
|
|
3250
3689
|
appearance: none;
|
|
@@ -3371,7 +3810,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3371
3810
|
]);
|
|
3372
3811
|
___CSS_LOADER_EXPORT___.locals = {
|
|
3373
3812
|
root: "root-TON2np",
|
|
3374
|
-
label: "label-OvvORl",
|
|
3375
3813
|
track: "track-ORxtg9",
|
|
3376
3814
|
invalid: "invalid-zIlN78",
|
|
3377
3815
|
description: "description-coDMjf",
|
|
@@ -3509,6 +3947,7 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3509
3947
|
}
|
|
3510
3948
|
|
|
3511
3949
|
.label-hZdO11 {
|
|
3950
|
+
color: var(--ox0-color-foreground);
|
|
3512
3951
|
cursor: pointer;
|
|
3513
3952
|
align-items: center;
|
|
3514
3953
|
gap: var(--ox0-space-sm);
|
|
@@ -3623,7 +4062,7 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3623
4062
|
|
|
3624
4063
|
.th-_gOdfi {
|
|
3625
4064
|
padding: var(--ox0-space-sm) var(--ox0-space-md);
|
|
3626
|
-
text-align:
|
|
4065
|
+
text-align: start;
|
|
3627
4066
|
font-size: var(--ox0-font-size-sm);
|
|
3628
4067
|
font-weight: var(--ox0-font-weight-medium);
|
|
3629
4068
|
color: var(--ox0-color-muted);
|
|
@@ -3682,6 +4121,15 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3682
4121
|
outline: none;
|
|
3683
4122
|
}
|
|
3684
4123
|
|
|
4124
|
+
.alignCenter-UdU7O4 {
|
|
4125
|
+
text-align: center;
|
|
4126
|
+
}
|
|
4127
|
+
|
|
4128
|
+
.alignEnd-Tibq08 {
|
|
4129
|
+
font-variant-numeric: tabular-nums;
|
|
4130
|
+
text-align: end;
|
|
4131
|
+
}
|
|
4132
|
+
|
|
3685
4133
|
.td-eVn_gZ:focus-visible {
|
|
3686
4134
|
box-shadow: inset 0 0 0 2px var(--ox0-color-accent);
|
|
3687
4135
|
outline: none;
|
|
@@ -3698,7 +4146,9 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3698
4146
|
sortIcon: "sortIcon-ynIcGa",
|
|
3699
4147
|
tr: "tr-Nj6e6z",
|
|
3700
4148
|
selected: "selected-AJn0w7",
|
|
3701
|
-
td: "td-eVn_gZ"
|
|
4149
|
+
td: "td-eVn_gZ",
|
|
4150
|
+
alignCenter: "alignCenter-UdU7O4",
|
|
4151
|
+
alignEnd: "alignEnd-Tibq08"
|
|
3702
4152
|
};
|
|
3703
4153
|
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
3704
4154
|
__webpack_require__.d(__webpack_exports__, {}, {
|
|
@@ -3815,10 +4265,6 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3815
4265
|
display: grid;
|
|
3816
4266
|
}
|
|
3817
4267
|
|
|
3818
|
-
.label-pNCdm5 {
|
|
3819
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
3820
|
-
}
|
|
3821
|
-
|
|
3822
4268
|
.description-FYzKc1 {
|
|
3823
4269
|
color: var(--ox0-color-muted);
|
|
3824
4270
|
font-size: var(--ox0-font-size-sm);
|
|
@@ -3942,7 +4388,6 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
3942
4388
|
]);
|
|
3943
4389
|
___CSS_LOADER_EXPORT___.locals = {
|
|
3944
4390
|
root: "root-czq2dC",
|
|
3945
|
-
label: "label-pNCdm5",
|
|
3946
4391
|
description: "description-FYzKc1",
|
|
3947
4392
|
error: "error-Ki_ghh",
|
|
3948
4393
|
tags: "tags-zkvYh0",
|
|
@@ -3972,10 +4417,6 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
3972
4417
|
display: grid;
|
|
3973
4418
|
}
|
|
3974
4419
|
|
|
3975
|
-
.label-S2rwc9 {
|
|
3976
|
-
font-weight: var(--ox0-font-weight-medium);
|
|
3977
|
-
}
|
|
3978
|
-
|
|
3979
4420
|
.control-Vog3id {
|
|
3980
4421
|
background: var(--ox0-color-surface);
|
|
3981
4422
|
border: 1px solid var(--ox0-color-border);
|
|
@@ -4122,7 +4563,6 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
4122
4563
|
]);
|
|
4123
4564
|
___CSS_LOADER_EXPORT___.locals = {
|
|
4124
4565
|
root: "root-EDj_sz",
|
|
4125
|
-
label: "label-S2rwc9",
|
|
4126
4566
|
control: "control-Vog3id",
|
|
4127
4567
|
focusVisible: "focusVisible-r4K4nT",
|
|
4128
4568
|
invalid: "invalid-M29JY3",
|
|
@@ -4522,6 +4962,91 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
4522
4962
|
A: __rspack_default_export
|
|
4523
4963
|
});
|
|
4524
4964
|
},
|
|
4965
|
+
"../../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__) {
|
|
4966
|
+
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");
|
|
4967
|
+
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);
|
|
4968
|
+
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");
|
|
4969
|
+
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);
|
|
4970
|
+
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());
|
|
4971
|
+
___CSS_LOADER_EXPORT___.push([
|
|
4972
|
+
module.id,
|
|
4973
|
+
`.grid-bGKCj5 {
|
|
4974
|
+
--ox0-grid-auto-columns: repeat(auto-fit,
|
|
4975
|
+
minmax(min(var(--ox0-grid-min-column, 12rem), 100%), 1fr));
|
|
4976
|
+
grid-template-columns: var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns));
|
|
4977
|
+
grid-template-rows: var(--ox0-grid-rows-base, none);
|
|
4978
|
+
grid-template-areas: var(--ox0-grid-areas-base, none);
|
|
4979
|
+
display: grid;
|
|
4980
|
+
}
|
|
4981
|
+
|
|
4982
|
+
@media (width >= 30rem) {
|
|
4983
|
+
.grid-bGKCj5 {
|
|
4984
|
+
grid-template-columns: var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns)));
|
|
4985
|
+
grid-template-rows: var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none));
|
|
4986
|
+
grid-template-areas: var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none));
|
|
4987
|
+
}
|
|
4988
|
+
}
|
|
4989
|
+
|
|
4990
|
+
@media (width >= 48rem) {
|
|
4991
|
+
.grid-bGKCj5 {
|
|
4992
|
+
grid-template-columns: var(--ox0-grid-columns-md, var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns))));
|
|
4993
|
+
grid-template-rows: var(--ox0-grid-rows-md, var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none)));
|
|
4994
|
+
grid-template-areas: var(--ox0-grid-areas-md, var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none)));
|
|
4995
|
+
}
|
|
4996
|
+
}
|
|
4997
|
+
|
|
4998
|
+
@media (width >= 64rem) {
|
|
4999
|
+
.grid-bGKCj5 {
|
|
5000
|
+
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)))));
|
|
5001
|
+
grid-template-rows: var(--ox0-grid-rows-lg, var(--ox0-grid-rows-md, var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none))));
|
|
5002
|
+
grid-template-areas: var(--ox0-grid-areas-lg, var(--ox0-grid-areas-md, var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none))));
|
|
5003
|
+
}
|
|
5004
|
+
}
|
|
5005
|
+
|
|
5006
|
+
@media (width >= 80rem) {
|
|
5007
|
+
.grid-bGKCj5 {
|
|
5008
|
+
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))))));
|
|
5009
|
+
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)))));
|
|
5010
|
+
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)))));
|
|
5011
|
+
}
|
|
5012
|
+
}
|
|
5013
|
+
`,
|
|
5014
|
+
""
|
|
5015
|
+
]);
|
|
5016
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
5017
|
+
grid: "grid-bGKCj5"
|
|
5018
|
+
};
|
|
5019
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
5020
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
5021
|
+
A: __rspack_default_export
|
|
5022
|
+
});
|
|
5023
|
+
},
|
|
5024
|
+
"../../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__) {
|
|
5025
|
+
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");
|
|
5026
|
+
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);
|
|
5027
|
+
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");
|
|
5028
|
+
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);
|
|
5029
|
+
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());
|
|
5030
|
+
___CSS_LOADER_EXPORT___.push([
|
|
5031
|
+
module.id,
|
|
5032
|
+
`.root-_RvXxD {
|
|
5033
|
+
color: var(--ox0-color-foreground);
|
|
5034
|
+
font-family: var(--ox0-font-sans);
|
|
5035
|
+
font-size: var(--ox0-font-size-md);
|
|
5036
|
+
line-height: var(--ox0-line-height-normal);
|
|
5037
|
+
display: contents;
|
|
5038
|
+
}
|
|
5039
|
+
`,
|
|
5040
|
+
""
|
|
5041
|
+
]);
|
|
5042
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
5043
|
+
root: "root-_RvXxD"
|
|
5044
|
+
};
|
|
5045
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
5046
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
5047
|
+
A: __rspack_default_export
|
|
5048
|
+
});
|
|
5049
|
+
},
|
|
4525
5050
|
"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) {
|
|
4526
5051
|
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";
|
|
4527
5052
|
},
|
|
@@ -4760,6 +5285,13 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
4760
5285
|
}
|
|
4761
5286
|
});
|
|
4762
5287
|
const defaultUiMessages = {
|
|
5288
|
+
"ox0.appShell.navTitle": "Menu",
|
|
5289
|
+
"ox0.appShell.openNav": "Open navigation",
|
|
5290
|
+
"ox0.appShell.skipToContent": "Skip to content",
|
|
5291
|
+
"ox0.confirm.cancel": "Cancel",
|
|
5292
|
+
"ox0.confirm.confirm": "Confirm",
|
|
5293
|
+
"ox0.dropZone.browse": "Choose file",
|
|
5294
|
+
"ox0.dropZone.browseMultiple": "Choose files",
|
|
4763
5295
|
"ox0.heading.anchorLabel": "Link to {id}",
|
|
4764
5296
|
"ox0.heading.anchorMarker": "#",
|
|
4765
5297
|
"ox0.select.selectedCount": "{count} selected",
|
|
@@ -4915,6 +5447,46 @@ const useSizing = (props)=>useMemo(()=>{
|
|
|
4915
5447
|
props.maxHeight,
|
|
4916
5448
|
props.aspectRatio
|
|
4917
5449
|
]);
|
|
5450
|
+
function splitLayoutItemProps({ width, minWidth, maxWidth, height, minHeight, maxHeight, aspectRatio, flex, flexGrow, flexShrink, flexBasis, alignSelf, gridArea, gridColumn, gridRow, order, ...rest }) {
|
|
5451
|
+
const layout = {
|
|
5452
|
+
width,
|
|
5453
|
+
minWidth,
|
|
5454
|
+
maxWidth,
|
|
5455
|
+
height,
|
|
5456
|
+
minHeight,
|
|
5457
|
+
maxHeight,
|
|
5458
|
+
aspectRatio,
|
|
5459
|
+
flex,
|
|
5460
|
+
flexGrow,
|
|
5461
|
+
flexShrink,
|
|
5462
|
+
flexBasis,
|
|
5463
|
+
alignSelf,
|
|
5464
|
+
gridArea,
|
|
5465
|
+
gridColumn,
|
|
5466
|
+
gridRow,
|
|
5467
|
+
order
|
|
5468
|
+
};
|
|
5469
|
+
return [
|
|
5470
|
+
layout,
|
|
5471
|
+
rest
|
|
5472
|
+
];
|
|
5473
|
+
}
|
|
5474
|
+
const useLayoutItem = (props)=>{
|
|
5475
|
+
const { style: sizingStyle } = useSizing(props);
|
|
5476
|
+
const { style: flexStyle } = useFlexItem(props);
|
|
5477
|
+
const { style: placementStyle } = usePlacement(props);
|
|
5478
|
+
return useMemo(()=>({
|
|
5479
|
+
style: {
|
|
5480
|
+
...sizingStyle,
|
|
5481
|
+
...flexStyle,
|
|
5482
|
+
...placementStyle
|
|
5483
|
+
}
|
|
5484
|
+
}), [
|
|
5485
|
+
sizingStyle,
|
|
5486
|
+
flexStyle,
|
|
5487
|
+
placementStyle
|
|
5488
|
+
]);
|
|
5489
|
+
};
|
|
4918
5490
|
const spacingMap = {
|
|
4919
5491
|
none: "0",
|
|
4920
5492
|
"2xs": "var(--ox0-space-2xs)",
|
|
@@ -5156,56 +5728,229 @@ function AccordionPanel({ children }) {
|
|
|
5156
5728
|
})
|
|
5157
5729
|
});
|
|
5158
5730
|
}
|
|
5159
|
-
const
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
const { style: spacingStyle } = useSpacing({
|
|
5178
|
-
gap,
|
|
5179
|
-
padding,
|
|
5180
|
-
paddingX,
|
|
5181
|
-
paddingY,
|
|
5182
|
-
paddingTop,
|
|
5183
|
-
paddingRight,
|
|
5184
|
-
paddingBottom,
|
|
5185
|
-
paddingLeft
|
|
5731
|
+
const RouterContext = createContext(null);
|
|
5732
|
+
function useRouter() {
|
|
5733
|
+
return useContext(RouterContext);
|
|
5734
|
+
}
|
|
5735
|
+
function Chevron({ direction = "down", size = 16 }) {
|
|
5736
|
+
return /*#__PURE__*/ jsx("svg", {
|
|
5737
|
+
"aria-hidden": "true",
|
|
5738
|
+
fill: "none",
|
|
5739
|
+
height: size,
|
|
5740
|
+
stroke: "currentColor",
|
|
5741
|
+
strokeLinecap: "round",
|
|
5742
|
+
strokeLinejoin: "round",
|
|
5743
|
+
strokeWidth: 2,
|
|
5744
|
+
viewBox: "0 0 24 24",
|
|
5745
|
+
width: size,
|
|
5746
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
5747
|
+
d: "down" === direction ? "m6 9 6 6 6-6" : "m18 15-6-6-6 6"
|
|
5748
|
+
})
|
|
5186
5749
|
});
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5750
|
+
}
|
|
5751
|
+
function Checkmark({ size = 16 }) {
|
|
5752
|
+
return /*#__PURE__*/ jsx("svg", {
|
|
5753
|
+
"aria-hidden": "true",
|
|
5754
|
+
fill: "none",
|
|
5755
|
+
height: size,
|
|
5756
|
+
stroke: "currentColor",
|
|
5757
|
+
strokeLinecap: "round",
|
|
5758
|
+
strokeLinejoin: "round",
|
|
5759
|
+
strokeWidth: 2,
|
|
5760
|
+
viewBox: "0 0 24 24",
|
|
5761
|
+
width: size,
|
|
5762
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
5763
|
+
d: "M20 6 9 17l-5-5"
|
|
5764
|
+
})
|
|
5198
5765
|
});
|
|
5199
|
-
}
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5766
|
+
}
|
|
5767
|
+
function MenuGlyph({ size = 16 }) {
|
|
5768
|
+
return /*#__PURE__*/ jsx("svg", {
|
|
5769
|
+
"aria-hidden": "true",
|
|
5770
|
+
fill: "none",
|
|
5771
|
+
height: size,
|
|
5772
|
+
stroke: "currentColor",
|
|
5773
|
+
strokeLinecap: "round",
|
|
5774
|
+
strokeLinejoin: "round",
|
|
5775
|
+
strokeWidth: 2,
|
|
5776
|
+
viewBox: "0 0 24 24",
|
|
5777
|
+
width: size,
|
|
5778
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
5779
|
+
d: "M4 6h16M4 12h16M4 18h16"
|
|
5780
|
+
})
|
|
5781
|
+
});
|
|
5782
|
+
}
|
|
5783
|
+
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");
|
|
5784
|
+
var drawer_module_options = {};
|
|
5785
|
+
drawer_module_options.styleTagTransform = styleTagTransform_default();
|
|
5786
|
+
drawer_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
5787
|
+
drawer_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
5788
|
+
drawer_module_options.domAPI = styleDomAPI_default();
|
|
5789
|
+
drawer_module_options.insertStyleElement = insertStyleElement_default();
|
|
5790
|
+
injectStylesIntoStyleTag_default()(drawer_module_0.A, drawer_module_options);
|
|
5791
|
+
const drawer_module = drawer_module_0.A && drawer_module_0.A.locals ? drawer_module_0.A.locals : void 0;
|
|
5792
|
+
const DEFAULT_WIDTH = 320;
|
|
5793
|
+
const DEFAULT_MIN_WIDTH = 240;
|
|
5794
|
+
const DEFAULT_MAX_WIDTH = 640;
|
|
5795
|
+
const KEYBOARD_RESIZE_STEP = 16;
|
|
5796
|
+
const DrawerContext = /*#__PURE__*/ createContext(null);
|
|
5797
|
+
function useDrawerContext() {
|
|
5798
|
+
const ctx = useContext(DrawerContext);
|
|
5799
|
+
if (!ctx) throw new Error("Drawer subcomponents must be used inside <Drawer>");
|
|
5800
|
+
return ctx;
|
|
5801
|
+
}
|
|
5802
|
+
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 }) {
|
|
5803
|
+
const titleId = useId();
|
|
5804
|
+
const [phase, setPhase] = useState(isOpen ? "entering" : "closed");
|
|
5805
|
+
const [width, setWidth] = useControllableState({
|
|
5806
|
+
defaultValue: defaultWidth,
|
|
5807
|
+
value: widthProp,
|
|
5808
|
+
onChange: onWidthChange
|
|
5809
|
+
});
|
|
5810
|
+
const dragRef = useRef(null);
|
|
5811
|
+
const panelRef = useRef(null);
|
|
5812
|
+
useEffect(()=>{
|
|
5813
|
+
setPhase((current)=>{
|
|
5814
|
+
if (isOpen) return "closed" === current ? "entering" : "exiting" === current ? "open" : current;
|
|
5815
|
+
return "closed" === current ? "closed" : "exiting";
|
|
5816
|
+
});
|
|
5817
|
+
}, [
|
|
5818
|
+
isOpen
|
|
5819
|
+
]);
|
|
5820
|
+
const contextValue = useMemo(()=>({
|
|
5821
|
+
onClose,
|
|
5822
|
+
titleId
|
|
5823
|
+
}), [
|
|
5824
|
+
onClose,
|
|
5825
|
+
titleId
|
|
5826
|
+
]);
|
|
5827
|
+
useEffect(()=>{
|
|
5828
|
+
if (!isOpen) return;
|
|
5829
|
+
const handler = (e)=>{
|
|
5830
|
+
if ("Escape" === e.key) {
|
|
5831
|
+
e.preventDefault();
|
|
5832
|
+
if (!isDismissDisabled) onClose();
|
|
5833
|
+
}
|
|
5834
|
+
};
|
|
5835
|
+
document.addEventListener("keydown", handler);
|
|
5836
|
+
return ()=>document.removeEventListener("keydown", handler);
|
|
5837
|
+
}, [
|
|
5838
|
+
isDismissDisabled,
|
|
5839
|
+
isOpen,
|
|
5840
|
+
onClose
|
|
5841
|
+
]);
|
|
5842
|
+
useEffect(()=>{
|
|
5843
|
+
if (!isOpen || "overlay" !== variant) return;
|
|
5844
|
+
const handler = (e)=>{
|
|
5845
|
+
if (isDismissDisabled) return;
|
|
5846
|
+
if (!(e.target instanceof Node)) return;
|
|
5847
|
+
if (panelRef.current?.contains(e.target)) return;
|
|
5848
|
+
onClose();
|
|
5849
|
+
};
|
|
5850
|
+
document.addEventListener("pointerdown", handler);
|
|
5851
|
+
return ()=>document.removeEventListener("pointerdown", handler);
|
|
5852
|
+
}, [
|
|
5853
|
+
isDismissDisabled,
|
|
5854
|
+
isOpen,
|
|
5855
|
+
onClose,
|
|
5856
|
+
variant
|
|
5857
|
+
]);
|
|
5858
|
+
if ("closed" === phase) return null;
|
|
5859
|
+
function clampWidth(next) {
|
|
5860
|
+
return Math.min(maxWidth, Math.max(minWidth, next));
|
|
5861
|
+
}
|
|
5862
|
+
function handleResizePointerDown(event) {
|
|
5863
|
+
dragRef.current = {
|
|
5864
|
+
startX: event.clientX,
|
|
5865
|
+
startWidth: width
|
|
5866
|
+
};
|
|
5867
|
+
event.currentTarget.setPointerCapture(event.pointerId);
|
|
5868
|
+
}
|
|
5869
|
+
function handleResizePointerMove(event) {
|
|
5870
|
+
const drag = dragRef.current;
|
|
5871
|
+
if (!drag) return;
|
|
5872
|
+
const delta = event.clientX - drag.startX;
|
|
5873
|
+
const signedDelta = "right" === placement ? -delta : delta;
|
|
5874
|
+
setWidth(clampWidth(drag.startWidth + signedDelta));
|
|
5875
|
+
}
|
|
5876
|
+
function handleResizePointerUp(event) {
|
|
5877
|
+
dragRef.current = null;
|
|
5878
|
+
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
5879
|
+
}
|
|
5880
|
+
function handleResizeKeyDown(event) {
|
|
5881
|
+
const directionSign = "right" === placement ? -1 : 1;
|
|
5882
|
+
if ("ArrowLeft" === event.key) {
|
|
5883
|
+
event.preventDefault();
|
|
5884
|
+
setWidth(clampWidth(width - directionSign * KEYBOARD_RESIZE_STEP));
|
|
5885
|
+
} else if ("ArrowRight" === event.key) {
|
|
5886
|
+
event.preventDefault();
|
|
5887
|
+
setWidth(clampWidth(width + directionSign * KEYBOARD_RESIZE_STEP));
|
|
5888
|
+
}
|
|
5889
|
+
}
|
|
5890
|
+
const panelStyle = {
|
|
5891
|
+
width,
|
|
5892
|
+
"--ox0-drawer-width": `${width}px`
|
|
5893
|
+
};
|
|
5894
|
+
const panel = /*#__PURE__*/ jsx(DrawerContext.Provider, {
|
|
5895
|
+
value: contextValue,
|
|
5896
|
+
children: /*#__PURE__*/ jsxs("aside", {
|
|
5897
|
+
"aria-labelledby": titleId,
|
|
5898
|
+
className: drawer_module.panel,
|
|
5899
|
+
"data-phase": phase,
|
|
5900
|
+
"data-placement": placement,
|
|
5901
|
+
"data-variant": variant,
|
|
5902
|
+
ref: panelRef,
|
|
5903
|
+
style: panelStyle,
|
|
5904
|
+
onAnimationEnd: (e)=>{
|
|
5905
|
+
if (e.target !== e.currentTarget) return;
|
|
5906
|
+
if ("entering" === phase) setPhase("open");
|
|
5907
|
+
else if ("exiting" === phase) setPhase("closed");
|
|
5908
|
+
},
|
|
5909
|
+
children: [
|
|
5910
|
+
isResizable && /*#__PURE__*/ jsx("div", {
|
|
5911
|
+
"aria-label": "Resize panel",
|
|
5912
|
+
"aria-orientation": "vertical",
|
|
5913
|
+
"aria-valuemax": maxWidth,
|
|
5914
|
+
"aria-valuemin": minWidth,
|
|
5915
|
+
"aria-valuenow": width,
|
|
5916
|
+
className: drawer_module.resizeHandle,
|
|
5917
|
+
"data-placement": placement,
|
|
5918
|
+
role: "separator",
|
|
5919
|
+
tabIndex: 0,
|
|
5920
|
+
onKeyDown: handleResizeKeyDown,
|
|
5921
|
+
onPointerDown: handleResizePointerDown,
|
|
5922
|
+
onPointerMove: handleResizePointerMove,
|
|
5923
|
+
onPointerUp: handleResizePointerUp
|
|
5924
|
+
}),
|
|
5925
|
+
/*#__PURE__*/ jsx("div", {
|
|
5926
|
+
className: drawer_module.content,
|
|
5927
|
+
children: children
|
|
5928
|
+
})
|
|
5929
|
+
]
|
|
5930
|
+
})
|
|
5931
|
+
});
|
|
5932
|
+
if ("push" === variant) {
|
|
5933
|
+
const pushStyle = {
|
|
5934
|
+
"--ox0-drawer-width": `${width}px`
|
|
5935
|
+
};
|
|
5936
|
+
return /*#__PURE__*/ jsx("div", {
|
|
5937
|
+
className: drawer_module.pushContainer,
|
|
5938
|
+
"data-phase": phase,
|
|
5939
|
+
style: pushStyle,
|
|
5940
|
+
onAnimationEnd: (e)=>{
|
|
5941
|
+
if (e.target !== e.currentTarget) return;
|
|
5942
|
+
if ("entering" === phase) setPhase("open");
|
|
5943
|
+
else if ("exiting" === phase) setPhase("closed");
|
|
5944
|
+
},
|
|
5945
|
+
children: panel
|
|
5946
|
+
});
|
|
5947
|
+
}
|
|
5948
|
+
return /*#__PURE__*/ createPortal(/*#__PURE__*/ jsx("div", {
|
|
5949
|
+
className: drawer_module.overlayContainer,
|
|
5950
|
+
"data-placement": placement,
|
|
5951
|
+
children: panel
|
|
5952
|
+
}), document.body);
|
|
5953
|
+
}
|
|
5209
5954
|
const CloseIcon = ()=>/*#__PURE__*/ jsxs("svg", {
|
|
5210
5955
|
"aria-hidden": "true",
|
|
5211
5956
|
fill: "none",
|
|
@@ -5231,41 +5976,574 @@ const CloseIcon = ()=>/*#__PURE__*/ jsxs("svg", {
|
|
|
5231
5976
|
})
|
|
5232
5977
|
]
|
|
5233
5978
|
});
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
fill: "none",
|
|
5239
|
-
height: "16",
|
|
5240
|
-
stroke: "currentColor",
|
|
5241
|
-
strokeLinecap: "round",
|
|
5242
|
-
strokeLinejoin: "round",
|
|
5243
|
-
strokeWidth: "2",
|
|
5244
|
-
viewBox: "0 0 16 16",
|
|
5245
|
-
width: "16",
|
|
5979
|
+
function DrawerHeader({ children }) {
|
|
5980
|
+
const { onClose } = useDrawerContext();
|
|
5981
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
5982
|
+
className: drawer_module.header,
|
|
5246
5983
|
children: [
|
|
5247
|
-
/*#__PURE__*/ jsx("
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
r: "7"
|
|
5251
|
-
}),
|
|
5252
|
-
/*#__PURE__*/ jsx("line", {
|
|
5253
|
-
x1: "8",
|
|
5254
|
-
x2: "8",
|
|
5255
|
-
y1: "5",
|
|
5256
|
-
y2: "5.01",
|
|
5257
|
-
strokeWidth: "2.5"
|
|
5984
|
+
/*#__PURE__*/ jsx("div", {
|
|
5985
|
+
className: drawer_module.headerContent,
|
|
5986
|
+
children: children
|
|
5258
5987
|
}),
|
|
5259
|
-
/*#__PURE__*/ jsx("
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5988
|
+
/*#__PURE__*/ jsx("button", {
|
|
5989
|
+
"aria-label": "Close",
|
|
5990
|
+
className: drawer_module.closeButton,
|
|
5991
|
+
type: "button",
|
|
5992
|
+
onClick: onClose,
|
|
5993
|
+
children: /*#__PURE__*/ jsx(CloseIcon, {})
|
|
5264
5994
|
})
|
|
5265
5995
|
]
|
|
5266
5996
|
});
|
|
5267
|
-
|
|
5268
|
-
|
|
5997
|
+
}
|
|
5998
|
+
function DrawerTitle({ children }) {
|
|
5999
|
+
const { titleId } = useDrawerContext();
|
|
6000
|
+
return /*#__PURE__*/ jsx("h2", {
|
|
6001
|
+
id: titleId,
|
|
6002
|
+
className: drawer_module.title,
|
|
6003
|
+
children: children
|
|
6004
|
+
});
|
|
6005
|
+
}
|
|
6006
|
+
function DrawerBody({ children }) {
|
|
6007
|
+
return /*#__PURE__*/ jsx("div", {
|
|
6008
|
+
className: drawer_module.body,
|
|
6009
|
+
children: children
|
|
6010
|
+
});
|
|
6011
|
+
}
|
|
6012
|
+
function DrawerFooter({ children }) {
|
|
6013
|
+
return /*#__PURE__*/ jsx("div", {
|
|
6014
|
+
className: drawer_module.footer,
|
|
6015
|
+
children: children
|
|
6016
|
+
});
|
|
6017
|
+
}
|
|
6018
|
+
const Drawer = Object.assign(DrawerRoot, {
|
|
6019
|
+
displayName: "Drawer",
|
|
6020
|
+
Header: DrawerHeader,
|
|
6021
|
+
Title: DrawerTitle,
|
|
6022
|
+
Body: DrawerBody,
|
|
6023
|
+
Footer: DrawerFooter
|
|
6024
|
+
});
|
|
6025
|
+
const SAFE_HREF = /^(\/|\.\.?\/|#.+|https?:\/\/|mailto:|tel:)/i;
|
|
6026
|
+
function isSafeHref(to) {
|
|
6027
|
+
return SAFE_HREF.test(to);
|
|
6028
|
+
}
|
|
6029
|
+
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");
|
|
6030
|
+
var button_module_options = {};
|
|
6031
|
+
button_module_options.styleTagTransform = styleTagTransform_default();
|
|
6032
|
+
button_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
6033
|
+
button_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
6034
|
+
button_module_options.domAPI = styleDomAPI_default();
|
|
6035
|
+
button_module_options.insertStyleElement = insertStyleElement_default();
|
|
6036
|
+
injectStylesIntoStyleTag_default()(button_module_0.A, button_module_options);
|
|
6037
|
+
const button_module = button_module_0.A && button_module_0.A.locals ? button_module_0.A.locals : void 0;
|
|
6038
|
+
const iconSize = {
|
|
6039
|
+
xs: 12,
|
|
6040
|
+
sm: 14,
|
|
6041
|
+
md: 16,
|
|
6042
|
+
lg: 18
|
|
6043
|
+
};
|
|
6044
|
+
const MIN_PRESS_MS = 150;
|
|
6045
|
+
function useMinPressDuration(isPressed) {
|
|
6046
|
+
const [isVisuallyPressed, setIsVisuallyPressed] = useState(false);
|
|
6047
|
+
const pressStartRef = useRef(0);
|
|
6048
|
+
const timeoutRef = useRef(void 0);
|
|
6049
|
+
useEffect(()=>{
|
|
6050
|
+
if (isPressed) {
|
|
6051
|
+
clearTimeout(timeoutRef.current);
|
|
6052
|
+
pressStartRef.current = Date.now();
|
|
6053
|
+
setIsVisuallyPressed(true);
|
|
6054
|
+
} else {
|
|
6055
|
+
const remaining = MIN_PRESS_MS - (Date.now() - pressStartRef.current);
|
|
6056
|
+
if (remaining > 0) timeoutRef.current = setTimeout(()=>setIsVisuallyPressed(false), remaining);
|
|
6057
|
+
else setIsVisuallyPressed(false);
|
|
6058
|
+
}
|
|
6059
|
+
return ()=>clearTimeout(timeoutRef.current);
|
|
6060
|
+
}, [
|
|
6061
|
+
isPressed
|
|
6062
|
+
]);
|
|
6063
|
+
return isVisuallyPressed;
|
|
6064
|
+
}
|
|
6065
|
+
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) {
|
|
6066
|
+
const { pressProps, isPressed: isActuallyPressed } = usePress({
|
|
6067
|
+
onPress,
|
|
6068
|
+
onPressStart,
|
|
6069
|
+
onPressEnd,
|
|
6070
|
+
onPressChange,
|
|
6071
|
+
onPressUp,
|
|
6072
|
+
isDisabled
|
|
6073
|
+
});
|
|
6074
|
+
const isPressed = useMinPressDuration(isActuallyPressed);
|
|
6075
|
+
const isIconOnly = void 0 !== Icon && void 0 === IconEnd && null == children;
|
|
6076
|
+
const composedPointerEnter = onPointerEnter ? (e)=>{
|
|
6077
|
+
onPointerEnter(e);
|
|
6078
|
+
pressProps.onPointerEnter?.(e);
|
|
6079
|
+
} : pressProps.onPointerEnter;
|
|
6080
|
+
const composedPointerLeave = onPointerLeave ? (e)=>{
|
|
6081
|
+
onPointerLeave(e);
|
|
6082
|
+
pressProps.onPointerLeave?.(e);
|
|
6083
|
+
} : pressProps.onPointerLeave;
|
|
6084
|
+
return /*#__PURE__*/ jsx("button", {
|
|
6085
|
+
ref: ref,
|
|
6086
|
+
...rest,
|
|
6087
|
+
...pressProps,
|
|
6088
|
+
onPointerEnter: composedPointerEnter,
|
|
6089
|
+
onPointerLeave: composedPointerLeave,
|
|
6090
|
+
"aria-pressed": isSelected,
|
|
6091
|
+
className: [
|
|
6092
|
+
button_module.button,
|
|
6093
|
+
button_module[variant],
|
|
6094
|
+
button_module[size],
|
|
6095
|
+
isPressed && button_module.pressed,
|
|
6096
|
+
isSelected && button_module.selected,
|
|
6097
|
+
isIconOnly ? button_module.iconOnly : Icon && button_module.hasIcon,
|
|
6098
|
+
IconEnd && button_module.hasIconEnd
|
|
6099
|
+
].filter(Boolean).join(" "),
|
|
6100
|
+
"data-variant": variant,
|
|
6101
|
+
disabled: isDisabled,
|
|
6102
|
+
type: type,
|
|
6103
|
+
children: /*#__PURE__*/ jsxs("span", {
|
|
6104
|
+
className: button_module.content,
|
|
6105
|
+
children: [
|
|
6106
|
+
Icon && /*#__PURE__*/ jsx(Icon, {
|
|
6107
|
+
size: iconSize[size]
|
|
6108
|
+
}),
|
|
6109
|
+
children,
|
|
6110
|
+
IconEnd && /*#__PURE__*/ jsx(IconEnd, {
|
|
6111
|
+
size: iconSize[size]
|
|
6112
|
+
})
|
|
6113
|
+
]
|
|
6114
|
+
})
|
|
6115
|
+
});
|
|
6116
|
+
});
|
|
6117
|
+
const WARMUP_MS = 1000;
|
|
6118
|
+
const COOLDOWN_MS = 500;
|
|
6119
|
+
let warm = false;
|
|
6120
|
+
let cooldownTimer = null;
|
|
6121
|
+
const tooltipManager = {
|
|
6122
|
+
getDelay () {
|
|
6123
|
+
return warm ? 0 : WARMUP_MS;
|
|
6124
|
+
},
|
|
6125
|
+
onOpen () {
|
|
6126
|
+
if (null !== cooldownTimer) {
|
|
6127
|
+
clearTimeout(cooldownTimer);
|
|
6128
|
+
cooldownTimer = null;
|
|
6129
|
+
}
|
|
6130
|
+
warm = true;
|
|
6131
|
+
},
|
|
6132
|
+
onClose () {
|
|
6133
|
+
if (null !== cooldownTimer) clearTimeout(cooldownTimer);
|
|
6134
|
+
cooldownTimer = setTimeout(()=>{
|
|
6135
|
+
warm = false;
|
|
6136
|
+
cooldownTimer = null;
|
|
6137
|
+
}, COOLDOWN_MS);
|
|
6138
|
+
}
|
|
6139
|
+
};
|
|
6140
|
+
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");
|
|
6141
|
+
var tooltip_module_options = {};
|
|
6142
|
+
tooltip_module_options.styleTagTransform = styleTagTransform_default();
|
|
6143
|
+
tooltip_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
6144
|
+
tooltip_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
6145
|
+
tooltip_module_options.domAPI = styleDomAPI_default();
|
|
6146
|
+
tooltip_module_options.insertStyleElement = insertStyleElement_default();
|
|
6147
|
+
injectStylesIntoStyleTag_default()(tooltip_module_0.A, tooltip_module_options);
|
|
6148
|
+
const tooltip_module = tooltip_module_0.A && tooltip_module_0.A.locals ? tooltip_module_0.A.locals : void 0;
|
|
6149
|
+
const TooltipContext = /*#__PURE__*/ createContext(null);
|
|
6150
|
+
function useTooltipContext() {
|
|
6151
|
+
const ctx = useContext(TooltipContext);
|
|
6152
|
+
if (!ctx) throw new Error("TooltipTrigger and TooltipContent must be used inside <Tooltip>");
|
|
6153
|
+
return ctx;
|
|
6154
|
+
}
|
|
6155
|
+
function Tooltip({ children, placement = "top", isDisabled = false }) {
|
|
6156
|
+
const [open, setOpen] = useState(false);
|
|
6157
|
+
const openTimerRef = useRef(null);
|
|
6158
|
+
const isHoveringRef = useRef(false);
|
|
6159
|
+
const isFocusedRef = useRef(false);
|
|
6160
|
+
const clearOpenTimer = useCallback(()=>{
|
|
6161
|
+
if (null !== openTimerRef.current) {
|
|
6162
|
+
clearTimeout(openTimerRef.current);
|
|
6163
|
+
openTimerRef.current = null;
|
|
6164
|
+
}
|
|
6165
|
+
}, []);
|
|
6166
|
+
const { refs, floatingStyles, context } = useFloating({
|
|
6167
|
+
open,
|
|
6168
|
+
onOpenChange: (nextOpen)=>{
|
|
6169
|
+
if (!nextOpen) {
|
|
6170
|
+
clearOpenTimer();
|
|
6171
|
+
isHoveringRef.current = false;
|
|
6172
|
+
isFocusedRef.current = false;
|
|
6173
|
+
setOpen(false);
|
|
6174
|
+
tooltipManager.onClose();
|
|
6175
|
+
}
|
|
6176
|
+
},
|
|
6177
|
+
placement,
|
|
6178
|
+
middleware: [
|
|
6179
|
+
offset(8),
|
|
6180
|
+
flip(),
|
|
6181
|
+
shift({
|
|
6182
|
+
padding: 8
|
|
6183
|
+
})
|
|
6184
|
+
],
|
|
6185
|
+
whileElementsMounted: autoUpdate
|
|
6186
|
+
});
|
|
6187
|
+
const dismiss = useDismiss(context, {
|
|
6188
|
+
referencePress: false
|
|
6189
|
+
});
|
|
6190
|
+
const role = useRole(context, {
|
|
6191
|
+
role: "tooltip"
|
|
6192
|
+
});
|
|
6193
|
+
const { getReferenceProps, getFloatingProps } = useInteractions([
|
|
6194
|
+
dismiss,
|
|
6195
|
+
role
|
|
6196
|
+
]);
|
|
6197
|
+
const doOpen = useCallback(()=>{
|
|
6198
|
+
clearOpenTimer();
|
|
6199
|
+
setOpen(true);
|
|
6200
|
+
tooltipManager.onOpen();
|
|
6201
|
+
}, [
|
|
6202
|
+
clearOpenTimer
|
|
6203
|
+
]);
|
|
6204
|
+
const tryClose = useCallback(()=>{
|
|
6205
|
+
if (!isHoveringRef.current && !isFocusedRef.current) {
|
|
6206
|
+
clearOpenTimer();
|
|
6207
|
+
setOpen(false);
|
|
6208
|
+
tooltipManager.onClose();
|
|
6209
|
+
}
|
|
6210
|
+
}, [
|
|
6211
|
+
clearOpenTimer
|
|
6212
|
+
]);
|
|
6213
|
+
const referenceProps = getReferenceProps({
|
|
6214
|
+
onPointerEnter (e) {
|
|
6215
|
+
if ("touch" === e.pointerType) return;
|
|
6216
|
+
if (isHoveringRef.current) return;
|
|
6217
|
+
isHoveringRef.current = true;
|
|
6218
|
+
const delay = tooltipManager.getDelay();
|
|
6219
|
+
if (0 === delay) doOpen();
|
|
6220
|
+
else openTimerRef.current = setTimeout(()=>{
|
|
6221
|
+
openTimerRef.current = null;
|
|
6222
|
+
doOpen();
|
|
6223
|
+
}, delay);
|
|
6224
|
+
},
|
|
6225
|
+
onPointerLeave () {
|
|
6226
|
+
isHoveringRef.current = false;
|
|
6227
|
+
tryClose();
|
|
6228
|
+
},
|
|
6229
|
+
onFocus () {
|
|
6230
|
+
if (!hooks_isFocusVisible()) return;
|
|
6231
|
+
isFocusedRef.current = true;
|
|
6232
|
+
clearOpenTimer();
|
|
6233
|
+
doOpen();
|
|
6234
|
+
},
|
|
6235
|
+
onBlur () {
|
|
6236
|
+
isFocusedRef.current = false;
|
|
6237
|
+
tryClose();
|
|
6238
|
+
}
|
|
6239
|
+
});
|
|
6240
|
+
const value = {
|
|
6241
|
+
open,
|
|
6242
|
+
isDisabled,
|
|
6243
|
+
referenceRef: refs.setReference,
|
|
6244
|
+
floatingRef: refs.setFloating,
|
|
6245
|
+
floatingStyles,
|
|
6246
|
+
getReferenceProps: ()=>referenceProps,
|
|
6247
|
+
getFloatingProps
|
|
6248
|
+
};
|
|
6249
|
+
return /*#__PURE__*/ jsx(TooltipContext.Provider, {
|
|
6250
|
+
value: value,
|
|
6251
|
+
children: children
|
|
6252
|
+
});
|
|
6253
|
+
}
|
|
6254
|
+
function TooltipTrigger({ children }) {
|
|
6255
|
+
const { isDisabled, referenceRef, getReferenceProps } = useTooltipContext();
|
|
6256
|
+
const { ref: childRef, ...childProps } = children.props;
|
|
6257
|
+
const composedRef = useMergeRefs([
|
|
6258
|
+
referenceRef,
|
|
6259
|
+
childRef ?? null
|
|
6260
|
+
]);
|
|
6261
|
+
if (isDisabled) return children;
|
|
6262
|
+
return /*#__PURE__*/ cloneElement(children, {
|
|
6263
|
+
...getReferenceProps(childProps),
|
|
6264
|
+
ref: composedRef
|
|
6265
|
+
});
|
|
6266
|
+
}
|
|
6267
|
+
function TooltipContent({ children }) {
|
|
6268
|
+
const { open, floatingRef, floatingStyles, getFloatingProps } = useTooltipContext();
|
|
6269
|
+
if (!open) return null;
|
|
6270
|
+
return /*#__PURE__*/ jsx(FloatingPortal, {
|
|
6271
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
6272
|
+
ref: floatingRef,
|
|
6273
|
+
style: floatingStyles,
|
|
6274
|
+
className: tooltip_module.tooltip,
|
|
6275
|
+
...getFloatingProps(),
|
|
6276
|
+
children: children
|
|
6277
|
+
})
|
|
6278
|
+
});
|
|
6279
|
+
}
|
|
6280
|
+
const icon_button_IconButton = /*#__PURE__*/ forwardRef(function({ icon: Icon, label, size = "md", tooltipPlacement, variant = "circle", ...props }, ref) {
|
|
6281
|
+
return /*#__PURE__*/ jsxs(Tooltip, {
|
|
6282
|
+
placement: tooltipPlacement,
|
|
6283
|
+
children: [
|
|
6284
|
+
/*#__PURE__*/ jsx(TooltipTrigger, {
|
|
6285
|
+
children: /*#__PURE__*/ jsx(button_Button, {
|
|
6286
|
+
...props,
|
|
6287
|
+
ref: ref,
|
|
6288
|
+
"aria-label": label,
|
|
6289
|
+
icon: Icon,
|
|
6290
|
+
size: size,
|
|
6291
|
+
variant: variant
|
|
6292
|
+
})
|
|
6293
|
+
}),
|
|
6294
|
+
/*#__PURE__*/ jsx(TooltipContent, {
|
|
6295
|
+
children: label
|
|
6296
|
+
})
|
|
6297
|
+
]
|
|
6298
|
+
});
|
|
6299
|
+
});
|
|
6300
|
+
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");
|
|
6301
|
+
var app_shell_module_options = {};
|
|
6302
|
+
app_shell_module_options.styleTagTransform = styleTagTransform_default();
|
|
6303
|
+
app_shell_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
6304
|
+
app_shell_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
6305
|
+
app_shell_module_options.domAPI = styleDomAPI_default();
|
|
6306
|
+
app_shell_module_options.insertStyleElement = insertStyleElement_default();
|
|
6307
|
+
injectStylesIntoStyleTag_default()(app_shell_module_0.A, app_shell_module_options);
|
|
6308
|
+
const app_shell_module = app_shell_module_0.A && app_shell_module_0.A.locals ? app_shell_module_0.A.locals : void 0;
|
|
6309
|
+
const NavContext = /*#__PURE__*/ createContext({
|
|
6310
|
+
orientation: "horizontal"
|
|
6311
|
+
});
|
|
6312
|
+
const horizontalNav = {
|
|
6313
|
+
orientation: "horizontal"
|
|
6314
|
+
};
|
|
6315
|
+
function AppShell({ brand, nav, actions, children }) {
|
|
6316
|
+
const mainId = useId();
|
|
6317
|
+
const [isNavOpen, setIsNavOpen] = useState(false);
|
|
6318
|
+
const openNavLabel = useMessage("ox0.appShell.openNav", "Open navigation");
|
|
6319
|
+
const navTitle = useMessage("ox0.appShell.navTitle", "Menu");
|
|
6320
|
+
const skipLabel = useMessage("ox0.appShell.skipToContent", "Skip to content");
|
|
6321
|
+
const closeNav = useCallback(()=>setIsNavOpen(false), []);
|
|
6322
|
+
const drawerNav = useMemo(()=>({
|
|
6323
|
+
orientation: "vertical",
|
|
6324
|
+
onNavigate: closeNav
|
|
6325
|
+
}), [
|
|
6326
|
+
closeNav
|
|
6327
|
+
]);
|
|
6328
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
6329
|
+
className: app_shell_module.shell,
|
|
6330
|
+
children: [
|
|
6331
|
+
/*#__PURE__*/ jsx("a", {
|
|
6332
|
+
className: app_shell_module.skipLink,
|
|
6333
|
+
href: `#${mainId}`,
|
|
6334
|
+
children: skipLabel
|
|
6335
|
+
}),
|
|
6336
|
+
/*#__PURE__*/ jsx("header", {
|
|
6337
|
+
className: app_shell_module.bar,
|
|
6338
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
6339
|
+
className: app_shell_module.barInner,
|
|
6340
|
+
children: [
|
|
6341
|
+
null != nav ? /*#__PURE__*/ jsx("div", {
|
|
6342
|
+
className: app_shell_module.menuButton,
|
|
6343
|
+
children: /*#__PURE__*/ jsx(icon_button_IconButton, {
|
|
6344
|
+
"aria-expanded": isNavOpen,
|
|
6345
|
+
icon: MenuGlyph,
|
|
6346
|
+
label: openNavLabel,
|
|
6347
|
+
tooltipPlacement: "bottom",
|
|
6348
|
+
variant: "ghost",
|
|
6349
|
+
onPress: ()=>setIsNavOpen(true)
|
|
6350
|
+
})
|
|
6351
|
+
}) : null,
|
|
6352
|
+
null != brand ? /*#__PURE__*/ jsx("div", {
|
|
6353
|
+
className: app_shell_module.brand,
|
|
6354
|
+
children: brand
|
|
6355
|
+
}) : null,
|
|
6356
|
+
null != nav ? /*#__PURE__*/ jsx("div", {
|
|
6357
|
+
className: app_shell_module.barNav,
|
|
6358
|
+
children: /*#__PURE__*/ jsx(NavContext.Provider, {
|
|
6359
|
+
value: horizontalNav,
|
|
6360
|
+
children: nav
|
|
6361
|
+
})
|
|
6362
|
+
}) : null,
|
|
6363
|
+
null != actions ? /*#__PURE__*/ jsx("div", {
|
|
6364
|
+
className: app_shell_module.actions,
|
|
6365
|
+
children: actions
|
|
6366
|
+
}) : null
|
|
6367
|
+
]
|
|
6368
|
+
})
|
|
6369
|
+
}),
|
|
6370
|
+
/*#__PURE__*/ jsx("div", {
|
|
6371
|
+
className: app_shell_module.main,
|
|
6372
|
+
id: mainId,
|
|
6373
|
+
tabIndex: -1,
|
|
6374
|
+
children: children
|
|
6375
|
+
}),
|
|
6376
|
+
null != nav ? /*#__PURE__*/ jsxs(Drawer, {
|
|
6377
|
+
isOpen: isNavOpen,
|
|
6378
|
+
placement: "left",
|
|
6379
|
+
onClose: closeNav,
|
|
6380
|
+
children: [
|
|
6381
|
+
/*#__PURE__*/ jsx(Drawer.Header, {
|
|
6382
|
+
children: /*#__PURE__*/ jsx(Drawer.Title, {
|
|
6383
|
+
children: navTitle
|
|
6384
|
+
})
|
|
6385
|
+
}),
|
|
6386
|
+
/*#__PURE__*/ jsx(Drawer.Body, {
|
|
6387
|
+
children: /*#__PURE__*/ jsx(NavContext.Provider, {
|
|
6388
|
+
value: drawerNav,
|
|
6389
|
+
children: nav
|
|
6390
|
+
})
|
|
6391
|
+
})
|
|
6392
|
+
]
|
|
6393
|
+
}) : null
|
|
6394
|
+
]
|
|
6395
|
+
});
|
|
6396
|
+
}
|
|
6397
|
+
function Nav({ ariaLabel, children }) {
|
|
6398
|
+
const { orientation } = useContext(NavContext);
|
|
6399
|
+
return /*#__PURE__*/ jsx("nav", {
|
|
6400
|
+
"aria-label": ariaLabel,
|
|
6401
|
+
children: /*#__PURE__*/ jsx("ul", {
|
|
6402
|
+
className: app_shell_module.navList,
|
|
6403
|
+
"data-orientation": orientation,
|
|
6404
|
+
children: children
|
|
6405
|
+
})
|
|
6406
|
+
});
|
|
6407
|
+
}
|
|
6408
|
+
function NavItem({ to, isCurrent = false, icon: Icon, children }) {
|
|
6409
|
+
const router = useRouter();
|
|
6410
|
+
const { onNavigate } = useContext(NavContext);
|
|
6411
|
+
if (!isSafeHref(to)) {
|
|
6412
|
+
if ("production" !== process.env.NODE_ENV) console.error(`[ox0/ui] <NavItem> blocked unsafe or invalid \`to\`: "${to}".`);
|
|
6413
|
+
return null;
|
|
6414
|
+
}
|
|
6415
|
+
function handleClick(e) {
|
|
6416
|
+
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
|
|
6417
|
+
if (router) {
|
|
6418
|
+
e.preventDefault();
|
|
6419
|
+
router.navigate(to);
|
|
6420
|
+
}
|
|
6421
|
+
onNavigate?.();
|
|
6422
|
+
}
|
|
6423
|
+
return /*#__PURE__*/ jsx("li", {
|
|
6424
|
+
children: /*#__PURE__*/ jsxs("a", {
|
|
6425
|
+
"aria-current": isCurrent ? "page" : void 0,
|
|
6426
|
+
className: app_shell_module.navItem,
|
|
6427
|
+
href: to,
|
|
6428
|
+
onClick: handleClick,
|
|
6429
|
+
children: [
|
|
6430
|
+
Icon ? /*#__PURE__*/ jsx(Icon, {
|
|
6431
|
+
size: 16
|
|
6432
|
+
}) : null,
|
|
6433
|
+
children
|
|
6434
|
+
]
|
|
6435
|
+
})
|
|
6436
|
+
});
|
|
6437
|
+
}
|
|
6438
|
+
const alignMap = {
|
|
6439
|
+
start: "flex-start",
|
|
6440
|
+
center: "center",
|
|
6441
|
+
end: "flex-end",
|
|
6442
|
+
stretch: "stretch",
|
|
6443
|
+
baseline: "baseline"
|
|
6444
|
+
};
|
|
6445
|
+
const justifyMap = {
|
|
6446
|
+
start: "flex-start",
|
|
6447
|
+
center: "center",
|
|
6448
|
+
end: "flex-end",
|
|
6449
|
+
between: "space-between",
|
|
6450
|
+
around: "space-around"
|
|
6451
|
+
};
|
|
6452
|
+
const inline_Inline = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
6453
|
+
const [layout, { children, align = "center", justify = "start", wrap = true, as: Tag = "div", gap = "md", padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft }] = splitLayoutItemProps(props);
|
|
6454
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
6455
|
+
const { style: spacingStyle } = useSpacing({
|
|
6456
|
+
gap,
|
|
6457
|
+
padding,
|
|
6458
|
+
paddingX,
|
|
6459
|
+
paddingY,
|
|
6460
|
+
paddingTop,
|
|
6461
|
+
paddingRight,
|
|
6462
|
+
paddingBottom,
|
|
6463
|
+
paddingLeft
|
|
6464
|
+
});
|
|
6465
|
+
return /*#__PURE__*/ jsx(Tag, {
|
|
6466
|
+
ref: ref,
|
|
6467
|
+
style: {
|
|
6468
|
+
alignItems: alignMap[align],
|
|
6469
|
+
display: "flex",
|
|
6470
|
+
flexWrap: wrap ? "wrap" : "nowrap",
|
|
6471
|
+
justifyContent: justifyMap[justify],
|
|
6472
|
+
...layoutStyle,
|
|
6473
|
+
...spacingStyle
|
|
6474
|
+
},
|
|
6475
|
+
children: children
|
|
6476
|
+
});
|
|
6477
|
+
});
|
|
6478
|
+
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");
|
|
6479
|
+
var banner_module_options = {};
|
|
6480
|
+
banner_module_options.styleTagTransform = styleTagTransform_default();
|
|
6481
|
+
banner_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
6482
|
+
banner_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
6483
|
+
banner_module_options.domAPI = styleDomAPI_default();
|
|
6484
|
+
banner_module_options.insertStyleElement = insertStyleElement_default();
|
|
6485
|
+
injectStylesIntoStyleTag_default()(banner_module_0.A, banner_module_options);
|
|
6486
|
+
const banner_module = banner_module_0.A && banner_module_0.A.locals ? banner_module_0.A.locals : void 0;
|
|
6487
|
+
const banner_CloseIcon = ()=>/*#__PURE__*/ jsxs("svg", {
|
|
6488
|
+
"aria-hidden": "true",
|
|
6489
|
+
fill: "none",
|
|
6490
|
+
height: "12",
|
|
6491
|
+
stroke: "currentColor",
|
|
6492
|
+
strokeLinecap: "round",
|
|
6493
|
+
strokeLinejoin: "round",
|
|
6494
|
+
strokeWidth: "2",
|
|
6495
|
+
viewBox: "0 0 12 12",
|
|
6496
|
+
width: "12",
|
|
6497
|
+
children: [
|
|
6498
|
+
/*#__PURE__*/ jsx("line", {
|
|
6499
|
+
x1: "1",
|
|
6500
|
+
y1: "1",
|
|
6501
|
+
x2: "11",
|
|
6502
|
+
y2: "11"
|
|
6503
|
+
}),
|
|
6504
|
+
/*#__PURE__*/ jsx("line", {
|
|
6505
|
+
x1: "11",
|
|
6506
|
+
y1: "1",
|
|
6507
|
+
x2: "1",
|
|
6508
|
+
y2: "11"
|
|
6509
|
+
})
|
|
6510
|
+
]
|
|
6511
|
+
});
|
|
6512
|
+
const ToneIcon = ({ tone })=>{
|
|
6513
|
+
if ("neutral" === tone) return null;
|
|
6514
|
+
if ("info" === tone) return /*#__PURE__*/ jsxs("svg", {
|
|
6515
|
+
"aria-hidden": "true",
|
|
6516
|
+
fill: "none",
|
|
6517
|
+
height: "16",
|
|
6518
|
+
stroke: "currentColor",
|
|
6519
|
+
strokeLinecap: "round",
|
|
6520
|
+
strokeLinejoin: "round",
|
|
6521
|
+
strokeWidth: "2",
|
|
6522
|
+
viewBox: "0 0 16 16",
|
|
6523
|
+
width: "16",
|
|
6524
|
+
children: [
|
|
6525
|
+
/*#__PURE__*/ jsx("circle", {
|
|
6526
|
+
cx: "8",
|
|
6527
|
+
cy: "8",
|
|
6528
|
+
r: "7"
|
|
6529
|
+
}),
|
|
6530
|
+
/*#__PURE__*/ jsx("line", {
|
|
6531
|
+
x1: "8",
|
|
6532
|
+
x2: "8",
|
|
6533
|
+
y1: "5",
|
|
6534
|
+
y2: "5.01",
|
|
6535
|
+
strokeWidth: "2.5"
|
|
6536
|
+
}),
|
|
6537
|
+
/*#__PURE__*/ jsx("line", {
|
|
6538
|
+
x1: "8",
|
|
6539
|
+
x2: "8",
|
|
6540
|
+
y1: "8",
|
|
6541
|
+
y2: "11"
|
|
6542
|
+
})
|
|
6543
|
+
]
|
|
6544
|
+
});
|
|
6545
|
+
if ("success" === tone) return /*#__PURE__*/ jsxs("svg", {
|
|
6546
|
+
"aria-hidden": "true",
|
|
5269
6547
|
fill: "none",
|
|
5270
6548
|
height: "16",
|
|
5271
6549
|
stroke: "currentColor",
|
|
@@ -5389,7 +6667,7 @@ const banner_Banner = /*#__PURE__*/ forwardRef(function({ children, dismissLabel
|
|
|
5389
6667
|
className: banner_module.dismissButton,
|
|
5390
6668
|
type: "button",
|
|
5391
6669
|
onClick: onDismiss,
|
|
5392
|
-
children: /*#__PURE__*/ jsx(
|
|
6670
|
+
children: /*#__PURE__*/ jsx(banner_CloseIcon, {})
|
|
5393
6671
|
})
|
|
5394
6672
|
]
|
|
5395
6673
|
})
|
|
@@ -5546,10 +6824,9 @@ const badge_Badge = /*#__PURE__*/ forwardRef(function({ children, dismissLabel =
|
|
|
5546
6824
|
]
|
|
5547
6825
|
});
|
|
5548
6826
|
});
|
|
5549
|
-
const box_Box = /*#__PURE__*/ forwardRef(function(
|
|
5550
|
-
const {
|
|
5551
|
-
|
|
5552
|
-
});
|
|
6827
|
+
const box_Box = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
6828
|
+
const [layout, { as: Tag = "div", gap, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, borderRadius, shadow, border, borderTop, borderRight, borderBottom, borderLeft, surface, ...rest }] = splitLayoutItemProps(props);
|
|
6829
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
5553
6830
|
const { style: spacingStyle } = useSpacing({
|
|
5554
6831
|
gap,
|
|
5555
6832
|
padding,
|
|
@@ -5575,7 +6852,7 @@ const box_Box = /*#__PURE__*/ forwardRef(function({ as: Tag = "div", gap, paddin
|
|
|
5575
6852
|
return /*#__PURE__*/ jsx(Tag, {
|
|
5576
6853
|
ref: ref,
|
|
5577
6854
|
style: {
|
|
5578
|
-
...
|
|
6855
|
+
...layoutStyle,
|
|
5579
6856
|
...spacingStyle,
|
|
5580
6857
|
...bordersStyle,
|
|
5581
6858
|
...surfaceStyle
|
|
@@ -5592,7 +6869,9 @@ card_module_options.domAPI = styleDomAPI_default();
|
|
|
5592
6869
|
card_module_options.insertStyleElement = insertStyleElement_default();
|
|
5593
6870
|
injectStylesIntoStyleTag_default()(card_module_0.A, card_module_options);
|
|
5594
6871
|
const card_module = card_module_0.A && card_module_0.A.locals ? card_module_0.A.locals : void 0;
|
|
5595
|
-
const card_Card = /*#__PURE__*/ forwardRef(function(
|
|
6872
|
+
const card_Card = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
6873
|
+
const [layout, { children, footer, header, padding = "lg", surface = "surface", borderRadius = "lg", shadow = "sm", as: Tag = "div", ...rest }] = splitLayoutItemProps(props);
|
|
6874
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
5596
6875
|
const { style: bordersStyle } = useBorders({
|
|
5597
6876
|
borderRadius,
|
|
5598
6877
|
shadow,
|
|
@@ -5608,6 +6887,7 @@ const card_Card = /*#__PURE__*/ forwardRef(function({ children, footer, header,
|
|
|
5608
6887
|
ref: ref,
|
|
5609
6888
|
className: card_module.card,
|
|
5610
6889
|
style: {
|
|
6890
|
+
...layoutStyle,
|
|
5611
6891
|
...bordersStyle,
|
|
5612
6892
|
...surfaceStyle
|
|
5613
6893
|
},
|
|
@@ -5909,110 +7189,18 @@ const text_Text = /*#__PURE__*/ forwardRef(function({ align, as, children, color
|
|
|
5909
7189
|
return /*#__PURE__*/ jsx(Element, {
|
|
5910
7190
|
ref: ref,
|
|
5911
7191
|
id: id,
|
|
5912
|
-
className: [
|
|
5913
|
-
text_module.text,
|
|
5914
|
-
text_module[variant],
|
|
5915
|
-
text_module[resolvedColor],
|
|
5916
|
-
align ? text_module[`align-${align}`] : void 0,
|
|
5917
|
-
truncate && !lineClamp ? text_module.truncate : void 0
|
|
5918
|
-
].filter(Boolean).join(" "),
|
|
5919
|
-
style: Object.keys(inlineStyle).length > 0 ? inlineStyle : void 0,
|
|
5920
|
-
...props,
|
|
5921
|
-
children: children
|
|
5922
|
-
});
|
|
5923
|
-
});
|
|
5924
|
-
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");
|
|
5925
|
-
var button_module_options = {};
|
|
5926
|
-
button_module_options.styleTagTransform = styleTagTransform_default();
|
|
5927
|
-
button_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
5928
|
-
button_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
5929
|
-
button_module_options.domAPI = styleDomAPI_default();
|
|
5930
|
-
button_module_options.insertStyleElement = insertStyleElement_default();
|
|
5931
|
-
injectStylesIntoStyleTag_default()(button_module_0.A, button_module_options);
|
|
5932
|
-
const button_module = button_module_0.A && button_module_0.A.locals ? button_module_0.A.locals : void 0;
|
|
5933
|
-
const iconSize = {
|
|
5934
|
-
xs: 12,
|
|
5935
|
-
sm: 14,
|
|
5936
|
-
md: 16,
|
|
5937
|
-
lg: 18
|
|
5938
|
-
};
|
|
5939
|
-
const MIN_PRESS_MS = 150;
|
|
5940
|
-
function useMinPressDuration(isPressed) {
|
|
5941
|
-
const [isVisuallyPressed, setIsVisuallyPressed] = useState(false);
|
|
5942
|
-
const pressStartRef = useRef(0);
|
|
5943
|
-
const timeoutRef = useRef(void 0);
|
|
5944
|
-
useEffect(()=>{
|
|
5945
|
-
if (isPressed) {
|
|
5946
|
-
clearTimeout(timeoutRef.current);
|
|
5947
|
-
pressStartRef.current = Date.now();
|
|
5948
|
-
setIsVisuallyPressed(true);
|
|
5949
|
-
} else {
|
|
5950
|
-
const remaining = MIN_PRESS_MS - (Date.now() - pressStartRef.current);
|
|
5951
|
-
if (remaining > 0) timeoutRef.current = setTimeout(()=>setIsVisuallyPressed(false), remaining);
|
|
5952
|
-
else setIsVisuallyPressed(false);
|
|
5953
|
-
}
|
|
5954
|
-
return ()=>clearTimeout(timeoutRef.current);
|
|
5955
|
-
}, [
|
|
5956
|
-
isPressed
|
|
5957
|
-
]);
|
|
5958
|
-
return isVisuallyPressed;
|
|
5959
|
-
}
|
|
5960
|
-
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) {
|
|
5961
|
-
const { pressProps, isPressed: isActuallyPressed } = usePress({
|
|
5962
|
-
onPress,
|
|
5963
|
-
onPressStart,
|
|
5964
|
-
onPressEnd,
|
|
5965
|
-
onPressChange,
|
|
5966
|
-
onPressUp,
|
|
5967
|
-
isDisabled
|
|
5968
|
-
});
|
|
5969
|
-
const isPressed = useMinPressDuration(isActuallyPressed);
|
|
5970
|
-
const isIconOnly = void 0 !== Icon && void 0 === IconEnd && null == children;
|
|
5971
|
-
const composedPointerEnter = onPointerEnter ? (e)=>{
|
|
5972
|
-
onPointerEnter(e);
|
|
5973
|
-
pressProps.onPointerEnter?.(e);
|
|
5974
|
-
} : pressProps.onPointerEnter;
|
|
5975
|
-
const composedPointerLeave = onPointerLeave ? (e)=>{
|
|
5976
|
-
onPointerLeave(e);
|
|
5977
|
-
pressProps.onPointerLeave?.(e);
|
|
5978
|
-
} : pressProps.onPointerLeave;
|
|
5979
|
-
return /*#__PURE__*/ jsx("button", {
|
|
5980
|
-
ref: ref,
|
|
5981
|
-
...rest,
|
|
5982
|
-
...pressProps,
|
|
5983
|
-
onPointerEnter: composedPointerEnter,
|
|
5984
|
-
onPointerLeave: composedPointerLeave,
|
|
5985
|
-
"aria-pressed": isSelected,
|
|
5986
|
-
className: [
|
|
5987
|
-
button_module.button,
|
|
5988
|
-
button_module[variant],
|
|
5989
|
-
button_module[size],
|
|
5990
|
-
isPressed && button_module.pressed,
|
|
5991
|
-
isSelected && button_module.selected,
|
|
5992
|
-
isIconOnly ? button_module.iconOnly : Icon && button_module.hasIcon,
|
|
5993
|
-
IconEnd && button_module.hasIconEnd
|
|
5994
|
-
].filter(Boolean).join(" "),
|
|
5995
|
-
"data-variant": variant,
|
|
5996
|
-
disabled: isDisabled,
|
|
5997
|
-
type: type,
|
|
5998
|
-
children: /*#__PURE__*/ jsxs("span", {
|
|
5999
|
-
className: button_module.content,
|
|
6000
|
-
children: [
|
|
6001
|
-
Icon && /*#__PURE__*/ jsx(Icon, {
|
|
6002
|
-
size: iconSize[size]
|
|
6003
|
-
}),
|
|
6004
|
-
children,
|
|
6005
|
-
IconEnd && /*#__PURE__*/ jsx(IconEnd, {
|
|
6006
|
-
size: iconSize[size]
|
|
6007
|
-
})
|
|
6008
|
-
]
|
|
6009
|
-
})
|
|
7192
|
+
className: [
|
|
7193
|
+
text_module.text,
|
|
7194
|
+
text_module[variant],
|
|
7195
|
+
text_module[resolvedColor],
|
|
7196
|
+
align ? text_module[`align-${align}`] : void 0,
|
|
7197
|
+
truncate && !lineClamp ? text_module.truncate : void 0
|
|
7198
|
+
].filter(Boolean).join(" "),
|
|
7199
|
+
style: Object.keys(inlineStyle).length > 0 ? inlineStyle : void 0,
|
|
7200
|
+
...props,
|
|
7201
|
+
children: children
|
|
6010
7202
|
});
|
|
6011
7203
|
});
|
|
6012
|
-
const RouterContext = createContext(null);
|
|
6013
|
-
function useRouter() {
|
|
6014
|
-
return useContext(RouterContext);
|
|
6015
|
-
}
|
|
6016
7204
|
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");
|
|
6017
7205
|
var link_module_options = {};
|
|
6018
7206
|
link_module_options.styleTagTransform = styleTagTransform_default();
|
|
@@ -6022,10 +7210,6 @@ link_module_options.domAPI = styleDomAPI_default();
|
|
|
6022
7210
|
link_module_options.insertStyleElement = insertStyleElement_default();
|
|
6023
7211
|
injectStylesIntoStyleTag_default()(link_module_0.A, link_module_options);
|
|
6024
7212
|
const link_module = link_module_0.A && link_module_0.A.locals ? link_module_0.A.locals : void 0;
|
|
6025
|
-
const SAFE_HREF = /^(\/|\.\.?\/|#.+|https?:\/\/|mailto:|tel:)/i;
|
|
6026
|
-
function isValidTo(to) {
|
|
6027
|
-
return SAFE_HREF.test(to);
|
|
6028
|
-
}
|
|
6029
7213
|
const ExternalIcon = ()=>/*#__PURE__*/ jsxs("svg", {
|
|
6030
7214
|
"aria-hidden": "true",
|
|
6031
7215
|
className: link_module.externalIcon,
|
|
@@ -6061,7 +7245,7 @@ const link_Link = /*#__PURE__*/ forwardRef(function({ children, isExternal: isEx
|
|
|
6061
7245
|
onPressChange,
|
|
6062
7246
|
onPressUp
|
|
6063
7247
|
});
|
|
6064
|
-
if (!
|
|
7248
|
+
if (!isSafeHref(to)) {
|
|
6065
7249
|
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>.`);
|
|
6066
7250
|
return /*#__PURE__*/ jsx("span", {
|
|
6067
7251
|
className: [
|
|
@@ -6135,7 +7319,9 @@ choice_module_options.domAPI = styleDomAPI_default();
|
|
|
6135
7319
|
choice_module_options.insertStyleElement = insertStyleElement_default();
|
|
6136
7320
|
injectStylesIntoStyleTag_default()(choice_module_0.A, choice_module_options);
|
|
6137
7321
|
const choice_module = choice_module_0.A && choice_module_0.A.locals ? choice_module_0.A.locals : void 0;
|
|
6138
|
-
const checkbox_Checkbox = /*#__PURE__*/ forwardRef(function({ label, description, isDisabled, isInvalid, isSelected, defaultSelected, errorMessage, onChange, id: idProp, ...
|
|
7322
|
+
const checkbox_Checkbox = /*#__PURE__*/ forwardRef(function({ label, description, isDisabled, isInvalid, isSelected, defaultSelected, errorMessage, onChange, id: idProp, ...restProps }, ref) {
|
|
7323
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
7324
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
6139
7325
|
const generatedId = useId();
|
|
6140
7326
|
const id = idProp ?? generatedId;
|
|
6141
7327
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -6147,6 +7333,7 @@ const checkbox_Checkbox = /*#__PURE__*/ forwardRef(function({ label, description
|
|
|
6147
7333
|
const invalid = isInvalid || !!errorMessage;
|
|
6148
7334
|
return /*#__PURE__*/ jsxs("div", {
|
|
6149
7335
|
className: checkbox_module.root,
|
|
7336
|
+
style: layoutStyle,
|
|
6150
7337
|
children: [
|
|
6151
7338
|
/*#__PURE__*/ jsxs("label", {
|
|
6152
7339
|
className: `${checkbox_module.label}${isDisabled ? ` ${checkbox_module.disabled}` : ""}`,
|
|
@@ -6195,13 +7382,24 @@ checkbox_group_module_options.domAPI = styleDomAPI_default();
|
|
|
6195
7382
|
checkbox_group_module_options.insertStyleElement = insertStyleElement_default();
|
|
6196
7383
|
injectStylesIntoStyleTag_default()(checkbox_group_module_0.A, checkbox_group_module_options);
|
|
6197
7384
|
const checkbox_group_module = checkbox_group_module_0.A && checkbox_group_module_0.A.locals ? checkbox_group_module_0.A.locals : void 0;
|
|
7385
|
+
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");
|
|
7386
|
+
var field_module_options = {};
|
|
7387
|
+
field_module_options.styleTagTransform = styleTagTransform_default();
|
|
7388
|
+
field_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
7389
|
+
field_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
7390
|
+
field_module_options.domAPI = styleDomAPI_default();
|
|
7391
|
+
field_module_options.insertStyleElement = insertStyleElement_default();
|
|
7392
|
+
injectStylesIntoStyleTag_default()(field_module_0.A, field_module_options);
|
|
7393
|
+
const field_module = field_module_0.A && field_module_0.A.locals ? field_module_0.A.locals : void 0;
|
|
6198
7394
|
const CheckboxGroupContext = /*#__PURE__*/ createContext(null);
|
|
6199
7395
|
function useCheckboxGroupContext() {
|
|
6200
7396
|
const ctx = useContext(CheckboxGroupContext);
|
|
6201
7397
|
if (!ctx) throw new Error("<GroupCheckbox> must be used inside <CheckboxGroup>");
|
|
6202
7398
|
return ctx;
|
|
6203
7399
|
}
|
|
6204
|
-
const checkbox_group_CheckboxGroup = /*#__PURE__*/ forwardRef(function({ label, description, isInvalid, isDisabled = false, errorMessage, value: valueProp, defaultValue, onChange, orientation = "vertical", children, id: idProp, ...
|
|
7400
|
+
const checkbox_group_CheckboxGroup = /*#__PURE__*/ forwardRef(function({ label, description, isInvalid, isDisabled = false, errorMessage, value: valueProp, defaultValue, onChange, orientation = "vertical", children, id: idProp, ...restProps }, ref) {
|
|
7401
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
7402
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
6205
7403
|
const generatedId = useId();
|
|
6206
7404
|
const id = idProp ?? generatedId;
|
|
6207
7405
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -6241,11 +7439,12 @@ const checkbox_group_CheckboxGroup = /*#__PURE__*/ forwardRef(function({ label,
|
|
|
6241
7439
|
].filter(Boolean).join(" ") || void 0,
|
|
6242
7440
|
"aria-invalid": invalid || void 0,
|
|
6243
7441
|
className: checkbox_group_module.fieldset,
|
|
7442
|
+
style: layoutStyle,
|
|
6244
7443
|
disabled: isDisabled,
|
|
6245
7444
|
id: id,
|
|
6246
7445
|
children: [
|
|
6247
7446
|
label ? /*#__PURE__*/ jsx("legend", {
|
|
6248
|
-
className: checkbox_group_module.legend
|
|
7447
|
+
className: `${checkbox_group_module.legend} ${field_module.label}`,
|
|
6249
7448
|
children: label
|
|
6250
7449
|
}) : null,
|
|
6251
7450
|
description ? /*#__PURE__*/ jsx("span", {
|
|
@@ -6328,7 +7527,9 @@ field_group_module_options.domAPI = styleDomAPI_default();
|
|
|
6328
7527
|
field_group_module_options.insertStyleElement = insertStyleElement_default();
|
|
6329
7528
|
injectStylesIntoStyleTag_default()(field_group_module_0.A, field_group_module_options);
|
|
6330
7529
|
const field_group_module = field_group_module_0.A && field_group_module_0.A.locals ? field_group_module_0.A.locals : void 0;
|
|
6331
|
-
const field_group_FieldGroup = /*#__PURE__*/ forwardRef(function({ label, description, isInvalid, isDisabled, errorMessage, orientation = "vertical", children, id: idProp, ...
|
|
7530
|
+
const field_group_FieldGroup = /*#__PURE__*/ forwardRef(function({ label, description, isInvalid, isDisabled, errorMessage, orientation = "vertical", children, id: idProp, ...restProps }, ref) {
|
|
7531
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
7532
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
6332
7533
|
const generatedId = useId();
|
|
6333
7534
|
const id = idProp ?? generatedId;
|
|
6334
7535
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -6344,11 +7545,12 @@ const field_group_FieldGroup = /*#__PURE__*/ forwardRef(function({ label, descri
|
|
|
6344
7545
|
"aria-describedby": describedBy,
|
|
6345
7546
|
"aria-invalid": invalid || void 0,
|
|
6346
7547
|
className: field_group_module.fieldset,
|
|
7548
|
+
style: layoutStyle,
|
|
6347
7549
|
disabled: isDisabled,
|
|
6348
7550
|
id: id,
|
|
6349
7551
|
children: [
|
|
6350
7552
|
label ? /*#__PURE__*/ jsx("legend", {
|
|
6351
|
-
className: field_group_module.legend
|
|
7553
|
+
className: `${field_group_module.legend} ${field_module.label}`,
|
|
6352
7554
|
children: label
|
|
6353
7555
|
}) : null,
|
|
6354
7556
|
description ? /*#__PURE__*/ jsx("span", {
|
|
@@ -6371,38 +7573,6 @@ const field_group_FieldGroup = /*#__PURE__*/ forwardRef(function({ label, descri
|
|
|
6371
7573
|
]
|
|
6372
7574
|
});
|
|
6373
7575
|
});
|
|
6374
|
-
function Chevron({ direction = "down", size = 16 }) {
|
|
6375
|
-
return /*#__PURE__*/ jsx("svg", {
|
|
6376
|
-
"aria-hidden": "true",
|
|
6377
|
-
fill: "none",
|
|
6378
|
-
height: size,
|
|
6379
|
-
stroke: "currentColor",
|
|
6380
|
-
strokeLinecap: "round",
|
|
6381
|
-
strokeLinejoin: "round",
|
|
6382
|
-
strokeWidth: 2,
|
|
6383
|
-
viewBox: "0 0 24 24",
|
|
6384
|
-
width: size,
|
|
6385
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
6386
|
-
d: "down" === direction ? "m6 9 6 6 6-6" : "m18 15-6-6-6 6"
|
|
6387
|
-
})
|
|
6388
|
-
});
|
|
6389
|
-
}
|
|
6390
|
-
function Checkmark({ size = 16 }) {
|
|
6391
|
-
return /*#__PURE__*/ jsx("svg", {
|
|
6392
|
-
"aria-hidden": "true",
|
|
6393
|
-
fill: "none",
|
|
6394
|
-
height: size,
|
|
6395
|
-
stroke: "currentColor",
|
|
6396
|
-
strokeLinecap: "round",
|
|
6397
|
-
strokeLinejoin: "round",
|
|
6398
|
-
strokeWidth: 2,
|
|
6399
|
-
viewBox: "0 0 24 24",
|
|
6400
|
-
width: size,
|
|
6401
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
6402
|
-
d: "M20 6 9 17l-5-5"
|
|
6403
|
-
})
|
|
6404
|
-
});
|
|
6405
|
-
}
|
|
6406
7576
|
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");
|
|
6407
7577
|
var combobox_module_options = {};
|
|
6408
7578
|
combobox_module_options.styleTagTransform = styleTagTransform_default();
|
|
@@ -6415,6 +7585,10 @@ const combobox_module = combobox_module_0.A && combobox_module_0.A.locals ? comb
|
|
|
6415
7585
|
function labelFor(options, value) {
|
|
6416
7586
|
return options.find((o)=>o.value === value)?.label ?? "";
|
|
6417
7587
|
}
|
|
7588
|
+
function combobox_firstEnabled(options) {
|
|
7589
|
+
const index = options.findIndex((o)=>!o.disabled);
|
|
7590
|
+
return -1 === index ? null : index;
|
|
7591
|
+
}
|
|
6418
7592
|
function matchLabel(options, text) {
|
|
6419
7593
|
const q = text.trim().toLowerCase();
|
|
6420
7594
|
return options.find((o)=>!o.disabled && o.label.toLowerCase() === q);
|
|
@@ -6424,7 +7598,9 @@ function filterOptions(options, inputText) {
|
|
|
6424
7598
|
if (!q) return options;
|
|
6425
7599
|
return options.filter((o)=>o.label.toLowerCase().includes(q));
|
|
6426
7600
|
}
|
|
6427
|
-
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, ...
|
|
7601
|
+
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) {
|
|
7602
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
7603
|
+
const [, inputProps] = splitLayoutItemProps(restProps);
|
|
6428
7604
|
if (!label && !ariaLabel) throw new Error("Combobox requires `label` or `ariaLabel`.");
|
|
6429
7605
|
const generatedId = useId();
|
|
6430
7606
|
const controlId = idProp ?? generatedId;
|
|
@@ -6510,15 +7686,17 @@ const combobox_Combobox = /*#__PURE__*/ forwardRef(function({ label, ariaLabel,
|
|
|
6510
7686
|
setInputText(text);
|
|
6511
7687
|
setIsFiltering(true);
|
|
6512
7688
|
setIsOpen(true);
|
|
6513
|
-
setActiveIndex(null);
|
|
7689
|
+
setActiveIndex(text.trim() ? combobox_firstEnabled(filterOptions(options, text)) : null);
|
|
6514
7690
|
if (allowsCustomValue) {
|
|
6515
7691
|
prevSelectedRef.current = text;
|
|
6516
7692
|
commit(text);
|
|
6517
7693
|
}
|
|
6518
7694
|
}
|
|
6519
7695
|
function handleKeyDown(e) {
|
|
7696
|
+
onKeyDownProp?.(e);
|
|
7697
|
+
if (e.defaultPrevented) return;
|
|
6520
7698
|
if ("Enter" === e.key) {
|
|
6521
|
-
const opt = null
|
|
7699
|
+
const opt = null !== activeIndex && isOpen ? filteredOptions[activeIndex] : void 0;
|
|
6522
7700
|
if (void 0 === opt && allowsCustomValue) return void setIsOpen(false);
|
|
6523
7701
|
if (opt && !opt.disabled) selectOption(opt);
|
|
6524
7702
|
e.preventDefault();
|
|
@@ -6531,7 +7709,11 @@ const combobox_Combobox = /*#__PURE__*/ forwardRef(function({ label, ariaLabel,
|
|
|
6531
7709
|
setActiveIndex(null);
|
|
6532
7710
|
} else if (("ArrowDown" === e.key || "ArrowUp" === e.key) && !isOpen) open();
|
|
6533
7711
|
}
|
|
6534
|
-
function handleBlur() {
|
|
7712
|
+
function handleBlur(e) {
|
|
7713
|
+
commitText();
|
|
7714
|
+
onBlurProp?.(e);
|
|
7715
|
+
}
|
|
7716
|
+
function commitText() {
|
|
6535
7717
|
const matched = matchLabel(options, inputText);
|
|
6536
7718
|
if (allowsCustomValue && !matched) {
|
|
6537
7719
|
const text = inputText.trim();
|
|
@@ -6546,12 +7728,13 @@ const combobox_Combobox = /*#__PURE__*/ forwardRef(function({ label, ariaLabel,
|
|
|
6546
7728
|
}
|
|
6547
7729
|
const [isFocusVisible, setIsFocusVisible] = useState(false);
|
|
6548
7730
|
const pointerDown = useRef(false);
|
|
6549
|
-
const activeDescendant = null !== activeIndex && filteredOptions[activeIndex] ? `${listboxId}-${
|
|
7731
|
+
const activeDescendant = null !== activeIndex && filteredOptions[activeIndex] ? `${listboxId}-option-${activeIndex}` : void 0;
|
|
6550
7732
|
return /*#__PURE__*/ jsxs("div", {
|
|
6551
7733
|
className: combobox_module.root,
|
|
7734
|
+
style: layoutStyle,
|
|
6552
7735
|
children: [
|
|
6553
7736
|
label ? /*#__PURE__*/ jsx("label", {
|
|
6554
|
-
className:
|
|
7737
|
+
className: field_module.label,
|
|
6555
7738
|
htmlFor: controlId,
|
|
6556
7739
|
id: labelId,
|
|
6557
7740
|
children: label
|
|
@@ -6573,218 +7756,93 @@ const combobox_Combobox = /*#__PURE__*/ forwardRef(function({ label, ariaLabel,
|
|
|
6573
7756
|
descriptionId,
|
|
6574
7757
|
errorId
|
|
6575
7758
|
].filter(Boolean).join(" ") || void 0,
|
|
6576
|
-
"aria-invalid": invalid || void 0,
|
|
6577
|
-
"aria-activedescendant": activeDescendant,
|
|
6578
|
-
"aria-controls": listboxId,
|
|
6579
|
-
autoComplete: "off",
|
|
6580
|
-
className: [
|
|
6581
|
-
combobox_module.input,
|
|
6582
|
-
invalid ? combobox_module.invalid : null,
|
|
6583
|
-
isFocusVisible ? combobox_module.focusVisible : null
|
|
6584
|
-
].filter(Boolean).join(" "),
|
|
6585
|
-
disabled: isDisabled,
|
|
6586
|
-
placeholder,
|
|
6587
|
-
value: inputText,
|
|
6588
|
-
onChange: handleInputChange,
|
|
6589
|
-
onKeyDown: handleKeyDown,
|
|
6590
|
-
onBlur: handleBlur,
|
|
6591
|
-
onPointerDown: ()=>{
|
|
6592
|
-
pointerDown.current = true;
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
pointerDown.current
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
]
|
|
6661
|
-
});
|
|
6662
|
-
});
|
|
6663
|
-
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");
|
|
6664
|
-
var radio_group_module_options = {};
|
|
6665
|
-
radio_group_module_options.styleTagTransform = styleTagTransform_default();
|
|
6666
|
-
radio_group_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
6667
|
-
radio_group_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
6668
|
-
radio_group_module_options.domAPI = styleDomAPI_default();
|
|
6669
|
-
radio_group_module_options.insertStyleElement = insertStyleElement_default();
|
|
6670
|
-
injectStylesIntoStyleTag_default()(radio_group_module_0.A, radio_group_module_options);
|
|
6671
|
-
const radio_group_module = radio_group_module_0.A && radio_group_module_0.A.locals ? radio_group_module_0.A.locals : void 0;
|
|
6672
|
-
const RadioGroupContext = /*#__PURE__*/ createContext(null);
|
|
6673
|
-
function useRadioGroupContext() {
|
|
6674
|
-
const ctx = useContext(RadioGroupContext);
|
|
6675
|
-
if (!ctx) throw new Error("<Radio> must be used inside <RadioGroup>");
|
|
6676
|
-
return ctx;
|
|
6677
|
-
}
|
|
6678
|
-
const radio_group_RadioGroup = /*#__PURE__*/ forwardRef(function({ label, description, isInvalid, isDisabled = false, errorMessage, value: valueProp, defaultValue, onChange, orientation = "vertical", children, id: idProp, ...props }, ref) {
|
|
6679
|
-
const generatedId = useId();
|
|
6680
|
-
const id = idProp ?? generatedId;
|
|
6681
|
-
const descriptionId = description ? `${id}-description` : void 0;
|
|
6682
|
-
const errorId = errorMessage ? `${id}-error` : void 0;
|
|
6683
|
-
const invalid = isInvalid || !!errorMessage;
|
|
6684
|
-
const isControlled = void 0 !== valueProp;
|
|
6685
|
-
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
|
|
6686
|
-
const value = isControlled ? valueProp : uncontrolledValue;
|
|
6687
|
-
function handleChange(next) {
|
|
6688
|
-
if (!isControlled) setUncontrolledValue(next);
|
|
6689
|
-
onChange?.(next);
|
|
6690
|
-
}
|
|
6691
|
-
const ctx = useMemo(()=>({
|
|
6692
|
-
name: id,
|
|
6693
|
-
value,
|
|
6694
|
-
onChange: handleChange,
|
|
6695
|
-
isDisabled,
|
|
6696
|
-
isInvalid: invalid,
|
|
6697
|
-
descriptionId,
|
|
6698
|
-
errorId
|
|
6699
|
-
}), [
|
|
6700
|
-
id,
|
|
6701
|
-
value,
|
|
6702
|
-
isDisabled,
|
|
6703
|
-
invalid,
|
|
6704
|
-
descriptionId,
|
|
6705
|
-
errorId
|
|
6706
|
-
]);
|
|
6707
|
-
return /*#__PURE__*/ jsx(RadioGroupContext.Provider, {
|
|
6708
|
-
value: ctx,
|
|
6709
|
-
children: /*#__PURE__*/ jsxs("fieldset", {
|
|
6710
|
-
...props,
|
|
6711
|
-
ref: ref,
|
|
6712
|
-
"aria-describedby": [
|
|
6713
|
-
descriptionId,
|
|
6714
|
-
errorId
|
|
6715
|
-
].filter(Boolean).join(" ") || void 0,
|
|
6716
|
-
"aria-invalid": invalid || void 0,
|
|
6717
|
-
className: radio_group_module.fieldset,
|
|
6718
|
-
disabled: isDisabled,
|
|
6719
|
-
id: id,
|
|
6720
|
-
children: [
|
|
6721
|
-
label ? /*#__PURE__*/ jsx("legend", {
|
|
6722
|
-
className: radio_group_module.legend,
|
|
6723
|
-
children: label
|
|
6724
|
-
}) : null,
|
|
6725
|
-
description ? /*#__PURE__*/ jsx("span", {
|
|
6726
|
-
className: radio_group_module.description,
|
|
6727
|
-
id: descriptionId,
|
|
6728
|
-
children: description
|
|
6729
|
-
}) : null,
|
|
6730
|
-
/*#__PURE__*/ jsx("div", {
|
|
6731
|
-
className: [
|
|
6732
|
-
radio_group_module.group,
|
|
6733
|
-
"horizontal" === orientation ? radio_group_module.horizontal : radio_group_module.vertical
|
|
6734
|
-
].join(" "),
|
|
6735
|
-
children: children
|
|
6736
|
-
}),
|
|
6737
|
-
errorMessage ? /*#__PURE__*/ jsx("span", {
|
|
6738
|
-
className: radio_group_module.error,
|
|
6739
|
-
id: errorId,
|
|
6740
|
-
children: errorMessage
|
|
6741
|
-
}) : null
|
|
6742
|
-
]
|
|
6743
|
-
})
|
|
6744
|
-
});
|
|
6745
|
-
});
|
|
6746
|
-
const radio_group_Radio = /*#__PURE__*/ forwardRef(function({ value, label, description, isDisabled: isDisabledProp, id: idProp, children, ...props }, ref) {
|
|
6747
|
-
const ctx = useRadioGroupContext();
|
|
6748
|
-
const generatedId = useId();
|
|
6749
|
-
const id = idProp ?? generatedId;
|
|
6750
|
-
const descriptionId = description ? `${id}-description` : void 0;
|
|
6751
|
-
const isDisabled = isDisabledProp ?? ctx.isDisabled;
|
|
6752
|
-
const labelContent = label ?? children;
|
|
6753
|
-
return /*#__PURE__*/ jsx("div", {
|
|
6754
|
-
className: radio_group_module.item,
|
|
6755
|
-
children: /*#__PURE__*/ jsxs("label", {
|
|
6756
|
-
className: `${radio_group_module.itemLabel}${isDisabled ? ` ${radio_group_module.disabled}` : ""}`,
|
|
6757
|
-
children: [
|
|
6758
|
-
/*#__PURE__*/ jsx("input", {
|
|
6759
|
-
...props,
|
|
6760
|
-
ref: ref,
|
|
6761
|
-
"aria-describedby": [
|
|
6762
|
-
descriptionId,
|
|
6763
|
-
ctx.errorId
|
|
6764
|
-
].filter(Boolean).join(" ") || void 0,
|
|
6765
|
-
checked: ctx.value === value,
|
|
6766
|
-
className: `${choice_module.control} ${choice_module.radio}`,
|
|
6767
|
-
disabled: isDisabled,
|
|
6768
|
-
id: id,
|
|
6769
|
-
name: ctx.name,
|
|
6770
|
-
onChange: ()=>ctx.onChange(value),
|
|
6771
|
-
type: "radio",
|
|
6772
|
-
value: value
|
|
6773
|
-
}),
|
|
6774
|
-
/*#__PURE__*/ jsxs("span", {
|
|
6775
|
-
children: [
|
|
6776
|
-
labelContent ? /*#__PURE__*/ jsx("span", {
|
|
6777
|
-
children: labelContent
|
|
6778
|
-
}) : null,
|
|
6779
|
-
description ? /*#__PURE__*/ jsx("span", {
|
|
6780
|
-
className: radio_group_module.itemDescription,
|
|
6781
|
-
id: descriptionId,
|
|
6782
|
-
children: description
|
|
6783
|
-
}) : null
|
|
6784
|
-
]
|
|
7759
|
+
"aria-invalid": invalid || void 0,
|
|
7760
|
+
"aria-activedescendant": activeDescendant,
|
|
7761
|
+
"aria-controls": listboxId,
|
|
7762
|
+
autoComplete: "off",
|
|
7763
|
+
className: [
|
|
7764
|
+
combobox_module.input,
|
|
7765
|
+
invalid ? combobox_module.invalid : null,
|
|
7766
|
+
isFocusVisible ? combobox_module.focusVisible : null
|
|
7767
|
+
].filter(Boolean).join(" "),
|
|
7768
|
+
disabled: isDisabled,
|
|
7769
|
+
placeholder,
|
|
7770
|
+
value: inputText,
|
|
7771
|
+
onChange: handleInputChange,
|
|
7772
|
+
onKeyDown: handleKeyDown,
|
|
7773
|
+
onBlur: handleBlur,
|
|
7774
|
+
onPointerDown: (e)=>{
|
|
7775
|
+
pointerDown.current = true;
|
|
7776
|
+
onPointerDownProp?.(e);
|
|
7777
|
+
},
|
|
7778
|
+
onFocus: (e)=>{
|
|
7779
|
+
if (!pointerDown.current) setIsFocusVisible(true);
|
|
7780
|
+
pointerDown.current = false;
|
|
7781
|
+
open();
|
|
7782
|
+
onFocusProp?.(e);
|
|
7783
|
+
},
|
|
7784
|
+
onBlurCapture: ()=>setIsFocusVisible(false)
|
|
7785
|
+
}),
|
|
7786
|
+
"aria-label": ariaLabel
|
|
7787
|
+
}),
|
|
7788
|
+
/*#__PURE__*/ jsx("span", {
|
|
7789
|
+
"aria-hidden": true,
|
|
7790
|
+
className: combobox_module.chevron,
|
|
7791
|
+
children: /*#__PURE__*/ jsx(Chevron, {})
|
|
7792
|
+
})
|
|
7793
|
+
]
|
|
7794
|
+
}),
|
|
7795
|
+
description ? /*#__PURE__*/ jsx("span", {
|
|
7796
|
+
className: combobox_module.description,
|
|
7797
|
+
id: descriptionId,
|
|
7798
|
+
children: description
|
|
7799
|
+
}) : null,
|
|
7800
|
+
errorMessage ? /*#__PURE__*/ jsx("span", {
|
|
7801
|
+
className: combobox_module.error,
|
|
7802
|
+
id: errorId,
|
|
7803
|
+
children: errorMessage
|
|
7804
|
+
}) : null,
|
|
7805
|
+
isOpen && !(allowsCustomValue && 0 === filteredOptions.length) && /*#__PURE__*/ jsx(FloatingPortal, {
|
|
7806
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
7807
|
+
ref: refs.setFloating,
|
|
7808
|
+
style: floatingStyles,
|
|
7809
|
+
...getFloatingProps({
|
|
7810
|
+
id: listboxId,
|
|
7811
|
+
"aria-label": ariaLabel,
|
|
7812
|
+
"aria-labelledby": labelId,
|
|
7813
|
+
className: combobox_module.listbox,
|
|
7814
|
+
role: "listbox"
|
|
7815
|
+
}),
|
|
7816
|
+
children: 0 === filteredOptions.length ? /*#__PURE__*/ jsx("div", {
|
|
7817
|
+
className: combobox_module.empty,
|
|
7818
|
+
children: noOptionsMessage
|
|
7819
|
+
}) : filteredOptions.map((option, index)=>/*#__PURE__*/ jsx("div", {
|
|
7820
|
+
ref: (node)=>{
|
|
7821
|
+
optionRefs.current[index] = node;
|
|
7822
|
+
},
|
|
7823
|
+
...getItemProps({
|
|
7824
|
+
id: `${listboxId}-option-${index}`,
|
|
7825
|
+
role: "option",
|
|
7826
|
+
"aria-selected": option.value === selectedValue,
|
|
7827
|
+
"aria-disabled": option.disabled,
|
|
7828
|
+
className: [
|
|
7829
|
+
combobox_module.option,
|
|
7830
|
+
index === activeIndex ? combobox_module.active : null,
|
|
7831
|
+
option.value === selectedValue ? combobox_module.selected : null,
|
|
7832
|
+
option.disabled ? combobox_module.optionDisabled : null
|
|
7833
|
+
].filter(Boolean).join(" "),
|
|
7834
|
+
onMouseDown: (e)=>{
|
|
7835
|
+
e.preventDefault();
|
|
7836
|
+
},
|
|
7837
|
+
onClick: ()=>{
|
|
7838
|
+
if (!option.disabled) selectOption(option);
|
|
7839
|
+
}
|
|
7840
|
+
}),
|
|
7841
|
+
children: option.label
|
|
7842
|
+
}, option.value))
|
|
6785
7843
|
})
|
|
6786
|
-
|
|
6787
|
-
|
|
7844
|
+
})
|
|
7845
|
+
]
|
|
6788
7846
|
});
|
|
6789
7847
|
});
|
|
6790
7848
|
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");
|
|
@@ -6931,247 +7989,469 @@ const Dialog = Object.assign(DialogRoot, {
|
|
|
6931
7989
|
Body: DialogBody,
|
|
6932
7990
|
Footer: DialogFooter
|
|
6933
7991
|
});
|
|
6934
|
-
const
|
|
6935
|
-
var
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
injectStylesIntoStyleTag_default()(
|
|
6942
|
-
const
|
|
6943
|
-
const
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
7992
|
+
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");
|
|
7993
|
+
var confirm_dialog_module_options = {};
|
|
7994
|
+
confirm_dialog_module_options.styleTagTransform = styleTagTransform_default();
|
|
7995
|
+
confirm_dialog_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
7996
|
+
confirm_dialog_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
7997
|
+
confirm_dialog_module_options.domAPI = styleDomAPI_default();
|
|
7998
|
+
confirm_dialog_module_options.insertStyleElement = insertStyleElement_default();
|
|
7999
|
+
injectStylesIntoStyleTag_default()(confirm_dialog_module_0.A, confirm_dialog_module_options);
|
|
8000
|
+
const confirm_dialog_module = confirm_dialog_module_0.A && confirm_dialog_module_0.A.locals ? confirm_dialog_module_0.A.locals : void 0;
|
|
8001
|
+
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");
|
|
8002
|
+
var popover_module_options = {};
|
|
8003
|
+
popover_module_options.styleTagTransform = styleTagTransform_default();
|
|
8004
|
+
popover_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8005
|
+
popover_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8006
|
+
popover_module_options.domAPI = styleDomAPI_default();
|
|
8007
|
+
popover_module_options.insertStyleElement = insertStyleElement_default();
|
|
8008
|
+
injectStylesIntoStyleTag_default()(popover_module_0.A, popover_module_options);
|
|
8009
|
+
const popover_module = popover_module_0.A && popover_module_0.A.locals ? popover_module_0.A.locals : void 0;
|
|
8010
|
+
function ConfirmDialog({ cancelLabel, children, confirmLabel, isOpen, isPending = false, onCancel, onConfirm, title, tone = "default" }) {
|
|
8011
|
+
const defaultConfirm = useMessage("ox0.confirm.confirm", "Confirm");
|
|
8012
|
+
const defaultCancel = useMessage("ox0.confirm.cancel", "Cancel");
|
|
8013
|
+
return /*#__PURE__*/ jsxs(Dialog, {
|
|
8014
|
+
isDismissDisabled: isPending,
|
|
8015
|
+
isEphemeral: !isPending,
|
|
8016
|
+
isOpen: isOpen,
|
|
8017
|
+
width: "sm",
|
|
8018
|
+
onClose: onCancel,
|
|
8019
|
+
children: [
|
|
8020
|
+
/*#__PURE__*/ jsx(Dialog.Header, {
|
|
8021
|
+
children: /*#__PURE__*/ jsx(Dialog.Title, {
|
|
8022
|
+
children: title
|
|
8023
|
+
})
|
|
8024
|
+
}),
|
|
8025
|
+
null != children ? /*#__PURE__*/ jsx(Dialog.Body, {
|
|
8026
|
+
children: children
|
|
8027
|
+
}) : null,
|
|
8028
|
+
/*#__PURE__*/ jsxs(Dialog.Footer, {
|
|
8029
|
+
children: [
|
|
8030
|
+
/*#__PURE__*/ jsx(button_Button, {
|
|
8031
|
+
isDisabled: isPending,
|
|
8032
|
+
onPress: onCancel,
|
|
8033
|
+
children: cancelLabel ?? defaultCancel
|
|
8034
|
+
}),
|
|
8035
|
+
/*#__PURE__*/ jsx(button_Button, {
|
|
8036
|
+
isDisabled: isPending,
|
|
8037
|
+
variant: "danger" === tone ? "danger" : "primary",
|
|
8038
|
+
onPress: onConfirm,
|
|
8039
|
+
children: confirmLabel ?? defaultConfirm
|
|
8040
|
+
})
|
|
8041
|
+
]
|
|
8042
|
+
})
|
|
8043
|
+
]
|
|
8044
|
+
});
|
|
6952
8045
|
}
|
|
6953
|
-
function
|
|
6954
|
-
const
|
|
6955
|
-
const
|
|
6956
|
-
const
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
8046
|
+
function ConfirmPopover({ anchor, cancelLabel, children, confirmLabel, isOpen, onCancel, onConfirm, placement = "bottom", title, tone = "default" }) {
|
|
8047
|
+
const id = useId();
|
|
8048
|
+
const titleId = `${id}-title`;
|
|
8049
|
+
const descriptionId = `${id}-description`;
|
|
8050
|
+
const defaultConfirm = useMessage("ox0.confirm.confirm", "Confirm");
|
|
8051
|
+
const defaultCancel = useMessage("ox0.confirm.cancel", "Cancel");
|
|
8052
|
+
const cancelRef = useRef(null);
|
|
8053
|
+
const { refs: { setFloating }, floatingStyles, context } = useFloating({
|
|
8054
|
+
elements: {
|
|
8055
|
+
reference: anchor
|
|
8056
|
+
},
|
|
8057
|
+
open: isOpen,
|
|
8058
|
+
onOpenChange: (open)=>{
|
|
8059
|
+
if (!open) onCancel();
|
|
8060
|
+
},
|
|
8061
|
+
placement,
|
|
8062
|
+
middleware: [
|
|
8063
|
+
offset(8),
|
|
8064
|
+
flip(),
|
|
8065
|
+
shift({
|
|
8066
|
+
padding: 8
|
|
8067
|
+
})
|
|
8068
|
+
],
|
|
8069
|
+
whileElementsMounted: autoUpdate
|
|
6960
8070
|
});
|
|
6961
|
-
const
|
|
6962
|
-
const
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
}, [
|
|
6969
|
-
isOpen
|
|
6970
|
-
]);
|
|
6971
|
-
const contextValue = useMemo(()=>({
|
|
6972
|
-
onClose,
|
|
6973
|
-
titleId
|
|
6974
|
-
}), [
|
|
6975
|
-
onClose,
|
|
6976
|
-
titleId
|
|
6977
|
-
]);
|
|
6978
|
-
useEffect(()=>{
|
|
6979
|
-
if (!isOpen) return;
|
|
6980
|
-
const handler = (e)=>{
|
|
6981
|
-
if ("Escape" === e.key) {
|
|
6982
|
-
e.preventDefault();
|
|
6983
|
-
if (!isDismissDisabled) onClose();
|
|
6984
|
-
}
|
|
6985
|
-
};
|
|
6986
|
-
document.addEventListener("keydown", handler);
|
|
6987
|
-
return ()=>document.removeEventListener("keydown", handler);
|
|
6988
|
-
}, [
|
|
6989
|
-
isDismissDisabled,
|
|
6990
|
-
isOpen,
|
|
6991
|
-
onClose
|
|
6992
|
-
]);
|
|
6993
|
-
useEffect(()=>{
|
|
6994
|
-
if (!isOpen || "overlay" !== variant) return;
|
|
6995
|
-
const handler = (e)=>{
|
|
6996
|
-
if (isDismissDisabled) return;
|
|
6997
|
-
if (!(e.target instanceof Node)) return;
|
|
6998
|
-
if (panelRef.current?.contains(e.target)) return;
|
|
6999
|
-
onClose();
|
|
7000
|
-
};
|
|
7001
|
-
document.addEventListener("pointerdown", handler);
|
|
7002
|
-
return ()=>document.removeEventListener("pointerdown", handler);
|
|
7003
|
-
}, [
|
|
7004
|
-
isDismissDisabled,
|
|
7005
|
-
isOpen,
|
|
7006
|
-
onClose,
|
|
7007
|
-
variant
|
|
8071
|
+
const dismiss = useDismiss(context);
|
|
8072
|
+
const role = useRole(context, {
|
|
8073
|
+
role: "alertdialog"
|
|
8074
|
+
});
|
|
8075
|
+
const { getFloatingProps } = useInteractions([
|
|
8076
|
+
dismiss,
|
|
8077
|
+
role
|
|
7008
8078
|
]);
|
|
7009
|
-
if (
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
8079
|
+
if (!isOpen) return null;
|
|
8080
|
+
return /*#__PURE__*/ jsx(FloatingPortal, {
|
|
8081
|
+
children: /*#__PURE__*/ jsx(FloatingFocusManager, {
|
|
8082
|
+
context: context,
|
|
8083
|
+
initialFocus: cancelRef,
|
|
8084
|
+
returnFocus: true,
|
|
8085
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
8086
|
+
ref: setFloating,
|
|
8087
|
+
"aria-describedby": null != children ? descriptionId : void 0,
|
|
8088
|
+
"aria-labelledby": titleId,
|
|
8089
|
+
className: `${popover_module.popover} ${confirm_dialog_module.popover}`,
|
|
8090
|
+
style: floatingStyles,
|
|
8091
|
+
...getFloatingProps(),
|
|
8092
|
+
children: [
|
|
8093
|
+
/*#__PURE__*/ jsx("h2", {
|
|
8094
|
+
className: confirm_dialog_module.title,
|
|
8095
|
+
id: titleId,
|
|
8096
|
+
children: title
|
|
8097
|
+
}),
|
|
8098
|
+
null != children ? /*#__PURE__*/ jsx("div", {
|
|
8099
|
+
className: confirm_dialog_module.description,
|
|
8100
|
+
id: descriptionId,
|
|
8101
|
+
children: children
|
|
8102
|
+
}) : null,
|
|
8103
|
+
/*#__PURE__*/ jsxs("div", {
|
|
8104
|
+
className: confirm_dialog_module.actions,
|
|
8105
|
+
children: [
|
|
8106
|
+
/*#__PURE__*/ jsx(button_Button, {
|
|
8107
|
+
ref: cancelRef,
|
|
8108
|
+
size: "sm",
|
|
8109
|
+
onPress: onCancel,
|
|
8110
|
+
children: cancelLabel ?? defaultCancel
|
|
8111
|
+
}),
|
|
8112
|
+
/*#__PURE__*/ jsx(button_Button, {
|
|
8113
|
+
size: "sm",
|
|
8114
|
+
variant: "danger" === tone ? "danger" : "primary",
|
|
8115
|
+
onPress: onConfirm,
|
|
8116
|
+
children: confirmLabel ?? defaultConfirm
|
|
8117
|
+
})
|
|
8118
|
+
]
|
|
8119
|
+
})
|
|
8120
|
+
]
|
|
8121
|
+
})
|
|
8122
|
+
})
|
|
8123
|
+
});
|
|
8124
|
+
}
|
|
8125
|
+
const ConfirmContext = /*#__PURE__*/ createContext(null);
|
|
8126
|
+
function useConfirm() {
|
|
8127
|
+
const confirm = useContext(ConfirmContext);
|
|
8128
|
+
if (!confirm) throw new Error("useConfirm must be used inside <Ox0Provider> or <ConfirmProvider>");
|
|
8129
|
+
return confirm;
|
|
8130
|
+
}
|
|
8131
|
+
function ConfirmProvider({ children }) {
|
|
8132
|
+
const [pending, setPending] = useState(null);
|
|
8133
|
+
const [shown, setShown] = useState(null);
|
|
8134
|
+
const pendingRef = useRef(null);
|
|
8135
|
+
const settle = useCallback((confirmed)=>{
|
|
8136
|
+
pendingRef.current?.resolve(confirmed);
|
|
8137
|
+
pendingRef.current = null;
|
|
8138
|
+
setPending(null);
|
|
8139
|
+
}, []);
|
|
8140
|
+
const confirm = useCallback((options)=>{
|
|
8141
|
+
pendingRef.current?.resolve(false);
|
|
8142
|
+
return new Promise((resolve)=>{
|
|
8143
|
+
const next = {
|
|
8144
|
+
options,
|
|
8145
|
+
resolve
|
|
8146
|
+
};
|
|
8147
|
+
pendingRef.current = next;
|
|
8148
|
+
setPending(next);
|
|
8149
|
+
setShown(options);
|
|
8150
|
+
});
|
|
8151
|
+
}, []);
|
|
8152
|
+
return /*#__PURE__*/ jsxs(ConfirmContext.Provider, {
|
|
8153
|
+
value: confirm,
|
|
8154
|
+
children: [
|
|
8155
|
+
children,
|
|
8156
|
+
shown?.anchor ? /*#__PURE__*/ jsx(ConfirmPopover, {
|
|
8157
|
+
anchor: shown.anchor,
|
|
8158
|
+
cancelLabel: shown.cancelLabel,
|
|
8159
|
+
confirmLabel: shown.confirmLabel,
|
|
8160
|
+
isOpen: null !== pending,
|
|
8161
|
+
title: shown.title,
|
|
8162
|
+
tone: shown.tone,
|
|
8163
|
+
onCancel: ()=>settle(false),
|
|
8164
|
+
onConfirm: ()=>settle(true),
|
|
8165
|
+
children: shown.description
|
|
8166
|
+
}) : shown ? /*#__PURE__*/ jsx(ConfirmDialog, {
|
|
8167
|
+
cancelLabel: shown.cancelLabel,
|
|
8168
|
+
confirmLabel: shown.confirmLabel,
|
|
8169
|
+
isOpen: null !== pending,
|
|
8170
|
+
title: shown.title,
|
|
8171
|
+
tone: shown.tone,
|
|
8172
|
+
onCancel: ()=>settle(false),
|
|
8173
|
+
onConfirm: ()=>settle(true),
|
|
8174
|
+
children: shown.description
|
|
8175
|
+
}) : null
|
|
8176
|
+
]
|
|
8177
|
+
});
|
|
8178
|
+
}
|
|
8179
|
+
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");
|
|
8180
|
+
var radio_group_module_options = {};
|
|
8181
|
+
radio_group_module_options.styleTagTransform = styleTagTransform_default();
|
|
8182
|
+
radio_group_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8183
|
+
radio_group_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8184
|
+
radio_group_module_options.domAPI = styleDomAPI_default();
|
|
8185
|
+
radio_group_module_options.insertStyleElement = insertStyleElement_default();
|
|
8186
|
+
injectStylesIntoStyleTag_default()(radio_group_module_0.A, radio_group_module_options);
|
|
8187
|
+
const radio_group_module = radio_group_module_0.A && radio_group_module_0.A.locals ? radio_group_module_0.A.locals : void 0;
|
|
8188
|
+
const RadioGroupContext = /*#__PURE__*/ createContext(null);
|
|
8189
|
+
function useRadioGroupContext() {
|
|
8190
|
+
const ctx = useContext(RadioGroupContext);
|
|
8191
|
+
if (!ctx) throw new Error("<Radio> must be used inside <RadioGroup>");
|
|
8192
|
+
return ctx;
|
|
8193
|
+
}
|
|
8194
|
+
const radio_group_RadioGroup = /*#__PURE__*/ forwardRef(function({ label, description, isInvalid, isDisabled = false, errorMessage, value: valueProp, defaultValue, onChange, orientation = "vertical", children, id: idProp, ...restProps }, ref) {
|
|
8195
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
8196
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
8197
|
+
const generatedId = useId();
|
|
8198
|
+
const id = idProp ?? generatedId;
|
|
8199
|
+
const descriptionId = description ? `${id}-description` : void 0;
|
|
8200
|
+
const errorId = errorMessage ? `${id}-error` : void 0;
|
|
8201
|
+
const invalid = isInvalid || !!errorMessage;
|
|
8202
|
+
const isControlled = void 0 !== valueProp;
|
|
8203
|
+
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
|
|
8204
|
+
const value = isControlled ? valueProp : uncontrolledValue;
|
|
8205
|
+
function handleChange(next) {
|
|
8206
|
+
if (!isControlled) setUncontrolledValue(next);
|
|
8207
|
+
onChange?.(next);
|
|
7040
8208
|
}
|
|
7041
|
-
const
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
8209
|
+
const ctx = useMemo(()=>({
|
|
8210
|
+
name: id,
|
|
8211
|
+
value,
|
|
8212
|
+
onChange: handleChange,
|
|
8213
|
+
isDisabled,
|
|
8214
|
+
isInvalid: invalid,
|
|
8215
|
+
descriptionId,
|
|
8216
|
+
errorId
|
|
8217
|
+
}), [
|
|
8218
|
+
id,
|
|
8219
|
+
value,
|
|
8220
|
+
isDisabled,
|
|
8221
|
+
invalid,
|
|
8222
|
+
descriptionId,
|
|
8223
|
+
errorId
|
|
8224
|
+
]);
|
|
8225
|
+
return /*#__PURE__*/ jsx(RadioGroupContext.Provider, {
|
|
8226
|
+
value: ctx,
|
|
8227
|
+
children: /*#__PURE__*/ jsxs("fieldset", {
|
|
8228
|
+
...props,
|
|
8229
|
+
ref: ref,
|
|
8230
|
+
"aria-describedby": [
|
|
8231
|
+
descriptionId,
|
|
8232
|
+
errorId
|
|
8233
|
+
].filter(Boolean).join(" ") || void 0,
|
|
8234
|
+
"aria-invalid": invalid || void 0,
|
|
8235
|
+
className: radio_group_module.fieldset,
|
|
8236
|
+
style: layoutStyle,
|
|
8237
|
+
disabled: isDisabled,
|
|
8238
|
+
id: id,
|
|
7060
8239
|
children: [
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
tabIndex: 0,
|
|
7071
|
-
onKeyDown: handleResizeKeyDown,
|
|
7072
|
-
onPointerDown: handleResizePointerDown,
|
|
7073
|
-
onPointerMove: handleResizePointerMove,
|
|
7074
|
-
onPointerUp: handleResizePointerUp
|
|
7075
|
-
}),
|
|
8240
|
+
label ? /*#__PURE__*/ jsx("legend", {
|
|
8241
|
+
className: `${radio_group_module.legend} ${field_module.label}`,
|
|
8242
|
+
children: label
|
|
8243
|
+
}) : null,
|
|
8244
|
+
description ? /*#__PURE__*/ jsx("span", {
|
|
8245
|
+
className: radio_group_module.description,
|
|
8246
|
+
id: descriptionId,
|
|
8247
|
+
children: description
|
|
8248
|
+
}) : null,
|
|
7076
8249
|
/*#__PURE__*/ jsx("div", {
|
|
7077
|
-
className:
|
|
8250
|
+
className: [
|
|
8251
|
+
radio_group_module.group,
|
|
8252
|
+
"horizontal" === orientation ? radio_group_module.horizontal : radio_group_module.vertical
|
|
8253
|
+
].join(" "),
|
|
7078
8254
|
children: children
|
|
8255
|
+
}),
|
|
8256
|
+
errorMessage ? /*#__PURE__*/ jsx("span", {
|
|
8257
|
+
className: radio_group_module.error,
|
|
8258
|
+
id: errorId,
|
|
8259
|
+
children: errorMessage
|
|
8260
|
+
}) : null
|
|
8261
|
+
]
|
|
8262
|
+
})
|
|
8263
|
+
});
|
|
8264
|
+
});
|
|
8265
|
+
const radio_group_Radio = /*#__PURE__*/ forwardRef(function({ value, label, description, isDisabled: isDisabledProp, id: idProp, children, ...props }, ref) {
|
|
8266
|
+
const ctx = useRadioGroupContext();
|
|
8267
|
+
const generatedId = useId();
|
|
8268
|
+
const id = idProp ?? generatedId;
|
|
8269
|
+
const descriptionId = description ? `${id}-description` : void 0;
|
|
8270
|
+
const isDisabled = isDisabledProp ?? ctx.isDisabled;
|
|
8271
|
+
const labelContent = label ?? children;
|
|
8272
|
+
return /*#__PURE__*/ jsx("div", {
|
|
8273
|
+
className: radio_group_module.item,
|
|
8274
|
+
children: /*#__PURE__*/ jsxs("label", {
|
|
8275
|
+
className: `${radio_group_module.itemLabel}${isDisabled ? ` ${radio_group_module.disabled}` : ""}`,
|
|
8276
|
+
children: [
|
|
8277
|
+
/*#__PURE__*/ jsx("input", {
|
|
8278
|
+
...props,
|
|
8279
|
+
ref: ref,
|
|
8280
|
+
"aria-describedby": [
|
|
8281
|
+
descriptionId,
|
|
8282
|
+
ctx.errorId
|
|
8283
|
+
].filter(Boolean).join(" ") || void 0,
|
|
8284
|
+
checked: ctx.value === value,
|
|
8285
|
+
className: `${choice_module.control} ${choice_module.radio}`,
|
|
8286
|
+
disabled: isDisabled,
|
|
8287
|
+
id: id,
|
|
8288
|
+
name: ctx.name,
|
|
8289
|
+
onChange: ()=>ctx.onChange(value),
|
|
8290
|
+
type: "radio",
|
|
8291
|
+
value: value
|
|
8292
|
+
}),
|
|
8293
|
+
/*#__PURE__*/ jsxs("span", {
|
|
8294
|
+
children: [
|
|
8295
|
+
labelContent ? /*#__PURE__*/ jsx("span", {
|
|
8296
|
+
children: labelContent
|
|
8297
|
+
}) : null,
|
|
8298
|
+
description ? /*#__PURE__*/ jsx("span", {
|
|
8299
|
+
className: radio_group_module.itemDescription,
|
|
8300
|
+
id: descriptionId,
|
|
8301
|
+
children: description
|
|
8302
|
+
}) : null
|
|
8303
|
+
]
|
|
7079
8304
|
})
|
|
7080
8305
|
]
|
|
7081
8306
|
})
|
|
7082
8307
|
});
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
8308
|
+
});
|
|
8309
|
+
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");
|
|
8310
|
+
var file_trigger_module_options = {};
|
|
8311
|
+
file_trigger_module_options.styleTagTransform = styleTagTransform_default();
|
|
8312
|
+
file_trigger_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8313
|
+
file_trigger_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8314
|
+
file_trigger_module_options.domAPI = styleDomAPI_default();
|
|
8315
|
+
file_trigger_module_options.insertStyleElement = insertStyleElement_default();
|
|
8316
|
+
injectStylesIntoStyleTag_default()(file_trigger_module_0.A, file_trigger_module_options);
|
|
8317
|
+
const file_trigger_module = file_trigger_module_0.A && file_trigger_module_0.A.locals ? file_trigger_module_0.A.locals : void 0;
|
|
8318
|
+
function matchesAccept(file, accept) {
|
|
8319
|
+
if (!accept) return true;
|
|
8320
|
+
const name = file.name.toLowerCase();
|
|
8321
|
+
const type = file.type.toLowerCase();
|
|
8322
|
+
return accept.split(",").map((t)=>t.trim().toLowerCase()).filter(Boolean).some((t)=>{
|
|
8323
|
+
if (t.startsWith(".")) return name.endsWith(t);
|
|
8324
|
+
if (t.endsWith("/*")) return type.startsWith(t.slice(0, -1));
|
|
8325
|
+
return type === t;
|
|
8326
|
+
});
|
|
8327
|
+
}
|
|
8328
|
+
const file_trigger_FileTrigger = /*#__PURE__*/ forwardRef(function({ accept, acceptDirectory = false, capture, children, isMultiple = false, name, onSelect, variant = "secondary", ...buttonProps }, ref) {
|
|
8329
|
+
const inputRef = useRef(null);
|
|
8330
|
+
function handleChange(e) {
|
|
8331
|
+
const files = Array.from(e.target.files ?? []);
|
|
8332
|
+
e.target.value = "";
|
|
8333
|
+
if (files.length > 0) onSelect(files);
|
|
7098
8334
|
}
|
|
7099
|
-
return /*#__PURE__*/
|
|
7100
|
-
className: drawer_module.overlayContainer,
|
|
7101
|
-
"data-placement": placement,
|
|
7102
|
-
children: panel
|
|
7103
|
-
}), document.body);
|
|
7104
|
-
}
|
|
7105
|
-
const drawer_CloseIcon = ()=>/*#__PURE__*/ jsxs("svg", {
|
|
7106
|
-
"aria-hidden": "true",
|
|
7107
|
-
fill: "none",
|
|
7108
|
-
height: "12",
|
|
7109
|
-
stroke: "currentColor",
|
|
7110
|
-
strokeLinecap: "round",
|
|
7111
|
-
strokeLinejoin: "round",
|
|
7112
|
-
strokeWidth: "2",
|
|
7113
|
-
viewBox: "0 0 12 12",
|
|
7114
|
-
width: "12",
|
|
8335
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
7115
8336
|
children: [
|
|
7116
|
-
/*#__PURE__*/ jsx(
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
8337
|
+
/*#__PURE__*/ jsx(button_Button, {
|
|
8338
|
+
ref: ref,
|
|
8339
|
+
...buttonProps,
|
|
8340
|
+
variant: variant,
|
|
8341
|
+
onPress: ()=>inputRef.current?.click(),
|
|
8342
|
+
children: children
|
|
7121
8343
|
}),
|
|
7122
|
-
/*#__PURE__*/ jsx("
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
8344
|
+
/*#__PURE__*/ jsx("input", {
|
|
8345
|
+
ref: inputRef,
|
|
8346
|
+
accept: accept,
|
|
8347
|
+
"aria-hidden": "true",
|
|
8348
|
+
capture: capture,
|
|
8349
|
+
className: file_trigger_module.input,
|
|
8350
|
+
multiple: isMultiple,
|
|
8351
|
+
name: name,
|
|
8352
|
+
tabIndex: -1,
|
|
8353
|
+
type: "file",
|
|
8354
|
+
onChange: handleChange,
|
|
8355
|
+
...acceptDirectory ? {
|
|
8356
|
+
webkitdirectory: ""
|
|
8357
|
+
} : {}
|
|
7127
8358
|
})
|
|
7128
8359
|
]
|
|
7129
8360
|
});
|
|
7130
|
-
|
|
7131
|
-
|
|
8361
|
+
});
|
|
8362
|
+
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");
|
|
8363
|
+
var drop_zone_module_options = {};
|
|
8364
|
+
drop_zone_module_options.styleTagTransform = styleTagTransform_default();
|
|
8365
|
+
drop_zone_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8366
|
+
drop_zone_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8367
|
+
drop_zone_module_options.domAPI = styleDomAPI_default();
|
|
8368
|
+
drop_zone_module_options.insertStyleElement = insertStyleElement_default();
|
|
8369
|
+
injectStylesIntoStyleTag_default()(drop_zone_module_0.A, drop_zone_module_options);
|
|
8370
|
+
const drop_zone_module = drop_zone_module_0.A && drop_zone_module_0.A.locals ? drop_zone_module_0.A.locals : void 0;
|
|
8371
|
+
const drop_zone_DropZone = /*#__PURE__*/ forwardRef(function(allProps, ref) {
|
|
8372
|
+
const [layout, { accept, buttonLabel, description, errorMessage, hint, isDisabled = false, isInvalid, isMultiple = false, label, name, onReject, onSelect }] = splitLayoutItemProps(allProps);
|
|
8373
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
8374
|
+
const id = useId();
|
|
8375
|
+
const labelId = `${id}-label`;
|
|
8376
|
+
const descriptionId = description ? `${id}-description` : void 0;
|
|
8377
|
+
const errorId = errorMessage ? `${id}-error` : void 0;
|
|
8378
|
+
const invalid = Boolean(isInvalid || errorMessage);
|
|
8379
|
+
const [isDropTarget, setIsDropTarget] = useState(false);
|
|
8380
|
+
const browse = useMessage("ox0.dropZone.browse", "Choose file");
|
|
8381
|
+
const browseMultiple = useMessage("ox0.dropZone.browseMultiple", "Choose files");
|
|
8382
|
+
function handleDragOver(e) {
|
|
8383
|
+
if (isDisabled || !e.dataTransfer.types.includes("Files")) return;
|
|
8384
|
+
e.preventDefault();
|
|
8385
|
+
e.dataTransfer.dropEffect = "copy";
|
|
8386
|
+
setIsDropTarget(true);
|
|
8387
|
+
}
|
|
8388
|
+
function handleDragLeave(e) {
|
|
8389
|
+
if (e.relatedTarget instanceof Node && e.currentTarget.contains(e.relatedTarget)) return;
|
|
8390
|
+
setIsDropTarget(false);
|
|
8391
|
+
}
|
|
8392
|
+
function handleDrop(e) {
|
|
8393
|
+
if (isDisabled) return;
|
|
8394
|
+
e.preventDefault();
|
|
8395
|
+
setIsDropTarget(false);
|
|
8396
|
+
const dropped = Array.from(e.dataTransfer.files);
|
|
8397
|
+
const matching = dropped.filter((f)=>matchesAccept(f, accept));
|
|
8398
|
+
const accepted = isMultiple ? matching : matching.slice(0, 1);
|
|
8399
|
+
const rejected = dropped.filter((f)=>!accepted.includes(f));
|
|
8400
|
+
if (accepted.length > 0) onSelect(accepted);
|
|
8401
|
+
if (rejected.length > 0) onReject?.(rejected);
|
|
8402
|
+
}
|
|
8403
|
+
const describedBy = [
|
|
8404
|
+
label ? labelId : void 0,
|
|
8405
|
+
descriptionId,
|
|
8406
|
+
errorId
|
|
8407
|
+
].filter(Boolean).join(" ") || void 0;
|
|
7132
8408
|
return /*#__PURE__*/ jsxs("div", {
|
|
7133
|
-
|
|
8409
|
+
ref: ref,
|
|
8410
|
+
className: drop_zone_module.root,
|
|
8411
|
+
style: layoutStyle,
|
|
7134
8412
|
children: [
|
|
7135
|
-
/*#__PURE__*/ jsx("
|
|
7136
|
-
className:
|
|
7137
|
-
|
|
8413
|
+
label ? /*#__PURE__*/ jsx("span", {
|
|
8414
|
+
className: field_module.label,
|
|
8415
|
+
id: labelId,
|
|
8416
|
+
children: label
|
|
8417
|
+
}) : null,
|
|
8418
|
+
/*#__PURE__*/ jsxs("div", {
|
|
8419
|
+
className: drop_zone_module.zone,
|
|
8420
|
+
"data-disabled": isDisabled || void 0,
|
|
8421
|
+
"data-drop-target": isDropTarget || void 0,
|
|
8422
|
+
"data-invalid": invalid || void 0,
|
|
8423
|
+
onDragLeave: handleDragLeave,
|
|
8424
|
+
onDragOver: handleDragOver,
|
|
8425
|
+
onDrop: handleDrop,
|
|
8426
|
+
children: [
|
|
8427
|
+
null != hint ? /*#__PURE__*/ jsx("p", {
|
|
8428
|
+
className: drop_zone_module.hint,
|
|
8429
|
+
children: hint
|
|
8430
|
+
}) : null,
|
|
8431
|
+
/*#__PURE__*/ jsx(file_trigger_FileTrigger, {
|
|
8432
|
+
accept: accept,
|
|
8433
|
+
"aria-describedby": describedBy,
|
|
8434
|
+
isDisabled: isDisabled,
|
|
8435
|
+
isMultiple: isMultiple,
|
|
8436
|
+
name: name,
|
|
8437
|
+
size: "sm",
|
|
8438
|
+
onSelect: onSelect,
|
|
8439
|
+
children: buttonLabel ?? (isMultiple ? browseMultiple : browse)
|
|
8440
|
+
})
|
|
8441
|
+
]
|
|
7138
8442
|
}),
|
|
7139
|
-
/*#__PURE__*/ jsx("
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
}
|
|
7149
|
-
|
|
7150
|
-
const { titleId } = useDrawerContext();
|
|
7151
|
-
return /*#__PURE__*/ jsx("h2", {
|
|
7152
|
-
id: titleId,
|
|
7153
|
-
className: drawer_module.title,
|
|
7154
|
-
children: children
|
|
7155
|
-
});
|
|
7156
|
-
}
|
|
7157
|
-
function DrawerBody({ children }) {
|
|
7158
|
-
return /*#__PURE__*/ jsx("div", {
|
|
7159
|
-
className: drawer_module.body,
|
|
7160
|
-
children: children
|
|
7161
|
-
});
|
|
7162
|
-
}
|
|
7163
|
-
function DrawerFooter({ children }) {
|
|
7164
|
-
return /*#__PURE__*/ jsx("div", {
|
|
7165
|
-
className: drawer_module.footer,
|
|
7166
|
-
children: children
|
|
8443
|
+
description ? /*#__PURE__*/ jsx("span", {
|
|
8444
|
+
className: drop_zone_module.description,
|
|
8445
|
+
id: descriptionId,
|
|
8446
|
+
children: description
|
|
8447
|
+
}) : null,
|
|
8448
|
+
errorMessage ? /*#__PURE__*/ jsx("span", {
|
|
8449
|
+
className: drop_zone_module.error,
|
|
8450
|
+
id: errorId,
|
|
8451
|
+
children: errorMessage
|
|
8452
|
+
}) : null
|
|
8453
|
+
]
|
|
7167
8454
|
});
|
|
7168
|
-
}
|
|
7169
|
-
const Drawer = Object.assign(DrawerRoot, {
|
|
7170
|
-
displayName: "Drawer",
|
|
7171
|
-
Header: DrawerHeader,
|
|
7172
|
-
Title: DrawerTitle,
|
|
7173
|
-
Body: DrawerBody,
|
|
7174
|
-
Footer: DrawerFooter
|
|
7175
8455
|
});
|
|
7176
8456
|
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");
|
|
7177
8457
|
var divider_module_options = {};
|
|
@@ -7208,7 +8488,7 @@ const levelClass = {
|
|
|
7208
8488
|
2: heading_module.h2 ?? "",
|
|
7209
8489
|
3: heading_module.h3 ?? ""
|
|
7210
8490
|
};
|
|
7211
|
-
const heading_Heading = /*#__PURE__*/ forwardRef(function({ children, id, level = 2 }, ref) {
|
|
8491
|
+
const heading_Heading = /*#__PURE__*/ forwardRef(function({ children, id, level = 2, variant = "default" }, ref) {
|
|
7212
8492
|
const anchorLabel = useMessage("ox0.heading.anchorLabel", "Link to {id}", {
|
|
7213
8493
|
id: id ?? ""
|
|
7214
8494
|
});
|
|
@@ -7218,7 +8498,7 @@ const heading_Heading = /*#__PURE__*/ forwardRef(function({ children, id, level
|
|
|
7218
8498
|
id,
|
|
7219
8499
|
className: [
|
|
7220
8500
|
heading_module.heading,
|
|
7221
|
-
levelClass[level]
|
|
8501
|
+
"eyebrow" === variant ? heading_module.eyebrow : levelClass[level]
|
|
7222
8502
|
].filter(Boolean).join(" ")
|
|
7223
8503
|
}, /*#__PURE__*/ jsxs(Fragment, {
|
|
7224
8504
|
children: [
|
|
@@ -7234,189 +8514,6 @@ const heading_Heading = /*#__PURE__*/ forwardRef(function({ children, id, level
|
|
|
7234
8514
|
]
|
|
7235
8515
|
}));
|
|
7236
8516
|
});
|
|
7237
|
-
const WARMUP_MS = 1000;
|
|
7238
|
-
const COOLDOWN_MS = 500;
|
|
7239
|
-
let warm = false;
|
|
7240
|
-
let cooldownTimer = null;
|
|
7241
|
-
const tooltipManager = {
|
|
7242
|
-
getDelay () {
|
|
7243
|
-
return warm ? 0 : WARMUP_MS;
|
|
7244
|
-
},
|
|
7245
|
-
onOpen () {
|
|
7246
|
-
if (null !== cooldownTimer) {
|
|
7247
|
-
clearTimeout(cooldownTimer);
|
|
7248
|
-
cooldownTimer = null;
|
|
7249
|
-
}
|
|
7250
|
-
warm = true;
|
|
7251
|
-
},
|
|
7252
|
-
onClose () {
|
|
7253
|
-
if (null !== cooldownTimer) clearTimeout(cooldownTimer);
|
|
7254
|
-
cooldownTimer = setTimeout(()=>{
|
|
7255
|
-
warm = false;
|
|
7256
|
-
cooldownTimer = null;
|
|
7257
|
-
}, COOLDOWN_MS);
|
|
7258
|
-
}
|
|
7259
|
-
};
|
|
7260
|
-
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");
|
|
7261
|
-
var tooltip_module_options = {};
|
|
7262
|
-
tooltip_module_options.styleTagTransform = styleTagTransform_default();
|
|
7263
|
-
tooltip_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
7264
|
-
tooltip_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
7265
|
-
tooltip_module_options.domAPI = styleDomAPI_default();
|
|
7266
|
-
tooltip_module_options.insertStyleElement = insertStyleElement_default();
|
|
7267
|
-
injectStylesIntoStyleTag_default()(tooltip_module_0.A, tooltip_module_options);
|
|
7268
|
-
const tooltip_module = tooltip_module_0.A && tooltip_module_0.A.locals ? tooltip_module_0.A.locals : void 0;
|
|
7269
|
-
const TooltipContext = /*#__PURE__*/ createContext(null);
|
|
7270
|
-
function useTooltipContext() {
|
|
7271
|
-
const ctx = useContext(TooltipContext);
|
|
7272
|
-
if (!ctx) throw new Error("TooltipTrigger and TooltipContent must be used inside <Tooltip>");
|
|
7273
|
-
return ctx;
|
|
7274
|
-
}
|
|
7275
|
-
function Tooltip({ children, placement = "top", isDisabled = false }) {
|
|
7276
|
-
const [open, setOpen] = useState(false);
|
|
7277
|
-
const openTimerRef = useRef(null);
|
|
7278
|
-
const isHoveringRef = useRef(false);
|
|
7279
|
-
const isFocusedRef = useRef(false);
|
|
7280
|
-
const clearOpenTimer = useCallback(()=>{
|
|
7281
|
-
if (null !== openTimerRef.current) {
|
|
7282
|
-
clearTimeout(openTimerRef.current);
|
|
7283
|
-
openTimerRef.current = null;
|
|
7284
|
-
}
|
|
7285
|
-
}, []);
|
|
7286
|
-
const { refs, floatingStyles, context } = useFloating({
|
|
7287
|
-
open,
|
|
7288
|
-
onOpenChange: (nextOpen)=>{
|
|
7289
|
-
if (!nextOpen) {
|
|
7290
|
-
clearOpenTimer();
|
|
7291
|
-
isHoveringRef.current = false;
|
|
7292
|
-
isFocusedRef.current = false;
|
|
7293
|
-
setOpen(false);
|
|
7294
|
-
tooltipManager.onClose();
|
|
7295
|
-
}
|
|
7296
|
-
},
|
|
7297
|
-
placement,
|
|
7298
|
-
middleware: [
|
|
7299
|
-
offset(8),
|
|
7300
|
-
flip(),
|
|
7301
|
-
shift({
|
|
7302
|
-
padding: 8
|
|
7303
|
-
})
|
|
7304
|
-
],
|
|
7305
|
-
whileElementsMounted: autoUpdate
|
|
7306
|
-
});
|
|
7307
|
-
const dismiss = useDismiss(context, {
|
|
7308
|
-
referencePress: false
|
|
7309
|
-
});
|
|
7310
|
-
const role = useRole(context, {
|
|
7311
|
-
role: "tooltip"
|
|
7312
|
-
});
|
|
7313
|
-
const { getReferenceProps, getFloatingProps } = useInteractions([
|
|
7314
|
-
dismiss,
|
|
7315
|
-
role
|
|
7316
|
-
]);
|
|
7317
|
-
const doOpen = useCallback(()=>{
|
|
7318
|
-
clearOpenTimer();
|
|
7319
|
-
setOpen(true);
|
|
7320
|
-
tooltipManager.onOpen();
|
|
7321
|
-
}, [
|
|
7322
|
-
clearOpenTimer
|
|
7323
|
-
]);
|
|
7324
|
-
const tryClose = useCallback(()=>{
|
|
7325
|
-
if (!isHoveringRef.current && !isFocusedRef.current) {
|
|
7326
|
-
clearOpenTimer();
|
|
7327
|
-
setOpen(false);
|
|
7328
|
-
tooltipManager.onClose();
|
|
7329
|
-
}
|
|
7330
|
-
}, [
|
|
7331
|
-
clearOpenTimer
|
|
7332
|
-
]);
|
|
7333
|
-
const referenceProps = getReferenceProps({
|
|
7334
|
-
onPointerEnter (e) {
|
|
7335
|
-
if ("touch" === e.pointerType) return;
|
|
7336
|
-
if (isHoveringRef.current) return;
|
|
7337
|
-
isHoveringRef.current = true;
|
|
7338
|
-
const delay = tooltipManager.getDelay();
|
|
7339
|
-
if (0 === delay) doOpen();
|
|
7340
|
-
else openTimerRef.current = setTimeout(()=>{
|
|
7341
|
-
openTimerRef.current = null;
|
|
7342
|
-
doOpen();
|
|
7343
|
-
}, delay);
|
|
7344
|
-
},
|
|
7345
|
-
onPointerLeave () {
|
|
7346
|
-
isHoveringRef.current = false;
|
|
7347
|
-
tryClose();
|
|
7348
|
-
},
|
|
7349
|
-
onFocus () {
|
|
7350
|
-
if (!hooks_isFocusVisible()) return;
|
|
7351
|
-
isFocusedRef.current = true;
|
|
7352
|
-
clearOpenTimer();
|
|
7353
|
-
doOpen();
|
|
7354
|
-
},
|
|
7355
|
-
onBlur () {
|
|
7356
|
-
isFocusedRef.current = false;
|
|
7357
|
-
tryClose();
|
|
7358
|
-
}
|
|
7359
|
-
});
|
|
7360
|
-
const value = {
|
|
7361
|
-
open,
|
|
7362
|
-
isDisabled,
|
|
7363
|
-
referenceRef: refs.setReference,
|
|
7364
|
-
floatingRef: refs.setFloating,
|
|
7365
|
-
floatingStyles,
|
|
7366
|
-
getReferenceProps: ()=>referenceProps,
|
|
7367
|
-
getFloatingProps
|
|
7368
|
-
};
|
|
7369
|
-
return /*#__PURE__*/ jsx(TooltipContext.Provider, {
|
|
7370
|
-
value: value,
|
|
7371
|
-
children: children
|
|
7372
|
-
});
|
|
7373
|
-
}
|
|
7374
|
-
function TooltipTrigger({ children }) {
|
|
7375
|
-
const { isDisabled, referenceRef, getReferenceProps } = useTooltipContext();
|
|
7376
|
-
const { ref: childRef, ...childProps } = children.props;
|
|
7377
|
-
const composedRef = useMergeRefs([
|
|
7378
|
-
referenceRef,
|
|
7379
|
-
childRef ?? null
|
|
7380
|
-
]);
|
|
7381
|
-
if (isDisabled) return children;
|
|
7382
|
-
return /*#__PURE__*/ cloneElement(children, {
|
|
7383
|
-
...getReferenceProps(childProps),
|
|
7384
|
-
ref: composedRef
|
|
7385
|
-
});
|
|
7386
|
-
}
|
|
7387
|
-
function TooltipContent({ children }) {
|
|
7388
|
-
const { open, floatingRef, floatingStyles, getFloatingProps } = useTooltipContext();
|
|
7389
|
-
if (!open) return null;
|
|
7390
|
-
return /*#__PURE__*/ jsx(FloatingPortal, {
|
|
7391
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
7392
|
-
ref: floatingRef,
|
|
7393
|
-
style: floatingStyles,
|
|
7394
|
-
className: tooltip_module.tooltip,
|
|
7395
|
-
...getFloatingProps(),
|
|
7396
|
-
children: children
|
|
7397
|
-
})
|
|
7398
|
-
});
|
|
7399
|
-
}
|
|
7400
|
-
const icon_button_IconButton = /*#__PURE__*/ forwardRef(function({ icon: Icon, label, size = "md", tooltipPlacement, variant = "circle", ...props }, ref) {
|
|
7401
|
-
return /*#__PURE__*/ jsxs(Tooltip, {
|
|
7402
|
-
placement: tooltipPlacement,
|
|
7403
|
-
children: [
|
|
7404
|
-
/*#__PURE__*/ jsx(TooltipTrigger, {
|
|
7405
|
-
children: /*#__PURE__*/ jsx(button_Button, {
|
|
7406
|
-
...props,
|
|
7407
|
-
ref: ref,
|
|
7408
|
-
"aria-label": label,
|
|
7409
|
-
icon: Icon,
|
|
7410
|
-
size: size,
|
|
7411
|
-
variant: variant
|
|
7412
|
-
})
|
|
7413
|
-
}),
|
|
7414
|
-
/*#__PURE__*/ jsx(TooltipContent, {
|
|
7415
|
-
children: label
|
|
7416
|
-
})
|
|
7417
|
-
]
|
|
7418
|
-
});
|
|
7419
|
-
});
|
|
7420
8517
|
const icon_toggle_IconToggle = /*#__PURE__*/ forwardRef(function({ isSelected: controlledSelected, defaultSelected = false, onChange, onPress, variant = "flat", ...props }, ref) {
|
|
7421
8518
|
const [isSelected, setIsSelected] = useControllableState({
|
|
7422
8519
|
value: controlledSelected,
|
|
@@ -8268,15 +9365,6 @@ function Menu({ "aria-label": ariaLabel, trigger, children }) {
|
|
|
8268
9365
|
]
|
|
8269
9366
|
});
|
|
8270
9367
|
}
|
|
8271
|
-
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");
|
|
8272
|
-
var popover_module_options = {};
|
|
8273
|
-
popover_module_options.styleTagTransform = styleTagTransform_default();
|
|
8274
|
-
popover_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8275
|
-
popover_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8276
|
-
popover_module_options.domAPI = styleDomAPI_default();
|
|
8277
|
-
popover_module_options.insertStyleElement = insertStyleElement_default();
|
|
8278
|
-
injectStylesIntoStyleTag_default()(popover_module_0.A, popover_module_options);
|
|
8279
|
-
const popover_module = popover_module_0.A && popover_module_0.A.locals ? popover_module_0.A.locals : void 0;
|
|
8280
9368
|
const PopoverContext = /*#__PURE__*/ createContext(null);
|
|
8281
9369
|
function usePopoverContext() {
|
|
8282
9370
|
const ctx = useContext(PopoverContext);
|
|
@@ -9108,6 +10196,7 @@ function flatOptions(options) {
|
|
|
9108
10196
|
const select_Select = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
9109
10197
|
const { ariaLabel, autoFocus, description, errorMessage, id, isDisabled, isInvalid, isRequired, label, name, options, placeholder } = props;
|
|
9110
10198
|
if (!label && !ariaLabel) throw new Error("Select requires `label` or `ariaLabel`.");
|
|
10199
|
+
const { style: layoutStyle } = useLayoutItem(props);
|
|
9111
10200
|
const isMultiple = "multiple" === props.selectionMode;
|
|
9112
10201
|
const all = useMemo(()=>flatOptions(options), [
|
|
9113
10202
|
options
|
|
@@ -9186,10 +10275,11 @@ const select_Select = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
9186
10275
|
}) : 1 === selected.length ? single?.label ?? selected[0]?.textValue : countLabel;
|
|
9187
10276
|
return /*#__PURE__*/ jsxs("div", {
|
|
9188
10277
|
className: select_module.root,
|
|
10278
|
+
style: layoutStyle,
|
|
9189
10279
|
children: [
|
|
9190
10280
|
label ? /*#__PURE__*/ jsx("span", {
|
|
9191
10281
|
...labelProps,
|
|
9192
|
-
className:
|
|
10282
|
+
className: field_module.label,
|
|
9193
10283
|
children: label
|
|
9194
10284
|
}) : null,
|
|
9195
10285
|
/*#__PURE__*/ jsx(HiddenSelect, {
|
|
@@ -9402,7 +10492,9 @@ switch_module_options.domAPI = styleDomAPI_default();
|
|
|
9402
10492
|
switch_module_options.insertStyleElement = insertStyleElement_default();
|
|
9403
10493
|
injectStylesIntoStyleTag_default()(switch_module_0.A, switch_module_options);
|
|
9404
10494
|
const switch_module = switch_module_0.A && switch_module_0.A.locals ? switch_module_0.A.locals : void 0;
|
|
9405
|
-
const switch_Switch = /*#__PURE__*/ forwardRef(function({ label, description, isDisabled, isInvalid, isSelected, defaultSelected, errorMessage, onChange, id: idProp, ...
|
|
10495
|
+
const switch_Switch = /*#__PURE__*/ forwardRef(function({ label, description, isDisabled, isInvalid, isSelected, defaultSelected, errorMessage, onChange, id: idProp, ...restProps }, ref) {
|
|
10496
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
10497
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
9406
10498
|
const generatedId = useId();
|
|
9407
10499
|
const id = idProp ?? generatedId;
|
|
9408
10500
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -9417,6 +10509,7 @@ const switch_Switch = /*#__PURE__*/ forwardRef(function({ label, description, is
|
|
|
9417
10509
|
const ariaChecked = isControlled ? isSelected : uncontrolledChecked;
|
|
9418
10510
|
return /*#__PURE__*/ jsxs("div", {
|
|
9419
10511
|
className: switch_module.root,
|
|
10512
|
+
style: layoutStyle,
|
|
9420
10513
|
children: [
|
|
9421
10514
|
/*#__PURE__*/ jsxs("label", {
|
|
9422
10515
|
className: `${switch_module.label}${isDisabled ? ` ${switch_module.disabled}` : ""}`,
|
|
@@ -9476,7 +10569,9 @@ text_field_module_options.domAPI = styleDomAPI_default();
|
|
|
9476
10569
|
text_field_module_options.insertStyleElement = insertStyleElement_default();
|
|
9477
10570
|
injectStylesIntoStyleTag_default()(text_field_module_0.A, text_field_module_options);
|
|
9478
10571
|
const text_field_module = text_field_module_0.A && text_field_module_0.A.locals ? text_field_module_0.A.locals : void 0;
|
|
9479
|
-
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, ...
|
|
10572
|
+
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) {
|
|
10573
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
10574
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
9480
10575
|
const generatedId = useId();
|
|
9481
10576
|
const id = idProp ?? generatedId;
|
|
9482
10577
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -9516,9 +10611,10 @@ const text_area_TextArea = /*#__PURE__*/ forwardRef(function({ ariaLabel, classN
|
|
|
9516
10611
|
}, []);
|
|
9517
10612
|
return /*#__PURE__*/ jsxs("div", {
|
|
9518
10613
|
className: text_field_module.root,
|
|
10614
|
+
style: layoutStyle,
|
|
9519
10615
|
children: [
|
|
9520
10616
|
label ? /*#__PURE__*/ jsx("label", {
|
|
9521
|
-
className:
|
|
10617
|
+
className: field_module.label,
|
|
9522
10618
|
htmlFor: id,
|
|
9523
10619
|
children: label
|
|
9524
10620
|
}) : null,
|
|
@@ -9570,7 +10666,9 @@ number_field_module_options.domAPI = styleDomAPI_default();
|
|
|
9570
10666
|
number_field_module_options.insertStyleElement = insertStyleElement_default();
|
|
9571
10667
|
injectStylesIntoStyleTag_default()(number_field_module_0.A, number_field_module_options);
|
|
9572
10668
|
const number_field_module = number_field_module_0.A && number_field_module_0.A.locals ? number_field_module_0.A.locals : void 0;
|
|
9573
|
-
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, ...
|
|
10669
|
+
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) {
|
|
10670
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
10671
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
9574
10672
|
const generatedId = useId();
|
|
9575
10673
|
const id = idProp ?? generatedId;
|
|
9576
10674
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -9712,9 +10810,10 @@ const number_field_NumberField = /*#__PURE__*/ forwardRef(function({ ariaLabel,
|
|
|
9712
10810
|
]);
|
|
9713
10811
|
return /*#__PURE__*/ jsxs("div", {
|
|
9714
10812
|
className: number_field_module.root,
|
|
10813
|
+
style: layoutStyle,
|
|
9715
10814
|
children: [
|
|
9716
10815
|
label ? /*#__PURE__*/ jsx("label", {
|
|
9717
|
-
className:
|
|
10816
|
+
className: field_module.label,
|
|
9718
10817
|
htmlFor: id,
|
|
9719
10818
|
children: label
|
|
9720
10819
|
}) : null,
|
|
@@ -9798,6 +10897,64 @@ const number_field_NumberField = /*#__PURE__*/ forwardRef(function({ ariaLabel,
|
|
|
9798
10897
|
]
|
|
9799
10898
|
});
|
|
9800
10899
|
});
|
|
10900
|
+
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");
|
|
10901
|
+
var page_module_options = {};
|
|
10902
|
+
page_module_options.styleTagTransform = styleTagTransform_default();
|
|
10903
|
+
page_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
10904
|
+
page_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
10905
|
+
page_module_options.domAPI = styleDomAPI_default();
|
|
10906
|
+
page_module_options.insertStyleElement = insertStyleElement_default();
|
|
10907
|
+
injectStylesIntoStyleTag_default()(page_module_0.A, page_module_options);
|
|
10908
|
+
const page_module = page_module_0.A && page_module_0.A.locals ? page_module_0.A.locals : void 0;
|
|
10909
|
+
const page_Page = /*#__PURE__*/ forwardRef(function({ children, maxWidth = "xl", gap = "xl", as: Tag = "main" }, ref) {
|
|
10910
|
+
const { style: sizingStyle } = useSizing({
|
|
10911
|
+
maxWidth
|
|
10912
|
+
});
|
|
10913
|
+
const { style: spacingStyle } = useSpacing({
|
|
10914
|
+
gap
|
|
10915
|
+
});
|
|
10916
|
+
return /*#__PURE__*/ jsx(Tag, {
|
|
10917
|
+
ref: ref,
|
|
10918
|
+
className: page_module.page,
|
|
10919
|
+
style: {
|
|
10920
|
+
...sizingStyle,
|
|
10921
|
+
...spacingStyle
|
|
10922
|
+
},
|
|
10923
|
+
children: children
|
|
10924
|
+
});
|
|
10925
|
+
});
|
|
10926
|
+
const page_PageHeader = /*#__PURE__*/ forwardRef(function({ title, description, actions, breadcrumbs, headingLevel = 1, id }, ref) {
|
|
10927
|
+
return /*#__PURE__*/ jsxs("header", {
|
|
10928
|
+
ref: ref,
|
|
10929
|
+
className: page_module.header,
|
|
10930
|
+
children: [
|
|
10931
|
+
breadcrumbs,
|
|
10932
|
+
/*#__PURE__*/ jsxs("div", {
|
|
10933
|
+
className: page_module.titleRow,
|
|
10934
|
+
children: [
|
|
10935
|
+
/*#__PURE__*/ jsxs("div", {
|
|
10936
|
+
className: page_module.titleBlock,
|
|
10937
|
+
children: [
|
|
10938
|
+
/*#__PURE__*/ jsx(heading_Heading, {
|
|
10939
|
+
level: headingLevel,
|
|
10940
|
+
id: id,
|
|
10941
|
+
children: title
|
|
10942
|
+
}),
|
|
10943
|
+
null != description ? /*#__PURE__*/ jsx("p", {
|
|
10944
|
+
className: page_module.description,
|
|
10945
|
+
children: description
|
|
10946
|
+
}) : null
|
|
10947
|
+
]
|
|
10948
|
+
}),
|
|
10949
|
+
null != actions ? /*#__PURE__*/ jsx("div", {
|
|
10950
|
+
className: page_module.actions,
|
|
10951
|
+
children: actions
|
|
10952
|
+
}) : null
|
|
10953
|
+
]
|
|
10954
|
+
})
|
|
10955
|
+
]
|
|
10956
|
+
});
|
|
10957
|
+
});
|
|
9801
10958
|
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");
|
|
9802
10959
|
var search_field_module_options = {};
|
|
9803
10960
|
search_field_module_options.styleTagTransform = styleTagTransform_default();
|
|
@@ -9807,7 +10964,9 @@ search_field_module_options.domAPI = styleDomAPI_default();
|
|
|
9807
10964
|
search_field_module_options.insertStyleElement = insertStyleElement_default();
|
|
9808
10965
|
injectStylesIntoStyleTag_default()(search_field_module_0.A, search_field_module_options);
|
|
9809
10966
|
const search_field_module = search_field_module_0.A && search_field_module_0.A.locals ? search_field_module_0.A.locals : void 0;
|
|
9810
|
-
const search_field_SearchField = /*#__PURE__*/ forwardRef(function({ ariaLabel, description, errorMessage, id: idProp, isDisabled, isInvalid, label, onBlur, onChange, onFocus, onKeyDown, onPointerDown, value, defaultValue, ...
|
|
10967
|
+
const search_field_SearchField = /*#__PURE__*/ forwardRef(function({ ariaLabel, description, errorMessage, id: idProp, isDisabled, isInvalid, label, onBlur, onChange, onFocus, onKeyDown, onPointerDown, value, defaultValue, ...restProps }, ref) {
|
|
10968
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
10969
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
9811
10970
|
const generatedId = useId();
|
|
9812
10971
|
const id = idProp ?? generatedId;
|
|
9813
10972
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -9847,9 +11006,10 @@ const search_field_SearchField = /*#__PURE__*/ forwardRef(function({ ariaLabel,
|
|
|
9847
11006
|
]);
|
|
9848
11007
|
return /*#__PURE__*/ jsxs("search", {
|
|
9849
11008
|
className: search_field_module.root,
|
|
11009
|
+
style: layoutStyle,
|
|
9850
11010
|
children: [
|
|
9851
11011
|
label ? /*#__PURE__*/ jsx("label", {
|
|
9852
|
-
className:
|
|
11012
|
+
className: field_module.label,
|
|
9853
11013
|
htmlFor: id,
|
|
9854
11014
|
children: label
|
|
9855
11015
|
}) : null,
|
|
@@ -9962,7 +11122,9 @@ slider_module_options.domAPI = styleDomAPI_default();
|
|
|
9962
11122
|
slider_module_options.insertStyleElement = insertStyleElement_default();
|
|
9963
11123
|
injectStylesIntoStyleTag_default()(slider_module_0.A, slider_module_options);
|
|
9964
11124
|
const slider_module = slider_module_0.A && slider_module_0.A.locals ? slider_module_0.A.locals : void 0;
|
|
9965
|
-
const slider_Slider = /*#__PURE__*/ forwardRef(function({ ariaLabel, defaultValue, description, errorMessage, id: idProp, isDisabled, isInvalid, label, max = 100, min = 0, onChange, onKeyDown, step = 1, value, ...
|
|
11125
|
+
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) {
|
|
11126
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
11127
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
9966
11128
|
const generatedId = useId();
|
|
9967
11129
|
const id = idProp ?? generatedId;
|
|
9968
11130
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -10025,9 +11187,10 @@ const slider_Slider = /*#__PURE__*/ forwardRef(function({ ariaLabel, defaultValu
|
|
|
10025
11187
|
]);
|
|
10026
11188
|
return /*#__PURE__*/ jsxs("div", {
|
|
10027
11189
|
className: slider_module.root,
|
|
11190
|
+
style: layoutStyle,
|
|
10028
11191
|
children: [
|
|
10029
11192
|
label ? /*#__PURE__*/ jsx("label", {
|
|
10030
|
-
className:
|
|
11193
|
+
className: field_module.label,
|
|
10031
11194
|
htmlFor: id,
|
|
10032
11195
|
children: label
|
|
10033
11196
|
}) : null,
|
|
@@ -10079,6 +11242,11 @@ table_module_options.domAPI = styleDomAPI_default();
|
|
|
10079
11242
|
table_module_options.insertStyleElement = insertStyleElement_default();
|
|
10080
11243
|
injectStylesIntoStyleTag_default()(table_module_0.A, table_module_options);
|
|
10081
11244
|
const table_module = table_module_0.A && table_module_0.A.locals ? table_module_0.A.locals : void 0;
|
|
11245
|
+
const alignClass = {
|
|
11246
|
+
start: void 0,
|
|
11247
|
+
center: table_module.alignCenter,
|
|
11248
|
+
end: table_module.alignEnd
|
|
11249
|
+
};
|
|
10082
11250
|
const TableContext = /*#__PURE__*/ createContext(null);
|
|
10083
11251
|
function useTableContext() {
|
|
10084
11252
|
const ctx = useContext(TableContext);
|
|
@@ -10232,13 +11400,16 @@ function TableHeader({ children }) {
|
|
|
10232
11400
|
})
|
|
10233
11401
|
});
|
|
10234
11402
|
}
|
|
10235
|
-
function TableColumn({ id, isSortable, children }) {
|
|
11403
|
+
function TableColumn({ id, isSortable, align = "start", children }) {
|
|
10236
11404
|
const { sortColumn, sortDirection, toggleSort } = useTableContext();
|
|
10237
11405
|
const isCurrentSort = Boolean(isSortable && void 0 !== id && sortColumn === id);
|
|
10238
11406
|
const ariaSort = isSortable ? isCurrentSort && null != sortDirection ? sortDirection : "none" : void 0;
|
|
10239
11407
|
return /*#__PURE__*/ jsx("th", {
|
|
10240
11408
|
scope: "col",
|
|
10241
|
-
className:
|
|
11409
|
+
className: [
|
|
11410
|
+
table_module.th,
|
|
11411
|
+
alignClass[align]
|
|
11412
|
+
].filter(Boolean).join(" "),
|
|
10242
11413
|
"aria-sort": ariaSort,
|
|
10243
11414
|
children: isSortable && void 0 !== id ? /*#__PURE__*/ jsxs("button", {
|
|
10244
11415
|
className: table_module.sortButton,
|
|
@@ -10275,10 +11446,13 @@ function TableRow({ id, children }) {
|
|
|
10275
11446
|
children: children
|
|
10276
11447
|
});
|
|
10277
11448
|
}
|
|
10278
|
-
function TableCell({ children }) {
|
|
11449
|
+
function TableCell({ align = "start", children }) {
|
|
10279
11450
|
const { isGrid } = useTableContext();
|
|
10280
11451
|
return /*#__PURE__*/ jsx("td", {
|
|
10281
|
-
className:
|
|
11452
|
+
className: [
|
|
11453
|
+
table_module.td,
|
|
11454
|
+
alignClass[align]
|
|
11455
|
+
].filter(Boolean).join(" "),
|
|
10282
11456
|
role: isGrid ? "gridcell" : void 0,
|
|
10283
11457
|
tabIndex: isGrid ? -1 : void 0,
|
|
10284
11458
|
children: children
|
|
@@ -10299,7 +11473,9 @@ function useTagGroupContext() {
|
|
|
10299
11473
|
if (!ctx) throw new Error("<Tag> must be used inside <TagGroup>");
|
|
10300
11474
|
return ctx;
|
|
10301
11475
|
}
|
|
10302
|
-
function TagGroup(
|
|
11476
|
+
function TagGroup(allProps) {
|
|
11477
|
+
const [layout, { label, description, isInvalid, isDisabled = false, errorMessage, selectionMode = "multiple", selectedKeys: selectedKeysProp, defaultSelectedKeys, onSelectionChange, onRemove, ariaLabel, children }] = splitLayoutItemProps(allProps);
|
|
11478
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
10303
11479
|
const uid = useId();
|
|
10304
11480
|
const labelId = label ? `${uid}-label` : void 0;
|
|
10305
11481
|
const descriptionId = description ? `${uid}-description` : void 0;
|
|
@@ -10444,9 +11620,10 @@ function TagGroup({ label, description, isInvalid, isDisabled = false, errorMess
|
|
|
10444
11620
|
value: ctx,
|
|
10445
11621
|
children: /*#__PURE__*/ jsxs("div", {
|
|
10446
11622
|
className: tag_group_module.root,
|
|
11623
|
+
style: layoutStyle,
|
|
10447
11624
|
children: [
|
|
10448
11625
|
label ? /*#__PURE__*/ jsx("span", {
|
|
10449
|
-
className:
|
|
11626
|
+
className: field_module.label,
|
|
10450
11627
|
id: labelId,
|
|
10451
11628
|
children: label
|
|
10452
11629
|
}) : null,
|
|
@@ -10540,7 +11717,9 @@ function tag_group_Tag({ id, isDisabled: isDisabledProp, children }) {
|
|
|
10540
11717
|
children: children
|
|
10541
11718
|
});
|
|
10542
11719
|
}
|
|
10543
|
-
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", ...
|
|
11720
|
+
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) {
|
|
11721
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
11722
|
+
const [, props] = splitLayoutItemProps(restProps);
|
|
10544
11723
|
const generatedId = useId();
|
|
10545
11724
|
const id = idProp ?? generatedId;
|
|
10546
11725
|
const descriptionId = description ? `${id}-description` : void 0;
|
|
@@ -10571,9 +11750,10 @@ const text_field_TextField = /*#__PURE__*/ forwardRef(function({ ariaLabel, desc
|
|
|
10571
11750
|
]);
|
|
10572
11751
|
return /*#__PURE__*/ jsxs("div", {
|
|
10573
11752
|
className: text_field_module.root,
|
|
11753
|
+
style: layoutStyle,
|
|
10574
11754
|
children: [
|
|
10575
11755
|
label ? /*#__PURE__*/ jsx("label", {
|
|
10576
|
-
className:
|
|
11756
|
+
className: field_module.label,
|
|
10577
11757
|
htmlFor: id,
|
|
10578
11758
|
children: label
|
|
10579
11759
|
}) : null,
|
|
@@ -10659,12 +11839,54 @@ const text_field_TextField = /*#__PURE__*/ forwardRef(function({ ariaLabel, desc
|
|
|
10659
11839
|
]
|
|
10660
11840
|
});
|
|
10661
11841
|
});
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
10665
|
-
|
|
11842
|
+
const responsiveKeys = [
|
|
11843
|
+
"base",
|
|
11844
|
+
"sm",
|
|
11845
|
+
"md",
|
|
11846
|
+
"lg",
|
|
11847
|
+
"xl"
|
|
11848
|
+
];
|
|
11849
|
+
function isResponsiveObject(value) {
|
|
11850
|
+
return "object" == typeof value && null !== value && !Array.isArray(value) && Object.keys(value).every((key)=>responsiveKeys.some((k)=>k === key));
|
|
11851
|
+
}
|
|
11852
|
+
function byBreakpoint(value) {
|
|
11853
|
+
if (isResponsiveObject(value)) return value;
|
|
11854
|
+
return {
|
|
11855
|
+
base: value
|
|
11856
|
+
};
|
|
11857
|
+
}
|
|
11858
|
+
function responsiveVars(name, value, resolve) {
|
|
11859
|
+
const vars = {};
|
|
11860
|
+
const byKey = void 0 === value ? void 0 : byBreakpoint(value);
|
|
11861
|
+
for (const key of responsiveKeys){
|
|
11862
|
+
const v = byKey?.[key];
|
|
11863
|
+
vars[`--${name}-${key}`] = void 0 === v ? "initial" : resolve(v);
|
|
11864
|
+
}
|
|
11865
|
+
return vars;
|
|
10666
11866
|
}
|
|
10667
|
-
const
|
|
11867
|
+
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");
|
|
11868
|
+
var grid_module_options = {};
|
|
11869
|
+
grid_module_options.styleTagTransform = styleTagTransform_default();
|
|
11870
|
+
grid_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
11871
|
+
grid_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
11872
|
+
grid_module_options.domAPI = styleDomAPI_default();
|
|
11873
|
+
grid_module_options.insertStyleElement = insertStyleElement_default();
|
|
11874
|
+
injectStylesIntoStyleTag_default()(grid_module_0.A, grid_module_options);
|
|
11875
|
+
const grid_module = grid_module_0.A && grid_module_0.A.locals ? grid_module_0.A.locals : void 0;
|
|
11876
|
+
function resolveTracks(value) {
|
|
11877
|
+
if ("number" == typeof value) return `repeat(${value}, minmax(0, 1fr))`;
|
|
11878
|
+
if ("string" == typeof value) return value;
|
|
11879
|
+
return value.join(" ");
|
|
11880
|
+
}
|
|
11881
|
+
function resolveAreas(value) {
|
|
11882
|
+
return value.map((row)=>`"${row.join(" ")}"`).join(" ");
|
|
11883
|
+
}
|
|
11884
|
+
function grid_resolveSize(value) {
|
|
11885
|
+
return "number" == typeof value ? `${value}px` : value;
|
|
11886
|
+
}
|
|
11887
|
+
const grid_Grid = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
11888
|
+
const [layout, { children, columns, minColumnWidth, rows, areas, alignItems, as: Tag = "div", gap = "md", padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft }] = splitLayoutItemProps(props);
|
|
11889
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
10668
11890
|
const { style: spacingStyle } = useSpacing({
|
|
10669
11891
|
gap,
|
|
10670
11892
|
padding,
|
|
@@ -10675,18 +11897,19 @@ const grid_Grid = /*#__PURE__*/ forwardRef(function({ children, columns = "repea
|
|
|
10675
11897
|
paddingBottom,
|
|
10676
11898
|
paddingLeft
|
|
10677
11899
|
});
|
|
10678
|
-
const
|
|
10679
|
-
|
|
10680
|
-
|
|
11900
|
+
const style = {
|
|
11901
|
+
...responsiveVars("ox0-grid-columns", columns, resolveTracks),
|
|
11902
|
+
...responsiveVars("ox0-grid-rows", rows, resolveTracks),
|
|
11903
|
+
...responsiveVars("ox0-grid-areas", areas, resolveAreas),
|
|
11904
|
+
"--ox0-grid-min-column": void 0 === minColumnWidth ? "initial" : grid_resolveSize(minColumnWidth),
|
|
11905
|
+
alignItems,
|
|
11906
|
+
...layoutStyle,
|
|
11907
|
+
...spacingStyle
|
|
11908
|
+
};
|
|
10681
11909
|
return /*#__PURE__*/ jsx(Tag, {
|
|
10682
11910
|
ref: ref,
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
gridTemplateColumns,
|
|
10686
|
-
gridTemplateRows,
|
|
10687
|
-
gridTemplateAreas,
|
|
10688
|
-
...spacingStyle
|
|
10689
|
-
},
|
|
11911
|
+
className: grid_module.grid,
|
|
11912
|
+
style: style,
|
|
10690
11913
|
children: children
|
|
10691
11914
|
});
|
|
10692
11915
|
});
|
|
@@ -10697,7 +11920,9 @@ const split_alignMap = {
|
|
|
10697
11920
|
stretch: "stretch",
|
|
10698
11921
|
baseline: "baseline"
|
|
10699
11922
|
};
|
|
10700
|
-
const split_Split = /*#__PURE__*/ forwardRef(function(
|
|
11923
|
+
const split_Split = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
11924
|
+
const [layout, { children, align = "center", as: Tag = "div", gap = "md", padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft }] = splitLayoutItemProps(props);
|
|
11925
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
10701
11926
|
const { style: spacingStyle } = useSpacing({
|
|
10702
11927
|
gap,
|
|
10703
11928
|
padding,
|
|
@@ -10714,6 +11939,7 @@ const split_Split = /*#__PURE__*/ forwardRef(function({ children, align = "cente
|
|
|
10714
11939
|
alignItems: split_alignMap[align],
|
|
10715
11940
|
display: "flex",
|
|
10716
11941
|
justifyContent: "space-between",
|
|
11942
|
+
...layoutStyle,
|
|
10717
11943
|
...spacingStyle
|
|
10718
11944
|
},
|
|
10719
11945
|
children: children
|
|
@@ -10725,10 +11951,9 @@ const stack_alignMap = {
|
|
|
10725
11951
|
end: "flex-end",
|
|
10726
11952
|
stretch: "stretch"
|
|
10727
11953
|
};
|
|
10728
|
-
const stack_Stack = /*#__PURE__*/ forwardRef(function(
|
|
10729
|
-
const {
|
|
10730
|
-
|
|
10731
|
-
});
|
|
11954
|
+
const stack_Stack = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
11955
|
+
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);
|
|
11956
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
10732
11957
|
const { style: spacingStyle } = useSpacing({
|
|
10733
11958
|
gap,
|
|
10734
11959
|
padding,
|
|
@@ -10757,7 +11982,7 @@ const stack_Stack = /*#__PURE__*/ forwardRef(function({ children, align = "stret
|
|
|
10757
11982
|
alignItems: stack_alignMap[align],
|
|
10758
11983
|
display: "flex",
|
|
10759
11984
|
flexDirection: "column",
|
|
10760
|
-
...
|
|
11985
|
+
...layoutStyle,
|
|
10761
11986
|
...spacingStyle,
|
|
10762
11987
|
...bordersStyle,
|
|
10763
11988
|
...surfaceStyle
|
|
@@ -10765,6 +11990,15 @@ const stack_Stack = /*#__PURE__*/ forwardRef(function({ children, align = "stret
|
|
|
10765
11990
|
children: children
|
|
10766
11991
|
});
|
|
10767
11992
|
});
|
|
11993
|
+
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");
|
|
11994
|
+
var ox0_provider_module_options = {};
|
|
11995
|
+
ox0_provider_module_options.styleTagTransform = styleTagTransform_default();
|
|
11996
|
+
ox0_provider_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
11997
|
+
ox0_provider_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
11998
|
+
ox0_provider_module_options.domAPI = styleDomAPI_default();
|
|
11999
|
+
ox0_provider_module_options.insertStyleElement = insertStyleElement_default();
|
|
12000
|
+
injectStylesIntoStyleTag_default()(ox0_provider_module_0.A, ox0_provider_module_options);
|
|
12001
|
+
const ox0_provider_module = ox0_provider_module_0.A && ox0_provider_module_0.A.locals ? ox0_provider_module_0.A.locals : void 0;
|
|
10768
12002
|
function Ox0Provider({ children, colorScheme, density, locale, messages, navigate, neutralTheme, textStyles, tokenOverrides }) {
|
|
10769
12003
|
const themeVars = tokenOverrides ? createTheme(tokenOverrides) : void 0;
|
|
10770
12004
|
const textStyleVars = textStyles ? createTextStyles(textStyles) : void 0;
|
|
@@ -10777,21 +12011,23 @@ function Ox0Provider({ children, colorScheme, density, locale, messages, navigat
|
|
|
10777
12011
|
locale: locale,
|
|
10778
12012
|
messages: messages,
|
|
10779
12013
|
children: /*#__PURE__*/ jsx(ToastProvider, {
|
|
10780
|
-
children: /*#__PURE__*/ jsx(
|
|
10781
|
-
|
|
10782
|
-
|
|
10783
|
-
"
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
12014
|
+
children: /*#__PURE__*/ jsx(ConfirmProvider, {
|
|
12015
|
+
children: /*#__PURE__*/ jsx(RouterContext.Provider, {
|
|
12016
|
+
value: routerValue,
|
|
12017
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
12018
|
+
className: ox0_provider_module.root,
|
|
12019
|
+
"data-theme": neutralTheme,
|
|
12020
|
+
"data-color-scheme": dataColorScheme,
|
|
12021
|
+
"data-density": dataDensity,
|
|
12022
|
+
style: {
|
|
12023
|
+
...themeVars,
|
|
12024
|
+
...textStyleVars
|
|
12025
|
+
},
|
|
12026
|
+
children: children
|
|
12027
|
+
})
|
|
10792
12028
|
})
|
|
10793
12029
|
})
|
|
10794
12030
|
})
|
|
10795
12031
|
});
|
|
10796
12032
|
}
|
|
10797
|
-
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 };
|
|
12033
|
+
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, useConfirm, useFlexItem, useGridItem, useLayoutItem, useListItemState, useMark, usePlacement, useSizing, useSpacing, useSurface, useToast };
|