@ox0/ui 3.5.0 → 3.7.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/date-field.d.ts +39 -0
- package/dist/components/date-field.d.ts.map +1 -0
- package/dist/components/date-field.test.d.ts +2 -0
- package/dist/components/date-field.test.d.ts.map +1 -0
- package/dist/components/global-search.d.ts +53 -0
- package/dist/components/global-search.d.ts.map +1 -0
- package/dist/components/global-search.test.d.ts +2 -0
- package/dist/components/global-search.test.d.ts.map +1 -0
- package/dist/components/search-runner.d.ts +75 -0
- package/dist/components/search-runner.d.ts.map +1 -0
- package/dist/components/search-runner.test.d.ts +2 -0
- package/dist/components/search-runner.test.d.ts.map +1 -0
- package/dist/components/select.d.ts.map +1 -1
- package/dist/components/theme-root.d.ts +2 -0
- package/dist/components/theme-root.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1592 -366
- package/dist/messages.d.ts +11 -0
- package/dist/messages.d.ts.map +1 -1
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { Children, Fragment as external_react_Fragment, cloneElement, createContext, createElement, forwardRef, isValidElement, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { isFocusVisible as hooks_isFocusVisible, useControllableState, useMediaQuery, usePress } from "@ox0/hooks";
|
|
3
|
+
import { isFocusVisible as hooks_isFocusVisible, useControllableState, useMediaQuery, useOS, usePress } from "@ox0/hooks";
|
|
4
4
|
import { Ox0I18nProvider, toDateTimeAttribute, useDateFormat, useMessage } from "@ox0/i18n";
|
|
5
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
|
-
import { DismissButton, HiddenSelect, Overlay, mergeProps, useButton, useFocusRing, useListBox, useListBoxSection, useObjectRef, useOption, usePopover, useSelect } from "react-aria";
|
|
8
|
-
import { Item, Section, useListState, useSelectState } from "react-stately";
|
|
6
|
+
import { FloatingFocusManager, FloatingPortal, autoUpdate, flip, offset as react_offset, shift, size as react_size, useClick, useDismiss, useFloating, useInteractions, useListNavigation, useMergeRefs, useRole } from "@floating-ui/react";
|
|
7
|
+
import { DismissButton, HiddenSelect, Overlay, mergeProps, useButton, useDateField, useDateSegment, useFocusRing, useListBox, useListBoxSection, useObjectRef, useOption, usePopover, useSelect } from "react-aria";
|
|
8
|
+
import { Item, Section, useDateFieldState, useListState, useSelectState } from "react-stately";
|
|
9
|
+
import { createCalendar, parseDate } from "@internationalized/date";
|
|
10
|
+
import { IntlContext } from "react-intl";
|
|
9
11
|
import { breakpoints, createTheme, readThemePreference, writeThemePreference } from "@ox0/tokens";
|
|
10
12
|
import "@ox0/tokens/styles.css";
|
|
11
13
|
var __webpack_modules__ = {};
|
|
@@ -1273,11 +1275,13 @@ __webpack_require__.add({
|
|
|
1273
1275
|
module.id,
|
|
1274
1276
|
`.fieldset-ppnMnv {
|
|
1275
1277
|
color: var(--ox0-color-foreground);
|
|
1278
|
+
min-width: 0;
|
|
1276
1279
|
align-content: start;
|
|
1277
1280
|
gap: var(--ox0-space-xs);
|
|
1278
|
-
min-
|
|
1281
|
+
min-inline-size: 0;
|
|
1279
1282
|
font-size: var(--ox0-font-size-md);
|
|
1280
1283
|
border: none;
|
|
1284
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1281
1285
|
margin: 0;
|
|
1282
1286
|
padding: 0;
|
|
1283
1287
|
display: grid;
|
|
@@ -1368,9 +1372,11 @@ __webpack_require__.add({
|
|
|
1368
1372
|
___CSS_LOADER_EXPORT___.push([
|
|
1369
1373
|
module.id,
|
|
1370
1374
|
`.root-ZfGmPt {
|
|
1375
|
+
min-inline-size: 0;
|
|
1371
1376
|
font-size: var(--ox0-font-size-md);
|
|
1372
1377
|
align-content: start;
|
|
1373
1378
|
gap: var(--ox0-space-xs);
|
|
1379
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1374
1380
|
display: grid;
|
|
1375
1381
|
}
|
|
1376
1382
|
|
|
@@ -1555,6 +1561,8 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
1555
1561
|
`.root-WkZ_BN {
|
|
1556
1562
|
align-content: start;
|
|
1557
1563
|
gap: var(--ox0-space-xs);
|
|
1564
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1565
|
+
min-inline-size: 0;
|
|
1558
1566
|
display: grid;
|
|
1559
1567
|
}
|
|
1560
1568
|
|
|
@@ -1736,6 +1744,116 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
1736
1744
|
A: __rspack_default_export
|
|
1737
1745
|
});
|
|
1738
1746
|
},
|
|
1747
|
+
"../../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/date-field.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
1748
|
+
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");
|
|
1749
|
+
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);
|
|
1750
|
+
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");
|
|
1751
|
+
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);
|
|
1752
|
+
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());
|
|
1753
|
+
___CSS_LOADER_EXPORT___.push([
|
|
1754
|
+
module.id,
|
|
1755
|
+
`.root-jhFRmC {
|
|
1756
|
+
color: var(--ox0-color-foreground);
|
|
1757
|
+
font-size: var(--ox0-font-size-md);
|
|
1758
|
+
align-content: start;
|
|
1759
|
+
gap: var(--ox0-space-xs);
|
|
1760
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1761
|
+
min-inline-size: 0;
|
|
1762
|
+
display: grid;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
.control-rRQVEl {
|
|
1766
|
+
background: var(--ox0-color-surface);
|
|
1767
|
+
border: 1px solid var(--ox0-color-border);
|
|
1768
|
+
border-radius: var(--ox0-radius-sm);
|
|
1769
|
+
box-sizing: border-box;
|
|
1770
|
+
cursor: text;
|
|
1771
|
+
font-variant-numeric: tabular-nums;
|
|
1772
|
+
height: var(--ox0-control-height-md);
|
|
1773
|
+
min-inline-size: 0;
|
|
1774
|
+
padding-inline: calc(var(--ox0-space-md) - 2px);
|
|
1775
|
+
transition: border-color var(--ox0-duration-fast) var(--ox0-ease-crisp),
|
|
1776
|
+
box-shadow var(--ox0-duration-fast) var(--ox0-ease-crisp);
|
|
1777
|
+
white-space: nowrap;
|
|
1778
|
+
align-items: center;
|
|
1779
|
+
display: flex;
|
|
1780
|
+
overflow: hidden;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
.control-rRQVEl:hover {
|
|
1784
|
+
border-color: var(--ox0-color-border-strong);
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
.control-rRQVEl.focusVisible-O_oNxe {
|
|
1788
|
+
border-color: var(--ox0-color-accent);
|
|
1789
|
+
box-shadow: 0 0 0 3px var(--ox0-color-focus-ring);
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
.control-rRQVEl.invalid-G42Ug_ {
|
|
1793
|
+
border-color: var(--ox0-color-danger);
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
.control-rRQVEl.invalid-G42Ug_.focusVisible-O_oNxe {
|
|
1797
|
+
box-shadow: 0 0 0 3px var(--ox0-color-danger-subtle);
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
.control-rRQVEl.disabled-eefMMd {
|
|
1801
|
+
background: var(--ox0-color-canvas);
|
|
1802
|
+
color: var(--ox0-color-disabled);
|
|
1803
|
+
cursor: not-allowed;
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
.segment-qBeSFi {
|
|
1807
|
+
border-radius: var(--ox0-radius-xs);
|
|
1808
|
+
box-sizing: content-box;
|
|
1809
|
+
text-align: end;
|
|
1810
|
+
outline: none;
|
|
1811
|
+
padding: 0 2px;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
.placeholder-n53Bc3 {
|
|
1815
|
+
color: var(--ox0-color-disabled);
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
.segment-qBeSFi:focus {
|
|
1819
|
+
background: var(--ox0-color-accent);
|
|
1820
|
+
color: var(--ox0-color-on-accent);
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
.literal-L0lCHh {
|
|
1824
|
+
color: var(--ox0-color-muted);
|
|
1825
|
+
padding: 0 1px;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
.description-iyjYjF {
|
|
1829
|
+
color: var(--ox0-color-muted);
|
|
1830
|
+
font-size: var(--ox0-font-size-sm);
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
.error-fBRnM3 {
|
|
1834
|
+
color: var(--ox0-color-danger-text);
|
|
1835
|
+
font-size: var(--ox0-font-size-sm);
|
|
1836
|
+
}
|
|
1837
|
+
`,
|
|
1838
|
+
""
|
|
1839
|
+
]);
|
|
1840
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
1841
|
+
root: "root-jhFRmC",
|
|
1842
|
+
control: "control-rRQVEl",
|
|
1843
|
+
focusVisible: "focusVisible-O_oNxe",
|
|
1844
|
+
invalid: "invalid-G42Ug_",
|
|
1845
|
+
disabled: "disabled-eefMMd",
|
|
1846
|
+
segment: "segment-qBeSFi",
|
|
1847
|
+
placeholder: "placeholder-n53Bc3",
|
|
1848
|
+
literal: "literal-L0lCHh",
|
|
1849
|
+
description: "description-iyjYjF",
|
|
1850
|
+
error: "error-fBRnM3"
|
|
1851
|
+
};
|
|
1852
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
1853
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
1854
|
+
A: __rspack_default_export
|
|
1855
|
+
});
|
|
1856
|
+
},
|
|
1739
1857
|
"../../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__) {
|
|
1740
1858
|
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");
|
|
1741
1859
|
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);
|
|
@@ -2295,6 +2413,8 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2295
2413
|
`.root-HAlTlg {
|
|
2296
2414
|
align-content: start;
|
|
2297
2415
|
gap: var(--ox0-space-xs);
|
|
2416
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2417
|
+
min-inline-size: 0;
|
|
2298
2418
|
display: grid;
|
|
2299
2419
|
}
|
|
2300
2420
|
|
|
@@ -2366,11 +2486,13 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2366
2486
|
module.id,
|
|
2367
2487
|
`.fieldset-MruCMe {
|
|
2368
2488
|
color: var(--ox0-color-foreground);
|
|
2489
|
+
min-width: 0;
|
|
2369
2490
|
align-content: start;
|
|
2370
2491
|
gap: var(--ox0-space-xs);
|
|
2371
|
-
min-
|
|
2492
|
+
min-inline-size: 0;
|
|
2372
2493
|
font-size: var(--ox0-font-size-md);
|
|
2373
2494
|
border: none;
|
|
2495
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2374
2496
|
margin: 0;
|
|
2375
2497
|
padding: 0;
|
|
2376
2498
|
display: grid;
|
|
@@ -2479,7 +2601,7 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2479
2601
|
A: __rspack_default_export
|
|
2480
2602
|
});
|
|
2481
2603
|
},
|
|
2482
|
-
"../../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/
|
|
2604
|
+
"../../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/global-search.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
2483
2605
|
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");
|
|
2484
2606
|
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);
|
|
2485
2607
|
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");
|
|
@@ -2487,277 +2609,362 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2487
2609
|
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());
|
|
2488
2610
|
___CSS_LOADER_EXPORT___.push([
|
|
2489
2611
|
module.id,
|
|
2490
|
-
`.
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2612
|
+
`.trigger-YKrtGb {
|
|
2613
|
+
background: var(--ox0-color-surface);
|
|
2614
|
+
border: 1px solid var(--ox0-color-border);
|
|
2615
|
+
border-radius: var(--ox0-radius-sm);
|
|
2616
|
+
box-sizing: border-box;
|
|
2617
|
+
color: var(--ox0-color-muted);
|
|
2618
|
+
cursor: pointer;
|
|
2619
|
+
font: inherit;
|
|
2620
|
+
font-size: var(--ox0-font-size-sm);
|
|
2621
|
+
align-items: center;
|
|
2622
|
+
gap: var(--ox0-space-sm);
|
|
2623
|
+
height: var(--ox0-control-height-md);
|
|
2624
|
+
min-inline-size: 14rem;
|
|
2625
|
+
padding-inline: var(--ox0-space-md) var(--ox0-space-sm);
|
|
2626
|
+
transition: border-color var(--ox0-duration-fast) var(--ox0-ease-crisp);
|
|
2498
2627
|
display: inline-flex;
|
|
2499
2628
|
}
|
|
2500
2629
|
|
|
2501
|
-
.
|
|
2502
|
-
|
|
2503
|
-
font-size: var(--ox0-font-size-4xl);
|
|
2504
|
-
font-weight: var(--ox0-font-weight-heading);
|
|
2505
|
-
letter-spacing: var(--ox0-tracking-heading);
|
|
2506
|
-
line-height: var(--ox0-line-height-tight);
|
|
2630
|
+
.trigger-YKrtGb:hover {
|
|
2631
|
+
border-color: var(--ox0-color-border-strong);
|
|
2507
2632
|
}
|
|
2508
2633
|
|
|
2509
|
-
.
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
letter-spacing: var(--ox0-tracking-subheading);
|
|
2514
|
-
line-height: var(--ox0-line-height-dense);
|
|
2634
|
+
.trigger-YKrtGb:focus-visible {
|
|
2635
|
+
border-color: var(--ox0-color-accent);
|
|
2636
|
+
box-shadow: 0 0 0 3px var(--ox0-color-focus-ring);
|
|
2637
|
+
outline: none;
|
|
2515
2638
|
}
|
|
2516
2639
|
|
|
2517
|
-
.
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
line-height: var(--ox0-line-height-snug);
|
|
2640
|
+
.triggerText-uoJ7KX {
|
|
2641
|
+
text-align: start;
|
|
2642
|
+
flex: auto;
|
|
2521
2643
|
}
|
|
2522
2644
|
|
|
2523
|
-
.
|
|
2645
|
+
.searchIcon-qhIzf8 {
|
|
2524
2646
|
color: var(--ox0-color-muted);
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
letter-spacing: var(--ox0-tracking-widest);
|
|
2528
|
-
line-height: var(--ox0-line-height-normal);
|
|
2529
|
-
text-transform: uppercase;
|
|
2647
|
+
flex: none;
|
|
2648
|
+
display: inline-flex;
|
|
2530
2649
|
}
|
|
2531
2650
|
|
|
2532
|
-
.
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2651
|
+
.overlay-HEDTMK {
|
|
2652
|
+
animation: fadeIn-coKaWx var(--ox0-duration-fast) var(--ox0-ease-enter);
|
|
2653
|
+
padding: 12vh var(--ox0-space-lg) var(--ox0-space-lg);
|
|
2654
|
+
z-index: var(--ox0-z-overlay);
|
|
2655
|
+
place-items: start center;
|
|
2656
|
+
display: grid;
|
|
2657
|
+
position: fixed;
|
|
2658
|
+
inset: 0;
|
|
2538
2659
|
}
|
|
2539
2660
|
|
|
2540
|
-
.
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
""
|
|
2545
|
-
]);
|
|
2546
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
2547
|
-
heading: "heading-gDgjx2",
|
|
2548
|
-
h1: "h1-HyQSOQ",
|
|
2549
|
-
h2: "h2-LFrWtM",
|
|
2550
|
-
h3: "h3-Q0U0vZ",
|
|
2551
|
-
eyebrow: "eyebrow-Bds3ov",
|
|
2552
|
-
anchor: "anchor-OEWzis"
|
|
2553
|
-
};
|
|
2554
|
-
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
2555
|
-
__webpack_require__.d(__webpack_exports__, {}, {
|
|
2556
|
-
A: __rspack_default_export
|
|
2557
|
-
});
|
|
2558
|
-
},
|
|
2559
|
-
"../../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" (module, __webpack_exports__, __webpack_require__) {
|
|
2560
|
-
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");
|
|
2561
|
-
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);
|
|
2562
|
-
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");
|
|
2563
|
-
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);
|
|
2564
|
-
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());
|
|
2565
|
-
___CSS_LOADER_EXPORT___.push([
|
|
2566
|
-
module.id,
|
|
2567
|
-
`.link-n3JkJ3 {
|
|
2568
|
-
color: var(--ox0-color-accent-text);
|
|
2569
|
-
font-weight: var(--ox0-font-weight-semibold);
|
|
2570
|
-
transition: color var(--ox0-duration-fast) var(--ox0-ease-crisp);
|
|
2571
|
-
align-items: center;
|
|
2572
|
-
gap: .25em;
|
|
2573
|
-
text-decoration: none;
|
|
2574
|
-
display: inline-flex;
|
|
2661
|
+
.backdrop-iL0AVx {
|
|
2662
|
+
background: #00000080;
|
|
2663
|
+
position: fixed;
|
|
2664
|
+
inset: 0;
|
|
2575
2665
|
}
|
|
2576
2666
|
|
|
2577
|
-
.
|
|
2578
|
-
|
|
2579
|
-
|
|
2667
|
+
.dialog-sr_Xjy {
|
|
2668
|
+
max-width: none;
|
|
2669
|
+
animation: dialogIn-Bm3ENg var(--ox0-duration-fast) var(--ox0-ease-enter);
|
|
2670
|
+
background: var(--ox0-color-surface-raised);
|
|
2671
|
+
border: 1px solid var(--ox0-color-border);
|
|
2672
|
+
border-radius: var(--ox0-radius-lg);
|
|
2673
|
+
box-shadow: var(--ox0-shadow-modal);
|
|
2674
|
+
color: var(--ox0-color-foreground);
|
|
2675
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
2676
|
+
width: min(100%, 40rem);
|
|
2677
|
+
max-height: min(76vh, 36rem);
|
|
2678
|
+
margin: 0;
|
|
2679
|
+
padding: 0;
|
|
2680
|
+
display: grid;
|
|
2681
|
+
position: relative;
|
|
2682
|
+
inset: auto;
|
|
2683
|
+
overflow: hidden;
|
|
2684
|
+
container-type: inline-size;
|
|
2580
2685
|
}
|
|
2581
2686
|
|
|
2582
|
-
.
|
|
2583
|
-
|
|
2584
|
-
outline: 2px solid var(--ox0-color-focus-ring);
|
|
2585
|
-
outline-offset: 2px;
|
|
2687
|
+
.dialog-sr_Xjy[data-has-preview] {
|
|
2688
|
+
width: min(100%, 60rem);
|
|
2586
2689
|
}
|
|
2587
2690
|
|
|
2588
|
-
.
|
|
2589
|
-
|
|
2590
|
-
|
|
2691
|
+
.inputRow-cYgfjY {
|
|
2692
|
+
border-bottom: 1px solid var(--ox0-color-border-subtle);
|
|
2693
|
+
align-items: center;
|
|
2694
|
+
gap: var(--ox0-space-sm);
|
|
2695
|
+
padding: var(--ox0-space-md) var(--ox0-space-lg);
|
|
2696
|
+
display: flex;
|
|
2591
2697
|
}
|
|
2592
2698
|
|
|
2593
|
-
.
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
]);
|
|
2600
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
2601
|
-
link: "link-n3JkJ3",
|
|
2602
|
-
invalid: "invalid-uX0aiX",
|
|
2603
|
-
externalIcon: "externalIcon-XLLYBy"
|
|
2604
|
-
};
|
|
2605
|
-
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
2606
|
-
__webpack_require__.d(__webpack_exports__, {}, {
|
|
2607
|
-
A: __rspack_default_export
|
|
2608
|
-
});
|
|
2609
|
-
},
|
|
2610
|
-
"../../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/listbox.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
2611
|
-
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");
|
|
2612
|
-
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);
|
|
2613
|
-
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");
|
|
2614
|
-
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);
|
|
2615
|
-
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());
|
|
2616
|
-
___CSS_LOADER_EXPORT___.push([
|
|
2617
|
-
module.id,
|
|
2618
|
-
`.listbox-RXAtjJ {
|
|
2699
|
+
.input-DowPQW {
|
|
2700
|
+
color: inherit;
|
|
2701
|
+
font: inherit;
|
|
2702
|
+
font-size: var(--ox0-font-size-lg);
|
|
2703
|
+
background: none;
|
|
2704
|
+
border: none;
|
|
2619
2705
|
outline: none;
|
|
2620
|
-
flex
|
|
2621
|
-
|
|
2706
|
+
flex: auto;
|
|
2707
|
+
min-inline-size: 0;
|
|
2622
2708
|
padding: 0;
|
|
2623
|
-
list-style: none;
|
|
2624
|
-
display: flex;
|
|
2625
2709
|
}
|
|
2626
2710
|
|
|
2627
|
-
.
|
|
2628
|
-
|
|
2629
|
-
display: grid;
|
|
2711
|
+
.input-DowPQW::placeholder {
|
|
2712
|
+
color: var(--ox0-color-disabled);
|
|
2630
2713
|
}
|
|
2631
2714
|
|
|
2632
|
-
.
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2715
|
+
.spinner-qi9ZHf {
|
|
2716
|
+
border: 2px solid var(--ox0-color-border);
|
|
2717
|
+
border-radius: var(--ox0-radius-full);
|
|
2718
|
+
border-top-color: var(--ox0-color-accent);
|
|
2719
|
+
flex: none;
|
|
2720
|
+
width: .875rem;
|
|
2721
|
+
height: .875rem;
|
|
2722
|
+
animation: .7s linear infinite spin-PBn2jV;
|
|
2636
2723
|
}
|
|
2637
2724
|
|
|
2638
|
-
.
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
text-transform: uppercase;
|
|
2644
|
-
color: var(--ox0-color-muted);
|
|
2645
|
-
display: block;
|
|
2725
|
+
.body-S7OTcn {
|
|
2726
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2727
|
+
height: min(52vh, 26rem);
|
|
2728
|
+
min-height: 0;
|
|
2729
|
+
display: grid;
|
|
2646
2730
|
}
|
|
2647
2731
|
|
|
2648
|
-
.
|
|
2649
|
-
|
|
2732
|
+
.dialog-sr_Xjy[data-has-preview] .body-S7OTcn {
|
|
2733
|
+
grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
.resultsPane-w6Sm2Y {
|
|
2737
|
+
overscroll-behavior: contain;
|
|
2738
|
+
min-height: 0;
|
|
2739
|
+
scroll-padding-block: var(--ox0-space-xl);
|
|
2740
|
+
overflow-y: auto;
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
.results-i7cSuv {
|
|
2744
|
+
padding: var(--ox0-space-xs);
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
.empty-J4IAB9 {
|
|
2748
|
+
color: var(--ox0-color-muted);
|
|
2650
2749
|
font-size: var(--ox0-font-size-sm);
|
|
2750
|
+
padding: var(--ox0-space-xl) var(--ox0-space-lg);
|
|
2751
|
+
text-align: center;
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2754
|
+
.group-L77ngB + .group-L77ngB {
|
|
2755
|
+
margin-top: var(--ox0-space-xs);
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
.groupHeading-wlm1Bd {
|
|
2651
2759
|
color: var(--ox0-color-muted);
|
|
2760
|
+
font-size: var(--ox0-font-size-xs);
|
|
2761
|
+
font-weight: var(--ox0-font-weight-medium);
|
|
2762
|
+
align-items: baseline;
|
|
2763
|
+
gap: var(--ox0-space-sm);
|
|
2764
|
+
letter-spacing: var(--ox0-tracking-wider);
|
|
2765
|
+
padding: var(--ox0-space-sm) var(--ox0-space-sm) var(--ox0-space-2xs);
|
|
2766
|
+
text-transform: uppercase;
|
|
2767
|
+
justify-content: space-between;
|
|
2768
|
+
display: flex;
|
|
2652
2769
|
}
|
|
2653
2770
|
|
|
2654
|
-
.
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
border: none;
|
|
2771
|
+
.groupStatus-xQbH9H {
|
|
2772
|
+
font-weight: var(--ox0-font-weight-normal);
|
|
2773
|
+
letter-spacing: normal;
|
|
2774
|
+
text-transform: none;
|
|
2659
2775
|
}
|
|
2660
2776
|
|
|
2661
|
-
.option-
|
|
2777
|
+
.option-qf4Q7q {
|
|
2662
2778
|
border-radius: var(--ox0-radius-sm);
|
|
2663
|
-
padding: var(--ox0-space-sm);
|
|
2664
|
-
color: var(--ox0-color-foreground);
|
|
2665
2779
|
cursor: pointer;
|
|
2666
|
-
|
|
2667
|
-
outline: none;
|
|
2780
|
+
padding: var(--ox0-space-xs) var(--ox0-space-sm);
|
|
2668
2781
|
}
|
|
2669
2782
|
|
|
2670
|
-
.option-
|
|
2671
|
-
|
|
2783
|
+
.option-qf4Q7q[data-active] {
|
|
2784
|
+
background: color-mix(in srgb, var(--ox0-color-foreground) 10%, transparent);
|
|
2672
2785
|
}
|
|
2673
2786
|
|
|
2674
|
-
.
|
|
2675
|
-
|
|
2787
|
+
.preview-s52x7t {
|
|
2788
|
+
border-inline-start: 1px solid var(--ox0-color-border-subtle);
|
|
2789
|
+
min-height: 0;
|
|
2790
|
+
padding: var(--ox0-space-lg);
|
|
2791
|
+
overflow-y: auto;
|
|
2676
2792
|
}
|
|
2677
2793
|
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2794
|
+
@container (width <= 40rem) {
|
|
2795
|
+
.dialog-sr_Xjy[data-has-preview] .body-S7OTcn {
|
|
2796
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2799
|
+
.preview-s52x7t {
|
|
2800
|
+
display: none;
|
|
2801
|
+
}
|
|
2681
2802
|
}
|
|
2682
2803
|
|
|
2683
|
-
.
|
|
2684
|
-
|
|
2804
|
+
.result-HpbdT2 {
|
|
2805
|
+
align-items: center;
|
|
2806
|
+
gap: var(--ox0-space-sm);
|
|
2807
|
+
min-width: 0;
|
|
2808
|
+
display: flex;
|
|
2685
2809
|
}
|
|
2686
2810
|
|
|
2687
|
-
.
|
|
2688
|
-
|
|
2689
|
-
|
|
2811
|
+
.resultIcon-qmtpm2 {
|
|
2812
|
+
color: var(--ox0-color-muted);
|
|
2813
|
+
width: var(--ox0-icon-lg);
|
|
2814
|
+
flex: none;
|
|
2815
|
+
justify-content: center;
|
|
2816
|
+
align-items: center;
|
|
2817
|
+
display: inline-flex;
|
|
2690
2818
|
}
|
|
2691
2819
|
|
|
2692
|
-
.
|
|
2693
|
-
|
|
2694
|
-
|
|
2820
|
+
.resultText-wS8CHc {
|
|
2821
|
+
flex: auto;
|
|
2822
|
+
min-width: 0;
|
|
2823
|
+
display: grid;
|
|
2695
2824
|
}
|
|
2696
2825
|
|
|
2697
|
-
.
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2826
|
+
.resultTitle-hu7e5s, .resultDescription-UcRTCD {
|
|
2827
|
+
text-overflow: ellipsis;
|
|
2828
|
+
white-space: nowrap;
|
|
2829
|
+
overflow: hidden;
|
|
2701
2830
|
}
|
|
2702
2831
|
|
|
2703
|
-
.
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
place-items: center;
|
|
2707
|
-
list-style: none;
|
|
2708
|
-
display: grid;
|
|
2832
|
+
.resultTitle-hu7e5s {
|
|
2833
|
+
font-size: var(--ox0-font-size-sm);
|
|
2834
|
+
font-weight: var(--ox0-font-weight-medium);
|
|
2709
2835
|
}
|
|
2710
2836
|
|
|
2711
|
-
.
|
|
2837
|
+
.resultDescription-UcRTCD {
|
|
2712
2838
|
color: var(--ox0-color-muted);
|
|
2713
|
-
font-size: var(--ox0-font-size-
|
|
2839
|
+
font-size: var(--ox0-font-size-xs);
|
|
2714
2840
|
}
|
|
2715
2841
|
|
|
2716
|
-
.
|
|
2717
|
-
|
|
2842
|
+
.resultText-wS8CHc mark {
|
|
2843
|
+
background: color-mix(in srgb, var(--ox0-color-accent) 28%, transparent);
|
|
2844
|
+
color: inherit;
|
|
2845
|
+
font-weight: var(--ox0-font-weight-semibold);
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
.resultMeta-wVHGW8 {
|
|
2849
|
+
color: var(--ox0-color-muted);
|
|
2850
|
+
font-size: var(--ox0-font-size-xs);
|
|
2851
|
+
flex: none;
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
.footer-umLGpy {
|
|
2855
|
+
border-top: 1px solid var(--ox0-color-border-subtle);
|
|
2856
|
+
color: var(--ox0-color-muted);
|
|
2857
|
+
font-size: var(--ox0-font-size-xs);
|
|
2858
|
+
gap: var(--ox0-space-lg);
|
|
2859
|
+
padding: var(--ox0-space-sm) var(--ox0-space-lg);
|
|
2718
2860
|
display: flex;
|
|
2719
2861
|
}
|
|
2720
2862
|
|
|
2721
|
-
.
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
padding: var(--ox0-space-xs) var(--ox0-space-sm);
|
|
2726
|
-
font: inherit;
|
|
2727
|
-
font-size: var(--ox0-font-size-sm);
|
|
2728
|
-
background: var(--ox0-color-surface);
|
|
2729
|
-
color: var(--ox0-color-foreground);
|
|
2730
|
-
margin-bottom: var(--ox0-space-xs);
|
|
2731
|
-
outline: none;
|
|
2863
|
+
.hint-u3aolN {
|
|
2864
|
+
align-items: center;
|
|
2865
|
+
gap: var(--ox0-space-2xs);
|
|
2866
|
+
display: inline-flex;
|
|
2732
2867
|
}
|
|
2733
2868
|
|
|
2734
|
-
.
|
|
2735
|
-
|
|
2736
|
-
|
|
2869
|
+
.visuallyHidden-VtiEjb {
|
|
2870
|
+
clip-path: inset(50%);
|
|
2871
|
+
white-space: nowrap;
|
|
2872
|
+
block-size: 1px;
|
|
2873
|
+
inline-size: 1px;
|
|
2874
|
+
position: absolute;
|
|
2875
|
+
overflow: hidden;
|
|
2876
|
+
}
|
|
2877
|
+
|
|
2878
|
+
@media (width <= 40rem) {
|
|
2879
|
+
.overlay-HEDTMK {
|
|
2880
|
+
padding: 0;
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
.dialog-sr_Xjy, .dialog-sr_Xjy[data-has-preview] {
|
|
2884
|
+
border-radius: 0;
|
|
2885
|
+
width: 100%;
|
|
2886
|
+
height: 100%;
|
|
2887
|
+
max-height: none;
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
.body-S7OTcn {
|
|
2891
|
+
height: auto;
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
.footer-umLGpy {
|
|
2895
|
+
display: none;
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
@keyframes fadeIn-coKaWx {
|
|
2900
|
+
from {
|
|
2901
|
+
opacity: 0;
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
@keyframes dialogIn-Bm3ENg {
|
|
2906
|
+
from {
|
|
2907
|
+
opacity: 0;
|
|
2908
|
+
transform: translateY(-8px) scale(.98);
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
@keyframes spin-PBn2jV {
|
|
2913
|
+
to {
|
|
2914
|
+
transform: rotate(360deg);
|
|
2915
|
+
}
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2919
|
+
.overlay-HEDTMK, .dialog-sr_Xjy {
|
|
2920
|
+
animation-duration: 1ms;
|
|
2921
|
+
}
|
|
2922
|
+
|
|
2923
|
+
.spinner-qi9ZHf {
|
|
2924
|
+
animation-duration: 2s;
|
|
2925
|
+
}
|
|
2737
2926
|
}
|
|
2738
2927
|
`,
|
|
2739
2928
|
""
|
|
2740
2929
|
]);
|
|
2741
2930
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2931
|
+
trigger: "trigger-YKrtGb",
|
|
2932
|
+
triggerText: "triggerText-uoJ7KX",
|
|
2933
|
+
searchIcon: "searchIcon-qhIzf8",
|
|
2934
|
+
overlay: "overlay-HEDTMK",
|
|
2935
|
+
fadeIn: "fadeIn-coKaWx",
|
|
2936
|
+
backdrop: "backdrop-iL0AVx",
|
|
2937
|
+
dialog: "dialog-sr_Xjy",
|
|
2938
|
+
dialogIn: "dialogIn-Bm3ENg",
|
|
2939
|
+
inputRow: "inputRow-cYgfjY",
|
|
2940
|
+
input: "input-DowPQW",
|
|
2941
|
+
spinner: "spinner-qi9ZHf",
|
|
2942
|
+
spin: "spin-PBn2jV",
|
|
2943
|
+
body: "body-S7OTcn",
|
|
2944
|
+
resultsPane: "resultsPane-w6Sm2Y",
|
|
2945
|
+
results: "results-i7cSuv",
|
|
2946
|
+
empty: "empty-J4IAB9",
|
|
2947
|
+
group: "group-L77ngB",
|
|
2948
|
+
groupHeading: "groupHeading-wlm1Bd",
|
|
2949
|
+
groupStatus: "groupStatus-xQbH9H",
|
|
2950
|
+
option: "option-qf4Q7q",
|
|
2951
|
+
preview: "preview-s52x7t",
|
|
2952
|
+
result: "result-HpbdT2",
|
|
2953
|
+
resultIcon: "resultIcon-qmtpm2",
|
|
2954
|
+
resultText: "resultText-wS8CHc",
|
|
2955
|
+
resultTitle: "resultTitle-hu7e5s",
|
|
2956
|
+
resultDescription: "resultDescription-UcRTCD",
|
|
2957
|
+
resultMeta: "resultMeta-wVHGW8",
|
|
2958
|
+
footer: "footer-umLGpy",
|
|
2959
|
+
hint: "hint-u3aolN",
|
|
2960
|
+
visuallyHidden: "visuallyHidden-VtiEjb"
|
|
2754
2961
|
};
|
|
2755
2962
|
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
2756
2963
|
__webpack_require__.d(__webpack_exports__, {}, {
|
|
2757
2964
|
A: __rspack_default_export
|
|
2758
2965
|
});
|
|
2759
2966
|
},
|
|
2760
|
-
"../../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/
|
|
2967
|
+
"../../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__) {
|
|
2761
2968
|
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");
|
|
2762
2969
|
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);
|
|
2763
2970
|
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");
|
|
@@ -2765,25 +2972,76 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2765
2972
|
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());
|
|
2766
2973
|
___CSS_LOADER_EXPORT___.push([
|
|
2767
2974
|
module.id,
|
|
2768
|
-
`.
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2975
|
+
`.heading-gDgjx2 {
|
|
2976
|
+
font-optical-sizing: auto;
|
|
2977
|
+
font-variant-numeric: lining-nums;
|
|
2978
|
+
text-wrap: balance;
|
|
2979
|
+
color: var(--ox0-color-foreground);
|
|
2980
|
+
align-items: baseline;
|
|
2981
|
+
gap: var(--ox0-space-xs);
|
|
2982
|
+
margin: 0;
|
|
2983
|
+
display: inline-flex;
|
|
2984
|
+
}
|
|
2985
|
+
|
|
2986
|
+
.h1-HyQSOQ {
|
|
2987
|
+
font-family: var(--ox0-font-heading);
|
|
2988
|
+
font-size: var(--ox0-font-size-4xl);
|
|
2989
|
+
font-weight: var(--ox0-font-weight-heading);
|
|
2990
|
+
letter-spacing: var(--ox0-tracking-heading);
|
|
2991
|
+
line-height: var(--ox0-line-height-tight);
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2994
|
+
.h2-LFrWtM {
|
|
2995
|
+
font-family: var(--ox0-font-subheading, var(--ox0-font-heading));
|
|
2996
|
+
font-size: var(--ox0-font-size-2xl);
|
|
2997
|
+
font-weight: var(--ox0-font-weight-subheading);
|
|
2998
|
+
letter-spacing: var(--ox0-tracking-subheading);
|
|
2999
|
+
line-height: var(--ox0-line-height-dense);
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
.h3-Q0U0vZ {
|
|
3003
|
+
font-size: var(--ox0-font-size-lg);
|
|
3004
|
+
font-weight: var(--ox0-font-weight-semibold);
|
|
3005
|
+
line-height: var(--ox0-line-height-snug);
|
|
3006
|
+
}
|
|
3007
|
+
|
|
3008
|
+
.eyebrow-Bds3ov {
|
|
3009
|
+
color: var(--ox0-color-muted);
|
|
3010
|
+
font-size: var(--ox0-font-size-sm);
|
|
3011
|
+
font-weight: var(--ox0-font-weight-semibold);
|
|
3012
|
+
letter-spacing: var(--ox0-tracking-widest);
|
|
3013
|
+
line-height: var(--ox0-line-height-normal);
|
|
3014
|
+
text-transform: uppercase;
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
.anchor-OEWzis {
|
|
3018
|
+
color: var(--ox0-color-muted);
|
|
3019
|
+
opacity: 0;
|
|
3020
|
+
transition: opacity var(--ox0-duration-fast) var(--ox0-ease-crisp);
|
|
3021
|
+
font-size: .8em;
|
|
3022
|
+
text-decoration: none;
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
.heading-gDgjx2:hover .anchor-OEWzis, .heading-gDgjx2:focus-within .anchor-OEWzis {
|
|
3026
|
+
opacity: 1;
|
|
2774
3027
|
}
|
|
2775
3028
|
`,
|
|
2776
3029
|
""
|
|
2777
3030
|
]);
|
|
2778
3031
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2779
|
-
|
|
3032
|
+
heading: "heading-gDgjx2",
|
|
3033
|
+
h1: "h1-HyQSOQ",
|
|
3034
|
+
h2: "h2-LFrWtM",
|
|
3035
|
+
h3: "h3-Q0U0vZ",
|
|
3036
|
+
eyebrow: "eyebrow-Bds3ov",
|
|
3037
|
+
anchor: "anchor-OEWzis"
|
|
2780
3038
|
};
|
|
2781
3039
|
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
2782
3040
|
__webpack_require__.d(__webpack_exports__, {}, {
|
|
2783
3041
|
A: __rspack_default_export
|
|
2784
3042
|
});
|
|
2785
3043
|
},
|
|
2786
|
-
"../../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/
|
|
3044
|
+
"../../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" (module, __webpack_exports__, __webpack_require__) {
|
|
2787
3045
|
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");
|
|
2788
3046
|
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);
|
|
2789
3047
|
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");
|
|
@@ -2791,8 +3049,235 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2791
3049
|
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());
|
|
2792
3050
|
___CSS_LOADER_EXPORT___.push([
|
|
2793
3051
|
module.id,
|
|
2794
|
-
`.
|
|
2795
|
-
|
|
3052
|
+
`.link-n3JkJ3 {
|
|
3053
|
+
color: var(--ox0-color-accent-text);
|
|
3054
|
+
font-weight: var(--ox0-font-weight-semibold);
|
|
3055
|
+
transition: color var(--ox0-duration-fast) var(--ox0-ease-crisp);
|
|
3056
|
+
align-items: center;
|
|
3057
|
+
gap: .25em;
|
|
3058
|
+
text-decoration: none;
|
|
3059
|
+
display: inline-flex;
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3062
|
+
.link-n3JkJ3:hover {
|
|
3063
|
+
color: var(--ox0-color-accent);
|
|
3064
|
+
text-decoration: underline;
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
.link-n3JkJ3:focus-visible {
|
|
3068
|
+
border-radius: var(--ox0-radius-xs);
|
|
3069
|
+
outline: 2px solid var(--ox0-color-focus-ring);
|
|
3070
|
+
outline-offset: 2px;
|
|
3071
|
+
}
|
|
3072
|
+
|
|
3073
|
+
.invalid-uX0aiX {
|
|
3074
|
+
color: var(--ox0-color-muted);
|
|
3075
|
+
cursor: not-allowed;
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
.externalIcon-XLLYBy {
|
|
3079
|
+
opacity: .75;
|
|
3080
|
+
flex-shrink: 0;
|
|
3081
|
+
}
|
|
3082
|
+
`,
|
|
3083
|
+
""
|
|
3084
|
+
]);
|
|
3085
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
3086
|
+
link: "link-n3JkJ3",
|
|
3087
|
+
invalid: "invalid-uX0aiX",
|
|
3088
|
+
externalIcon: "externalIcon-XLLYBy"
|
|
3089
|
+
};
|
|
3090
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
3091
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
3092
|
+
A: __rspack_default_export
|
|
3093
|
+
});
|
|
3094
|
+
},
|
|
3095
|
+
"../../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/listbox.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
3096
|
+
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");
|
|
3097
|
+
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);
|
|
3098
|
+
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");
|
|
3099
|
+
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);
|
|
3100
|
+
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());
|
|
3101
|
+
___CSS_LOADER_EXPORT___.push([
|
|
3102
|
+
module.id,
|
|
3103
|
+
`.listbox-RXAtjJ {
|
|
3104
|
+
outline: none;
|
|
3105
|
+
flex-direction: column;
|
|
3106
|
+
margin: 0;
|
|
3107
|
+
padding: 0;
|
|
3108
|
+
list-style: none;
|
|
3109
|
+
display: flex;
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
.emptyListbox-GN5NrR {
|
|
3113
|
+
block-size: 100%;
|
|
3114
|
+
display: grid;
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
.section-H4Jvj4 {
|
|
3118
|
+
margin: 0;
|
|
3119
|
+
padding: 0;
|
|
3120
|
+
list-style: none;
|
|
3121
|
+
}
|
|
3122
|
+
|
|
3123
|
+
.groupHeading-xAVRG0 {
|
|
3124
|
+
padding: var(--ox0-space-xs) var(--ox0-space-sm);
|
|
3125
|
+
font-size: 11px;
|
|
3126
|
+
font-weight: var(--ox0-font-weight-medium);
|
|
3127
|
+
letter-spacing: .06em;
|
|
3128
|
+
text-transform: uppercase;
|
|
3129
|
+
color: var(--ox0-color-muted);
|
|
3130
|
+
display: block;
|
|
3131
|
+
}
|
|
3132
|
+
|
|
3133
|
+
.staticContent-Ky4_pu {
|
|
3134
|
+
padding: var(--ox0-space-xs) var(--ox0-space-sm);
|
|
3135
|
+
font-size: var(--ox0-font-size-sm);
|
|
3136
|
+
color: var(--ox0-color-muted);
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3139
|
+
.divider-MAahdB {
|
|
3140
|
+
block-size: 1px;
|
|
3141
|
+
margin: var(--ox0-space-xs) 0;
|
|
3142
|
+
background: var(--ox0-color-border-subtle);
|
|
3143
|
+
border: none;
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
.option-AVVD_z {
|
|
3147
|
+
border-radius: var(--ox0-radius-sm);
|
|
3148
|
+
padding: var(--ox0-space-sm);
|
|
3149
|
+
color: var(--ox0-color-foreground);
|
|
3150
|
+
cursor: pointer;
|
|
3151
|
+
touch-action: manipulation;
|
|
3152
|
+
outline: none;
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
.option-AVVD_z:focus, .option-AVVD_z:focus-visible {
|
|
3156
|
+
outline: none;
|
|
3157
|
+
}
|
|
3158
|
+
|
|
3159
|
+
.option-AVVD_z:not([data-disabled]):hover {
|
|
3160
|
+
background: var(--ox0-color-surface-hover);
|
|
3161
|
+
}
|
|
3162
|
+
|
|
3163
|
+
.option-AVVD_z[data-selected] {
|
|
3164
|
+
background: var(--ox0-color-accent-subtle);
|
|
3165
|
+
color: var(--ox0-color-accent-text);
|
|
3166
|
+
}
|
|
3167
|
+
|
|
3168
|
+
.option-AVVD_z[data-focused] {
|
|
3169
|
+
background: var(--ox0-color-surface-hover);
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
.option-AVVD_z[data-focused][data-selected] {
|
|
3173
|
+
background: var(--ox0-color-accent-subtle);
|
|
3174
|
+
color: var(--ox0-color-accent-text);
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
.option-AVVD_z[data-disabled] {
|
|
3178
|
+
opacity: .55;
|
|
3179
|
+
cursor: not-allowed;
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
.itemContent-s2Osxp {
|
|
3183
|
+
gap: var(--ox0-space-xs);
|
|
3184
|
+
flex-direction: column;
|
|
3185
|
+
display: flex;
|
|
3186
|
+
}
|
|
3187
|
+
|
|
3188
|
+
.emptyRow-c1bk2s {
|
|
3189
|
+
padding: var(--ox0-space-sm);
|
|
3190
|
+
align-self: stretch;
|
|
3191
|
+
place-items: center;
|
|
3192
|
+
list-style: none;
|
|
3193
|
+
display: grid;
|
|
3194
|
+
}
|
|
3195
|
+
|
|
3196
|
+
.emptyContent-uZUfEX {
|
|
3197
|
+
color: var(--ox0-color-muted);
|
|
3198
|
+
font-size: var(--ox0-font-size-sm);
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
.root-SceDN5 {
|
|
3202
|
+
flex-direction: column;
|
|
3203
|
+
display: flex;
|
|
3204
|
+
}
|
|
3205
|
+
|
|
3206
|
+
.filterInput-vG0fOJ {
|
|
3207
|
+
appearance: none;
|
|
3208
|
+
border: 1px solid var(--ox0-color-border);
|
|
3209
|
+
border-radius: var(--ox0-radius-sm);
|
|
3210
|
+
padding: var(--ox0-space-xs) var(--ox0-space-sm);
|
|
3211
|
+
font: inherit;
|
|
3212
|
+
font-size: var(--ox0-font-size-sm);
|
|
3213
|
+
background: var(--ox0-color-surface);
|
|
3214
|
+
color: var(--ox0-color-foreground);
|
|
3215
|
+
margin-bottom: var(--ox0-space-xs);
|
|
3216
|
+
outline: none;
|
|
3217
|
+
}
|
|
3218
|
+
|
|
3219
|
+
.filterInput-vG0fOJ:focus {
|
|
3220
|
+
border-color: var(--ox0-color-border-focus);
|
|
3221
|
+
box-shadow: 0 0 0 2px var(--ox0-color-focus-ring);
|
|
3222
|
+
}
|
|
3223
|
+
`,
|
|
3224
|
+
""
|
|
3225
|
+
]);
|
|
3226
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
3227
|
+
listbox: "listbox-RXAtjJ",
|
|
3228
|
+
emptyListbox: "emptyListbox-GN5NrR",
|
|
3229
|
+
section: "section-H4Jvj4",
|
|
3230
|
+
groupHeading: "groupHeading-xAVRG0",
|
|
3231
|
+
staticContent: "staticContent-Ky4_pu",
|
|
3232
|
+
divider: "divider-MAahdB",
|
|
3233
|
+
option: "option-AVVD_z",
|
|
3234
|
+
itemContent: "itemContent-s2Osxp",
|
|
3235
|
+
emptyRow: "emptyRow-c1bk2s",
|
|
3236
|
+
emptyContent: "emptyContent-uZUfEX",
|
|
3237
|
+
root: "root-SceDN5",
|
|
3238
|
+
filterInput: "filterInput-vG0fOJ"
|
|
3239
|
+
};
|
|
3240
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
3241
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
3242
|
+
A: __rspack_default_export
|
|
3243
|
+
});
|
|
3244
|
+
},
|
|
3245
|
+
"../../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/markable.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
3246
|
+
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");
|
|
3247
|
+
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);
|
|
3248
|
+
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");
|
|
3249
|
+
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);
|
|
3250
|
+
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());
|
|
3251
|
+
___CSS_LOADER_EXPORT___.push([
|
|
3252
|
+
module.id,
|
|
3253
|
+
`.mark-c2vNAz {
|
|
3254
|
+
background: var(--ox0-color-accent);
|
|
3255
|
+
border-radius: var(--ox0-radius-xs);
|
|
3256
|
+
color: var(--ox0-color-on-accent);
|
|
3257
|
+
font-weight: var(--ox0-font-weight-medium);
|
|
3258
|
+
padding: 0 .15em;
|
|
3259
|
+
}
|
|
3260
|
+
`,
|
|
3261
|
+
""
|
|
3262
|
+
]);
|
|
3263
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
3264
|
+
mark: "mark-c2vNAz"
|
|
3265
|
+
};
|
|
3266
|
+
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
3267
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
3268
|
+
A: __rspack_default_export
|
|
3269
|
+
});
|
|
3270
|
+
},
|
|
3271
|
+
"../../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/menu.module.css" (module, __webpack_exports__, __webpack_require__) {
|
|
3272
|
+
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");
|
|
3273
|
+
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);
|
|
3274
|
+
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");
|
|
3275
|
+
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);
|
|
3276
|
+
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());
|
|
3277
|
+
___CSS_LOADER_EXPORT___.push([
|
|
3278
|
+
module.id,
|
|
3279
|
+
`.panel-Wzy_zi {
|
|
3280
|
+
min-width: 200px;
|
|
2796
3281
|
z-index: var(--ox0-z-popover);
|
|
2797
3282
|
}
|
|
2798
3283
|
|
|
@@ -2931,9 +3416,11 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
2931
3416
|
module.id,
|
|
2932
3417
|
`.root-DxBVJW {
|
|
2933
3418
|
color: var(--ox0-color-foreground);
|
|
3419
|
+
min-inline-size: 0;
|
|
2934
3420
|
font-size: var(--ox0-font-size-md);
|
|
2935
3421
|
align-content: start;
|
|
2936
3422
|
gap: var(--ox0-space-xs);
|
|
3423
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2937
3424
|
display: grid;
|
|
2938
3425
|
}
|
|
2939
3426
|
|
|
@@ -3181,11 +3668,13 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3181
3668
|
module.id,
|
|
3182
3669
|
`.fieldset-PcJq3W {
|
|
3183
3670
|
color: var(--ox0-color-foreground);
|
|
3671
|
+
min-width: 0;
|
|
3184
3672
|
align-content: start;
|
|
3185
3673
|
gap: var(--ox0-space-xs);
|
|
3186
|
-
min-
|
|
3674
|
+
min-inline-size: 0;
|
|
3187
3675
|
font-size: var(--ox0-font-size-md);
|
|
3188
3676
|
border: none;
|
|
3677
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3189
3678
|
margin: 0;
|
|
3190
3679
|
padding: 0;
|
|
3191
3680
|
display: grid;
|
|
@@ -3277,9 +3766,11 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3277
3766
|
module.id,
|
|
3278
3767
|
`.root-Bq3cNE {
|
|
3279
3768
|
color: var(--ox0-color-foreground);
|
|
3769
|
+
min-inline-size: 0;
|
|
3280
3770
|
font-size: var(--ox0-font-size-md);
|
|
3281
3771
|
align-content: start;
|
|
3282
3772
|
gap: var(--ox0-space-xs);
|
|
3773
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3283
3774
|
display: grid;
|
|
3284
3775
|
}
|
|
3285
3776
|
|
|
@@ -3406,6 +3897,8 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3406
3897
|
`.root-FHU2Km {
|
|
3407
3898
|
align-content: start;
|
|
3408
3899
|
gap: var(--ox0-space-xs);
|
|
3900
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3901
|
+
min-inline-size: 0;
|
|
3409
3902
|
display: grid;
|
|
3410
3903
|
}
|
|
3411
3904
|
|
|
@@ -3732,9 +4225,11 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3732
4225
|
module.id,
|
|
3733
4226
|
`.root-TON2np {
|
|
3734
4227
|
color: var(--ox0-color-foreground);
|
|
4228
|
+
min-inline-size: 0;
|
|
3735
4229
|
font-size: var(--ox0-font-size-md);
|
|
3736
4230
|
align-content: start;
|
|
3737
4231
|
gap: var(--ox0-space-xs);
|
|
4232
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3738
4233
|
display: grid;
|
|
3739
4234
|
}
|
|
3740
4235
|
|
|
@@ -3998,6 +4493,8 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
3998
4493
|
`.root-oT5_Un {
|
|
3999
4494
|
align-content: start;
|
|
4000
4495
|
gap: var(--ox0-space-xs);
|
|
4496
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4497
|
+
min-inline-size: 0;
|
|
4001
4498
|
display: grid;
|
|
4002
4499
|
}
|
|
4003
4500
|
|
|
@@ -4321,9 +4818,11 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
4321
4818
|
module.id,
|
|
4322
4819
|
`.root-czq2dC {
|
|
4323
4820
|
color: var(--ox0-color-foreground);
|
|
4821
|
+
min-inline-size: 0;
|
|
4324
4822
|
font-size: var(--ox0-font-size-md);
|
|
4325
4823
|
align-content: start;
|
|
4326
4824
|
gap: var(--ox0-space-xs);
|
|
4825
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4327
4826
|
display: grid;
|
|
4328
4827
|
}
|
|
4329
4828
|
|
|
@@ -4474,9 +4973,11 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
|
|
|
4474
4973
|
module.id,
|
|
4475
4974
|
`.root-EDj_sz {
|
|
4476
4975
|
color: var(--ox0-color-foreground);
|
|
4976
|
+
min-inline-size: 0;
|
|
4477
4977
|
font-size: var(--ox0-font-size-md);
|
|
4478
4978
|
align-content: start;
|
|
4479
4979
|
gap: var(--ox0-space-xs);
|
|
4980
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4480
4981
|
display: grid;
|
|
4481
4982
|
}
|
|
4482
4983
|
|
|
@@ -5357,6 +5858,17 @@ const defaultUiMessages = {
|
|
|
5357
5858
|
"ox0.confirm.confirm": "Confirm",
|
|
5358
5859
|
"ox0.dropZone.browse": "Choose file",
|
|
5359
5860
|
"ox0.dropZone.browseMultiple": "Choose files",
|
|
5861
|
+
"ox0.globalSearch.close": "Close",
|
|
5862
|
+
"ox0.globalSearch.error": "Couldn't load results",
|
|
5863
|
+
"ox0.globalSearch.label": "Search",
|
|
5864
|
+
"ox0.globalSearch.loading": "Searching…",
|
|
5865
|
+
"ox0.globalSearch.navigate": "Navigate",
|
|
5866
|
+
"ox0.globalSearch.noResults": "No results for “{query}”",
|
|
5867
|
+
"ox0.globalSearch.open": "Open",
|
|
5868
|
+
"ox0.globalSearch.placeholder": "Search…",
|
|
5869
|
+
"ox0.globalSearch.preview": "Details",
|
|
5870
|
+
"ox0.globalSearch.resultCount": "{count} results",
|
|
5871
|
+
"ox0.globalSearch.resultCountOne": "1 result",
|
|
5360
5872
|
"ox0.heading.anchorLabel": "Link to {id}",
|
|
5361
5873
|
"ox0.heading.anchorMarker": "#",
|
|
5362
5874
|
"ox0.select.selectedCount": "{count} selected",
|
|
@@ -6241,7 +6753,7 @@ function Tooltip({ children, placement = "top", isDisabled = false }) {
|
|
|
6241
6753
|
},
|
|
6242
6754
|
placement,
|
|
6243
6755
|
middleware: [
|
|
6244
|
-
|
|
6756
|
+
react_offset(8),
|
|
6245
6757
|
flip(),
|
|
6246
6758
|
shift({
|
|
6247
6759
|
padding: 8
|
|
@@ -7205,21 +7717,21 @@ const numeric_Numeric = /*#__PURE__*/ forwardRef(function({ align, children, col
|
|
|
7205
7717
|
const TICK = 30000;
|
|
7206
7718
|
let clockNow = Date.now();
|
|
7207
7719
|
const listeners = new Set();
|
|
7208
|
-
let
|
|
7720
|
+
let date_time_timer;
|
|
7209
7721
|
function subscribeClock(listener) {
|
|
7210
7722
|
listeners.add(listener);
|
|
7211
|
-
if (void 0 ===
|
|
7723
|
+
if (void 0 === date_time_timer) {
|
|
7212
7724
|
clockNow = Date.now();
|
|
7213
|
-
|
|
7725
|
+
date_time_timer = setInterval(()=>{
|
|
7214
7726
|
clockNow = Date.now();
|
|
7215
7727
|
for (const notify of listeners)notify();
|
|
7216
7728
|
}, TICK);
|
|
7217
7729
|
}
|
|
7218
7730
|
return ()=>{
|
|
7219
7731
|
listeners.delete(listener);
|
|
7220
|
-
if (0 === listeners.size && void 0 !==
|
|
7221
|
-
clearInterval(
|
|
7222
|
-
|
|
7732
|
+
if (0 === listeners.size && void 0 !== date_time_timer) {
|
|
7733
|
+
clearInterval(date_time_timer);
|
|
7734
|
+
date_time_timer = void 0;
|
|
7223
7735
|
}
|
|
7224
7736
|
};
|
|
7225
7737
|
}
|
|
@@ -8206,7 +8718,7 @@ function ConfirmPopover({ anchor, cancelLabel, children, confirmLabel, isOpen, o
|
|
|
8206
8718
|
},
|
|
8207
8719
|
placement,
|
|
8208
8720
|
middleware: [
|
|
8209
|
-
|
|
8721
|
+
react_offset(8),
|
|
8210
8722
|
flip(),
|
|
8211
8723
|
shift({
|
|
8212
8724
|
padding: 8
|
|
@@ -8451,160 +8963,748 @@ const radio_group_Radio = /*#__PURE__*/ forwardRef(function({ value, label, desc
|
|
|
8451
8963
|
]
|
|
8452
8964
|
})
|
|
8453
8965
|
});
|
|
8454
|
-
});
|
|
8455
|
-
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");
|
|
8456
|
-
var file_trigger_module_options = {};
|
|
8457
|
-
file_trigger_module_options.styleTagTransform = styleTagTransform_default();
|
|
8458
|
-
file_trigger_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8459
|
-
file_trigger_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8460
|
-
file_trigger_module_options.domAPI = styleDomAPI_default();
|
|
8461
|
-
file_trigger_module_options.insertStyleElement = insertStyleElement_default();
|
|
8462
|
-
injectStylesIntoStyleTag_default()(file_trigger_module_0.A, file_trigger_module_options);
|
|
8463
|
-
const file_trigger_module = file_trigger_module_0.A && file_trigger_module_0.A.locals ? file_trigger_module_0.A.locals : void 0;
|
|
8464
|
-
function matchesAccept(file, accept) {
|
|
8465
|
-
if (!accept) return true;
|
|
8466
|
-
const name = file.name.toLowerCase();
|
|
8467
|
-
const type = file.type.toLowerCase();
|
|
8468
|
-
return accept.split(",").map((t)=>t.trim().toLowerCase()).filter(Boolean).some((t)=>{
|
|
8469
|
-
if (t.startsWith(".")) return name.endsWith(t);
|
|
8470
|
-
if (t.endsWith("/*")) return type.startsWith(t.slice(0, -1));
|
|
8471
|
-
return type === t;
|
|
8966
|
+
});
|
|
8967
|
+
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");
|
|
8968
|
+
var file_trigger_module_options = {};
|
|
8969
|
+
file_trigger_module_options.styleTagTransform = styleTagTransform_default();
|
|
8970
|
+
file_trigger_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8971
|
+
file_trigger_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8972
|
+
file_trigger_module_options.domAPI = styleDomAPI_default();
|
|
8973
|
+
file_trigger_module_options.insertStyleElement = insertStyleElement_default();
|
|
8974
|
+
injectStylesIntoStyleTag_default()(file_trigger_module_0.A, file_trigger_module_options);
|
|
8975
|
+
const file_trigger_module = file_trigger_module_0.A && file_trigger_module_0.A.locals ? file_trigger_module_0.A.locals : void 0;
|
|
8976
|
+
function matchesAccept(file, accept) {
|
|
8977
|
+
if (!accept) return true;
|
|
8978
|
+
const name = file.name.toLowerCase();
|
|
8979
|
+
const type = file.type.toLowerCase();
|
|
8980
|
+
return accept.split(",").map((t)=>t.trim().toLowerCase()).filter(Boolean).some((t)=>{
|
|
8981
|
+
if (t.startsWith(".")) return name.endsWith(t);
|
|
8982
|
+
if (t.endsWith("/*")) return type.startsWith(t.slice(0, -1));
|
|
8983
|
+
return type === t;
|
|
8984
|
+
});
|
|
8985
|
+
}
|
|
8986
|
+
const file_trigger_FileTrigger = /*#__PURE__*/ forwardRef(function({ accept, acceptDirectory = false, capture, children, isMultiple = false, name, onSelect, variant = "secondary", id: idProp, ...buttonProps }, ref) {
|
|
8987
|
+
const inputRef = useRef(null);
|
|
8988
|
+
const generatedId = useId();
|
|
8989
|
+
const buttonId = idProp ?? generatedId;
|
|
8990
|
+
function handleChange(e) {
|
|
8991
|
+
const files = Array.from(e.target.files ?? []);
|
|
8992
|
+
e.target.value = "";
|
|
8993
|
+
if (files.length > 0) onSelect(files);
|
|
8994
|
+
}
|
|
8995
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
8996
|
+
children: [
|
|
8997
|
+
/*#__PURE__*/ jsx(button_Button, {
|
|
8998
|
+
ref: ref,
|
|
8999
|
+
...buttonProps,
|
|
9000
|
+
id: buttonId,
|
|
9001
|
+
variant: variant,
|
|
9002
|
+
onPress: ()=>inputRef.current?.click(),
|
|
9003
|
+
children: children
|
|
9004
|
+
}),
|
|
9005
|
+
/*#__PURE__*/ jsx("input", {
|
|
9006
|
+
ref: inputRef,
|
|
9007
|
+
accept: accept,
|
|
9008
|
+
"aria-hidden": "true",
|
|
9009
|
+
"aria-labelledby": buttonProps["aria-labelledby"] ?? buttonId,
|
|
9010
|
+
capture: capture,
|
|
9011
|
+
className: file_trigger_module.input,
|
|
9012
|
+
multiple: isMultiple,
|
|
9013
|
+
name: name,
|
|
9014
|
+
tabIndex: -1,
|
|
9015
|
+
type: "file",
|
|
9016
|
+
onChange: handleChange,
|
|
9017
|
+
...acceptDirectory ? {
|
|
9018
|
+
webkitdirectory: ""
|
|
9019
|
+
} : {}
|
|
9020
|
+
})
|
|
9021
|
+
]
|
|
9022
|
+
});
|
|
9023
|
+
});
|
|
9024
|
+
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");
|
|
9025
|
+
var drop_zone_module_options = {};
|
|
9026
|
+
drop_zone_module_options.styleTagTransform = styleTagTransform_default();
|
|
9027
|
+
drop_zone_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
9028
|
+
drop_zone_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
9029
|
+
drop_zone_module_options.domAPI = styleDomAPI_default();
|
|
9030
|
+
drop_zone_module_options.insertStyleElement = insertStyleElement_default();
|
|
9031
|
+
injectStylesIntoStyleTag_default()(drop_zone_module_0.A, drop_zone_module_options);
|
|
9032
|
+
const drop_zone_module = drop_zone_module_0.A && drop_zone_module_0.A.locals ? drop_zone_module_0.A.locals : void 0;
|
|
9033
|
+
const drop_zone_DropZone = /*#__PURE__*/ forwardRef(function(allProps, ref) {
|
|
9034
|
+
const [layout, { accept, buttonLabel, description, errorMessage, hint, isDisabled = false, isInvalid, isMultiple = false, label, name, onReject, onSelect }] = splitLayoutItemProps(allProps);
|
|
9035
|
+
const { style: layoutStyle } = useLayoutItem(layout);
|
|
9036
|
+
const id = useId();
|
|
9037
|
+
const labelId = `${id}-label`;
|
|
9038
|
+
const buttonId = `${id}-button`;
|
|
9039
|
+
const descriptionId = description ? `${id}-description` : void 0;
|
|
9040
|
+
const errorId = errorMessage ? `${id}-error` : void 0;
|
|
9041
|
+
const invalid = Boolean(isInvalid || errorMessage);
|
|
9042
|
+
const [isDropTarget, setIsDropTarget] = useState(false);
|
|
9043
|
+
const browse = useMessage("ox0.dropZone.browse", "Choose file");
|
|
9044
|
+
const browseMultiple = useMessage("ox0.dropZone.browseMultiple", "Choose files");
|
|
9045
|
+
function handleDragOver(e) {
|
|
9046
|
+
if (isDisabled || !e.dataTransfer.types.includes("Files")) return;
|
|
9047
|
+
e.preventDefault();
|
|
9048
|
+
e.dataTransfer.dropEffect = "copy";
|
|
9049
|
+
setIsDropTarget(true);
|
|
9050
|
+
}
|
|
9051
|
+
function handleDragLeave(e) {
|
|
9052
|
+
if (e.relatedTarget instanceof Node && e.currentTarget.contains(e.relatedTarget)) return;
|
|
9053
|
+
setIsDropTarget(false);
|
|
9054
|
+
}
|
|
9055
|
+
function handleDrop(e) {
|
|
9056
|
+
if (isDisabled) return;
|
|
9057
|
+
e.preventDefault();
|
|
9058
|
+
setIsDropTarget(false);
|
|
9059
|
+
const dropped = Array.from(e.dataTransfer.files);
|
|
9060
|
+
const matching = dropped.filter((f)=>matchesAccept(f, accept));
|
|
9061
|
+
const accepted = isMultiple ? matching : matching.slice(0, 1);
|
|
9062
|
+
const rejected = dropped.filter((f)=>!accepted.includes(f));
|
|
9063
|
+
if (accepted.length > 0) onSelect(accepted);
|
|
9064
|
+
if (rejected.length > 0) onReject?.(rejected);
|
|
9065
|
+
}
|
|
9066
|
+
const labelledBy = label ? `${labelId} ${buttonId}` : void 0;
|
|
9067
|
+
const describedBy = [
|
|
9068
|
+
descriptionId,
|
|
9069
|
+
errorId
|
|
9070
|
+
].filter(Boolean).join(" ") || void 0;
|
|
9071
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
9072
|
+
ref: ref,
|
|
9073
|
+
className: drop_zone_module.root,
|
|
9074
|
+
style: layoutStyle,
|
|
9075
|
+
children: [
|
|
9076
|
+
label ? /*#__PURE__*/ jsx("span", {
|
|
9077
|
+
className: field_module.label,
|
|
9078
|
+
id: labelId,
|
|
9079
|
+
children: label
|
|
9080
|
+
}) : null,
|
|
9081
|
+
/*#__PURE__*/ jsxs("div", {
|
|
9082
|
+
className: drop_zone_module.zone,
|
|
9083
|
+
"data-disabled": isDisabled || void 0,
|
|
9084
|
+
"data-drop-target": isDropTarget || void 0,
|
|
9085
|
+
"data-invalid": invalid || void 0,
|
|
9086
|
+
onDragLeave: handleDragLeave,
|
|
9087
|
+
onDragOver: handleDragOver,
|
|
9088
|
+
onDrop: handleDrop,
|
|
9089
|
+
children: [
|
|
9090
|
+
null != hint ? /*#__PURE__*/ jsx("p", {
|
|
9091
|
+
className: drop_zone_module.hint,
|
|
9092
|
+
children: hint
|
|
9093
|
+
}) : null,
|
|
9094
|
+
/*#__PURE__*/ jsx(file_trigger_FileTrigger, {
|
|
9095
|
+
accept: accept,
|
|
9096
|
+
"aria-describedby": describedBy,
|
|
9097
|
+
"aria-labelledby": labelledBy,
|
|
9098
|
+
id: buttonId,
|
|
9099
|
+
isDisabled: isDisabled,
|
|
9100
|
+
isMultiple: isMultiple,
|
|
9101
|
+
name: name,
|
|
9102
|
+
size: "sm",
|
|
9103
|
+
onSelect: onSelect,
|
|
9104
|
+
children: buttonLabel ?? (isMultiple ? browseMultiple : browse)
|
|
9105
|
+
})
|
|
9106
|
+
]
|
|
9107
|
+
}),
|
|
9108
|
+
description ? /*#__PURE__*/ jsx("span", {
|
|
9109
|
+
className: drop_zone_module.description,
|
|
9110
|
+
id: descriptionId,
|
|
9111
|
+
children: description
|
|
9112
|
+
}) : null,
|
|
9113
|
+
errorMessage ? /*#__PURE__*/ jsx("span", {
|
|
9114
|
+
className: drop_zone_module.error,
|
|
9115
|
+
id: errorId,
|
|
9116
|
+
children: errorMessage
|
|
9117
|
+
}) : null
|
|
9118
|
+
]
|
|
9119
|
+
});
|
|
9120
|
+
});
|
|
9121
|
+
function defineSearchSource(source) {
|
|
9122
|
+
return source;
|
|
9123
|
+
}
|
|
9124
|
+
class SearchRunner {
|
|
9125
|
+
groups = [];
|
|
9126
|
+
listeners = new Set();
|
|
9127
|
+
controller = null;
|
|
9128
|
+
timers = [];
|
|
9129
|
+
subscribe = (listener)=>{
|
|
9130
|
+
this.listeners.add(listener);
|
|
9131
|
+
return ()=>{
|
|
9132
|
+
this.listeners.delete(listener);
|
|
9133
|
+
};
|
|
9134
|
+
};
|
|
9135
|
+
getSnapshot = ()=>this.groups;
|
|
9136
|
+
run(sources, query) {
|
|
9137
|
+
this.cancel();
|
|
9138
|
+
const controller = new AbortController();
|
|
9139
|
+
this.controller = controller;
|
|
9140
|
+
const trimmed = query.trim();
|
|
9141
|
+
const previous = new Map(this.groups.map((group)=>[
|
|
9142
|
+
group.source.id,
|
|
9143
|
+
group
|
|
9144
|
+
]));
|
|
9145
|
+
this.groups = sources.map((source)=>{
|
|
9146
|
+
if (trimmed.length < (source.minQueryLength ?? 0)) return {
|
|
9147
|
+
source,
|
|
9148
|
+
items: [],
|
|
9149
|
+
status: "idle"
|
|
9150
|
+
};
|
|
9151
|
+
return {
|
|
9152
|
+
source,
|
|
9153
|
+
items: previous.get(source.id)?.items ?? [],
|
|
9154
|
+
status: "loading"
|
|
9155
|
+
};
|
|
9156
|
+
});
|
|
9157
|
+
sources.forEach((source, index)=>{
|
|
9158
|
+
if (this.groups[index]?.status === "idle") return;
|
|
9159
|
+
const start = ()=>this.start(source, index, trimmed, controller);
|
|
9160
|
+
const delay = source.debounceMs ?? 0;
|
|
9161
|
+
if (delay > 0) this.timers.push(setTimeout(start, delay));
|
|
9162
|
+
else start();
|
|
9163
|
+
});
|
|
9164
|
+
this.emit();
|
|
9165
|
+
}
|
|
9166
|
+
cancel() {
|
|
9167
|
+
for (const timer of this.timers)clearTimeout(timer);
|
|
9168
|
+
this.timers = [];
|
|
9169
|
+
this.controller?.abort();
|
|
9170
|
+
this.controller = null;
|
|
9171
|
+
}
|
|
9172
|
+
start(source, index, query, controller) {
|
|
9173
|
+
let result;
|
|
9174
|
+
try {
|
|
9175
|
+
result = source.search(query, {
|
|
9176
|
+
signal: controller.signal
|
|
9177
|
+
});
|
|
9178
|
+
} catch {
|
|
9179
|
+
this.update(index, controller, {
|
|
9180
|
+
status: "error",
|
|
9181
|
+
items: []
|
|
9182
|
+
});
|
|
9183
|
+
return;
|
|
9184
|
+
}
|
|
9185
|
+
if (!(result instanceof Promise)) return void this.update(index, controller, {
|
|
9186
|
+
status: "ready",
|
|
9187
|
+
items: result
|
|
9188
|
+
});
|
|
9189
|
+
result.then((items)=>this.update(index, controller, {
|
|
9190
|
+
status: "ready",
|
|
9191
|
+
items
|
|
9192
|
+
})).catch(()=>this.update(index, controller, {
|
|
9193
|
+
status: "error",
|
|
9194
|
+
items: []
|
|
9195
|
+
}));
|
|
9196
|
+
}
|
|
9197
|
+
update(index, controller, next) {
|
|
9198
|
+
if (controller.signal.aborted) return;
|
|
9199
|
+
const group = this.groups[index];
|
|
9200
|
+
if (!group) return;
|
|
9201
|
+
this.groups = this.groups.map((g, i)=>i === index ? {
|
|
9202
|
+
...g,
|
|
9203
|
+
...next
|
|
9204
|
+
} : g);
|
|
9205
|
+
this.emit();
|
|
9206
|
+
}
|
|
9207
|
+
emit() {
|
|
9208
|
+
for (const listener of this.listeners)listener();
|
|
9209
|
+
}
|
|
9210
|
+
}
|
|
9211
|
+
function matchSearchItems(items, query, getText) {
|
|
9212
|
+
const normalized = query.trim().toLowerCase();
|
|
9213
|
+
if (0 === normalized.length) return [
|
|
9214
|
+
...items
|
|
9215
|
+
];
|
|
9216
|
+
const terms = normalized.split(/\s+/);
|
|
9217
|
+
const first = terms[0] ?? "";
|
|
9218
|
+
const ranked = [];
|
|
9219
|
+
items.forEach((item, index)=>{
|
|
9220
|
+
const text = getText(item).toLowerCase();
|
|
9221
|
+
if (!terms.every((term)=>text.includes(term))) return;
|
|
9222
|
+
const rank = text.startsWith(normalized) ? 0 : text.split(/[\s\-_/.]+/).some((word)=>word.startsWith(first)) ? 1 : 2;
|
|
9223
|
+
ranked.push({
|
|
9224
|
+
item,
|
|
9225
|
+
rank,
|
|
9226
|
+
index
|
|
9227
|
+
});
|
|
9228
|
+
});
|
|
9229
|
+
ranked.sort((a, b)=>a.rank - b.rank || a.index - b.index);
|
|
9230
|
+
return ranked.map((entry)=>entry.item);
|
|
9231
|
+
}
|
|
9232
|
+
const THEME_SCOPE = "[data-theme], [data-color-scheme], [data-density]";
|
|
9233
|
+
function themeRoot(anchor) {
|
|
9234
|
+
return anchor?.closest(THEME_SCOPE) ?? void 0;
|
|
9235
|
+
}
|
|
9236
|
+
const global_search_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/global-search.module.css");
|
|
9237
|
+
var global_search_module_options = {};
|
|
9238
|
+
global_search_module_options.styleTagTransform = styleTagTransform_default();
|
|
9239
|
+
global_search_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
9240
|
+
global_search_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
9241
|
+
global_search_module_options.domAPI = styleDomAPI_default();
|
|
9242
|
+
global_search_module_options.insertStyleElement = insertStyleElement_default();
|
|
9243
|
+
injectStylesIntoStyleTag_default()(global_search_module_0.A, global_search_module_options);
|
|
9244
|
+
const global_search_module = global_search_module_0.A && global_search_module_0.A.locals ? global_search_module_0.A.locals : void 0;
|
|
9245
|
+
const DEFAULT_LIMIT = 5;
|
|
9246
|
+
const global_search_FOCUSABLE_SELECTOR = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
9247
|
+
const GlobalSearchContext = /*#__PURE__*/ createContext(null);
|
|
9248
|
+
function useGlobalSearch() {
|
|
9249
|
+
const ctx = useContext(GlobalSearchContext);
|
|
9250
|
+
if (!ctx) throw new Error("useGlobalSearch must be used inside <GlobalSearch>");
|
|
9251
|
+
return ctx;
|
|
9252
|
+
}
|
|
9253
|
+
function GlobalSearchRoot({ children, defaultOpen = false, emptyState, isOpen: isOpenProp, isShortcutDisabled = false, onOpenChange, placeholder, sources }) {
|
|
9254
|
+
const os = useOS();
|
|
9255
|
+
const [isOpen, setIsOpen] = useControllableState({
|
|
9256
|
+
defaultValue: defaultOpen,
|
|
9257
|
+
onChange: onOpenChange,
|
|
9258
|
+
value: isOpenProp
|
|
9259
|
+
});
|
|
9260
|
+
const [initialQuery, setInitialQuery] = useState("");
|
|
9261
|
+
const [anchor, setAnchor] = useState(null);
|
|
9262
|
+
const isMac = "mac" === os;
|
|
9263
|
+
const shortcutLabel = isMac ? "⌘K" : "Ctrl K";
|
|
9264
|
+
const open = useCallback((query = "")=>{
|
|
9265
|
+
setInitialQuery(query);
|
|
9266
|
+
setIsOpen(true);
|
|
9267
|
+
}, [
|
|
9268
|
+
setIsOpen
|
|
9269
|
+
]);
|
|
9270
|
+
const close = useCallback(()=>setIsOpen(false), [
|
|
9271
|
+
setIsOpen
|
|
9272
|
+
]);
|
|
9273
|
+
useEffect(()=>{
|
|
9274
|
+
if (isShortcutDisabled) return;
|
|
9275
|
+
const handler = (e)=>{
|
|
9276
|
+
if (e.defaultPrevented || e.isComposing || e.altKey || e.shiftKey) return;
|
|
9277
|
+
if ("k" !== e.key.toLowerCase()) return;
|
|
9278
|
+
const isMod = "mac" === os ? e.metaKey : "mobile" === os ? e.metaKey || e.ctrlKey : e.ctrlKey;
|
|
9279
|
+
if (!isMod) return;
|
|
9280
|
+
e.preventDefault();
|
|
9281
|
+
if (isOpen) close();
|
|
9282
|
+
else open();
|
|
9283
|
+
};
|
|
9284
|
+
window.addEventListener("keydown", handler);
|
|
9285
|
+
return ()=>window.removeEventListener("keydown", handler);
|
|
9286
|
+
}, [
|
|
9287
|
+
close,
|
|
9288
|
+
isOpen,
|
|
9289
|
+
isShortcutDisabled,
|
|
9290
|
+
open,
|
|
9291
|
+
os
|
|
9292
|
+
]);
|
|
9293
|
+
const controls = useMemo(()=>({
|
|
9294
|
+
close,
|
|
9295
|
+
isOpen,
|
|
9296
|
+
open,
|
|
9297
|
+
shortcutLabel
|
|
9298
|
+
}), [
|
|
9299
|
+
close,
|
|
9300
|
+
isOpen,
|
|
9301
|
+
open,
|
|
9302
|
+
shortcutLabel
|
|
9303
|
+
]);
|
|
9304
|
+
return /*#__PURE__*/ jsxs(GlobalSearchContext.Provider, {
|
|
9305
|
+
value: controls,
|
|
9306
|
+
children: [
|
|
9307
|
+
children,
|
|
9308
|
+
/*#__PURE__*/ jsx("span", {
|
|
9309
|
+
ref: setAnchor,
|
|
9310
|
+
hidden: true
|
|
9311
|
+
}),
|
|
9312
|
+
isOpen && anchor ? /*#__PURE__*/ createPortal(/*#__PURE__*/ jsx(SearchPanel, {
|
|
9313
|
+
emptyState: emptyState,
|
|
9314
|
+
initialQuery: initialQuery,
|
|
9315
|
+
placeholder: placeholder,
|
|
9316
|
+
sources: sources,
|
|
9317
|
+
onClose: close
|
|
9318
|
+
}), themeRoot(anchor) ?? document.body) : null
|
|
9319
|
+
]
|
|
9320
|
+
});
|
|
9321
|
+
}
|
|
9322
|
+
function SearchPanel({ emptyState, initialQuery, onClose, placeholder, sources }) {
|
|
9323
|
+
const baseId = useId();
|
|
9324
|
+
const listboxId = `${baseId}-listbox`;
|
|
9325
|
+
const router = useRouter();
|
|
9326
|
+
const dialogRef = useRef(null);
|
|
9327
|
+
const inputRef = useRef(null);
|
|
9328
|
+
const [query, setQuery] = useState(initialQuery);
|
|
9329
|
+
const [activeId, setActiveId] = useState(null);
|
|
9330
|
+
const [runner] = useState(()=>new SearchRunner());
|
|
9331
|
+
const groups = useSyncExternalStore(runner.subscribe, runner.getSnapshot, runner.getSnapshot);
|
|
9332
|
+
const label = useMessage("ox0.globalSearch.label", "Search");
|
|
9333
|
+
const defaultPlaceholder = useMessage("ox0.globalSearch.placeholder", "Search…");
|
|
9334
|
+
const loadingText = useMessage("ox0.globalSearch.loading", "Searching…");
|
|
9335
|
+
const errorText = useMessage("ox0.globalSearch.error", "Couldn't load results");
|
|
9336
|
+
const noResultsText = useMessage("ox0.globalSearch.noResults", "No results for “{query}”", {
|
|
9337
|
+
query: query.trim()
|
|
9338
|
+
});
|
|
9339
|
+
const previewLabel = useMessage("ox0.globalSearch.preview", "Details");
|
|
9340
|
+
const navigateHint = useMessage("ox0.globalSearch.navigate", "Navigate");
|
|
9341
|
+
const openHint = useMessage("ox0.globalSearch.open", "Open");
|
|
9342
|
+
const closeHint = useMessage("ox0.globalSearch.close", "Close");
|
|
9343
|
+
useEffect(()=>{
|
|
9344
|
+
runner.run(sources, query);
|
|
9345
|
+
}, [
|
|
9346
|
+
query,
|
|
9347
|
+
runner,
|
|
9348
|
+
sources
|
|
9349
|
+
]);
|
|
9350
|
+
useEffect(()=>()=>runner.cancel(), [
|
|
9351
|
+
runner
|
|
9352
|
+
]);
|
|
9353
|
+
useEffect(()=>{
|
|
9354
|
+
const previouslyFocused = document.activeElement;
|
|
9355
|
+
inputRef.current?.focus();
|
|
9356
|
+
return ()=>{
|
|
9357
|
+
if (previouslyFocused instanceof HTMLElement) previouslyFocused.focus();
|
|
9358
|
+
};
|
|
9359
|
+
}, []);
|
|
9360
|
+
const options = useMemo(()=>{
|
|
9361
|
+
const result = [];
|
|
9362
|
+
for (const group of groups)for (const item of group.items.slice(0, group.source.limit ?? DEFAULT_LIMIT))result.push({
|
|
9363
|
+
id: `${baseId}-${group.source.id}-${group.source.getKey(item)}`,
|
|
9364
|
+
item,
|
|
9365
|
+
source: group.source
|
|
9366
|
+
});
|
|
9367
|
+
return result;
|
|
9368
|
+
}, [
|
|
9369
|
+
baseId,
|
|
9370
|
+
groups
|
|
9371
|
+
]);
|
|
9372
|
+
const active = options.find((option)=>option.id === activeId) ?? options[0];
|
|
9373
|
+
const isLoading = groups.some((group)=>"loading" === group.status);
|
|
9374
|
+
const hasPreviewPane = sources.some((source)=>void 0 !== source.renderPreview);
|
|
9375
|
+
const terms = useMemo(()=>query.trim().split(/\s+/).filter(Boolean), [
|
|
9376
|
+
query
|
|
9377
|
+
]);
|
|
9378
|
+
const resultCountText = useMessage(1 === options.length ? "ox0.globalSearch.resultCountOne" : "ox0.globalSearch.resultCount", 1 === options.length ? "1 result" : "{count} results", {
|
|
9379
|
+
count: String(options.length)
|
|
9380
|
+
});
|
|
9381
|
+
useEffect(()=>{
|
|
9382
|
+
if (!active) return;
|
|
9383
|
+
document.getElementById(active.id)?.scrollIntoView?.({
|
|
9384
|
+
block: "nearest"
|
|
9385
|
+
});
|
|
9386
|
+
}, [
|
|
9387
|
+
active
|
|
9388
|
+
]);
|
|
9389
|
+
function choose(option, inNewTab) {
|
|
9390
|
+
const href = option.source.getHref?.(option.item);
|
|
9391
|
+
onClose();
|
|
9392
|
+
if (void 0 !== href && isSafeHref(href)) if (inNewTab) window.open(href, "_blank", "noopener,noreferrer");
|
|
9393
|
+
else if (router) router.navigate(href);
|
|
9394
|
+
else window.location.assign(href);
|
|
9395
|
+
option.source.onAction?.(option.item);
|
|
9396
|
+
}
|
|
9397
|
+
function move(offset) {
|
|
9398
|
+
if (0 === options.length || !active) return;
|
|
9399
|
+
const index = options.indexOf(active);
|
|
9400
|
+
const next = options[(index + offset + options.length) % options.length];
|
|
9401
|
+
if (next) setActiveId(next.id);
|
|
9402
|
+
}
|
|
9403
|
+
function handleInputKeyDown(e) {
|
|
9404
|
+
if (e.nativeEvent.isComposing) return;
|
|
9405
|
+
switch(e.key){
|
|
9406
|
+
case "ArrowDown":
|
|
9407
|
+
e.preventDefault();
|
|
9408
|
+
move(1);
|
|
9409
|
+
break;
|
|
9410
|
+
case "ArrowUp":
|
|
9411
|
+
e.preventDefault();
|
|
9412
|
+
move(-1);
|
|
9413
|
+
break;
|
|
9414
|
+
case "Enter":
|
|
9415
|
+
if (!active) return;
|
|
9416
|
+
e.preventDefault();
|
|
9417
|
+
choose(active, e.metaKey || e.ctrlKey);
|
|
9418
|
+
break;
|
|
9419
|
+
case "Escape":
|
|
9420
|
+
e.preventDefault();
|
|
9421
|
+
if (query) setQuery("");
|
|
9422
|
+
else onClose();
|
|
9423
|
+
break;
|
|
9424
|
+
}
|
|
9425
|
+
}
|
|
9426
|
+
function handleDialogKeyDown(e) {
|
|
9427
|
+
if ("Escape" === e.key && e.target !== inputRef.current) {
|
|
9428
|
+
e.preventDefault();
|
|
9429
|
+
onClose();
|
|
9430
|
+
return;
|
|
9431
|
+
}
|
|
9432
|
+
if ("Tab" !== e.key) return;
|
|
9433
|
+
const focusable = Array.from(dialogRef.current?.querySelectorAll(global_search_FOCUSABLE_SELECTOR) ?? []);
|
|
9434
|
+
const first = focusable[0];
|
|
9435
|
+
const last = focusable.at(-1);
|
|
9436
|
+
if (e.shiftKey && document.activeElement === first) {
|
|
9437
|
+
e.preventDefault();
|
|
9438
|
+
last?.focus();
|
|
9439
|
+
} else if (!e.shiftKey && document.activeElement === last) {
|
|
9440
|
+
e.preventDefault();
|
|
9441
|
+
first?.focus();
|
|
9442
|
+
}
|
|
9443
|
+
}
|
|
9444
|
+
const showEmpty = query.trim().length > 0 && 0 === options.length && !isLoading;
|
|
9445
|
+
const preview = active?.source.renderPreview?.(active.item);
|
|
9446
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
9447
|
+
className: global_search_module.overlay,
|
|
9448
|
+
children: [
|
|
9449
|
+
/*#__PURE__*/ jsx("div", {
|
|
9450
|
+
"aria-hidden": "true",
|
|
9451
|
+
className: global_search_module.backdrop,
|
|
9452
|
+
onClick: onClose
|
|
9453
|
+
}),
|
|
9454
|
+
/*#__PURE__*/ jsxs("dialog", {
|
|
9455
|
+
ref: dialogRef,
|
|
9456
|
+
"aria-label": label,
|
|
9457
|
+
"aria-modal": "true",
|
|
9458
|
+
className: global_search_module.dialog,
|
|
9459
|
+
"data-has-preview": hasPreviewPane || void 0,
|
|
9460
|
+
open: true,
|
|
9461
|
+
onKeyDown: handleDialogKeyDown,
|
|
9462
|
+
children: [
|
|
9463
|
+
/*#__PURE__*/ jsxs("div", {
|
|
9464
|
+
className: global_search_module.inputRow,
|
|
9465
|
+
children: [
|
|
9466
|
+
/*#__PURE__*/ jsx(SearchIcon, {}),
|
|
9467
|
+
/*#__PURE__*/ jsx("input", {
|
|
9468
|
+
ref: inputRef,
|
|
9469
|
+
"aria-activedescendant": active?.id,
|
|
9470
|
+
"aria-autocomplete": "list",
|
|
9471
|
+
"aria-controls": listboxId,
|
|
9472
|
+
"aria-expanded": options.length > 0,
|
|
9473
|
+
"aria-label": label,
|
|
9474
|
+
autoComplete: "off",
|
|
9475
|
+
className: global_search_module.input,
|
|
9476
|
+
placeholder: placeholder ?? defaultPlaceholder,
|
|
9477
|
+
role: "combobox",
|
|
9478
|
+
spellCheck: false,
|
|
9479
|
+
type: "text",
|
|
9480
|
+
value: query,
|
|
9481
|
+
onChange: (e)=>setQuery(e.target.value),
|
|
9482
|
+
onKeyDown: handleInputKeyDown
|
|
9483
|
+
}),
|
|
9484
|
+
isLoading ? /*#__PURE__*/ jsx("span", {
|
|
9485
|
+
"aria-hidden": "true",
|
|
9486
|
+
className: global_search_module.spinner
|
|
9487
|
+
}) : null
|
|
9488
|
+
]
|
|
9489
|
+
}),
|
|
9490
|
+
/*#__PURE__*/ jsxs("div", {
|
|
9491
|
+
className: global_search_module.body,
|
|
9492
|
+
children: [
|
|
9493
|
+
/*#__PURE__*/ jsx(MarkProvider, {
|
|
9494
|
+
terms: terms,
|
|
9495
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
9496
|
+
className: global_search_module.resultsPane,
|
|
9497
|
+
children: [
|
|
9498
|
+
/*#__PURE__*/ jsx("div", {
|
|
9499
|
+
"aria-label": label,
|
|
9500
|
+
className: global_search_module.results,
|
|
9501
|
+
id: listboxId,
|
|
9502
|
+
role: "listbox",
|
|
9503
|
+
children: groups.map((group)=>{
|
|
9504
|
+
const groupOptions = options.filter((option)=>option.source === group.source);
|
|
9505
|
+
const status = "error" === group.status ? errorText : "loading" === group.status && 0 === groupOptions.length ? loadingText : null;
|
|
9506
|
+
if (0 === groupOptions.length && null === status) return null;
|
|
9507
|
+
const headingId = `${baseId}-${group.source.id}-heading`;
|
|
9508
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
9509
|
+
className: global_search_module.group,
|
|
9510
|
+
role: "presentation",
|
|
9511
|
+
children: [
|
|
9512
|
+
/*#__PURE__*/ jsxs("div", {
|
|
9513
|
+
className: global_search_module.groupHeading,
|
|
9514
|
+
id: headingId,
|
|
9515
|
+
role: "presentation",
|
|
9516
|
+
children: [
|
|
9517
|
+
/*#__PURE__*/ jsx("span", {
|
|
9518
|
+
children: group.source.label
|
|
9519
|
+
}),
|
|
9520
|
+
status ? /*#__PURE__*/ jsx("span", {
|
|
9521
|
+
className: global_search_module.groupStatus,
|
|
9522
|
+
children: status
|
|
9523
|
+
}) : null
|
|
9524
|
+
]
|
|
9525
|
+
}),
|
|
9526
|
+
/*#__PURE__*/ jsx("div", {
|
|
9527
|
+
"aria-labelledby": headingId,
|
|
9528
|
+
role: "group",
|
|
9529
|
+
children: groupOptions.map((option)=>/*#__PURE__*/ jsx(ResultRow, {
|
|
9530
|
+
isActive: option === active,
|
|
9531
|
+
option: option,
|
|
9532
|
+
onChoose: choose,
|
|
9533
|
+
onHover: setActiveId
|
|
9534
|
+
}, option.id))
|
|
9535
|
+
})
|
|
9536
|
+
]
|
|
9537
|
+
}, group.source.id);
|
|
9538
|
+
})
|
|
9539
|
+
}),
|
|
9540
|
+
showEmpty ? /*#__PURE__*/ jsx("div", {
|
|
9541
|
+
className: global_search_module.empty,
|
|
9542
|
+
children: emptyState ?? noResultsText
|
|
9543
|
+
}) : null
|
|
9544
|
+
]
|
|
9545
|
+
})
|
|
9546
|
+
}),
|
|
9547
|
+
hasPreviewPane ? /*#__PURE__*/ jsx("section", {
|
|
9548
|
+
"aria-label": previewLabel,
|
|
9549
|
+
className: global_search_module.preview,
|
|
9550
|
+
children: preview
|
|
9551
|
+
}) : null
|
|
9552
|
+
]
|
|
9553
|
+
}),
|
|
9554
|
+
/*#__PURE__*/ jsxs("div", {
|
|
9555
|
+
"aria-hidden": "true",
|
|
9556
|
+
className: global_search_module.footer,
|
|
9557
|
+
children: [
|
|
9558
|
+
/*#__PURE__*/ jsxs("span", {
|
|
9559
|
+
className: global_search_module.hint,
|
|
9560
|
+
children: [
|
|
9561
|
+
/*#__PURE__*/ jsx(keyboard_Keyboard, {
|
|
9562
|
+
children: "↑"
|
|
9563
|
+
}),
|
|
9564
|
+
/*#__PURE__*/ jsx(keyboard_Keyboard, {
|
|
9565
|
+
children: "↓"
|
|
9566
|
+
}),
|
|
9567
|
+
navigateHint
|
|
9568
|
+
]
|
|
9569
|
+
}),
|
|
9570
|
+
/*#__PURE__*/ jsxs("span", {
|
|
9571
|
+
className: global_search_module.hint,
|
|
9572
|
+
children: [
|
|
9573
|
+
/*#__PURE__*/ jsx(keyboard_Keyboard, {
|
|
9574
|
+
children: "↵"
|
|
9575
|
+
}),
|
|
9576
|
+
openHint
|
|
9577
|
+
]
|
|
9578
|
+
}),
|
|
9579
|
+
/*#__PURE__*/ jsxs("span", {
|
|
9580
|
+
className: global_search_module.hint,
|
|
9581
|
+
children: [
|
|
9582
|
+
/*#__PURE__*/ jsx(keyboard_Keyboard, {
|
|
9583
|
+
children: "Esc"
|
|
9584
|
+
}),
|
|
9585
|
+
closeHint
|
|
9586
|
+
]
|
|
9587
|
+
})
|
|
9588
|
+
]
|
|
9589
|
+
}),
|
|
9590
|
+
/*#__PURE__*/ jsx("output", {
|
|
9591
|
+
"aria-live": "polite",
|
|
9592
|
+
className: global_search_module.visuallyHidden,
|
|
9593
|
+
children: isLoading ? "" : showEmpty ? noResultsText : query.trim() ? resultCountText : ""
|
|
9594
|
+
})
|
|
9595
|
+
]
|
|
9596
|
+
})
|
|
9597
|
+
]
|
|
9598
|
+
});
|
|
9599
|
+
}
|
|
9600
|
+
function ResultRow({ isActive, onChoose, onHover, option }) {
|
|
9601
|
+
const { pressProps } = usePress({
|
|
9602
|
+
onPress: (e)=>onChoose(option, e.metaKey || e.ctrlKey),
|
|
9603
|
+
preventFocusOnPress: true
|
|
9604
|
+
});
|
|
9605
|
+
return /*#__PURE__*/ jsx("div", {
|
|
9606
|
+
...pressProps,
|
|
9607
|
+
"aria-label": option.source.getTextValue(option.item),
|
|
9608
|
+
"aria-selected": isActive,
|
|
9609
|
+
className: global_search_module.option,
|
|
9610
|
+
"data-active": isActive || void 0,
|
|
9611
|
+
id: option.id,
|
|
9612
|
+
role: "option",
|
|
9613
|
+
tabIndex: -1,
|
|
9614
|
+
onPointerMove: ()=>{
|
|
9615
|
+
if (!isActive) onHover(option.id);
|
|
9616
|
+
},
|
|
9617
|
+
children: option.source.renderItem(option.item)
|
|
8472
9618
|
});
|
|
8473
9619
|
}
|
|
8474
|
-
|
|
8475
|
-
const
|
|
8476
|
-
|
|
8477
|
-
const
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
9620
|
+
function GlobalSearchTrigger({ placeholder }) {
|
|
9621
|
+
const ctx = useContext(GlobalSearchContext);
|
|
9622
|
+
if (!ctx) throw new Error("GlobalSearch.Trigger must be used inside <GlobalSearch>");
|
|
9623
|
+
const { open, shortcutLabel } = ctx;
|
|
9624
|
+
const defaultPlaceholder = useMessage("ox0.globalSearch.placeholder", "Search…");
|
|
9625
|
+
const { pressProps } = usePress({
|
|
9626
|
+
onPress: ()=>open()
|
|
9627
|
+
});
|
|
9628
|
+
return /*#__PURE__*/ jsxs("button", {
|
|
9629
|
+
...pressProps,
|
|
9630
|
+
"aria-keyshortcuts": shortcutLabel.startsWith("⌘") ? "Meta+K" : "Control+K",
|
|
9631
|
+
className: global_search_module.trigger,
|
|
9632
|
+
type: "button",
|
|
8484
9633
|
children: [
|
|
8485
|
-
/*#__PURE__*/ jsx(
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
variant: variant,
|
|
8490
|
-
onPress: ()=>inputRef.current?.click(),
|
|
8491
|
-
children: children
|
|
9634
|
+
/*#__PURE__*/ jsx(SearchIcon, {}),
|
|
9635
|
+
/*#__PURE__*/ jsx("span", {
|
|
9636
|
+
className: global_search_module.triggerText,
|
|
9637
|
+
children: placeholder ?? defaultPlaceholder
|
|
8492
9638
|
}),
|
|
8493
|
-
/*#__PURE__*/ jsx(
|
|
8494
|
-
|
|
8495
|
-
accept: accept,
|
|
8496
|
-
"aria-hidden": "true",
|
|
8497
|
-
"aria-labelledby": buttonProps["aria-labelledby"] ?? buttonId,
|
|
8498
|
-
capture: capture,
|
|
8499
|
-
className: file_trigger_module.input,
|
|
8500
|
-
multiple: isMultiple,
|
|
8501
|
-
name: name,
|
|
8502
|
-
tabIndex: -1,
|
|
8503
|
-
type: "file",
|
|
8504
|
-
onChange: handleChange,
|
|
8505
|
-
...acceptDirectory ? {
|
|
8506
|
-
webkitdirectory: ""
|
|
8507
|
-
} : {}
|
|
9639
|
+
/*#__PURE__*/ jsx(keyboard_Keyboard, {
|
|
9640
|
+
children: shortcutLabel
|
|
8508
9641
|
})
|
|
8509
9642
|
]
|
|
8510
9643
|
});
|
|
8511
|
-
}
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
drop_zone_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
8516
|
-
drop_zone_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
8517
|
-
drop_zone_module_options.domAPI = styleDomAPI_default();
|
|
8518
|
-
drop_zone_module_options.insertStyleElement = insertStyleElement_default();
|
|
8519
|
-
injectStylesIntoStyleTag_default()(drop_zone_module_0.A, drop_zone_module_options);
|
|
8520
|
-
const drop_zone_module = drop_zone_module_0.A && drop_zone_module_0.A.locals ? drop_zone_module_0.A.locals : void 0;
|
|
8521
|
-
const drop_zone_DropZone = /*#__PURE__*/ forwardRef(function(allProps, ref) {
|
|
8522
|
-
const [layout, { accept, buttonLabel, description, errorMessage, hint, isDisabled = false, isInvalid, isMultiple = false, label, name, onReject, onSelect }] = splitLayoutItemProps(allProps);
|
|
8523
|
-
const { style: layoutStyle } = useLayoutItem(layout);
|
|
8524
|
-
const id = useId();
|
|
8525
|
-
const labelId = `${id}-label`;
|
|
8526
|
-
const buttonId = `${id}-button`;
|
|
8527
|
-
const descriptionId = description ? `${id}-description` : void 0;
|
|
8528
|
-
const errorId = errorMessage ? `${id}-error` : void 0;
|
|
8529
|
-
const invalid = Boolean(isInvalid || errorMessage);
|
|
8530
|
-
const [isDropTarget, setIsDropTarget] = useState(false);
|
|
8531
|
-
const browse = useMessage("ox0.dropZone.browse", "Choose file");
|
|
8532
|
-
const browseMultiple = useMessage("ox0.dropZone.browseMultiple", "Choose files");
|
|
8533
|
-
function handleDragOver(e) {
|
|
8534
|
-
if (isDisabled || !e.dataTransfer.types.includes("Files")) return;
|
|
8535
|
-
e.preventDefault();
|
|
8536
|
-
e.dataTransfer.dropEffect = "copy";
|
|
8537
|
-
setIsDropTarget(true);
|
|
8538
|
-
}
|
|
8539
|
-
function handleDragLeave(e) {
|
|
8540
|
-
if (e.relatedTarget instanceof Node && e.currentTarget.contains(e.relatedTarget)) return;
|
|
8541
|
-
setIsDropTarget(false);
|
|
8542
|
-
}
|
|
8543
|
-
function handleDrop(e) {
|
|
8544
|
-
if (isDisabled) return;
|
|
8545
|
-
e.preventDefault();
|
|
8546
|
-
setIsDropTarget(false);
|
|
8547
|
-
const dropped = Array.from(e.dataTransfer.files);
|
|
8548
|
-
const matching = dropped.filter((f)=>matchesAccept(f, accept));
|
|
8549
|
-
const accepted = isMultiple ? matching : matching.slice(0, 1);
|
|
8550
|
-
const rejected = dropped.filter((f)=>!accepted.includes(f));
|
|
8551
|
-
if (accepted.length > 0) onSelect(accepted);
|
|
8552
|
-
if (rejected.length > 0) onReject?.(rejected);
|
|
8553
|
-
}
|
|
8554
|
-
const labelledBy = label ? `${labelId} ${buttonId}` : void 0;
|
|
8555
|
-
const describedBy = [
|
|
8556
|
-
descriptionId,
|
|
8557
|
-
errorId
|
|
8558
|
-
].filter(Boolean).join(" ") || void 0;
|
|
8559
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
8560
|
-
ref: ref,
|
|
8561
|
-
className: drop_zone_module.root,
|
|
8562
|
-
style: layoutStyle,
|
|
9644
|
+
}
|
|
9645
|
+
function SearchResult({ description, icon, meta, title }) {
|
|
9646
|
+
return /*#__PURE__*/ jsxs("span", {
|
|
9647
|
+
className: global_search_module.result,
|
|
8563
9648
|
children: [
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
children:
|
|
9649
|
+
icon ? /*#__PURE__*/ jsx("span", {
|
|
9650
|
+
"aria-hidden": "true",
|
|
9651
|
+
className: global_search_module.resultIcon,
|
|
9652
|
+
children: icon
|
|
8568
9653
|
}) : null,
|
|
8569
|
-
/*#__PURE__*/ jsxs("
|
|
8570
|
-
className:
|
|
8571
|
-
"data-disabled": isDisabled || void 0,
|
|
8572
|
-
"data-drop-target": isDropTarget || void 0,
|
|
8573
|
-
"data-invalid": invalid || void 0,
|
|
8574
|
-
onDragLeave: handleDragLeave,
|
|
8575
|
-
onDragOver: handleDragOver,
|
|
8576
|
-
onDrop: handleDrop,
|
|
9654
|
+
/*#__PURE__*/ jsxs("span", {
|
|
9655
|
+
className: global_search_module.resultText,
|
|
8577
9656
|
children: [
|
|
8578
|
-
|
|
8579
|
-
className:
|
|
8580
|
-
children:
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
size: "sm",
|
|
8591
|
-
onSelect: onSelect,
|
|
8592
|
-
children: buttonLabel ?? (isMultiple ? browseMultiple : browse)
|
|
8593
|
-
})
|
|
9657
|
+
/*#__PURE__*/ jsx("span", {
|
|
9658
|
+
className: global_search_module.resultTitle,
|
|
9659
|
+
children: /*#__PURE__*/ jsx(Markable, {
|
|
9660
|
+
children: title
|
|
9661
|
+
})
|
|
9662
|
+
}),
|
|
9663
|
+
description ? /*#__PURE__*/ jsx("span", {
|
|
9664
|
+
className: global_search_module.resultDescription,
|
|
9665
|
+
children: /*#__PURE__*/ jsx(Markable, {
|
|
9666
|
+
children: description
|
|
9667
|
+
})
|
|
9668
|
+
}) : null
|
|
8594
9669
|
]
|
|
8595
9670
|
}),
|
|
8596
|
-
|
|
8597
|
-
className:
|
|
8598
|
-
|
|
8599
|
-
children: description
|
|
8600
|
-
}) : null,
|
|
8601
|
-
errorMessage ? /*#__PURE__*/ jsx("span", {
|
|
8602
|
-
className: drop_zone_module.error,
|
|
8603
|
-
id: errorId,
|
|
8604
|
-
children: errorMessage
|
|
9671
|
+
meta ? /*#__PURE__*/ jsx("span", {
|
|
9672
|
+
className: global_search_module.resultMeta,
|
|
9673
|
+
children: meta
|
|
8605
9674
|
}) : null
|
|
8606
9675
|
]
|
|
8607
9676
|
});
|
|
9677
|
+
}
|
|
9678
|
+
function SearchIcon() {
|
|
9679
|
+
return /*#__PURE__*/ jsx("span", {
|
|
9680
|
+
"aria-hidden": "true",
|
|
9681
|
+
className: global_search_module.searchIcon,
|
|
9682
|
+
children: /*#__PURE__*/ jsxs("svg", {
|
|
9683
|
+
fill: "none",
|
|
9684
|
+
height: "14",
|
|
9685
|
+
viewBox: "0 0 14 14",
|
|
9686
|
+
width: "14",
|
|
9687
|
+
children: [
|
|
9688
|
+
/*#__PURE__*/ jsx("circle", {
|
|
9689
|
+
cx: "6",
|
|
9690
|
+
cy: "6",
|
|
9691
|
+
r: "4.25",
|
|
9692
|
+
stroke: "currentColor",
|
|
9693
|
+
strokeWidth: "1.5"
|
|
9694
|
+
}),
|
|
9695
|
+
/*#__PURE__*/ jsx("path", {
|
|
9696
|
+
d: "M9.5 9.5L12.5 12.5",
|
|
9697
|
+
stroke: "currentColor",
|
|
9698
|
+
strokeLinecap: "round",
|
|
9699
|
+
strokeWidth: "1.5"
|
|
9700
|
+
})
|
|
9701
|
+
]
|
|
9702
|
+
})
|
|
9703
|
+
});
|
|
9704
|
+
}
|
|
9705
|
+
const GlobalSearch = Object.assign(GlobalSearchRoot, {
|
|
9706
|
+
displayName: "GlobalSearch",
|
|
9707
|
+
Trigger: GlobalSearchTrigger
|
|
8608
9708
|
});
|
|
8609
9709
|
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");
|
|
8610
9710
|
var divider_module_options = {};
|
|
@@ -9092,7 +10192,7 @@ function MenuPanel({ activeIndex, ariaLabel, depth, openChildIndex, rows, selfRe
|
|
|
9092
10192
|
const { refs, floatingStyles } = useFloating({
|
|
9093
10193
|
placement: 0 === depth ? "bottom-end" : "right-start",
|
|
9094
10194
|
middleware: [
|
|
9095
|
-
|
|
10195
|
+
react_offset(0 === depth ? 10 : 8),
|
|
9096
10196
|
flip({
|
|
9097
10197
|
padding: VIEWPORT_MARGIN,
|
|
9098
10198
|
fallbackPlacements: 0 === depth ? [
|
|
@@ -9540,7 +10640,7 @@ function Popover({ children, placement = "bottom-start", isOpen: controlledOpen,
|
|
|
9540
10640
|
onOpenChange: handleOpenChange,
|
|
9541
10641
|
placement,
|
|
9542
10642
|
middleware: [
|
|
9543
|
-
|
|
10643
|
+
react_offset(8),
|
|
9544
10644
|
flip(),
|
|
9545
10645
|
shift({
|
|
9546
10646
|
padding: 8
|
|
@@ -10494,10 +11594,6 @@ const select_Select = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
10494
11594
|
]
|
|
10495
11595
|
});
|
|
10496
11596
|
});
|
|
10497
|
-
const THEME_SCOPE = "[data-theme], [data-color-scheme], [data-density]";
|
|
10498
|
-
function themeRoot(trigger) {
|
|
10499
|
-
return trigger?.closest(THEME_SCOPE) ?? void 0;
|
|
10500
|
-
}
|
|
10501
11597
|
function SelectPopover({ children, state, triggerRef }) {
|
|
10502
11598
|
const popoverRef = useRef(null);
|
|
10503
11599
|
const { popoverProps, underlayProps } = usePopover({
|
|
@@ -11992,6 +13088,136 @@ const text_field_TextField = /*#__PURE__*/ forwardRef(function({ ariaLabel, desc
|
|
|
11992
13088
|
]
|
|
11993
13089
|
});
|
|
11994
13090
|
});
|
|
13091
|
+
const date_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/date-field.module.css");
|
|
13092
|
+
var date_field_module_options = {};
|
|
13093
|
+
date_field_module_options.styleTagTransform = styleTagTransform_default();
|
|
13094
|
+
date_field_module_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
13095
|
+
date_field_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
13096
|
+
date_field_module_options.domAPI = styleDomAPI_default();
|
|
13097
|
+
date_field_module_options.insertStyleElement = insertStyleElement_default();
|
|
13098
|
+
injectStylesIntoStyleTag_default()(date_field_module_0.A, date_field_module_options);
|
|
13099
|
+
const date_field_module = date_field_module_0.A && date_field_module_0.A.locals ? date_field_module_0.A.locals : void 0;
|
|
13100
|
+
const ISO_DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
13101
|
+
function toCalendarDate(value) {
|
|
13102
|
+
if (void 0 === value) return;
|
|
13103
|
+
if (null === value || !ISO_DATE.test(value)) return null;
|
|
13104
|
+
try {
|
|
13105
|
+
return parseDate(value);
|
|
13106
|
+
} catch {
|
|
13107
|
+
return null;
|
|
13108
|
+
}
|
|
13109
|
+
}
|
|
13110
|
+
function DateField({ ariaLabel, autoFocus, defaultValue, description, errorMessage, id, isDisabled, isInvalid, isReadOnly, isRequired, label, maxValue, minValue, name, onBlur, onChange, onFocus, value, ...restProps }) {
|
|
13111
|
+
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
13112
|
+
const locale = useContext(IntlContext)?.locale ?? "en-US";
|
|
13113
|
+
const calendarValue = useMemo(()=>toCalendarDate(value), [
|
|
13114
|
+
value
|
|
13115
|
+
]);
|
|
13116
|
+
const calendarDefault = useMemo(()=>toCalendarDate(defaultValue), [
|
|
13117
|
+
defaultValue
|
|
13118
|
+
]);
|
|
13119
|
+
const calendarMin = useMemo(()=>toCalendarDate(minValue) ?? void 0, [
|
|
13120
|
+
minValue
|
|
13121
|
+
]);
|
|
13122
|
+
const calendarMax = useMemo(()=>toCalendarDate(maxValue) ?? void 0, [
|
|
13123
|
+
maxValue
|
|
13124
|
+
]);
|
|
13125
|
+
const dateProps = {
|
|
13126
|
+
autoFocus,
|
|
13127
|
+
"aria-label": ariaLabel,
|
|
13128
|
+
defaultValue: calendarDefault,
|
|
13129
|
+
description,
|
|
13130
|
+
errorMessage,
|
|
13131
|
+
id,
|
|
13132
|
+
isDisabled,
|
|
13133
|
+
isInvalid: isInvalid || null != errorMessage ? true : void 0,
|
|
13134
|
+
isReadOnly,
|
|
13135
|
+
isRequired,
|
|
13136
|
+
label,
|
|
13137
|
+
maxValue: calendarMax,
|
|
13138
|
+
minValue: calendarMin,
|
|
13139
|
+
name,
|
|
13140
|
+
onBlur,
|
|
13141
|
+
onFocus,
|
|
13142
|
+
onChange: onChange ? (date)=>onChange(date ? date.toString() : null) : void 0,
|
|
13143
|
+
validationBehavior: "aria",
|
|
13144
|
+
value: calendarValue
|
|
13145
|
+
};
|
|
13146
|
+
const state = useDateFieldState({
|
|
13147
|
+
...dateProps,
|
|
13148
|
+
createCalendar: createCalendar,
|
|
13149
|
+
locale
|
|
13150
|
+
});
|
|
13151
|
+
const ref = useRef(null);
|
|
13152
|
+
const inputRef = useRef(null);
|
|
13153
|
+
const { descriptionProps, errorMessageProps, fieldProps, inputProps, labelProps } = useDateField({
|
|
13154
|
+
...dateProps,
|
|
13155
|
+
inputRef
|
|
13156
|
+
}, state, ref);
|
|
13157
|
+
const { focusProps, isFocusVisible } = useFocusRing({
|
|
13158
|
+
within: true
|
|
13159
|
+
});
|
|
13160
|
+
const invalid = state.isInvalid;
|
|
13161
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
13162
|
+
className: date_field_module.root,
|
|
13163
|
+
style: layoutStyle,
|
|
13164
|
+
children: [
|
|
13165
|
+
label ? /*#__PURE__*/ jsx("span", {
|
|
13166
|
+
...labelProps,
|
|
13167
|
+
className: field_module.label,
|
|
13168
|
+
children: label
|
|
13169
|
+
}) : null,
|
|
13170
|
+
/*#__PURE__*/ jsxs("div", {
|
|
13171
|
+
...mergeProps(fieldProps, focusProps),
|
|
13172
|
+
ref: ref,
|
|
13173
|
+
className: [
|
|
13174
|
+
date_field_module.control,
|
|
13175
|
+
invalid ? date_field_module.invalid : null,
|
|
13176
|
+
isFocusVisible ? date_field_module.focusVisible : null,
|
|
13177
|
+
isDisabled ? date_field_module.disabled : null
|
|
13178
|
+
].filter(Boolean).join(" "),
|
|
13179
|
+
children: [
|
|
13180
|
+
state.segments.map((segment, i)=>/*#__PURE__*/ jsx(Segment, {
|
|
13181
|
+
segment: segment,
|
|
13182
|
+
state: state
|
|
13183
|
+
}, i)),
|
|
13184
|
+
/*#__PURE__*/ jsx("input", {
|
|
13185
|
+
...inputProps,
|
|
13186
|
+
ref: inputRef,
|
|
13187
|
+
type: "hidden"
|
|
13188
|
+
})
|
|
13189
|
+
]
|
|
13190
|
+
}),
|
|
13191
|
+
description ? /*#__PURE__*/ jsx("span", {
|
|
13192
|
+
...descriptionProps,
|
|
13193
|
+
className: date_field_module.description,
|
|
13194
|
+
children: description
|
|
13195
|
+
}) : null,
|
|
13196
|
+
errorMessage ? /*#__PURE__*/ jsx("span", {
|
|
13197
|
+
...errorMessageProps,
|
|
13198
|
+
className: date_field_module.error,
|
|
13199
|
+
children: errorMessage
|
|
13200
|
+
}) : null
|
|
13201
|
+
]
|
|
13202
|
+
});
|
|
13203
|
+
}
|
|
13204
|
+
function Segment({ segment, state }) {
|
|
13205
|
+
const ref = useRef(null);
|
|
13206
|
+
const { segmentProps } = useDateSegment(segment, state, ref);
|
|
13207
|
+
const className = useMemo(()=>[
|
|
13208
|
+
"literal" === segment.type ? date_field_module.literal : date_field_module.segment,
|
|
13209
|
+
segment.isPlaceholder ? date_field_module.placeholder : null
|
|
13210
|
+
].filter(Boolean).join(" "), [
|
|
13211
|
+
segment.isPlaceholder,
|
|
13212
|
+
segment.type
|
|
13213
|
+
]);
|
|
13214
|
+
return /*#__PURE__*/ jsx("div", {
|
|
13215
|
+
...segmentProps,
|
|
13216
|
+
ref: ref,
|
|
13217
|
+
className: className,
|
|
13218
|
+
children: segment.text
|
|
13219
|
+
});
|
|
13220
|
+
}
|
|
11995
13221
|
const responsiveKeys = [
|
|
11996
13222
|
"base",
|
|
11997
13223
|
"sm",
|
|
@@ -12246,4 +13472,4 @@ function useDensity(options) {
|
|
|
12246
13472
|
function useFontScale(options) {
|
|
12247
13473
|
return useThemePreference("fontScale", options);
|
|
12248
13474
|
}
|
|
12249
|
-
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, date_time_DateRange as DateRange, date_time_DateTime as DateTime, defaultUiMessages, disclosure_triangle_DisclosureTriangle as DisclosureTriangle, divider_Divider as Divider, drop_zone_DropZone as DropZone, field_group_FieldGroup as FieldGroup, file_trigger_FileTrigger as FileTrigger, grid_Grid as Grid, heading_Heading as Heading, icon_button_IconButton as IconButton, icon_label_IconLabel as IconLabel, icon_toggle_IconToggle as IconToggle, inline_Inline as Inline, keyboard_Keyboard as Keyboard, label_Label as Label, link_Link as Link, matchesAccept, number_field_NumberField as NumberField, numeric_Numeric as Numeric, page_Page as Page, page_PageHeader as PageHeader, radio_group_Radio as Radio, radio_group_RadioGroup as RadioGroup, search_field_SearchField as SearchField, select_Select as Select, skeleton_Skeleton as Skeleton, slider_Slider as Slider, spinner_Spinner as Spinner, splitLayoutItemProps, split_Split as Split, stack_Stack as Stack, surface_Surface as Surface, switch_Switch as Switch, tag_group_Tag as Tag, text_Text as Text, text_area_TextArea as TextArea, text_field_TextField as TextField, useBorders, useBreakpointUp, useColorScheme, useConfirm, useDateFormat, useDensity, useFlexItem, useFontScale, useGridItem, useLayoutItem, useListItemState, useMark, useNeutralTheme, usePlacement, useResponsiveValue, useSizing, useSpacing, useSurface, useToast };
|
|
13475
|
+
export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AppShell, BreadcrumbItem, Breadcrumbs, ConfirmDialog, ConfirmPopover, ConfirmProvider, DateField, Dialog, Drawer, GlobalSearch, ListBox, ListBoxFilter, ListItem, ListItemDivider, ListItemGroup, ListItemStatic, MarkProvider, Markable, Menu, MenuItem, MenuSection, MenuSeparator, MenuSubTrigger, Nav, NavItem, Ox0Provider, Popover, PopoverContent, PopoverTrigger, SearchResult, 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, date_time_DateRange as DateRange, date_time_DateTime as DateTime, defaultUiMessages, defineSearchSource, 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, matchSearchItems, matchesAccept, number_field_NumberField as NumberField, numeric_Numeric as Numeric, page_Page as Page, page_PageHeader as PageHeader, radio_group_Radio as Radio, radio_group_RadioGroup as RadioGroup, search_field_SearchField as SearchField, select_Select as Select, skeleton_Skeleton as Skeleton, slider_Slider as Slider, spinner_Spinner as Spinner, splitLayoutItemProps, split_Split as Split, stack_Stack as Stack, surface_Surface as Surface, switch_Switch as Switch, tag_group_Tag as Tag, text_Text as Text, text_area_TextArea as TextArea, text_field_TextField as TextField, useBorders, useBreakpointUp, useColorScheme, useConfirm, useDateFormat, useDensity, useFlexItem, useFontScale, useGlobalSearch, useGridItem, useLayoutItem, useListItemState, useMark, useNeutralTheme, usePlacement, useResponsiveValue, useSizing, useSpacing, useSurface, useToast };
|