@ox0/ui 1.1.1 → 2.0.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.
Files changed (68) hide show
  1. package/dist/components/accordion.d.ts +2 -3
  2. package/dist/components/accordion.d.ts.map +1 -1
  3. package/dist/components/breadcrumbs.d.ts +29 -0
  4. package/dist/components/breadcrumbs.d.ts.map +1 -0
  5. package/dist/components/breadcrumbs.test.d.ts +2 -0
  6. package/dist/components/breadcrumbs.test.d.ts.map +1 -0
  7. package/dist/components/button.d.ts +2 -2
  8. package/dist/components/button.d.ts.map +1 -1
  9. package/dist/components/checkbox-group.d.ts +35 -0
  10. package/dist/components/checkbox-group.d.ts.map +1 -0
  11. package/dist/components/checkbox-group.test.d.ts +2 -0
  12. package/dist/components/checkbox-group.test.d.ts.map +1 -0
  13. package/dist/components/combobox.d.ts.map +1 -1
  14. package/dist/components/combobox.test.d.ts +2 -0
  15. package/dist/components/combobox.test.d.ts.map +1 -0
  16. package/dist/components/dialog.d.ts.map +1 -1
  17. package/dist/components/field-group.d.ts +18 -0
  18. package/dist/components/field-group.d.ts.map +1 -0
  19. package/dist/components/field-group.test.d.ts +2 -0
  20. package/dist/components/field-group.test.d.ts.map +1 -0
  21. package/dist/components/heading.test.d.ts +2 -0
  22. package/dist/components/heading.test.d.ts.map +1 -0
  23. package/dist/components/icon-button.d.ts.map +1 -1
  24. package/dist/components/icon-toggle.d.ts +29 -0
  25. package/dist/components/icon-toggle.d.ts.map +1 -0
  26. package/dist/components/listbox.d.ts +169 -0
  27. package/dist/components/listbox.d.ts.map +1 -0
  28. package/dist/components/listbox.test.d.ts +2 -0
  29. package/dist/components/listbox.test.d.ts.map +1 -0
  30. package/dist/components/menu.d.ts +38 -12
  31. package/dist/components/menu.d.ts.map +1 -1
  32. package/dist/components/number-field.d.ts +17 -0
  33. package/dist/components/number-field.d.ts.map +1 -0
  34. package/dist/components/number-field.test.d.ts +2 -0
  35. package/dist/components/number-field.test.d.ts.map +1 -0
  36. package/dist/components/popover.d.ts +12 -2
  37. package/dist/components/popover.d.ts.map +1 -1
  38. package/dist/components/radio-group.test.d.ts +2 -0
  39. package/dist/components/radio-group.test.d.ts.map +1 -0
  40. package/dist/components/search-field.d.ts +12 -0
  41. package/dist/components/search-field.d.ts.map +1 -0
  42. package/dist/components/search-field.test.d.ts +2 -0
  43. package/dist/components/search-field.test.d.ts.map +1 -0
  44. package/dist/components/select.d.ts +1 -1
  45. package/dist/components/select.d.ts.map +1 -1
  46. package/dist/components/slider.d.ts +17 -0
  47. package/dist/components/slider.d.ts.map +1 -0
  48. package/dist/components/slider.test.d.ts +2 -0
  49. package/dist/components/slider.test.d.ts.map +1 -0
  50. package/dist/components/table.d.ts +54 -0
  51. package/dist/components/table.d.ts.map +1 -0
  52. package/dist/components/table.test.d.ts +2 -0
  53. package/dist/components/table.test.d.ts.map +1 -0
  54. package/dist/components/tabs.d.ts.map +1 -1
  55. package/dist/components/tabs.test.d.ts +2 -0
  56. package/dist/components/tabs.test.d.ts.map +1 -0
  57. package/dist/components/tag-group.d.ts +45 -0
  58. package/dist/components/tag-group.d.ts.map +1 -0
  59. package/dist/components/tag-group.test.d.ts +2 -0
  60. package/dist/components/tag-group.test.d.ts.map +1 -0
  61. package/dist/components/text-area.d.ts +2 -1
  62. package/dist/components/text-area.d.ts.map +1 -1
  63. package/dist/components/tooltip.d.ts +1 -3
  64. package/dist/components/tooltip.d.ts.map +1 -1
  65. package/dist/index.d.ts +10 -0
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.js +2534 -245
  68. package/package.json +3 -1
package/dist/index.js CHANGED
@@ -4,6 +4,8 @@ import * as __WEBPACK_EXTERNAL_MODULE__ox0_hooks_ab75bf8c__ from "@ox0/hooks";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__ from "@floating-ui/react";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_react_dom_7136dc57__ from "react-dom";
6
6
  import * as __WEBPACK_EXTERNAL_MODULE__ox0_i18n_ad8e896a__ from "@ox0/i18n";
7
+ import * as __WEBPACK_EXTERNAL_MODULE_react_aria_6ee6f485__ from "react-aria";
8
+ import * as __WEBPACK_EXTERNAL_MODULE_react_stately_6980fd76__ from "react-stately";
7
9
  import * as __WEBPACK_EXTERNAL_MODULE__ox0_tokens_b8bc2fee__ from "@ox0/tokens";
8
10
  import "@ox0/tokens/styles.css";
9
11
  var __webpack_modules__ = {
@@ -94,6 +96,29 @@ var __webpack_modules__ = {
94
96
  };
95
97
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
96
98
  },
99
+ "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/breadcrumbs.module.css": function(module, __webpack_exports__, __webpack_require__) {
100
+ __webpack_require__.d(__webpack_exports__, {
101
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
102
+ });
103
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
104
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
105
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/api.js");
106
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
107
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
108
+ ___CSS_LOADER_EXPORT___.push([
109
+ module.id,
110
+ ".list-eL6_dI{flex-wrap:wrap;align-items:center;gap:0;margin:0;padding:0;list-style:none;display:flex}.item-IkllUX{font-size:var(--ox0-font-size-sm);align-items:center;gap:var(--ox0-space-xs);display:flex}.link-f3wNOv{color:var(--ox0-color-text-secondary);cursor:pointer;font:inherit;font-size:inherit;transition:color var(--ox0-duration-fast)var(--ox0-ease-soft);background:0 0;border:none;padding:0;text-decoration:none}.link-f3wNOv:hover{color:var(--ox0-color-foreground);text-decoration:underline}.link-f3wNOv:focus-visible{border-radius:var(--ox0-radius-xs);outline:2px solid var(--ox0-color-focus-ring);outline-offset:2px}.current-Uxvlek{color:var(--ox0-color-foreground);font-size:var(--ox0-font-size-sm);font-weight:var(--ox0-font-weight-medium)}.separator-VAJ7ZW{color:var(--ox0-color-muted);user-select:none}",
111
+ ""
112
+ ]);
113
+ ___CSS_LOADER_EXPORT___.locals = {
114
+ list: "list-eL6_dI",
115
+ item: "item-IkllUX",
116
+ link: "link-f3wNOv",
117
+ current: "current-Uxvlek",
118
+ separator: "separator-VAJ7ZW"
119
+ };
120
+ const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
121
+ },
97
122
  "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/button-group.module.css": function(module, __webpack_exports__, __webpack_require__) {
98
123
  __webpack_require__.d(__webpack_exports__, {
99
124
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -125,11 +150,12 @@ var __webpack_modules__ = {
125
150
  var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
126
151
  ___CSS_LOADER_EXPORT___.push([
127
152
  module.id,
128
- '.button-gV6kKp{border-radius:var(--ox0-radius-sm);box-shadow:var(--ox0-shadow-raised);cursor:pointer;font:inherit;align-items:center;gap:var(--ox0-space-sm);font-weight:var(--ox0-font-weight-semibold);line-height:var(--ox0-line-height-dense);transition:background-color var(--ox0-duration-fast)var(--ox0-ease-crisp),border-color var(--ox0-duration-fast)var(--ox0-ease-crisp),color var(--ox0-duration-fast)var(--ox0-ease-crisp),box-shadow var(--ox0-duration-fast)var(--ox0-ease-crisp),filter var(--ox0-duration-fast)var(--ox0-ease-crisp),margin-top var(--ox0-duration-fast)var(--ox0-ease-crisp),padding-bottom var(--ox0-duration-fast)var(--ox0-ease-crisp),padding-top var(--ox0-duration-fast)var(--ox0-ease-crisp),transform var(--ox0-duration-fast)var(--ox0-ease-crisp);justify-content:center;display:inline-flex;position:relative}.sm-l24p0Q{font-size:var(--ox0-font-size-sm);padding:.375rem .75rem}.md-tnc3LH{font-size:var(--ox0-font-size-md);padding:.5rem .875rem}.lg-DJZrEA{font-size:var(--ox0-font-size-lg);padding:.75rem 1rem}.primary-VXuTnQ{--_depth-shadow:0 2px 0 color-mix(in srgb,var(--ox0-color-accent)72%,#000);background:var(--ox0-color-accent);border:1px solid color-mix(in srgb,var(--ox0-color-accent)72%,#000);box-shadow:var(--_depth-shadow),var(--ox0-shadow-xs);color:var(--ox0-color-on-accent)}.primary-VXuTnQ:not(:disabled):hover{background:var(--ox0-color-accent-hover);border-color:color-mix(in srgb,var(--ox0-color-accent-hover)72%,#000);box-shadow:0 2px 0 color-mix(in srgb,var(--ox0-color-accent-hover)72%,#000),var(--ox0-shadow-xs)}.primary-VXuTnQ:not(:disabled).pressed-egzbhE{background:color-mix(in srgb,var(--ox0-color-accent)80%,#000);box-shadow:0 1px 0 color-mix(in srgb,var(--ox0-color-accent)72%,#000),var(--ox0-shadow-xs);transform:translateY(1px)}.secondary-yGEbH1{--_depth-shadow:0 2px 0 var(--ox0-color-border-strong);background:var(--ox0-color-surface);border:1px solid var(--ox0-color-border-strong);box-shadow:var(--_depth-shadow),var(--ox0-shadow-xs);color:color-mix(in srgb,var(--ox0-color-foreground)75%,transparent)}.secondary-yGEbH1:not(:disabled):hover{background:var(--ox0-color-canvas)}.secondary-yGEbH1:not(:disabled).pressed-egzbhE{background:var(--ox0-color-border);box-shadow:0 1px 0 var(--ox0-color-border-strong),var(--ox0-shadow-xs);transform:translateY(1px)}.circle-Hk06Xp{aspect-ratio:1;box-shadow:none;color:color-mix(in srgb,var(--ox0-color-foreground)75%,transparent);background:0 0;border:1px solid #0000;border-radius:50%}.sm-l24p0Q.circle-Hk06Xp{padding:.375rem}.md-tnc3LH.circle-Hk06Xp{padding:.5rem}.lg-DJZrEA.circle-Hk06Xp{padding:.75rem}.circle-Hk06Xp:not(:disabled):hover{background:color-mix(in srgb,var(--ox0-color-foreground)8%,transparent);color:var(--ox0-color-foreground)}.circle-Hk06Xp:not(:disabled).pressed-egzbhE{background:color-mix(in srgb,var(--ox0-color-foreground)12%,transparent);color:var(--ox0-color-foreground);box-shadow:inset 0 2px #0003}.sm-l24p0Q.circle-Hk06Xp:not(:disabled).pressed-egzbhE{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem - 1px)}.md-tnc3LH.circle-Hk06Xp:not(:disabled).pressed-egzbhE{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem - 1px)}.lg-DJZrEA.circle-Hk06Xp:not(:disabled).pressed-egzbhE{padding-top:calc(.75rem + 1px);padding-bottom:calc(.75rem - 1px)}.circle-Hk06Xp:focus-visible:before{border-radius:50%}.ghost-jToGzF{box-shadow:none;color:color-mix(in srgb,var(--ox0-color-foreground)75%,transparent);background:0 0;border:1px solid #0000}.ghost-jToGzF:not(:disabled):hover{background:color-mix(in srgb,var(--ox0-color-foreground)8%,transparent);color:var(--ox0-color-foreground)}.ghost-jToGzF:not(:disabled).pressed-egzbhE{background:color-mix(in srgb,var(--ox0-color-foreground)12%,transparent);color:var(--ox0-color-foreground);box-shadow:inset 0 2px #0003}.sm-l24p0Q.ghost-jToGzF:not(:disabled).pressed-egzbhE{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem - 1px)}.md-tnc3LH.ghost-jToGzF:not(:disabled).pressed-egzbhE{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem - 1px)}.lg-DJZrEA.ghost-jToGzF:not(:disabled).pressed-egzbhE{padding-top:calc(.75rem + 1px);padding-bottom:calc(.75rem - 1px)}.flat-WzquwN{border:1px solid var(--ox0-color-border-strong);color:color-mix(in srgb,var(--ox0-color-foreground)75%,transparent);background:0 0;box-shadow:inset 0 0 #0000}.flat-WzquwN:not(:disabled):hover{background:color-mix(in srgb,var(--ox0-color-foreground)8%,transparent);color:var(--ox0-color-foreground)}.flat-WzquwN:not(:disabled).pressed-egzbhE{background:color-mix(in srgb,var(--ox0-color-foreground)10%,transparent);color:var(--ox0-color-foreground);box-shadow:inset 0 2px #00000073}.sm-l24p0Q.flat-WzquwN:not(:disabled).pressed-egzbhE{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem - 1px)}.md-tnc3LH.flat-WzquwN:not(:disabled).pressed-egzbhE{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem - 1px)}.lg-DJZrEA.flat-WzquwN:not(:disabled).pressed-egzbhE{padding-top:calc(.75rem + 1px);padding-bottom:calc(.75rem - 1px)}.danger-S8YoTI{--_depth-shadow:0 2px 0 color-mix(in srgb,var(--ox0-color-danger)72%,#000);background:var(--ox0-color-danger);border:1px solid color-mix(in srgb,var(--ox0-color-danger)72%,#000);box-shadow:var(--_depth-shadow),var(--ox0-shadow-xs);color:var(--ox0-color-on-accent)}.danger-S8YoTI:not(:disabled):hover{filter:brightness(.9)}.danger-S8YoTI:not(:disabled).pressed-egzbhE{background:color-mix(in srgb,var(--ox0-color-danger)80%,#000);box-shadow:0 1px 0 color-mix(in srgb,var(--ox0-color-danger)72%,#000),var(--ox0-shadow-xs);filter:none;transform:translateY(1px)}.danger-secondary-SKDzBf{--_danger-border:color-mix(in srgb,var(--ox0-color-danger)70%,white);--_depth-shadow:0 2px 0 var(--_danger-border);background:var(--ox0-color-surface);border:1px solid var(--_danger-border);box-shadow:var(--_depth-shadow),var(--ox0-shadow-xs);color:var(--ox0-color-danger)}.danger-secondary-SKDzBf:not(:disabled):hover{background:var(--ox0-color-danger-subtle);border-color:var(--ox0-color-danger);box-shadow:0 2px 0 var(--ox0-color-danger),var(--ox0-shadow-xs)}.danger-secondary-SKDzBf:not(:disabled).pressed-egzbhE{background:var(--ox0-color-danger-subtle);box-shadow:0 1px 0 var(--_danger-border),var(--ox0-shadow-xs);transform:translateY(1px)}.inline-gS_3vk{box-shadow:none;color:var(--ox0-color-accent-text);background:0 0;border:1px solid #0000;padding-left:0;padding-right:0}.inline-gS_3vk:not(:disabled):hover{color:var(--ox0-color-accent)}.hinted-IDtzxY{box-shadow:none;color:var(--ox0-color-foreground);text-underline-offset:3px;background:0 0;border:1px solid #0000;padding-left:0;padding-right:0;text-decoration:underline dotted}.hinted-IDtzxY:not(:disabled):hover{text-decoration-style:solid}.flat-WzquwN.selected-ndu0qD{background:color-mix(in srgb,var(--ox0-color-foreground)22%,var(--ox0-color-surface-selected));border-color:var(--ox0-color-border-strong);color:var(--ox0-color-foreground);box-shadow:inset 0 2px #00000059}.flat-WzquwN.selected-ndu0qD:not(:disabled):hover{background:color-mix(in srgb,var(--ox0-color-foreground)22%,var(--ox0-color-surface-selected));color:var(--ox0-color-foreground)}.sm-l24p0Q.flat-WzquwN.selected-ndu0qD{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem - 1px)}.md-tnc3LH.flat-WzquwN.selected-ndu0qD{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem - 1px)}.lg-DJZrEA.flat-WzquwN.selected-ndu0qD{padding-top:calc(.75rem + 1px);padding-bottom:calc(.75rem - 1px)}.flat-WzquwN.selected-ndu0qD.pressed-egzbhE{box-shadow:inset 0 3px #00000080}.sm-l24p0Q.flat-WzquwN.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.375rem + 2px);padding-bottom:calc(.375rem - 2px)}.md-tnc3LH.flat-WzquwN.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.5rem + 2px);padding-bottom:calc(.5rem - 2px)}.lg-DJZrEA.flat-WzquwN.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.75rem + 2px);padding-bottom:calc(.75rem - 2px)}.secondary-yGEbH1.selected-ndu0qD{background:color-mix(in srgb,var(--ox0-color-foreground)22%,var(--ox0-color-surface-selected));box-shadow:var(--_depth-shadow),inset 0 2px 0 #0000001f;color:var(--ox0-color-foreground)}.secondary-yGEbH1.selected-ndu0qD:not(:disabled):hover{background:color-mix(in srgb,var(--ox0-color-foreground)22%,var(--ox0-color-surface-selected));color:var(--ox0-color-foreground)}.sm-l24p0Q.secondary-yGEbH1.selected-ndu0qD{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem - 1px)}.md-tnc3LH.secondary-yGEbH1.selected-ndu0qD{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem - 1px)}.lg-DJZrEA.secondary-yGEbH1.selected-ndu0qD{padding-top:calc(.75rem + 1px);padding-bottom:calc(.75rem - 1px)}.secondary-yGEbH1.selected-ndu0qD.pressed-egzbhE{box-shadow:var(--_depth-shadow),inset 0 3px 0 #00000026}.sm-l24p0Q.secondary-yGEbH1.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.375rem + 2px);padding-bottom:calc(.375rem - 2px)}.md-tnc3LH.secondary-yGEbH1.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.5rem + 2px);padding-bottom:calc(.5rem - 2px)}.lg-DJZrEA.secondary-yGEbH1.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.75rem + 2px);padding-bottom:calc(.75rem - 2px)}.ghost-jToGzF.selected-ndu0qD{background:color-mix(in srgb,var(--ox0-color-foreground)22%,var(--ox0-color-surface-selected));color:var(--ox0-color-foreground);box-shadow:inset 0 2px #00000026}.ghost-jToGzF.selected-ndu0qD:not(:disabled):hover{background:color-mix(in srgb,var(--ox0-color-foreground)22%,var(--ox0-color-surface-selected));color:var(--ox0-color-foreground)}.sm-l24p0Q.ghost-jToGzF.selected-ndu0qD{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem - 1px)}.md-tnc3LH.ghost-jToGzF.selected-ndu0qD{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem - 1px)}.lg-DJZrEA.ghost-jToGzF.selected-ndu0qD{padding-top:calc(.75rem + 1px);padding-bottom:calc(.75rem - 1px)}.ghost-jToGzF.selected-ndu0qD.pressed-egzbhE{box-shadow:inset 0 3px #00000040}.sm-l24p0Q.ghost-jToGzF.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.375rem + 2px);padding-bottom:calc(.375rem - 2px)}.md-tnc3LH.ghost-jToGzF.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.5rem + 2px);padding-bottom:calc(.5rem - 2px)}.lg-DJZrEA.ghost-jToGzF.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.75rem + 2px);padding-bottom:calc(.75rem - 2px)}.button-gV6kKp:focus-visible{outline:none}.button-gV6kKp:focus-visible:before{border:2px solid var(--ox0-color-focus-ring);border-radius:calc(var(--ox0-radius-sm) + 4px);content:"";pointer-events:none;position:absolute;inset:-4px -4px -5px}.button-gV6kKp svg{display:block}.sm-l24p0Q.hasIcon-AtG6pQ{padding-left:.5rem}.md-tnc3LH.hasIcon-AtG6pQ{padding-left:.625rem}.lg-DJZrEA.hasIcon-AtG6pQ{padding-left:.75rem}.sm-l24p0Q.hasIconEnd-PZ2yhA{padding-right:.5rem}.md-tnc3LH.hasIconEnd-PZ2yhA{padding-right:.625rem}.lg-DJZrEA.hasIconEnd-PZ2yhA{padding-right:.75rem}.button-gV6kKp:disabled{cursor:not-allowed;opacity:.5}',
153
+ '.button-gV6kKp{border-radius:var(--ox0-radius-sm);box-shadow:var(--ox0-shadow-raised);cursor:pointer;font:inherit;align-items:center;gap:var(--ox0-space-sm);font-weight:var(--ox0-font-weight-semibold);line-height:var(--ox0-line-height-dense);transition:background-color var(--ox0-duration-fast)var(--ox0-ease-crisp),border-color var(--ox0-duration-fast)var(--ox0-ease-crisp),color var(--ox0-duration-fast)var(--ox0-ease-crisp),box-shadow var(--ox0-duration-fast)var(--ox0-ease-crisp),filter var(--ox0-duration-fast)var(--ox0-ease-crisp),margin-top var(--ox0-duration-fast)var(--ox0-ease-crisp),padding-bottom var(--ox0-duration-fast)var(--ox0-ease-crisp),padding-top var(--ox0-duration-fast)var(--ox0-ease-crisp),transform var(--ox0-duration-fast)var(--ox0-ease-crisp);justify-content:center;display:inline-flex;position:relative}.xs-yhxsad{font-size:var(--ox0-font-size-xs);padding:.25rem .5rem}.sm-l24p0Q{font-size:var(--ox0-font-size-sm);padding:.375rem .75rem}.md-tnc3LH{font-size:var(--ox0-font-size-md);padding:.5rem .875rem}.lg-DJZrEA{font-size:var(--ox0-font-size-lg);padding:.75rem 1rem}.primary-VXuTnQ{--_depth-shadow:0 2px 0 color-mix(in srgb,var(--ox0-color-accent)72%,#000);background:var(--ox0-color-accent);border:1px solid color-mix(in srgb,var(--ox0-color-accent)72%,#000);box-shadow:var(--_depth-shadow),var(--ox0-shadow-xs);color:var(--ox0-color-on-accent)}.primary-VXuTnQ:not(:disabled):hover{background:var(--ox0-color-accent-hover);border-color:color-mix(in srgb,var(--ox0-color-accent-hover)72%,#000);box-shadow:0 2px 0 color-mix(in srgb,var(--ox0-color-accent-hover)72%,#000),var(--ox0-shadow-xs)}.primary-VXuTnQ:not(:disabled).pressed-egzbhE{background:color-mix(in srgb,var(--ox0-color-accent)80%,#000);box-shadow:0 1px 0 color-mix(in srgb,var(--ox0-color-accent)72%,#000),var(--ox0-shadow-xs);transform:translateY(1px)}.secondary-yGEbH1{--_depth-shadow:0 2px 0 var(--ox0-color-border-strong);background:var(--ox0-color-surface);border:1px solid var(--ox0-color-border-strong);box-shadow:var(--_depth-shadow),var(--ox0-shadow-xs);color:color-mix(in srgb,var(--ox0-color-foreground)75%,transparent)}.secondary-yGEbH1:not(:disabled):hover{background:var(--ox0-color-canvas)}.secondary-yGEbH1:not(:disabled).pressed-egzbhE{background:var(--ox0-color-border);box-shadow:0 1px 0 var(--ox0-color-border-strong),var(--ox0-shadow-xs);transform:translateY(1px)}.circle-Hk06Xp{aspect-ratio:1;box-shadow:none;color:color-mix(in srgb,var(--ox0-color-foreground)75%,transparent);background:0 0;border:1px solid #0000;border-radius:50%}.xs-yhxsad.circle-Hk06Xp{padding:.25rem}.sm-l24p0Q.circle-Hk06Xp{padding:.375rem}.md-tnc3LH.circle-Hk06Xp{padding:.5rem}.lg-DJZrEA.circle-Hk06Xp{padding:.75rem}.circle-Hk06Xp:not(:disabled):hover{background:color-mix(in srgb,var(--ox0-color-foreground)8%,transparent);color:var(--ox0-color-foreground)}.circle-Hk06Xp:not(:disabled).pressed-egzbhE{background:color-mix(in srgb,var(--ox0-color-foreground)12%,transparent);color:var(--ox0-color-foreground);box-shadow:inset 0 2px #0003}.xs-yhxsad.circle-Hk06Xp:not(:disabled).pressed-egzbhE{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem - 1px)}.sm-l24p0Q.circle-Hk06Xp:not(:disabled).pressed-egzbhE{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem - 1px)}.md-tnc3LH.circle-Hk06Xp:not(:disabled).pressed-egzbhE{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem - 1px)}.lg-DJZrEA.circle-Hk06Xp:not(:disabled).pressed-egzbhE{padding-top:calc(.75rem + 1px);padding-bottom:calc(.75rem - 1px)}.circle-Hk06Xp:focus-visible:before{border-radius:50%}.ghost-jToGzF{box-shadow:none;color:color-mix(in srgb,var(--ox0-color-foreground)75%,transparent);background:0 0;border:1px solid #0000}.ghost-jToGzF:not(:disabled):hover{background:color-mix(in srgb,var(--ox0-color-foreground)8%,transparent);color:var(--ox0-color-foreground)}.ghost-jToGzF:not(:disabled).pressed-egzbhE{background:color-mix(in srgb,var(--ox0-color-foreground)12%,transparent);color:var(--ox0-color-foreground);box-shadow:inset 0 2px #0003}.xs-yhxsad.ghost-jToGzF:not(:disabled).pressed-egzbhE{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem - 1px)}.sm-l24p0Q.ghost-jToGzF:not(:disabled).pressed-egzbhE{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem - 1px)}.md-tnc3LH.ghost-jToGzF:not(:disabled).pressed-egzbhE{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem - 1px)}.lg-DJZrEA.ghost-jToGzF:not(:disabled).pressed-egzbhE{padding-top:calc(.75rem + 1px);padding-bottom:calc(.75rem - 1px)}.flat-WzquwN{border:1px solid var(--ox0-color-border-strong);color:color-mix(in srgb,var(--ox0-color-foreground)75%,transparent);background:0 0;box-shadow:inset 0 0 #0000}.flat-WzquwN:not(:disabled):hover{background:color-mix(in srgb,var(--ox0-color-foreground)8%,transparent);color:var(--ox0-color-foreground)}.flat-WzquwN:not(:disabled).pressed-egzbhE{background:color-mix(in srgb,var(--ox0-color-foreground)10%,transparent);color:var(--ox0-color-foreground);box-shadow:inset 0 2px #00000073}.xs-yhxsad.flat-WzquwN:not(:disabled).pressed-egzbhE{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem - 1px)}.sm-l24p0Q.flat-WzquwN:not(:disabled).pressed-egzbhE{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem - 1px)}.md-tnc3LH.flat-WzquwN:not(:disabled).pressed-egzbhE{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem - 1px)}.lg-DJZrEA.flat-WzquwN:not(:disabled).pressed-egzbhE{padding-top:calc(.75rem + 1px);padding-bottom:calc(.75rem - 1px)}.danger-S8YoTI{--_depth-shadow:0 2px 0 color-mix(in srgb,var(--ox0-color-danger)72%,#000);background:var(--ox0-color-danger);border:1px solid color-mix(in srgb,var(--ox0-color-danger)72%,#000);box-shadow:var(--_depth-shadow),var(--ox0-shadow-xs);color:var(--ox0-color-on-accent)}.danger-S8YoTI:not(:disabled):hover{filter:brightness(.9)}.danger-S8YoTI:not(:disabled).pressed-egzbhE{background:color-mix(in srgb,var(--ox0-color-danger)80%,#000);box-shadow:0 1px 0 color-mix(in srgb,var(--ox0-color-danger)72%,#000),var(--ox0-shadow-xs);filter:none;transform:translateY(1px)}.danger-secondary-SKDzBf{--_danger-border:color-mix(in srgb,var(--ox0-color-danger)70%,white);--_depth-shadow:0 2px 0 var(--_danger-border);background:var(--ox0-color-surface);border:1px solid var(--_danger-border);box-shadow:var(--_depth-shadow),var(--ox0-shadow-xs);color:var(--ox0-color-danger)}.danger-secondary-SKDzBf:not(:disabled):hover{background:var(--ox0-color-danger-subtle);border-color:var(--ox0-color-danger);box-shadow:0 2px 0 var(--ox0-color-danger),var(--ox0-shadow-xs)}.danger-secondary-SKDzBf:not(:disabled).pressed-egzbhE{background:var(--ox0-color-danger-subtle);box-shadow:0 1px 0 var(--_danger-border),var(--ox0-shadow-xs);transform:translateY(1px)}.inline-gS_3vk{box-shadow:none;color:var(--ox0-color-accent-text);background:0 0;border:1px solid #0000;padding-left:0;padding-right:0}.inline-gS_3vk:not(:disabled):hover{color:var(--ox0-color-accent)}.hinted-IDtzxY{box-shadow:none;color:var(--ox0-color-foreground);text-underline-offset:3px;background:0 0;border:1px solid #0000;padding-left:0;padding-right:0;text-decoration:underline dotted}.hinted-IDtzxY:not(:disabled):hover{text-decoration-style:solid}.flat-WzquwN.selected-ndu0qD{background:color-mix(in srgb,var(--ox0-color-foreground)22%,var(--ox0-color-surface-selected));border-color:var(--ox0-color-border-strong);color:var(--ox0-color-foreground);box-shadow:inset 0 2px #00000059}.flat-WzquwN.selected-ndu0qD:not(:disabled):hover{background:color-mix(in srgb,var(--ox0-color-foreground)22%,var(--ox0-color-surface-selected));color:var(--ox0-color-foreground)}.xs-yhxsad.flat-WzquwN.selected-ndu0qD{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem - 1px)}.sm-l24p0Q.flat-WzquwN.selected-ndu0qD{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem - 1px)}.md-tnc3LH.flat-WzquwN.selected-ndu0qD{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem - 1px)}.lg-DJZrEA.flat-WzquwN.selected-ndu0qD{padding-top:calc(.75rem + 1px);padding-bottom:calc(.75rem - 1px)}.flat-WzquwN.selected-ndu0qD.pressed-egzbhE{box-shadow:inset 0 3px #00000080}.xs-yhxsad.flat-WzquwN.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.25rem + 2px);padding-bottom:calc(.25rem - 2px)}.sm-l24p0Q.flat-WzquwN.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.375rem + 2px);padding-bottom:calc(.375rem - 2px)}.md-tnc3LH.flat-WzquwN.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.5rem + 2px);padding-bottom:calc(.5rem - 2px)}.lg-DJZrEA.flat-WzquwN.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.75rem + 2px);padding-bottom:calc(.75rem - 2px)}.secondary-yGEbH1.selected-ndu0qD{background:color-mix(in srgb,var(--ox0-color-foreground)22%,var(--ox0-color-surface-selected));box-shadow:var(--_depth-shadow),inset 0 2px 0 #0000001f;color:var(--ox0-color-foreground)}.secondary-yGEbH1.selected-ndu0qD:not(:disabled):hover{background:color-mix(in srgb,var(--ox0-color-foreground)22%,var(--ox0-color-surface-selected));color:var(--ox0-color-foreground)}.xs-yhxsad.secondary-yGEbH1.selected-ndu0qD{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem - 1px)}.sm-l24p0Q.secondary-yGEbH1.selected-ndu0qD{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem - 1px)}.md-tnc3LH.secondary-yGEbH1.selected-ndu0qD{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem - 1px)}.lg-DJZrEA.secondary-yGEbH1.selected-ndu0qD{padding-top:calc(.75rem + 1px);padding-bottom:calc(.75rem - 1px)}.secondary-yGEbH1.selected-ndu0qD.pressed-egzbhE{box-shadow:var(--_depth-shadow),inset 0 3px 0 #00000026}.xs-yhxsad.secondary-yGEbH1.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.25rem + 2px);padding-bottom:calc(.25rem - 2px)}.sm-l24p0Q.secondary-yGEbH1.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.375rem + 2px);padding-bottom:calc(.375rem - 2px)}.md-tnc3LH.secondary-yGEbH1.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.5rem + 2px);padding-bottom:calc(.5rem - 2px)}.lg-DJZrEA.secondary-yGEbH1.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.75rem + 2px);padding-bottom:calc(.75rem - 2px)}.ghost-jToGzF.selected-ndu0qD{background:color-mix(in srgb,var(--ox0-color-foreground)22%,var(--ox0-color-surface-selected));color:var(--ox0-color-foreground);box-shadow:inset 0 2px #00000026}.ghost-jToGzF.selected-ndu0qD:not(:disabled):hover{background:color-mix(in srgb,var(--ox0-color-foreground)22%,var(--ox0-color-surface-selected));color:var(--ox0-color-foreground)}.xs-yhxsad.ghost-jToGzF.selected-ndu0qD{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem - 1px)}.sm-l24p0Q.ghost-jToGzF.selected-ndu0qD{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem - 1px)}.md-tnc3LH.ghost-jToGzF.selected-ndu0qD{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem - 1px)}.lg-DJZrEA.ghost-jToGzF.selected-ndu0qD{padding-top:calc(.75rem + 1px);padding-bottom:calc(.75rem - 1px)}.ghost-jToGzF.selected-ndu0qD.pressed-egzbhE{box-shadow:inset 0 3px #00000040}.xs-yhxsad.ghost-jToGzF.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.25rem + 2px);padding-bottom:calc(.25rem - 2px)}.sm-l24p0Q.ghost-jToGzF.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.375rem + 2px);padding-bottom:calc(.375rem - 2px)}.md-tnc3LH.ghost-jToGzF.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.5rem + 2px);padding-bottom:calc(.5rem - 2px)}.lg-DJZrEA.ghost-jToGzF.selected-ndu0qD.pressed-egzbhE{padding-top:calc(.75rem + 2px);padding-bottom:calc(.75rem - 2px)}.button-gV6kKp:focus-visible{outline:none}.button-gV6kKp:focus-visible:before{border:2px solid var(--ox0-color-focus-ring);border-radius:calc(var(--ox0-radius-sm) + 4px);content:"";pointer-events:none;position:absolute;inset:-4px -4px -5px}.button-gV6kKp svg{display:block}.xs-yhxsad.hasIcon-AtG6pQ{padding-left:.375rem}.sm-l24p0Q.hasIcon-AtG6pQ{padding-left:.5rem}.md-tnc3LH.hasIcon-AtG6pQ{padding-left:.625rem}.lg-DJZrEA.hasIcon-AtG6pQ{padding-left:.75rem}.xs-yhxsad.hasIconEnd-PZ2yhA{padding-right:.375rem}.sm-l24p0Q.hasIconEnd-PZ2yhA{padding-right:.5rem}.md-tnc3LH.hasIconEnd-PZ2yhA{padding-right:.625rem}.lg-DJZrEA.hasIconEnd-PZ2yhA{padding-right:.75rem}.button-gV6kKp:disabled{cursor:not-allowed;opacity:.5}',
129
154
  ""
130
155
  ]);
131
156
  ___CSS_LOADER_EXPORT___.locals = {
132
157
  button: "button-gV6kKp",
158
+ xs: "xs-yhxsad",
133
159
  sm: "sm-l24p0Q",
134
160
  md: "md-tnc3LH",
135
161
  lg: "lg-DJZrEA",
@@ -172,6 +198,36 @@ var __webpack_modules__ = {
172
198
  };
173
199
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
174
200
  },
201
+ "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/checkbox-group.module.css": function(module, __webpack_exports__, __webpack_require__) {
202
+ __webpack_require__.d(__webpack_exports__, {
203
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
204
+ });
205
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
206
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
207
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/api.js");
208
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
209
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
210
+ ___CSS_LOADER_EXPORT___.push([
211
+ module.id,
212
+ ".fieldset-ppnMnv{gap:var(--ox0-space-xs);min-width:0;font-size:var(--ox0-font-size-md);border:none;margin:0;padding:0;display:grid}.legend-q3mvtg{float:left;width:100%;font-weight:var(--ox0-font-weight-medium);margin-bottom:var(--ox0-space-2xs);padding:0}.legend-q3mvtg+*{clear:left}.description-qITvTK{color:var(--ox0-color-text-secondary);font-size:var(--ox0-font-size-sm)}.group-GBzzz4{gap:var(--ox0-space-xs);display:flex}.vertical-GJ2rsu{flex-direction:column}.horizontal-lsSfIp{flex-flow:wrap}.error-hxwYNY{color:var(--ox0-color-danger-text);font-size:var(--ox0-font-size-sm)}.item-eREJmg{display:grid}.itemLabel-kWf4JD{cursor:pointer;align-items:center;gap:.5rem;display:inline-flex}.itemLabel-kWf4JD.disabled-oXva1I{cursor:not-allowed;opacity:.5}.input-SVUtYm[aria-invalid=true]{accent-color:var(--ox0-color-danger);outline:2px solid var(--ox0-color-danger);outline-offset:1px}.itemDescription-T5ZGxz{color:var(--ox0-color-text-secondary);font-size:var(--ox0-font-size-sm);display:block}",
213
+ ""
214
+ ]);
215
+ ___CSS_LOADER_EXPORT___.locals = {
216
+ fieldset: "fieldset-ppnMnv",
217
+ legend: "legend-q3mvtg",
218
+ description: "description-qITvTK",
219
+ group: "group-GBzzz4",
220
+ vertical: "vertical-GJ2rsu",
221
+ horizontal: "horizontal-lsSfIp",
222
+ error: "error-hxwYNY",
223
+ item: "item-eREJmg",
224
+ itemLabel: "itemLabel-kWf4JD",
225
+ disabled: "disabled-oXva1I",
226
+ input: "input-SVUtYm",
227
+ itemDescription: "itemDescription-T5ZGxz"
228
+ };
229
+ const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
230
+ },
175
231
  "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/checkbox.module.css": function(module, __webpack_exports__, __webpack_require__) {
176
232
  __webpack_require__.d(__webpack_exports__, {
177
233
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -304,6 +360,31 @@ var __webpack_modules__ = {
304
360
  };
305
361
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
306
362
  },
363
+ "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/field-group.module.css": function(module, __webpack_exports__, __webpack_require__) {
364
+ __webpack_require__.d(__webpack_exports__, {
365
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
366
+ });
367
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
368
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
369
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/api.js");
370
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
371
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
372
+ ___CSS_LOADER_EXPORT___.push([
373
+ module.id,
374
+ ".fieldset-MruCMe{gap:var(--ox0-space-xs);min-width:0;font-size:var(--ox0-font-size-md);border:none;margin:0;padding:0;display:grid}.legend-ALGR7i{float:left;width:100%;font-weight:var(--ox0-font-weight-medium);margin-bottom:var(--ox0-space-2xs);padding:0}.legend-ALGR7i+*{clear:left}.description-pAPqIz{color:var(--ox0-color-text-secondary);font-size:var(--ox0-font-size-sm)}.group-aDU7hJ{gap:var(--ox0-space-sm);display:flex}.vertical-_wrxC_{flex-direction:column}.horizontal-emhRn7{flex-flow:wrap;align-items:flex-end}.error-_Si44c{color:var(--ox0-color-danger-text);font-size:var(--ox0-font-size-sm)}",
375
+ ""
376
+ ]);
377
+ ___CSS_LOADER_EXPORT___.locals = {
378
+ fieldset: "fieldset-MruCMe",
379
+ legend: "legend-ALGR7i",
380
+ description: "description-pAPqIz",
381
+ group: "group-aDU7hJ",
382
+ vertical: "vertical-_wrxC_",
383
+ horizontal: "horizontal-emhRn7",
384
+ error: "error-_Si44c"
385
+ };
386
+ const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
387
+ },
307
388
  "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/heading.module.css": function(module, __webpack_exports__, __webpack_require__) {
308
389
  __webpack_require__.d(__webpack_exports__, {
309
390
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -348,6 +429,36 @@ var __webpack_modules__ = {
348
429
  };
349
430
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
350
431
  },
432
+ "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/listbox.module.css": function(module, __webpack_exports__, __webpack_require__) {
433
+ __webpack_require__.d(__webpack_exports__, {
434
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
435
+ });
436
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
437
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
438
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/api.js");
439
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
440
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
441
+ ___CSS_LOADER_EXPORT___.push([
442
+ module.id,
443
+ ".listbox-RXAtjJ{outline:none;flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.emptyListbox-GN5NrR{block-size:100%;display:grid}.section-H4Jvj4{margin:0;padding:0;list-style:none}.groupHeading-xAVRG0{padding:var(--ox0-space-xs)var(--ox0-space-sm);font-size:11px;font-weight:var(--ox0-font-weight-medium);letter-spacing:.06em;text-transform:uppercase;color:var(--ox0-color-muted);display:block}.staticContent-Ky4_pu{padding:var(--ox0-space-xs)var(--ox0-space-sm);font-size:var(--ox0-font-size-sm);color:var(--ox0-color-muted)}.divider-MAahdB{block-size:1px;margin:var(--ox0-space-xs)0;background:var(--ox0-color-border-subtle);border:none}.option-AVVD_z{border-radius:var(--ox0-radius-sm);padding:var(--ox0-space-sm);color:var(--ox0-color-foreground);cursor:pointer;touch-action:manipulation;outline:none}.option-AVVD_z:focus,.option-AVVD_z:focus-visible{outline:none}.option-AVVD_z:not([data-disabled]):hover{background:var(--ox0-color-surface-hover)}.option-AVVD_z[data-selected]{background:var(--ox0-color-accent-subtle);color:var(--ox0-color-accent-text)}.option-AVVD_z[data-focused]{background:var(--ox0-color-surface-hover)}.option-AVVD_z[data-focused][data-selected]{background:var(--ox0-color-accent-subtle);color:var(--ox0-color-accent-text)}.option-AVVD_z[data-disabled]{opacity:.55;cursor:not-allowed}.itemContent-s2Osxp{gap:var(--ox0-space-xs);flex-direction:column;display:flex}.emptyRow-c1bk2s{padding:var(--ox0-space-sm);align-self:stretch;place-items:center;list-style:none;display:grid}.emptyContent-uZUfEX{color:var(--ox0-color-muted);font-size:var(--ox0-font-size-sm)}.root-SceDN5{flex-direction:column;display:flex}.filterInput-vG0fOJ{appearance:none;border:1px solid var(--ox0-color-border);border-radius:var(--ox0-radius-sm);padding:var(--ox0-space-xs)var(--ox0-space-sm);font:inherit;font-size:var(--ox0-font-size-sm);background:var(--ox0-color-surface);color:var(--ox0-color-foreground);margin-bottom:var(--ox0-space-xs);outline:none}.filterInput-vG0fOJ:focus{border-color:var(--ox0-color-border-focus);box-shadow:0 0 0 2px var(--ox0-color-focus-ring)}",
444
+ ""
445
+ ]);
446
+ ___CSS_LOADER_EXPORT___.locals = {
447
+ listbox: "listbox-RXAtjJ",
448
+ emptyListbox: "emptyListbox-GN5NrR",
449
+ section: "section-H4Jvj4",
450
+ groupHeading: "groupHeading-xAVRG0",
451
+ staticContent: "staticContent-Ky4_pu",
452
+ divider: "divider-MAahdB",
453
+ option: "option-AVVD_z",
454
+ itemContent: "itemContent-s2Osxp",
455
+ emptyRow: "emptyRow-c1bk2s",
456
+ emptyContent: "emptyContent-uZUfEX",
457
+ root: "root-SceDN5",
458
+ filterInput: "filterInput-vG0fOJ"
459
+ };
460
+ const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
461
+ },
351
462
  "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/menu.module.css": function(module, __webpack_exports__, __webpack_require__) {
352
463
  __webpack_require__.d(__webpack_exports__, {
353
464
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -359,22 +470,53 @@ var __webpack_modules__ = {
359
470
  var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
360
471
  ___CSS_LOADER_EXPORT___.push([
361
472
  module.id,
362
- ".panel-Wzy_zi{min-width:200px;z-index:var(--ox0-z-popover)}.list-le5LXO{background:var(--ox0-color-surface-raised);border:1px solid var(--ox0-color-border);border-radius:var(--ox0-radius-md);box-shadow:var(--ox0-shadow-md);padding:var(--ox0-space-xs)0;margin:0;list-style:none;overflow:hidden}.row-qrs18w{margin:0}.item-IFgseY{color:var(--ox0-color-foreground);cursor:default;font:inherit;font-size:var(--ox0-font-size-sm);align-items:center;gap:var(--ox0-space-sm);padding:var(--ox0-space-xs)var(--ox0-space-md);text-align:left;background:0 0;border:none;width:100%;display:flex}.item-IFgseY[data-active]{background:var(--ox0-color-surface-selected)}.item-IFgseY[data-disabled]{color:var(--ox0-color-disabled);cursor:not-allowed}.itemIcon-wBLUSc{color:var(--ox0-color-muted);flex-shrink:0;width:16px;display:flex}.item-IFgseY[data-disabled] .itemIcon-wBLUSc{color:var(--ox0-color-disabled)}.itemMain-brNNFH{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.itemLabel-rwh31y{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHint-yCr5IQ{color:var(--ox0-color-muted);font-size:var(--ox0-font-size-xs)}.item-IFgseY[data-disabled] .itemHint-yCr5IQ{color:var(--ox0-color-disabled)}.itemChevron-PhcQi_{color:var(--ox0-color-muted);flex-shrink:0;width:16px;display:flex}",
473
+ ".panel-Wzy_zi{min-width:200px;z-index:var(--ox0-z-popover)}.list-le5LXO{background:var(--ox0-color-surface-raised);border:1px solid var(--ox0-color-border);border-radius:var(--ox0-radius-md);box-shadow:var(--ox0-shadow-md);padding:var(--ox0-space-xs)0;margin:0;list-style:none;overflow:hidden}.row-qrs18w{margin:0}.separator-RvMZfC{block-size:1px;margin:var(--ox0-space-xs)0;background:var(--ox0-color-border-subtle);border:none}.sectionWrapper-ZqKsj3{margin:0;padding:0;list-style:none}.sectionHeading-S_hysv{padding:var(--ox0-space-xs)var(--ox0-space-md);font-size:11px;font-weight:var(--ox0-font-weight-medium);letter-spacing:.06em;text-transform:uppercase;color:var(--ox0-color-muted);display:block}.sectionList-LnAxk7{margin:0;padding:0;list-style:none}.item-IFgseY{color:var(--ox0-color-foreground);cursor:default;font:inherit;font-size:var(--ox0-font-size-sm);align-items:center;gap:var(--ox0-space-sm);padding:var(--ox0-space-xs)var(--ox0-space-md);text-align:left;background:0 0;border:none;outline:none;width:100%;display:flex}.item-IFgseY[data-active]{background:var(--ox0-color-surface-selected)}.item-IFgseY[data-disabled]{color:var(--ox0-color-disabled);cursor:not-allowed}.itemIcon-wBLUSc{color:var(--ox0-color-muted);flex-shrink:0;width:16px;display:flex}.item-IFgseY[data-disabled] .itemIcon-wBLUSc{color:var(--ox0-color-disabled)}.itemLabel-rwh31y{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.itemHint-yCr5IQ{color:var(--ox0-color-muted);font-size:var(--ox0-font-size-xs);flex-shrink:0}.item-IFgseY[data-disabled] .itemHint-yCr5IQ{color:var(--ox0-color-disabled)}.itemChevron-PhcQi_{color:var(--ox0-color-muted);flex-shrink:0;width:16px;display:flex}",
363
474
  ""
364
475
  ]);
365
476
  ___CSS_LOADER_EXPORT___.locals = {
366
477
  panel: "panel-Wzy_zi",
367
478
  list: "list-le5LXO",
368
479
  row: "row-qrs18w",
480
+ separator: "separator-RvMZfC",
481
+ sectionWrapper: "sectionWrapper-ZqKsj3",
482
+ sectionHeading: "sectionHeading-S_hysv",
483
+ sectionList: "sectionList-LnAxk7",
369
484
  item: "item-IFgseY",
370
485
  itemIcon: "itemIcon-wBLUSc",
371
- itemMain: "itemMain-brNNFH",
372
486
  itemLabel: "itemLabel-rwh31y",
373
487
  itemHint: "itemHint-yCr5IQ",
374
488
  itemChevron: "itemChevron-PhcQi_"
375
489
  };
376
490
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
377
491
  },
492
+ "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/number-field.module.css": function(module, __webpack_exports__, __webpack_require__) {
493
+ __webpack_require__.d(__webpack_exports__, {
494
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
495
+ });
496
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
497
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
498
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/api.js");
499
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
500
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
501
+ ___CSS_LOADER_EXPORT___.push([
502
+ module.id,
503
+ ".root-DxBVJW{color:var(--ox0-color-foreground);font-size:var(--ox0-font-size-md);gap:var(--ox0-space-xs);display:grid}.label-GfyPDB{font-weight:var(--ox0-font-weight-medium)}.control-iBbH3T{background:var(--ox0-color-surface);border:1px solid var(--ox0-color-border);border-radius:var(--ox0-radius-sm);align-items:center;gap:var(--ox0-space-xs);min-height:36px;transition:border-color var(--ox0-duration-fast)var(--ox0-ease-crisp),box-shadow var(--ox0-duration-fast)var(--ox0-ease-crisp);padding-inline-start:var(--ox0-space-md);display:flex}.control-iBbH3T:hover{border-color:var(--ox0-color-border-strong)}.control-iBbH3T.focusVisible-zo4PYi{border-color:var(--ox0-color-accent);box-shadow:0 0 0 3px var(--ox0-color-focus-ring)}.control-iBbH3T.invalid-ZWjZxr{border-color:var(--ox0-color-danger)}.control-iBbH3T.invalid-ZWjZxr.focusVisible-zo4PYi{box-shadow:0 0 0 3px var(--ox0-color-danger-subtle)}.input-yABVLY{color:inherit;font:inherit;background:0 0;border:none;outline:none;flex:auto;min-inline-size:0;padding-block:.625rem}.input-yABVLY::placeholder{color:var(--ox0-color-disabled)}.input-yABVLY:disabled{color:var(--ox0-color-disabled);cursor:not-allowed}.control-iBbH3T:has(.input-yABVLY:disabled){background:var(--ox0-color-canvas);cursor:not-allowed}.stepper-OJD6ap{border-inline-start:1px solid var(--ox0-color-border);flex-direction:column;flex:none;align-self:stretch;display:flex}.step-IJKkWB{color:var(--ox0-color-muted);cursor:pointer;padding-inline:var(--ox0-space-sm);background:0 0;border:none;flex:1 1 0;justify-content:center;align-items:center;display:inline-flex}.step-IJKkWB:first-child{border-block-end:1px solid var(--ox0-color-border)}.step-IJKkWB:hover{background:var(--ox0-color-canvas);color:var(--ox0-color-foreground)}.step-IJKkWB:disabled{color:var(--ox0-color-disabled);cursor:not-allowed}.step-IJKkWB:disabled:hover{color:var(--ox0-color-disabled);background:0 0}.description-MOtCQ2{color:var(--ox0-color-muted);font-size:var(--ox0-font-size-sm)}.error-YNSHCF{color:var(--ox0-color-danger-text);font-size:var(--ox0-font-size-sm)}",
504
+ ""
505
+ ]);
506
+ ___CSS_LOADER_EXPORT___.locals = {
507
+ root: "root-DxBVJW",
508
+ label: "label-GfyPDB",
509
+ control: "control-iBbH3T",
510
+ focusVisible: "focusVisible-zo4PYi",
511
+ invalid: "invalid-ZWjZxr",
512
+ input: "input-yABVLY",
513
+ stepper: "stepper-OJD6ap",
514
+ step: "step-IJKkWB",
515
+ description: "description-MOtCQ2",
516
+ error: "error-YNSHCF"
517
+ };
518
+ const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
519
+ },
378
520
  "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/popover.module.css": function(module, __webpack_exports__, __webpack_require__) {
379
521
  __webpack_require__.d(__webpack_exports__, {
380
522
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -424,6 +566,34 @@ var __webpack_modules__ = {
424
566
  };
425
567
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
426
568
  },
569
+ "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/search-field.module.css": function(module, __webpack_exports__, __webpack_require__) {
570
+ __webpack_require__.d(__webpack_exports__, {
571
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
572
+ });
573
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
574
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
575
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/api.js");
576
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
577
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
578
+ ___CSS_LOADER_EXPORT___.push([
579
+ module.id,
580
+ ".root-Bq3cNE{color:var(--ox0-color-foreground);font-size:var(--ox0-font-size-md);gap:var(--ox0-space-xs);display:grid}.label-apzt7o{font-weight:var(--ox0-font-weight-medium)}.control-dbqWBN{background:var(--ox0-color-surface);border:1px solid var(--ox0-color-border);border-radius:var(--ox0-radius-sm);align-items:center;gap:var(--ox0-space-xs);min-height:36px;padding-inline:var(--ox0-space-md);transition:border-color var(--ox0-duration-fast)var(--ox0-ease-crisp),box-shadow var(--ox0-duration-fast)var(--ox0-ease-crisp);display:flex}.control-dbqWBN:hover{border-color:var(--ox0-color-border-strong)}.control-dbqWBN.focusVisible-BqgPk4{border-color:var(--ox0-color-accent);box-shadow:0 0 0 3px var(--ox0-color-focus-ring)}.control-dbqWBN.invalid-rUFqjW{border-color:var(--ox0-color-danger)}.control-dbqWBN.invalid-rUFqjW.focusVisible-BqgPk4{box-shadow:0 0 0 3px var(--ox0-color-danger-subtle)}.searchIcon-cYEo_m{color:var(--ox0-color-muted);flex:none;display:inline-flex}.input-iYDxXM{color:inherit;font:inherit;background:0 0;border:none;outline:none;flex:auto;min-inline-size:0;padding-block:.625rem}.input-iYDxXM::placeholder{color:var(--ox0-color-disabled)}.input-iYDxXM:disabled{color:var(--ox0-color-disabled);cursor:not-allowed}.control-dbqWBN:has(.input-iYDxXM:disabled){background:var(--ox0-color-canvas);cursor:not-allowed}.input-iYDxXM[type=search]::-webkit-search-cancel-button{appearance:none}.clear-hmLbK_{block-size:24px;color:var(--ox0-color-muted);cursor:pointer;background:0 0;border:none;border-radius:999px;flex:none;justify-content:center;align-items:center;inline-size:24px;display:inline-flex}.clear-hmLbK_:hover{color:var(--ox0-color-foreground)}.description-EO0ECQ{color:var(--ox0-color-muted);font-size:var(--ox0-font-size-sm)}.error-BQCu7D{color:var(--ox0-color-danger-text);font-size:var(--ox0-font-size-sm)}",
581
+ ""
582
+ ]);
583
+ ___CSS_LOADER_EXPORT___.locals = {
584
+ root: "root-Bq3cNE",
585
+ label: "label-apzt7o",
586
+ control: "control-dbqWBN",
587
+ focusVisible: "focusVisible-BqgPk4",
588
+ invalid: "invalid-rUFqjW",
589
+ searchIcon: "searchIcon-cYEo_m",
590
+ input: "input-iYDxXM",
591
+ clear: "clear-hmLbK_",
592
+ description: "description-EO0ECQ",
593
+ error: "error-BQCu7D"
594
+ };
595
+ const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
596
+ },
427
597
  "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/select.module.css": function(module, __webpack_exports__, __webpack_require__) {
428
598
  __webpack_require__.d(__webpack_exports__, {
429
599
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -472,6 +642,30 @@ var __webpack_modules__ = {
472
642
  };
473
643
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
474
644
  },
645
+ "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/slider.module.css": function(module, __webpack_exports__, __webpack_require__) {
646
+ __webpack_require__.d(__webpack_exports__, {
647
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
648
+ });
649
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
650
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
651
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/api.js");
652
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
653
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
654
+ ___CSS_LOADER_EXPORT___.push([
655
+ module.id,
656
+ ".root-TON2np{color:var(--ox0-color-foreground);font-size:var(--ox0-font-size-md);gap:var(--ox0-space-xs);display:grid}.label-OvvORl{font-weight:var(--ox0-font-weight-medium)}.track-ORxtg9{-webkit-appearance:none;appearance:none;cursor:pointer;background:0 0;outline:none;block-size:20px;inline-size:100%;margin:0;padding:0}.track-ORxtg9::-webkit-slider-runnable-track{background:linear-gradient(to right,var(--ox0-color-accent)var(--slider-percent,50%),var(--ox0-color-border)var(--slider-percent,50%));block-size:4px;transition:background var(--ox0-duration-fast)var(--ox0-ease-crisp);border-radius:999px}.track-ORxtg9::-moz-range-track{background:var(--ox0-color-border);border-radius:999px;block-size:4px}.track-ORxtg9::-moz-range-progress{background:var(--ox0-color-accent);border-radius:999px;block-size:4px}.track-ORxtg9::-webkit-slider-thumb{-webkit-appearance:none;background:var(--ox0-color-accent);border:2px solid var(--ox0-color-surface);cursor:pointer;block-size:16px;inline-size:16px;transition:transform var(--ox0-duration-fast)var(--ox0-ease-crisp);border-radius:50%;margin-block-start:-6px;box-shadow:0 1px 3px #00000026}.track-ORxtg9::-moz-range-thumb{background:var(--ox0-color-accent);border:2px solid var(--ox0-color-surface);cursor:pointer;block-size:16px;inline-size:16px;transition:transform var(--ox0-duration-fast)var(--ox0-ease-crisp);border-radius:50%;box-shadow:0 1px 3px #00000026}.track-ORxtg9:hover:not(:disabled)::-webkit-slider-thumb{transform:scale(1.15)}.track-ORxtg9:hover:not(:disabled)::-moz-range-thumb{transform:scale(1.15)}.track-ORxtg9:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px var(--ox0-color-focus-ring)}.track-ORxtg9:focus-visible::-moz-range-thumb{box-shadow:0 0 0 3px var(--ox0-color-focus-ring)}.track-ORxtg9.invalid-zIlN78::-webkit-slider-runnable-track{background:linear-gradient(to right,var(--ox0-color-danger)var(--slider-percent,50%),var(--ox0-color-border)var(--slider-percent,50%))}.track-ORxtg9.invalid-zIlN78::-moz-range-progress{background:var(--ox0-color-danger)}.track-ORxtg9.invalid-zIlN78::-webkit-slider-thumb{background:var(--ox0-color-danger)}.track-ORxtg9.invalid-zIlN78::-moz-range-thumb{background:var(--ox0-color-danger)}.track-ORxtg9.invalid-zIlN78:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px var(--ox0-color-danger-subtle)}.track-ORxtg9.invalid-zIlN78:focus-visible::-moz-range-thumb{box-shadow:0 0 0 3px var(--ox0-color-danger-subtle)}.track-ORxtg9:disabled{cursor:not-allowed;opacity:.5}.track-ORxtg9:disabled::-webkit-slider-thumb{cursor:not-allowed}.track-ORxtg9:disabled::-moz-range-thumb{cursor:not-allowed}.description-coDMjf{color:var(--ox0-color-muted);font-size:var(--ox0-font-size-sm)}.error-RBnQGu{color:var(--ox0-color-danger-text);font-size:var(--ox0-font-size-sm)}",
657
+ ""
658
+ ]);
659
+ ___CSS_LOADER_EXPORT___.locals = {
660
+ root: "root-TON2np",
661
+ label: "label-OvvORl",
662
+ track: "track-ORxtg9",
663
+ invalid: "invalid-zIlN78",
664
+ description: "description-coDMjf",
665
+ error: "error-RBnQGu"
666
+ };
667
+ const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
668
+ },
475
669
  "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/spinner.module.css": function(module, __webpack_exports__, __webpack_require__) {
476
670
  __webpack_require__.d(__webpack_exports__, {
477
671
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -528,6 +722,33 @@ var __webpack_modules__ = {
528
722
  };
529
723
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
530
724
  },
725
+ "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/table.module.css": function(module, __webpack_exports__, __webpack_require__) {
726
+ __webpack_require__.d(__webpack_exports__, {
727
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
728
+ });
729
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
730
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
731
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/api.js");
732
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
733
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
734
+ ___CSS_LOADER_EXPORT___.push([
735
+ module.id,
736
+ ".wrapper-XstlVN{border:1px solid var(--ox0-color-border);border-radius:var(--ox0-radius-sm);overflow-x:auto}.table-FTBKr2{border-collapse:collapse;width:100%;font-size:var(--ox0-font-size-md);color:var(--ox0-color-foreground)}.thead-Qjd1Mb{background:var(--ox0-color-canvas);border-bottom:1px solid var(--ox0-color-border)}.th-_gOdfi{padding:var(--ox0-space-sm)var(--ox0-space-md);text-align:left;font-size:var(--ox0-font-size-sm);font-weight:var(--ox0-font-weight-medium);color:var(--ox0-color-muted);white-space:nowrap;user-select:none}.sortButton-S3e__a{color:inherit;cursor:pointer;font:inherit;align-items:center;gap:var(--ox0-space-xs);text-align:left;white-space:nowrap;background:0 0;border:none;padding:0;display:inline-flex}.sortButton-S3e__a:hover,[aria-sort=ascending] .sortButton-S3e__a,[aria-sort=descending] .sortButton-S3e__a{color:var(--ox0-color-foreground)}.sortIcon-ynIcGa{opacity:.4;font-size:.7em}[aria-sort=ascending] .sortIcon-ynIcGa,[aria-sort=descending] .sortIcon-ynIcGa{color:var(--ox0-color-accent);opacity:1}.tr-Nj6e6z{border-bottom:1px solid var(--ox0-color-border-subtle);transition:background var(--ox0-duration-fast)var(--ox0-ease-crisp)}.tr-Nj6e6z:last-child{border-bottom:none}.tr-Nj6e6z:not(.selected-AJn0w7):hover{background:var(--ox0-color-surface-hover)}.tr-Nj6e6z.selected-AJn0w7,.tr-Nj6e6z[data-selected]{background:var(--ox0-color-accent-subtle)}.td-eVn_gZ{padding:var(--ox0-space-sm)var(--ox0-space-md);vertical-align:middle;outline:none}.td-eVn_gZ:focus-visible{box-shadow:inset 0 0 0 2px var(--ox0-color-accent);outline:none}",
737
+ ""
738
+ ]);
739
+ ___CSS_LOADER_EXPORT___.locals = {
740
+ wrapper: "wrapper-XstlVN",
741
+ table: "table-FTBKr2",
742
+ thead: "thead-Qjd1Mb",
743
+ th: "th-_gOdfi",
744
+ sortButton: "sortButton-S3e__a",
745
+ sortIcon: "sortIcon-ynIcGa",
746
+ tr: "tr-Nj6e6z",
747
+ selected: "selected-AJn0w7",
748
+ td: "td-eVn_gZ"
749
+ };
750
+ const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
751
+ },
531
752
  "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/tabs.module.css": function(module, __webpack_exports__, __webpack_require__) {
532
753
  __webpack_require__.d(__webpack_exports__, {
533
754
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -552,6 +773,34 @@ var __webpack_modules__ = {
552
773
  };
553
774
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
554
775
  },
776
+ "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/tag-group.module.css": function(module, __webpack_exports__, __webpack_require__) {
777
+ __webpack_require__.d(__webpack_exports__, {
778
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
779
+ });
780
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
781
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
782
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/api.js");
783
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
784
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
785
+ ___CSS_LOADER_EXPORT___.push([
786
+ module.id,
787
+ ".root-czq2dC{color:var(--ox0-color-foreground);font-size:var(--ox0-font-size-md);gap:var(--ox0-space-xs);display:grid}.label-pNCdm5{font-weight:var(--ox0-font-weight-medium)}.description-FYzKc1{color:var(--ox0-color-muted);font-size:var(--ox0-font-size-sm)}.error-Ki_ghh{color:var(--ox0-color-danger-text);font-size:var(--ox0-font-size-sm)}.tags-zkvYh0{gap:var(--ox0-space-xs);flex-wrap:wrap;display:flex}.tag-ueb2Qr{background:var(--ox0-color-canvas);border:1px solid var(--ox0-color-border);border-radius:var(--ox0-radius-full);color:var(--ox0-color-foreground);cursor:default;font-family:var(--ox0-font-sans);font-size:var(--ox0-font-size-sm);font-weight:var(--ox0-font-weight-medium);align-items:center;gap:var(--ox0-space-xs);min-block-size:28px;padding-block:.3125rem;padding-inline:var(--ox0-space-sm);transition:background var(--ox0-duration-fast)var(--ox0-ease-crisp),border-color var(--ox0-duration-fast)var(--ox0-ease-crisp),color var(--ox0-duration-fast)var(--ox0-ease-crisp);user-select:none;white-space:nowrap;line-height:1;display:inline-flex}button.tag-ueb2Qr{cursor:pointer}button.tag-ueb2Qr:hover:not(.disabled-BMkUWI){background:var(--ox0-color-surface);border-color:var(--ox0-color-border-strong)}button.tag-ueb2Qr:focus-visible{outline:2px solid var(--ox0-color-accent);outline-offset:2px}.tag-ueb2Qr.selected-a1JhC8{background:var(--ox0-color-accent-subtle);border-color:var(--ox0-color-accent);color:var(--ox0-color-accent-text)}button.tag-ueb2Qr.selected-a1JhC8:hover:not(.disabled-BMkUWI){background:var(--ox0-color-accent-subtle);border-color:var(--ox0-color-accent);opacity:.85}.tag-ueb2Qr.disabled-BMkUWI{cursor:not-allowed;opacity:.5}button.tag-ueb2Qr.disabled-BMkUWI{cursor:not-allowed}div.tag-ueb2Qr:focus-visible{outline:2px solid var(--ox0-color-accent);outline-offset:2px}div.tag-ueb2Qr[data-selectable]:hover{background:var(--ox0-color-surface);border-color:var(--ox0-color-border-strong);cursor:pointer}div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover{background:var(--ox0-color-accent-subtle);border-color:var(--ox0-color-accent);opacity:.85}.tagCell-Gr5mS6{align-items:center;gap:var(--ox0-space-xs);display:flex}.dismiss-RvMvmi{border-radius:var(--ox0-radius-sm);color:inherit;cursor:pointer;opacity:.6;background:0 0;border:none;flex-shrink:0;justify-content:center;align-items:center;width:1em;height:1em;padding:0;font-size:.75rem;line-height:1;display:inline-flex}.dismiss-RvMvmi:hover{opacity:1}",
788
+ ""
789
+ ]);
790
+ ___CSS_LOADER_EXPORT___.locals = {
791
+ root: "root-czq2dC",
792
+ label: "label-pNCdm5",
793
+ description: "description-FYzKc1",
794
+ error: "error-Ki_ghh",
795
+ tags: "tags-zkvYh0",
796
+ tag: "tag-ueb2Qr",
797
+ disabled: "disabled-BMkUWI",
798
+ selected: "selected-a1JhC8",
799
+ tagCell: "tagCell-Gr5mS6",
800
+ dismiss: "dismiss-RvMvmi"
801
+ };
802
+ const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
803
+ },
555
804
  "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/text-field.module.css": function(module, __webpack_exports__, __webpack_require__) {
556
805
  __webpack_require__.d(__webpack_exports__, {
557
806
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -1297,15 +1546,14 @@ function AccordionItem({ children, itemKey }) {
1297
1546
  })
1298
1547
  });
1299
1548
  }
1300
- function AccordionHeader({ children, level = 3, style }) {
1549
+ function AccordionHeader({ children, level = 3 }) {
1301
1550
  const item = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(AccordionItemContext);
1302
1551
  if (!item) throw new Error("AccordionHeader must be used inside AccordionItem");
1303
1552
  const { pressProps } = (0, __WEBPACK_EXTERNAL_MODULE__ox0_hooks_ab75bf8c__.usePress)({
1304
1553
  onPress: item.toggle
1305
1554
  });
1306
1555
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createElement)(`h${level}`, {
1307
- className: components_accordion_module.heading,
1308
- style
1556
+ className: components_accordion_module.heading
1309
1557
  }, /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("button", {
1310
1558
  id: item.triggerId,
1311
1559
  "aria-controls": item.panelId,
@@ -1328,6 +1576,7 @@ function AccordionPanel({ children }) {
1328
1576
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("section", {
1329
1577
  id: item.panelId,
1330
1578
  "aria-labelledby": item.triggerId,
1579
+ inert: !item.isExpanded,
1331
1580
  className: [
1332
1581
  components_accordion_module.panel,
1333
1582
  item.isExpanded ? components_accordion_module.open : ""
@@ -1577,6 +1826,74 @@ const banner_Banner = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwar
1577
1826
  })
1578
1827
  });
1579
1828
  });
1829
+ var breadcrumbs_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/breadcrumbs.module.css");
1830
+ var breadcrumbs_module_options = {};
1831
+ breadcrumbs_module_options.styleTagTransform = styleTagTransform_default();
1832
+ breadcrumbs_module_options.setAttributes = setAttributesWithoutAttributes_default();
1833
+ breadcrumbs_module_options.insert = insertBySelector_default().bind(null, "head");
1834
+ breadcrumbs_module_options.domAPI = styleDomAPI_default();
1835
+ breadcrumbs_module_options.insertStyleElement = insertStyleElement_default();
1836
+ injectStylesIntoStyleTag_default()(breadcrumbs_module.Z, breadcrumbs_module_options);
1837
+ const components_breadcrumbs_module = breadcrumbs_module.Z && breadcrumbs_module.Z.locals ? breadcrumbs_module.Z.locals : void 0;
1838
+ function BreadcrumbLink({ href, children }) {
1839
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
1840
+ className: components_breadcrumbs_module.link,
1841
+ href: href,
1842
+ children: children
1843
+ });
1844
+ }
1845
+ function BreadcrumbButton({ onPress, children }) {
1846
+ const { pressProps } = (0, __WEBPACK_EXTERNAL_MODULE__ox0_hooks_ab75bf8c__.usePress)({
1847
+ onPress
1848
+ });
1849
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
1850
+ className: components_breadcrumbs_module.link,
1851
+ type: "button",
1852
+ ...pressProps,
1853
+ children: children
1854
+ });
1855
+ }
1856
+ function BreadcrumbItem({ href, onPress, children, _isCurrent = false }) {
1857
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("li", {
1858
+ className: components_breadcrumbs_module.item,
1859
+ children: [
1860
+ _isCurrent ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
1861
+ "aria-current": "page",
1862
+ className: components_breadcrumbs_module.current,
1863
+ children: children
1864
+ }) : void 0 !== href ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(BreadcrumbLink, {
1865
+ href: href,
1866
+ children: children
1867
+ }) : void 0 !== onPress ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(BreadcrumbButton, {
1868
+ onPress: onPress,
1869
+ children: children
1870
+ }) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
1871
+ className: components_breadcrumbs_module.link,
1872
+ children: children
1873
+ }),
1874
+ !_isCurrent && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
1875
+ "aria-hidden": "true",
1876
+ className: components_breadcrumbs_module.separator,
1877
+ children: "/"
1878
+ })
1879
+ ]
1880
+ });
1881
+ }
1882
+ function Breadcrumbs({ ariaLabel = "Breadcrumb", children }) {
1883
+ const items = __WEBPACK_EXTERNAL_MODULE_react__.Children.toArray(children).filter(__WEBPACK_EXTERNAL_MODULE_react__.isValidElement);
1884
+ const count = items.length;
1885
+ const enhanced = items.map((child, index)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.cloneElement)(child, {
1886
+ _isCurrent: index === count - 1
1887
+ }));
1888
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("nav", {
1889
+ "aria-label": ariaLabel,
1890
+ className: components_breadcrumbs_module.root,
1891
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("ol", {
1892
+ className: components_breadcrumbs_module.list,
1893
+ children: enhanced
1894
+ })
1895
+ });
1896
+ }
1580
1897
  var badge_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/badge.module.css");
1581
1898
  var badge_module_options = {};
1582
1899
  badge_module_options.styleTagTransform = styleTagTransform_default();
@@ -1953,6 +2270,7 @@ button_module_options.insertStyleElement = insertStyleElement_default();
1953
2270
  injectStylesIntoStyleTag_default()(button_module.Z, button_module_options);
1954
2271
  const components_button_module = button_module.Z && button_module.Z.locals ? button_module.Z.locals : void 0;
1955
2272
  const iconSize = {
2273
+ xs: 12,
1956
2274
  sm: 14,
1957
2275
  md: 16,
1958
2276
  lg: 20
@@ -1978,7 +2296,7 @@ function useMinPressDuration(isPressed) {
1978
2296
  ]);
1979
2297
  return isVisuallyPressed;
1980
2298
  }
1981
- const button_Button = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ children, className, icon: Icon, iconEnd: IconEnd, isDisabled, isSelected, onPress, onPressStart, onPressEnd, onPressChange, onPressUp, onPointerEnter, onPointerLeave, size = "md", type = "button", variant = "secondary", ...rest }, ref) {
2299
+ const button_Button = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ children, icon: Icon, iconEnd: IconEnd, isDisabled, isSelected, onPress, onPressStart, onPressEnd, onPressChange, onPressUp, onPointerEnter, onPointerLeave, size = "md", type = "button", variant = "secondary", ...rest }, ref) {
1982
2300
  const { pressProps, isPressed: isActuallyPressed } = (0, __WEBPACK_EXTERNAL_MODULE__ox0_hooks_ab75bf8c__.usePress)({
1983
2301
  onPress,
1984
2302
  onPressStart,
@@ -2010,8 +2328,7 @@ const button_Button = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwar
2010
2328
  isPressed && components_button_module.pressed,
2011
2329
  isSelected && components_button_module.selected,
2012
2330
  Icon && components_button_module.hasIcon,
2013
- IconEnd && components_button_module.hasIconEnd,
2014
- className
2331
+ IconEnd && components_button_module.hasIconEnd
2015
2332
  ].filter(Boolean).join(" "),
2016
2333
  disabled: isDisabled,
2017
2334
  type: type,
@@ -2194,77 +2511,262 @@ const checkbox_Checkbox = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.fo
2194
2511
  ]
2195
2512
  });
2196
2513
  });
2197
- var combobox_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/combobox.module.css");
2198
- var combobox_module_options = {};
2199
- combobox_module_options.styleTagTransform = styleTagTransform_default();
2200
- combobox_module_options.setAttributes = setAttributesWithoutAttributes_default();
2201
- combobox_module_options.insert = insertBySelector_default().bind(null, "head");
2202
- combobox_module_options.domAPI = styleDomAPI_default();
2203
- combobox_module_options.insertStyleElement = insertStyleElement_default();
2204
- injectStylesIntoStyleTag_default()(combobox_module.Z, combobox_module_options);
2205
- const components_combobox_module = combobox_module.Z && combobox_module.Z.locals ? combobox_module.Z.locals : void 0;
2206
- function labelFor(options, value) {
2207
- return options.find((o)=>o.value === value)?.label ?? "";
2208
- }
2209
- function filterOptions(options, inputText) {
2210
- const q = inputText.trim().toLowerCase();
2211
- if (!q) return options;
2212
- return options.filter((o)=>o.label.toLowerCase().includes(q));
2514
+ var checkbox_group_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/checkbox-group.module.css");
2515
+ var checkbox_group_module_options = {};
2516
+ checkbox_group_module_options.styleTagTransform = styleTagTransform_default();
2517
+ checkbox_group_module_options.setAttributes = setAttributesWithoutAttributes_default();
2518
+ checkbox_group_module_options.insert = insertBySelector_default().bind(null, "head");
2519
+ checkbox_group_module_options.domAPI = styleDomAPI_default();
2520
+ checkbox_group_module_options.insertStyleElement = insertStyleElement_default();
2521
+ injectStylesIntoStyleTag_default()(checkbox_group_module.Z, checkbox_group_module_options);
2522
+ const components_checkbox_group_module = checkbox_group_module.Z && checkbox_group_module.Z.locals ? checkbox_group_module.Z.locals : void 0;
2523
+ const CheckboxGroupContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)(null);
2524
+ function useCheckboxGroupContext() {
2525
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(CheckboxGroupContext);
2526
+ if (!ctx) throw new Error("<GroupCheckbox> must be used inside <CheckboxGroup>");
2527
+ return ctx;
2213
2528
  }
2214
- const combobox_Combobox = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ label, ariaLabel, description, isDisabled, isInvalid, errorMessage, options, value: valueProp, defaultValue, placeholder, onChange, noOptionsMessage = "No options", id: idProp, ...inputProps }, forwardedRef) {
2215
- if (!label && !ariaLabel) throw new Error("Combobox requires `label` or `ariaLabel`.");
2529
+ const checkbox_group_CheckboxGroup = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ label, description, isInvalid, isDisabled = false, errorMessage, value: valueProp, defaultValue, onChange, orientation = "vertical", children, id: idProp, ...props }, ref) {
2216
2530
  const generatedId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
2217
- const controlId = idProp ?? generatedId;
2218
- const labelId = label ? `${controlId}-label` : void 0;
2219
- const listboxId = `${controlId}-listbox`;
2220
- const descriptionId = description ? `${controlId}-description` : void 0;
2221
- const errorId = errorMessage ? `${controlId}-error` : void 0;
2531
+ const id = idProp ?? generatedId;
2532
+ const descriptionId = description ? `${id}-description` : void 0;
2533
+ const errorId = errorMessage ? `${id}-error` : void 0;
2222
2534
  const invalid = isInvalid || !!errorMessage;
2223
2535
  const isControlled = void 0 !== valueProp;
2224
- const [uncontrolledValue, setUncontrolledValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(defaultValue ?? "");
2225
- const selectedValue = isControlled ? valueProp ?? "" : uncontrolledValue;
2226
- const commit = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((next)=>{
2536
+ const [uncontrolledValue, setUncontrolledValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(defaultValue ?? []);
2537
+ const value = isControlled ? valueProp : uncontrolledValue;
2538
+ function handleChange(next) {
2227
2539
  if (!isControlled) setUncontrolledValue(next);
2228
2540
  onChange?.(next);
2229
- }, [
2230
- isControlled,
2231
- onChange
2232
- ]);
2233
- const [inputText, setInputText] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(()=>labelFor(options, selectedValue));
2234
- const prevSelectedRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(selectedValue);
2235
- if (prevSelectedRef.current !== selectedValue) {
2236
- prevSelectedRef.current = selectedValue;
2237
- const next = labelFor(options, selectedValue);
2238
- if (next !== inputText) setInputText(next);
2239
2541
  }
2240
- const filteredOptions = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>filterOptions(options, inputText), [
2241
- options,
2242
- inputText
2542
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
2543
+ name: id,
2544
+ value,
2545
+ onChange: handleChange,
2546
+ isDisabled,
2547
+ isInvalid: invalid,
2548
+ descriptionId,
2549
+ errorId
2550
+ }), [
2551
+ id,
2552
+ value,
2553
+ isDisabled,
2554
+ invalid,
2555
+ descriptionId,
2556
+ errorId
2243
2557
  ]);
2244
- const [isOpen, setIsOpen] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
2245
- const [activeIndex, setActiveIndex] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(null);
2246
- const optionRefs = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)([]);
2247
- const { refs, floatingStyles, context } = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useFloating)({
2248
- open: isOpen,
2249
- onOpenChange: setIsOpen,
2250
- middleware: [
2251
- (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.flip)({
2252
- padding: 8
2253
- }),
2254
- (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.size)({
2255
- apply ({ rects, elements }) {
2256
- Object.assign(elements.floating.style, {
2257
- width: `${rects.reference.width}px`
2258
- });
2259
- },
2260
- padding: 8
2261
- })
2262
- ],
2263
- whileElementsMounted: __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.autoUpdate
2264
- });
2265
- const listNav = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useListNavigation)(context, {
2266
- listRef: optionRefs,
2267
- activeIndex,
2558
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(CheckboxGroupContext.Provider, {
2559
+ value: ctx,
2560
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("fieldset", {
2561
+ ...props,
2562
+ ref: ref,
2563
+ "aria-describedby": [
2564
+ descriptionId,
2565
+ errorId
2566
+ ].filter(Boolean).join(" ") || void 0,
2567
+ "aria-invalid": invalid || void 0,
2568
+ className: components_checkbox_group_module.fieldset,
2569
+ disabled: isDisabled,
2570
+ id: id,
2571
+ children: [
2572
+ label ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("legend", {
2573
+ className: components_checkbox_group_module.legend,
2574
+ children: label
2575
+ }) : null,
2576
+ description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2577
+ className: components_checkbox_group_module.description,
2578
+ id: descriptionId,
2579
+ children: description
2580
+ }) : null,
2581
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2582
+ className: [
2583
+ components_checkbox_group_module.group,
2584
+ "horizontal" === orientation ? components_checkbox_group_module.horizontal : components_checkbox_group_module.vertical
2585
+ ].join(" "),
2586
+ children: children
2587
+ }),
2588
+ errorMessage ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2589
+ className: components_checkbox_group_module.error,
2590
+ id: errorId,
2591
+ children: errorMessage
2592
+ }) : null
2593
+ ]
2594
+ })
2595
+ });
2596
+ });
2597
+ const checkbox_group_GroupCheckbox = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ value, label, description, isDisabled: isDisabledProp, id: idProp, children, ...props }, ref) {
2598
+ const ctx = useCheckboxGroupContext();
2599
+ const generatedId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
2600
+ const id = idProp ?? generatedId;
2601
+ const descriptionId = description ? `${id}-description` : void 0;
2602
+ const isDisabled = isDisabledProp ?? ctx.isDisabled;
2603
+ const labelContent = label ?? children;
2604
+ const isChecked = ctx.value.includes(value);
2605
+ function handleChange() {
2606
+ const next = isChecked ? ctx.value.filter((v)=>v !== value) : [
2607
+ ...ctx.value,
2608
+ value
2609
+ ];
2610
+ ctx.onChange(next);
2611
+ }
2612
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2613
+ className: components_checkbox_group_module.item,
2614
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("label", {
2615
+ className: `${components_checkbox_group_module.itemLabel}${isDisabled ? ` ${components_checkbox_group_module.disabled}` : ""}`,
2616
+ children: [
2617
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("input", {
2618
+ ...props,
2619
+ ref: ref,
2620
+ "aria-describedby": descriptionId,
2621
+ "aria-invalid": ctx.isInvalid || void 0,
2622
+ checked: isChecked,
2623
+ className: components_checkbox_group_module.input,
2624
+ disabled: isDisabled,
2625
+ id: id,
2626
+ name: `${ctx.name}[]`,
2627
+ onChange: handleChange,
2628
+ type: "checkbox",
2629
+ value: value
2630
+ }),
2631
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("span", {
2632
+ children: [
2633
+ labelContent ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2634
+ children: labelContent
2635
+ }) : null,
2636
+ description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2637
+ className: components_checkbox_group_module.itemDescription,
2638
+ id: descriptionId,
2639
+ children: description
2640
+ }) : null
2641
+ ]
2642
+ })
2643
+ ]
2644
+ })
2645
+ });
2646
+ });
2647
+ var field_group_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/field-group.module.css");
2648
+ var field_group_module_options = {};
2649
+ field_group_module_options.styleTagTransform = styleTagTransform_default();
2650
+ field_group_module_options.setAttributes = setAttributesWithoutAttributes_default();
2651
+ field_group_module_options.insert = insertBySelector_default().bind(null, "head");
2652
+ field_group_module_options.domAPI = styleDomAPI_default();
2653
+ field_group_module_options.insertStyleElement = insertStyleElement_default();
2654
+ injectStylesIntoStyleTag_default()(field_group_module.Z, field_group_module_options);
2655
+ const components_field_group_module = field_group_module.Z && field_group_module.Z.locals ? field_group_module.Z.locals : void 0;
2656
+ const field_group_FieldGroup = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ label, description, isInvalid, isDisabled, errorMessage, orientation = "vertical", children, id: idProp, ...props }, ref) {
2657
+ const generatedId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
2658
+ const id = idProp ?? generatedId;
2659
+ const descriptionId = description ? `${id}-description` : void 0;
2660
+ const errorId = errorMessage ? `${id}-error` : void 0;
2661
+ const describedBy = [
2662
+ descriptionId,
2663
+ errorId
2664
+ ].filter(Boolean).join(" ") || void 0;
2665
+ const invalid = isInvalid || !!errorMessage;
2666
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("fieldset", {
2667
+ ...props,
2668
+ ref: ref,
2669
+ "aria-describedby": describedBy,
2670
+ "aria-invalid": invalid || void 0,
2671
+ className: components_field_group_module.fieldset,
2672
+ disabled: isDisabled,
2673
+ id: id,
2674
+ children: [
2675
+ label ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("legend", {
2676
+ className: components_field_group_module.legend,
2677
+ children: label
2678
+ }) : null,
2679
+ description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2680
+ className: components_field_group_module.description,
2681
+ id: descriptionId,
2682
+ children: description
2683
+ }) : null,
2684
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2685
+ className: [
2686
+ components_field_group_module.group,
2687
+ "horizontal" === orientation ? components_field_group_module.horizontal : components_field_group_module.vertical
2688
+ ].join(" "),
2689
+ children: children
2690
+ }),
2691
+ errorMessage ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2692
+ className: components_field_group_module.error,
2693
+ id: errorId,
2694
+ children: errorMessage
2695
+ }) : null
2696
+ ]
2697
+ });
2698
+ });
2699
+ var combobox_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/combobox.module.css");
2700
+ var combobox_module_options = {};
2701
+ combobox_module_options.styleTagTransform = styleTagTransform_default();
2702
+ combobox_module_options.setAttributes = setAttributesWithoutAttributes_default();
2703
+ combobox_module_options.insert = insertBySelector_default().bind(null, "head");
2704
+ combobox_module_options.domAPI = styleDomAPI_default();
2705
+ combobox_module_options.insertStyleElement = insertStyleElement_default();
2706
+ injectStylesIntoStyleTag_default()(combobox_module.Z, combobox_module_options);
2707
+ const components_combobox_module = combobox_module.Z && combobox_module.Z.locals ? combobox_module.Z.locals : void 0;
2708
+ function labelFor(options, value) {
2709
+ return options.find((o)=>o.value === value)?.label ?? "";
2710
+ }
2711
+ function filterOptions(options, inputText) {
2712
+ const q = inputText.trim().toLowerCase();
2713
+ if (!q) return options;
2714
+ return options.filter((o)=>o.label.toLowerCase().includes(q));
2715
+ }
2716
+ const combobox_Combobox = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ label, ariaLabel, description, isDisabled, isInvalid, errorMessage, options, value: valueProp, defaultValue, placeholder, onChange, noOptionsMessage = "No options", id: idProp, ...inputProps }, forwardedRef) {
2717
+ if (!label && !ariaLabel) throw new Error("Combobox requires `label` or `ariaLabel`.");
2718
+ const generatedId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
2719
+ const controlId = idProp ?? generatedId;
2720
+ const labelId = label ? `${controlId}-label` : void 0;
2721
+ const listboxId = `${controlId}-listbox`;
2722
+ const descriptionId = description ? `${controlId}-description` : void 0;
2723
+ const errorId = errorMessage ? `${controlId}-error` : void 0;
2724
+ const invalid = isInvalid || !!errorMessage;
2725
+ const isControlled = void 0 !== valueProp;
2726
+ const [uncontrolledValue, setUncontrolledValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(defaultValue ?? "");
2727
+ const selectedValue = isControlled ? valueProp ?? "" : uncontrolledValue;
2728
+ const commit = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((next)=>{
2729
+ if (!isControlled) setUncontrolledValue(next);
2730
+ onChange?.(next);
2731
+ }, [
2732
+ isControlled,
2733
+ onChange
2734
+ ]);
2735
+ const [inputText, setInputText] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(()=>labelFor(options, selectedValue));
2736
+ const prevSelectedRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(selectedValue);
2737
+ if (prevSelectedRef.current !== selectedValue) {
2738
+ prevSelectedRef.current = selectedValue;
2739
+ const next = labelFor(options, selectedValue);
2740
+ if (next !== inputText) setInputText(next);
2741
+ }
2742
+ const filteredOptions = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>filterOptions(options, inputText), [
2743
+ options,
2744
+ inputText
2745
+ ]);
2746
+ const [isOpen, setIsOpen] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
2747
+ const [activeIndex, setActiveIndex] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(null);
2748
+ const optionRefs = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)([]);
2749
+ const { refs, floatingStyles, context } = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useFloating)({
2750
+ open: isOpen,
2751
+ onOpenChange: setIsOpen,
2752
+ middleware: [
2753
+ (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.flip)({
2754
+ padding: 8
2755
+ }),
2756
+ (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.size)({
2757
+ apply ({ rects, elements }) {
2758
+ Object.assign(elements.floating.style, {
2759
+ width: `${rects.reference.width}px`
2760
+ });
2761
+ },
2762
+ padding: 8
2763
+ })
2764
+ ],
2765
+ whileElementsMounted: __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.autoUpdate
2766
+ });
2767
+ const listNav = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useListNavigation)(context, {
2768
+ listRef: optionRefs,
2769
+ activeIndex,
2268
2770
  onNavigate: setActiveIndex,
2269
2771
  virtual: true,
2270
2772
  loop: true
@@ -2281,6 +2783,7 @@ const combobox_Combobox = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.fo
2281
2783
  function selectOption(option) {
2282
2784
  commit(option.value);
2283
2785
  setInputText(option.label);
2786
+ prevSelectedRef.current = option.value;
2284
2787
  setIsOpen(false);
2285
2788
  setActiveIndex(null);
2286
2789
  }
@@ -2301,10 +2804,8 @@ const combobox_Combobox = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.fo
2301
2804
  setIsOpen(false);
2302
2805
  setActiveIndex(null);
2303
2806
  } else if ("Tab" === e.key) {
2304
- if (isOpen && null !== activeIndex && filteredOptions[activeIndex]) {
2305
- const opt = filteredOptions[activeIndex];
2306
- if (!opt.disabled) selectOption(opt);
2307
- } else setIsOpen(false);
2807
+ setIsOpen(false);
2808
+ setActiveIndex(null);
2308
2809
  } else if (("ArrowDown" === e.key || "ArrowUp" === e.key) && !isOpen) setIsOpen(true);
2309
2810
  }
2310
2811
  function handleBlur() {
@@ -2338,6 +2839,7 @@ const combobox_Combobox = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.fo
2338
2839
  },
2339
2840
  ...getReferenceProps({
2340
2841
  id: controlId,
2842
+ "aria-autocomplete": "list",
2341
2843
  "aria-describedby": [
2342
2844
  descriptionId,
2343
2845
  errorId
@@ -2415,6 +2917,9 @@ const combobox_Combobox = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.fo
2415
2917
  option.value === selectedValue ? components_combobox_module.selected : null,
2416
2918
  option.disabled ? components_combobox_module.optionDisabled : null
2417
2919
  ].filter(Boolean).join(" "),
2920
+ onMouseDown: (e)=>{
2921
+ e.preventDefault();
2922
+ },
2418
2923
  onClick: ()=>{
2419
2924
  if (!option.disabled) selectOption(option);
2420
2925
  }
@@ -2524,8 +3029,11 @@ const radio_group_Radio = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.fo
2524
3029
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("input", {
2525
3030
  ...props,
2526
3031
  ref: ref,
2527
- "aria-describedby": descriptionId,
2528
- checked: void 0 !== ctx.value ? ctx.value === value : void 0,
3032
+ "aria-describedby": [
3033
+ descriptionId,
3034
+ ctx.errorId
3035
+ ].filter(Boolean).join(" ") || void 0,
3036
+ checked: ctx.value === value,
2529
3037
  className: components_radio_group_module.input,
2530
3038
  disabled: isDisabled,
2531
3039
  id: id,
@@ -2586,8 +3094,11 @@ function DialogRoot({ children, isDismissDisabled, isEphemeral, isOpen, maxHeigh
2586
3094
  (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
2587
3095
  if (!isOpen) return;
2588
3096
  const previouslyFocused = document.activeElement;
2589
- const first = dialogRef.current?.querySelector(FOCUSABLE_SELECTOR);
2590
- first?.focus();
3097
+ const el = dialogRef.current;
3098
+ if (el) {
3099
+ const first = el.querySelector(FOCUSABLE_SELECTOR);
3100
+ (first ?? el).focus();
3101
+ }
2591
3102
  return ()=>{
2592
3103
  if (previouslyFocused instanceof HTMLElement) previouslyFocused.focus();
2593
3104
  };
@@ -2650,6 +3161,7 @@ function DialogRoot({ children, isDismissDisabled, isEphemeral, isOpen, maxHeigh
2650
3161
  "data-max-height": maxHeight,
2651
3162
  "data-width": width,
2652
3163
  open: true,
3164
+ tabIndex: -1,
2653
3165
  onKeyDown: handleKeyDown,
2654
3166
  children: children
2655
3167
  })
@@ -2726,9 +3238,9 @@ const levelClass = {
2726
3238
  3: components_heading_module.h3 ?? ""
2727
3239
  };
2728
3240
  const heading_Heading = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ children, id, level = 2 }, ref) {
2729
- const anchorLabel = (0, __WEBPACK_EXTERNAL_MODULE__ox0_i18n_ad8e896a__.useMessage)("ox0.heading.anchorLabel", "Link to {id}", id ? {
2730
- id
2731
- } : {});
3241
+ const anchorLabel = (0, __WEBPACK_EXTERNAL_MODULE__ox0_i18n_ad8e896a__.useMessage)("ox0.heading.anchorLabel", "Link to {id}", {
3242
+ id: id ?? ""
3243
+ });
2732
3244
  const anchorMarker = (0, __WEBPACK_EXTERNAL_MODULE__ox0_i18n_ad8e896a__.useMessage)("ox0.heading.anchorMarker", "#");
2733
3245
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createElement)(`h${level}`, {
2734
3246
  ref,
@@ -2891,30 +3403,31 @@ function Tooltip({ children, placement = "top", isDisabled = false }) {
2891
3403
  function TooltipTrigger({ children }) {
2892
3404
  const { isDisabled, referenceRef, getReferenceProps } = useTooltipContext();
2893
3405
  if (isDisabled) return children;
2894
- const childRef = children.props.ref ?? null;
3406
+ const { ref: childRef, ...childProps } = children.props;
2895
3407
  const composedRef = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useMergeRefs)([
2896
3408
  referenceRef,
2897
- childRef
3409
+ childRef ?? null
2898
3410
  ]);
2899
3411
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.cloneElement)(children, {
2900
- ref: composedRef,
2901
- ...getReferenceProps()
3412
+ ...getReferenceProps(childProps),
3413
+ ref: composedRef
2902
3414
  });
2903
3415
  }
2904
- function TooltipContent({ children, className }) {
3416
+ function TooltipContent({ children }) {
2905
3417
  const { open, floatingRef, floatingStyles, getFloatingProps } = useTooltipContext();
2906
3418
  if (!open) return null;
2907
3419
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.FloatingPortal, {
2908
3420
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2909
3421
  ref: floatingRef,
2910
3422
  style: floatingStyles,
2911
- className: null != className ? `${components_tooltip_module.tooltip} ${className}` : components_tooltip_module.tooltip,
3423
+ className: components_tooltip_module.tooltip,
2912
3424
  ...getFloatingProps(),
2913
3425
  children: children
2914
3426
  })
2915
3427
  });
2916
3428
  }
2917
3429
  const icon_button_iconSize = {
3430
+ xs: 12,
2918
3431
  sm: 14,
2919
3432
  md: 16,
2920
3433
  lg: 20
@@ -2941,6 +3454,24 @@ const icon_button_IconButton = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react
2941
3454
  ]
2942
3455
  });
2943
3456
  });
3457
+ const icon_toggle_IconToggle = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ isSelected: controlledSelected, defaultSelected = false, onChange, onPress, variant = "flat", ...props }, ref) {
3458
+ const [isSelected, setIsSelected] = (0, __WEBPACK_EXTERNAL_MODULE__ox0_hooks_ab75bf8c__.useControllableState)({
3459
+ value: controlledSelected,
3460
+ defaultValue: defaultSelected,
3461
+ onChange
3462
+ });
3463
+ function handlePress(e) {
3464
+ setIsSelected(!isSelected);
3465
+ onPress?.(e);
3466
+ }
3467
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(icon_button_IconButton, {
3468
+ ...props,
3469
+ ref: ref,
3470
+ variant: variant,
3471
+ isSelected: isSelected,
3472
+ onPress: handlePress
3473
+ });
3474
+ });
2944
3475
  const icon_label_IconLabel = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ icon: Icon, children }, ref) {
2945
3476
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("span", {
2946
3477
  ref: ref,
@@ -3043,6 +3574,7 @@ function Tabs({ value: valueProp, defaultValue, onChange, children }) {
3043
3574
  }
3044
3575
  function TabList({ variant = "line", "aria-label": ariaLabel, children }) {
3045
3576
  const listRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
3577
+ const { onSelect } = useTabsContext();
3046
3578
  function handleKeyDown(e) {
3047
3579
  const tabs = Array.from(listRef.current?.querySelectorAll('[role="tab"]:not([disabled])') ?? []);
3048
3580
  if (0 === tabs.length) return;
@@ -3058,12 +3590,16 @@ function TabList({ variant = "line", "aria-label": ariaLabel, children }) {
3058
3590
  next = tabs[tabs.length - 1];
3059
3591
  }
3060
3592
  e.preventDefault();
3061
- next?.focus();
3062
- next?.click();
3593
+ if (next) {
3594
+ next.focus();
3595
+ const value = next.dataset["value"];
3596
+ if (value) onSelect(value);
3597
+ }
3063
3598
  }
3064
3599
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3065
3600
  ref: listRef,
3066
3601
  "aria-label": ariaLabel,
3602
+ "aria-orientation": "horizontal",
3067
3603
  className: [
3068
3604
  components_tabs_module.tablist,
3069
3605
  components_tabs_module[variant]
@@ -3084,6 +3620,7 @@ function Tab({ value, isDisabled, children }) {
3084
3620
  components_tabs_module.tab,
3085
3621
  isSelected ? components_tabs_module.selected : ""
3086
3622
  ].filter(Boolean).join(" "),
3623
+ "data-value": value,
3087
3624
  disabled: isDisabled,
3088
3625
  id: tabId(value),
3089
3626
  onClick: ()=>onSelect(value),
@@ -3178,56 +3715,173 @@ menu_module_options.domAPI = styleDomAPI_default();
3178
3715
  menu_module_options.insertStyleElement = insertStyleElement_default();
3179
3716
  injectStylesIntoStyleTag_default()(menu_module.Z, menu_module_options);
3180
3717
  const components_menu_module = menu_module.Z && menu_module.Z.locals ? menu_module.Z.locals : void 0;
3181
- const VIEWPORT_MARGIN = 16;
3182
- function firstEnabled(items) {
3183
- const i = items.findIndex((item)=>!item.isDisabled);
3718
+ function MenuItem(_) {
3719
+ return null;
3720
+ }
3721
+ function MenuSeparator(_) {
3722
+ return null;
3723
+ }
3724
+ function MenuSection(_) {
3725
+ return null;
3726
+ }
3727
+ function MenuSubTrigger(_) {
3728
+ return null;
3729
+ }
3730
+ function isNavigable(row) {
3731
+ return ("item" === row.kind || "sub" === row.kind) && !row.isDisabled;
3732
+ }
3733
+ function parseRows(children, counter, prefix = "") {
3734
+ return __WEBPACK_EXTERNAL_MODULE_react__.Children.toArray(children).flatMap((child)=>{
3735
+ if (!/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.isValidElement)(child)) return [];
3736
+ const { type } = child;
3737
+ const props = child.props;
3738
+ if (type === MenuItem) return [
3739
+ {
3740
+ kind: "item",
3741
+ id: props.id,
3742
+ label: props.children,
3743
+ icon: props.icon,
3744
+ hint: props.hint,
3745
+ isDisabled: Boolean(props.isDisabled),
3746
+ onSelect: props.onSelect
3747
+ }
3748
+ ];
3749
+ if (type === MenuSeparator) {
3750
+ const id = props.id ?? `${prefix}sep-${counter.n++}`;
3751
+ return [
3752
+ {
3753
+ kind: "separator",
3754
+ id
3755
+ }
3756
+ ];
3757
+ }
3758
+ if (type === MenuSection) {
3759
+ const label = props.label;
3760
+ const id = `${prefix}section-${label}`;
3761
+ const inner = parseRows(props.children, counter, `${id}-`);
3762
+ return [
3763
+ {
3764
+ kind: "section-header",
3765
+ id,
3766
+ label
3767
+ },
3768
+ ...inner
3769
+ ];
3770
+ }
3771
+ if (type === MenuSubTrigger) {
3772
+ const id = props.id;
3773
+ return [
3774
+ {
3775
+ kind: "sub",
3776
+ id,
3777
+ label: props.label,
3778
+ icon: props.icon,
3779
+ hint: props.hint,
3780
+ isDisabled: Boolean(props.isDisabled),
3781
+ items: parseRows(props.children, counter, `${id}-`)
3782
+ }
3783
+ ];
3784
+ }
3785
+ return [];
3786
+ });
3787
+ }
3788
+ function firstEnabled(rows) {
3789
+ const i = rows.findIndex(isNavigable);
3184
3790
  return -1 === i ? 0 : i;
3185
3791
  }
3186
- function lastEnabled(items) {
3187
- for(let i = items.length - 1; i >= 0; i--)if (!items[i]?.isDisabled) return i;
3792
+ function lastEnabled(rows) {
3793
+ for(let i = rows.length - 1; i >= 0; i--){
3794
+ const row = rows[i];
3795
+ if (void 0 !== row && isNavigable(row)) return i;
3796
+ }
3188
3797
  return 0;
3189
3798
  }
3190
- function nextEnabled(items, from, delta) {
3799
+ function nextEnabled(rows, from, delta) {
3191
3800
  let i = from + delta;
3192
- while(i >= 0 && i < items.length){
3193
- if (!items[i]?.isDisabled) return i;
3801
+ while(i >= 0 && i < rows.length){
3802
+ const row = rows[i];
3803
+ if (void 0 !== row && isNavigable(row)) return i;
3194
3804
  i += delta;
3195
3805
  }
3196
3806
  return from;
3197
3807
  }
3198
- function itemAtPath(root, path) {
3199
- let items = root;
3200
- let item = null;
3201
- for (const idx of path){
3202
- item = items[idx] ?? null;
3203
- if (!item?.items?.length) return null;
3204
- items = item.items;
3205
- }
3206
- return item;
3207
- }
3208
- function buildLevels(root, openPath, activeIndices) {
3209
- const levels = [
3210
- {
3211
- depth: 0,
3212
- items: root,
3213
- activeIndex: activeIndices[0] ?? firstEnabled(root)
3808
+ const SAFE_INVALID_MAX = 2;
3809
+ const SAFE_THROTTLE_MS = 50;
3810
+ const SAFE_TIMEOUT_MS = 1000;
3811
+ const SAFE_ANGLE_PADDING = Math.PI / 12;
3812
+ function useSafelyMouseToSubmenu({ menuRef, submenuRef, isOpen }) {
3813
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
3814
+ const menu = menuRef.current;
3815
+ if (!isOpen || !menu) return;
3816
+ let prevPos;
3817
+ let lastProcessedTime = 0;
3818
+ let timeout;
3819
+ let submenuSide;
3820
+ let invalidCount = SAFE_INVALID_MAX;
3821
+ function reset() {
3822
+ if (!menu) return;
3823
+ menu.style.pointerEvents = "";
3824
+ invalidCount = SAFE_INVALID_MAX;
3825
+ prevPos = void 0;
3826
+ submenuSide = void 0;
3214
3827
  }
3215
- ];
3216
- let items = root;
3217
- for(let d = 0; d < openPath.length; d++){
3218
- const parent = items[openPath[d] ?? 0];
3219
- if (!parent?.items?.length) break;
3220
- items = parent.items;
3221
- levels.push({
3222
- depth: d + 1,
3223
- items,
3224
- activeIndex: activeIndices[d + 1] ?? firstEnabled(items),
3225
- label: "string" == typeof parent.label ? parent.label : void 0
3226
- });
3227
- }
3228
- return levels;
3828
+ function onPointerMove(e) {
3829
+ if (!menu) return;
3830
+ if ("touch" === e.pointerType || "pen" === e.pointerType) return;
3831
+ const now = Date.now();
3832
+ if (now - lastProcessedTime < SAFE_THROTTLE_MS) return;
3833
+ clearTimeout(timeout);
3834
+ const { clientX: mouseX, clientY: mouseY } = e;
3835
+ if (!prevPos) {
3836
+ prevPos = {
3837
+ x: mouseX,
3838
+ y: mouseY
3839
+ };
3840
+ lastProcessedTime = now;
3841
+ return;
3842
+ }
3843
+ const menuRect = menu.getBoundingClientRect();
3844
+ if (mouseX < menuRect.left || mouseX > menuRect.right || mouseY < menuRect.top || mouseY > menuRect.bottom) {
3845
+ reset();
3846
+ return;
3847
+ }
3848
+ const submenu = submenuRef.current;
3849
+ if (!submenu) {
3850
+ reset();
3851
+ return;
3852
+ }
3853
+ const submenuRect = submenu.getBoundingClientRect();
3854
+ if (!submenuSide) submenuSide = mouseX > submenuRect.right ? "left" : "right";
3855
+ const { x: prevX, y: prevY } = prevPos;
3856
+ const toSubmenuX = "right" === submenuSide ? submenuRect.left - prevX : prevX - submenuRect.right;
3857
+ const angleTop = Math.atan2(prevY - submenuRect.top, toSubmenuX) + SAFE_ANGLE_PADDING;
3858
+ const angleBottom = Math.atan2(prevY - submenuRect.bottom, toSubmenuX) - SAFE_ANGLE_PADDING;
3859
+ const anglePointer = Math.atan2(prevY - mouseY, "left" === submenuSide ? -(mouseX - prevX) : mouseX - prevX);
3860
+ const movingToward = anglePointer < angleTop && anglePointer > angleBottom;
3861
+ invalidCount = movingToward ? Math.min(invalidCount + 1, SAFE_INVALID_MAX) : Math.max(invalidCount - 1, 0);
3862
+ menu.style.pointerEvents = invalidCount >= SAFE_INVALID_MAX ? "none" : "";
3863
+ lastProcessedTime = now;
3864
+ prevPos = {
3865
+ x: mouseX,
3866
+ y: mouseY
3867
+ };
3868
+ if (movingToward) timeout = setTimeout(reset, SAFE_TIMEOUT_MS);
3869
+ }
3870
+ window.addEventListener("pointermove", onPointerMove);
3871
+ return ()=>{
3872
+ window.removeEventListener("pointermove", onPointerMove);
3873
+ clearTimeout(timeout);
3874
+ reset();
3875
+ };
3876
+ }, [
3877
+ isOpen,
3878
+ menuRef,
3879
+ submenuRef
3880
+ ]);
3229
3881
  }
3230
- function MenuPanel({ activeIndex, ariaLabel, depth, items, onActivate, onBack, onClose, onOpenChild, onSelect, referenceEl, registerBtn }) {
3882
+ const VIEWPORT_MARGIN = 16;
3883
+ const HOVER_DELAY_MS = 150;
3884
+ function MenuPanel({ activeIndex, ariaLabel, depth, openChildIndex, rows, selfRef, submenuRef, onActivateByKeyboard, onActivateByPointer, onBack, onClose, onCloseChildByPointer, onOpenChild, onOpenChildByPointer, onSelect, referenceEl, registerBtn }) {
3231
3885
  const { refs, floatingStyles } = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useFloating)({
3232
3886
  placement: 0 === depth ? "bottom-end" : "right-start",
3233
3887
  middleware: [
@@ -3255,22 +3909,38 @@ function MenuPanel({ activeIndex, ariaLabel, depth, items, onActivate, onBack, o
3255
3909
  referenceEl,
3256
3910
  refs
3257
3911
  ]);
3912
+ useSafelyMouseToSubmenu({
3913
+ menuRef: selfRef,
3914
+ submenuRef,
3915
+ isOpen: void 0 !== openChildIndex
3916
+ });
3917
+ const hoverTimerRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
3918
+ const clearHoverTimer = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
3919
+ if (null !== hoverTimerRef.current) {
3920
+ clearTimeout(hoverTimerRef.current);
3921
+ hoverTimerRef.current = null;
3922
+ }
3923
+ }, []);
3924
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>clearHoverTimer, [
3925
+ clearHoverTimer
3926
+ ]);
3258
3927
  const onKeyDown = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
3259
3928
  if ("ArrowDown" === e.key) {
3260
3929
  e.preventDefault();
3261
- onActivate(depth, e.altKey ? lastEnabled(items) : nextEnabled(items, activeIndex, 1));
3930
+ onActivateByKeyboard(depth, e.altKey ? lastEnabled(rows) : nextEnabled(rows, activeIndex, 1));
3262
3931
  } else if ("ArrowUp" === e.key) {
3263
3932
  e.preventDefault();
3264
- onActivate(depth, e.altKey ? firstEnabled(items) : nextEnabled(items, activeIndex, -1));
3933
+ onActivateByKeyboard(depth, e.altKey ? firstEnabled(rows) : nextEnabled(rows, activeIndex, -1));
3265
3934
  } else if ("Home" === e.key) {
3266
3935
  e.preventDefault();
3267
- onActivate(depth, firstEnabled(items));
3936
+ onActivateByKeyboard(depth, firstEnabled(rows));
3268
3937
  } else if ("End" === e.key) {
3269
3938
  e.preventDefault();
3270
- onActivate(depth, lastEnabled(items));
3939
+ onActivateByKeyboard(depth, lastEnabled(rows));
3271
3940
  } else if ("ArrowRight" === e.key) {
3272
3941
  e.preventDefault();
3273
- if (items[activeIndex]?.items?.length) onOpenChild(depth, activeIndex);
3942
+ const row = rows[activeIndex];
3943
+ if (row?.kind === "sub") onOpenChild(depth, activeIndex);
3274
3944
  } else if ("ArrowLeft" === e.key) {
3275
3945
  if (depth > 0) {
3276
3946
  e.preventDefault();
@@ -3279,16 +3949,17 @@ function MenuPanel({ activeIndex, ariaLabel, depth, items, onActivate, onBack, o
3279
3949
  } else if ("Escape" === e.key) {
3280
3950
  e.preventDefault();
3281
3951
  onClose();
3282
- } else if ("Enter" === e.key || " " === e.key) {
3952
+ } else if ("Tab" === e.key) onClose();
3953
+ else if ("Enter" === e.key || " " === e.key) {
3283
3954
  e.preventDefault();
3284
- const item = items[activeIndex];
3285
- if (item) onSelect(depth, item);
3955
+ const row = rows[activeIndex];
3956
+ if (void 0 !== row && isNavigable(row)) onSelect(depth, row);
3286
3957
  }
3287
3958
  }, [
3288
3959
  activeIndex,
3289
3960
  depth,
3290
- items,
3291
- onActivate,
3961
+ rows,
3962
+ onActivateByKeyboard,
3292
3963
  onBack,
3293
3964
  onClose,
3294
3965
  onOpenChild,
@@ -3297,33 +3968,63 @@ function MenuPanel({ activeIndex, ariaLabel, depth, items, onActivate, onBack, o
3297
3968
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3298
3969
  className: components_menu_module.panel,
3299
3970
  onKeyDown: onKeyDown,
3300
- ref: refs.setFloating,
3971
+ ref: (el)=>{
3972
+ refs.setFloating(el);
3973
+ selfRef.current = el;
3974
+ },
3301
3975
  role: "presentation",
3302
3976
  style: floatingStyles,
3303
3977
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("ul", {
3304
3978
  "aria-label": ariaLabel,
3305
3979
  className: components_menu_module.list,
3306
3980
  role: "menu",
3307
- children: items.map((item, index)=>{
3308
- const hasChildren = Boolean(item.items?.length);
3981
+ children: rows.map((row, index)=>{
3982
+ if ("separator" === row.kind) return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("li", {
3983
+ className: components_menu_module.separatorRow,
3984
+ role: "presentation",
3985
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("hr", {
3986
+ className: components_menu_module.separator
3987
+ })
3988
+ }, row.id);
3989
+ if ("section-header" === row.kind) return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("li", {
3990
+ className: components_menu_module.sectionHeadingRow,
3991
+ role: "presentation",
3992
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
3993
+ className: components_menu_module.sectionHeading,
3994
+ children: row.label
3995
+ })
3996
+ }, row.id);
3309
3997
  const isActive = index === activeIndex;
3310
- const Icon = item.icon;
3998
+ const Icon = row.icon;
3999
+ const hasChildren = "sub" === row.kind;
4000
+ const isChildOpen = index === openChildIndex;
3311
4001
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("li", {
3312
4002
  className: components_menu_module.row,
3313
4003
  role: "none",
3314
4004
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("button", {
3315
- "aria-disabled": item.isDisabled || void 0,
3316
- "aria-expanded": hasChildren && isActive ? true : void 0,
4005
+ "aria-disabled": row.isDisabled || void 0,
4006
+ "aria-expanded": hasChildren && isChildOpen ? true : void 0,
3317
4007
  "aria-haspopup": hasChildren ? "menu" : void 0,
3318
4008
  className: components_menu_module.item,
3319
4009
  "data-active": isActive || void 0,
3320
- "data-disabled": item.isDisabled || void 0,
3321
- onClick: ()=>onSelect(depth, item),
3322
- onFocus: ()=>{
3323
- onBack(depth);
3324
- onActivate(depth, index);
4010
+ "data-disabled": row.isDisabled || void 0,
4011
+ onClick: ()=>{
4012
+ if (!row.isDisabled) onSelect(depth, row);
4013
+ },
4014
+ onFocus: ()=>onActivateByPointer(depth, index),
4015
+ onMouseEnter: ()=>{
4016
+ clearHoverTimer();
4017
+ onActivateByPointer(depth, index);
4018
+ if (hasChildren) {
4019
+ if (!isChildOpen) hoverTimerRef.current = setTimeout(()=>{
4020
+ hoverTimerRef.current = null;
4021
+ onOpenChildByPointer(depth, index);
4022
+ }, HOVER_DELAY_MS);
4023
+ } else if (void 0 !== openChildIndex) hoverTimerRef.current = setTimeout(()=>{
4024
+ hoverTimerRef.current = null;
4025
+ onCloseChildByPointer(depth);
4026
+ }, HOVER_DELAY_MS);
3325
4027
  },
3326
- onMouseEnter: ()=>onActivate(depth, index),
3327
4028
  ref: (node)=>registerBtn(depth, index, node),
3328
4029
  role: "menuitem",
3329
4030
  type: "button",
@@ -3334,19 +4035,14 @@ function MenuPanel({ activeIndex, ariaLabel, depth, items, onActivate, onBack, o
3334
4035
  size: 15
3335
4036
  }) : null
3336
4037
  }),
3337
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("span", {
3338
- className: components_menu_module.itemMain,
3339
- children: [
3340
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
3341
- className: components_menu_module.itemLabel,
3342
- children: item.label
3343
- }),
3344
- item.hint ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
3345
- className: components_menu_module.itemHint,
3346
- children: item.hint
3347
- }) : null
3348
- ]
4038
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
4039
+ className: components_menu_module.itemLabel,
4040
+ children: "sub" === row.kind ? row.label : row.label
3349
4041
  }),
4042
+ void 0 !== row.hint && null !== row.hint ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
4043
+ className: components_menu_module.itemHint,
4044
+ children: row.hint
4045
+ }) : null,
3350
4046
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
3351
4047
  className: components_menu_module.itemChevron,
3352
4048
  "aria-hidden": "true",
@@ -3367,48 +4063,105 @@ function MenuPanel({ activeIndex, ariaLabel, depth, items, onActivate, onBack, o
3367
4063
  })
3368
4064
  ]
3369
4065
  })
3370
- }, `${depth}-${item.id}`);
4066
+ }, row.id);
3371
4067
  })
3372
4068
  })
3373
4069
  });
3374
4070
  }
3375
- function Menu({ ariaLabel, items, trigger }) {
3376
- const triggerRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
3377
- const panelRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
3378
- const buttonRefs = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)([]);
3379
- const [isOpen, setIsOpen] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
3380
- const [openPath, setOpenPath] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)([]);
3381
- const [activeIndices, setActiveIndices] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)([
3382
- firstEnabled(items)
4071
+ function buildLevels(root, openPath, activeIndices) {
4072
+ const levels = [
4073
+ {
4074
+ depth: 0,
4075
+ rows: root,
4076
+ activeIndex: activeIndices[0] ?? firstEnabled(root)
4077
+ }
4078
+ ];
4079
+ let rows = root;
4080
+ for(let d = 0; d < openPath.length; d++){
4081
+ const idx = openPath[d] ?? 0;
4082
+ const parent = rows[idx];
4083
+ if (parent?.kind !== "sub" || !parent.items.length) break;
4084
+ rows = parent.items;
4085
+ levels.push({
4086
+ depth: d + 1,
4087
+ rows,
4088
+ activeIndex: activeIndices[d + 1] ?? firstEnabled(rows),
4089
+ label: "string" == typeof parent.label ? parent.label : void 0
4090
+ });
4091
+ }
4092
+ return levels;
4093
+ }
4094
+ const MAX_DEPTH = 8;
4095
+ const NULL_PANEL_REF = {
4096
+ current: null
4097
+ };
4098
+ function Menu({ "aria-label": ariaLabel, trigger, children }) {
4099
+ const rows = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>parseRows(children, {
4100
+ n: 0
4101
+ }), [
4102
+ children
4103
+ ]);
4104
+ const triggerRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
4105
+ const panelRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
4106
+ const buttonRefs = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)([]);
4107
+ const panelElRefs = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(Array.from({
4108
+ length: MAX_DEPTH
4109
+ }, ()=>({
4110
+ current: null
4111
+ })));
4112
+ const [isOpen, setIsOpen] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
4113
+ const [openPath, setOpenPath] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)([]);
4114
+ const [activeIndices, setActiveIndices] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)([
4115
+ firstEnabled(rows)
3383
4116
  ]);
3384
- const [focusDepth, setFocusDepth] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(0);
3385
- const levels = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>buildLevels(items, openPath, activeIndices), [
4117
+ const shouldMoveFocus = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(false);
4118
+ const levels = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>buildLevels(rows, openPath, activeIndices), [
3386
4119
  activeIndices,
3387
- items,
4120
+ rows,
3388
4121
  openPath
3389
4122
  ]);
4123
+ const focusDepth = openPath.length;
3390
4124
  const close = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
3391
4125
  setIsOpen(false);
3392
4126
  setOpenPath([]);
3393
4127
  setActiveIndices([
3394
- firstEnabled(items)
4128
+ firstEnabled(rows)
3395
4129
  ]);
3396
- setFocusDepth(0);
3397
4130
  triggerRef.current?.focus();
3398
4131
  }, [
3399
- items
4132
+ rows
3400
4133
  ]);
3401
4134
  const open = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
3402
4135
  setOpenPath([]);
3403
4136
  setActiveIndices([
3404
- firstEnabled(items)
4137
+ firstEnabled(rows)
3405
4138
  ]);
3406
- setFocusDepth(0);
4139
+ shouldMoveFocus.current = true;
3407
4140
  setIsOpen(true);
3408
4141
  }, [
3409
- items
4142
+ rows
4143
+ ]);
4144
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
4145
+ if (!isOpen || !shouldMoveFocus.current) return;
4146
+ shouldMoveFocus.current = false;
4147
+ const index = activeIndices[focusDepth] ?? 0;
4148
+ buttonRefs.current[focusDepth]?.[index]?.focus();
4149
+ }, [
4150
+ activeIndices,
4151
+ focusDepth,
4152
+ isOpen
3410
4153
  ]);
3411
- const activateIndex = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((depth, index)=>{
4154
+ const activateByKeyboard = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((depth, index)=>{
4155
+ shouldMoveFocus.current = true;
4156
+ setActiveIndices((prev)=>{
4157
+ const next = [
4158
+ ...prev
4159
+ ];
4160
+ next[depth] = index;
4161
+ return next.slice(0, depth + 2);
4162
+ });
4163
+ }, []);
4164
+ const activateByPointer = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((depth, index)=>{
3412
4165
  setActiveIndices((prev)=>{
3413
4166
  const next = [
3414
4167
  ...prev
@@ -3416,11 +4169,11 @@ function Menu({ ariaLabel, items, trigger }) {
3416
4169
  next[depth] = index;
3417
4170
  return next.slice(0, depth + 2);
3418
4171
  });
3419
- setFocusDepth(depth);
3420
4172
  }, []);
3421
4173
  const openChild = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((depth, index)=>{
3422
- const levelItems = levels[depth]?.items ?? [];
3423
- if (!levelItems[index]?.items?.length) {
4174
+ const levelRows = levels[depth]?.rows ?? [];
4175
+ const row = levelRows[index];
4176
+ if (row?.kind !== "sub" || !row.items.length) {
3424
4177
  setOpenPath((p)=>p.slice(0, depth));
3425
4178
  return;
3426
4179
  }
@@ -3433,31 +4186,54 @@ function Menu({ ariaLabel, items, trigger }) {
3433
4186
  const next = [
3434
4187
  ...prev
3435
4188
  ];
3436
- if (void 0 === next[depth + 1]) {
3437
- const child = itemAtPath(items, nextPath);
3438
- next[depth + 1] = firstEnabled(child?.items ?? []);
3439
- }
4189
+ if (void 0 === next[depth + 1]) next[depth + 1] = firstEnabled(row.items);
4190
+ return next;
4191
+ });
4192
+ shouldMoveFocus.current = true;
4193
+ }, [
4194
+ levels,
4195
+ openPath
4196
+ ]);
4197
+ const openChildByPointer = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((depth, index)=>{
4198
+ const levelRows = levels[depth]?.rows ?? [];
4199
+ const row = levelRows[index];
4200
+ if (row?.kind !== "sub" || !row.items.length) {
4201
+ setOpenPath((p)=>p.slice(0, depth));
4202
+ return;
4203
+ }
4204
+ const nextPath = [
4205
+ ...openPath.slice(0, depth),
4206
+ index
4207
+ ];
4208
+ setOpenPath(nextPath);
4209
+ setActiveIndices((prev)=>{
4210
+ const next = [
4211
+ ...prev
4212
+ ];
4213
+ if (void 0 === next[depth + 1]) next[depth + 1] = firstEnabled(row.items);
3440
4214
  return next;
3441
4215
  });
3442
- setFocusDepth(depth + 1);
3443
4216
  }, [
3444
- items,
3445
4217
  levels,
3446
4218
  openPath
3447
4219
  ]);
3448
4220
  const closeToDepth = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((depth)=>{
4221
+ shouldMoveFocus.current = true;
4222
+ setOpenPath((p)=>p.slice(0, depth));
4223
+ setActiveIndices((prev)=>prev.slice(0, depth + 1));
4224
+ }, []);
4225
+ const closeChildByPointer = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((depth)=>{
3449
4226
  setOpenPath((p)=>p.slice(0, depth));
3450
4227
  setActiveIndices((prev)=>prev.slice(0, depth + 1));
3451
- setFocusDepth(depth);
3452
4228
  }, []);
3453
- const handleSelect = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((depth, item)=>{
3454
- if (item.isDisabled) return;
3455
- if (item.items?.length) {
3456
- const index = levels[depth]?.items.findIndex((e)=>e.id === item.id) ?? -1;
4229
+ const handleSelect = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((depth, row)=>{
4230
+ if (row.isDisabled) return;
4231
+ if ("sub" === row.kind) {
4232
+ const index = levels[depth]?.rows.findIndex((r)=>r.id === row.id) ?? -1;
3457
4233
  if (-1 !== index) openChild(depth, index);
3458
4234
  return;
3459
4235
  }
3460
- item.onSelect?.();
4236
+ row.onSelect?.();
3461
4237
  close();
3462
4238
  }, [
3463
4239
  close,
@@ -3469,14 +4245,6 @@ function Menu({ ariaLabel, items, trigger }) {
3469
4245
  const depthRefs = buttonRefs.current[depth];
3470
4246
  if (depthRefs) depthRefs[index] = node;
3471
4247
  }, []);
3472
- (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
3473
- if (!isOpen) return;
3474
- buttonRefs.current[focusDepth]?.[activeIndices[focusDepth] ?? 0]?.focus();
3475
- }, [
3476
- activeIndices,
3477
- focusDepth,
3478
- isOpen
3479
- ]);
3480
4248
  (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
3481
4249
  if (!isOpen) return;
3482
4250
  const handlePointerDown = (e)=>{
@@ -3491,45 +4259,61 @@ function Menu({ ariaLabel, items, trigger }) {
3491
4259
  close,
3492
4260
  isOpen
3493
4261
  ]);
3494
- const triggerEl = __WEBPACK_EXTERNAL_MODULE_react__.Children.only(trigger);
3495
- const enhancedTrigger = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.cloneElement)(triggerEl, {
3496
- ref: triggerRef,
3497
- "aria-expanded": isOpen,
3498
- "aria-haspopup": "menu",
3499
- onPointerDown: (e)=>{
4262
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
4263
+ const el = triggerRef.current;
4264
+ if (!el) return;
4265
+ const onPointerDown = (e)=>{
3500
4266
  e.preventDefault();
3501
4267
  if (isOpen) close();
3502
4268
  else open();
3503
- },
3504
- onKeyDown: (e)=>{
3505
- if ("Enter" === e.key || " " === e.key || "ArrowDown" === e.key) {
4269
+ };
4270
+ const onKeyDown = (e)=>{
4271
+ if ("ArrowDown" === e.key || "Enter" === e.key || " " === e.key) {
3506
4272
  e.preventDefault();
3507
4273
  if (!isOpen) open();
3508
- }
3509
- if ("Escape" === e.key && isOpen) close();
3510
- }
4274
+ } else if ("Escape" === e.key && isOpen) close();
4275
+ };
4276
+ el.addEventListener("pointerdown", onPointerDown);
4277
+ el.addEventListener("keydown", onKeyDown);
4278
+ return ()=>{
4279
+ el.removeEventListener("pointerdown", onPointerDown);
4280
+ el.removeEventListener("keydown", onKeyDown);
4281
+ };
4282
+ }, [
4283
+ isOpen,
4284
+ open,
4285
+ close
4286
+ ]);
4287
+ const enhancedTrigger = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.cloneElement)(__WEBPACK_EXTERNAL_MODULE_react__.Children.only(trigger), {
4288
+ ref: triggerRef,
4289
+ "aria-expanded": isOpen,
4290
+ "aria-haspopup": "menu"
3511
4291
  });
3512
4292
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
3513
4293
  children: [
3514
4294
  enhancedTrigger,
3515
- isOpen ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.FloatingPortal, {
3516
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3517
- ref: panelRef,
3518
- children: levels.map((level)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(MenuPanel, {
3519
- activeIndex: level.activeIndex,
3520
- ariaLabel: level.label ?? ariaLabel,
3521
- depth: level.depth,
3522
- items: level.items,
3523
- onActivate: activateIndex,
3524
- onBack: closeToDepth,
3525
- onClose: close,
3526
- onOpenChild: openChild,
3527
- onSelect: handleSelect,
3528
- referenceEl: 0 === level.depth ? triggerRef.current : buttonRefs.current[level.depth - 1]?.[openPath[level.depth - 1] ?? 0] ?? null,
3529
- registerBtn: registerBtn
3530
- }, level.depth))
3531
- })
3532
- }) : null
4295
+ isOpen ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_dom_7136dc57__.createPortal)(/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
4296
+ ref: panelRef,
4297
+ children: levels.map((level)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(MenuPanel, {
4298
+ activeIndex: level.activeIndex,
4299
+ ariaLabel: level.label ?? ariaLabel,
4300
+ depth: level.depth,
4301
+ openChildIndex: openPath[level.depth],
4302
+ rows: level.rows,
4303
+ selfRef: panelElRefs.current[level.depth] ?? NULL_PANEL_REF,
4304
+ submenuRef: panelElRefs.current[level.depth + 1] ?? NULL_PANEL_REF,
4305
+ onActivateByKeyboard: activateByKeyboard,
4306
+ onActivateByPointer: activateByPointer,
4307
+ onBack: closeToDepth,
4308
+ onClose: close,
4309
+ onCloseChildByPointer: closeChildByPointer,
4310
+ onOpenChild: openChild,
4311
+ onOpenChildByPointer: openChildByPointer,
4312
+ onSelect: handleSelect,
4313
+ referenceEl: 0 === level.depth ? triggerRef.current : buttonRefs.current[level.depth - 1]?.[openPath[level.depth - 1] ?? 0] ?? null,
4314
+ registerBtn: registerBtn
4315
+ }, level.depth))
4316
+ }), document.body) : null
3533
4317
  ]
3534
4318
  });
3535
4319
  }
@@ -3598,14 +4382,14 @@ function Popover({ children, placement = "bottom-start", isOpen: controlledOpen,
3598
4382
  }
3599
4383
  function PopoverTrigger({ children }) {
3600
4384
  const { referenceRef, getReferenceProps } = usePopoverContext();
3601
- const childRef = children.props.ref ?? null;
4385
+ const { ref: childRef, ...childProps } = children.props;
3602
4386
  const composedRef = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useMergeRefs)([
3603
4387
  referenceRef,
3604
- childRef
4388
+ childRef ?? null
3605
4389
  ]);
3606
4390
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.cloneElement)(children, {
3607
- ref: composedRef,
3608
- ...getReferenceProps()
4391
+ ...getReferenceProps(childProps),
4392
+ ref: composedRef
3609
4393
  });
3610
4394
  }
3611
4395
  function PopoverContent({ children, className, style }) {
@@ -3859,6 +4643,503 @@ function ToastItem({ toast, onStartExit, onRemove }) {
3859
4643
  })
3860
4644
  });
3861
4645
  }
4646
+ var listbox_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/listbox.module.css");
4647
+ var listbox_module_options = {};
4648
+ listbox_module_options.styleTagTransform = styleTagTransform_default();
4649
+ listbox_module_options.setAttributes = setAttributesWithoutAttributes_default();
4650
+ listbox_module_options.insert = insertBySelector_default().bind(null, "head");
4651
+ listbox_module_options.domAPI = styleDomAPI_default();
4652
+ listbox_module_options.insertStyleElement = insertStyleElement_default();
4653
+ injectStylesIntoStyleTag_default()(listbox_module.Z, listbox_module_options);
4654
+ const components_listbox_module = listbox_module.Z && listbox_module.Z.locals ? listbox_module.Z.locals : void 0;
4655
+ const ListItemContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)(null);
4656
+ const useListItemState = ()=>(0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(ListItemContext);
4657
+ const normalizeKey = (v)=>v ? v.replace(/^\.\$/, "") : void 0;
4658
+ function flattenChildren(children) {
4659
+ const out = [];
4660
+ const visit = (node)=>{
4661
+ for (const child of __WEBPACK_EXTERNAL_MODULE_react__.Children.toArray(node))if (!!/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.isValidElement)(child)) {
4662
+ if (child.type === __WEBPACK_EXTERNAL_MODULE_react__.Fragment) {
4663
+ visit(child.props.children);
4664
+ continue;
4665
+ }
4666
+ out.push(child);
4667
+ }
4668
+ };
4669
+ visit(children);
4670
+ return out;
4671
+ }
4672
+ function inferTextValue(children, fallback) {
4673
+ if ("string" == typeof children) return children;
4674
+ if ("number" == typeof children) return String(children);
4675
+ return fallback;
4676
+ }
4677
+ function listbox_parseRows(children) {
4678
+ const out = [];
4679
+ for (const [index, child] of flattenChildren(children).entries()){
4680
+ const inferredKey = normalizeKey(String(child.key ?? ""));
4681
+ if (child.type === ListBoxFilter) {
4682
+ const { placeholder } = child.props;
4683
+ out.push({
4684
+ type: "filter",
4685
+ key: inferredKey ?? "filter",
4686
+ placeholder
4687
+ });
4688
+ } else if (child.type === ListItemGroup) out.push({
4689
+ type: "heading",
4690
+ key: inferredKey ?? `heading-${index}`,
4691
+ content: child.props.children
4692
+ });
4693
+ else if (child.type === ListItemDivider) out.push({
4694
+ type: "divider",
4695
+ key: inferredKey ?? `divider-${index}`,
4696
+ content: child
4697
+ });
4698
+ else if (child.type === ListItemStatic) out.push({
4699
+ type: "static",
4700
+ key: inferredKey ?? `static-${index}`,
4701
+ content: child
4702
+ });
4703
+ else if (child.type === ListItem) {
4704
+ const { id, isDisabled, onPress, textValue, children: itemChildren } = child.props;
4705
+ const key = id ?? inferredKey ?? `item-${index}`;
4706
+ out.push({
4707
+ type: "item",
4708
+ key,
4709
+ textValue: textValue ?? inferTextValue(itemChildren, key),
4710
+ disabled: Boolean(isDisabled),
4711
+ onPress,
4712
+ content: child
4713
+ });
4714
+ }
4715
+ }
4716
+ return out;
4717
+ }
4718
+ function getRangeKeys(keys, a, b) {
4719
+ const ai = keys.indexOf(a);
4720
+ const bi = keys.indexOf(b);
4721
+ if (ai < 0 || bi < 0) return [
4722
+ b
4723
+ ];
4724
+ const from = Math.min(ai, bi);
4725
+ const to = Math.max(ai, bi);
4726
+ return keys.slice(from, to + 1);
4727
+ }
4728
+ function getFirstKey(selection) {
4729
+ for (const key of selection)return String(key);
4730
+ }
4731
+ function OptionRow({ itemKey, state, onTrigger, onHover, triggerOnClick, selectionMode, rangeSelectableKeys }) {
4732
+ const ref = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
4733
+ const skipNextClickRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(false);
4734
+ const { optionProps, isFocused, isSelected, isDisabled } = (0, __WEBPACK_EXTERNAL_MODULE_react_aria_6ee6f485__.useOption)({
4735
+ key: itemKey
4736
+ }, state, ref);
4737
+ const rendered = [
4738
+ ...state.collection
4739
+ ].find((n)=>String(n.key) === itemKey)?.rendered;
4740
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
4741
+ key: itemKey,
4742
+ isSelected,
4743
+ isFocused,
4744
+ isDisabled
4745
+ }), [
4746
+ itemKey,
4747
+ isSelected,
4748
+ isFocused,
4749
+ isDisabled
4750
+ ]);
4751
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("li", {
4752
+ ...(0, __WEBPACK_EXTERNAL_MODULE_react_aria_6ee6f485__.mergeProps)(optionProps, {
4753
+ onMouseDown: (e)=>{
4754
+ if (!("multiple" === selectionMode && e.shiftKey) || isDisabled) return;
4755
+ e.preventDefault();
4756
+ e.stopPropagation();
4757
+ const selectedKey = getFirstKey(state.selectionManager.selectedKeys);
4758
+ const anchor = String(state.selectionManager.focusedKey ?? selectedKey ?? itemKey);
4759
+ const range = getRangeKeys(rangeSelectableKeys, anchor, itemKey);
4760
+ state.selectionManager.setSelectedKeys(new Set(range));
4761
+ state.selectionManager.setFocusedKey(itemKey);
4762
+ skipNextClickRef.current = true;
4763
+ },
4764
+ onDoubleClick: ()=>{
4765
+ if (!isDisabled) onTrigger?.(itemKey);
4766
+ },
4767
+ onClick: (e)=>{
4768
+ if (skipNextClickRef.current) {
4769
+ skipNextClickRef.current = false;
4770
+ return;
4771
+ }
4772
+ if (!triggerOnClick || isDisabled) return;
4773
+ if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
4774
+ onTrigger?.(itemKey);
4775
+ },
4776
+ onMouseEnter: ()=>{
4777
+ if (!isDisabled) onHover?.(itemKey);
4778
+ }
4779
+ }),
4780
+ ref: ref,
4781
+ className: components_listbox_module.option,
4782
+ "data-focused": isFocused || void 0,
4783
+ "data-selected": isSelected || void 0,
4784
+ "data-disabled": isDisabled || void 0,
4785
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ListItemContext.Provider, {
4786
+ value: ctx,
4787
+ children: rendered
4788
+ })
4789
+ });
4790
+ }
4791
+ const ListItem = ({ children, isDisabled })=>{
4792
+ const state = useListItemState();
4793
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
4794
+ className: components_listbox_module.itemContent,
4795
+ "data-selected": state?.isSelected,
4796
+ "data-focused": state?.isFocused,
4797
+ "data-disabled": isDisabled || state?.isDisabled,
4798
+ children: children
4799
+ });
4800
+ };
4801
+ ListItem.displayName = "ListItem";
4802
+ const ListItemGroup = ({ children })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
4803
+ className: components_listbox_module.groupHeading,
4804
+ children: children
4805
+ });
4806
+ ListItemGroup.displayName = "ListItemGroup";
4807
+ const ListItemDivider = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("hr", {
4808
+ className: components_listbox_module.divider,
4809
+ ...props
4810
+ });
4811
+ ListItemDivider.displayName = "ListItemDivider";
4812
+ const ListItemStatic = ({ children, className })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
4813
+ className: `${components_listbox_module.staticContent} ${className ?? ""}`.trim(),
4814
+ children: children
4815
+ });
4816
+ ListItemStatic.displayName = "ListItemStatic";
4817
+ const ListBoxFilter = (_)=>null;
4818
+ ListBoxFilter.displayName = "ListBoxFilter";
4819
+ const ListBox = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
4820
+ const { children, ariaLabel, selectedKey, selectedKeys: selectedKeysProp, defaultSelectedKey, defaultSelectedKeys, onSelectionChange, onSelectionKeysChange, onAction, triggerOnClick = false, selectionFollowsFocus = true, disallowEmptySelection = true, shouldFocusWrap = false, autoFocus, emptyState, selectionMode = "single", focusFollowsHover = false, onKeyDown, onKeyUp, onDragOver, onDrop, onDragLeave, className, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, border, borderTop, borderRight, borderBottom, borderLeft, borderRadius, shadow, surface } = props;
4821
+ const { style: spacingStyle } = useSpacing({
4822
+ padding,
4823
+ paddingX,
4824
+ paddingY,
4825
+ paddingTop,
4826
+ paddingRight,
4827
+ paddingBottom,
4828
+ paddingLeft
4829
+ });
4830
+ const { style: bordersStyle } = useBorders({
4831
+ border,
4832
+ borderTop,
4833
+ borderRight,
4834
+ borderBottom,
4835
+ borderLeft,
4836
+ borderRadius,
4837
+ shadow
4838
+ });
4839
+ const { style: surfaceStyle } = useSurface({
4840
+ surface
4841
+ });
4842
+ const boxStyle = {
4843
+ ...spacingStyle,
4844
+ ...bordersStyle,
4845
+ ...surfaceStyle
4846
+ };
4847
+ const listRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
4848
+ const filterRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
4849
+ const [filterQuery, setFilterQuery] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)("");
4850
+ const setRefs = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((node)=>{
4851
+ listRef.current = node;
4852
+ if (!ref) return;
4853
+ if ("function" == typeof ref) ref(node);
4854
+ else ref.current = node;
4855
+ }, [
4856
+ ref
4857
+ ]);
4858
+ const rows = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>listbox_parseRows(children), [
4859
+ children
4860
+ ]);
4861
+ const filterRow = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>rows.find((r)=>"filter" === r.type), [
4862
+ rows
4863
+ ]);
4864
+ const allItems = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>rows.filter((r)=>"item" === r.type), [
4865
+ rows
4866
+ ]);
4867
+ const items = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
4868
+ if (!filterRow || !filterQuery) return allItems;
4869
+ const q = filterQuery.toLowerCase();
4870
+ return allItems.filter((i)=>i.textValue.toLowerCase().includes(q));
4871
+ }, [
4872
+ allItems,
4873
+ filterRow,
4874
+ filterQuery
4875
+ ]);
4876
+ const disabledKeys = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>new Set(items.filter((i)=>i.disabled).map((i)=>i.key)), [
4877
+ items
4878
+ ]);
4879
+ const itemByKey = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>new Map(items.map((i)=>[
4880
+ i.key,
4881
+ i
4882
+ ])), [
4883
+ items
4884
+ ]);
4885
+ const rangeSelectableKeys = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>items.filter((i)=>!i.disabled).map((i)=>i.key), [
4886
+ items
4887
+ ]);
4888
+ const sections = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
4889
+ const result = [];
4890
+ let current = [];
4891
+ for (const row of rows)if ("divider" === row.type || "heading" === row.type) {
4892
+ if (current.length > 0) result.push(current);
4893
+ current = [];
4894
+ } else if ("item" === row.type && !row.disabled && items.some((i)=>i.key === row.key)) current.push(row.key);
4895
+ if (current.length > 0) result.push(current);
4896
+ return result;
4897
+ }, [
4898
+ rows,
4899
+ items
4900
+ ]);
4901
+ const stateChildren = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>items.map((item)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_stately_6980fd76__.Item, {
4902
+ textValue: item.textValue,
4903
+ children: item.content
4904
+ }, item.key)), [
4905
+ items
4906
+ ]);
4907
+ const resolvedSelectedKeys = selectedKeysProp ?? (void 0 === selectedKey ? void 0 : selectedKey ? [
4908
+ selectedKey
4909
+ ] : []);
4910
+ const resolvedDefaultSelectedKeys = defaultSelectedKeys ?? (defaultSelectedKey ? [
4911
+ defaultSelectedKey
4912
+ ] : void 0);
4913
+ const state = (0, __WEBPACK_EXTERNAL_MODULE_react_stately_6980fd76__.useListState)({
4914
+ children: stateChildren,
4915
+ selectionMode,
4916
+ selectionBehavior: "replace",
4917
+ disallowEmptySelection,
4918
+ ...void 0 !== resolvedSelectedKeys && {
4919
+ selectedKeys: resolvedSelectedKeys
4920
+ },
4921
+ ...void 0 !== resolvedDefaultSelectedKeys && {
4922
+ defaultSelectedKeys: resolvedDefaultSelectedKeys
4923
+ },
4924
+ disabledKeys,
4925
+ onSelectionChange: (keys)=>{
4926
+ if ("all" === keys) return;
4927
+ const selected = new Set([
4928
+ ...keys
4929
+ ].map(String));
4930
+ onSelectionKeysChange?.(selected);
4931
+ if ("single" !== selectionMode) return;
4932
+ const key = getFirstKey(keys);
4933
+ if (null != key) onSelectionChange?.(key);
4934
+ }
4935
+ });
4936
+ const focusedKey = state.selectionManager.focusedKey;
4937
+ const selectionManagerRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(state.selectionManager);
4938
+ selectionManagerRef.current = state.selectionManager;
4939
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
4940
+ if (!selectionFollowsFocus || "single" !== selectionMode || null == focusedKey) return;
4941
+ if (!selectionManagerRef.current.isSelected(focusedKey)) selectionManagerRef.current.setSelectedKeys(new Set([
4942
+ focusedKey
4943
+ ]));
4944
+ }, [
4945
+ focusedKey,
4946
+ selectionFollowsFocus,
4947
+ selectionMode
4948
+ ]);
4949
+ const { listBoxProps } = (0, __WEBPACK_EXTERNAL_MODULE_react_aria_6ee6f485__.useListBox)({
4950
+ ...void 0 !== ariaLabel && {
4951
+ "aria-label": ariaLabel
4952
+ },
4953
+ ...void 0 !== autoFocus && {
4954
+ autoFocus
4955
+ },
4956
+ shouldFocusWrap
4957
+ }, state, listRef);
4958
+ const triggerForKey = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((key)=>{
4959
+ const row = itemByKey.get(key);
4960
+ if (!row || row.disabled) return;
4961
+ row.onPress?.(key);
4962
+ onAction?.(key);
4963
+ }, [
4964
+ itemByKey,
4965
+ onAction
4966
+ ]);
4967
+ const hoverFocusKey = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((key)=>{
4968
+ if (!focusFollowsHover) return;
4969
+ if (disabledKeys.has(key)) return;
4970
+ state.selectionManager.setFocusedKey(key);
4971
+ if (selectionFollowsFocus && "single" === selectionMode) state.selectionManager.setSelectedKeys(new Set([
4972
+ key
4973
+ ]));
4974
+ }, [
4975
+ disabledKeys,
4976
+ focusFollowsHover,
4977
+ selectionFollowsFocus,
4978
+ selectionMode,
4979
+ state.selectionManager
4980
+ ]);
4981
+ const jumpTo = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((key)=>{
4982
+ state.selectionManager.setFocusedKey(key);
4983
+ if (selectionFollowsFocus && "single" === selectionMode) state.selectionManager.setSelectedKeys(new Set([
4984
+ key
4985
+ ]));
4986
+ }, [
4987
+ selectionFollowsFocus,
4988
+ selectionMode,
4989
+ state.selectionManager
4990
+ ]);
4991
+ const handleKeyDown = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
4992
+ if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) return;
4993
+ if (filterRow && !e.altKey && !e.metaKey && !e.ctrlKey && "/" === e.key) {
4994
+ e.preventDefault();
4995
+ filterRef.current?.focus();
4996
+ filterRef.current?.select();
4997
+ return;
4998
+ }
4999
+ if ((e.metaKey || e.ctrlKey) && ("ArrowDown" === e.key || "ArrowUp" === e.key)) {
5000
+ e.preventDefault();
5001
+ const currentKey = String(state.selectionManager.focusedKey ?? "");
5002
+ const sectionIdx = sections.findIndex((s)=>s.includes(currentKey));
5003
+ let key;
5004
+ if ("ArrowDown" === e.key) key = sections[sectionIdx + 1]?.[0] ?? rangeSelectableKeys[rangeSelectableKeys.length - 1];
5005
+ else {
5006
+ const isFirstOfSection = sections[sectionIdx]?.[0] === currentKey;
5007
+ key = isFirstOfSection ? sections[sectionIdx - 1]?.[0] : sections[sectionIdx]?.[0];
5008
+ key ??= rangeSelectableKeys[0];
5009
+ }
5010
+ if (key) jumpTo(key);
5011
+ onKeyDown?.(e);
5012
+ return;
5013
+ }
5014
+ if (e.altKey && ("ArrowDown" === e.key || "ArrowUp" === e.key)) {
5015
+ e.preventDefault();
5016
+ const key = "ArrowDown" === e.key ? rangeSelectableKeys[rangeSelectableKeys.length - 1] : rangeSelectableKeys[0];
5017
+ if (key) jumpTo(key);
5018
+ onKeyDown?.(e);
5019
+ return;
5020
+ }
5021
+ if ("Enter" === e.key || " " === e.key) {
5022
+ e.preventDefault();
5023
+ const fallbackKey = getFirstKey(state.selectionManager.selectedKeys);
5024
+ const k = state.selectionManager.focusedKey ?? fallbackKey;
5025
+ if (null != k) triggerForKey(String(k));
5026
+ onKeyDown?.(e);
5027
+ return;
5028
+ }
5029
+ listBoxProps.onKeyDown?.(e);
5030
+ onKeyDown?.(e);
5031
+ }, [
5032
+ filterRow,
5033
+ jumpTo,
5034
+ listBoxProps.onKeyDown,
5035
+ onKeyDown,
5036
+ rangeSelectableKeys,
5037
+ sections,
5038
+ state.selectionManager,
5039
+ triggerForKey
5040
+ ]);
5041
+ const handleFilterKeyDown = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
5042
+ if ("ArrowDown" === e.key) {
5043
+ e.preventDefault();
5044
+ listRef.current?.focus();
5045
+ } else if ("Escape" === e.key) {
5046
+ e.preventDefault();
5047
+ setFilterQuery("");
5048
+ listRef.current?.focus();
5049
+ }
5050
+ }, []);
5051
+ const handleFilterChange = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
5052
+ setFilterQuery(e.target.value);
5053
+ }, []);
5054
+ const { onKeyDown: _ariaKeyDown, ...listBoxPropsRest } = listBoxProps;
5055
+ const hasItems = items.length > 0;
5056
+ const hasPresentationOnly = !hasItems && rows.some((r)=>"heading" === r.type || "divider" === r.type || "static" === r.type);
5057
+ const rootBoxStyle = filterRow ? void 0 : boxStyle;
5058
+ const wrapperBoxStyle = filterRow ? boxStyle : void 0;
5059
+ const listEl = hasItems || hasPresentationOnly ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("ul", {
5060
+ ...(0, __WEBPACK_EXTERNAL_MODULE_react_aria_6ee6f485__.mergeProps)(listBoxPropsRest, {
5061
+ onKeyUp: (e)=>onKeyUp?.(e),
5062
+ onDragOver: (e)=>onDragOver?.(e),
5063
+ onDrop: (e)=>onDrop?.(e),
5064
+ onDragLeave: (e)=>onDragLeave?.(e),
5065
+ onClick: (e)=>{
5066
+ const target = e.target instanceof HTMLElement ? e.target : null;
5067
+ if (!target?.closest("a")) return;
5068
+ const rowEl = target.closest("li[data-disabled]");
5069
+ if (rowEl?.getAttribute("data-disabled") === "true") e.preventDefault();
5070
+ }
5071
+ }),
5072
+ onKeyDown: handleKeyDown,
5073
+ ref: setRefs,
5074
+ style: rootBoxStyle,
5075
+ className: `${components_listbox_module.listbox} ${className ?? ""}`.trim(),
5076
+ children: rows.map((row)=>{
5077
+ if ("filter" === row.type) return null;
5078
+ if ("heading" === row.type) return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("li", {
5079
+ className: components_listbox_module.section,
5080
+ role: "presentation",
5081
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
5082
+ className: components_listbox_module.groupHeading,
5083
+ children: row.content
5084
+ })
5085
+ }, row.key);
5086
+ if ("divider" === row.type || "static" === row.type) return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("li", {
5087
+ className: components_listbox_module.section,
5088
+ role: "presentation",
5089
+ children: row.content
5090
+ }, row.key);
5091
+ if (filterRow && !items.some((i)=>i.key === row.key)) return null;
5092
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(OptionRow, {
5093
+ itemKey: row.key,
5094
+ state: state,
5095
+ onTrigger: triggerForKey,
5096
+ onHover: hoverFocusKey,
5097
+ triggerOnClick: triggerOnClick,
5098
+ selectionMode: selectionMode,
5099
+ rangeSelectableKeys: rangeSelectableKeys
5100
+ }, row.key);
5101
+ })
5102
+ }) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("ul", {
5103
+ ...(0, __WEBPACK_EXTERNAL_MODULE_react_aria_6ee6f485__.mergeProps)(listBoxPropsRest, {
5104
+ onKeyUp: (e)=>onKeyUp?.(e),
5105
+ onDragOver: (e)=>onDragOver?.(e),
5106
+ onDrop: (e)=>onDrop?.(e),
5107
+ onDragLeave: (e)=>onDragLeave?.(e)
5108
+ }),
5109
+ onKeyDown: handleKeyDown,
5110
+ ref: setRefs,
5111
+ style: rootBoxStyle,
5112
+ className: `${components_listbox_module.listbox} ${components_listbox_module.emptyListbox} ${className ?? ""}`.trim(),
5113
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("li", {
5114
+ className: components_listbox_module.emptyRow,
5115
+ role: "presentation",
5116
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
5117
+ className: components_listbox_module.emptyContent,
5118
+ children: emptyState ?? "No items"
5119
+ })
5120
+ })
5121
+ });
5122
+ if (!filterRow) return listEl;
5123
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
5124
+ className: components_listbox_module.root,
5125
+ style: wrapperBoxStyle,
5126
+ children: [
5127
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("input", {
5128
+ ref: filterRef,
5129
+ type: "text",
5130
+ role: "searchbox",
5131
+ "aria-label": "Filter",
5132
+ className: components_listbox_module.filterInput,
5133
+ placeholder: filterRow.placeholder,
5134
+ value: filterQuery,
5135
+ onChange: handleFilterChange,
5136
+ onKeyDown: handleFilterKeyDown
5137
+ }),
5138
+ listEl
5139
+ ]
5140
+ });
5141
+ });
5142
+ ListBox.displayName = "ListBox";
3862
5143
  var select_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/select.module.css");
3863
5144
  var select_module_options = {};
3864
5145
  select_module_options.styleTagTransform = styleTagTransform_default();
@@ -3868,7 +5149,7 @@ select_module_options.domAPI = styleDomAPI_default();
3868
5149
  select_module_options.insertStyleElement = insertStyleElement_default();
3869
5150
  injectStylesIntoStyleTag_default()(select_module.Z, select_module_options);
3870
5151
  const components_select_module = select_module.Z && select_module.Z.locals ? select_module.Z.locals : void 0;
3871
- const select_Select = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ ariaLabel, className, defaultValue, description, errorMessage, id, isDisabled, isInvalid, label, onChange, options, placeholder, value: valueProp, ...props }, ref) {
5152
+ const select_Select = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ ariaLabel, defaultValue, description, errorMessage, id, isDisabled, isInvalid, label, onChange, options, placeholder, value: valueProp, ...props }, ref) {
3872
5153
  if (!label && !ariaLabel) throw new Error("Select requires `label` or `ariaLabel`.");
3873
5154
  const generatedId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
3874
5155
  const controlId = id ?? generatedId;
@@ -3905,8 +5186,7 @@ const select_Select = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwar
3905
5186
  className: [
3906
5187
  components_select_module.select,
3907
5188
  invalid ? components_select_module.invalid : null,
3908
- isFocusVisible ? components_select_module.focusVisible : null,
3909
- className
5189
+ isFocusVisible ? components_select_module.focusVisible : null
3910
5190
  ].filter(Boolean).join(" "),
3911
5191
  disabled: isDisabled,
3912
5192
  id: controlId,
@@ -4033,7 +5313,7 @@ text_field_module_options.domAPI = styleDomAPI_default();
4033
5313
  text_field_module_options.insertStyleElement = insertStyleElement_default();
4034
5314
  injectStylesIntoStyleTag_default()(text_field_module.Z, text_field_module_options);
4035
5315
  const components_text_field_module = text_field_module.Z && text_field_module.Z.locals ? text_field_module.Z.locals : void 0;
4036
- const text_area_TextArea = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ className, description, errorMessage, id: idProp, isDisabled, isInvalid, label, lines, minLines = lines ?? 1, maxLines = lines ?? 1 / 0, onChange, style, value, defaultValue, ...props }, forwardedRef) {
5316
+ const text_area_TextArea = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ ariaLabel, className, description, errorMessage, id: idProp, isDisabled, isInvalid, label, lines, minLines = lines ?? 1, maxLines = lines ?? 1 / 0, onChange, style, value, defaultValue, ...props }, forwardedRef) {
4037
5317
  const generatedId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
4038
5318
  const id = idProp ?? generatedId;
4039
5319
  const descriptionId = description ? `${id}-description` : void 0;
@@ -4083,6 +5363,7 @@ const text_area_TextArea = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.f
4083
5363
  ref: ref,
4084
5364
  "aria-describedby": describedBy,
4085
5365
  "aria-invalid": invalid || void 0,
5366
+ "aria-label": ariaLabel,
4086
5367
  className: [
4087
5368
  components_text_field_module.input,
4088
5369
  invalid ? components_text_field_module.invalid : null,
@@ -4115,6 +5396,1014 @@ const text_area_TextArea = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.f
4115
5396
  ]
4116
5397
  });
4117
5398
  });
5399
+ var number_field_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/number-field.module.css");
5400
+ var number_field_module_options = {};
5401
+ number_field_module_options.styleTagTransform = styleTagTransform_default();
5402
+ number_field_module_options.setAttributes = setAttributesWithoutAttributes_default();
5403
+ number_field_module_options.insert = insertBySelector_default().bind(null, "head");
5404
+ number_field_module_options.domAPI = styleDomAPI_default();
5405
+ number_field_module_options.insertStyleElement = insertStyleElement_default();
5406
+ injectStylesIntoStyleTag_default()(number_field_module.Z, number_field_module_options);
5407
+ const components_number_field_module = number_field_module.Z && number_field_module.Z.locals ? number_field_module.Z.locals : void 0;
5408
+ const number_field_NumberField = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ ariaLabel, defaultValue = null, description, errorMessage, id: idProp, isDisabled, isInvalid, label, max, min, onBlur, onChange, onFocus, onKeyDown, onPointerDown, step, value, ...props }, ref) {
5409
+ const generatedId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
5410
+ const id = idProp ?? generatedId;
5411
+ const descriptionId = description ? `${id}-description` : void 0;
5412
+ const errorId = errorMessage ? `${id}-error` : void 0;
5413
+ const describedBy = [
5414
+ descriptionId,
5415
+ errorId
5416
+ ].filter(Boolean).join(" ") || void 0;
5417
+ const invalid = isInvalid || !!errorMessage;
5418
+ const stepAmount = step ?? 1;
5419
+ const inputRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
5420
+ const setInputRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((node)=>{
5421
+ inputRef.current = node;
5422
+ if (!ref) return;
5423
+ if ("function" == typeof ref) {
5424
+ ref(node);
5425
+ return;
5426
+ }
5427
+ if ("current" in ref) ref.current = node;
5428
+ }, [
5429
+ ref
5430
+ ]);
5431
+ const [isFocused, setIsFocused] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
5432
+ const [isFocusVisible, setIsFocusVisible] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
5433
+ const pointerActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(false);
5434
+ const isControlled = void 0 !== value;
5435
+ const [internalNumber, setInternalNumber] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(defaultValue);
5436
+ const [displayString, setDisplayString] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(()=>{
5437
+ if (null != value) return String(value);
5438
+ if (null !== defaultValue) return String(defaultValue);
5439
+ return "";
5440
+ });
5441
+ const numericValue = isControlled ? value ?? null : internalNumber;
5442
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
5443
+ if (!isControlled || isFocused) return;
5444
+ setDisplayString(null != value ? String(value) : "");
5445
+ }, [
5446
+ isControlled,
5447
+ value,
5448
+ isFocused
5449
+ ]);
5450
+ const clampValue = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((n)=>{
5451
+ let result = n;
5452
+ if (void 0 !== min && result < min) result = min;
5453
+ if (void 0 !== max && result > max) result = max;
5454
+ return result;
5455
+ }, [
5456
+ min,
5457
+ max
5458
+ ]);
5459
+ const commit = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((next)=>{
5460
+ const clamped = null !== next ? clampValue(next) : null;
5461
+ if (!isControlled) {
5462
+ setDisplayString(null !== clamped ? String(clamped) : "");
5463
+ setInternalNumber(clamped);
5464
+ }
5465
+ onChange?.(clamped);
5466
+ }, [
5467
+ isControlled,
5468
+ clampValue,
5469
+ onChange
5470
+ ]);
5471
+ const increment = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
5472
+ commit(clampValue((numericValue ?? 0) + stepAmount));
5473
+ }, [
5474
+ commit,
5475
+ clampValue,
5476
+ numericValue,
5477
+ stepAmount
5478
+ ]);
5479
+ const decrement = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
5480
+ commit(clampValue((numericValue ?? 0) - stepAmount));
5481
+ }, [
5482
+ commit,
5483
+ clampValue,
5484
+ numericValue,
5485
+ stepAmount
5486
+ ]);
5487
+ const handleInputChange = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((raw)=>{
5488
+ setDisplayString(raw);
5489
+ if ("" === raw) {
5490
+ if (!isControlled) setInternalNumber(null);
5491
+ onChange?.(null);
5492
+ return;
5493
+ }
5494
+ const n = parseFloat(raw);
5495
+ if (!Number.isNaN(n)) {
5496
+ if (!isControlled) setInternalNumber(n);
5497
+ onChange?.(n);
5498
+ }
5499
+ }, [
5500
+ isControlled,
5501
+ onChange
5502
+ ]);
5503
+ const handleBlur = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
5504
+ setIsFocused(false);
5505
+ setIsFocusVisible(false);
5506
+ if ("" === displayString) commit(null);
5507
+ else {
5508
+ const n = parseFloat(displayString);
5509
+ commit(Number.isNaN(n) ? numericValue : n);
5510
+ }
5511
+ onBlur?.(e);
5512
+ }, [
5513
+ displayString,
5514
+ numericValue,
5515
+ commit,
5516
+ onBlur
5517
+ ]);
5518
+ const handleKeyDown = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
5519
+ const cur = numericValue ?? 0;
5520
+ if ("ArrowUp" === e.key) {
5521
+ e.preventDefault();
5522
+ increment();
5523
+ } else if ("ArrowDown" === e.key) {
5524
+ e.preventDefault();
5525
+ decrement();
5526
+ } else if ("PageUp" === e.key) {
5527
+ e.preventDefault();
5528
+ commit(clampValue(cur + 10 * stepAmount));
5529
+ } else if ("PageDown" === e.key) {
5530
+ e.preventDefault();
5531
+ commit(clampValue(cur - 10 * stepAmount));
5532
+ } else if ("Home" === e.key && void 0 !== min) {
5533
+ e.preventDefault();
5534
+ commit(min);
5535
+ } else if ("End" === e.key && void 0 !== max) {
5536
+ e.preventDefault();
5537
+ commit(max);
5538
+ }
5539
+ onKeyDown?.(e);
5540
+ }, [
5541
+ numericValue,
5542
+ stepAmount,
5543
+ min,
5544
+ max,
5545
+ commit,
5546
+ clampValue,
5547
+ increment,
5548
+ decrement,
5549
+ onKeyDown
5550
+ ]);
5551
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
5552
+ className: components_number_field_module.root,
5553
+ children: [
5554
+ label ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("label", {
5555
+ className: components_number_field_module.label,
5556
+ htmlFor: id,
5557
+ children: label
5558
+ }) : null,
5559
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
5560
+ className: [
5561
+ components_number_field_module.control,
5562
+ invalid ? components_number_field_module.invalid : null,
5563
+ isFocusVisible ? components_number_field_module.focusVisible : null
5564
+ ].filter(Boolean).join(" "),
5565
+ children: [
5566
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("input", {
5567
+ ...props,
5568
+ ref: setInputRef,
5569
+ "aria-describedby": describedBy,
5570
+ "aria-invalid": invalid || void 0,
5571
+ "aria-label": ariaLabel,
5572
+ "aria-valuemax": max,
5573
+ "aria-valuemin": min,
5574
+ "aria-valuenow": null !== numericValue ? numericValue : void 0,
5575
+ className: components_number_field_module.input,
5576
+ disabled: isDisabled,
5577
+ id: id,
5578
+ inputMode: "decimal",
5579
+ role: "spinbutton",
5580
+ type: "text",
5581
+ value: displayString,
5582
+ onPointerDown: (e)=>{
5583
+ pointerActive.current = true;
5584
+ onPointerDown?.(e);
5585
+ },
5586
+ onFocus: (e)=>{
5587
+ setIsFocused(true);
5588
+ if (!pointerActive.current) setIsFocusVisible(true);
5589
+ pointerActive.current = false;
5590
+ onFocus?.(e);
5591
+ },
5592
+ onBlur: handleBlur,
5593
+ onKeyDown: handleKeyDown,
5594
+ onChange: (e)=>handleInputChange(e.target.value)
5595
+ }),
5596
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
5597
+ className: components_number_field_module.stepper,
5598
+ children: [
5599
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
5600
+ "aria-label": "Increment",
5601
+ className: components_number_field_module.step,
5602
+ disabled: isDisabled || void 0 !== max && null !== numericValue && numericValue >= max,
5603
+ tabIndex: -1,
5604
+ type: "button",
5605
+ onClick: increment,
5606
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
5607
+ "aria-hidden": "true",
5608
+ fill: "none",
5609
+ height: "6",
5610
+ viewBox: "0 0 10 6",
5611
+ width: "10",
5612
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
5613
+ d: "M1 5L5 1L9 5",
5614
+ stroke: "currentColor",
5615
+ strokeLinecap: "round",
5616
+ strokeLinejoin: "round",
5617
+ strokeWidth: "1.5"
5618
+ })
5619
+ })
5620
+ }),
5621
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
5622
+ "aria-label": "Decrement",
5623
+ className: components_number_field_module.step,
5624
+ disabled: isDisabled || void 0 !== min && null !== numericValue && numericValue <= min,
5625
+ tabIndex: -1,
5626
+ type: "button",
5627
+ onClick: decrement,
5628
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
5629
+ "aria-hidden": "true",
5630
+ fill: "none",
5631
+ height: "6",
5632
+ viewBox: "0 0 10 6",
5633
+ width: "10",
5634
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
5635
+ d: "M1 1L5 5L9 1",
5636
+ stroke: "currentColor",
5637
+ strokeLinecap: "round",
5638
+ strokeLinejoin: "round",
5639
+ strokeWidth: "1.5"
5640
+ })
5641
+ })
5642
+ })
5643
+ ]
5644
+ })
5645
+ ]
5646
+ }),
5647
+ description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
5648
+ className: components_number_field_module.description,
5649
+ id: descriptionId,
5650
+ children: description
5651
+ }) : null,
5652
+ errorMessage ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
5653
+ className: components_number_field_module.error,
5654
+ id: errorId,
5655
+ children: errorMessage
5656
+ }) : null
5657
+ ]
5658
+ });
5659
+ });
5660
+ var search_field_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/search-field.module.css");
5661
+ var search_field_module_options = {};
5662
+ search_field_module_options.styleTagTransform = styleTagTransform_default();
5663
+ search_field_module_options.setAttributes = setAttributesWithoutAttributes_default();
5664
+ search_field_module_options.insert = insertBySelector_default().bind(null, "head");
5665
+ search_field_module_options.domAPI = styleDomAPI_default();
5666
+ search_field_module_options.insertStyleElement = insertStyleElement_default();
5667
+ injectStylesIntoStyleTag_default()(search_field_module.Z, search_field_module_options);
5668
+ const components_search_field_module = search_field_module.Z && search_field_module.Z.locals ? search_field_module.Z.locals : void 0;
5669
+ const search_field_SearchField = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ ariaLabel, description, errorMessage, id: idProp, isDisabled, isInvalid, label, onBlur, onChange, onFocus, onKeyDown, onPointerDown, value, defaultValue, ...props }, ref) {
5670
+ const generatedId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
5671
+ const id = idProp ?? generatedId;
5672
+ const descriptionId = description ? `${id}-description` : void 0;
5673
+ const errorId = errorMessage ? `${id}-error` : void 0;
5674
+ const describedBy = [
5675
+ descriptionId,
5676
+ errorId
5677
+ ].filter(Boolean).join(" ") || void 0;
5678
+ const invalid = isInvalid || !!errorMessage;
5679
+ const inputRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
5680
+ const setInputRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((node)=>{
5681
+ inputRef.current = node;
5682
+ if (!ref) return;
5683
+ if ("function" == typeof ref) {
5684
+ ref(node);
5685
+ return;
5686
+ }
5687
+ if ("current" in ref) ref.current = node;
5688
+ }, [
5689
+ ref
5690
+ ]);
5691
+ const [isFocusVisible, setIsFocusVisible] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
5692
+ const pointerActive = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(false);
5693
+ const [internalValue, setInternalValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)("string" == typeof defaultValue ? defaultValue : "");
5694
+ const isControlled = void 0 !== value;
5695
+ const currentValue = isControlled ? String(value ?? "") : internalValue;
5696
+ const hasValue = currentValue.length > 0;
5697
+ const handleChange = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((next)=>{
5698
+ if (!isControlled) setInternalValue(next);
5699
+ onChange?.(next);
5700
+ }, [
5701
+ isControlled,
5702
+ onChange
5703
+ ]);
5704
+ const handleClear = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
5705
+ handleChange("");
5706
+ inputRef.current?.focus();
5707
+ }, [
5708
+ handleChange
5709
+ ]);
5710
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("search", {
5711
+ className: components_search_field_module.root,
5712
+ children: [
5713
+ label ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("label", {
5714
+ className: components_search_field_module.label,
5715
+ htmlFor: id,
5716
+ children: label
5717
+ }) : null,
5718
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
5719
+ className: [
5720
+ components_search_field_module.control,
5721
+ invalid ? components_search_field_module.invalid : null,
5722
+ isFocusVisible ? components_search_field_module.focusVisible : null
5723
+ ].filter(Boolean).join(" "),
5724
+ children: [
5725
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
5726
+ "aria-hidden": "true",
5727
+ className: components_search_field_module.searchIcon,
5728
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("svg", {
5729
+ fill: "none",
5730
+ height: "14",
5731
+ viewBox: "0 0 14 14",
5732
+ width: "14",
5733
+ children: [
5734
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("circle", {
5735
+ cx: "6",
5736
+ cy: "6",
5737
+ r: "4.25",
5738
+ stroke: "currentColor",
5739
+ strokeWidth: "1.5"
5740
+ }),
5741
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
5742
+ d: "M9.5 9.5L12.5 12.5",
5743
+ stroke: "currentColor",
5744
+ strokeLinecap: "round",
5745
+ strokeWidth: "1.5"
5746
+ })
5747
+ ]
5748
+ })
5749
+ }),
5750
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("input", {
5751
+ ...props,
5752
+ ref: setInputRef,
5753
+ "aria-describedby": describedBy,
5754
+ "aria-invalid": invalid || void 0,
5755
+ "aria-label": ariaLabel,
5756
+ className: components_search_field_module.input,
5757
+ disabled: isDisabled,
5758
+ id: id,
5759
+ type: "search",
5760
+ value: isControlled ? value : internalValue,
5761
+ onPointerDown: (e)=>{
5762
+ pointerActive.current = true;
5763
+ onPointerDown?.(e);
5764
+ },
5765
+ onFocus: (e)=>{
5766
+ if (!pointerActive.current) setIsFocusVisible(true);
5767
+ pointerActive.current = false;
5768
+ onFocus?.(e);
5769
+ },
5770
+ onBlur: (e)=>{
5771
+ setIsFocusVisible(false);
5772
+ onBlur?.(e);
5773
+ },
5774
+ onKeyDown: (e)=>{
5775
+ if ("Escape" === e.key) {
5776
+ e.preventDefault();
5777
+ handleClear();
5778
+ }
5779
+ onKeyDown?.(e);
5780
+ },
5781
+ onChange: (e)=>handleChange(e.target.value)
5782
+ }),
5783
+ hasValue ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
5784
+ "aria-label": "Clear search",
5785
+ className: components_search_field_module.clear,
5786
+ tabIndex: -1,
5787
+ type: "button",
5788
+ onClick: handleClear,
5789
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
5790
+ "aria-hidden": "true",
5791
+ fill: "none",
5792
+ height: "12",
5793
+ viewBox: "0 0 12 12",
5794
+ width: "12",
5795
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
5796
+ d: "M2 2L10 10M10 2L2 10",
5797
+ stroke: "currentColor",
5798
+ strokeLinecap: "round",
5799
+ strokeWidth: "1.5"
5800
+ })
5801
+ })
5802
+ }) : null
5803
+ ]
5804
+ }),
5805
+ description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
5806
+ className: components_search_field_module.description,
5807
+ id: descriptionId,
5808
+ children: description
5809
+ }) : null,
5810
+ errorMessage ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
5811
+ className: components_search_field_module.error,
5812
+ id: errorId,
5813
+ children: errorMessage
5814
+ }) : null
5815
+ ]
5816
+ });
5817
+ });
5818
+ var slider_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/slider.module.css");
5819
+ var slider_module_options = {};
5820
+ slider_module_options.styleTagTransform = styleTagTransform_default();
5821
+ slider_module_options.setAttributes = setAttributesWithoutAttributes_default();
5822
+ slider_module_options.insert = insertBySelector_default().bind(null, "head");
5823
+ slider_module_options.domAPI = styleDomAPI_default();
5824
+ slider_module_options.insertStyleElement = insertStyleElement_default();
5825
+ injectStylesIntoStyleTag_default()(slider_module.Z, slider_module_options);
5826
+ const components_slider_module = slider_module.Z && slider_module.Z.locals ? slider_module.Z.locals : void 0;
5827
+ const slider_Slider = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ ariaLabel, defaultValue, description, errorMessage, id: idProp, isDisabled, isInvalid, label, max = 100, min = 0, onChange, onKeyDown, step = 1, value, ...props }, ref) {
5828
+ const generatedId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
5829
+ const id = idProp ?? generatedId;
5830
+ const descriptionId = description ? `${id}-description` : void 0;
5831
+ const errorId = errorMessage ? `${id}-error` : void 0;
5832
+ const describedBy = [
5833
+ descriptionId,
5834
+ errorId
5835
+ ].filter(Boolean).join(" ") || void 0;
5836
+ const invalid = isInvalid || !!errorMessage;
5837
+ const isControlled = void 0 !== value;
5838
+ const [internalValue, setInternalValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(defaultValue ?? min);
5839
+ const currentValue = isControlled ? value : internalValue;
5840
+ const safeRange = max > min ? max - min : 1;
5841
+ const percent = (currentValue - min) / safeRange * 100;
5842
+ const commit = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((next)=>{
5843
+ const clamped = Math.min(max, Math.max(min, next));
5844
+ if (!isControlled) setInternalValue(clamped);
5845
+ onChange?.(clamped);
5846
+ }, [
5847
+ isControlled,
5848
+ min,
5849
+ max,
5850
+ onChange
5851
+ ]);
5852
+ const handleChange = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
5853
+ commit(e.target.valueAsNumber);
5854
+ }, [
5855
+ commit
5856
+ ]);
5857
+ const handleKeyDown = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
5858
+ const cur = currentValue;
5859
+ const large = 10 * step;
5860
+ if ("ArrowRight" === e.key || "ArrowUp" === e.key) {
5861
+ e.preventDefault();
5862
+ commit(cur + step);
5863
+ } else if ("ArrowLeft" === e.key || "ArrowDown" === e.key) {
5864
+ e.preventDefault();
5865
+ commit(cur - step);
5866
+ } else if ("PageUp" === e.key) {
5867
+ e.preventDefault();
5868
+ commit(cur + large);
5869
+ } else if ("PageDown" === e.key) {
5870
+ e.preventDefault();
5871
+ commit(cur - large);
5872
+ } else if ("Home" === e.key) {
5873
+ e.preventDefault();
5874
+ commit(min);
5875
+ } else if ("End" === e.key) {
5876
+ e.preventDefault();
5877
+ commit(max);
5878
+ }
5879
+ onKeyDown?.(e);
5880
+ }, [
5881
+ currentValue,
5882
+ step,
5883
+ min,
5884
+ max,
5885
+ commit,
5886
+ onKeyDown
5887
+ ]);
5888
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
5889
+ className: components_slider_module.root,
5890
+ children: [
5891
+ label ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("label", {
5892
+ className: components_slider_module.label,
5893
+ htmlFor: id,
5894
+ children: label
5895
+ }) : null,
5896
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("input", {
5897
+ ...props,
5898
+ ref: ref,
5899
+ "aria-describedby": describedBy,
5900
+ "aria-invalid": invalid || void 0,
5901
+ "aria-label": ariaLabel,
5902
+ "aria-valuemax": max,
5903
+ "aria-valuemin": min,
5904
+ "aria-valuenow": currentValue,
5905
+ className: [
5906
+ components_slider_module.track,
5907
+ invalid ? components_slider_module.invalid : null
5908
+ ].filter(Boolean).join(" "),
5909
+ disabled: isDisabled,
5910
+ id: id,
5911
+ max: max,
5912
+ min: min,
5913
+ step: step,
5914
+ style: {
5915
+ "--slider-percent": `${percent}%`
5916
+ },
5917
+ type: "range",
5918
+ value: currentValue,
5919
+ onChange: handleChange,
5920
+ onKeyDown: handleKeyDown
5921
+ }),
5922
+ description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
5923
+ className: components_slider_module.description,
5924
+ id: descriptionId,
5925
+ children: description
5926
+ }) : null,
5927
+ errorMessage ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
5928
+ className: components_slider_module.error,
5929
+ id: errorId,
5930
+ children: errorMessage
5931
+ }) : null
5932
+ ]
5933
+ });
5934
+ });
5935
+ var table_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/table.module.css");
5936
+ var table_module_options = {};
5937
+ table_module_options.styleTagTransform = styleTagTransform_default();
5938
+ table_module_options.setAttributes = setAttributesWithoutAttributes_default();
5939
+ table_module_options.insert = insertBySelector_default().bind(null, "head");
5940
+ table_module_options.domAPI = styleDomAPI_default();
5941
+ table_module_options.insertStyleElement = insertStyleElement_default();
5942
+ injectStylesIntoStyleTag_default()(table_module.Z, table_module_options);
5943
+ const components_table_module = table_module.Z && table_module.Z.locals ? table_module.Z.locals : void 0;
5944
+ const TableContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)(null);
5945
+ function useTableContext() {
5946
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(TableContext);
5947
+ if (!ctx) throw new Error("Table sub-components must be used inside <Table>");
5948
+ return ctx;
5949
+ }
5950
+ function Table({ ariaLabel, children, selectionMode = "none", selectedKeys: selectedKeysProp, defaultSelectedKeys, onSelectionChange, sortColumn: sortColumnProp, defaultSortColumn, sortDirection: sortDirectionProp, defaultSortDirection, onSortChange }) {
5951
+ const isGrid = "none" !== selectionMode;
5952
+ const isControlledSelection = void 0 !== selectedKeysProp;
5953
+ const isControlledSort = void 0 !== sortColumnProp;
5954
+ const [internalSelectedKeys, setInternalSelectedKeys] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(()=>new Set(defaultSelectedKeys));
5955
+ const selectedKeys = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>isControlledSelection ? new Set(selectedKeysProp) : internalSelectedKeys, [
5956
+ isControlledSelection,
5957
+ selectedKeysProp,
5958
+ internalSelectedKeys
5959
+ ]);
5960
+ const toggleKey = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((key)=>{
5961
+ const next = new Set(selectedKeys);
5962
+ if ("single" === selectionMode) {
5963
+ if (next.has(key)) next.clear();
5964
+ else {
5965
+ next.clear();
5966
+ next.add(key);
5967
+ }
5968
+ } else if (next.has(key)) next.delete(key);
5969
+ else next.add(key);
5970
+ if (!isControlledSelection) setInternalSelectedKeys(next);
5971
+ onSelectionChange?.(next);
5972
+ }, [
5973
+ selectedKeys,
5974
+ selectionMode,
5975
+ isControlledSelection,
5976
+ onSelectionChange
5977
+ ]);
5978
+ const [internalSortColumn, setInternalSortColumn] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(defaultSortColumn);
5979
+ const [internalSortDirection, setInternalSortDirection] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(defaultSortDirection);
5980
+ const activeSortColumn = isControlledSort ? sortColumnProp : internalSortColumn;
5981
+ const activeSortDirection = isControlledSort ? sortDirectionProp : internalSortDirection;
5982
+ const toggleSort = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((column)=>{
5983
+ const newDir = column === activeSortColumn && "ascending" === activeSortDirection ? "descending" : "ascending";
5984
+ if (!isControlledSort) {
5985
+ setInternalSortColumn(column);
5986
+ setInternalSortDirection(newDir);
5987
+ }
5988
+ onSortChange?.(column, newDir);
5989
+ }, [
5990
+ activeSortColumn,
5991
+ activeSortDirection,
5992
+ isControlledSort,
5993
+ onSortChange
5994
+ ]);
5995
+ const tableRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
5996
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
5997
+ if (!isGrid || !tableRef.current) return;
5998
+ const cells = tableRef.current.querySelectorAll("[role='gridcell']");
5999
+ const hasTabStop = Array.from(cells).some((c)=>c.tabIndex >= 0);
6000
+ if (!hasTabStop && cells[0]) cells[0].tabIndex = 0;
6001
+ }, [
6002
+ isGrid
6003
+ ]);
6004
+ const focusCell = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((cell)=>{
6005
+ if (!cell) return;
6006
+ tableRef.current?.querySelectorAll("[role='gridcell']").forEach((c)=>{
6007
+ c.tabIndex = -1;
6008
+ });
6009
+ cell.tabIndex = 0;
6010
+ cell.focus();
6011
+ }, []);
6012
+ const getBodyRows = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>Array.from(tableRef.current?.querySelectorAll("tbody > tr") ?? []), []);
6013
+ const getBodyCells = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>getBodyRows().map((row)=>Array.from(row.querySelectorAll("[role='gridcell']"))), [
6014
+ getBodyRows
6015
+ ]);
6016
+ const handleKeyDown = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
6017
+ if (!isGrid) return;
6018
+ const cells = getBodyCells();
6019
+ if (0 === cells.length) return;
6020
+ const focused = document.activeElement instanceof HTMLElement ? document.activeElement : null;
6021
+ const rowIdx = cells.findIndex((row)=>row.some((c)=>c === focused || c.contains(focused)));
6022
+ if (-1 === rowIdx) return;
6023
+ const row = cells[rowIdx];
6024
+ const colIdx = row.findIndex((c)=>c === focused || c.contains(focused));
6025
+ if (-1 === colIdx) return;
6026
+ if ("ArrowRight" === e.key) {
6027
+ e.preventDefault();
6028
+ focusCell(row[colIdx + 1]);
6029
+ } else if ("ArrowLeft" === e.key) {
6030
+ e.preventDefault();
6031
+ focusCell(row[colIdx - 1]);
6032
+ } else if ("ArrowDown" === e.key) {
6033
+ e.preventDefault();
6034
+ focusCell(cells[rowIdx + 1]?.[colIdx]);
6035
+ } else if ("ArrowUp" === e.key) {
6036
+ e.preventDefault();
6037
+ focusCell(cells[rowIdx - 1]?.[colIdx]);
6038
+ } else if ("Home" === e.key) {
6039
+ e.preventDefault();
6040
+ focusCell(e.ctrlKey ? cells[0]?.[0] : row[0]);
6041
+ } else if ("End" === e.key) {
6042
+ e.preventDefault();
6043
+ const lastRow = cells[cells.length - 1];
6044
+ focusCell(e.ctrlKey ? lastRow?.[lastRow.length - 1] : row[row.length - 1]);
6045
+ } else if (" " === e.key) {
6046
+ e.preventDefault();
6047
+ const bodyRows = getBodyRows();
6048
+ const key = bodyRows[rowIdx]?.dataset.key;
6049
+ if (key) toggleKey(key);
6050
+ }
6051
+ }, [
6052
+ isGrid,
6053
+ getBodyCells,
6054
+ getBodyRows,
6055
+ focusCell,
6056
+ toggleKey
6057
+ ]);
6058
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
6059
+ selectionMode,
6060
+ selectedKeys,
6061
+ toggleKey,
6062
+ sortColumn: activeSortColumn,
6063
+ sortDirection: activeSortDirection,
6064
+ toggleSort,
6065
+ isGrid
6066
+ }), [
6067
+ selectionMode,
6068
+ selectedKeys,
6069
+ toggleKey,
6070
+ activeSortColumn,
6071
+ activeSortDirection,
6072
+ toggleSort,
6073
+ isGrid
6074
+ ]);
6075
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TableContext.Provider, {
6076
+ value: ctx,
6077
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
6078
+ className: components_table_module.wrapper,
6079
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("table", {
6080
+ ref: tableRef,
6081
+ "aria-label": ariaLabel,
6082
+ className: components_table_module.table,
6083
+ role: isGrid ? "grid" : "table",
6084
+ onKeyDown: handleKeyDown,
6085
+ children: children
6086
+ })
6087
+ })
6088
+ });
6089
+ }
6090
+ function TableHeader({ children }) {
6091
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("thead", {
6092
+ className: components_table_module.thead,
6093
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("tr", {
6094
+ children: children
6095
+ })
6096
+ });
6097
+ }
6098
+ function TableColumn({ id, isSortable, children }) {
6099
+ const { sortColumn, sortDirection, toggleSort } = useTableContext();
6100
+ const isCurrentSort = Boolean(isSortable && void 0 !== id && sortColumn === id);
6101
+ const ariaSort = isSortable ? isCurrentSort && null != sortDirection ? sortDirection : "none" : void 0;
6102
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("th", {
6103
+ scope: "col",
6104
+ className: components_table_module.th,
6105
+ "aria-sort": ariaSort,
6106
+ children: isSortable && void 0 !== id ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("button", {
6107
+ className: components_table_module.sortButton,
6108
+ type: "button",
6109
+ onClick: ()=>toggleSort(id),
6110
+ children: [
6111
+ children,
6112
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
6113
+ className: components_table_module.sortIcon,
6114
+ "aria-hidden": "true",
6115
+ children: isCurrentSort && "ascending" === sortDirection ? "↑" : isCurrentSort && "descending" === sortDirection ? "↓" : "↕"
6116
+ })
6117
+ ]
6118
+ }) : children
6119
+ });
6120
+ }
6121
+ function TableBody({ children }) {
6122
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("tbody", {
6123
+ className: components_table_module.tbody,
6124
+ children: children
6125
+ });
6126
+ }
6127
+ function TableRow({ id, children }) {
6128
+ const { isGrid, selectedKeys } = useTableContext();
6129
+ const isSelected = void 0 !== id && selectedKeys.has(id);
6130
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("tr", {
6131
+ className: [
6132
+ components_table_module.tr,
6133
+ isSelected ? components_table_module.selected : null
6134
+ ].filter(Boolean).join(" "),
6135
+ "data-key": id,
6136
+ "data-selected": isSelected || void 0,
6137
+ "aria-selected": isGrid ? isSelected : void 0,
6138
+ children: children
6139
+ });
6140
+ }
6141
+ function TableCell({ children }) {
6142
+ const { isGrid } = useTableContext();
6143
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("td", {
6144
+ className: components_table_module.td,
6145
+ role: isGrid ? "gridcell" : void 0,
6146
+ tabIndex: isGrid ? -1 : void 0,
6147
+ children: children
6148
+ });
6149
+ }
6150
+ var tag_group_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/tag-group.module.css");
6151
+ var tag_group_module_options = {};
6152
+ tag_group_module_options.styleTagTransform = styleTagTransform_default();
6153
+ tag_group_module_options.setAttributes = setAttributesWithoutAttributes_default();
6154
+ tag_group_module_options.insert = insertBySelector_default().bind(null, "head");
6155
+ tag_group_module_options.domAPI = styleDomAPI_default();
6156
+ tag_group_module_options.insertStyleElement = insertStyleElement_default();
6157
+ injectStylesIntoStyleTag_default()(tag_group_module.Z, tag_group_module_options);
6158
+ const components_tag_group_module = tag_group_module.Z && tag_group_module.Z.locals ? tag_group_module.Z.locals : void 0;
6159
+ const TagGroupContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)(null);
6160
+ function useTagGroupContext() {
6161
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(TagGroupContext);
6162
+ if (!ctx) throw new Error("<Tag> must be used inside <TagGroup>");
6163
+ return ctx;
6164
+ }
6165
+ function TagGroup({ label, description, isInvalid, isDisabled = false, errorMessage, selectionMode = "multiple", selectedKeys: selectedKeysProp, defaultSelectedKeys, onSelectionChange, onRemove, ariaLabel, children }) {
6166
+ const uid = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
6167
+ const labelId = label ? `${uid}-label` : void 0;
6168
+ const descriptionId = description ? `${uid}-description` : void 0;
6169
+ const errorId = errorMessage ? `${uid}-error` : void 0;
6170
+ const invalid = isInvalid || !!errorMessage;
6171
+ const isControlled = void 0 !== selectedKeysProp;
6172
+ const [uncontrolledKeys, setUncontrolledKeys] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(()=>new Set(defaultSelectedKeys));
6173
+ const selectedKeys = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>isControlled ? new Set(selectedKeysProp) : uncontrolledKeys, [
6174
+ isControlled,
6175
+ selectedKeysProp,
6176
+ uncontrolledKeys
6177
+ ]);
6178
+ const isSelectable = "none" !== selectionMode;
6179
+ const toggleSelection = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((tagId)=>{
6180
+ if (!isSelectable || isDisabled) return;
6181
+ const next = new Set(selectedKeys);
6182
+ if ("single" === selectionMode) {
6183
+ if (next.has(tagId)) next.clear();
6184
+ else {
6185
+ next.clear();
6186
+ next.add(tagId);
6187
+ }
6188
+ } else if (next.has(tagId)) next.delete(tagId);
6189
+ else next.add(tagId);
6190
+ if (!isControlled) setUncontrolledKeys(next);
6191
+ onSelectionChange?.(next);
6192
+ }, [
6193
+ isSelectable,
6194
+ selectionMode,
6195
+ isDisabled,
6196
+ selectedKeys,
6197
+ isControlled,
6198
+ onSelectionChange
6199
+ ]);
6200
+ const hasRemove = void 0 !== onRemove;
6201
+ const removeTag = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((tagId)=>{
6202
+ if (!onRemove || isDisabled) return;
6203
+ onRemove(new Set([
6204
+ tagId
6205
+ ]));
6206
+ }, [
6207
+ onRemove,
6208
+ isDisabled
6209
+ ]);
6210
+ const listRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
6211
+ const getEnabledTags = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>Array.from(listRef.current?.querySelectorAll(hasRemove ? '[role="row"]:not([aria-disabled="true"])' : '[role="option"]:not([aria-disabled="true"])') ?? []), [
6212
+ hasRemove
6213
+ ]);
6214
+ (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
6215
+ if (!listRef.current) return;
6216
+ const tags = getEnabledTags();
6217
+ const hasTabStop = tags.some((t)=>t.tabIndex >= 0);
6218
+ if (!hasTabStop && tags[0]) tags[0].tabIndex = 0;
6219
+ }, [
6220
+ getEnabledTags
6221
+ ]);
6222
+ const focusTag = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((el)=>{
6223
+ if (!el) return;
6224
+ getEnabledTags().forEach((t)=>{
6225
+ t.tabIndex = -1;
6226
+ });
6227
+ el.tabIndex = 0;
6228
+ el.focus();
6229
+ }, [
6230
+ getEnabledTags
6231
+ ]);
6232
+ const dismissTag = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((tagId)=>{
6233
+ if (!onRemove || isDisabled) return;
6234
+ const tags = getEnabledTags();
6235
+ const currentRow = tags.find((t)=>t.dataset["id"] === tagId);
6236
+ const index = currentRow ? tags.indexOf(currentRow) : -1;
6237
+ const nextEl = tags[index + 1] ?? tags[index - 1];
6238
+ removeTag(tagId);
6239
+ if (nextEl) focusTag(nextEl);
6240
+ }, [
6241
+ onRemove,
6242
+ isDisabled,
6243
+ getEnabledTags,
6244
+ removeTag,
6245
+ focusTag
6246
+ ]);
6247
+ const handleKeyDown = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((e)=>{
6248
+ const tags = getEnabledTags();
6249
+ if (0 === tags.length) return;
6250
+ const focused = document.activeElement instanceof HTMLElement ? document.activeElement : null;
6251
+ const index = tags.findIndex((t)=>t === focused);
6252
+ const lastIndex = tags.length - 1;
6253
+ if ("ArrowRight" === e.key || "ArrowDown" === e.key) {
6254
+ e.preventDefault();
6255
+ focusTag(-1 === index ? tags[0] : tags[(index + 1) % tags.length]);
6256
+ } else if ("ArrowLeft" === e.key || "ArrowUp" === e.key) {
6257
+ e.preventDefault();
6258
+ focusTag(-1 === index ? tags[lastIndex] : tags[(index - 1 + tags.length) % tags.length]);
6259
+ } else if ("Home" === e.key) {
6260
+ e.preventDefault();
6261
+ focusTag(tags[0]);
6262
+ } else if ("End" === e.key) {
6263
+ e.preventDefault();
6264
+ focusTag(tags[lastIndex]);
6265
+ } else if ((" " === e.key || "Enter" === e.key) && hasRemove && isSelectable && -1 !== index) {
6266
+ e.preventDefault();
6267
+ const tagId = focused?.dataset["id"];
6268
+ if (tagId) toggleSelection(tagId);
6269
+ } else if (("Delete" === e.key || "Backspace" === e.key) && onRemove) {
6270
+ e.preventDefault();
6271
+ const tagId = focused?.dataset["id"];
6272
+ if (!tagId) return;
6273
+ const nextEl = tags[index + 1] ?? tags[index - 1];
6274
+ removeTag(tagId);
6275
+ if (nextEl) focusTag(nextEl);
6276
+ }
6277
+ }, [
6278
+ getEnabledTags,
6279
+ focusTag,
6280
+ hasRemove,
6281
+ isSelectable,
6282
+ toggleSelection,
6283
+ onRemove,
6284
+ removeTag
6285
+ ]);
6286
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
6287
+ selectedKeys,
6288
+ isDisabled,
6289
+ selectionMode,
6290
+ hasRemove,
6291
+ toggleSelection,
6292
+ removeTag,
6293
+ dismissTag
6294
+ }), [
6295
+ selectedKeys,
6296
+ isDisabled,
6297
+ selectionMode,
6298
+ hasRemove,
6299
+ toggleSelection,
6300
+ removeTag,
6301
+ dismissTag
6302
+ ]);
6303
+ const describedBy = [
6304
+ descriptionId,
6305
+ errorId
6306
+ ].filter(Boolean).join(" ") || void 0;
6307
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TagGroupContext.Provider, {
6308
+ value: ctx,
6309
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
6310
+ className: components_tag_group_module.root,
6311
+ children: [
6312
+ label ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
6313
+ className: components_tag_group_module.label,
6314
+ id: labelId,
6315
+ children: label
6316
+ }) : null,
6317
+ description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
6318
+ className: components_tag_group_module.description,
6319
+ id: descriptionId,
6320
+ children: description
6321
+ }) : null,
6322
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
6323
+ ref: listRef,
6324
+ role: hasRemove ? "grid" : isSelectable ? "listbox" : void 0,
6325
+ "aria-multiselectable": "multiple" === selectionMode ? true : void 0,
6326
+ "aria-label": label ? void 0 : ariaLabel,
6327
+ "aria-labelledby": labelId,
6328
+ "aria-describedby": describedBy,
6329
+ "aria-invalid": invalid || void 0,
6330
+ "aria-disabled": isDisabled || void 0,
6331
+ className: components_tag_group_module.tags,
6332
+ onKeyDown: isSelectable || hasRemove ? handleKeyDown : void 0,
6333
+ children: children
6334
+ }),
6335
+ errorMessage ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
6336
+ className: components_tag_group_module.error,
6337
+ id: errorId,
6338
+ children: errorMessage
6339
+ }) : null
6340
+ ]
6341
+ })
6342
+ });
6343
+ }
6344
+ function tag_group_Tag({ id, isDisabled: isDisabledProp, children }) {
6345
+ const ctx = useTagGroupContext();
6346
+ const isDisabled = isDisabledProp ?? ctx.isDisabled;
6347
+ const isSelected = ctx.selectedKeys.has(id);
6348
+ const isSelectable = "none" !== ctx.selectionMode;
6349
+ const cls = [
6350
+ components_tag_group_module.tag,
6351
+ isSelected && isSelectable ? components_tag_group_module.selected : "",
6352
+ isDisabled ? components_tag_group_module.disabled : ""
6353
+ ].filter(Boolean).join(" ");
6354
+ if (ctx.hasRemove) {
6355
+ const dismissLabel = `Remove ${"string" == typeof children ? children : id}`;
6356
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
6357
+ "aria-disabled": isDisabled || void 0,
6358
+ "aria-selected": isSelectable ? isSelected : void 0,
6359
+ className: cls,
6360
+ "data-id": id,
6361
+ "data-selectable": isSelectable && !isDisabled ? "" : void 0,
6362
+ onClick: isSelectable && !isDisabled ? ()=>ctx.toggleSelection(id) : void 0,
6363
+ role: "row",
6364
+ tabIndex: -1,
6365
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
6366
+ role: "gridcell",
6367
+ className: components_tag_group_module.tagCell,
6368
+ children: [
6369
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
6370
+ children: children
6371
+ }),
6372
+ isDisabled ? null : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
6373
+ "aria-label": dismissLabel,
6374
+ className: components_tag_group_module.dismiss,
6375
+ onClick: (e)=>{
6376
+ e.stopPropagation();
6377
+ ctx.dismissTag(id);
6378
+ },
6379
+ tabIndex: -1,
6380
+ type: "button",
6381
+ children: "\xd7"
6382
+ })
6383
+ ]
6384
+ })
6385
+ });
6386
+ }
6387
+ if (!isSelectable) return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
6388
+ className: cls,
6389
+ "data-id": id,
6390
+ "data-disabled": isDisabled || void 0,
6391
+ children: children
6392
+ });
6393
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
6394
+ "aria-disabled": isDisabled || void 0,
6395
+ "aria-selected": isSelected,
6396
+ className: cls,
6397
+ "data-id": id,
6398
+ onClick: ()=>{
6399
+ if (!isDisabled) ctx.toggleSelection(id);
6400
+ },
6401
+ role: "option",
6402
+ tabIndex: -1,
6403
+ type: "button",
6404
+ children: children
6405
+ });
6406
+ }
4118
6407
  const text_field_TextField = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ ariaLabel, description, errorMessage, icon: Icon, id: idProp, isClearable = false, isDisabled, isInvalid, isReadOnly, label, onBlur, onClear, onChange, onFocus, onKeyDown, onPointerDown, variant = "default", ...props }, ref) {
4119
6408
  const generatedId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
4120
6409
  const id = idProp ?? generatedId;
@@ -4372,4 +6661,4 @@ function Ox0Provider({ children, colorScheme, density, locale, messages, navigat
4372
6661
  })
4373
6662
  });
4374
6663
  }
4375
- export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, 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, code_Code as Code, code_block_CodeBlock as CodeBlock, combobox_Combobox as Combobox, Dialog, disclosure_triangle_DisclosureTriangle as DisclosureTriangle, divider_Divider as Divider, grid_Grid as Grid, heading_Heading as Heading, icon_button_IconButton as IconButton, icon_label_IconLabel as IconLabel, inline_Inline as Inline, keyboard_Keyboard as Keyboard, label_Label as Label, link_Link as Link, Menu, numeric_Numeric as Numeric, Ox0Provider, Popover, PopoverContent, PopoverTrigger, radio_group_Radio as Radio, radio_group_RadioGroup as RadioGroup, select_Select as Select, skeleton_Skeleton as Skeleton, spinner_Spinner as Spinner, split_Split as Split, stack_Stack as Stack, surface_Surface as Surface, switch_Switch as Switch, Tab, TabList, TabPanel, Tabs, text_Text as Text, text_area_TextArea as TextArea, text_field_TextField as TextField, ToastProvider, Tooltip, TooltipContent, TooltipTrigger, createTextStyles, defaultUiMessages, useBorders, useFlexItem, useGridItem, usePlacement, useSizing, useSpacing, useSurface, useToast };
6664
+ export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, badge_Badge as Badge, banner_Banner as Banner, box_Box as Box, BreadcrumbItem, Breadcrumbs, 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, code_Code as Code, code_block_CodeBlock as CodeBlock, combobox_Combobox as Combobox, Dialog, disclosure_triangle_DisclosureTriangle as DisclosureTriangle, divider_Divider as Divider, field_group_FieldGroup as FieldGroup, grid_Grid as Grid, checkbox_group_GroupCheckbox as GroupCheckbox, 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, ListBox, ListBoxFilter, ListItem, ListItemDivider, ListItemGroup, ListItemStatic, Menu, MenuItem, MenuSection, MenuSeparator, MenuSubTrigger, number_field_NumberField as NumberField, numeric_Numeric as Numeric, Ox0Provider, Popover, PopoverContent, PopoverTrigger, radio_group_Radio as Radio, radio_group_RadioGroup as RadioGroup, search_field_SearchField as SearchField, select_Select as Select, skeleton_Skeleton as Skeleton, slider_Slider as Slider, spinner_Spinner as Spinner, split_Split as Split, stack_Stack as Stack, surface_Surface as Surface, switch_Switch as Switch, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, tag_group_Tag as Tag, TagGroup, text_Text as Text, text_area_TextArea as TextArea, text_field_TextField as TextField, ToastProvider, Tooltip, TooltipContent, TooltipTrigger, createTextStyles, defaultUiMessages, useBorders, useFlexItem, useGridItem, useListItemState, usePlacement, useSizing, useSpacing, useSurface, useToast };