xmlui 0.10.18 → 0.10.20

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 (125) hide show
  1. package/dist/lib/{apiInterceptorWorker-DPgtUtdA.mjs → apiInterceptorWorker-QiltRtq1.mjs} +1 -1
  2. package/dist/lib/{index-Cy6Emsex.mjs → index-Ckhnrf1F.mjs} +1093 -714
  3. package/dist/lib/index.css +1 -1
  4. package/dist/{metadata/initMock-D0wDKF_I.mjs → lib/initMock-qnCFw6Zc.mjs} +25 -15
  5. package/dist/lib/language-server-web-worker.mjs +1 -1
  6. package/dist/lib/language-server.mjs +1 -1
  7. package/dist/lib/{metadata-utils-CtY0QcvH.mjs → metadata-utils-BTIt1_wE.mjs} +1 -1
  8. package/dist/lib/{server-common-Cine5nRR.mjs → server-common-DYZtsdM7.mjs} +51 -14
  9. package/dist/lib/{transform-bHBjkKSL.mjs → transform-Tooy42EB.mjs} +16 -18
  10. package/dist/lib/xmlui-parser.mjs +2 -2
  11. package/dist/lib/{xmlui-serializer-DB6BLiXK.mjs → xmlui-serializer-uCYa8_tZ.mjs} +1 -1
  12. package/dist/lib/xmlui.d.ts +11 -3
  13. package/dist/lib/xmlui.mjs +2 -2
  14. package/dist/metadata/{apiInterceptorWorker-BmKP8bnq.mjs → apiInterceptorWorker-Dql7QGw2.mjs} +1 -1
  15. package/dist/metadata/{collectedComponentMetadata-CB63ngkU.mjs → collectedComponentMetadata-Dg7P-zOz.mjs} +1071 -701
  16. package/dist/{lib/initMock-B-rmnC-t.mjs → metadata/initMock-ZyyFNOpL.mjs} +25 -15
  17. package/dist/metadata/style.css +1 -1
  18. package/dist/metadata/xmlui-metadata.mjs +1 -1
  19. package/dist/metadata/xmlui-metadata.umd.js +3 -3
  20. package/dist/scripts/package.json +1 -1
  21. package/dist/scripts/src/components/Animation/AnimationNative.js +28 -28
  22. package/dist/scripts/src/components/App/App.spec.js +17 -17
  23. package/dist/scripts/src/components/AppState/AppState.js +3 -2
  24. package/dist/scripts/src/components/AppState/AppState.spec.js +26 -2
  25. package/dist/scripts/src/components/AppState/AppStateNative.js +3 -4
  26. package/dist/scripts/src/components/AutoComplete/AutoComplete.js +15 -10
  27. package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +25 -4
  28. package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +4 -4
  29. package/dist/scripts/src/components/Carousel/Carousel.spec.js +214 -0
  30. package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +5 -0
  31. package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +1 -1
  32. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +2 -0
  33. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +193 -0
  34. package/dist/scripts/src/components/DateInput/DateInput.spec.js +28 -23
  35. package/dist/scripts/src/components/DatePicker/DatePicker.js +14 -9
  36. package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +21 -18
  37. package/dist/scripts/src/components/DatePicker/DatePickerNative.js +24 -21
  38. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +3 -3
  39. package/dist/scripts/src/components/FileInput/FileInput.spec.js +7 -0
  40. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +4 -13
  41. package/dist/scripts/src/components/Form/Form.spec.js +25 -9
  42. package/dist/scripts/src/components/Form/FormNative.js +7 -4
  43. package/dist/scripts/src/components/FormItem/FormItem.js +3 -1
  44. package/dist/scripts/src/components/FormItem/FormItem.spec.js +5 -14
  45. package/dist/scripts/src/components/FormItem/FormItemNative.js +12 -8
  46. package/dist/scripts/src/components/FormItem/Validations.js +2 -2
  47. package/dist/scripts/src/components/Icon/Icon.js +1 -1
  48. package/dist/scripts/src/components/IconRegistryContext.js +1 -1
  49. package/dist/scripts/src/components/List/ListNative.js +2 -2
  50. package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +3 -12
  51. package/dist/scripts/src/components/ModalDialog/ModalDialog.js +2 -2
  52. package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +6 -3
  53. package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +1 -1
  54. package/dist/scripts/src/components/NestedApp/NestedAppNative.js +3 -3
  55. package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +7 -2
  56. package/dist/scripts/src/components/Pagination/Pagination.spec.js +5 -0
  57. package/dist/scripts/src/components/Pagination/PaginationNative.js +1 -3
  58. package/dist/scripts/src/components/Queue/Queue.spec.js +45 -47
  59. package/dist/scripts/src/components/Queue/QueueNative.js +1 -1
  60. package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +14 -5
  61. package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +1 -1
  62. package/dist/scripts/src/components/Select/MultiSelectOption.js +42 -0
  63. package/dist/scripts/src/components/Select/Select.js +3 -3
  64. package/dist/scripts/src/components/Select/Select.spec.js +286 -217
  65. package/dist/scripts/src/components/Select/SelectContext.js +8 -1
  66. package/dist/scripts/src/components/Select/SelectNative.js +134 -142
  67. package/dist/scripts/src/components/Select/SelectOption.js +34 -0
  68. package/dist/scripts/src/components/Select/SimpleSelect.js +57 -0
  69. package/dist/scripts/src/components/Slider/Slider.spec.js +7 -0
  70. package/dist/scripts/src/components/Spinner/Spinner.spec.js +1 -1
  71. package/dist/scripts/src/components/Switch/Switch.spec.js +24 -17
  72. package/dist/scripts/src/components/Table/Table.js +11 -1
  73. package/dist/scripts/src/components/Table/Table.spec.js +272 -0
  74. package/dist/scripts/src/components/Table/TableNative.js +162 -5
  75. package/dist/scripts/src/components/Table/useRowSelection.js +14 -23
  76. package/dist/scripts/src/components/TextArea/TextArea.spec.js +59 -8
  77. package/dist/scripts/src/components/TextBox/TextBox.spec.js +7 -0
  78. package/dist/scripts/src/components/Theme/Theme.js +2 -1
  79. package/dist/scripts/src/components/Theme/Theme.spec.js +266 -0
  80. package/dist/scripts/src/components/Theme/ThemeNative.js +8 -1
  81. package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +47 -40
  82. package/dist/scripts/src/components/TimeInput/TimeInputNative.js +6 -20
  83. package/dist/scripts/src/components/Toggle/Toggle.js +3 -1
  84. package/dist/scripts/src/components/Tree/TreeNative.js +9 -11
  85. package/dist/scripts/src/components-core/InspectorContext.js +1 -1
  86. package/dist/scripts/src/components-core/StandaloneApp.js +6 -8
  87. package/dist/scripts/src/components-core/action/FileUploadAction.js +1 -1
  88. package/dist/scripts/src/components-core/behaviors/BehaviorContext.js +50 -0
  89. package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +6 -1
  90. package/dist/scripts/src/components-core/interception/ApiInterceptor.js +9 -11
  91. package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +3 -3
  92. package/dist/scripts/src/components-core/interception/Backend.js +1 -1
  93. package/dist/scripts/src/components-core/interception/IndexedDb.js +64 -66
  94. package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +2 -2
  95. package/dist/scripts/src/components-core/loader/DataLoader.js +6 -14
  96. package/dist/scripts/src/components-core/loader/Loader.js +11 -11
  97. package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +4 -2
  98. package/dist/scripts/src/components-core/loader/PageableLoader.js +10 -9
  99. package/dist/scripts/src/components-core/rendering/AppContent.js +1 -7
  100. package/dist/scripts/src/components-core/rendering/ErrorBoundary.js +1 -1
  101. package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +1 -1
  102. package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +180 -186
  103. package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +6 -6
  104. package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +2 -2
  105. package/dist/scripts/src/components-core/utils/actionUtils.js +1 -1
  106. package/dist/scripts/src/components-core/utils/hooks.js +1 -1
  107. package/dist/scripts/src/components-core/utils/misc.js +4 -4
  108. package/dist/scripts/src/components-core/xmlui-parser.js +47 -31
  109. package/dist/scripts/src/language-server/server-common.js +25 -24
  110. package/dist/scripts/src/language-server/services/common/lsp-utils.js +2 -2
  111. package/dist/scripts/src/language-server/services/completion.js +20 -2
  112. package/dist/scripts/src/language-server/services/diagnostic.js +1 -1
  113. package/dist/scripts/src/language-server/services/hover.js +2 -2
  114. package/dist/scripts/src/parsers/common/utils.js +2 -2
  115. package/dist/scripts/src/parsers/scripting/Lexer.js +21 -15
  116. package/dist/scripts/src/parsers/scripting/Parser.js +8 -9
  117. package/dist/scripts/src/parsers/style-parser/StyleLexer.js +22 -22
  118. package/dist/scripts/src/parsers/style-parser/StyleParser.js +70 -68
  119. package/dist/scripts/src/testing/ComponentDrivers.js +20 -39
  120. package/dist/scripts/src/testing/component-test-helpers.js +34 -50
  121. package/dist/scripts/src/testing/fixtures.js +114 -113
  122. package/dist/scripts/src/testing/themed-app-test-helpers.js +7 -13
  123. package/dist/standalone/xmlui-standalone.es.d.ts +11 -3
  124. package/dist/standalone/xmlui-standalone.umd.js +34 -34
  125. package/package.json +1 -1
@@ -23,9 +23,8 @@ import * as dropzone from "react-dropzone";
23
23
  import produce, { createDraft, finishDraft, enableMapSet } from "immer";
24
24
  import memoizeOne from "memoize-one";
25
25
  import { parseRegExpLiteral } from "@eslint-community/regexpp";
26
- import { Root, Trigger, Icon as Icon$m, Portal, Content, ScrollUpButton, SelectViewport, ScrollDownButton, Item as Item$1, ItemText, ItemIndicator, SelectItemText } from "@radix-ui/react-select";
27
- import { Command, CommandInput, CommandList, CommandEmpty, CommandItem } from "cmdk";
28
26
  import { FocusScope } from "@radix-ui/react-focus-scope";
27
+ import { Item as Item$1, ItemText, ItemIndicator, Root, Trigger, Portal, Content, ScrollUpButton, Viewport, ScrollDownButton, SelectItemText } from "@radix-ui/react-select";
29
28
  import * as InnerRadioGroup from "@radix-ui/react-radio-group";
30
29
  import TextareaAutosize from "react-textarea-autosize";
31
30
  import { Root as Root$2, Track, Range, Thumb } from "@radix-ui/react-slider";
@@ -470,18 +469,18 @@ function getElementRef(element) {
470
469
  return element.props.ref || element.ref;
471
470
  }
472
471
  const themeVars$10 = `'{"textColor-FormItemLabel": "var(--xmlui-textColor-FormItemLabel)", "fontFamily-FormItemLabel": "var(--xmlui-fontFamily-FormItemLabel)", "fontSize-FormItemLabel": "var(--xmlui-fontSize-FormItemLabel)", "fontWeight-FormItemLabel": "var(--xmlui-fontWeight-FormItemLabel)", "fontStyle-FormItemLabel": "var(--xmlui-fontStyle-FormItemLabel)", "textTransform-FormItemLabel": "var(--xmlui-textTransform-FormItemLabel)", "textColor-FormItemLabel-required": "var(--xmlui-textColor-FormItemLabel-required)", "fontSize-FormItemLabel-required": "var(--xmlui-fontSize-FormItemLabel-required)", "fontWeight-FormItemLabel-required": "var(--xmlui-fontWeight-FormItemLabel-required)", "fontStyle-FormItemLabel-required": "var(--xmlui-fontStyle-FormItemLabel-required)", "textTransform-FormItemLabel-required": "var(--xmlui-textTransform-FormItemLabel-required)", "textColor-FormItemLabel-requiredMark": "var(--xmlui-textColor-FormItemLabel-requiredMark)"}'`;
473
- const container$3 = "_container_1tt0f_14";
474
- const top$1 = "_top_1tt0f_21";
475
- const end = "_end_1tt0f_26";
476
- const bottom$1 = "_bottom_1tt0f_32";
477
- const start = "_start_1tt0f_37";
478
- const shrinkToLabel = "_shrinkToLabel_1tt0f_43";
479
- const inputLabel = "_inputLabel_1tt0f_46";
480
- const disabled$b = "_disabled_1tt0f_59";
481
- const labelBreak = "_labelBreak_1tt0f_63";
482
- const required = "_required_1tt0f_68";
483
- const requiredMark = "_requiredMark_1tt0f_75";
484
- const itemWithLabel = "_itemWithLabel_1tt0f_79";
472
+ const container$3 = "_container_1pi4w_14";
473
+ const top$1 = "_top_1pi4w_21";
474
+ const end = "_end_1pi4w_26";
475
+ const bottom$1 = "_bottom_1pi4w_32";
476
+ const start = "_start_1pi4w_37";
477
+ const shrinkToLabel = "_shrinkToLabel_1pi4w_43";
478
+ const inputLabel = "_inputLabel_1pi4w_46";
479
+ const disabled$c = "_disabled_1pi4w_59";
480
+ const labelBreak = "_labelBreak_1pi4w_63";
481
+ const required = "_required_1pi4w_68";
482
+ const requiredMark = "_requiredMark_1pi4w_75";
483
+ const itemWithLabel = "_itemWithLabel_1pi4w_79";
485
484
  const styles$1j = {
486
485
  themeVars: themeVars$10,
487
486
  container: container$3,
@@ -491,7 +490,7 @@ const styles$1j = {
491
490
  start,
492
491
  shrinkToLabel,
493
492
  inputLabel,
494
- disabled: disabled$b,
493
+ disabled: disabled$c,
495
494
  labelBreak,
496
495
  required,
497
496
  requiredMark,
@@ -896,10 +895,13 @@ const useEvent = (callback) => {
896
895
  useInsertionEffect(() => {
897
896
  callbackRef.current = callback;
898
897
  }, [callback]);
899
- return useCallback((...args) => {
900
- const latestFn = callbackRef.current;
901
- return latestFn == null ? void 0 : latestFn(...args);
902
- }, [callbackRef]);
898
+ return useCallback(
899
+ (...args) => {
900
+ const latestFn = callbackRef.current;
901
+ return latestFn == null ? void 0 : latestFn(...args);
902
+ },
903
+ [callbackRef]
904
+ );
903
905
  };
904
906
  function humanFileSize(bytes, si = false, dp = 1) {
905
907
  const thresh = si ? 1e3 : 1024;
@@ -1188,7 +1190,7 @@ function distinct(arr) {
1188
1190
  function asyncThrottle(func, wait, options2) {
1189
1191
  const throttled = throttle(
1190
1192
  (resolve, reject, args) => {
1191
- func(...args).then(resolve).catch(reject);
1193
+ void func(...args).then(resolve).catch(reject);
1192
1194
  },
1193
1195
  wait,
1194
1196
  options2
@@ -1392,10 +1394,7 @@ const useRealBackground = (element) => {
1392
1394
  useEffect(() => {
1393
1395
  return setCounter((prev) => prev + 1);
1394
1396
  }, [activeThemeTone, activeThemeId]);
1395
- return useMemo(
1396
- () => element ? realBackgroundColor(element) : "transparent",
1397
- [element, counter]
1398
- );
1397
+ return useMemo(() => element ? realBackgroundColor(element) : "transparent", [element]);
1399
1398
  };
1400
1399
  const useStartMargin = (hasOutsideScroll2, parentRef, scrollRef) => {
1401
1400
  const [startMargin, setStartMargin] = useState(0);
@@ -1690,7 +1689,7 @@ function useCustomSvgIconRenderer(resourceUrl) {
1690
1689
  if (!resourceUrl) {
1691
1690
  return;
1692
1691
  }
1693
- ensureCustomSvgIcon(resourceUrl);
1692
+ void ensureCustomSvgIcon(resourceUrl);
1694
1693
  }, [ensureCustomSvgIcon, resourceUrl]);
1695
1694
  const customSvg = resourceUrl ? customSvgs[resourceUrl] : null;
1696
1695
  const iconRenderer = useCallback(
@@ -1882,7 +1881,6 @@ class StyleLexer {
1882
1881
  * Fetches the next token from the input stream
1883
1882
  */
1884
1883
  fetch() {
1885
- const lexer = this;
1886
1884
  const input2 = this.input;
1887
1885
  const startPos = this._prefetchedPos || input2.position;
1888
1886
  this._lastFetchPosition = this.input.position;
@@ -1892,6 +1890,19 @@ class StyleLexer {
1892
1890
  let ch = null;
1893
1891
  let useResolver = false;
1894
1892
  let stringWrapper = "";
1893
+ const appendTokenChar = () => {
1894
+ text2 += ch;
1895
+ this._prefetched = null;
1896
+ this._prefetchedPos = null;
1897
+ lastEndPos = input2.position;
1898
+ };
1899
+ const fetchNextChar = () => {
1900
+ if (!this._prefetched) {
1901
+ this._prefetchedPos = input2.position;
1902
+ this._prefetched = input2.get();
1903
+ }
1904
+ return this._prefetched;
1905
+ };
1895
1906
  let phase = 0;
1896
1907
  while (true) {
1897
1908
  ch = fetchNextChar();
@@ -2008,19 +2019,6 @@ class StyleLexer {
2008
2019
  }
2009
2020
  appendTokenChar();
2010
2021
  }
2011
- function appendTokenChar() {
2012
- text2 += ch;
2013
- lexer._prefetched = null;
2014
- lexer._prefetchedPos = null;
2015
- lastEndPos = input2.position;
2016
- }
2017
- function fetchNextChar() {
2018
- if (!lexer._prefetched) {
2019
- lexer._prefetchedPos = input2.position;
2020
- lexer._prefetched = input2.get();
2021
- }
2022
- return lexer._prefetched;
2023
- }
2024
2022
  function makeToken() {
2025
2023
  if (useResolver) {
2026
2024
  tokenType = styleKeywords[text2] ?? (isIdStart$1(text2[0]) ? StyleTokenType.Identifier : StyleTokenType.Unknown);
@@ -2471,7 +2469,78 @@ class StyleParser {
2471
2469
  const startToken = this._lexer.peek();
2472
2470
  const themeIdNode = this.tryThemeId();
2473
2471
  if (themeIdNode) return themeIdNode;
2474
- const parser = this;
2472
+ const parseColorParameters = (pars) => {
2473
+ this._lexer.get();
2474
+ this.expectToken(StyleTokenType.LParent, "S007");
2475
+ for (let i = 0; i < pars.length; i++) {
2476
+ const value = this.getNumber();
2477
+ if (value === null) return false;
2478
+ const unit = this._lexer.peek(true);
2479
+ switch (pars[i]) {
2480
+ case "V%":
2481
+ if (unit.type === StyleTokenType.Percentage) {
2482
+ if (value < 0 || value > 100) {
2483
+ this.reportError("S008");
2484
+ return false;
2485
+ }
2486
+ this._lexer.get();
2487
+ } else {
2488
+ if (value < 0 || value > 255) {
2489
+ this.reportError("S009");
2490
+ return false;
2491
+ }
2492
+ }
2493
+ break;
2494
+ case "%":
2495
+ if (unit.type !== StyleTokenType.Percentage || value < 0 || value > 100) {
2496
+ this.reportError("S008");
2497
+ return false;
2498
+ }
2499
+ this._lexer.get();
2500
+ break;
2501
+ case "angle":
2502
+ if (unit.type === StyleTokenType.Angle) {
2503
+ this._lexer.get();
2504
+ }
2505
+ break;
2506
+ case "alpha":
2507
+ if (unit.type === StyleTokenType.Percentage) {
2508
+ if (value < 0 || value > 100) {
2509
+ this.reportError("S008");
2510
+ return false;
2511
+ }
2512
+ this._lexer.get();
2513
+ } else {
2514
+ if (value < 0 || value > 1) {
2515
+ this.reportError("S011");
2516
+ return false;
2517
+ }
2518
+ }
2519
+ break;
2520
+ }
2521
+ if (i === pars.length - 1) continue;
2522
+ let sepToken = this._lexer.peek(true);
2523
+ if (sepToken.type === StyleTokenType.Ws) {
2524
+ this._lexer.get();
2525
+ sepToken = this._lexer.peek(true);
2526
+ if (sepToken.type === StyleTokenType.Comma) {
2527
+ this._lexer.get();
2528
+ }
2529
+ } else {
2530
+ this.expectToken(StyleTokenType.Comma);
2531
+ }
2532
+ sepToken = this._lexer.peek();
2533
+ if (sepToken.type === StyleTokenType.Ws) {
2534
+ this._lexer.get();
2535
+ }
2536
+ }
2537
+ let aSepToken = this._lexer.peek();
2538
+ if (aSepToken.type === StyleTokenType.Ws) {
2539
+ this._lexer.get();
2540
+ }
2541
+ this.expectToken(StyleTokenType.RParent, "S010");
2542
+ return true;
2543
+ };
2475
2544
  switch (startToken.type) {
2476
2545
  case StyleTokenType.ColorName:
2477
2546
  this._lexer.get();
@@ -2523,78 +2592,6 @@ class StyleParser {
2523
2592
  this.reportError("S005", startToken);
2524
2593
  return null;
2525
2594
  }
2526
- function parseColorParameters(pars) {
2527
- parser._lexer.get();
2528
- parser.expectToken(StyleTokenType.LParent, "S007");
2529
- for (let i = 0; i < pars.length; i++) {
2530
- const value = parser.getNumber();
2531
- if (value === null) return false;
2532
- const unit = parser._lexer.peek(true);
2533
- switch (pars[i]) {
2534
- case "V%":
2535
- if (unit.type === StyleTokenType.Percentage) {
2536
- if (value < 0 || value > 100) {
2537
- parser.reportError("S008");
2538
- return false;
2539
- }
2540
- parser._lexer.get();
2541
- } else {
2542
- if (value < 0 || value > 255) {
2543
- parser.reportError("S009");
2544
- return false;
2545
- }
2546
- }
2547
- break;
2548
- case "%":
2549
- if (unit.type !== StyleTokenType.Percentage || value < 0 || value > 100) {
2550
- parser.reportError("S008");
2551
- return false;
2552
- }
2553
- parser._lexer.get();
2554
- break;
2555
- case "angle":
2556
- if (unit.type === StyleTokenType.Angle) {
2557
- parser._lexer.get();
2558
- }
2559
- break;
2560
- case "alpha":
2561
- if (unit.type === StyleTokenType.Percentage) {
2562
- if (value < 0 || value > 100) {
2563
- parser.reportError("S008");
2564
- return false;
2565
- }
2566
- parser._lexer.get();
2567
- } else {
2568
- if (value < 0 || value > 1) {
2569
- parser.reportError("S011");
2570
- return false;
2571
- }
2572
- }
2573
- break;
2574
- }
2575
- if (i === pars.length - 1) continue;
2576
- let sepToken = parser._lexer.peek(true);
2577
- if (sepToken.type === StyleTokenType.Ws) {
2578
- parser._lexer.get();
2579
- sepToken = parser._lexer.peek(true);
2580
- if (sepToken.type === StyleTokenType.Comma) {
2581
- parser._lexer.get();
2582
- }
2583
- } else {
2584
- parser.expectToken(StyleTokenType.Comma);
2585
- }
2586
- sepToken = parser._lexer.peek();
2587
- if (sepToken.type === StyleTokenType.Ws) {
2588
- parser._lexer.get();
2589
- }
2590
- }
2591
- let aSepToken = parser._lexer.peek();
2592
- if (aSepToken.type === StyleTokenType.Ws) {
2593
- parser._lexer.get();
2594
- }
2595
- parser.expectToken(StyleTokenType.RParent, "S010");
2596
- return true;
2597
- }
2598
2595
  }
2599
2596
  getNumber() {
2600
2597
  const token = this._lexer.get();
@@ -7050,8 +7047,8 @@ class ErrorBoundary extends React__default.Component {
7050
7047
  * This method implements the Error Boundaries for the React application.
7051
7048
  * It is invoked if errors occur during the rendering phase of any lifecycle
7052
7049
  * methods or children components.
7053
- *
7054
- * DO NOT DELETE this method! Though it is not referenced directly from the code,
7050
+ *
7051
+ * DO NOT DELETE this method! Though it is not referenced directly from the code,
7055
7052
  * it is a required part of the React component lifecycle.
7056
7053
  */
7057
7054
  static getDerivedStateFromError(error2) {
@@ -7084,7 +7081,7 @@ class ErrorBoundary extends React__default.Component {
7084
7081
  */
7085
7082
  render() {
7086
7083
  var _a2;
7087
- return this.state.hasError ? /* @__PURE__ */ jsxs("div", { className: styles$1b.errorOverlay, children: [
7084
+ return this.state.hasError ? /* @__PURE__ */ jsxs("div", { "data-error-boundary": true, className: styles$1b.errorOverlay, children: [
7088
7085
  /* @__PURE__ */ jsx("div", { className: styles$1b.title, children: "There was an error!" }),
7089
7086
  /* @__PURE__ */ jsx("div", { className: styles$1b.errorItem, children: (_a2 = this.state.error) == null ? void 0 : _a2.message })
7090
7087
  ] }) : this.props.children;
@@ -7127,6 +7124,7 @@ const NotificationToast = ({ toastDuration }) => {
7127
7124
  };
7128
7125
  const defaultProps$1b = {
7129
7126
  isRoot: false,
7127
+ applyIf: true,
7130
7128
  toastDuration: 5e3,
7131
7129
  themeVars: EMPTY_OBJECT,
7132
7130
  root: false
@@ -7134,6 +7132,7 @@ const defaultProps$1b = {
7134
7132
  function Theme({
7135
7133
  id,
7136
7134
  isRoot = defaultProps$1b.isRoot,
7135
+ applyIf,
7137
7136
  renderChild: renderChild2,
7138
7137
  node,
7139
7138
  tone,
@@ -7254,6 +7253,13 @@ function Theme({
7254
7253
  if (indexing) {
7255
7254
  return children;
7256
7255
  }
7256
+ const shouldApplyTheme = applyIf ?? defaultProps$1b.applyIf;
7257
+ if (!shouldApplyTheme) {
7258
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
7259
+ renderChild2 && renderChild2(node.children),
7260
+ children
7261
+ ] });
7262
+ }
7257
7263
  if (isRoot) {
7258
7264
  const faviconUrl = getResourceUrl("resource:favicon") || "/resources/favicon.ico";
7259
7265
  return /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -7324,6 +7330,12 @@ const ThemeMd = createMetadata({
7324
7330
  void 0,
7325
7331
  "boolean",
7326
7332
  defaultProps$1b.root
7333
+ ),
7334
+ applyIf: d(
7335
+ `This property controls whether the theme wrapper is applied. When true (default), the theme wraps the children. When false, children are rendered unwrapped.`,
7336
+ void 0,
7337
+ "boolean",
7338
+ true
7327
7339
  )
7328
7340
  },
7329
7341
  opaque: true
@@ -7344,6 +7356,7 @@ const themeComponentRenderer = createComponentRenderer(
7344
7356
  {
7345
7357
  id: extractValue.asOptionalString(node.props.themeId),
7346
7358
  isRoot: extractValue.asOptionalBoolean(node.props.root),
7359
+ applyIf: extractValue.asOptionalBoolean(node.props.applyIf),
7347
7360
  layoutContext,
7348
7361
  renderChild: renderChild2,
7349
7362
  tone: themeTone,
@@ -7633,7 +7646,7 @@ const icon$4 = "_icon_8uiju_65";
7633
7646
  const includeHoverIndicator = "_includeHoverIndicator_8uiju_71";
7634
7647
  const displayActive = "_displayActive_8uiju_106";
7635
7648
  const navItemActive = "_navItemActive_8uiju_118";
7636
- const disabled$a = "_disabled_8uiju_153";
7649
+ const disabled$b = "_disabled_8uiju_153";
7637
7650
  const vertical$6 = "_vertical_8uiju_157";
7638
7651
  const innerContent$1 = "_innerContent_8uiju_170";
7639
7652
  const navLinkStyles = {
@@ -7644,7 +7657,7 @@ const navLinkStyles = {
7644
7657
  includeHoverIndicator,
7645
7658
  displayActive,
7646
7659
  navItemActive,
7647
- disabled: disabled$a,
7660
+ disabled: disabled$b,
7648
7661
  vertical: vertical$6,
7649
7662
  innerContent: innerContent$1
7650
7663
  };
@@ -9420,14 +9433,16 @@ function AppState({
9420
9433
  registerComponentApi,
9421
9434
  onDidUpdate
9422
9435
  }) {
9423
- const registerAppState = useAppStateContextPart((value2) => value2.registerAppState);
9424
9436
  const update = useAppStateContextPart((value2) => value2.update);
9437
+ const value = useAppStateContextPart((value2) => {
9438
+ var _a2;
9439
+ return (_a2 = value2 == null ? void 0 : value2.appState) == null ? void 0 : _a2[bucket];
9440
+ });
9425
9441
  useIsomorphicLayoutEffect(() => {
9426
9442
  if (initialValue !== void 0) {
9427
- registerAppState(bucket, initialValue);
9443
+ update(bucket, initialValue);
9428
9444
  }
9429
- }, [bucket, initialValue, registerAppState]);
9430
- const value = useAppStateContextPart((value2) => value2.appState[bucket]);
9445
+ }, [bucket, initialValue]);
9431
9446
  useIsomorphicLayoutEffect(() => {
9432
9447
  updateState({ value });
9433
9448
  if (onDidUpdate) {
@@ -9476,7 +9491,7 @@ const AppStateMd = createMetadata({
9476
9491
  defaultValue: defaultProps$13.bucket
9477
9492
  },
9478
9493
  initialValue: {
9479
- description: `This property contains the initial state value. Though you can use multiple \`${COMP$1r}\`component instances for the same bucket with their \`initialValue\` set, it may result in faulty app logic. When xmlui instantiates an \`${COMP$1r}\` with an explicit initial value, that value is immediately set. Multiple initial values may result in undesired initialization. By default, the bucked's initial state is undefined.`
9494
+ description: `This property contains the initial state value. Though you can use multiple \`${COMP$1r}\`component instances for the same bucket with their \`initialValue\` set, it may result in faulty app logic. When xmlui instantiates an \`${COMP$1r}\` with an explicit initial value, that value is immediately merged with the existing state. The issue may come from the behavior that \`initialValue\` is set (merged) only when a component mounts. By default, the bucket's initial state is undefined.`
9480
9495
  }
9481
9496
  },
9482
9497
  apis: {
@@ -10034,13 +10049,13 @@ const styles$12 = {
10034
10049
  const themeVars$M = `'{"padding-Link": "var(--xmlui-padding-Link)", "paddingHorizontal-Link": "var(--xmlui-paddingHorizontal-Link, var(--xmlui-padding-Link))", "paddingVertical-Link": "var(--xmlui-paddingVertical-Link, var(--xmlui-padding-Link))", "paddingLeft-Link": "var(--xmlui-paddingLeft-Link, var(--xmlui-paddingHorizontal-Link, var(--xmlui-padding-Link)))", "paddingRight-Link": "var(--xmlui-paddingRight-Link, var(--xmlui-paddingHorizontal-Link, var(--xmlui-padding-Link)))", "paddingTop-Link": "var(--xmlui-paddingTop-Link, var(--xmlui-paddingVertical-Link, var(--xmlui-padding-Link)))", "paddingBottom-Link": "var(--xmlui-paddingBottom-Link, var(--xmlui-paddingVertical-Link, var(--xmlui-padding-Link)))", "padding-icon-Link": "var(--xmlui-padding-icon-Link)", "paddingHorizontal-icon-Link": "var(--xmlui-paddingHorizontal-icon-Link, var(--xmlui-padding-icon-Link))", "paddingVertical-icon-Link": "var(--xmlui-paddingVertical-icon-Link, var(--xmlui-padding-icon-Link))", "paddingLeft-icon-Link": "var(--xmlui-paddingLeft-icon-Link, var(--xmlui-paddingHorizontal-icon-Link, var(--xmlui-padding-icon-Link)))", "paddingRight-icon-Link": "var(--xmlui-paddingRight-icon-Link, var(--xmlui-paddingHorizontal-icon-Link, var(--xmlui-padding-icon-Link)))", "paddingTop-icon-Link": "var(--xmlui-paddingTop-icon-Link, var(--xmlui-paddingVertical-icon-Link, var(--xmlui-padding-icon-Link)))", "paddingBottom-icon-Link": "var(--xmlui-paddingBottom-icon-Link, var(--xmlui-paddingVertical-icon-Link, var(--xmlui-padding-icon-Link)))", "border-Link": "var(--xmlui-border-Link)", "borderHorizontal-Link": "var(--xmlui-borderHorizontal-Link, var(--xmlui-border-Link))", "borderVertical-Link": "var(--xmlui-borderVertical-Link, var(--xmlui-border-Link))", "borderLeft-Link": "var(--xmlui-borderLeft-Link, var(--xmlui-borderHorizontal-Link, var(--xmlui-border-Link)))", "borderRight-Link": "var(--xmlui-borderRight-Link, var(--xmlui-borderHorizontal-Link, var(--xmlui-border-Link)))", "borderTop-Link": "var(--xmlui-borderTop-Link, var(--xmlui-borderVertical-Link, var(--xmlui-border-Link)))", "borderBottom-Link": "var(--xmlui-borderBottom-Link, var(--xmlui-borderVertical-Link, var(--xmlui-border-Link)))", "borderWidth-Link": "var(--xmlui-borderWidth-Link)", "borderHorizontalWidth-Link": "var(--xmlui-borderHorizontalWidth-Link, var(--xmlui-borderWidth-Link))", "borderLeftWidth-Link": "var(--xmlui-borderLeftWidth-Link, var(--xmlui-borderHorizontalWidth-Link, var(--xmlui-borderWidth-Link)))", "borderRightWidth-Link": "var(--xmlui-borderRightWidth-Link, var(--xmlui-borderHorizontalWidth-Link, var(--xmlui-borderWidth-Link)))", "borderVerticalWidth-Link": "var(--xmlui-borderVerticalWidth-Link, var(--xmlui-borderWidth-Link))", "borderTopWidth-Link": "var(--xmlui-borderTopWidth-Link, var(--xmlui-borderVerticalWidth-Link, var(--xmlui-borderWidth-Link)))", "borderBottomWidth-Link": "var(--xmlui-borderBottomWidth-Link, var(--xmlui-borderVerticalWidth-Link, var(--xmlui-borderWidth-Link)))", "borderStyle-Link": "var(--xmlui-borderStyle-Link)", "borderHorizontalStyle-Link": "var(--xmlui-borderHorizontalStyle-Link, var(--xmlui-borderStyle-Link))", "borderLeftStyle-Link": "var(--xmlui-borderLeftStyle-Link, var(--xmlui-borderHorizontalStyle-Link, var(--xmlui-borderStyle-Link)))", "borderRightStyle-Link": "var(--xmlui-borderRightStyle-Link, var(--xmlui-borderHorizontalStyle-Link, var(--xmlui-borderStyle-Link)))", "borderVerticalStyle-Link": "var(--xmlui-borderVerticalStyle-Link, var(--xmlui-borderStyle-Link))", "borderTopStyle-Link": "var(--xmlui-borderTopStyle-Link, var(--xmlui-borderVerticalStyle-Link, var(--xmlui-borderStyle-Link)))", "borderBottomStyle-Link": "var(--xmlui-borderBottomStyle-Link, var(--xmlui-borderVerticalStyle-Link, var(--xmlui-borderStyle-Link)))", "borderColor-Link": "var(--xmlui-borderColor-Link)", "borderHorizontalColor-Link": "var(--xmlui-borderHorizontalColor-Link, var(--xmlui-borderColor-Link))", "borderLeftColor-Link": "var(--xmlui-borderLeftColor-Link, var(--xmlui-borderHorizontalColor-Link, var(--xmlui-borderColor-Link)))", "borderRightColor-Link": "var(--xmlui-borderRightColor-Link, var(--xmlui-borderHorizontalColor-Link, var(--xmlui-borderColor-Link)))", "borderVerticalColor-Link": "var(--xmlui-borderVerticalColor-Link, var(--xmlui-borderColor-Link))", "borderTopColor-Link": "var(--xmlui-borderTopColor-Link, var(--xmlui-borderVerticalColor-Link, var(--xmlui-borderColor-Link)))", "borderBottomColor-Link": "var(--xmlui-borderBottomColor-Link, var(--xmlui-borderVerticalColor-Link, var(--xmlui-borderColor-Link)))", "borderStartStartRadius-Link": "var(--xmlui-borderStartStartRadius-Link, var(--xmlui-borderRadius-Link))", "borderStartEndRadius-Link": "var(--xmlui-borderStartEndRadius-Link, var(--xmlui-borderRadius-Link))", "borderEndStartRadius-Link": "var(--xmlui-borderEndStartRadius-Link, var(--xmlui-borderRadius-Link))", "borderEndEndRadius-Link": "var(--xmlui-borderEndEndRadius-Link, var(--xmlui-borderRadius-Link))", "textColor-Link": "var(--xmlui-textColor-Link)", "fontFamily-Link": "var(--xmlui-fontFamily-Link)", "fontSize-Link": "var(--xmlui-fontSize-Link)", "fontStyle-Link": "var(--xmlui-fontStyle-Link)", "fontVariant-Link": "var(--xmlui-fontVariant-Link)", "fontWeight-Link": "var(--xmlui-fontWeight-Link)", "fontStretch-Link": "var(--xmlui-fontStretch-Link)", "textDecorationLine-Link": "var(--xmlui-textDecorationLine-Link)", "textDecorationColor-Link": "var(--xmlui-textDecorationColor-Link)", "textDecorationStyle-Link": "var(--xmlui-textDecorationStyle-Link)", "textDecorationThickness-Link": "var(--xmlui-textDecorationThickness-Link)", "textUnderlineOffset-Link": "var(--xmlui-textUnderlineOffset-Link)", "lineHeight-Link": "var(--xmlui-lineHeight-Link)", "backgroundColor-Link": "var(--xmlui-backgroundColor-Link)", "textTransform-Link": "var(--xmlui-textTransform-Link)", "letterSpacing-Link": "var(--xmlui-letterSpacing-Link)", "wordSpacing-Link": "var(--xmlui-wordSpacing-Link)", "textShadow-Link": "var(--xmlui-textShadow-Link)", "textIndent-Link": "var(--xmlui-textIndent-Link)", "textAlign-Link": "var(--xmlui-textAlign-Link)", "textAlignLast-Link": "var(--xmlui-textAlignLast-Link)", "wordBreak-Link": "var(--xmlui-wordBreak-Link)", "wordWrap-Link": "var(--xmlui-wordWrap-Link)", "direction-Link": "var(--xmlui-direction-Link)", "writingMode-Link": "var(--xmlui-writingMode-Link)", "lineBreak-Link": "var(--xmlui-lineBreak-Link)", "textColor-Link--active": "var(--xmlui-textColor-Link--active)", "textColor-Link--hover": "var(--xmlui-textColor-Link--hover)", "textColor-Link--hover--active": "var(--xmlui-textColor-Link--hover--active)", "fontWeight-Link--active": "var(--xmlui-fontWeight-Link--active)", "gap-icon-Link": "var(--xmlui-gap-icon-Link)", "textDecorationColor-Link--hover": "var(--xmlui-textDecorationColor-Link--hover)", "textDecorationColor-Link--active": "var(--xmlui-textDecorationColor-Link--active)", "outlineWidth-Link--focus": "var(--xmlui-outlineWidth-Link--focus)", "outlineColor-Link--focus": "var(--xmlui-outlineColor-Link--focus)", "outlineStyle-Link--focus": "var(--xmlui-outlineStyle-Link--focus)", "outlineOffset-Link--focus": "var(--xmlui-outlineOffset-Link--focus)"}'`;
10035
10050
  const container$1 = "_container_1iujp_14";
10036
10051
  const active$3 = "_active_1iujp_75";
10037
- const disabled$9 = "_disabled_1iujp_79";
10052
+ const disabled$a = "_disabled_1iujp_79";
10038
10053
  const iconWrapper = "_iconWrapper_1iujp_94";
10039
10054
  const styles$11 = {
10040
10055
  themeVars: themeVars$M,
10041
10056
  container: container$1,
10042
10057
  active: active$3,
10043
- disabled: disabled$9,
10058
+ disabled: disabled$a,
10044
10059
  iconWrapper
10045
10060
  };
10046
10061
  const defaultProps$$ = {
@@ -10424,23 +10439,25 @@ const changeListenerComponentRenderer = createComponentRenderer(
10424
10439
  }
10425
10440
  );
10426
10441
  const themeVars$K = `'{"Input:borderRadius-Checkbox-default": "var(--xmlui-borderRadius-Checkbox-default)", "Input:borderColor-Checkbox-default": "var(--xmlui-borderColor-Checkbox-default)", "Input:backgroundColor-Checkbox-default": "var(--xmlui-backgroundColor-Checkbox-default)", "Input:outlineWidth-Checkbox-default--focus": "var(--xmlui-outlineWidth-Checkbox-default--focus)", "Input:outlineColor-Checkbox-default--focus": "var(--xmlui-outlineColor-Checkbox-default--focus)", "Input:outlineStyle-Checkbox-default--focus": "var(--xmlui-outlineStyle-Checkbox-default--focus)", "Input:outlineOffset-Checkbox-default--focus": "var(--xmlui-outlineOffset-Checkbox-default--focus)", "Input:borderColor-Checkbox-default--hover": "var(--xmlui-borderColor-Checkbox-default--hover)", "Input:backgroundColor-Checkbox--disabled": "var(--xmlui-backgroundColor-Checkbox--disabled)", "Input:borderColor-Checkbox--disabled": "var(--xmlui-borderColor-Checkbox--disabled)", "Input:borderRadius-Checkbox-error": "var(--xmlui-borderRadius-Checkbox-error)", "Input:borderColor-Checkbox-error": "var(--xmlui-borderColor-Checkbox-error)", "Input:backgroundColor-Checkbox-error": "var(--xmlui-backgroundColor-Checkbox-error)", "Input:outlineWidth-Checkbox-error--focus": "var(--xmlui-outlineWidth-Checkbox-error--focus)", "Input:outlineColor-Checkbox-error--focus": "var(--xmlui-outlineColor-Checkbox-error--focus)", "Input:outlineStyle-Checkbox-error--focus": "var(--xmlui-outlineStyle-Checkbox-error--focus)", "Input:outlineOffset-Checkbox-error--focus": "var(--xmlui-outlineOffset-Checkbox-error--focus)", "Input:borderRadius-Checkbox-warning": "var(--xmlui-borderRadius-Checkbox-warning)", "Input:borderColor-Checkbox-warning": "var(--xmlui-borderColor-Checkbox-warning)", "Input:backgroundColor-Checkbox-warning": "var(--xmlui-backgroundColor-Checkbox-warning)", "Input:outlineWidth-Checkbox-warning--focus": "var(--xmlui-outlineWidth-Checkbox-warning--focus)", "Input:outlineColor-Checkbox-warning--focus": "var(--xmlui-outlineColor-Checkbox-warning--focus)", "Input:outlineStyle-Checkbox-warning--focus": "var(--xmlui-outlineStyle-Checkbox-warning--focus)", "Input:outlineOffset-Checkbox-warning--focus": "var(--xmlui-outlineOffset-Checkbox-warning--focus)", "Input:borderRadius-Checkbox-success": "var(--xmlui-borderRadius-Checkbox-success)", "Input:borderColor-Checkbox-success": "var(--xmlui-borderColor-Checkbox-success)", "Input:backgroundColor-Checkbox-success": "var(--xmlui-backgroundColor-Checkbox-success)", "Input:outlineWidth-Checkbox-success--focus": "var(--xmlui-outlineWidth-Checkbox-success--focus)", "Input:outlineColor-Checkbox-success--focus": "var(--xmlui-outlineColor-Checkbox-success--focus)", "Input:outlineStyle-Checkbox-success--focus": "var(--xmlui-outlineStyle-Checkbox-success--focus)", "Input:outlineOffset-Checkbox-success--focus": "var(--xmlui-outlineOffset-Checkbox-success--focus)", "backgroundColor-indicator-Checkbox": "var(--xmlui-backgroundColor-indicator-Checkbox)", "Input:borderColor-checked-Checkbox": "var(--xmlui-borderColor-checked-Checkbox)", "Input:backgroundColor-checked-Checkbox": "var(--xmlui-backgroundColor-checked-Checkbox)", "Input:borderColor-checked-Checkbox-error": "var(--xmlui-borderColor-checked-Checkbox-error)", "Input:backgroundColor-checked-Checkbox-error": "var(--xmlui-backgroundColor-checked-Checkbox-error)", "Input:borderColor-checked-Checkbox-warning": "var(--xmlui-borderColor-checked-Checkbox-warning)", "Input:backgroundColor-checked-Checkbox-warning": "var(--xmlui-backgroundColor-checked-Checkbox-warning)", "Input:borderColor-checked-Checkbox-success": "var(--xmlui-borderColor-checked-Checkbox-success)", "Input:backgroundColor-checked-Checkbox-success": "var(--xmlui-backgroundColor-checked-Checkbox-success)", "Input:backgroundColor-Switch": "var(--xmlui-backgroundColor-Switch)", "Input:borderColor-Switch": "var(--xmlui-borderColor-Switch)", "backgroundColor-indicator-Switch": "var(--xmlui-backgroundColor-indicator-Switch)", "backgroundColor-checked-Switch": "var(--xmlui-backgroundColor-checked-Switch)", "backgroundColor-indicator-checked-Switch": "var(--xmlui-backgroundColor-indicator-checked-Switch)", "Input:borderColor-Switch-default--hover": "var(--xmlui-borderColor-Switch-default--hover)", "Input:backgroundColor-Switch--disabled": "var(--xmlui-backgroundColor-Switch--disabled)", "Input:borderColor-Switch--disabled": "var(--xmlui-borderColor-Switch--disabled)", "Input:borderColor-checked-Switch": "var(--xmlui-borderColor-checked-Switch)", "Input:backgroundColor-checked-Switch": "var(--xmlui-backgroundColor-checked-Switch)", "Input:borderColor-checked-Switch-error": "var(--xmlui-borderColor-checked-Switch-error)", "Input:backgroundColor-checked-Switch-error": "var(--xmlui-backgroundColor-checked-Switch-error)", "Input:borderColor-checked-Switch-warning": "var(--xmlui-borderColor-checked-Switch-warning)", "Input:backgroundColor-checked-Switch-warning": "var(--xmlui-backgroundColor-checked-Switch-warning)", "Input:borderColor-checked-Switch-success": "var(--xmlui-borderColor-checked-Switch-success)", "Input:backgroundColor-checked-Switch-success": "var(--xmlui-backgroundColor-checked-Switch-success)", "Input:outlineWidth-Switch--focus": "var(--xmlui-outlineWidth-Switch--focus)", "Input:outlineColor-Switch--focus": "var(--xmlui-outlineColor-Switch--focus)", "Input:outlineStyle-Switch--focus": "var(--xmlui-outlineStyle-Switch--focus)", "Input:outlineOffset-Switch--focus": "var(--xmlui-outlineOffset-Switch--focus)", "backgroundColor-Switch-indicator--disabled": "var(--xmlui-backgroundColor-Switch-indicator--disabled)", "Input:borderColor-Switch-error": "var(--xmlui-borderColor-Switch-error)", "Input:borderColor-Switch-warning": "var(--xmlui-borderColor-Switch-warning)", "Input:borderColor-Switch-success": "var(--xmlui-borderColor-Switch-success)"}'`;
10427
- const resetAppearance = "_resetAppearance_of6bs_14";
10428
- const label$1 = "_label_of6bs_21";
10429
- const inputContainer = "_inputContainer_of6bs_24";
10430
- const checkbox = "_checkbox_of6bs_31";
10431
- const error$c = "_error_of6bs_60";
10432
- const warning$d = "_warning_of6bs_71";
10433
- const valid$c = "_valid_of6bs_82";
10442
+ const resetAppearance = "_resetAppearance_1onhr_14";
10443
+ const label$1 = "_label_1onhr_21";
10444
+ const inputContainer = "_inputContainer_1onhr_24";
10445
+ const checkbox = "_checkbox_1onhr_31";
10446
+ const forceHover = "_forceHover_1onhr_60";
10447
+ const error$c = "_error_1onhr_63";
10448
+ const warning$d = "_warning_1onhr_74";
10449
+ const valid$c = "_valid_1onhr_85";
10434
10450
  const styles$$ = {
10435
10451
  themeVars: themeVars$K,
10436
10452
  resetAppearance,
10437
10453
  label: label$1,
10438
10454
  inputContainer,
10439
10455
  checkbox,
10456
+ forceHover,
10440
10457
  error: error$c,
10441
10458
  warning: warning$d,
10442
10459
  valid: valid$c,
10443
- "switch": "_switch_of6bs_141"
10460
+ "switch": "_switch_1onhr_144"
10444
10461
  };
10445
10462
  const defaultProps$X = {
10446
10463
  initialValue: false,
@@ -10469,6 +10486,7 @@ const Toggle = forwardRef(function Toggle2({
10469
10486
  autoFocus,
10470
10487
  registerComponentApi,
10471
10488
  inputRenderer,
10489
+ forceHover: forceHover2 = false,
10472
10490
  ...rest
10473
10491
  }, forwardedRef) {
10474
10492
  const innerRef = React__default.useRef(null);
@@ -10575,7 +10593,8 @@ const Toggle = forwardRef(function Toggle2({
10575
10593
  [styles$$.switch]: variant === "switch",
10576
10594
  [styles$$.error]: validationStatus === "error",
10577
10595
  [styles$$.warning]: validationStatus === "warning",
10578
- [styles$$.valid]: validationStatus === "valid"
10596
+ [styles$$.valid]: validationStatus === "valid",
10597
+ [styles$$.forceHover]: forceHover2
10579
10598
  })
10580
10599
  }
10581
10600
  );
@@ -10596,7 +10615,8 @@ const Toggle = forwardRef(function Toggle2({
10596
10615
  value,
10597
10616
  variant,
10598
10617
  indeterminate,
10599
- autoFocus
10618
+ autoFocus,
10619
+ forceHover2
10600
10620
  ]);
10601
10621
  return inputRenderer ? /* @__PURE__ */ jsxs("label", { className: styles$$.label, children: [
10602
10622
  /* @__PURE__ */ jsx("div", { className: styles$$.inputContainer, children: input2 }),
@@ -10755,10 +10775,10 @@ const checkboxComponentRenderer = createComponentRenderer(
10755
10775
  );
10756
10776
  }
10757
10777
  );
10758
- const themeVars$J = `'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)"}'`;
10759
- const separator = "_separator_k49rs_14";
10760
- const horizontal$3 = "_horizontal_k49rs_17";
10761
- const vertical$3 = "_vertical_k49rs_21";
10778
+ const themeVars$J = `'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)", "marginTop-ContentSeparator": "var(--xmlui-marginTop-ContentSeparator)", "marginBottom-ContentSeparator": "var(--xmlui-marginBottom-ContentSeparator)", "marginVertical-ContentSeparator": "var(--xmlui-marginVertical-ContentSeparator)", "marginLeft-ContentSeparator": "var(--xmlui-marginLeft-ContentSeparator)", "marginRight-ContentSeparator": "var(--xmlui-marginRight-ContentSeparator)", "marginHorizontal-ContentSeparator": "var(--xmlui-marginHorizontal-ContentSeparator)"}'`;
10779
+ const separator = "_separator_13z1k_14";
10780
+ const horizontal$3 = "_horizontal_13z1k_21";
10781
+ const vertical$3 = "_vertical_13z1k_25";
10762
10782
  const styles$_ = {
10763
10783
  themeVars: themeVars$J,
10764
10784
  separator,
@@ -10812,6 +10832,8 @@ const ContentSeparatorMd = createMetadata({
10812
10832
  defaultThemeVars: {
10813
10833
  [`backgroundColor-${COMP$1k}`]: "$color-surface-200",
10814
10834
  [`size-${COMP$1k}`]: "1px",
10835
+ [`marginVertical-${COMP$1k}`]: "0",
10836
+ [`marginHorizontal-${COMP$1k}`]: "0",
10815
10837
  light: {
10816
10838
  // --- No light-specific theme vars
10817
10839
  },
@@ -10841,7 +10863,7 @@ const adornment$3 = "_adornment_17ucd_56";
10841
10863
  const error$b = "_error_17ucd_59";
10842
10864
  const warning$c = "_warning_17ucd_87";
10843
10865
  const valid$b = "_valid_17ucd_115";
10844
- const disabled$8 = "_disabled_17ucd_143";
10866
+ const disabled$9 = "_disabled_17ucd_143";
10845
10867
  const indicator$3 = "_indicator_17ucd_149";
10846
10868
  const datePickerInput = "_datePickerInput_17ucd_150";
10847
10869
  const inlinePickerMenu = "_inlinePickerMenu_17ucd_153";
@@ -10888,7 +10910,7 @@ const styles$Z = {
10888
10910
  error: error$b,
10889
10911
  warning: warning$c,
10890
10912
  valid: valid$b,
10891
- disabled: disabled$8,
10913
+ disabled: disabled$9,
10892
10914
  indicator: indicator$3,
10893
10915
  datePickerInput,
10894
10916
  inlinePickerMenu,
@@ -10992,8 +11014,8 @@ const DatePicker = forwardRef(function DatePicker2({
10992
11014
  dateFormat = defaultProps$U.dateFormat,
10993
11015
  showWeekNumber = defaultProps$U.showWeekNumber,
10994
11016
  weekStartsOn = defaultProps$U.weekStartsOn,
10995
- minValue,
10996
- maxValue,
11017
+ startDate,
11018
+ endDate,
10997
11019
  disabledDates = defaultProps$U.disabledDates,
10998
11020
  style: style2,
10999
11021
  className,
@@ -11036,12 +11058,12 @@ const DatePicker = forwardRef(function DatePicker2({
11036
11058
  );
11037
11059
  }
11038
11060
  }, [dateFormat]);
11039
- const startDate = useMemo(() => {
11040
- return minValue ? parse(minValue, dateFormat, /* @__PURE__ */ new Date()) : void 0;
11041
- }, [minValue, dateFormat]);
11042
- const endDate = useMemo(() => {
11043
- return maxValue ? parse(maxValue, dateFormat, /* @__PURE__ */ new Date()) : void 0;
11044
- }, [maxValue, dateFormat]);
11061
+ const _startDate = useMemo(() => {
11062
+ return startDate ? parse(startDate, dateFormat, /* @__PURE__ */ new Date()) : void 0;
11063
+ }, [startDate, dateFormat]);
11064
+ const _endDate = useMemo(() => {
11065
+ return endDate ? parse(endDate, dateFormat, /* @__PURE__ */ new Date()) : void 0;
11066
+ }, [endDate, dateFormat]);
11045
11067
  const defaultMonth = useMemo(() => {
11046
11068
  if (mode === "single" && selected2) {
11047
11069
  return selected2;
@@ -11195,32 +11217,42 @@ const DatePicker = forwardRef(function DatePicker2({
11195
11217
  },
11196
11218
  [onDidChange, updateState, mode, dateFormat, readOnly2]
11197
11219
  );
11198
- return inline ? /* @__PURE__ */ jsx("div", { ref, ...rest, style: style2, className: classnames(styles$Z.inlinePickerMenu, className), tabIndex: 0, children: /* @__PURE__ */ jsx(
11199
- DayPicker,
11220
+ return inline ? /* @__PURE__ */ jsx(
11221
+ "div",
11200
11222
  {
11201
- id,
11202
- required: void 0,
11203
- captionLayout: "dropdown",
11204
- fixedWeeks: true,
11205
- startMonth: startDate,
11206
- endMonth: endDate,
11207
- month: inlineMonth,
11208
- onMonthChange: setInlineMonth,
11209
- disabled: disabled2,
11210
- weekStartsOn: _weekStartsOn,
11211
- showWeekNumber,
11212
- showOutsideDays: true,
11213
- classNames: styles$Z,
11214
- mode: mode === "single" ? "single" : "range",
11215
- selected: selected2,
11216
- onSelect: handleSelect,
11217
- autoFocus,
11218
- numberOfMonths: mode === "range" ? 2 : 1,
11219
- components: {
11220
- Chevron
11221
- }
11223
+ ref,
11224
+ ...rest,
11225
+ style: style2,
11226
+ className: classnames(styles$Z.inlinePickerMenu, className),
11227
+ tabIndex: 0,
11228
+ children: /* @__PURE__ */ jsx(
11229
+ DayPicker,
11230
+ {
11231
+ id,
11232
+ required: void 0,
11233
+ captionLayout: "dropdown",
11234
+ fixedWeeks: true,
11235
+ startMonth: _startDate,
11236
+ endMonth: _endDate,
11237
+ month: inlineMonth,
11238
+ onMonthChange: setInlineMonth,
11239
+ disabled: disabled2,
11240
+ weekStartsOn: _weekStartsOn,
11241
+ showWeekNumber,
11242
+ showOutsideDays: true,
11243
+ classNames: styles$Z,
11244
+ mode: mode === "single" ? "single" : "range",
11245
+ selected: selected2,
11246
+ onSelect: handleSelect,
11247
+ autoFocus,
11248
+ numberOfMonths: mode === "range" ? 2 : 1,
11249
+ components: {
11250
+ Chevron
11251
+ }
11252
+ }
11253
+ )
11222
11254
  }
11223
- ) }) : /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, modal: false, children: [
11255
+ ) : /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, modal: false, children: [
11224
11256
  /* @__PURE__ */ jsxs(
11225
11257
  PopoverTrigger,
11226
11258
  {
@@ -11274,8 +11306,8 @@ const DatePicker = forwardRef(function DatePicker2({
11274
11306
  autoFocus,
11275
11307
  classNames: styles$Z,
11276
11308
  captionLayout: "dropdown",
11277
- startMonth: startDate,
11278
- endMonth: endDate,
11309
+ startMonth: _startDate,
11310
+ endMonth: _endDate,
11279
11311
  defaultMonth,
11280
11312
  disabled: disabled2,
11281
11313
  weekStartsOn: _weekStartsOn,
@@ -11378,20 +11410,20 @@ const DatePickerMd = createMetadata({
11378
11410
  }
11379
11411
  ]
11380
11412
  },
11381
- minValue: {
11382
- description: "The optional start date of the selectable date range. If not defined, the range allows any dates in the past.",
11413
+ startDate: {
11414
+ description: "The earliest month to start the month navigation from (inclusive). If not defined, the component allows any dates in the past. Accepts the same date format as the `initialValue`.Example: '2023-01-01' ensures the first month to select a date from is January 2023.",
11383
11415
  valueType: "string"
11384
11416
  },
11385
- maxValue: {
11386
- description: "The optional end date of the selectable date range. If not defined, the range allows any future dates.",
11417
+ endDate: {
11418
+ description: "The latest month to start the month navigation from (inclusive). If not defined, the component allows any future dates. Accepts the same date format as the `initialValue`.Example: '2023-12-31' ensures the last month to select a date from is December 2023.",
11387
11419
  valueType: "string"
11388
11420
  },
11389
11421
  disabledDates: {
11390
- description: "An optional array of dates that are disabled",
11422
+ description: "An optional array of dates that are to be disabled.",
11391
11423
  valueType: "any"
11392
11424
  },
11393
11425
  inline: {
11394
- description: "Whether to display the datepicker inline",
11426
+ description: "If set to true, the calendar is always visible and its panel is rendered as part of the layout. If false, the calendar is shown in a popup when the input is focused or clicked.",
11395
11427
  valueType: "boolean",
11396
11428
  defaultValue: defaultProps$U.inline
11397
11429
  },
@@ -11466,8 +11498,8 @@ const datePickerComponentRenderer = createComponentRenderer(
11466
11498
  dateFormat: extractValue(node.props.dateFormat),
11467
11499
  showWeekNumber: extractValue.asOptionalBoolean(node.props.showWeekNumber),
11468
11500
  weekStartsOn: extractValue(node.props.weekStartsOn),
11469
- minValue: extractValue(node.props.minValue),
11470
- maxValue: extractValue(node.props.maxValue),
11501
+ startDate: extractValue(node.props.startDate),
11502
+ endDate: extractValue(node.props.endDate),
11471
11503
  disabledDates: extractValue(node.props.disabledDates),
11472
11504
  inline: extractValue.asOptionalBoolean(node.props.inline),
11473
11505
  startText: extractValue.asOptionalString(node.props.startText),
@@ -11486,7 +11518,7 @@ const DropdownMenuSubContent = "_DropdownMenuSubContent_iu9k6_19";
11486
11518
  const DropdownMenuItem = "_DropdownMenuItem_iu9k6_29";
11487
11519
  const DropdownMenuSubTrigger = "_DropdownMenuSubTrigger_iu9k6_30";
11488
11520
  const active$2 = "_active_iu9k6_53";
11489
- const disabled$7 = "_disabled_iu9k6_63";
11521
+ const disabled$8 = "_disabled_iu9k6_63";
11490
11522
  const wrapper$h = "_wrapper_iu9k6_74";
11491
11523
  const DropdownMenuSeparator = "_DropdownMenuSeparator_iu9k6_78";
11492
11524
  const styles$Y = {
@@ -11496,7 +11528,7 @@ const styles$Y = {
11496
11528
  DropdownMenuItem,
11497
11529
  DropdownMenuSubTrigger,
11498
11530
  active: active$2,
11499
- disabled: disabled$7,
11531
+ disabled: disabled$8,
11500
11532
  wrapper: wrapper$h,
11501
11533
  DropdownMenuSeparator
11502
11534
  };
@@ -12260,7 +12292,7 @@ const FileUploadDropZone = forwardRef(function FileUploadDropZone2({
12260
12292
  }, forwardedRef) {
12261
12293
  const accept = acceptedFileTypes ? acceptedFileTypes.split(",").reduce((acc, type) => ({ ...acc, [type.trim()]: [] }), {}) : void 0;
12262
12294
  const onDrop = useCallback(
12263
- async (acceptedFiles) => {
12295
+ (acceptedFiles) => {
12264
12296
  if (!acceptedFiles.length) {
12265
12297
  return;
12266
12298
  }
@@ -12776,14 +12808,15 @@ function backendValidationArrived({
12776
12808
  };
12777
12809
  }
12778
12810
  const themeVars$B = `'{"padding-ModalDialog": "var(--xmlui-padding-ModalDialog)", "paddingHorizontal-ModalDialog": "var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingVertical-ModalDialog": "var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingLeft-ModalDialog": "var(--xmlui-paddingLeft-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingRight-ModalDialog": "var(--xmlui-paddingRight-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingTop-ModalDialog": "var(--xmlui-paddingTop-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingBottom-ModalDialog": "var(--xmlui-paddingBottom-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "padding-overlay-ModalDialog": "var(--xmlui-padding-overlay-ModalDialog)", "paddingHorizontal-overlay-ModalDialog": "var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingVertical-overlay-ModalDialog": "var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingLeft-overlay-ModalDialog": "var(--xmlui-paddingLeft-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingRight-overlay-ModalDialog": "var(--xmlui-paddingRight-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingTop-overlay-ModalDialog": "var(--xmlui-paddingTop-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingBottom-overlay-ModalDialog": "var(--xmlui-paddingBottom-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "Dialog:backgroundColor-ModalDialog": "var(--xmlui-backgroundColor-ModalDialog)", "Dialog:backgroundColor-overlay-ModalDialog": "var(--xmlui-backgroundColor-overlay-ModalDialog)", "Dialog:borderRadius-ModalDialog": "var(--xmlui-borderRadius-ModalDialog)", "Dialog:fontFamily-ModalDialog": "var(--xmlui-fontFamily-ModalDialog)", "Dialog:textColor-ModalDialog": "var(--xmlui-textColor-ModalDialog)", "Dialog:minWidth-ModalDialog": "var(--xmlui-minWidth-ModalDialog)", "Dialog:maxWidth-ModalDialog": "var(--xmlui-maxWidth-ModalDialog)", "Dialog:marginBottom-title-ModalDialog": "var(--xmlui-marginBottom-title-ModalDialog)"}'`;
12779
- const overlay$2 = "_overlay_r7ppn_14";
12780
- const fullScreen = "_fullScreen_r7ppn_22";
12781
- const content$6 = "_content_r7ppn_28";
12782
- const overlayBg$1 = "_overlayBg_r7ppn_37";
12783
- const nested = "_nested_r7ppn_43";
12784
- const dialogTitle = "_dialogTitle_r7ppn_78";
12785
- const innerContent = "_innerContent_r7ppn_83";
12786
- const closeButton = "_closeButton_r7ppn_108";
12811
+ const overlay$2 = "_overlay_do4x4_14";
12812
+ const fullScreen = "_fullScreen_do4x4_22";
12813
+ const content$6 = "_content_do4x4_28";
12814
+ const overlayBg$1 = "_overlayBg_do4x4_37";
12815
+ const nested = "_nested_do4x4_43";
12816
+ const contentAnimation = "_contentAnimation_do4x4_74";
12817
+ const dialogTitle = "_dialogTitle_do4x4_80";
12818
+ const innerContent = "_innerContent_do4x4_85";
12819
+ const closeButton = "_closeButton_do4x4_110";
12787
12820
  const styles$S = {
12788
12821
  themeVars: themeVars$B,
12789
12822
  overlay: overlay$2,
@@ -12791,6 +12824,7 @@ const styles$S = {
12791
12824
  content: content$6,
12792
12825
  overlayBg: overlayBg$1,
12793
12826
  nested,
12827
+ contentAnimation,
12794
12828
  dialogTitle,
12795
12829
  innerContent,
12796
12830
  closeButton
@@ -12889,6 +12923,7 @@ const ModalDialog = React__default.forwardRef(
12889
12923
  className,
12890
12924
  onOpen,
12891
12925
  onClose,
12926
+ externalAnimation = true,
12892
12927
  ...rest
12893
12928
  }, ref) => {
12894
12929
  const { root: root2 } = useTheme();
@@ -12937,7 +12972,13 @@ const ModalDialog = React__default.forwardRef(
12937
12972
  {
12938
12973
  ...rest,
12939
12974
  "data-part-id": PART_CONTENT,
12940
- className: classnames(styles$S.content, className),
12975
+ className: classnames(
12976
+ {
12977
+ [styles$S.contentAnimation]: !externalAnimation
12978
+ },
12979
+ styles$S.content,
12980
+ className
12981
+ ),
12941
12982
  onPointerDownOutside: (event) => {
12942
12983
  if (event.target instanceof Element && (event.target.closest("._debug-inspect-button") !== null || event.target.localName === "com-1password-button")) {
12943
12984
  event.preventDefault();
@@ -13883,7 +13924,7 @@ function useValidation(validations, onValidate, value, dispatch, bindTo, throttl
13883
13924
  if (!ignore) {
13884
13925
  dispatch(fieldValidated(bindTo, partialResult));
13885
13926
  if (partialResult.partial) {
13886
- (async () => {
13927
+ void (async () => {
13887
13928
  const result = await throttledAsyncValidate(validations, onValidate, deferredValue);
13888
13929
  if (!ignore) {
13889
13930
  dispatch(fieldValidated(bindTo, result));
@@ -13899,7 +13940,7 @@ function useValidation(validations, onValidate, value, dispatch, bindTo, throttl
13899
13940
  );
13900
13941
  }
13901
13942
  function useValidationDisplay(bindTo, value, validationResult, validationMode = defaultValidationMode) {
13902
- const interactionFlags = useFormContextPart((value2) => value2.interactionFlags[bindTo]) || EMPTY_OBJECT;
13943
+ const interactionFlags = useFormContextPart((value2) => value2 == null ? void 0 : value2.interactionFlags[bindTo]) || EMPTY_OBJECT;
13903
13944
  const forceShowValidationResult = interactionFlags.forceShowValidationResult;
13904
13945
  const focused2 = interactionFlags.focused;
13905
13946
  const afterFirstDirtyBlur = interactionFlags.afterFirstDirtyBlur;
@@ -14220,7 +14261,7 @@ const Form = forwardRef(function({
14220
14261
  ]);
14221
14262
  const doCancel = useEvent(() => {
14222
14263
  onCancel == null ? void 0 : onCancel();
14223
- requestModalFormClose();
14264
+ void requestModalFormClose();
14224
14265
  });
14225
14266
  const doSubmit = useEvent(async (event) => {
14226
14267
  var _a2;
@@ -14250,7 +14291,7 @@ const Form = forwardRef(function({
14250
14291
  dispatch(formSubmitted());
14251
14292
  await (onSuccess == null ? void 0 : onSuccess(result));
14252
14293
  if (!keepModalOpenOnSubmit) {
14253
- requestModalFormClose();
14294
+ void requestModalFormClose();
14254
14295
  }
14255
14296
  if (initialValue === EMPTY_OBJECT) {
14256
14297
  flushSync(() => {
@@ -14430,13 +14471,15 @@ const FormWithContextVar = forwardRef(function({
14430
14471
  const completedNotificationMessage = extractValue.asOptionalString(node.props.completedNotificationMessage) || "";
14431
14472
  const errorNotificationMessage = extractValue.asOptionalString(node.props.errorNotificationMessage) || "";
14432
14473
  const submitUrl = extractValue.asOptionalString(node.props.submitUrl) || extractValue.asOptionalString(node.props._data_url);
14474
+ const itemLabelWidth = extractValue.asOptionalString(node.props.itemLabelWidth);
14475
+ const { cssProps: itemLabelWidthCssProps } = resolveLayoutProps({ width: itemLabelWidth });
14433
14476
  return /* @__PURE__ */ jsx(Slot, { ref, style: style2, children: /* @__PURE__ */ jsx(
14434
14477
  Form,
14435
14478
  {
14436
14479
  keepModalOpenOnSubmit: extractValue.asOptionalBoolean(node.props.keepModalOpenOnSubmit),
14437
14480
  itemLabelPosition: extractValue.asOptionalString(node.props.itemLabelPosition),
14438
14481
  itemLabelBreak: extractValue.asOptionalBoolean(node.props.itemLabelBreak),
14439
- itemLabelWidth: extractValue.asOptionalString(node.props.itemLabelWidth),
14482
+ itemLabelWidth: itemLabelWidthCssProps.width,
14440
14483
  hideButtonRowUntilDirty: extractValue.asOptionalBoolean(node.props.hideButtonRowUntilDirty),
14441
14484
  formState,
14442
14485
  dispatch,
@@ -14990,7 +15033,6 @@ class Lexer {
14990
15033
  * Fetches the next token from the input stream
14991
15034
  */
14992
15035
  fetch() {
14993
- const lexer = this;
14994
15036
  const input2 = this.input;
14995
15037
  const startPos = this._prefetchedPos || input2.position;
14996
15038
  const line2 = input2.line;
@@ -15003,6 +15045,14 @@ class Lexer {
15003
15045
  let lastEndColumn = input2.column;
15004
15046
  let ch = null;
15005
15047
  let useResolver = false;
15048
+ const appendTokenChar = () => {
15049
+ text2 += ch;
15050
+ this._prefetched = null;
15051
+ this._prefetchedPos = null;
15052
+ this._prefetchedColumn = null;
15053
+ lastEndPos = input2.position;
15054
+ lastEndColumn = input2.position;
15055
+ };
15006
15056
  let phase = this.getStartingPhaseThenReset();
15007
15057
  while (true) {
15008
15058
  ch = this.fetchNextChar();
@@ -15591,14 +15641,6 @@ class Lexer {
15591
15641
  }
15592
15642
  appendTokenChar();
15593
15643
  }
15594
- function appendTokenChar() {
15595
- text2 += ch;
15596
- lexer._prefetched = null;
15597
- lexer._prefetchedPos = null;
15598
- lexer._prefetchedColumn = null;
15599
- lastEndPos = input2.position;
15600
- lastEndColumn = input2.position;
15601
- }
15602
15644
  function makeToken() {
15603
15645
  if (useResolver) {
15604
15646
  tokenType = resolverHash.get(text2) ?? (isIdStart(text2[0]) && text2[text2.length - 1] !== "'" ? TokenType.Identifier : TokenType.Unknown);
@@ -16707,9 +16749,16 @@ class Parser {
16707
16749
  * : "finally" blockStatement
16708
16750
  */
16709
16751
  parseTryStatement() {
16752
+ const getBlock = () => {
16753
+ const nextToken2 = this._lexer.peek();
16754
+ if (nextToken2.type !== TokenType.LBrace) {
16755
+ this.reportError("W012", nextToken2);
16756
+ return null;
16757
+ }
16758
+ return this.parseBlockStatement();
16759
+ };
16710
16760
  const startToken = this._lexer.peek();
16711
16761
  let endToken = this._lexer.get();
16712
- const parser = this;
16713
16762
  const tryB = getBlock();
16714
16763
  let catchB;
16715
16764
  let catchV;
@@ -16761,14 +16810,6 @@ class Parser {
16761
16810
  startToken,
16762
16811
  endToken
16763
16812
  );
16764
- function getBlock() {
16765
- const nextToken2 = parser._lexer.peek();
16766
- if (nextToken2.type !== TokenType.LBrace) {
16767
- parser.reportError("W012", nextToken2);
16768
- return null;
16769
- }
16770
- return parser.parseBlockStatement();
16771
- }
16772
16813
  }
16773
16814
  /**
16774
16815
  * Parses a switch statement
@@ -19790,7 +19831,7 @@ function processStatementQueue(statements, evalContext, thread) {
19790
19831
  thread.breakLabelValue = queue.length > 0 ? queue.peek().label : -1;
19791
19832
  let outcome;
19792
19833
  try {
19793
- (_a2 = evalContext == null ? void 0 : evalContext.onStatementStarted) == null ? void 0 : _a2.call(evalContext, evalContext, queueItem.statement);
19834
+ void ((_a2 = evalContext == null ? void 0 : evalContext.onStatementStarted) == null ? void 0 : _a2.call(evalContext, evalContext, queueItem.statement));
19794
19835
  outcome = processStatement(
19795
19836
  queueItem.statement,
19796
19837
  queueItem.execInfo ?? {},
@@ -19830,7 +19871,7 @@ function processStatementQueue(statements, evalContext, thread) {
19830
19871
  diagInfo.clearToLabels++;
19831
19872
  }
19832
19873
  }
19833
- (_b = evalContext == null ? void 0 : evalContext.onStatementCompleted) == null ? void 0 : _b.call(evalContext, evalContext, queueItem.statement);
19874
+ void ((_b = evalContext == null ? void 0 : evalContext.onStatementCompleted) == null ? void 0 : _b.call(evalContext, evalContext, queueItem.statement));
19834
19875
  if (queue.length > diagInfo.maxQueueLength) {
19835
19876
  diagInfo.maxQueueLength = queue.length;
19836
19877
  }
@@ -20547,7 +20588,7 @@ function evalAssignment(evaluator, thisStack, expr, evalContext, thread) {
20547
20588
  const rootScope = getRootIdScope(leftValue, evalContext, thread);
20548
20589
  const updatesState = rootScope && rootScope.type !== "block";
20549
20590
  if (updatesState && evalContext.onWillUpdate) {
20550
- evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
20591
+ void evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
20551
20592
  }
20552
20593
  evaluator(thisStack, leftValue, evalContext, thread);
20553
20594
  thisStack.pop();
@@ -20555,7 +20596,7 @@ function evalAssignment(evaluator, thisStack, expr, evalContext, thread) {
20555
20596
  thisStack.pop();
20556
20597
  const value = evalAssignmentCore(thisStack, expr, evalContext, thread);
20557
20598
  if (updatesState && evalContext.onDidUpdate) {
20558
- evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
20599
+ void evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
20559
20600
  }
20560
20601
  return value;
20561
20602
  }
@@ -20563,13 +20604,13 @@ function evalPreOrPost(evaluator, thisStack, expr, evalContext, thread) {
20563
20604
  const rootScope = getRootIdScope(expr.expr, evalContext, thread);
20564
20605
  const updatesState = rootScope && rootScope.type !== "block";
20565
20606
  if (updatesState && evalContext.onWillUpdate) {
20566
- evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
20607
+ void evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
20567
20608
  }
20568
20609
  evaluator(thisStack, expr.expr, evalContext, thread);
20569
20610
  thisStack.pop();
20570
20611
  const value = evalPreOrPostCore(thisStack, expr, evalContext, thread);
20571
20612
  if (updatesState && evalContext.onDidUpdate) {
20572
- evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
20613
+ void evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
20573
20614
  }
20574
20615
  return value;
20575
20616
  }
@@ -20648,11 +20689,11 @@ function evalFunctionInvocation(evaluator, thisStack, expr, evalContext, thread)
20648
20689
  const rootScope = getRootIdScope(expr.obj, evalContext, thread);
20649
20690
  const updatesState = rootScope && rootScope.type !== "block";
20650
20691
  if (updatesState && evalContext.onWillUpdate) {
20651
- evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
20692
+ void evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
20652
20693
  }
20653
20694
  const value = ((_b = evalContext.options) == null ? void 0 : _b.defaultToOptionalMemberAccess) ? functionObj == null ? void 0 : functionObj.call(currentContext, ...functionArgs) : functionObj.call(currentContext, ...functionArgs);
20654
20695
  if (updatesState && evalContext.onDidUpdate) {
20655
- evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
20696
+ void evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
20656
20697
  }
20657
20698
  setExprValue(expr, { value }, thread);
20658
20699
  thisStack.push(value);
@@ -21824,62 +21865,99 @@ function useLongPress(elementRef, action2, delay2 = 500) {
21824
21865
  };
21825
21866
  }, [elementRef, action2, delay2]);
21826
21867
  }
21827
- const themeVars$y = `'{"padding-item-Select": "var(--xmlui-padding-item-Select)", "paddingHorizontal-item-Select": "var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select))", "paddingVertical-item-Select": "var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select))", "paddingLeft-item-Select": "var(--xmlui-paddingLeft-item-Select, var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select)))", "paddingRight-item-Select": "var(--xmlui-paddingRight-item-Select, var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select)))", "paddingTop-item-Select": "var(--xmlui-paddingTop-item-Select, var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select)))", "paddingBottom-item-Select": "var(--xmlui-paddingBottom-item-Select, var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select)))", "padding-Select": "var(--xmlui-padding-Select)", "paddingHorizontal-Select": "var(--xmlui-paddingHorizontal-Select, var(--xmlui-padding-Select))", "paddingVertical-Select": "var(--xmlui-paddingVertical-Select, var(--xmlui-padding-Select))", "paddingLeft-Select": "var(--xmlui-paddingLeft-Select, var(--xmlui-paddingHorizontal-Select, var(--xmlui-padding-Select)))", "paddingRight-Select": "var(--xmlui-paddingRight-Select, var(--xmlui-paddingHorizontal-Select, var(--xmlui-padding-Select)))", "paddingTop-Select": "var(--xmlui-paddingTop-Select, var(--xmlui-paddingVertical-Select, var(--xmlui-padding-Select)))", "paddingBottom-Select": "var(--xmlui-paddingBottom-Select, var(--xmlui-paddingVertical-Select, var(--xmlui-padding-Select)))", "Input:fontSize-Select-default": "var(--xmlui-fontSize-Select-default)", "Input:textColor-placeholder-Select-default": "var(--xmlui-textColor-placeholder-Select-default)", "Input:textColor-Select-default": "var(--xmlui-textColor-Select-default)", "Input:fontSize-Select-error": "var(--xmlui-fontSize-Select-error)", "Input:textColor-placeholder-Select-error": "var(--xmlui-textColor-placeholder-Select-error)", "Input:textColor-Select-error": "var(--xmlui-textColor-Select-error)", "Input:fontSize-Select-warning": "var(--xmlui-fontSize-Select-warning)", "Input:textColor-placeholder-Select-warning": "var(--xmlui-textColor-placeholder-Select-warning)", "Input:textColor-Select-warning": "var(--xmlui-textColor-Select-warning)", "Input:fontSize-Select-success": "var(--xmlui-fontSize-Select-success)", "Input:textColor-placeholder-Select-success": "var(--xmlui-textColor-placeholder-Select-success)", "Input:textColor-Select-success": "var(--xmlui-textColor-Select-success)", "Input:borderRadius-Select-default": "var(--xmlui-borderRadius-Select-default)", "Input:borderColor-Select-default": "var(--xmlui-borderColor-Select-default)", "Input:borderWidth-Select-default": "var(--xmlui-borderWidth-Select-default)", "Input:borderStyle-Select-default": "var(--xmlui-borderStyle-Select-default)", "Input:backgroundColor-Select-default": "var(--xmlui-backgroundColor-Select-default)", "Input:boxShadow-Select-default": "var(--xmlui-boxShadow-Select-default)", "Input:borderColor-Select-default--hover": "var(--xmlui-borderColor-Select-default--hover)", "Input:backgroundColor-Select-default--hover": "var(--xmlui-backgroundColor-Select-default--hover)", "Input:boxShadow-Select-default--hover": "var(--xmlui-boxShadow-Select-default--hover)", "Input:textColor-Select-default--hover": "var(--xmlui-textColor-Select-default--hover)", "Input:outlineWidth-Select-default--focus": "var(--xmlui-outlineWidth-Select-default--focus)", "Input:outlineColor-Select-default--focus": "var(--xmlui-outlineColor-Select-default--focus)", "Input:outlineStyle-Select-default--focus": "var(--xmlui-outlineStyle-Select-default--focus)", "Input:outlineOffset-Select-default--focus": "var(--xmlui-outlineOffset-Select-default--focus)", "Input:fontSize-placeholder-Select-default": "var(--xmlui-fontSize-placeholder-Select-default)", "Input:borderRadius-Select-error": "var(--xmlui-borderRadius-Select-error)", "Input:borderColor-Select-error": "var(--xmlui-borderColor-Select-error)", "Input:borderWidth-Select-error": "var(--xmlui-borderWidth-Select-error)", "Input:borderStyle-Select-error": "var(--xmlui-borderStyle-Select-error)", "Input:backgroundColor-Select-error": "var(--xmlui-backgroundColor-Select-error)", "Input:boxShadow-Select-error": "var(--xmlui-boxShadow-Select-error)", "Input:borderColor-Select-error--hover": "var(--xmlui-borderColor-Select-error--hover)", "Input:backgroundColor-Select-error--hover": "var(--xmlui-backgroundColor-Select-error--hover)", "Input:boxShadow-Select-error--hover": "var(--xmlui-boxShadow-Select-error--hover)", "Input:textColor-Select-error--hover": "var(--xmlui-textColor-Select-error--hover)", "Input:outlineWidth-Select-error--focus": "var(--xmlui-outlineWidth-Select-error--focus)", "Input:outlineColor-Select-error--focus": "var(--xmlui-outlineColor-Select-error--focus)", "Input:outlineStyle-Select-error--focus": "var(--xmlui-outlineStyle-Select-error--focus)", "Input:outlineOffset-Select-error--focus": "var(--xmlui-outlineOffset-Select-error--focus)", "Input:fontSize-placeholder-Select-error": "var(--xmlui-fontSize-placeholder-Select-error)", "Input:borderRadius-Select-warning": "var(--xmlui-borderRadius-Select-warning)", "Input:borderColor-Select-warning": "var(--xmlui-borderColor-Select-warning)", "Input:borderWidth-Select-warning": "var(--xmlui-borderWidth-Select-warning)", "Input:borderStyle-Select-warning": "var(--xmlui-borderStyle-Select-warning)", "Input:backgroundColor-Select-warning": "var(--xmlui-backgroundColor-Select-warning)", "Input:boxShadow-Select-warning": "var(--xmlui-boxShadow-Select-warning)", "Input:borderColor-Select-warning--hover": "var(--xmlui-borderColor-Select-warning--hover)", "Input:backgroundColor-Select-warning--hover": "var(--xmlui-backgroundColor-Select-warning--hover)", "Input:boxShadow-Select-warning--hover": "var(--xmlui-boxShadow-Select-warning--hover)", "Input:textColor-Select-warning--hover": "var(--xmlui-textColor-Select-warning--hover)", "Input:outlineWidth-Select-warning--focus": "var(--xmlui-outlineWidth-Select-warning--focus)", "Input:outlineColor-Select-warning--focus": "var(--xmlui-outlineColor-Select-warning--focus)", "Input:outlineStyle-Select-warning--focus": "var(--xmlui-outlineStyle-Select-warning--focus)", "Input:outlineOffset-Select-warning--focus": "var(--xmlui-outlineOffset-Select-warning--focus)", "Input:fontSize-placeholder-Select-warning": "var(--xmlui-fontSize-placeholder-Select-warning)", "Input:borderRadius-Select-success": "var(--xmlui-borderRadius-Select-success)", "Input:borderColor-Select-success": "var(--xmlui-borderColor-Select-success)", "Input:borderWidth-Select-success": "var(--xmlui-borderWidth-Select-success)", "Input:borderStyle-Select-success": "var(--xmlui-borderStyle-Select-success)", "Input:backgroundColor-Select-success": "var(--xmlui-backgroundColor-Select-success)", "Input:boxShadow-Select-success": "var(--xmlui-boxShadow-Select-success)", "Input:borderColor-Select-success--hover": "var(--xmlui-borderColor-Select-success--hover)", "Input:backgroundColor-Select-success--hover": "var(--xmlui-backgroundColor-Select-success--hover)", "Input:boxShadow-Select-success--hover": "var(--xmlui-boxShadow-Select-success--hover)", "Input:textColor-Select-success--hover": "var(--xmlui-textColor-Select-success--hover)", "Input:outlineWidth-Select-success--focus": "var(--xmlui-outlineWidth-Select-success--focus)", "Input:outlineColor-Select-success--focus": "var(--xmlui-outlineColor-Select-success--focus)", "Input:outlineStyle-Select-success--focus": "var(--xmlui-outlineStyle-Select-success--focus)", "Input:outlineOffset-Select-success--focus": "var(--xmlui-outlineOffset-Select-success--focus)", "Input:fontSize-placeholder-Select-success": "var(--xmlui-fontSize-placeholder-Select-success)", "opacity-Select--disabled": "var(--xmlui-opacity-Select--disabled)", "Input:backgroundColor-Select--disabled": "var(--xmlui-backgroundColor-Select--disabled)", "Input:textColor-Select--disabled": "var(--xmlui-textColor-Select--disabled)", "Input:borderColor-Select--disabled": "var(--xmlui-borderColor-Select--disabled)", "paddingVertical-Select-badge": "var(--xmlui-paddingVertical-Select-badge)", "paddingHorizontal-Select-badge": "var(--xmlui-paddingHorizontal-Select-badge)", "borderRadius-Select-badge": "var(--xmlui-borderRadius-Select-badge)", "Input:fontSize-Select-badge": "var(--xmlui-fontSize-Select-badge)", "Input:backgroundColor-Select-badge": "var(--xmlui-backgroundColor-Select-badge)", "Input:textColor-Select-badge": "var(--xmlui-textColor-Select-badge)", "Input:backgroundColor-Select-badge--hover": "var(--xmlui-backgroundColor-Select-badge--hover)", "Input:textColor-Select-badge--hover": "var(--xmlui-textColor-Select-badge--hover)", "Input:backgroundColor-Select-badge--active": "var(--xmlui-backgroundColor-Select-badge--active)", "Input:textColor-Select-badge--active": "var(--xmlui-textColor-Select-badge--active)", "Input:textColor-placeholder-Select": "var(--xmlui-textColor-placeholder-Select)", "Input:backgroundColor-menu-Select": "var(--xmlui-backgroundColor-menu-Select)", "Input:borderRadius-menu-Select": "var(--xmlui-borderRadius-menu-Select)", "Input:boxShadow-menu-Select": "var(--xmlui-boxShadow-menu-Select)", "Input:borderWidth-menu-Select": "var(--xmlui-borderWidth-menu-Select)", "Input:borderColor-menu-Select": "var(--xmlui-borderColor-menu-Select)", "backgroundColor-item-Select": "var(--xmlui-backgroundColor-item-Select)", "backgroundColor-item-Select--hover": "var(--xmlui-backgroundColor-item-Select--hover)", "opacity-text-item-Select--disabled": "var(--xmlui-opacity-text-item-Select--disabled)", "fontSize-Select": "var(--xmlui-fontSize-Select)", "backgroundColor-item-Select--active": "var(--xmlui-backgroundColor-item-Select--active)", "textColor-indicator-Select": "var(--xmlui-textColor-indicator-Select)"}'`;
21828
- const selectValue = "_selectValue_1gf24_14";
21829
- const error$8 = "_error_1gf24_22";
21830
- const warning$9 = "_warning_1gf24_30";
21831
- const valid$8 = "_valid_1gf24_38";
21832
- const selectTrigger = "_selectTrigger_1gf24_46";
21833
- const badgeListContainer = "_badgeListContainer_1gf24_176";
21834
- const badgeList$1 = "_badgeList_1gf24_176";
21835
- const badge$1 = "_badge_1gf24_176";
21836
- const actions$1 = "_actions_1gf24_213";
21837
- const placeholder = "_placeholder_1gf24_218";
21838
- const emptyList = "_emptyList_1gf24_222";
21839
- const selectScrollUpButton = "_selectScrollUpButton_1gf24_231";
21840
- const selectScrollDownButton = "_selectScrollDownButton_1gf24_239";
21841
- const command$1 = "_command_1gf24_247";
21842
- const commandInputContainer = "_commandInputContainer_1gf24_256";
21843
- const commandInput$1 = "_commandInput_1gf24_256";
21844
- const commandList$1 = "_commandList_1gf24_279";
21845
- const selectContent = "_selectContent_1gf24_283";
21846
- const fadeIn = "_fadeIn_1gf24_1";
21847
- const zoomIn = "_zoomIn_1gf24_1";
21848
- const fadeOut = "_fadeOut_1gf24_1";
21849
- const zoomOut = "_zoomOut_1gf24_1";
21850
- const slideInFromTop = "_slideInFromTop_1gf24_1";
21851
- const slideInFromRight = "_slideInFromRight_1gf24_1";
21852
- const slideInFromLeft = "_slideInFromLeft_1gf24_1";
21853
- const slideInFromBottom = "_slideInFromBottom_1gf24_1";
21854
- const multiComboboxOption = "_multiComboboxOption_1gf24_324";
21855
- const multiComboboxOptionContent = "_multiComboboxOptionContent_1gf24_324";
21856
- const selectItem = "_selectItem_1gf24_348";
21857
- const selectItemContent = "_selectItemContent_1gf24_363";
21858
- const selectItemIndicator = "_selectItemIndicator_1gf24_382";
21859
- const selectViewport = "_selectViewport_1gf24_392";
21860
- const selectEmpty = "_selectEmpty_1gf24_397";
21861
- const loading = "_loading_1gf24_407";
21862
- const srOnly = "_srOnly_1gf24_410";
21868
+ const SelectContext = createContext({
21869
+ value: null,
21870
+ onChange: (selectedValue) => {
21871
+ },
21872
+ setOpen: (open) => {
21873
+ },
21874
+ setSelectedIndex: (index) => {
21875
+ },
21876
+ options: /* @__PURE__ */ new Set(),
21877
+ optionRenderer: void 0
21878
+ });
21879
+ function useSelect() {
21880
+ return useContext(SelectContext);
21881
+ }
21882
+ const OptionContext = createContext({
21883
+ onOptionAdd: () => {
21884
+ },
21885
+ onOptionRemove: () => {
21886
+ }
21887
+ });
21888
+ function useOption() {
21889
+ return useContext(OptionContext);
21890
+ }
21891
+ const themeVars$y = `'{"border-Select": "var(--xmlui-border-Select)", "borderHorizontal-Select": "var(--xmlui-borderHorizontal-Select, var(--xmlui-border-Select))", "borderVertical-Select": "var(--xmlui-borderVertical-Select, var(--xmlui-border-Select))", "borderLeft-Select": "var(--xmlui-borderLeft-Select, var(--xmlui-borderHorizontal-Select, var(--xmlui-border-Select)))", "borderRight-Select": "var(--xmlui-borderRight-Select, var(--xmlui-borderHorizontal-Select, var(--xmlui-border-Select)))", "borderTop-Select": "var(--xmlui-borderTop-Select, var(--xmlui-borderVertical-Select, var(--xmlui-border-Select)))", "borderBottom-Select": "var(--xmlui-borderBottom-Select, var(--xmlui-borderVertical-Select, var(--xmlui-border-Select)))", "borderWidth-Select": "var(--xmlui-borderWidth-Select)", "borderHorizontalWidth-Select": "var(--xmlui-borderHorizontalWidth-Select, var(--xmlui-borderWidth-Select))", "borderLeftWidth-Select": "var(--xmlui-borderLeftWidth-Select, var(--xmlui-borderHorizontalWidth-Select, var(--xmlui-borderWidth-Select)))", "borderRightWidth-Select": "var(--xmlui-borderRightWidth-Select, var(--xmlui-borderHorizontalWidth-Select, var(--xmlui-borderWidth-Select)))", "borderVerticalWidth-Select": "var(--xmlui-borderVerticalWidth-Select, var(--xmlui-borderWidth-Select))", "borderTopWidth-Select": "var(--xmlui-borderTopWidth-Select, var(--xmlui-borderVerticalWidth-Select, var(--xmlui-borderWidth-Select)))", "borderBottomWidth-Select": "var(--xmlui-borderBottomWidth-Select, var(--xmlui-borderVerticalWidth-Select, var(--xmlui-borderWidth-Select)))", "borderStyle-Select": "var(--xmlui-borderStyle-Select)", "borderHorizontalStyle-Select": "var(--xmlui-borderHorizontalStyle-Select, var(--xmlui-borderStyle-Select))", "borderLeftStyle-Select": "var(--xmlui-borderLeftStyle-Select, var(--xmlui-borderHorizontalStyle-Select, var(--xmlui-borderStyle-Select)))", "borderRightStyle-Select": "var(--xmlui-borderRightStyle-Select, var(--xmlui-borderHorizontalStyle-Select, var(--xmlui-borderStyle-Select)))", "borderVerticalStyle-Select": "var(--xmlui-borderVerticalStyle-Select, var(--xmlui-borderStyle-Select))", "borderTopStyle-Select": "var(--xmlui-borderTopStyle-Select, var(--xmlui-borderVerticalStyle-Select, var(--xmlui-borderStyle-Select)))", "borderBottomStyle-Select": "var(--xmlui-borderBottomStyle-Select, var(--xmlui-borderVerticalStyle-Select, var(--xmlui-borderStyle-Select)))", "borderColor-Select": "var(--xmlui-borderColor-Select)", "borderHorizontalColor-Select": "var(--xmlui-borderHorizontalColor-Select, var(--xmlui-borderColor-Select))", "borderLeftColor-Select": "var(--xmlui-borderLeftColor-Select, var(--xmlui-borderHorizontalColor-Select, var(--xmlui-borderColor-Select)))", "borderRightColor-Select": "var(--xmlui-borderRightColor-Select, var(--xmlui-borderHorizontalColor-Select, var(--xmlui-borderColor-Select)))", "borderVerticalColor-Select": "var(--xmlui-borderVerticalColor-Select, var(--xmlui-borderColor-Select))", "borderTopColor-Select": "var(--xmlui-borderTopColor-Select, var(--xmlui-borderVerticalColor-Select, var(--xmlui-borderColor-Select)))", "borderBottomColor-Select": "var(--xmlui-borderBottomColor-Select, var(--xmlui-borderVerticalColor-Select, var(--xmlui-borderColor-Select)))", "borderStartStartRadius-Select": "var(--xmlui-borderStartStartRadius-Select, var(--xmlui-borderRadius-Select))", "borderStartEndRadius-Select": "var(--xmlui-borderStartEndRadius-Select, var(--xmlui-borderRadius-Select))", "borderEndStartRadius-Select": "var(--xmlui-borderEndStartRadius-Select, var(--xmlui-borderRadius-Select))", "borderEndEndRadius-Select": "var(--xmlui-borderEndEndRadius-Select, var(--xmlui-borderRadius-Select))", "padding-Select": "var(--xmlui-padding-Select)", "paddingHorizontal-Select": "var(--xmlui-paddingHorizontal-Select, var(--xmlui-padding-Select))", "paddingVertical-Select": "var(--xmlui-paddingVertical-Select, var(--xmlui-padding-Select))", "paddingLeft-Select": "var(--xmlui-paddingLeft-Select, var(--xmlui-paddingHorizontal-Select, var(--xmlui-padding-Select)))", "paddingRight-Select": "var(--xmlui-paddingRight-Select, var(--xmlui-paddingHorizontal-Select, var(--xmlui-padding-Select)))", "paddingTop-Select": "var(--xmlui-paddingTop-Select, var(--xmlui-paddingVertical-Select, var(--xmlui-padding-Select)))", "paddingBottom-Select": "var(--xmlui-paddingBottom-Select, var(--xmlui-paddingVertical-Select, var(--xmlui-padding-Select)))", "padding-item-Select": "var(--xmlui-padding-item-Select)", "paddingHorizontal-item-Select": "var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select))", "paddingVertical-item-Select": "var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select))", "paddingLeft-item-Select": "var(--xmlui-paddingLeft-item-Select, var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select)))", "paddingRight-item-Select": "var(--xmlui-paddingRight-item-Select, var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select)))", "paddingTop-item-Select": "var(--xmlui-paddingTop-item-Select, var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select)))", "paddingBottom-item-Select": "var(--xmlui-paddingBottom-item-Select, var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select)))", "Input:borderRadius-Select-default": "var(--xmlui-borderRadius-Select-default)", "Input:borderColor-Select-default": "var(--xmlui-borderColor-Select-default)", "Input:borderWidth-Select-default": "var(--xmlui-borderWidth-Select-default)", "Input:borderStyle-Select-default": "var(--xmlui-borderStyle-Select-default)", "Input:fontSize-Select-default": "var(--xmlui-fontSize-Select-default)", "Input:backgroundColor-Select-default": "var(--xmlui-backgroundColor-Select-default)", "Input:boxShadow-Select-default": "var(--xmlui-boxShadow-Select-default)", "Input:textColor-Select-default": "var(--xmlui-textColor-Select-default)", "Input:borderColor-Select-default--hover": "var(--xmlui-borderColor-Select-default--hover)", "Input:backgroundColor-Select-default--hover": "var(--xmlui-backgroundColor-Select-default--hover)", "Input:boxShadow-Select-default--hover": "var(--xmlui-boxShadow-Select-default--hover)", "Input:textColor-Select-default--hover": "var(--xmlui-textColor-Select-default--hover)", "Input:outlineWidth-Select-default--focus": "var(--xmlui-outlineWidth-Select-default--focus)", "Input:outlineColor-Select-default--focus": "var(--xmlui-outlineColor-Select-default--focus)", "Input:outlineStyle-Select-default--focus": "var(--xmlui-outlineStyle-Select-default--focus)", "Input:outlineOffset-Select-default--focus": "var(--xmlui-outlineOffset-Select-default--focus)", "Input:textColor-placeholder-Select-default": "var(--xmlui-textColor-placeholder-Select-default)", "Input:fontSize-placeholder-Select-default": "var(--xmlui-fontSize-placeholder-Select-default)", "Input:borderRadius-Select-error": "var(--xmlui-borderRadius-Select-error)", "Input:borderColor-Select-error": "var(--xmlui-borderColor-Select-error)", "Input:borderWidth-Select-error": "var(--xmlui-borderWidth-Select-error)", "Input:borderStyle-Select-error": "var(--xmlui-borderStyle-Select-error)", "Input:fontSize-Select-error": "var(--xmlui-fontSize-Select-error)", "Input:backgroundColor-Select-error": "var(--xmlui-backgroundColor-Select-error)", "Input:boxShadow-Select-error": "var(--xmlui-boxShadow-Select-error)", "Input:textColor-Select-error": "var(--xmlui-textColor-Select-error)", "Input:borderColor-Select-error--hover": "var(--xmlui-borderColor-Select-error--hover)", "Input:backgroundColor-Select-error--hover": "var(--xmlui-backgroundColor-Select-error--hover)", "Input:boxShadow-Select-error--hover": "var(--xmlui-boxShadow-Select-error--hover)", "Input:textColor-Select-error--hover": "var(--xmlui-textColor-Select-error--hover)", "Input:outlineWidth-Select-error--focus": "var(--xmlui-outlineWidth-Select-error--focus)", "Input:outlineColor-Select-error--focus": "var(--xmlui-outlineColor-Select-error--focus)", "Input:outlineStyle-Select-error--focus": "var(--xmlui-outlineStyle-Select-error--focus)", "Input:outlineOffset-Select-error--focus": "var(--xmlui-outlineOffset-Select-error--focus)", "Input:textColor-placeholder-Select-error": "var(--xmlui-textColor-placeholder-Select-error)", "Input:fontSize-placeholder-Select-error": "var(--xmlui-fontSize-placeholder-Select-error)", "Input:borderRadius-Select-warning": "var(--xmlui-borderRadius-Select-warning)", "Input:borderColor-Select-warning": "var(--xmlui-borderColor-Select-warning)", "Input:borderWidth-Select-warning": "var(--xmlui-borderWidth-Select-warning)", "Input:borderStyle-Select-warning": "var(--xmlui-borderStyle-Select-warning)", "Input:fontSize-Select-warning": "var(--xmlui-fontSize-Select-warning)", "Input:backgroundColor-Select-warning": "var(--xmlui-backgroundColor-Select-warning)", "Input:boxShadow-Select-warning": "var(--xmlui-boxShadow-Select-warning)", "Input:textColor-Select-warning": "var(--xmlui-textColor-Select-warning)", "Input:borderColor-Select-warning--hover": "var(--xmlui-borderColor-Select-warning--hover)", "Input:backgroundColor-Select-warning--hover": "var(--xmlui-backgroundColor-Select-warning--hover)", "Input:boxShadow-Select-warning--hover": "var(--xmlui-boxShadow-Select-warning--hover)", "Input:textColor-Select-warning--hover": "var(--xmlui-textColor-Select-warning--hover)", "Input:outlineWidth-Select-warning--focus": "var(--xmlui-outlineWidth-Select-warning--focus)", "Input:outlineColor-Select-warning--focus": "var(--xmlui-outlineColor-Select-warning--focus)", "Input:outlineStyle-Select-warning--focus": "var(--xmlui-outlineStyle-Select-warning--focus)", "Input:outlineOffset-Select-warning--focus": "var(--xmlui-outlineOffset-Select-warning--focus)", "Input:textColor-placeholder-Select-warning": "var(--xmlui-textColor-placeholder-Select-warning)", "Input:fontSize-placeholder-Select-warning": "var(--xmlui-fontSize-placeholder-Select-warning)", "Input:borderRadius-Select-success": "var(--xmlui-borderRadius-Select-success)", "Input:borderColor-Select-success": "var(--xmlui-borderColor-Select-success)", "Input:borderWidth-Select-success": "var(--xmlui-borderWidth-Select-success)", "Input:borderStyle-Select-success": "var(--xmlui-borderStyle-Select-success)", "Input:fontSize-Select-success": "var(--xmlui-fontSize-Select-success)", "Input:backgroundColor-Select-success": "var(--xmlui-backgroundColor-Select-success)", "Input:boxShadow-Select-success": "var(--xmlui-boxShadow-Select-success)", "Input:textColor-Select-success": "var(--xmlui-textColor-Select-success)", "Input:borderColor-Select-success--hover": "var(--xmlui-borderColor-Select-success--hover)", "Input:backgroundColor-Select-success--hover": "var(--xmlui-backgroundColor-Select-success--hover)", "Input:boxShadow-Select-success--hover": "var(--xmlui-boxShadow-Select-success--hover)", "Input:textColor-Select-success--hover": "var(--xmlui-textColor-Select-success--hover)", "Input:outlineWidth-Select-success--focus": "var(--xmlui-outlineWidth-Select-success--focus)", "Input:outlineColor-Select-success--focus": "var(--xmlui-outlineColor-Select-success--focus)", "Input:outlineStyle-Select-success--focus": "var(--xmlui-outlineStyle-Select-success--focus)", "Input:outlineOffset-Select-success--focus": "var(--xmlui-outlineOffset-Select-success--focus)", "Input:textColor-placeholder-Select-success": "var(--xmlui-textColor-placeholder-Select-success)", "Input:fontSize-placeholder-Select-success": "var(--xmlui-fontSize-placeholder-Select-success)", "Input:backgroundColor-Select--disabled": "var(--xmlui-backgroundColor-Select--disabled)", "Input:textColor-Select--disabled": "var(--xmlui-textColor-Select--disabled)", "Input:borderColor-Select--disabled": "var(--xmlui-borderColor-Select--disabled)", "Input:outlineWidth-Select--focus": "var(--xmlui-outlineWidth-Select--focus)", "Input:outlineColor-Select--focus": "var(--xmlui-outlineColor-Select--focus)", "Input:outlineStyle-Select--focus": "var(--xmlui-outlineStyle-Select--focus)", "Input:outlineOffset-Select--focus": "var(--xmlui-outlineOffset-Select--focus)", "Input:textColor-placeholder-Select": "var(--xmlui-textColor-placeholder-Select)", "paddingVertical-Select-badge": "var(--xmlui-paddingVertical-Select-badge)", "paddingHorizontal-Select-badge": "var(--xmlui-paddingHorizontal-Select-badge)", "borderRadius-Select-badge": "var(--xmlui-borderRadius-Select-badge)", "Input:fontSize-Select-badge": "var(--xmlui-fontSize-Select-badge)", "Input:backgroundColor-Select-badge": "var(--xmlui-backgroundColor-Select-badge)", "Input:textColor-Select-badge": "var(--xmlui-textColor-Select-badge)", "Input:backgroundColor-Select-badge--hover": "var(--xmlui-backgroundColor-Select-badge--hover)", "Input:textColor-Select-badge--hover": "var(--xmlui-textColor-Select-badge--hover)", "Input:backgroundColor-Select-badge--active": "var(--xmlui-backgroundColor-Select-badge--active)", "Input:textColor-Select-badge--active": "var(--xmlui-textColor-Select-badge--active)", "Input:backgroundColor-menu-Select": "var(--xmlui-backgroundColor-menu-Select)", "Input:borderRadius-menu-Select": "var(--xmlui-borderRadius-menu-Select)", "Input:boxShadow-menu-Select": "var(--xmlui-boxShadow-menu-Select)", "Input:borderWidth-menu-Select": "var(--xmlui-borderWidth-menu-Select)", "Input:borderColor-menu-Select": "var(--xmlui-borderColor-menu-Select)", "backgroundColor-item-Select": "var(--xmlui-backgroundColor-item-Select)", "backgroundColor-item-Select--active": "var(--xmlui-backgroundColor-item-Select--active)", "backgroundColor-item-Select--hover": "var(--xmlui-backgroundColor-item-Select--hover)", "textColor-item-Select--disabled": "var(--xmlui-textColor-item-Select--disabled)", "opacity-text-item-Select--disabled": "var(--xmlui-opacity-text-item-Select--disabled)", "textColor-indicator-Select": "var(--xmlui-textColor-indicator-Select)"}'`;
21892
+ const selectTrigger = "_selectTrigger_1v71t_17";
21893
+ const error$8 = "_error_1v71t_54";
21894
+ const warning$9 = "_warning_1v71t_80";
21895
+ const valid$8 = "_valid_1v71t_106";
21896
+ const disabled$7 = "_disabled_1v71t_132";
21897
+ const focused$3 = "_focused_1v71t_139";
21898
+ const placeholder = "_placeholder_1v71t_145";
21899
+ const actions$1 = "_actions_1v71t_162";
21900
+ const action$1 = "_action_1v71t_162";
21901
+ const emptyList = "_emptyList_1v71t_173";
21902
+ const badgeListContainer = "_badgeListContainer_1v71t_185";
21903
+ const badgeList$1 = "_badgeList_1v71t_185";
21904
+ const inputWrapper$1 = "_inputWrapper_1v71t_198";
21905
+ const badge$1 = "_badge_1v71t_185";
21906
+ const selectContent = "_selectContent_1v71t_233";
21907
+ const command$1 = "_command_1v71t_241";
21908
+ const commandInputContainer = "_commandInputContainer_1v71t_246";
21909
+ const commandInput$1 = "_commandInput_1v71t_246";
21910
+ const commandList$1 = "_commandList_1v71t_265";
21911
+ const multiSelectOption = "_multiSelectOption_1v71t_272";
21912
+ const multiSelectOptionContent = "_multiSelectOptionContent_1v71t_286";
21913
+ const highlighted$1 = "_highlighted_1v71t_295";
21914
+ const disabledOption$1 = "_disabledOption_1v71t_301";
21915
+ const selectValue = "_selectValue_1v71t_316";
21916
+ const selectDropdownContent = "_selectDropdownContent_1v71t_331";
21917
+ const fadeIn = "_fadeIn_1v71t_1";
21918
+ const zoomIn = "_zoomIn_1v71t_1";
21919
+ const fadeOut = "_fadeOut_1v71t_1";
21920
+ const zoomOut = "_zoomOut_1v71t_1";
21921
+ const slideInFromTop = "_slideInFromTop_1v71t_1";
21922
+ const slideInFromRight = "_slideInFromRight_1v71t_1";
21923
+ const slideInFromLeft = "_slideInFromLeft_1v71t_1";
21924
+ const slideInFromBottom = "_slideInFromBottom_1v71t_1";
21925
+ const selectViewport = "_selectViewport_1v71t_364";
21926
+ const selectScrollUpButton = "_selectScrollUpButton_1v71t_368";
21927
+ const selectScrollDownButton = "_selectScrollDownButton_1v71t_376";
21928
+ const selectEmpty = "_selectEmpty_1v71t_384";
21929
+ const selectOption = "_selectOption_1v71t_397";
21930
+ const selectOptionContent = "_selectOptionContent_1v71t_420";
21931
+ const selectOptionIndicator = "_selectOptionIndicator_1v71t_434";
21932
+ const loading = "_loading_1v71t_444";
21933
+ const srOnly = "_srOnly_1v71t_447";
21863
21934
  const styles$O = {
21864
21935
  themeVars: themeVars$y,
21865
- selectValue,
21936
+ selectTrigger,
21866
21937
  error: error$8,
21867
21938
  warning: warning$9,
21868
21939
  valid: valid$8,
21869
- selectTrigger,
21940
+ disabled: disabled$7,
21941
+ focused: focused$3,
21942
+ placeholder,
21943
+ actions: actions$1,
21944
+ action: action$1,
21945
+ emptyList,
21870
21946
  badgeListContainer,
21871
21947
  badgeList: badgeList$1,
21948
+ inputWrapper: inputWrapper$1,
21872
21949
  badge: badge$1,
21873
- actions: actions$1,
21874
- placeholder,
21875
- emptyList,
21876
- selectScrollUpButton,
21877
- selectScrollDownButton,
21950
+ selectContent,
21878
21951
  command: command$1,
21879
21952
  commandInputContainer,
21880
21953
  commandInput: commandInput$1,
21881
21954
  commandList: commandList$1,
21882
- selectContent,
21955
+ multiSelectOption,
21956
+ multiSelectOptionContent,
21957
+ highlighted: highlighted$1,
21958
+ disabledOption: disabledOption$1,
21959
+ selectValue,
21960
+ selectDropdownContent,
21883
21961
  fadeIn,
21884
21962
  zoomIn,
21885
21963
  fadeOut,
@@ -21888,20 +21966,67 @@ const styles$O = {
21888
21966
  slideInFromRight,
21889
21967
  slideInFromLeft,
21890
21968
  slideInFromBottom,
21891
- multiComboboxOption,
21892
- multiComboboxOptionContent,
21893
- selectItem,
21894
- selectItemContent,
21895
- selectItemIndicator,
21896
21969
  selectViewport,
21970
+ selectScrollUpButton,
21971
+ selectScrollDownButton,
21897
21972
  selectEmpty,
21973
+ selectOption,
21974
+ selectOptionContent,
21975
+ selectOptionIndicator,
21898
21976
  loading,
21899
21977
  srOnly
21900
21978
  };
21901
- const SelectContext = createContext(null);
21902
- function useSelect() {
21903
- return useContext(SelectContext);
21904
- }
21979
+ const SelectOption = forwardRef(
21980
+ function SelectOption2(option, ref) {
21981
+ const visibleContentRef = useRef(null);
21982
+ const { value, label: label2, enabled: enabled2 = true, children, className } = option;
21983
+ const { value: selectedValue, optionRenderer } = useSelect();
21984
+ const { onOptionRemove, onOptionAdd } = useOption();
21985
+ const opt = useMemo(() => {
21986
+ return {
21987
+ ...option,
21988
+ label: label2 ?? "",
21989
+ keywords: [label2 ?? ""]
21990
+ };
21991
+ }, [option, label2]);
21992
+ useEffect(() => {
21993
+ onOptionAdd(opt);
21994
+ return () => onOptionRemove(opt);
21995
+ }, [opt, onOptionAdd, onOptionRemove]);
21996
+ return /* @__PURE__ */ jsxs(
21997
+ Item$1,
21998
+ {
21999
+ ref,
22000
+ className: classnames(className, styles$O.selectOption),
22001
+ value,
22002
+ textValue: label2,
22003
+ disabled: !enabled2,
22004
+ onClick: (event) => {
22005
+ event.stopPropagation();
22006
+ },
22007
+ "data-state": selectedValue === value && "checked",
22008
+ children: [
22009
+ /* @__PURE__ */ jsx("span", { style: { display: "none" }, children: /* @__PURE__ */ jsx(ItemText, { children: label2 }) }),
22010
+ children ? /* @__PURE__ */ jsxs(Fragment, { children: [
22011
+ /* @__PURE__ */ jsx("div", { className: styles$O.selectOptionContent, ref: visibleContentRef, children }),
22012
+ selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$O.selectOptionIndicator, children: /* @__PURE__ */ jsx(Icon$l, { name: "checkmark" }) })
22013
+ ] }) : optionRenderer ? /* @__PURE__ */ jsx("div", { className: styles$O.selectOptionContent, ref: visibleContentRef, children: optionRenderer(
22014
+ {
22015
+ label: label2,
22016
+ value,
22017
+ enabled: enabled2
22018
+ },
22019
+ selectedValue,
22020
+ false
22021
+ ) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
22022
+ /* @__PURE__ */ jsx("div", { className: styles$O.selectOptionContent, ref: visibleContentRef, children: label2 }),
22023
+ selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$O.selectItemIndicator, children: /* @__PURE__ */ jsx(Icon$l, { name: "checkmark" }) })
22024
+ ] })
22025
+ ]
22026
+ }
22027
+ );
22028
+ }
22029
+ );
21905
22030
  const OptionTypeContext = React__default.createContext(null);
21906
22031
  function useOptionType() {
21907
22032
  return React__default.useContext(OptionTypeContext);
@@ -21912,15 +22037,6 @@ function OptionTypeProvider({
21912
22037
  }) {
21913
22038
  return /* @__PURE__ */ jsx(OptionTypeContext.Provider, { value: Component, children });
21914
22039
  }
21915
- const OptionContext = createContext({
21916
- onOptionAdd: () => {
21917
- },
21918
- onOptionRemove: () => {
21919
- }
21920
- });
21921
- function useOption() {
21922
- return useContext(OptionContext);
21923
- }
21924
22040
  function HiddenOption(option) {
21925
22041
  const { label: label2 } = option;
21926
22042
  const { onOptionRemove, onOptionAdd } = useOption();
@@ -21939,18 +22055,6 @@ function HiddenOption(option) {
21939
22055
  }, [opt, onOptionAdd, onOptionRemove]);
21940
22056
  return /* @__PURE__ */ jsx("div", { ref: (el) => setNode(el), style: { display: "none" }, children: option.children });
21941
22057
  }
21942
- const defaultProps$L = {
21943
- enabled: true,
21944
- placeholder: "",
21945
- autoFocus: false,
21946
- searchable: false,
21947
- multiSelect: false,
21948
- required: false,
21949
- inProgress: false,
21950
- inProgressNotificationMessage: "",
21951
- readOnly: false,
21952
- validationStatus: "none"
21953
- };
21954
22058
  const SimpleSelect = forwardRef(
21955
22059
  function SimpleSelect2(props, forwardedRef) {
21956
22060
  const { root: root2 } = useTheme();
@@ -22016,25 +22120,24 @@ const SimpleSelect = forwardRef(
22016
22120
  "div",
22017
22121
  {
22018
22122
  className: classnames(styles$O.selectValue, {
22019
- [styles$O.selectValue]: value !== void 0,
22020
22123
  [styles$O.placeholder]: value === void 0
22021
22124
  }),
22022
22125
  children: selectedOption ? selectedOption.label : readOnly2 ? "" : placeholder2
22023
22126
  }
22024
22127
  ),
22025
- /* @__PURE__ */ jsx(Icon$m, { asChild: true, children: /* @__PURE__ */ jsx(Icon$l, { name: "chevrondown" }) })
22128
+ /* @__PURE__ */ jsx("span", { className: styles$O.action, children: /* @__PURE__ */ jsx(Icon$l, { name: "chevrondown" }) })
22026
22129
  ]
22027
22130
  }
22028
22131
  ),
22029
22132
  /* @__PURE__ */ jsx(Portal, { container: root2, children: /* @__PURE__ */ jsxs(
22030
22133
  Content,
22031
22134
  {
22032
- className: styles$O.selectContent,
22135
+ className: styles$O.selectDropdownContent,
22033
22136
  position: "popper",
22034
22137
  style: { maxHeight: height, minWidth: width },
22035
22138
  children: [
22036
22139
  /* @__PURE__ */ jsx(ScrollUpButton, { className: styles$O.selectScrollUpButton, children: /* @__PURE__ */ jsx(Icon$l, { name: "chevronup" }) }),
22037
- /* @__PURE__ */ jsxs(SelectViewport, { className: styles$O.selectViewport, role: "listbox", children: [
22140
+ /* @__PURE__ */ jsxs(Viewport, { className: styles$O.selectViewport, role: "listbox", children: [
22038
22141
  children,
22039
22142
  optionsArray.length === 0 && emptyListNode
22040
22143
  ] }),
@@ -22045,6 +22148,148 @@ const SimpleSelect = forwardRef(
22045
22148
  ] });
22046
22149
  }
22047
22150
  );
22151
+ const MultiSelectOption = forwardRef(function MultiSelectOption2(option, forwardedRef) {
22152
+ const id = useId();
22153
+ const {
22154
+ label: label2,
22155
+ value,
22156
+ enabled: enabled2 = true,
22157
+ keywords,
22158
+ readOnly: readOnly2,
22159
+ children,
22160
+ isHighlighted = false,
22161
+ itemIndex
22162
+ } = option;
22163
+ const {
22164
+ value: selectedValue,
22165
+ onChange,
22166
+ multiSelect,
22167
+ setOpen,
22168
+ setSelectedIndex,
22169
+ optionRenderer
22170
+ } = useSelect();
22171
+ const selected2 = useMemo(() => {
22172
+ return Array.isArray(selectedValue) && multiSelect ? selectedValue.map((v) => String(v)).includes(value) : String(selectedValue) === String(value);
22173
+ }, [selectedValue, value, multiSelect]);
22174
+ const handleClick = () => {
22175
+ if (readOnly2) {
22176
+ setOpen(false);
22177
+ return;
22178
+ }
22179
+ if (enabled2) {
22180
+ onChange(value);
22181
+ }
22182
+ };
22183
+ return /* @__PURE__ */ jsx(
22184
+ "div",
22185
+ {
22186
+ id,
22187
+ ref: forwardedRef,
22188
+ role: "option",
22189
+ "aria-disabled": !enabled2,
22190
+ "aria-selected": selected2,
22191
+ className: classnames(styles$O.multiSelectOption, {
22192
+ [styles$O.disabledOption]: !enabled2,
22193
+ [styles$O.highlighted]: isHighlighted
22194
+ }),
22195
+ onMouseDown: (e) => {
22196
+ e.preventDefault();
22197
+ e.stopPropagation();
22198
+ },
22199
+ onMouseEnter: () => {
22200
+ if (itemIndex !== void 0 && setSelectedIndex && enabled2) {
22201
+ setSelectedIndex(itemIndex);
22202
+ }
22203
+ },
22204
+ onClick: handleClick,
22205
+ "data-state": selected2 ? "checked" : void 0,
22206
+ children: /* @__PURE__ */ jsx("div", { className: styles$O.multiSelectOptionContent, children: optionRenderer ? optionRenderer({ label: label2, value, enabled: enabled2, keywords }, selectedValue, false) : /* @__PURE__ */ jsxs(Fragment, { children: [
22207
+ children || label2,
22208
+ selected2 && /* @__PURE__ */ jsx(Icon$l, { name: "checkmark" })
22209
+ ] }) })
22210
+ }
22211
+ );
22212
+ });
22213
+ const defaultProps$L = {
22214
+ enabled: true,
22215
+ placeholder: "",
22216
+ autoFocus: false,
22217
+ searchable: false,
22218
+ multiSelect: false,
22219
+ required: false,
22220
+ inProgress: false,
22221
+ inProgressNotificationMessage: "",
22222
+ readOnly: false,
22223
+ validationStatus: "none"
22224
+ };
22225
+ const SelectTriggerValue = ({
22226
+ value,
22227
+ placeholder: placeholder2,
22228
+ readOnly: readOnly2,
22229
+ multiSelect,
22230
+ options: options2,
22231
+ valueRenderer,
22232
+ toggleOption
22233
+ }) => {
22234
+ if (multiSelect) {
22235
+ if (Array.isArray(value) && value.length > 0) {
22236
+ return /* @__PURE__ */ jsx("div", { className: styles$O.badgeListContainer, children: /* @__PURE__ */ jsx("div", { className: styles$O.badgeList, children: value.map(
22237
+ (v) => {
22238
+ var _a2;
22239
+ return valueRenderer ? valueRenderer(
22240
+ Array.from(options2).find((o) => o.value === `${v}`),
22241
+ () => {
22242
+ toggleOption(v);
22243
+ }
22244
+ ) : /* @__PURE__ */ jsxs("span", { className: styles$O.badge, children: [
22245
+ (_a2 = Array.from(options2).find((o) => o.value === `${v}`)) == null ? void 0 : _a2.label,
22246
+ /* @__PURE__ */ jsx(
22247
+ Icon$l,
22248
+ {
22249
+ name: "close",
22250
+ size: "sm",
22251
+ onClick: (event) => {
22252
+ event.stopPropagation();
22253
+ toggleOption(v);
22254
+ }
22255
+ }
22256
+ )
22257
+ ] }, v);
22258
+ }
22259
+ ) }) });
22260
+ }
22261
+ return /* @__PURE__ */ jsx("span", { placeholder: placeholder2, className: styles$O.placeholder, children: placeholder2 });
22262
+ }
22263
+ if (value !== void 0 && value !== null && value !== "") {
22264
+ const selectedOption = Array.from(options2).find((o) => o.value === value);
22265
+ return /* @__PURE__ */ jsx("div", { className: styles$O.selectValue, children: selectedOption == null ? void 0 : selectedOption.label });
22266
+ }
22267
+ return /* @__PURE__ */ jsx("div", { "aria-placeholder": placeholder2, className: styles$O.placeholder, children: readOnly2 ? "" : placeholder2 || "" });
22268
+ };
22269
+ const SelectTriggerActions = ({
22270
+ value,
22271
+ multiSelect,
22272
+ enabled: enabled2,
22273
+ readOnly: readOnly2,
22274
+ clearValue,
22275
+ showChevron = true
22276
+ }) => {
22277
+ const hasValue = multiSelect ? Array.isArray(value) && value.length > 0 : value !== void 0 && value !== null && value !== "";
22278
+ return /* @__PURE__ */ jsxs("div", { className: styles$O.actions, children: [
22279
+ hasValue && enabled2 && !readOnly2 && /* @__PURE__ */ jsx(
22280
+ "span",
22281
+ {
22282
+ className: styles$O.action,
22283
+ onClick: (event) => {
22284
+ event.stopPropagation();
22285
+ clearValue();
22286
+ },
22287
+ children: /* @__PURE__ */ jsx(Icon$l, { name: "close" })
22288
+ }
22289
+ ),
22290
+ showChevron && /* @__PURE__ */ jsx("span", { className: styles$O.action, children: /* @__PURE__ */ jsx(Icon$l, { name: "chevrondown" }) })
22291
+ ] });
22292
+ };
22048
22293
  const Select = forwardRef(function Select2({
22049
22294
  // Basic props
22050
22295
  id,
@@ -22080,7 +22325,6 @@ const Select = forwardRef(function Select2({
22080
22325
  children,
22081
22326
  ...rest
22082
22327
  }, forwardedRef) {
22083
- var _a2;
22084
22328
  const [referenceElement, setReferenceElement] = useState(null);
22085
22329
  const [open, setOpen] = useState(false);
22086
22330
  const [width, setWidth] = useState(0);
@@ -22088,22 +22332,40 @@ const Select = forwardRef(function Select2({
22088
22332
  const { root: root2 } = useTheme();
22089
22333
  const [options2, setOptions] = useState(/* @__PURE__ */ new Set());
22090
22334
  const isInForm = useIsInsideForm();
22335
+ const [searchTerm, setSearchTerm] = useState("");
22336
+ const [selectedIndex, setSelectedIndex] = useState(-1);
22337
+ const filteredOptions = useMemo(() => {
22338
+ if (!searchTerm || searchTerm.trim() === "") {
22339
+ return Array.from(options2);
22340
+ }
22341
+ const searchLower = searchTerm.toLowerCase();
22342
+ return Array.from(options2).filter((option) => {
22343
+ const extendedValue = option.value + " " + option.label + " " + (option.keywords || []).join(" ");
22344
+ return extendedValue.toLowerCase().includes(searchLower);
22345
+ });
22346
+ }, [options2, searchTerm]);
22347
+ useEffect(() => {
22348
+ if (!open) {
22349
+ setSelectedIndex(-1);
22350
+ setSearchTerm("");
22351
+ }
22352
+ }, [open]);
22091
22353
  useEffect(() => {
22092
22354
  if (initialValue !== void 0) {
22093
22355
  updateState({ value: initialValue }, { initial: true });
22094
22356
  }
22095
22357
  }, [initialValue, updateState]);
22096
22358
  useEffect(() => {
22097
- var _a3;
22359
+ var _a2;
22098
22360
  const current = referenceElement;
22099
- (_a3 = observer.current) == null ? void 0 : _a3.disconnect();
22361
+ (_a2 = observer.current) == null ? void 0 : _a2.disconnect();
22100
22362
  if (current) {
22101
22363
  observer.current = new ResizeObserver(() => setWidth(current.clientWidth));
22102
22364
  observer.current.observe(current);
22103
22365
  }
22104
22366
  return () => {
22105
- var _a4;
22106
- (_a4 = observer.current) == null ? void 0 : _a4.disconnect();
22367
+ var _a3;
22368
+ (_a3 = observer.current) == null ? void 0 : _a3.disconnect();
22107
22369
  };
22108
22370
  }, [referenceElement]);
22109
22371
  const toggleOption = useCallback(
@@ -22122,6 +22384,84 @@ const Select = forwardRef(function Select2({
22122
22384
  updateState({ value: newValue });
22123
22385
  onDidChange(newValue);
22124
22386
  }, [multiSelect, updateState, onDidChange]);
22387
+ const findNextEnabledIndex = useCallback(
22388
+ (currentIndex) => {
22389
+ for (let i = currentIndex + 1; i < filteredOptions.length; i++) {
22390
+ const item2 = filteredOptions[i];
22391
+ if (item2.enabled !== false) {
22392
+ return i;
22393
+ }
22394
+ }
22395
+ for (let i = 0; i <= currentIndex; i++) {
22396
+ const item2 = filteredOptions[i];
22397
+ if (item2.enabled !== false) {
22398
+ return i;
22399
+ }
22400
+ }
22401
+ return -1;
22402
+ },
22403
+ [filteredOptions]
22404
+ );
22405
+ const findPreviousEnabledIndex = useCallback(
22406
+ (currentIndex) => {
22407
+ for (let i = currentIndex - 1; i >= 0; i--) {
22408
+ const item2 = filteredOptions[i];
22409
+ if (item2.enabled !== false) {
22410
+ return i;
22411
+ }
22412
+ }
22413
+ for (let i = filteredOptions.length - 1; i >= currentIndex; i--) {
22414
+ const item2 = filteredOptions[i];
22415
+ if (item2.enabled !== false) {
22416
+ return i;
22417
+ }
22418
+ }
22419
+ return -1;
22420
+ },
22421
+ [filteredOptions]
22422
+ );
22423
+ const handleKeyDown = useCallback(
22424
+ (event) => {
22425
+ if (!open) return;
22426
+ switch (event.key) {
22427
+ case "ArrowDown":
22428
+ event.preventDefault();
22429
+ setSelectedIndex((prev) => {
22430
+ const nextIndex = findNextEnabledIndex(prev);
22431
+ return nextIndex !== -1 ? nextIndex : prev;
22432
+ });
22433
+ break;
22434
+ case "ArrowUp":
22435
+ event.preventDefault();
22436
+ setSelectedIndex((prev) => {
22437
+ const prevIndex = findPreviousEnabledIndex(prev);
22438
+ return prevIndex !== -1 ? prevIndex : prev;
22439
+ });
22440
+ break;
22441
+ case "Enter":
22442
+ event.preventDefault();
22443
+ if (selectedIndex >= 0 && selectedIndex < filteredOptions.length) {
22444
+ const selectedItem = filteredOptions[selectedIndex];
22445
+ if (selectedItem.enabled !== false) {
22446
+ toggleOption(selectedItem.value);
22447
+ }
22448
+ }
22449
+ break;
22450
+ case "Escape":
22451
+ event.preventDefault();
22452
+ setOpen(false);
22453
+ break;
22454
+ }
22455
+ },
22456
+ [
22457
+ open,
22458
+ selectedIndex,
22459
+ filteredOptions,
22460
+ toggleOption,
22461
+ findNextEnabledIndex,
22462
+ findPreviousEnabledIndex
22463
+ ]
22464
+ );
22125
22465
  const focus = useCallback(() => {
22126
22466
  referenceElement == null ? void 0 : referenceElement.focus();
22127
22467
  }, [referenceElement]);
@@ -22173,14 +22513,15 @@ const Select = forwardRef(function Select2({
22173
22513
  value,
22174
22514
  onChange: toggleOption,
22175
22515
  setOpen,
22516
+ setSelectedIndex,
22176
22517
  options: options2,
22177
22518
  optionRenderer
22178
22519
  }),
22179
- [multiSelect, toggleOption, value, options2]
22520
+ [multiSelect, toggleOption, value, options2, optionRenderer]
22180
22521
  );
22181
22522
  return /* @__PURE__ */ jsx(SelectContext.Provider, { value: selectContextValue, children: /* @__PURE__ */ jsx(OptionContext.Provider, { value: optionContextValue, children: searchable || multiSelect ? /* @__PURE__ */ jsxs(OptionTypeProvider, { Component: HiddenOption, children: [
22182
22523
  /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, modal: false, children: [
22183
- /* @__PURE__ */ jsx(
22524
+ /* @__PURE__ */ jsxs(
22184
22525
  PopoverTrigger,
22185
22526
  {
22186
22527
  ...rest,
@@ -22206,45 +22547,30 @@ const Select = forwardRef(function Select2({
22206
22547
  className
22207
22548
  ),
22208
22549
  autoFocus,
22209
- children: /* @__PURE__ */ jsxs(Fragment, { children: [
22210
- multiSelect ? Array.isArray(value) && value.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$O.badgeListContainer, children: /* @__PURE__ */ jsx("div", { className: styles$O.badgeList, children: value.map(
22211
- (v) => {
22212
- var _a3;
22213
- return valueRenderer ? valueRenderer(
22214
- Array.from(options2).find((o) => o.value === `${v}`),
22215
- () => {
22216
- toggleOption(v);
22217
- }
22218
- ) : /* @__PURE__ */ jsxs("span", { className: styles$O.badge, children: [
22219
- (_a3 = Array.from(options2).find((o) => o.value === `${v}`)) == null ? void 0 : _a3.label,
22220
- /* @__PURE__ */ jsx(
22221
- Icon$l,
22222
- {
22223
- name: "close",
22224
- size: "sm",
22225
- onClick: (event) => {
22226
- event.stopPropagation();
22227
- toggleOption(v);
22228
- }
22229
- }
22230
- )
22231
- ] }, v);
22550
+ children: [
22551
+ /* @__PURE__ */ jsx(
22552
+ SelectTriggerValue,
22553
+ {
22554
+ value,
22555
+ placeholder: placeholder2,
22556
+ readOnly: readOnly2,
22557
+ multiSelect,
22558
+ options: options2,
22559
+ valueRenderer,
22560
+ toggleOption
22232
22561
  }
22233
- ) }) }) : /* @__PURE__ */ jsx("span", { placeholder: placeholder2, className: styles$O.placeholder, children: placeholder2 }) : value !== void 0 && value !== null ? /* @__PURE__ */ jsx("div", { children: (_a2 = Array.from(options2).find((o) => o.value === value)) == null ? void 0 : _a2.label }) : /* @__PURE__ */ jsx("span", { "aria-placeholder": placeholder2, className: styles$O.placeholder, children: placeholder2 || "" }),
22234
- /* @__PURE__ */ jsxs("div", { className: styles$O.actions, children: [
22235
- multiSelect && Array.isArray(value) && value.length > 0 && /* @__PURE__ */ jsx(
22236
- Icon$l,
22237
- {
22238
- name: "close",
22239
- onClick: (event) => {
22240
- event.stopPropagation();
22241
- clearValue();
22242
- }
22243
- }
22244
- ),
22245
- /* @__PURE__ */ jsx(Icon$l, { name: "chevrondown" })
22246
- ] })
22247
- ] })
22562
+ ),
22563
+ /* @__PURE__ */ jsx(
22564
+ SelectTriggerActions,
22565
+ {
22566
+ value,
22567
+ multiSelect,
22568
+ enabled: enabled2,
22569
+ readOnly: readOnly2,
22570
+ clearValue
22571
+ }
22572
+ )
22573
+ ]
22248
22574
  }
22249
22575
  ),
22250
22576
  open && /* @__PURE__ */ jsx(Portal$1, { container: root2, children: /* @__PURE__ */ jsx(FocusScope, { asChild: true, loop: true, trapped: true, children: /* @__PURE__ */ jsx(
@@ -22252,50 +22578,40 @@ const Select = forwardRef(function Select2({
22252
22578
  {
22253
22579
  style: { minWidth: width, height: dropdownHeight },
22254
22580
  className: styles$O.selectContent,
22255
- children: /* @__PURE__ */ jsxs(
22256
- Command,
22257
- {
22258
- className: styles$O.command,
22259
- shouldFilter: searchable,
22260
- filter: (_, search, keywords) => {
22261
- const lowSearch = search.toLowerCase();
22262
- for (const kw of keywords) {
22263
- if (kw.toLowerCase().includes(lowSearch)) return 1;
22581
+ onKeyDown: handleKeyDown,
22582
+ children: /* @__PURE__ */ jsxs("div", { className: styles$O.command, children: [
22583
+ searchable ? /* @__PURE__ */ jsxs("div", { className: styles$O.commandInputContainer, children: [
22584
+ /* @__PURE__ */ jsx(Icon$l, { name: "search" }),
22585
+ /* @__PURE__ */ jsx(
22586
+ "input",
22587
+ {
22588
+ role: "combobox",
22589
+ className: classnames(styles$O.commandInput),
22590
+ placeholder: "Search...",
22591
+ value: searchTerm,
22592
+ onChange: (e) => setSearchTerm(e.target.value),
22593
+ autoFocus: true
22264
22594
  }
22265
- return 0;
22266
- },
22267
- children: [
22268
- searchable ? /* @__PURE__ */ jsxs("div", { className: styles$O.commandInputContainer, children: [
22269
- /* @__PURE__ */ jsx(Icon$l, { name: "search" }),
22270
- /* @__PURE__ */ jsx(
22271
- CommandInput,
22272
- {
22273
- className: classnames(styles$O.commandInput),
22274
- placeholder: "Search..."
22275
- }
22276
- )
22277
- ] }) : (
22278
- // https://github.com/pacocoursey/cmdk/issues/322#issuecomment-2444703817
22279
- /* @__PURE__ */ jsx("button", { autoFocus: true, "aria-hidden": "true", className: styles$O.srOnly })
22280
- ),
22281
- /* @__PURE__ */ jsxs(CommandList, { className: styles$O.commandList, children: [
22282
- inProgress && /* @__PURE__ */ jsx("div", { className: styles$O.loading, children: inProgressNotificationMessage }),
22283
- Array.from(options2).map(({ value: value2, label: label2, enabled: enabled22, keywords }) => /* @__PURE__ */ jsx(
22284
- ComboboxOption,
22285
- {
22286
- readOnly: readOnly2,
22287
- value: value2,
22288
- label: label2,
22289
- enabled: enabled22,
22290
- keywords
22291
- },
22292
- value2
22293
- )),
22294
- !inProgress && /* @__PURE__ */ jsx(CommandEmpty, { children: emptyListNode })
22295
- ] })
22296
- ]
22297
- }
22298
- )
22595
+ )
22596
+ ] }) : /* @__PURE__ */ jsx("button", { autoFocus: true, "aria-hidden": "true", className: styles$O.srOnly }),
22597
+ /* @__PURE__ */ jsxs("div", { role: "listbox", className: styles$O.commandList, children: [
22598
+ inProgress && /* @__PURE__ */ jsx("div", { className: styles$O.loading, children: inProgressNotificationMessage }),
22599
+ filteredOptions.map(({ value: value2, label: label2, enabled: enabled22, keywords }, index) => /* @__PURE__ */ jsx(
22600
+ MultiSelectOption,
22601
+ {
22602
+ readOnly: readOnly2,
22603
+ value: value2,
22604
+ label: label2,
22605
+ enabled: enabled22,
22606
+ keywords,
22607
+ isHighlighted: selectedIndex === index,
22608
+ itemIndex: index
22609
+ },
22610
+ value2
22611
+ )),
22612
+ !inProgress && filteredOptions.length === 0 && /* @__PURE__ */ jsx("div", { children: emptyListNode })
22613
+ ] })
22614
+ ] })
22299
22615
  }
22300
22616
  ) }) })
22301
22617
  ] }),
@@ -22326,104 +22642,6 @@ const Select = forwardRef(function Select2({
22326
22642
  children
22327
22643
  ) }) }) });
22328
22644
  });
22329
- const ComboboxOption = forwardRef(function Combobox(option, forwardedRef) {
22330
- const id = useId();
22331
- const { label: label2, value, enabled: enabled2 = true, keywords, readOnly: readOnly2, children } = option;
22332
- const { value: selectedValue, onChange, multiSelect, setOpen, optionRenderer } = useSelect();
22333
- const selected2 = useMemo(() => {
22334
- return Array.isArray(selectedValue) && multiSelect ? selectedValue.map((v) => String(v)).includes(value) : String(selectedValue) === String(value);
22335
- }, [selectedValue, value, multiSelect]);
22336
- return /* @__PURE__ */ jsx(
22337
- CommandItem,
22338
- {
22339
- id,
22340
- ref: forwardedRef,
22341
- disabled: !enabled2,
22342
- value,
22343
- className: styles$O.multiComboboxOption,
22344
- onSelect: () => {
22345
- if (readOnly2) {
22346
- setOpen(false);
22347
- return;
22348
- }
22349
- onChange(value);
22350
- },
22351
- onClick: (event) => {
22352
- event.stopPropagation();
22353
- },
22354
- "data-state": selected2 ? "checked" : void 0,
22355
- keywords: [...keywords, label2],
22356
- children: /* @__PURE__ */ jsx("div", { className: styles$O.multiComboboxOptionContent, children: optionRenderer ? optionRenderer({ label: label2, value, enabled: enabled2, keywords }, selectedValue, false) : /* @__PURE__ */ jsxs(Fragment, { children: [
22357
- children || label2,
22358
- selected2 && /* @__PURE__ */ jsx(Icon$l, { name: "checkmark" })
22359
- ] }) })
22360
- },
22361
- id
22362
- );
22363
- });
22364
- const SelectOption = React__default.forwardRef(
22365
- (option, ref) => {
22366
- var _a2;
22367
- const visibleContentRef = useRef(null);
22368
- const { value, label: label2, enabled: enabled2 = true, children, className } = option;
22369
- const { value: selectedValue, optionRenderer } = useSelect();
22370
- const { onOptionRemove, onOptionAdd } = useOption();
22371
- const opt = useMemo(() => {
22372
- var _a3, _b;
22373
- return {
22374
- ...option,
22375
- label: label2 ?? ((_a3 = visibleContentRef.current) == null ? void 0 : _a3.textContent) ?? "",
22376
- keywords: [label2 ?? ((_b = visibleContentRef.current) == null ? void 0 : _b.textContent) ?? ""]
22377
- // Store the rendered ReactNode for dropdown display
22378
- };
22379
- }, [option, label2, visibleContentRef.current]);
22380
- useEffect(() => {
22381
- onOptionAdd(opt);
22382
- return () => onOptionRemove(opt);
22383
- }, [opt, onOptionAdd, onOptionRemove]);
22384
- return /* @__PURE__ */ jsxs(
22385
- Item$1,
22386
- {
22387
- ref,
22388
- className: classnames(styles$O.selectItem, className),
22389
- value,
22390
- textValue: label2 || ((_a2 = visibleContentRef.current) == null ? void 0 : _a2.textContent),
22391
- disabled: !enabled2,
22392
- onClick: (event) => {
22393
- event.stopPropagation();
22394
- },
22395
- onMouseEnter: (event) => {
22396
- const target2 = event.currentTarget;
22397
- target2.setAttribute("data-highlighted", "");
22398
- },
22399
- onMouseLeave: (event) => {
22400
- const target2 = event.currentTarget;
22401
- target2.removeAttribute("data-highlighted");
22402
- },
22403
- "data-state": selectedValue === value && "checked",
22404
- children: [
22405
- /* @__PURE__ */ jsx("span", { style: { display: "none" }, children: /* @__PURE__ */ jsx(ItemText, { children: label2 }) }),
22406
- children ? /* @__PURE__ */ jsxs(Fragment, { children: [
22407
- /* @__PURE__ */ jsx("div", { className: styles$O.selectItemContent, ref: visibleContentRef, children }),
22408
- selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$O.selectItemIndicator, children: /* @__PURE__ */ jsx(Icon$l, { name: "checkmark" }) })
22409
- ] }) : optionRenderer ? /* @__PURE__ */ jsx("div", { className: styles$O.selectItemContent, ref: visibleContentRef, children: optionRenderer(
22410
- {
22411
- label: label2,
22412
- value,
22413
- enabled: enabled2
22414
- },
22415
- selectedValue,
22416
- false
22417
- ) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
22418
- /* @__PURE__ */ jsx("div", { className: styles$O.selectItemContent, ref: visibleContentRef, children: label2 }),
22419
- selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$O.selectItemIndicator, children: /* @__PURE__ */ jsx(Icon$l, { name: "checkmark" }) })
22420
- ] })
22421
- ]
22422
- }
22423
- );
22424
- }
22425
- );
22426
- SelectOption.displayName = "SelectOption";
22427
22645
  const themeVars$x = `'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "borderWidth-RadioGroupOption": "var(--xmlui-borderWidth-RadioGroupOption)", "borderWidth-RadioGroupOption-validation": "var(--xmlui-borderWidth-RadioGroupOption-validation)", "Input:borderColor-RadioGroupOption-default": "var(--xmlui-borderColor-RadioGroupOption-default)", "Input:borderColor-checked-RadioGroupOption": "var(--xmlui-borderColor-checked-RadioGroupOption)", "Input:borderColor-RadioGroupOption-default--hover": "var(--xmlui-borderColor-RadioGroupOption-default--hover)", "Input:borderColor-RadioGroupOption-default--active": "var(--xmlui-borderColor-RadioGroupOption-default--active)", "Input:borderColor-RadioGroupOption--disabled": "var(--xmlui-borderColor-RadioGroupOption--disabled)", "Input:borderColor-RadioGroupOption-error": "var(--xmlui-borderColor-RadioGroupOption-error)", "Input:borderColor-RadioGroupOption-warning": "var(--xmlui-borderColor-RadioGroupOption-warning)", "Input:borderColor-RadioGroupOption-success": "var(--xmlui-borderColor-RadioGroupOption-success)", "Input:backgroundColor-RadioGroupOption-default": "var(--xmlui-backgroundColor-RadioGroupOption-default)", "Input:backgroundColor-checked-RadioGroupOption": "var(--xmlui-backgroundColor-checked-RadioGroupOption)", "Input:backgroundColor-checked-RadioGroupOption--disabled": "var(--xmlui-backgroundColor-checked-RadioGroupOption--disabled)", "Input:color-RadioGroupOption--disabled": "var(--xmlui-color-RadioGroupOption--disabled)", "Input:fontSize-RadioGroupOption": "var(--xmlui-fontSize-RadioGroupOption)", "Input:fontWeight-RadioGroupOption": "var(--xmlui-fontWeight-RadioGroupOption)", "Input:textColor-RadioGroupOption-default": "var(--xmlui-textColor-RadioGroupOption-default)", "Input:textColor-RadioGroupOption-error": "var(--xmlui-textColor-RadioGroupOption-error)", "Input:textColor-RadioGroupOption-warning": "var(--xmlui-textColor-RadioGroupOption-warning)", "Input:textColor-RadioGroupOption-success": "var(--xmlui-textColor-RadioGroupOption-success)", "Input:outlineWidth-RadioGroupOption--focus": "var(--xmlui-outlineWidth-RadioGroupOption--focus)", "Input:outlineColor-RadioGroupOption--focus": "var(--xmlui-outlineColor-RadioGroupOption--focus)", "Input:outlineStyle-RadioGroupOption--focus": "var(--xmlui-outlineStyle-RadioGroupOption--focus)", "Input:outlineOffset-RadioGroupOption--focus": "var(--xmlui-outlineOffset-RadioGroupOption--focus)"}'`;
22428
22646
  const radioGroupContainer = "_radioGroupContainer_fn2iu_14";
22429
22647
  const radioOptionContainer = "_radioOptionContainer_fn2iu_20";
@@ -22972,24 +23190,25 @@ const TextArea = forwardRef(function TextArea2({
22972
23190
  }
22973
23191
  );
22974
23192
  });
22975
- const themeVars$v = `'{"border-AutoComplete": "var(--xmlui-border-AutoComplete)", "borderHorizontal-AutoComplete": "var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete))", "borderVertical-AutoComplete": "var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete))", "borderLeft-AutoComplete": "var(--xmlui-borderLeft-AutoComplete, var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderRight-AutoComplete": "var(--xmlui-borderRight-AutoComplete, var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderTop-AutoComplete": "var(--xmlui-borderTop-AutoComplete, var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderBottom-AutoComplete": "var(--xmlui-borderBottom-AutoComplete, var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderWidth-AutoComplete": "var(--xmlui-borderWidth-AutoComplete)", "borderHorizontalWidth-AutoComplete": "var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete))", "borderLeftWidth-AutoComplete": "var(--xmlui-borderLeftWidth-AutoComplete, var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderRightWidth-AutoComplete": "var(--xmlui-borderRightWidth-AutoComplete, var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderVerticalWidth-AutoComplete": "var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete))", "borderTopWidth-AutoComplete": "var(--xmlui-borderTopWidth-AutoComplete, var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderBottomWidth-AutoComplete": "var(--xmlui-borderBottomWidth-AutoComplete, var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderStyle-AutoComplete": "var(--xmlui-borderStyle-AutoComplete)", "borderHorizontalStyle-AutoComplete": "var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete))", "borderLeftStyle-AutoComplete": "var(--xmlui-borderLeftStyle-AutoComplete, var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderRightStyle-AutoComplete": "var(--xmlui-borderRightStyle-AutoComplete, var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderVerticalStyle-AutoComplete": "var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete))", "borderTopStyle-AutoComplete": "var(--xmlui-borderTopStyle-AutoComplete, var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderBottomStyle-AutoComplete": "var(--xmlui-borderBottomStyle-AutoComplete, var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderColor-AutoComplete": "var(--xmlui-borderColor-AutoComplete)", "borderHorizontalColor-AutoComplete": "var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete))", "borderLeftColor-AutoComplete": "var(--xmlui-borderLeftColor-AutoComplete, var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderRightColor-AutoComplete": "var(--xmlui-borderRightColor-AutoComplete, var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderVerticalColor-AutoComplete": "var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete))", "borderTopColor-AutoComplete": "var(--xmlui-borderTopColor-AutoComplete, var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderBottomColor-AutoComplete": "var(--xmlui-borderBottomColor-AutoComplete, var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderStartStartRadius-AutoComplete": "var(--xmlui-borderStartStartRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderStartEndRadius-AutoComplete": "var(--xmlui-borderStartEndRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderEndStartRadius-AutoComplete": "var(--xmlui-borderEndStartRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderEndEndRadius-AutoComplete": "var(--xmlui-borderEndEndRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "padding-AutoComplete": "var(--xmlui-padding-AutoComplete)", "paddingHorizontal-AutoComplete": "var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete))", "paddingVertical-AutoComplete": "var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete))", "paddingLeft-AutoComplete": "var(--xmlui-paddingLeft-AutoComplete, var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingRight-AutoComplete": "var(--xmlui-paddingRight-AutoComplete, var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingTop-AutoComplete": "var(--xmlui-paddingTop-AutoComplete, var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingBottom-AutoComplete": "var(--xmlui-paddingBottom-AutoComplete, var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete)))", "Input:borderRadius-AutoComplete-default": "var(--xmlui-borderRadius-AutoComplete-default)", "Input:borderColor-AutoComplete-default": "var(--xmlui-borderColor-AutoComplete-default)", "Input:borderWidth-AutoComplete-default": "var(--xmlui-borderWidth-AutoComplete-default)", "Input:borderStyle-AutoComplete-default": "var(--xmlui-borderStyle-AutoComplete-default)", "Input:fontSize-AutoComplete-default": "var(--xmlui-fontSize-AutoComplete-default)", "Input:backgroundColor-AutoComplete-default": "var(--xmlui-backgroundColor-AutoComplete-default)", "Input:boxShadow-AutoComplete-default": "var(--xmlui-boxShadow-AutoComplete-default)", "Input:textColor-AutoComplete-default": "var(--xmlui-textColor-AutoComplete-default)", "Input:borderColor-AutoComplete-default--hover": "var(--xmlui-borderColor-AutoComplete-default--hover)", "Input:backgroundColor-AutoComplete-default--hover": "var(--xmlui-backgroundColor-AutoComplete-default--hover)", "Input:boxShadow-AutoComplete-default--hover": "var(--xmlui-boxShadow-AutoComplete-default--hover)", "Input:textColor-AutoComplete-default--hover": "var(--xmlui-textColor-AutoComplete-default--hover)", "Input:textColor-placeholder-AutoComplete-default": "var(--xmlui-textColor-placeholder-AutoComplete-default)", "Input:fontSize-placeholder-AutoComplete-default": "var(--xmlui-fontSize-placeholder-AutoComplete-default)", "Input:borderRadius-AutoComplete-error": "var(--xmlui-borderRadius-AutoComplete-error)", "Input:borderColor-AutoComplete-error": "var(--xmlui-borderColor-AutoComplete-error)", "Input:borderWidth-AutoComplete-error": "var(--xmlui-borderWidth-AutoComplete-error)", "Input:borderStyle-AutoComplete-error": "var(--xmlui-borderStyle-AutoComplete-error)", "Input:fontSize-AutoComplete-error": "var(--xmlui-fontSize-AutoComplete-error)", "Input:backgroundColor-AutoComplete-error": "var(--xmlui-backgroundColor-AutoComplete-error)", "Input:boxShadow-AutoComplete-error": "var(--xmlui-boxShadow-AutoComplete-error)", "Input:textColor-AutoComplete-error": "var(--xmlui-textColor-AutoComplete-error)", "Input:borderColor-AutoComplete-error--hover": "var(--xmlui-borderColor-AutoComplete-error--hover)", "Input:backgroundColor-AutoComplete-error--hover": "var(--xmlui-backgroundColor-AutoComplete-error--hover)", "Input:boxShadow-AutoComplete-error--hover": "var(--xmlui-boxShadow-AutoComplete-error--hover)", "Input:textColor-AutoComplete-error--hover": "var(--xmlui-textColor-AutoComplete-error--hover)", "Input:textColor-placeholder-AutoComplete-error": "var(--xmlui-textColor-placeholder-AutoComplete-error)", "Input:fontSize-placeholder-AutoComplete-error": "var(--xmlui-fontSize-placeholder-AutoComplete-error)", "Input:borderRadius-AutoComplete-warning": "var(--xmlui-borderRadius-AutoComplete-warning)", "Input:borderColor-AutoComplete-warning": "var(--xmlui-borderColor-AutoComplete-warning)", "Input:borderWidth-AutoComplete-warning": "var(--xmlui-borderWidth-AutoComplete-warning)", "Input:borderStyle-AutoComplete-warning": "var(--xmlui-borderStyle-AutoComplete-warning)", "Input:fontSize-AutoComplete-warning": "var(--xmlui-fontSize-AutoComplete-warning)", "Input:backgroundColor-AutoComplete-warning": "var(--xmlui-backgroundColor-AutoComplete-warning)", "Input:boxShadow-AutoComplete-warning": "var(--xmlui-boxShadow-AutoComplete-warning)", "Input:textColor-AutoComplete-warning": "var(--xmlui-textColor-AutoComplete-warning)", "Input:borderColor-AutoComplete-warning--hover": "var(--xmlui-borderColor-AutoComplete-warning--hover)", "Input:backgroundColor-AutoComplete-warning--hover": "var(--xmlui-backgroundColor-AutoComplete-warning--hover)", "Input:boxShadow-AutoComplete-warning--hover": "var(--xmlui-boxShadow-AutoComplete-warning--hover)", "Input:textColor-AutoComplete-warning--hover": "var(--xmlui-textColor-AutoComplete-warning--hover)", "Input:textColor-placeholder-AutoComplete-warning": "var(--xmlui-textColor-placeholder-AutoComplete-warning)", "Input:fontSize-placeholder-AutoComplete-warning": "var(--xmlui-fontSize-placeholder-AutoComplete-warning)", "Input:borderRadius-AutoComplete-success": "var(--xmlui-borderRadius-AutoComplete-success)", "Input:borderColor-AutoComplete-success": "var(--xmlui-borderColor-AutoComplete-success)", "Input:borderWidth-AutoComplete-success": "var(--xmlui-borderWidth-AutoComplete-success)", "Input:borderStyle-AutoComplete-success": "var(--xmlui-borderStyle-AutoComplete-success)", "Input:fontSize-AutoComplete-success": "var(--xmlui-fontSize-AutoComplete-success)", "Input:backgroundColor-AutoComplete-success": "var(--xmlui-backgroundColor-AutoComplete-success)", "Input:boxShadow-AutoComplete-success": "var(--xmlui-boxShadow-AutoComplete-success)", "Input:textColor-AutoComplete-success": "var(--xmlui-textColor-AutoComplete-success)", "Input:borderColor-AutoComplete-success--hover": "var(--xmlui-borderColor-AutoComplete-success--hover)", "Input:backgroundColor-AutoComplete-success--hover": "var(--xmlui-backgroundColor-AutoComplete-success--hover)", "Input:boxShadow-AutoComplete-success--hover": "var(--xmlui-boxShadow-AutoComplete-success--hover)", "Input:textColor-AutoComplete-success--hover": "var(--xmlui-textColor-AutoComplete-success--hover)", "Input:textColor-placeholder-AutoComplete-success": "var(--xmlui-textColor-placeholder-AutoComplete-success)", "Input:fontSize-placeholder-AutoComplete-success": "var(--xmlui-fontSize-placeholder-AutoComplete-success)", "Input:backgroundColor-AutoComplete--disabled": "var(--xmlui-backgroundColor-AutoComplete--disabled)", "Input:textColor-AutoComplete--disabled": "var(--xmlui-textColor-AutoComplete--disabled)", "Input:borderColor-AutoComplete--disabled": "var(--xmlui-borderColor-AutoComplete--disabled)", "Input:outlineWidth-AutoComplete--focus": "var(--xmlui-outlineWidth-AutoComplete--focus)", "Input:outlineColor-AutoComplete--focus": "var(--xmlui-outlineColor-AutoComplete--focus)", "Input:outlineStyle-AutoComplete--focus": "var(--xmlui-outlineStyle-AutoComplete--focus)", "Input:outlineOffset-AutoComplete--focus": "var(--xmlui-outlineOffset-AutoComplete--focus)", "paddingVertical-AutoComplete-badge": "var(--xmlui-paddingVertical-AutoComplete-badge)", "paddingHorizontal-AutoComplete-badge": "var(--xmlui-paddingHorizontal-AutoComplete-badge)", "borderRadius-AutoComplete-badge": "var(--xmlui-borderRadius-AutoComplete-badge)", "Input:fontSize-AutoComplete-badge": "var(--xmlui-fontSize-AutoComplete-badge)", "Input:backgroundColor-AutoComplete-badge": "var(--xmlui-backgroundColor-AutoComplete-badge)", "Input:textColor-AutoComplete-badge": "var(--xmlui-textColor-AutoComplete-badge)", "Input:backgroundColor-AutoComplete-badge--hover": "var(--xmlui-backgroundColor-AutoComplete-badge--hover)", "Input:textColor-AutoComplete-badge--hover": "var(--xmlui-textColor-AutoComplete-badge--hover)", "Input:backgroundColor-AutoComplete-badge--active": "var(--xmlui-backgroundColor-AutoComplete-badge--active)", "Input:textColor-AutoComplete-badge--active": "var(--xmlui-textColor-AutoComplete-badge--active)", "Input:textColor-placeholder-AutoComplete": "var(--xmlui-textColor-placeholder-AutoComplete)", "Input:backgroundColor-menu-AutoComplete": "var(--xmlui-backgroundColor-menu-AutoComplete)", "Input:borderRadius-menu-AutoComplete": "var(--xmlui-borderRadius-menu-AutoComplete)", "Input:boxShadow-menu-AutoComplete": "var(--xmlui-boxShadow-menu-AutoComplete)", "backgroundColor-item-AutoComplete": "var(--xmlui-backgroundColor-item-AutoComplete)", "backgroundColor-item-AutoComplete--hover": "var(--xmlui-backgroundColor-item-AutoComplete--hover)", "textColor-item-AutoComplete--disabled": "var(--xmlui-textColor-item-AutoComplete--disabled)"}'`;
22976
- const command = "_command_eqfil_14";
22977
- const badgeListWrapper = "_badgeListWrapper_eqfil_20";
22978
- const error$5 = "_error_eqfil_53";
22979
- const warning$6 = "_warning_eqfil_73";
22980
- const valid$5 = "_valid_eqfil_93";
22981
- const disabled$5 = "_disabled_eqfil_113";
22982
- const focused$2 = "_focused_eqfil_120";
22983
- const badgeList = "_badgeList_eqfil_20";
22984
- const inputWrapper = "_inputWrapper_eqfil_133";
22985
- const badge = "_badge_eqfil_20";
22986
- const commandInput = "_commandInput_eqfil_165";
22987
- const actions = "_actions_eqfil_180";
22988
- const action = "_action_eqfil_180";
22989
- const autoCompleteEmpty = "_autoCompleteEmpty_eqfil_188";
22990
- const commandList = "_commandList_eqfil_197";
22991
- const autoCompleteOption = "_autoCompleteOption_eqfil_210";
22992
- const disabledOption = "_disabledOption_eqfil_223";
23193
+ const themeVars$v = `'{"border-AutoComplete": "var(--xmlui-border-AutoComplete)", "borderHorizontal-AutoComplete": "var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete))", "borderVertical-AutoComplete": "var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete))", "borderLeft-AutoComplete": "var(--xmlui-borderLeft-AutoComplete, var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderRight-AutoComplete": "var(--xmlui-borderRight-AutoComplete, var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderTop-AutoComplete": "var(--xmlui-borderTop-AutoComplete, var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderBottom-AutoComplete": "var(--xmlui-borderBottom-AutoComplete, var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderWidth-AutoComplete": "var(--xmlui-borderWidth-AutoComplete)", "borderHorizontalWidth-AutoComplete": "var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete))", "borderLeftWidth-AutoComplete": "var(--xmlui-borderLeftWidth-AutoComplete, var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderRightWidth-AutoComplete": "var(--xmlui-borderRightWidth-AutoComplete, var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderVerticalWidth-AutoComplete": "var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete))", "borderTopWidth-AutoComplete": "var(--xmlui-borderTopWidth-AutoComplete, var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderBottomWidth-AutoComplete": "var(--xmlui-borderBottomWidth-AutoComplete, var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderStyle-AutoComplete": "var(--xmlui-borderStyle-AutoComplete)", "borderHorizontalStyle-AutoComplete": "var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete))", "borderLeftStyle-AutoComplete": "var(--xmlui-borderLeftStyle-AutoComplete, var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderRightStyle-AutoComplete": "var(--xmlui-borderRightStyle-AutoComplete, var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderVerticalStyle-AutoComplete": "var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete))", "borderTopStyle-AutoComplete": "var(--xmlui-borderTopStyle-AutoComplete, var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderBottomStyle-AutoComplete": "var(--xmlui-borderBottomStyle-AutoComplete, var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderColor-AutoComplete": "var(--xmlui-borderColor-AutoComplete)", "borderHorizontalColor-AutoComplete": "var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete))", "borderLeftColor-AutoComplete": "var(--xmlui-borderLeftColor-AutoComplete, var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderRightColor-AutoComplete": "var(--xmlui-borderRightColor-AutoComplete, var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderVerticalColor-AutoComplete": "var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete))", "borderTopColor-AutoComplete": "var(--xmlui-borderTopColor-AutoComplete, var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderBottomColor-AutoComplete": "var(--xmlui-borderBottomColor-AutoComplete, var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderStartStartRadius-AutoComplete": "var(--xmlui-borderStartStartRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderStartEndRadius-AutoComplete": "var(--xmlui-borderStartEndRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderEndStartRadius-AutoComplete": "var(--xmlui-borderEndStartRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderEndEndRadius-AutoComplete": "var(--xmlui-borderEndEndRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "padding-AutoComplete": "var(--xmlui-padding-AutoComplete)", "paddingHorizontal-AutoComplete": "var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete))", "paddingVertical-AutoComplete": "var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete))", "paddingLeft-AutoComplete": "var(--xmlui-paddingLeft-AutoComplete, var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingRight-AutoComplete": "var(--xmlui-paddingRight-AutoComplete, var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingTop-AutoComplete": "var(--xmlui-paddingTop-AutoComplete, var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingBottom-AutoComplete": "var(--xmlui-paddingBottom-AutoComplete, var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete)))", "padding-item-AutoComplete": "var(--xmlui-padding-item-AutoComplete)", "paddingHorizontal-item-AutoComplete": "var(--xmlui-paddingHorizontal-item-AutoComplete, var(--xmlui-padding-item-AutoComplete))", "paddingVertical-item-AutoComplete": "var(--xmlui-paddingVertical-item-AutoComplete, var(--xmlui-padding-item-AutoComplete))", "paddingLeft-item-AutoComplete": "var(--xmlui-paddingLeft-item-AutoComplete, var(--xmlui-paddingHorizontal-item-AutoComplete, var(--xmlui-padding-item-AutoComplete)))", "paddingRight-item-AutoComplete": "var(--xmlui-paddingRight-item-AutoComplete, var(--xmlui-paddingHorizontal-item-AutoComplete, var(--xmlui-padding-item-AutoComplete)))", "paddingTop-item-AutoComplete": "var(--xmlui-paddingTop-item-AutoComplete, var(--xmlui-paddingVertical-item-AutoComplete, var(--xmlui-padding-item-AutoComplete)))", "paddingBottom-item-AutoComplete": "var(--xmlui-paddingBottom-item-AutoComplete, var(--xmlui-paddingVertical-item-AutoComplete, var(--xmlui-padding-item-AutoComplete)))", "Input:borderRadius-AutoComplete-default": "var(--xmlui-borderRadius-AutoComplete-default)", "Input:borderColor-AutoComplete-default": "var(--xmlui-borderColor-AutoComplete-default)", "Input:borderWidth-AutoComplete-default": "var(--xmlui-borderWidth-AutoComplete-default)", "Input:borderStyle-AutoComplete-default": "var(--xmlui-borderStyle-AutoComplete-default)", "Input:fontSize-AutoComplete-default": "var(--xmlui-fontSize-AutoComplete-default)", "Input:backgroundColor-AutoComplete-default": "var(--xmlui-backgroundColor-AutoComplete-default)", "Input:boxShadow-AutoComplete-default": "var(--xmlui-boxShadow-AutoComplete-default)", "Input:textColor-AutoComplete-default": "var(--xmlui-textColor-AutoComplete-default)", "Input:borderColor-AutoComplete-default--hover": "var(--xmlui-borderColor-AutoComplete-default--hover)", "Input:backgroundColor-AutoComplete-default--hover": "var(--xmlui-backgroundColor-AutoComplete-default--hover)", "Input:boxShadow-AutoComplete-default--hover": "var(--xmlui-boxShadow-AutoComplete-default--hover)", "Input:textColor-AutoComplete-default--hover": "var(--xmlui-textColor-AutoComplete-default--hover)", "Input:textColor-placeholder-AutoComplete-default": "var(--xmlui-textColor-placeholder-AutoComplete-default)", "Input:fontSize-placeholder-AutoComplete-default": "var(--xmlui-fontSize-placeholder-AutoComplete-default)", "Input:borderRadius-AutoComplete-error": "var(--xmlui-borderRadius-AutoComplete-error)", "Input:borderColor-AutoComplete-error": "var(--xmlui-borderColor-AutoComplete-error)", "Input:borderWidth-AutoComplete-error": "var(--xmlui-borderWidth-AutoComplete-error)", "Input:borderStyle-AutoComplete-error": "var(--xmlui-borderStyle-AutoComplete-error)", "Input:fontSize-AutoComplete-error": "var(--xmlui-fontSize-AutoComplete-error)", "Input:backgroundColor-AutoComplete-error": "var(--xmlui-backgroundColor-AutoComplete-error)", "Input:boxShadow-AutoComplete-error": "var(--xmlui-boxShadow-AutoComplete-error)", "Input:textColor-AutoComplete-error": "var(--xmlui-textColor-AutoComplete-error)", "Input:borderColor-AutoComplete-error--hover": "var(--xmlui-borderColor-AutoComplete-error--hover)", "Input:backgroundColor-AutoComplete-error--hover": "var(--xmlui-backgroundColor-AutoComplete-error--hover)", "Input:boxShadow-AutoComplete-error--hover": "var(--xmlui-boxShadow-AutoComplete-error--hover)", "Input:textColor-AutoComplete-error--hover": "var(--xmlui-textColor-AutoComplete-error--hover)", "Input:textColor-placeholder-AutoComplete-error": "var(--xmlui-textColor-placeholder-AutoComplete-error)", "Input:fontSize-placeholder-AutoComplete-error": "var(--xmlui-fontSize-placeholder-AutoComplete-error)", "Input:borderRadius-AutoComplete-warning": "var(--xmlui-borderRadius-AutoComplete-warning)", "Input:borderColor-AutoComplete-warning": "var(--xmlui-borderColor-AutoComplete-warning)", "Input:borderWidth-AutoComplete-warning": "var(--xmlui-borderWidth-AutoComplete-warning)", "Input:borderStyle-AutoComplete-warning": "var(--xmlui-borderStyle-AutoComplete-warning)", "Input:fontSize-AutoComplete-warning": "var(--xmlui-fontSize-AutoComplete-warning)", "Input:backgroundColor-AutoComplete-warning": "var(--xmlui-backgroundColor-AutoComplete-warning)", "Input:boxShadow-AutoComplete-warning": "var(--xmlui-boxShadow-AutoComplete-warning)", "Input:textColor-AutoComplete-warning": "var(--xmlui-textColor-AutoComplete-warning)", "Input:borderColor-AutoComplete-warning--hover": "var(--xmlui-borderColor-AutoComplete-warning--hover)", "Input:backgroundColor-AutoComplete-warning--hover": "var(--xmlui-backgroundColor-AutoComplete-warning--hover)", "Input:boxShadow-AutoComplete-warning--hover": "var(--xmlui-boxShadow-AutoComplete-warning--hover)", "Input:textColor-AutoComplete-warning--hover": "var(--xmlui-textColor-AutoComplete-warning--hover)", "Input:textColor-placeholder-AutoComplete-warning": "var(--xmlui-textColor-placeholder-AutoComplete-warning)", "Input:fontSize-placeholder-AutoComplete-warning": "var(--xmlui-fontSize-placeholder-AutoComplete-warning)", "Input:borderRadius-AutoComplete-success": "var(--xmlui-borderRadius-AutoComplete-success)", "Input:borderColor-AutoComplete-success": "var(--xmlui-borderColor-AutoComplete-success)", "Input:borderWidth-AutoComplete-success": "var(--xmlui-borderWidth-AutoComplete-success)", "Input:borderStyle-AutoComplete-success": "var(--xmlui-borderStyle-AutoComplete-success)", "Input:fontSize-AutoComplete-success": "var(--xmlui-fontSize-AutoComplete-success)", "Input:backgroundColor-AutoComplete-success": "var(--xmlui-backgroundColor-AutoComplete-success)", "Input:boxShadow-AutoComplete-success": "var(--xmlui-boxShadow-AutoComplete-success)", "Input:textColor-AutoComplete-success": "var(--xmlui-textColor-AutoComplete-success)", "Input:borderColor-AutoComplete-success--hover": "var(--xmlui-borderColor-AutoComplete-success--hover)", "Input:backgroundColor-AutoComplete-success--hover": "var(--xmlui-backgroundColor-AutoComplete-success--hover)", "Input:boxShadow-AutoComplete-success--hover": "var(--xmlui-boxShadow-AutoComplete-success--hover)", "Input:textColor-AutoComplete-success--hover": "var(--xmlui-textColor-AutoComplete-success--hover)", "Input:textColor-placeholder-AutoComplete-success": "var(--xmlui-textColor-placeholder-AutoComplete-success)", "Input:fontSize-placeholder-AutoComplete-success": "var(--xmlui-fontSize-placeholder-AutoComplete-success)", "Input:backgroundColor-AutoComplete--disabled": "var(--xmlui-backgroundColor-AutoComplete--disabled)", "Input:textColor-AutoComplete--disabled": "var(--xmlui-textColor-AutoComplete--disabled)", "Input:borderColor-AutoComplete--disabled": "var(--xmlui-borderColor-AutoComplete--disabled)", "Input:outlineWidth-AutoComplete--focus": "var(--xmlui-outlineWidth-AutoComplete--focus)", "Input:outlineColor-AutoComplete--focus": "var(--xmlui-outlineColor-AutoComplete--focus)", "Input:outlineStyle-AutoComplete--focus": "var(--xmlui-outlineStyle-AutoComplete--focus)", "Input:outlineOffset-AutoComplete--focus": "var(--xmlui-outlineOffset-AutoComplete--focus)", "paddingVertical-AutoComplete-badge": "var(--xmlui-paddingVertical-AutoComplete-badge)", "paddingHorizontal-AutoComplete-badge": "var(--xmlui-paddingHorizontal-AutoComplete-badge)", "borderRadius-AutoComplete-badge": "var(--xmlui-borderRadius-AutoComplete-badge)", "Input:fontSize-AutoComplete-badge": "var(--xmlui-fontSize-AutoComplete-badge)", "Input:backgroundColor-AutoComplete-badge": "var(--xmlui-backgroundColor-AutoComplete-badge)", "Input:textColor-AutoComplete-badge": "var(--xmlui-textColor-AutoComplete-badge)", "Input:backgroundColor-AutoComplete-badge--hover": "var(--xmlui-backgroundColor-AutoComplete-badge--hover)", "Input:textColor-AutoComplete-badge--hover": "var(--xmlui-textColor-AutoComplete-badge--hover)", "Input:backgroundColor-AutoComplete-badge--active": "var(--xmlui-backgroundColor-AutoComplete-badge--active)", "Input:textColor-AutoComplete-badge--active": "var(--xmlui-textColor-AutoComplete-badge--active)", "Input:textColor-placeholder-AutoComplete": "var(--xmlui-textColor-placeholder-AutoComplete)", "Input:borderRadius-menu-AutoComplete": "var(--xmlui-borderRadius-menu-AutoComplete)", "Input:borderWidth-menu-AutoComplete": "var(--xmlui-borderWidth-menu-AutoComplete)", "Input:borderColor-menu-AutoComplete": "var(--xmlui-borderColor-menu-AutoComplete)", "Input:backgroundColor-menu-AutoComplete": "var(--xmlui-backgroundColor-menu-AutoComplete)", "Input:boxShadow-menu-AutoComplete": "var(--xmlui-boxShadow-menu-AutoComplete)", "backgroundColor-item-AutoComplete": "var(--xmlui-backgroundColor-item-AutoComplete)", "backgroundColor-item-AutoComplete--active": "var(--xmlui-backgroundColor-item-AutoComplete--active)", "backgroundColor-item-AutoComplete--hover": "var(--xmlui-backgroundColor-item-AutoComplete--hover)", "textColor-item-AutoComplete--disabled": "var(--xmlui-textColor-item-AutoComplete--disabled)"}'`;
23194
+ const command = "_command_1gtkp_14";
23195
+ const badgeListWrapper = "_badgeListWrapper_1gtkp_20";
23196
+ const error$5 = "_error_1gtkp_51";
23197
+ const warning$6 = "_warning_1gtkp_71";
23198
+ const valid$5 = "_valid_1gtkp_91";
23199
+ const disabled$5 = "_disabled_1gtkp_111";
23200
+ const focused$2 = "_focused_1gtkp_118";
23201
+ const badgeList = "_badgeList_1gtkp_20";
23202
+ const inputWrapper = "_inputWrapper_1gtkp_131";
23203
+ const badge = "_badge_1gtkp_20";
23204
+ const commandInput = "_commandInput_1gtkp_163";
23205
+ const actions = "_actions_1gtkp_178";
23206
+ const action = "_action_1gtkp_178";
23207
+ const autoCompleteEmpty = "_autoCompleteEmpty_1gtkp_186";
23208
+ const commandList = "_commandList_1gtkp_195";
23209
+ const autoCompleteOption = "_autoCompleteOption_1gtkp_208";
23210
+ const highlighted = "_highlighted_1gtkp_225";
23211
+ const disabledOption = "_disabledOption_1gtkp_228";
22993
23212
  const styles$L = {
22994
23213
  themeVars: themeVars$v,
22995
23214
  command,
@@ -23007,8 +23226,9 @@ const styles$L = {
23007
23226
  action,
23008
23227
  autoCompleteEmpty,
23009
23228
  commandList,
23010
- "fade-in": "_fade-in_eqfil_1",
23229
+ "fade-in": "_fade-in_1gtkp_1",
23011
23230
  autoCompleteOption,
23231
+ highlighted,
23012
23232
  disabledOption
23013
23233
  };
23014
23234
  const AutoCompleteContext = createContext({
@@ -23369,12 +23589,18 @@ const AutoComplete = forwardRef(function AutoComplete2({
23369
23589
  /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, ref: setReferenceElement, children: /* @__PURE__ */ jsxs(
23370
23590
  "div",
23371
23591
  {
23592
+ ref: forwardedRef,
23372
23593
  style: style2,
23373
23594
  "data-part-id": PART_LIST_WRAPPER,
23374
- className: classnames(className, styles$L.badgeListWrapper, styles$L[validationStatus], {
23375
- [styles$L.disabled]: !enabled2,
23376
- [styles$L.focused]: isFocused
23377
- }),
23595
+ className: classnames(
23596
+ className,
23597
+ styles$L.badgeListWrapper,
23598
+ styles$L[validationStatus],
23599
+ {
23600
+ [styles$L.disabled]: !enabled2,
23601
+ [styles$L.focused]: isFocused
23602
+ }
23603
+ ),
23378
23604
  "aria-expanded": open,
23379
23605
  children: [
23380
23606
  Array.isArray(selectedValue) && selectedValue.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$L.badgeList, children: selectedValue.map((v, index) => /* @__PURE__ */ jsxs("span", { className: styles$L.badge, children: [
@@ -23552,7 +23778,7 @@ function CreatableItem({ onNewItem, isHighlighted = false }) {
23552
23778
  },
23553
23779
  onClick: handleClick,
23554
23780
  role: "option",
23555
- "aria-selected": isHighlighted,
23781
+ "aria-selected": false,
23556
23782
  children: `Create "${searchTerm}"`
23557
23783
  }
23558
23784
  );
@@ -23593,7 +23819,7 @@ function AutoCompleteOption(option) {
23593
23819
  id,
23594
23820
  role: "option",
23595
23821
  "aria-disabled": !enabled2,
23596
- "aria-selected": isHighlighted,
23822
+ "aria-selected": selected2,
23597
23823
  className: classnames(styles$L.autoCompleteOption, {
23598
23824
  [styles$L.disabledOption]: !enabled2,
23599
23825
  [styles$L.highlighted]: isHighlighted
@@ -24015,7 +24241,7 @@ function CodeBlock({
24015
24241
  icon: /* @__PURE__ */ jsx(Icon$l, { name: "copy", "aria-hidden": true }),
24016
24242
  onClick: () => {
24017
24243
  if (!textToCopy) return;
24018
- navigator.clipboard.writeText(textToCopy);
24244
+ void navigator.clipboard.writeText(textToCopy);
24019
24245
  toast.success("Code copied!");
24020
24246
  }
24021
24247
  }
@@ -25881,7 +26107,7 @@ const TreeComponent = memo((props) => {
25881
26107
  if (currentIndex >= 0) {
25882
26108
  const currentNode = flatTreeData[currentIndex];
25883
26109
  if (currentNode.hasChildren && !currentNode.isExpanded) {
25884
- toggleNode(currentNode);
26110
+ void toggleNode(currentNode);
25885
26111
  } else if (currentNode.hasChildren && currentNode.isExpanded && currentIndex + 1 < flatTreeData.length) {
25886
26112
  newIndex = currentIndex + 1;
25887
26113
  }
@@ -25893,7 +26119,7 @@ const TreeComponent = memo((props) => {
25893
26119
  if (currentIndex >= 0) {
25894
26120
  const currentNode = flatTreeData[currentIndex];
25895
26121
  if (currentNode.hasChildren && currentNode.isExpanded) {
25896
- toggleNode(currentNode);
26122
+ void toggleNode(currentNode);
25897
26123
  } else if (currentNode.depth > 0) {
25898
26124
  for (let i = currentIndex - 1; i >= 0; i--) {
25899
26125
  if (flatTreeData[i].depth < currentNode.depth) {
@@ -25925,7 +26151,7 @@ const TreeComponent = memo((props) => {
25925
26151
  newIndex = currentIndex;
25926
26152
  }
25927
26153
  if (e.key === "Enter" && currentNode.hasChildren) {
25928
- toggleNode(currentNode);
26154
+ void toggleNode(currentNode);
25929
26155
  }
25930
26156
  }
25931
26157
  handled = true;
@@ -27464,32 +27690,33 @@ const fragmentComponentRenderer = createComponentRenderer(
27464
27690
  }
27465
27691
  );
27466
27692
  const themeVars$m = `'{"textColor-pagination-Table": "var(--xmlui-textColor-pagination-Table)", "backgroundColor-Table": "var(--xmlui-backgroundColor-Table)", "textColor-Table": "var(--xmlui-textColor-Table)", "backgroundColor-row-Table": "var(--xmlui-backgroundColor-row-Table)", "backgroundColor-row-Table--hover": "var(--xmlui-backgroundColor-row-Table--hover)", "backgroundColor-selected-Table": "var(--xmlui-backgroundColor-selected-Table)", "backgroundColor-selected-Table--hover": "var(--xmlui-backgroundColor-selected-Table--hover)", "backgroundColor-heading-Table": "var(--xmlui-backgroundColor-heading-Table)", "backgroundColor-heading-Table--hover": "var(--xmlui-backgroundColor-heading-Table--hover)", "backgroundColor-heading-Table--active": "var(--xmlui-backgroundColor-heading-Table--active)", "padding-heading-Table": "var(--xmlui-padding-heading-Table)", "paddingHorizontal-heading-Table": "var(--xmlui-paddingHorizontal-heading-Table, var(--xmlui-padding-heading-Table))", "paddingVertical-heading-Table": "var(--xmlui-paddingVertical-heading-Table, var(--xmlui-padding-heading-Table))", "paddingLeft-heading-Table": "var(--xmlui-paddingLeft-heading-Table, var(--xmlui-paddingHorizontal-heading-Table, var(--xmlui-padding-heading-Table)))", "paddingRight-heading-Table": "var(--xmlui-paddingRight-heading-Table, var(--xmlui-paddingHorizontal-heading-Table, var(--xmlui-padding-heading-Table)))", "paddingTop-heading-Table": "var(--xmlui-paddingTop-heading-Table, var(--xmlui-paddingVertical-heading-Table, var(--xmlui-padding-heading-Table)))", "paddingBottom-heading-Table": "var(--xmlui-paddingBottom-heading-Table, var(--xmlui-paddingVertical-heading-Table, var(--xmlui-padding-heading-Table)))", "padding-cell-Table": "var(--xmlui-padding-cell-Table)", "paddingHorizontal-cell-Table": "var(--xmlui-paddingHorizontal-cell-Table, var(--xmlui-padding-cell-Table))", "paddingVertical-cell-Table": "var(--xmlui-paddingVertical-cell-Table, var(--xmlui-padding-cell-Table))", "paddingLeft-cell-Table": "var(--xmlui-paddingLeft-cell-Table, var(--xmlui-paddingHorizontal-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingRight-cell-Table": "var(--xmlui-paddingRight-cell-Table, var(--xmlui-paddingHorizontal-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingTop-cell-Table": "var(--xmlui-paddingTop-cell-Table, var(--xmlui-paddingVertical-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingBottom-cell-Table": "var(--xmlui-paddingBottom-cell-Table, var(--xmlui-paddingVertical-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingHorizontal-cell-first-Table": "var(--xmlui-paddingHorizontal-cell-first-Table)", "paddingHorizontal-cell-last-Table": "var(--xmlui-paddingHorizontal-cell-last-Table)", "border-cell-Table": "var(--xmlui-border-cell-Table)", "borderHorizontal-cell-Table": "var(--xmlui-borderHorizontal-cell-Table, var(--xmlui-border-cell-Table))", "borderVertical-cell-Table": "var(--xmlui-borderVertical-cell-Table, var(--xmlui-border-cell-Table))", "borderLeft-cell-Table": "var(--xmlui-borderLeft-cell-Table, var(--xmlui-borderHorizontal-cell-Table, var(--xmlui-border-cell-Table)))", "borderRight-cell-Table": "var(--xmlui-borderRight-cell-Table, var(--xmlui-borderHorizontal-cell-Table, var(--xmlui-border-cell-Table)))", "borderTop-cell-Table": "var(--xmlui-borderTop-cell-Table, var(--xmlui-borderVertical-cell-Table, var(--xmlui-border-cell-Table)))", "borderBottom-cell-Table": "var(--xmlui-borderBottom-cell-Table)", "borderWidth-cell-Table": "var(--xmlui-borderWidth-cell-Table)", "borderHorizontalWidth-cell-Table": "var(--xmlui-borderHorizontalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table))", "borderLeftWidth-cell-Table": "var(--xmlui-borderLeftWidth-cell-Table, var(--xmlui-borderHorizontalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderRightWidth-cell-Table": "var(--xmlui-borderRightWidth-cell-Table, var(--xmlui-borderHorizontalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderVerticalWidth-cell-Table": "var(--xmlui-borderVerticalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table))", "borderTopWidth-cell-Table": "var(--xmlui-borderTopWidth-cell-Table, var(--xmlui-borderVerticalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderBottomWidth-cell-Table": "var(--xmlui-borderBottomWidth-cell-Table, var(--xmlui-borderVerticalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderStyle-cell-Table": "var(--xmlui-borderStyle-cell-Table)", "borderHorizontalStyle-cell-Table": "var(--xmlui-borderHorizontalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table))", "borderLeftStyle-cell-Table": "var(--xmlui-borderLeftStyle-cell-Table, var(--xmlui-borderHorizontalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderRightStyle-cell-Table": "var(--xmlui-borderRightStyle-cell-Table, var(--xmlui-borderHorizontalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderVerticalStyle-cell-Table": "var(--xmlui-borderVerticalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table))", "borderTopStyle-cell-Table": "var(--xmlui-borderTopStyle-cell-Table, var(--xmlui-borderVerticalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderBottomStyle-cell-Table": "var(--xmlui-borderBottomStyle-cell-Table, var(--xmlui-borderVerticalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderColor-cell-Table": "var(--xmlui-borderColor-cell-Table)", "borderHorizontalColor-cell-Table": "var(--xmlui-borderHorizontalColor-cell-Table, var(--xmlui-borderColor-cell-Table))", "borderLeftColor-cell-Table": "var(--xmlui-borderLeftColor-cell-Table, var(--xmlui-borderHorizontalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderRightColor-cell-Table": "var(--xmlui-borderRightColor-cell-Table, var(--xmlui-borderHorizontalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderVerticalColor-cell-Table": "var(--xmlui-borderVerticalColor-cell-Table, var(--xmlui-borderColor-cell-Table))", "borderTopColor-cell-Table": "var(--xmlui-borderTopColor-cell-Table, var(--xmlui-borderVerticalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderBottomColor-cell-Table": "var(--xmlui-borderBottomColor-cell-Table, var(--xmlui-borderVerticalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderStartStartRadius-cell-Table": "var(--xmlui-borderStartStartRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "borderStartEndRadius-cell-Table": "var(--xmlui-borderStartEndRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "borderEndStartRadius-cell-Table": "var(--xmlui-borderEndStartRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "borderEndEndRadius-cell-Table": "var(--xmlui-borderEndEndRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "border-Table": "var(--xmlui-border-Table)", "borderHorizontal-Table": "var(--xmlui-borderHorizontal-Table, var(--xmlui-border-Table))", "borderVertical-Table": "var(--xmlui-borderVertical-Table, var(--xmlui-border-Table))", "borderLeft-Table": "var(--xmlui-borderLeft-Table, var(--xmlui-borderHorizontal-Table, var(--xmlui-border-Table)))", "borderRight-Table": "var(--xmlui-borderRight-Table, var(--xmlui-borderHorizontal-Table, var(--xmlui-border-Table)))", "borderTop-Table": "var(--xmlui-borderTop-Table, var(--xmlui-borderVertical-Table, var(--xmlui-border-Table)))", "borderBottom-Table": "var(--xmlui-borderBottom-Table, var(--xmlui-borderVertical-Table, var(--xmlui-border-Table)))", "borderWidth-Table": "var(--xmlui-borderWidth-Table)", "borderHorizontalWidth-Table": "var(--xmlui-borderHorizontalWidth-Table, var(--xmlui-borderWidth-Table))", "borderLeftWidth-Table": "var(--xmlui-borderLeftWidth-Table, var(--xmlui-borderHorizontalWidth-Table, var(--xmlui-borderWidth-Table)))", "borderRightWidth-Table": "var(--xmlui-borderRightWidth-Table, var(--xmlui-borderHorizontalWidth-Table, var(--xmlui-borderWidth-Table)))", "borderVerticalWidth-Table": "var(--xmlui-borderVerticalWidth-Table, var(--xmlui-borderWidth-Table))", "borderTopWidth-Table": "var(--xmlui-borderTopWidth-Table, var(--xmlui-borderVerticalWidth-Table, var(--xmlui-borderWidth-Table)))", "borderBottomWidth-Table": "var(--xmlui-borderBottomWidth-Table, var(--xmlui-borderVerticalWidth-Table, var(--xmlui-borderWidth-Table)))", "borderStyle-Table": "var(--xmlui-borderStyle-Table)", "borderHorizontalStyle-Table": "var(--xmlui-borderHorizontalStyle-Table, var(--xmlui-borderStyle-Table))", "borderLeftStyle-Table": "var(--xmlui-borderLeftStyle-Table, var(--xmlui-borderHorizontalStyle-Table, var(--xmlui-borderStyle-Table)))", "borderRightStyle-Table": "var(--xmlui-borderRightStyle-Table, var(--xmlui-borderHorizontalStyle-Table, var(--xmlui-borderStyle-Table)))", "borderVerticalStyle-Table": "var(--xmlui-borderVerticalStyle-Table, var(--xmlui-borderStyle-Table))", "borderTopStyle-Table": "var(--xmlui-borderTopStyle-Table, var(--xmlui-borderVerticalStyle-Table, var(--xmlui-borderStyle-Table)))", "borderBottomStyle-Table": "var(--xmlui-borderBottomStyle-Table, var(--xmlui-borderVerticalStyle-Table, var(--xmlui-borderStyle-Table)))", "borderColor-Table": "var(--xmlui-borderColor-Table)", "borderHorizontalColor-Table": "var(--xmlui-borderHorizontalColor-Table, var(--xmlui-borderColor-Table))", "borderLeftColor-Table": "var(--xmlui-borderLeftColor-Table, var(--xmlui-borderHorizontalColor-Table, var(--xmlui-borderColor-Table)))", "borderRightColor-Table": "var(--xmlui-borderRightColor-Table, var(--xmlui-borderHorizontalColor-Table, var(--xmlui-borderColor-Table)))", "borderVerticalColor-Table": "var(--xmlui-borderVerticalColor-Table, var(--xmlui-borderColor-Table))", "borderTopColor-Table": "var(--xmlui-borderTopColor-Table, var(--xmlui-borderVerticalColor-Table, var(--xmlui-borderColor-Table)))", "borderBottomColor-Table": "var(--xmlui-borderBottomColor-Table, var(--xmlui-borderVerticalColor-Table, var(--xmlui-borderColor-Table)))", "borderStartStartRadius-Table": "var(--xmlui-borderStartStartRadius-Table, var(--xmlui-borderRadius-Table))", "borderStartEndRadius-Table": "var(--xmlui-borderStartEndRadius-Table, var(--xmlui-borderRadius-Table))", "borderEndStartRadius-Table": "var(--xmlui-borderEndStartRadius-Table, var(--xmlui-borderRadius-Table))", "borderEndEndRadius-Table": "var(--xmlui-borderEndEndRadius-Table, var(--xmlui-borderRadius-Table))", "backgroundColor-pagination-Table": "var(--xmlui-backgroundColor-pagination-Table)", "textColor-heading-Table": "var(--xmlui-textColor-heading-Table)", "fontWeight-row-Table": "var(--xmlui-fontWeight-row-Table)", "fontSize-row-Table": "var(--xmlui-fontSize-row-Table)", "fontWeight-heading-Table": "var(--xmlui-fontWeight-heading-Table)", "fontSize-heading-Table": "var(--xmlui-fontSize-heading-Table)", "textTransform-heading-Table": "var(--xmlui-textTransform-heading-Table)", "borderRadius-Table": "var(--xmlui-borderRadius-Table)", "outlineWidth-heading-Table--focus": "var(--xmlui-outlineWidth-heading-Table--focus)", "outlineColor-heading-Table--focus": "var(--xmlui-outlineColor-heading-Table--focus)", "outlineStyle-heading-Table--focus": "var(--xmlui-outlineStyle-heading-Table--focus)", "outlineOffset-heading-Table--focus": "var(--xmlui-outlineOffset-heading-Table--focus)", "borderBottom-last-row-Table": "var(--xmlui-borderBottom-last-row-Table)"}'`;
27467
- const wrapper$c = "_wrapper_uqop0_14";
27468
- const noScroll = "_noScroll_uqop0_42";
27469
- const headerWrapper = "_headerWrapper_uqop0_45";
27470
- const tableBody = "_tableBody_uqop0_46";
27471
- const clickableHeader = "_clickableHeader_uqop0_51";
27472
- const headerContent = "_headerContent_uqop0_65";
27473
- const headerRow = "_headerRow_uqop0_97";
27474
- const columnCell = "_columnCell_uqop0_101";
27475
- const cell = "_cell_uqop0_102";
27476
- const alignTop = "_alignTop_uqop0_110";
27477
- const alignCenter = "_alignCenter_uqop0_114";
27478
- const alignBottom = "_alignBottom_uqop0_118";
27479
- const table = "_table_uqop0_46";
27480
- const row$1 = "_row_uqop0_126";
27481
- const checkBoxWrapper = "_checkBoxWrapper_uqop0_133";
27482
- const showInHeader = "_showInHeader_uqop0_138";
27483
- const selected = "_selected_uqop0_142";
27484
- const allSelected = "_allSelected_uqop0_142";
27485
- const cellContent = "_cellContent_uqop0_173";
27486
- const focused = "_focused_uqop0_200";
27487
- const disabled$2 = "_disabled_uqop0_212";
27488
- const noBottomBorder = "_noBottomBorder_uqop0_219";
27489
- const noRows$1 = "_noRows_uqop0_244";
27490
- const loadingWrapper$1 = "_loadingWrapper_uqop0_283";
27491
- const resizer$1 = "_resizer_uqop0_296";
27492
- const isResizing = "_isResizing_uqop0_317";
27693
+ const wrapper$c = "_wrapper_1ylgd_14";
27694
+ const noScroll = "_noScroll_1ylgd_42";
27695
+ const headerWrapper = "_headerWrapper_1ylgd_45";
27696
+ const tableBody = "_tableBody_1ylgd_46";
27697
+ const clickableHeader = "_clickableHeader_1ylgd_51";
27698
+ const headerContent = "_headerContent_1ylgd_65";
27699
+ const headerRow = "_headerRow_1ylgd_97";
27700
+ const columnCell = "_columnCell_1ylgd_101";
27701
+ const cell = "_cell_1ylgd_102";
27702
+ const alignTop = "_alignTop_1ylgd_110";
27703
+ const alignCenter = "_alignCenter_1ylgd_114";
27704
+ const alignBottom = "_alignBottom_1ylgd_118";
27705
+ const table = "_table_1ylgd_46";
27706
+ const row$1 = "_row_1ylgd_126";
27707
+ const checkBoxWrapper = "_checkBoxWrapper_1ylgd_133";
27708
+ const showInHeader = "_showInHeader_1ylgd_138";
27709
+ const selected = "_selected_1ylgd_142";
27710
+ const allSelected = "_allSelected_1ylgd_142";
27711
+ const cellContent = "_cellContent_1ylgd_173";
27712
+ const focused = "_focused_1ylgd_200";
27713
+ const disabled$2 = "_disabled_1ylgd_212";
27714
+ const noBottomBorder = "_noBottomBorder_1ylgd_219";
27715
+ const noRows$1 = "_noRows_1ylgd_244";
27716
+ const loadingWrapper$1 = "_loadingWrapper_1ylgd_283";
27717
+ const forceHoverWrapper = "_forceHoverWrapper_1ylgd_296";
27718
+ const resizer$1 = "_resizer_1ylgd_299";
27719
+ const isResizing = "_isResizing_1ylgd_320";
27493
27720
  const styles$C = {
27494
27721
  themeVars: themeVars$m,
27495
27722
  wrapper: wrapper$c,
@@ -27516,6 +27743,7 @@ const styles$C = {
27516
27743
  noBottomBorder,
27517
27744
  noRows: noRows$1,
27518
27745
  loadingWrapper: loadingWrapper$1,
27746
+ forceHoverWrapper,
27519
27747
  resizer: resizer$1,
27520
27748
  isResizing
27521
27749
  };
@@ -27666,14 +27894,7 @@ function useRowSelection({
27666
27894
  lastUpdateSourceRef.current = "table";
27667
27895
  (_a3 = syncWithAppState.update) == null ? void 0 : _a3.call(syncWithAppState, { selectedIds: currentSelectionIds });
27668
27896
  }
27669
- }, [
27670
- selectedItems,
27671
- syncWithAppState,
27672
- appStateSelection,
27673
- idKey,
27674
- rowsSelectable,
27675
- syncState
27676
- ]);
27897
+ }, [selectedItems, syncWithAppState, appStateSelection, idKey, rowsSelectable, syncState]);
27677
27898
  useEffect(() => {
27678
27899
  if (syncState !== "idle") {
27679
27900
  const resetTimer = requestAnimationFrame(() => {
@@ -27852,7 +28073,7 @@ function useRowSelection({
27852
28073
  }
27853
28074
  });
27854
28075
  useEffect(() => {
27855
- onSelectionDidChange == null ? void 0 : onSelectionDidChange(selectedItems);
28076
+ void (onSelectionDidChange == null ? void 0 : onSelectionDidChange(selectedItems));
27856
28077
  }, [selectedItems, onSelectionDidChange]);
27857
28078
  const checkAllRows = useEvent((checked) => {
27858
28079
  if (!rowsSelectable) {
@@ -28257,7 +28478,6 @@ const PaginationNative = forwardRef(function PaginationNative2({
28257
28478
  style: style2,
28258
28479
  className,
28259
28480
  labelPosition: orientation === "vertical" ? "top" : "start",
28260
- isInputTemplateUsed: true,
28261
28481
  children: /* @__PURE__ */ jsx(
28262
28482
  "select",
28263
28483
  {
@@ -28320,11 +28540,38 @@ const PaginationNative = forwardRef(function PaginationNative2({
28320
28540
  );
28321
28541
  });
28322
28542
  const TablePaginationControlsLocationValues = ["top", "bottom", "both"];
28543
+ const CheckboxToleranceValues = ["none", "compact", "comfortable", "spacious"];
28323
28544
  function defaultIsRowDisabled(_) {
28324
28545
  return false;
28325
28546
  }
28326
28547
  const SELECT_COLUMN_WIDTH = 42;
28327
28548
  const DEFAULT_PAGE_SIZES = [10];
28549
+ const getCheckboxTolerancePixels = (tolerance) => {
28550
+ switch (tolerance) {
28551
+ case "none":
28552
+ return 0;
28553
+ case "compact":
28554
+ return 8;
28555
+ case "comfortable":
28556
+ return 12;
28557
+ case "spacious":
28558
+ return 16;
28559
+ default:
28560
+ return 8;
28561
+ }
28562
+ };
28563
+ const isWithinCheckboxBoundary = (pointX, pointY, checkboxRect, tolerancePixels) => {
28564
+ const distanceToLeft = Math.abs(pointX - checkboxRect.left);
28565
+ const distanceToRight = Math.abs(pointX - checkboxRect.right);
28566
+ const distanceToTop = Math.abs(pointY - checkboxRect.top);
28567
+ const distanceToBottom = Math.abs(pointY - checkboxRect.bottom);
28568
+ const withinHorizontalBounds = pointX >= checkboxRect.left && pointX <= checkboxRect.right;
28569
+ const withinVerticalBounds = pointY >= checkboxRect.top && pointY <= checkboxRect.bottom;
28570
+ const withinCheckbox = withinHorizontalBounds && withinVerticalBounds;
28571
+ const nearHorizontalBoundary = withinVerticalBounds && (distanceToLeft <= tolerancePixels || distanceToRight <= tolerancePixels);
28572
+ const nearVerticalBoundary = withinHorizontalBounds && (distanceToTop <= tolerancePixels || distanceToBottom <= tolerancePixels);
28573
+ return withinCheckbox || nearHorizontalBoundary || nearVerticalBoundary;
28574
+ };
28328
28575
  const getCommonPinningStyles = (column) => {
28329
28576
  const isPinned = column.getIsPinned();
28330
28577
  return {
@@ -28381,6 +28628,7 @@ const Table = forwardRef(
28381
28628
  showCurrentPage = defaultProps$B.showCurrentPage,
28382
28629
  showPageInfo = defaultProps$B.showPageInfo,
28383
28630
  showPageSizeSelector = defaultProps$B.showPageSizeSelector,
28631
+ checkboxTolerance = defaultProps$B.checkboxTolerance,
28384
28632
  ...rest
28385
28633
  // cols
28386
28634
  }, forwardedRef) => {
@@ -28406,6 +28654,9 @@ const Table = forwardRef(
28406
28654
  }
28407
28655
  }, [autoFocus]);
28408
28656
  const [visibleItems2, setVisibleItems] = useState(EMPTY_ARRAY);
28657
+ const [hoveredRowId, setHoveredRowId] = useState(null);
28658
+ const [headerCheckboxHovered, setHeaderCheckboxHovered] = useState(false);
28659
+ const tolerancePixels = getCheckboxTolerancePixels(checkboxTolerance);
28409
28660
  const {
28410
28661
  toggleRow,
28411
28662
  checkAllRows,
@@ -28537,10 +28788,12 @@ const Table = forwardRef(
28537
28788
  {
28538
28789
  ...{
28539
28790
  className: classnames(styles$C.checkBoxWrapper, {
28540
- [styles$C.showInHeader]: alwaysShowSelectionHeader
28791
+ [styles$C.showInHeader]: alwaysShowSelectionHeader,
28792
+ [styles$C.forceHoverWrapper]: headerCheckboxHovered
28541
28793
  }),
28542
28794
  value: table22.getIsAllRowsSelected(),
28543
28795
  indeterminate: table22.getIsSomeRowsSelected(),
28796
+ forceHover: headerCheckboxHovered,
28544
28797
  onDidChange: () => {
28545
28798
  const allSelected2 = table22.getRowModel().rows.every((row2) => rowDisabledPredicate(row2.original) || row2.getIsSelected());
28546
28799
  checkAllRows(!allSelected2);
@@ -28552,9 +28805,12 @@ const Table = forwardRef(
28552
28805
  Toggle,
28553
28806
  {
28554
28807
  ...{
28555
- className: styles$C.checkBoxWrapper,
28808
+ className: classnames(styles$C.checkBoxWrapper, {
28809
+ [styles$C.forceHoverWrapper]: hoveredRowId === row2.id
28810
+ }),
28556
28811
  value: row2.getIsSelected(),
28557
28812
  indeterminate: row2.getIsSomeSelected(),
28813
+ forceHover: hoveredRowId === row2.id,
28558
28814
  onDidChange: () => {
28559
28815
  toggleRow(row2.original, { metaKey: true });
28560
28816
  }
@@ -28570,7 +28826,9 @@ const Table = forwardRef(
28570
28826
  alwaysShowSelectionHeader,
28571
28827
  checkAllRows,
28572
28828
  toggleRow,
28573
- rowDisabledPredicate
28829
+ rowDisabledPredicate,
28830
+ hoveredRowId,
28831
+ headerCheckboxHovered
28574
28832
  ]);
28575
28833
  const [pagination2, setPagination] = useState({
28576
28834
  pageSize: isPaginated ? pageSize : Number.MAX_VALUE,
@@ -28755,6 +29013,67 @@ const Table = forwardRef(
28755
29013
  className: classnames(styles$C.headerRow, {
28756
29014
  [styles$C.allSelected]: table2.getIsAllRowsSelected()
28757
29015
  }),
29016
+ onClick: (event) => {
29017
+ const target2 = event.target;
29018
+ const headerCell = target2.closest("th");
29019
+ if (headerCell && rowsSelectable && enableMultiRowSelection) {
29020
+ const header2 = headerGroup.headers.find((h) => {
29021
+ const headerElement = headerCell;
29022
+ return (headerElement == null ? void 0 : headerElement.getAttribute("data-column-id")) === h.id || h.id === "select";
29023
+ });
29024
+ if (header2 && header2.id === "select") {
29025
+ const clickX = event.clientX;
29026
+ const clickY = event.clientY;
29027
+ const checkbox2 = headerCell.querySelector('input[type="checkbox"]');
29028
+ if (checkbox2) {
29029
+ const checkboxRect = checkbox2.getBoundingClientRect();
29030
+ if (isWithinCheckboxBoundary(clickX, clickY, checkboxRect, tolerancePixels)) {
29031
+ event.preventDefault();
29032
+ event.stopPropagation();
29033
+ const allSelected2 = table2.getRowModel().rows.every((row2) => rowDisabledPredicate(row2.original) || row2.getIsSelected());
29034
+ checkAllRows(!allSelected2);
29035
+ }
29036
+ }
29037
+ }
29038
+ }
29039
+ },
29040
+ onMouseMove: (event) => {
29041
+ if (rowsSelectable && enableMultiRowSelection) {
29042
+ const target2 = event.target;
29043
+ const headerCell = target2.closest("th");
29044
+ if (headerCell) {
29045
+ const header2 = headerGroup.headers.find((h) => {
29046
+ const headerElement = headerCell;
29047
+ return (headerElement == null ? void 0 : headerElement.getAttribute("data-column-id")) === h.id || h.id === "select";
29048
+ });
29049
+ if (header2 && header2.id === "select") {
29050
+ const mouseX = event.clientX;
29051
+ const mouseY = event.clientY;
29052
+ const checkbox2 = headerCell.querySelector('input[type="checkbox"]');
29053
+ if (checkbox2) {
29054
+ const checkboxRect = checkbox2.getBoundingClientRect();
29055
+ const shouldShowHover = isWithinCheckboxBoundary(mouseX, mouseY, checkboxRect, tolerancePixels);
29056
+ if (shouldShowHover && !headerCheckboxHovered) {
29057
+ setHeaderCheckboxHovered(true);
29058
+ event.currentTarget.style.cursor = "pointer";
29059
+ } else if (!shouldShowHover && headerCheckboxHovered) {
29060
+ setHeaderCheckboxHovered(false);
29061
+ event.currentTarget.style.cursor = "";
29062
+ }
29063
+ }
29064
+ } else if (headerCheckboxHovered) {
29065
+ setHeaderCheckboxHovered(false);
29066
+ event.currentTarget.style.cursor = "";
29067
+ }
29068
+ }
29069
+ }
29070
+ },
29071
+ onMouseLeave: (event) => {
29072
+ if (headerCheckboxHovered) {
29073
+ setHeaderCheckboxHovered(false);
29074
+ event.currentTarget.style.cursor = "";
29075
+ }
29076
+ },
28758
29077
  children: headerGroup.headers.map((header2, headerIndex) => {
28759
29078
  var _a3, _b2, _c2;
28760
29079
  const { width, ...style22 } = ((_a3 = header2.column.columnDef.meta) == null ? void 0 : _a3.style) || {};
@@ -28763,6 +29082,7 @@ const Table = forwardRef(
28763
29082
  return /* @__PURE__ */ jsxs(
28764
29083
  "th",
28765
29084
  {
29085
+ "data-column-id": header2.id,
28766
29086
  className: classnames(styles$C.columnCell, alignmentClass),
28767
29087
  colSpan: header2.colSpan,
28768
29088
  style: {
@@ -28859,8 +29179,41 @@ const Table = forwardRef(
28859
29179
  if (target2.tagName.toLowerCase() === "input") {
28860
29180
  return;
28861
29181
  }
29182
+ const currentRow = event.currentTarget;
29183
+ const checkbox2 = currentRow.querySelector('input[type="checkbox"]');
29184
+ if (checkbox2) {
29185
+ const checkboxRect = checkbox2.getBoundingClientRect();
29186
+ const clickX = event.clientX;
29187
+ const clickY = event.clientY;
29188
+ if (isWithinCheckboxBoundary(clickX, clickY, checkboxRect, tolerancePixels)) {
29189
+ toggleRow(row2.original, { metaKey: true });
29190
+ return;
29191
+ }
29192
+ }
28862
29193
  toggleRow(row2.original, event);
28863
29194
  },
29195
+ onMouseMove: (event) => {
29196
+ const currentRow = event.currentTarget;
29197
+ const checkbox2 = currentRow.querySelector('input[type="checkbox"]');
29198
+ if (checkbox2) {
29199
+ const checkboxRect = checkbox2.getBoundingClientRect();
29200
+ const mouseX = event.clientX;
29201
+ const mouseY = event.clientY;
29202
+ const shouldShowHover = isWithinCheckboxBoundary(mouseX, mouseY, checkboxRect, tolerancePixels);
29203
+ if (shouldShowHover) {
29204
+ setHoveredRowId(row2.id);
29205
+ currentRow.style.cursor = "pointer";
29206
+ } else {
29207
+ setHoveredRowId(null);
29208
+ currentRow.style.cursor = "";
29209
+ }
29210
+ }
29211
+ },
29212
+ onMouseLeave: (event) => {
29213
+ const currentRow = event.currentTarget;
29214
+ currentRow.style.cursor = "";
29215
+ setHoveredRowId(null);
29216
+ },
28864
29217
  children: row2.getVisibleCells().map((cell2, i) => {
28865
29218
  var _a3, _b2;
28866
29219
  const cellRenderer = (_b2 = (_a3 = cell2.column.columnDef) == null ? void 0 : _a3.meta) == null ? void 0 : _b2.cellRenderer;
@@ -28938,7 +29291,8 @@ const defaultProps$B = {
28938
29291
  showCurrentPage: true,
28939
29292
  buttonRowPosition: "center",
28940
29293
  pageSizeSelectorPosition: "start",
28941
- pageInfoPosition: "end"
29294
+ pageInfoPosition: "end",
29295
+ checkboxTolerance: "compact"
28942
29296
  };
28943
29297
  const COMP$12 = "Table";
28944
29298
  const TableMd = createMetadata({
@@ -29062,6 +29416,12 @@ const TableMd = createMetadata({
29062
29416
  valueType: "string",
29063
29417
  availableValues: ["top", "center", "bottom"],
29064
29418
  defaultValue: "center"
29419
+ },
29420
+ checkboxTolerance: {
29421
+ description: `This property controls the tolerance area around checkboxes for easier interaction. This property only has an effect when the rowsSelectable property is set to \`true\`. \`none\` provides no tolerance (0px), \`compact\` provides minimal tolerance (8px), \`comfortable\` provides medium tolerance (12px), and \`spacious\` provides generous tolerance (16px) for improved accessibility.`,
29422
+ valueType: "string",
29423
+ availableValues: CheckboxToleranceValues,
29424
+ defaultValue: defaultProps$B.checkboxTolerance
29065
29425
  }
29066
29426
  },
29067
29427
  events: {
@@ -29249,6 +29609,7 @@ const TableWithColumns = memo(forwardRef(
29249
29609
  showCurrentPage: extractValue.asOptionalBoolean(node.props.showCurrentPage),
29250
29610
  showPageInfo: extractValue.asOptionalBoolean(node.props.showPageInfo),
29251
29611
  showPageSizeSelector: extractValue.asOptionalBoolean(node.props.showPageSizeSelector),
29612
+ checkboxTolerance: extractValue.asOptionalString(node.props.checkboxTolerance),
29252
29613
  initiallySelected: extractValue(node.props.initiallySelected),
29253
29614
  syncWithAppState: extractValue(node.props.syncWithAppState)
29254
29615
  }
@@ -29477,6 +29838,7 @@ const modalViewComponentRenderer = createComponentRenderer(
29477
29838
  fullScreen: extractValue.asOptionalBoolean((_a2 = node.props) == null ? void 0 : _a2.fullScreen),
29478
29839
  title: extractValue((_b = node.props) == null ? void 0 : _b.title),
29479
29840
  closeButtonVisible: extractValue.asOptionalBoolean(node.props.closeButtonVisible),
29841
+ externalAnimation: extractValue.asOptionalBoolean(node.props.externalAnimation),
29480
29842
  children: renderChild2(node.children, { type: "Stack" })
29481
29843
  }
29482
29844
  );
@@ -29583,7 +29945,7 @@ const IconMd = createMetadata({
29583
29945
  },
29584
29946
  themeVars: parseScssVar(styles$1h.themeVars),
29585
29947
  defaultThemeVars: {
29586
- [`size-${COMP$_}`]: "1.25em"
29948
+ [`size-${COMP$_}`]: "1.2em"
29587
29949
  }
29588
29950
  });
29589
29951
  const iconComponentRenderer = createComponentRenderer(
@@ -30665,7 +31027,7 @@ function Queue({
30665
31027
  return;
30666
31028
  }
30667
31029
  let queueItem = queue[0];
30668
- (async () => {
31030
+ void (async () => {
30669
31031
  await doSingle(queueItem);
30670
31032
  })();
30671
31033
  }, [doComplete, doSingle, prevQueue, queue]);
@@ -31165,26 +31527,26 @@ const ListNative = forwardRef(function DynamicHeightList({
31165
31527
  const tryToFetchPrevPage = useCallback(() => {
31166
31528
  if (virtualizerRef.current && virtualizerRef.current.findStartIndex() < 10 && pageInfo && pageInfo.hasPrevPage && !pageInfo.isFetchingPrevPage && !isFetchingPrevPage.current) {
31167
31529
  isFetchingPrevPage.current = true;
31168
- (async function doFetch() {
31530
+ void async function doFetch() {
31169
31531
  try {
31170
31532
  await requestFetchPrevPage();
31171
31533
  } finally {
31172
31534
  isFetchingPrevPage.current = false;
31173
31535
  }
31174
- })();
31536
+ }();
31175
31537
  }
31176
31538
  }, [pageInfo, requestFetchPrevPage]);
31177
31539
  const isFetchingNextPage = useRef(false);
31178
31540
  const tryToFetchNextPage = useCallback(() => {
31179
31541
  if (virtualizerRef.current && virtualizerRef.current.findEndIndex() + 10 > rows.length && pageInfo && pageInfo.hasNextPage && !pageInfo.isFetchingNextPage && !isFetchingNextPage.current) {
31180
31542
  isFetchingNextPage.current = true;
31181
- (async function doFetch() {
31543
+ void async function doFetch() {
31182
31544
  try {
31183
31545
  await requestFetchNextPage();
31184
31546
  } finally {
31185
31547
  isFetchingNextPage.current = false;
31186
31548
  }
31187
- })();
31549
+ }();
31188
31550
  }
31189
31551
  }, [rows.length, pageInfo, requestFetchNextPage]);
31190
31552
  const initiallyFetchedExtraPages = useRef(false);
@@ -32080,7 +32442,7 @@ class PollClient {
32080
32442
  this.polling = true;
32081
32443
  this.tries = 0;
32082
32444
  this.abortController = new AbortController();
32083
- this.poll(this.abortController.signal);
32445
+ void this.poll(this.abortController.signal);
32084
32446
  }
32085
32447
  stopPoll() {
32086
32448
  this.polling = false;
@@ -32906,7 +33268,7 @@ const SelectMd = createMetadata({
32906
33268
  [`backgroundColor-${COMP$E}-badge--hover`]: "$color-primary-400",
32907
33269
  [`backgroundColor-${COMP$E}-badge--active`]: "$color-primary-500",
32908
33270
  [`textColor-item-${COMP$E}--disabled`]: "$color-surface-200",
32909
- [`textColor-${COMP$E}-badge`]: "$color-surface-50",
33271
+ [`textColor-${COMP$E}-badge`]: "$const-color-surface-50",
32910
33272
  [`backgroundColor-item-${COMP$E}`]: "$backgroundColor-dropdown-item",
32911
33273
  [`backgroundColor-item-${COMP$E}--hover`]: "$backgroundColor-dropdown-item--hover",
32912
33274
  [`backgroundColor-item-${COMP$E}--active`]: "$backgroundColor-dropdown-item--active",
@@ -33519,7 +33881,7 @@ async function invalidateQueries(invalidates, appContext, state) {
33519
33881
  }
33520
33882
  arrayToInvalidate.forEach((invalidate) => {
33521
33883
  var _a3;
33522
- (_a3 = appContext.queryClient) == null ? void 0 : _a3.invalidateQueries(
33884
+ void ((_a3 = appContext.queryClient) == null ? void 0 : _a3.invalidateQueries(
33523
33885
  new DataLoaderQueryKeyGenerator(
33524
33886
  extractParam(state, invalidate, appContext),
33525
33887
  void 0,
@@ -33527,7 +33889,7 @@ async function invalidateQueries(invalidates, appContext, state) {
33527
33889
  void 0,
33528
33890
  void 0
33529
33891
  ).asPredicate()
33530
- );
33892
+ ));
33531
33893
  });
33532
33894
  } else {
33533
33895
  await ((_a2 = appContext.queryClient) == null ? void 0 : _a2.invalidateQueries());
@@ -33995,7 +34357,7 @@ async function uploadFile({ appContext, state, lookupAction, uid }, {
33995
34357
  throw e;
33996
34358
  }
33997
34359
  }
33998
- invalidateQueries(invalidates, appContext, state);
34360
+ void invalidateQueries(invalidates, appContext, state);
33999
34361
  return result;
34000
34362
  }
34001
34363
  const uploadAction = createAction("upload", uploadFile);
@@ -34081,7 +34443,7 @@ function Loader({
34081
34443
  let intervalId;
34082
34444
  if (pollIntervalInSeconds) {
34083
34445
  intervalId = setInterval(() => {
34084
- refetch();
34446
+ void refetch();
34085
34447
  }, pollIntervalInSeconds * 1e3);
34086
34448
  }
34087
34449
  return () => {
@@ -34115,8 +34477,8 @@ function Loader({
34115
34477
  }, [loaderLoaded2, uid]);
34116
34478
  useEffect(() => {
34117
34479
  registerComponentApi == null ? void 0 : registerComponentApi({
34118
- refetch: async (options2) => {
34119
- refetch(options2);
34480
+ refetch: (options2) => {
34481
+ void refetch(options2);
34120
34482
  },
34121
34483
  update: async (updater) => {
34122
34484
  var _a2, _b;
@@ -34134,7 +34496,7 @@ function Loader({
34134
34496
  }
34135
34497
  (_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryId, newData);
34136
34498
  },
34137
- addItem: async (element, indexToInsert) => {
34499
+ addItem: (element, indexToInsert) => {
34138
34500
  var _a2, _b;
34139
34501
  const oldData = (_a2 = appContext.queryClient) == null ? void 0 : _a2.getQueryData(queryId);
34140
34502
  const draft = createDraft(oldData);
@@ -34146,10 +34508,10 @@ function Loader({
34146
34508
  const newData = finishDraft(draft);
34147
34509
  (_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryId, newData);
34148
34510
  },
34149
- getItems: async () => {
34511
+ getItems: () => {
34150
34512
  return data;
34151
34513
  },
34152
- deleteItem: async (element) => {
34514
+ deleteItem: (element) => {
34153
34515
  throw new Error("not implemented");
34154
34516
  }
34155
34517
  });
@@ -34310,7 +34672,9 @@ function MockLoader({
34310
34672
  const waitTime = extractParam(state, loader.props.waitTime, appContext);
34311
34673
  const responseObj = extractParam(state, loader.props.data, appContext);
34312
34674
  const doLoad = useCallback(async () => {
34313
- waitTime && await asyncWait(waitTime);
34675
+ if (waitTime) {
34676
+ await asyncWait(waitTime);
34677
+ }
34314
34678
  return responseObj;
34315
34679
  }, [responseObj, waitTime]);
34316
34680
  return /* @__PURE__ */ jsx(
@@ -34458,7 +34822,7 @@ function PageableLoader({
34458
34822
  const queryKey2 = thizRef.current;
34459
34823
  return () => {
34460
34824
  var _a2, _b;
34461
- (_a2 = appContext.queryClient) == null ? void 0 : _a2.cancelQueries(queryKey2);
34825
+ void ((_a2 = appContext.queryClient) == null ? void 0 : _a2.cancelQueries(queryKey2));
34462
34826
  (_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryKey2, (old) => {
34463
34827
  if (!old) {
34464
34828
  return old;
@@ -34500,6 +34864,7 @@ function PageableLoader({
34500
34864
  }, [
34501
34865
  data,
34502
34866
  error2,
34867
+ isRefetching,
34503
34868
  loaderError2,
34504
34869
  loaderLoaded2,
34505
34870
  onLoaded,
@@ -34513,7 +34878,7 @@ function PageableLoader({
34513
34878
  let intervalId;
34514
34879
  if (pollIntervalInSeconds) {
34515
34880
  intervalId = setInterval(() => {
34516
- refetch();
34881
+ void refetch();
34517
34882
  }, pollIntervalInSeconds * 1e3);
34518
34883
  }
34519
34884
  return () => {
@@ -34532,8 +34897,8 @@ function PageableLoader({
34532
34897
  registerComponentApi({
34533
34898
  fetchPrevPage,
34534
34899
  fetchNextPage: stableFetchNextPage,
34535
- refetch: async (options2) => {
34536
- refetch(options2);
34900
+ refetch: (options2) => {
34901
+ void refetch(options2);
34537
34902
  },
34538
34903
  update: async (updater) => {
34539
34904
  var _a2, _b;
@@ -34557,7 +34922,7 @@ function PageableLoader({
34557
34922
  const newData = finishDraft(draft);
34558
34923
  (_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryId, newData);
34559
34924
  },
34560
- addItem: async (element, indexToInsert) => {
34925
+ addItem: (element, indexToInsert) => {
34561
34926
  var _a2, _b;
34562
34927
  const oldData = (_a2 = appContext.queryClient) == null ? void 0 : _a2.getQueryData(queryId);
34563
34928
  const draft = createDraft(oldData);
@@ -34572,7 +34937,7 @@ function PageableLoader({
34572
34937
  getItems: () => {
34573
34938
  return data;
34574
34939
  },
34575
- deleteItem: async (element) => {
34940
+ deleteItem: (element) => {
34576
34941
  throw new Error("not implemented");
34577
34942
  }
34578
34943
  });
@@ -34716,8 +35081,14 @@ function DataLoader({
34716
35081
  }
34717
35082
  const response = await fetch(queryUrl, fetchOptions);
34718
35083
  if (!response.ok) {
34719
- console.error("[SQL DataLoader] Failed response:", response.status, response.statusText);
34720
- throw new Error(`Failed to execute SQL query: ${response.status} ${response.statusText}`);
35084
+ console.error(
35085
+ "[SQL DataLoader] Failed response:",
35086
+ response.status,
35087
+ response.statusText
35088
+ );
35089
+ throw new Error(
35090
+ `Failed to execute SQL query: ${response.status} ${response.statusText}`
35091
+ );
34721
35092
  }
34722
35093
  const jsonResult = await response.json();
34723
35094
  if (jsonResult && typeof jsonResult === "object") {
@@ -34745,15 +35116,7 @@ function DataLoader({
34745
35116
  });
34746
35117
  }
34747
35118
  },
34748
- [
34749
- api,
34750
- loader.props,
34751
- state,
34752
- url,
34753
- body,
34754
- rawBody,
34755
- appContext
34756
- ]
35119
+ [api, loader.props, state, url, body, rawBody, appContext]
34757
35120
  );
34758
35121
  const queryId = useMemo(() => {
34759
35122
  return new DataLoaderQueryKeyGenerator(
@@ -34786,7 +35149,7 @@ function DataLoader({
34786
35149
  }
34787
35150
  }
34788
35151
  },
34789
- [loader.props.inProgressNotificationMessage, loaderInProgressChanged2, loader.props.dataType]
35152
+ [loader.props.inProgressNotificationMessage, loaderInProgressChanged2]
34790
35153
  );
34791
35154
  const loaded = useCallback(
34792
35155
  (data, pageInfo) => {
@@ -34809,7 +35172,7 @@ function DataLoader({
34809
35172
  }
34810
35173
  }
34811
35174
  },
34812
- [loader.props.completedNotificationMessage, loaderLoaded2, loader.props.dataType]
35175
+ [loader.props.completedNotificationMessage, loaderLoaded2]
34813
35176
  );
34814
35177
  const error2 = useCallback(
34815
35178
  async (error22) => {
@@ -34934,7 +35297,9 @@ const dataLoaderRenderer = createLoaderRenderer(
34934
35297
  }) => {
34935
35298
  var _a2, _b, _c;
34936
35299
  if (!((_a2 = loader.props) == null ? void 0 : _a2.url) || !loader.props.url.trim()) {
34937
- throw new Error("You must specify a non-empty (not whitespace-only) 'url' property for DataSource");
35300
+ throw new Error(
35301
+ "You must specify a non-empty (not whitespace-only) 'url' property for DataSource"
35302
+ );
34938
35303
  }
34939
35304
  return /* @__PURE__ */ jsx(
34940
35305
  IndexAwareDataLoader,
@@ -36646,7 +37011,7 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
36646
37011
  handleChange(timeString);
36647
37012
  }
36648
37013
  },
36649
- [hour2, minute2, second2, amPm, is12HourFormat, handleChange]
37014
+ [hour2, minute2, second2, formatTimeValue, amPm, is12HourFormat, handleChange]
36650
37015
  );
36651
37016
  const handleHourChange = useMemo(
36652
37017
  () => createInputChangeHandler(
@@ -36707,7 +37072,7 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
36707
37072
  setAmPm(newAmPm);
36708
37073
  const timeString = formatTimeValue(hour2, minute2, second2, newAmPm, is12HourFormat);
36709
37074
  handleChange(timeString);
36710
- }, [amPm, hour2, minute2, second2, is12HourFormat, handleChange]);
37075
+ }, [amPm, formatTimeValue, hour2, minute2, second2, is12HourFormat, handleChange]);
36711
37076
  const handleAmPmSet = useCallback(
36712
37077
  (targetAmPm) => {
36713
37078
  if (amPm === targetAmPm) return;
@@ -36715,7 +37080,7 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
36715
37080
  const timeString = formatTimeValue(hour2, minute2, second2, targetAmPm, is12HourFormat);
36716
37081
  handleChange(timeString);
36717
37082
  },
36718
- [amPm, hour2, minute2, second2, is12HourFormat, handleChange]
37083
+ [amPm, formatTimeValue, hour2, minute2, second2, is12HourFormat, handleChange]
36719
37084
  );
36720
37085
  const focus = useCallback(() => {
36721
37086
  var _a2;
@@ -36808,21 +37173,7 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
36808
37173
  setTimeout(() => {
36809
37174
  focus();
36810
37175
  }, 0);
36811
- }, [
36812
- stableInitialValue,
36813
- handleChange,
36814
- localValue,
36815
- controlledValue,
36816
- hour2,
36817
- minute2,
36818
- second2,
36819
- amPm,
36820
- setHour,
36821
- setMinute,
36822
- setSecond,
36823
- setAmPm,
36824
- focus
36825
- ]);
37176
+ }, [clearToInitialValue, stableInitialValue, handleChange, is12HourFormat, focus]);
36826
37177
  function stopPropagation(event) {
36827
37178
  event.stopPropagation();
36828
37179
  }
@@ -37070,6 +37421,7 @@ function AmPmButton({
37070
37421
  );
37071
37422
  }
37072
37423
  function HourInput({
37424
+ id,
37073
37425
  amPm,
37074
37426
  maxTime,
37075
37427
  minTime,
@@ -37117,6 +37469,7 @@ function HourInput({
37117
37469
  return /* @__PURE__ */ jsx(
37118
37470
  PartialInput,
37119
37471
  {
37472
+ id,
37120
37473
  "data-part-id": PART_HOUR,
37121
37474
  value: displayValue,
37122
37475
  emptyCharacter,
@@ -39794,26 +40147,31 @@ const AutoCompleteMd = createMetadata({
39794
40147
  },
39795
40148
  themeVars: parseScssVar(styles$L.themeVars),
39796
40149
  defaultThemeVars: {
39797
- [`backgroundColor-menu-${COMP$j}`]: "$backgroundColor-primary",
40150
+ [`backgroundColor-menu-${COMP$j}`]: "$color-surface-raised",
39798
40151
  [`boxShadow-menu-${COMP$j}`]: "$boxShadow-md",
39799
40152
  [`borderRadius-menu-${COMP$j}`]: "$borderRadius",
39800
40153
  [`borderWidth-menu-${COMP$j}`]: "1px",
39801
40154
  [`borderColor-menu-${COMP$j}`]: "$borderColor",
39802
- [`backgroundColor-item-${COMP$j}`]: "$backgroundColor-dropdown-item",
39803
- [`backgroundColor-item-${COMP$j}--hover`]: "$backgroundColor-dropdown-item--active",
39804
- [`backgroundColor-item-${COMP$j}--active`]: "$backgroundColor-dropdown-item--active",
39805
- [`minHeight-Input`]: "39px",
39806
40155
  [`backgroundColor-${COMP$j}-badge`]: "$color-primary-500",
39807
40156
  [`fontSize-${COMP$j}-badge`]: "$fontSize-sm",
40157
+ [`paddingHorizontal-${COMP$j}-badge`]: "$space-2_5",
40158
+ [`paddingVertical-${COMP$j}-badge`]: "$space-0_5",
39808
40159
  [`borderRadius-${COMP$j}-badge`]: "$borderRadius",
39809
- [`paddingHorizontal-${COMP$j}-badge`]: "$space-2",
39810
- [`paddingVertical-${COMP$j}-badge`]: "$space-1",
39811
- [`paddingHorizontal-${COMP$j}`]: "$space-1",
40160
+ [`paddingHorizontal-item-${COMP$j}`]: "$space-2",
40161
+ [`paddingVertical-item-${COMP$j}`]: "$space-2",
40162
+ [`paddingHorizontal-${COMP$j}`]: "$space-2",
39812
40163
  [`paddingVertical-${COMP$j}`]: "$space-2",
40164
+ [`opacity-text-item-${COMP$j}--disabled`]: "0.5",
40165
+ [`opacity-${COMP$j}--disabled`]: "0.5",
39813
40166
  [`backgroundColor-${COMP$j}-badge--hover`]: "$color-primary-400",
39814
40167
  [`backgroundColor-${COMP$j}-badge--active`]: "$color-primary-500",
39815
40168
  [`textColor-item-${COMP$j}--disabled`]: "$color-surface-200",
39816
- [`textColor-${COMP$j}-badge`]: "$const-color-surface-50"
40169
+ [`textColor-${COMP$j}-badge`]: "$const-color-surface-50",
40170
+ [`backgroundColor-item-${COMP$j}`]: "$backgroundColor-dropdown-item",
40171
+ [`backgroundColor-item-${COMP$j}--hover`]: "$backgroundColor-dropdown-item--hover",
40172
+ [`backgroundColor-item-${COMP$j}--active`]: "$backgroundColor-dropdown-item--active",
40173
+ // Default borderColor-Input--disabled is too light so the disabled component is barely visible
40174
+ [`borderColor-${COMP$j}--disabled`]: "initial"
39817
40175
  }
39818
40176
  });
39819
40177
  const autoCompleteComponentRenderer = createComponentRenderer(
@@ -42260,7 +42618,7 @@ function InspectButton$1({
42260
42618
  htmlElement.removeEventListener("mouseenter", mouseenter);
42261
42619
  htmlElement.removeEventListener("mouseleave", mouseleave);
42262
42620
  };
42263
- }, [inspectId, node, inspectMode, setShowCode]);
42621
+ }, [inspectId, node, inspectMode, setShowCode, setInspectedNode]);
42264
42622
  return /* @__PURE__ */ jsx(Fragment, { children: inspectMode ? null : visible && !!root2 && createPortal(
42265
42623
  /* @__PURE__ */ jsx(
42266
42624
  Button,
@@ -45640,7 +45998,7 @@ const Dialog = ({
45640
45998
  ] });
45641
45999
  };
45642
46000
  const ConfirmationModalContext = React__default.createContext({
45643
- confirm: async (title2, message, actionLabel) => false
46001
+ confirm: (title2, message, actionLabel) => Promise.resolve(false)
45644
46002
  });
45645
46003
  const useConfirm = () => useContext(ConfirmationModalContext);
45646
46004
  const ConfirmationModalContextProvider = ({ children }) => {
@@ -45662,7 +46020,7 @@ const ConfirmationModalContextProvider = ({ children }) => {
45662
46020
  }
45663
46021
  }, [showConfirmationModal]);
45664
46022
  const handleShow = useCallback(
45665
- async (title22, message2, actionLabel) => {
46023
+ (title22, message2, actionLabel) => {
45666
46024
  if (typeof title22 === "string") {
45667
46025
  setTitle(title22);
45668
46026
  setButtons([
@@ -46484,7 +46842,7 @@ function IconProvider({ children }) {
46484
46842
  /* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
46485
46843
  ] });
46486
46844
  }
46487
- const version = "0.10.18";
46845
+ const version = "0.10.20";
46488
46846
  const miscellaneousUtils = {
46489
46847
  capitalize,
46490
46848
  pluralize: pluralize$1,
@@ -46991,7 +47349,7 @@ async function evalCalculatedMemberAccessAsync(evaluator, thisStack, expr, evalC
46991
47349
  await completeExprValue(expr.member, thread);
46992
47350
  return evalCalculatedMemberAccessCore(thisStack, expr, evalContext, thread);
46993
47351
  }
46994
- async function evalSequenceAsync(evaluator, thisStack, expr, evalContext, thread) {
47352
+ function evalSequenceAsync(evaluator, thisStack, expr, evalContext, thread) {
46995
47353
  if (!expr.exprs || expr.exprs.length === 0) {
46996
47354
  throw new Error(`Missing expression sequence`);
46997
47355
  }
@@ -47103,7 +47461,7 @@ async function evalAssignmentAsync(evaluator, thisStack, expr, evalContext, thre
47103
47461
  const rootScope = getRootIdScope(leftValue, evalContext, thread);
47104
47462
  const updatesState = rootScope && rootScope.type !== "block";
47105
47463
  if (updatesState && evalContext.onWillUpdate) {
47106
- evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
47464
+ void evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
47107
47465
  }
47108
47466
  await evaluator(thisStack, leftValue, evalContext, thread);
47109
47467
  thisStack.pop();
@@ -47113,7 +47471,7 @@ async function evalAssignmentAsync(evaluator, thisStack, expr, evalContext, thre
47113
47471
  await completeExprValue(expr.expr, thread);
47114
47472
  const value = evalAssignmentCore(thisStack, expr, evalContext, thread);
47115
47473
  if (updatesState && evalContext.onDidUpdate) {
47116
- evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
47474
+ void evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
47117
47475
  }
47118
47476
  return value;
47119
47477
  }
@@ -47121,14 +47479,14 @@ async function evalPreOrPostAsync(evaluator, thisStack, expr, evalContext, threa
47121
47479
  const rootScope = getRootIdScope(expr.expr, evalContext, thread);
47122
47480
  const updatesState = rootScope && rootScope.type !== "block";
47123
47481
  if (updatesState && evalContext.onWillUpdate) {
47124
- evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
47482
+ void evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
47125
47483
  }
47126
47484
  await evaluator(thisStack, expr.expr, evalContext, thread);
47127
47485
  thisStack.pop();
47128
47486
  await completeExprValue(expr.expr, thread);
47129
47487
  const value = evalPreOrPostCore(thisStack, expr, evalContext, thread);
47130
47488
  if (updatesState && evalContext.onDidUpdate) {
47131
- evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
47489
+ void evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
47132
47490
  }
47133
47491
  return value;
47134
47492
  }
@@ -47176,8 +47534,8 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
47176
47534
  functionArgs.push(...funcArg);
47177
47535
  } else {
47178
47536
  if (arg.type === T_ARROW_EXPRESSION) {
47179
- const funcArg = await createArrowFunctionAsync(evaluator, arg);
47180
- const wrappedFunc = async (...args) => {
47537
+ const funcArg = createArrowFunctionAsync(evaluator, arg);
47538
+ const wrappedFunc = (...args) => {
47181
47539
  return funcArg(arg.args, evalContext, thread, ...args);
47182
47540
  };
47183
47541
  functionArgs.push(wrappedFunc);
@@ -47185,7 +47543,7 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
47185
47543
  await evaluator([], arg, evalContext, thread);
47186
47544
  const funcArg = await completeExprValue(arg, thread);
47187
47545
  if (funcArg == null ? void 0 : funcArg._ARROW_EXPR_) {
47188
- const wrappedFuncArg = await createArrowFunctionAsync(evaluator, funcArg);
47546
+ const wrappedFuncArg = createArrowFunctionAsync(evaluator, funcArg);
47189
47547
  const wrappedFunc = (...args) => wrappedFuncArg(funcArg.args, evalContext, thread, ...args);
47190
47548
  functionArgs.push(wrappedFunc);
47191
47549
  } else {
@@ -47214,18 +47572,18 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
47214
47572
  const rootScope = getRootIdScope(expr.obj, evalContext, thread);
47215
47573
  const updatesState = rootScope && rootScope.type !== "block";
47216
47574
  if (updatesState && evalContext.onWillUpdate) {
47217
- evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
47575
+ void evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
47218
47576
  }
47219
47577
  const value = ((_b = evalContext.options) == null ? void 0 : _b.defaultToOptionalMemberAccess) ? functionObj == null ? void 0 : functionObj.call(currentContext, ...functionArgs) : functionObj.call(currentContext, ...functionArgs);
47220
47578
  let returnValue = await completePromise(value);
47221
47579
  if (updatesState && evalContext.onDidUpdate) {
47222
- evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
47580
+ void evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
47223
47581
  }
47224
47582
  setExprValue(expr, { value: returnValue }, thread);
47225
47583
  thisStack.push(returnValue);
47226
47584
  return returnValue;
47227
47585
  }
47228
- async function createArrowFunctionAsync(evaluator, expr) {
47586
+ function createArrowFunctionAsync(evaluator, expr) {
47229
47587
  return async (...args) => {
47230
47588
  const runTimeEvalContext = args[1];
47231
47589
  const runtimeThread = args[2];
@@ -47351,7 +47709,7 @@ async function createArrowFunctionAsync(evaluator, expr) {
47351
47709
  return returnValue;
47352
47710
  };
47353
47711
  }
47354
- async function completePromise(input2) {
47712
+ function completePromise(input2) {
47355
47713
  const visited = /* @__PURE__ */ new Map();
47356
47714
  return completePromiseInternal(input2);
47357
47715
  async function completePromiseInternal(input22) {
@@ -49966,7 +50324,7 @@ const Animation$1 = forwardRef(function Animation2({
49966
50324
  const [reset, setReset] = useState(false);
49967
50325
  const [count, setCount] = useState(0);
49968
50326
  const times = 1;
49969
- const animationId = useId();
50327
+ useId();
49970
50328
  const animationSettings = useMemo(
49971
50329
  () => ({
49972
50330
  from: _animation.from,
@@ -50009,9 +50367,9 @@ const Animation$1 = forwardRef(function Animation2({
50009
50367
  onStart,
50010
50368
  onStop,
50011
50369
  reset,
50370
+ once,
50012
50371
  reverse2,
50013
- toggle,
50014
- animationId
50372
+ toggle
50015
50373
  ]
50016
50374
  );
50017
50375
  const [springs, api] = useSpring(
@@ -50025,7 +50383,7 @@ const Animation$1 = forwardRef(function Animation2({
50025
50383
  });
50026
50384
  const composedRef = ref ? composeRefs(ref, forwardedRef) : forwardedRef;
50027
50385
  const startAnimation = useCallback(() => {
50028
- api.start(_animation);
50386
+ void api.start(_animation);
50029
50387
  return () => {
50030
50388
  api.stop();
50031
50389
  };
@@ -50044,7 +50402,7 @@ const Animation$1 = forwardRef(function Animation2({
50044
50402
  children,
50045
50403
  (child, index) => animateWhenInView ? /* @__PURE__ */ jsx(AnimatedComponent, { ...rest, style: animationStyles, ref: composedRef, children: child }, index) : /* @__PURE__ */ jsx(AnimatedComponent, { ...rest, style: springs, ref: forwardedRef, children: child }, index)
50046
50404
  );
50047
- }, [animateWhenInView, animationStyles, children, springs, rest]);
50405
+ }, [animateWhenInView, animationStyles, children, springs, rest, composedRef, forwardedRef]);
50048
50406
  return content2;
50049
50407
  });
50050
50408
  const tooltipBehavior = {
@@ -50075,12 +50433,11 @@ const animationBehavior = {
50075
50433
  var _a2, _b;
50076
50434
  const { extractValue } = context;
50077
50435
  const animation = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.animation, true);
50078
- const animationOptions = extractValue(
50079
- (_b = context.node.props) == null ? void 0 : _b.animationOptions,
50080
- true
50081
- );
50436
+ const animationOptions = extractValue((_b = context.node.props) == null ? void 0 : _b.animationOptions, true);
50082
50437
  const parsedOptions = parseAnimationOptions(animationOptions);
50083
- return /* @__PURE__ */ jsx(Animation$1, { animation: parseAnimation(animation), ...parsedOptions, children: node });
50438
+ return /* @__PURE__ */ jsx(Animation$1, { animation: parseAnimation(animation), ...parsedOptions, children: context.node.type === "ModalDialog" ? cloneElement(node, {
50439
+ externalAnimation: true
50440
+ }) : node });
50084
50441
  }
50085
50442
  };
50086
50443
  const labelBehavior = {
@@ -51074,11 +51431,6 @@ function AppContent({
51074
51431
  root2
51075
51432
  ]);
51076
51433
  const [appState, setAppState] = useState(EMPTY_OBJECT);
51077
- const registerAppState = useCallback((bucket, initialValue) => {
51078
- setAppState((prev) => {
51079
- return { ...prev, [bucket]: initialValue };
51080
- });
51081
- }, []);
51082
51434
  const update = useCallback((bucket, patch) => {
51083
51435
  setAppState((prev) => {
51084
51436
  return {
@@ -51092,11 +51444,10 @@ function AppContent({
51092
51444
  }, []);
51093
51445
  const appStateContextValue = useMemo(() => {
51094
51446
  return {
51095
- registerAppState,
51096
51447
  appState,
51097
51448
  update
51098
51449
  };
51099
- }, [appState, registerAppState, update]);
51450
+ }, [appState, update]);
51100
51451
  return /* @__PURE__ */ jsx(AppContext.Provider, { value: appContextValue, children: /* @__PURE__ */ jsx(AppStateContext.Provider, { value: appStateContextValue, children: /* @__PURE__ */ jsx(StandaloneComponent, { node: rootContainer, children }) }) });
51101
51452
  }
51102
51453
  function signError(error2) {
@@ -51236,8 +51587,8 @@ function ApiInterceptorProvider({
51236
51587
  if (!interceptor) {
51237
51588
  return;
51238
51589
  }
51239
- (async () => {
51240
- const { initMock } = await import("./initMock-D0wDKF_I.mjs");
51590
+ void (async () => {
51591
+ const { initMock } = await import("./initMock-ZyyFNOpL.mjs");
51241
51592
  const apiInstance2 = await initMock(interceptor);
51242
51593
  setApiInstance(apiInstance2);
51243
51594
  setInitialized(true);
@@ -51250,11 +51601,11 @@ function ApiInterceptorProvider({
51250
51601
  if (!hasParentInterceptorContext) {
51251
51602
  if (interceptor || forceInitialize) {
51252
51603
  let interceptorWorker2;
51253
- (async () => {
51604
+ void (async () => {
51254
51605
  if (define_process_env_default$2.VITE_MOCK_ENABLED) {
51255
51606
  const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
51256
- useWorker ? import("./apiInterceptorWorker-BmKP8bnq.mjs") : Promise.resolve({ createApiInterceptorWorker: () => null }),
51257
- import("./initMock-D0wDKF_I.mjs")
51607
+ useWorker ? import("./apiInterceptorWorker-Dql7QGw2.mjs") : Promise.resolve({ createApiInterceptorWorker: () => null }),
51608
+ import("./initMock-ZyyFNOpL.mjs")
51258
51609
  ]);
51259
51610
  if (interceptor || forceInitialize) {
51260
51611
  const apiInstance2 = await initMock(interceptor || {});
@@ -51288,10 +51639,10 @@ function ApiInterceptorProvider({
51288
51639
  return;
51289
51640
  }
51290
51641
  if (parentInterceptorWorker) {
51291
- (async () => {
51642
+ void (async () => {
51292
51643
  const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
51293
- import("./apiInterceptorWorker-BmKP8bnq.mjs"),
51294
- import("./initMock-D0wDKF_I.mjs")
51644
+ import("./apiInterceptorWorker-Dql7QGw2.mjs"),
51645
+ import("./initMock-ZyyFNOpL.mjs")
51295
51646
  ]);
51296
51647
  const apiInstance2 = await initMock(interceptor);
51297
51648
  await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
@@ -53786,13 +54137,7 @@ function xmlUiMarkupToComponent(source, fileId = 0) {
53786
54137
  const { parse: parse2, getText } = createXmlUiParser(source);
53787
54138
  const { node, errors } = parse2();
53788
54139
  if (errors.length > 0) {
53789
- const newlinePositions = [];
53790
- for (let i = 0; i < source.length; ++i) {
53791
- if (source[i] === "\n") {
53792
- newlinePositions.push(i);
53793
- }
53794
- }
53795
- const errorsForDisplay = addDisplayFieldsToErrors(errors, source, newlinePositions);
54140
+ const errorsForDisplay = addDisplayFieldsToErrors(errors, source);
53796
54141
  const erroneousCompoundComponentName = getCompoundCompName(node, getText);
53797
54142
  return { component: null, errors: errorsForDisplay, erroneousCompoundComponentName };
53798
54143
  }
@@ -54088,21 +54433,6 @@ function errReportComponent(errors, fileName, compoundCompName) {
54088
54433
  comp.component = createErrorReportComponent(errors, fileName);
54089
54434
  return comp;
54090
54435
  }
54091
- function offsetToPosition(offset, newlinePositions) {
54092
- let left2 = 0;
54093
- let right2 = newlinePositions.length;
54094
- while (left2 < right2) {
54095
- const mid = Math.floor((left2 + right2) / 2);
54096
- if (newlinePositions[mid] < offset) {
54097
- left2 = mid + 1;
54098
- } else {
54099
- right2 = mid;
54100
- }
54101
- }
54102
- let line2 = left2 + 1;
54103
- let col = left2 === 0 ? offset + 1 : offset - newlinePositions[left2 - 1];
54104
- return { line: line2, col };
54105
- }
54106
54436
  function getCompoundCompName(node, getText) {
54107
54437
  var _a2, _b, _c, _d, _e, _f;
54108
54438
  const rootTag = (_a2 = node == null ? void 0 : node.children) == null ? void 0 : _a2[0];
@@ -54124,10 +54454,11 @@ function getCompoundCompName(node, getText) {
54124
54454
  }
54125
54455
  return void 0;
54126
54456
  }
54127
- function addDisplayFieldsToErrors(errors, source, newlinePositions) {
54457
+ function addDisplayFieldsToErrors(errors, source) {
54458
+ const { offsetToPosForDisplay } = createDocumentCursor(source);
54128
54459
  return errors.map((err) => {
54129
- const { line: errPosLine, col: errPosCol } = offsetToPosition(err.pos, newlinePositions);
54130
- const { line: contextStartLine } = offsetToPosition(err.contextPos, newlinePositions);
54460
+ const { line: errPosLine, character: errPosCol } = offsetToPosForDisplay(err.pos);
54461
+ const { line: contextStartLine } = offsetToPosForDisplay(err.contextPos);
54131
54462
  return {
54132
54463
  ...err,
54133
54464
  errPosLine,
@@ -54137,6 +54468,38 @@ function addDisplayFieldsToErrors(errors, source, newlinePositions) {
54137
54468
  };
54138
54469
  });
54139
54470
  }
54471
+ function createDocumentCursor(text2) {
54472
+ const newlinePositions = [];
54473
+ for (let i = 0; i < text2.length; ++i) {
54474
+ if (text2[i] === "\n") {
54475
+ newlinePositions.push(i);
54476
+ }
54477
+ }
54478
+ return {
54479
+ offsetToPos,
54480
+ offsetToPosForDisplay
54481
+ };
54482
+ function offsetToPos(offset) {
54483
+ let left2 = 0;
54484
+ let right2 = newlinePositions.length;
54485
+ while (left2 < right2) {
54486
+ const mid = Math.floor((left2 + right2) / 2);
54487
+ if (newlinePositions[mid] < offset) {
54488
+ left2 = mid + 1;
54489
+ } else {
54490
+ right2 = mid;
54491
+ }
54492
+ }
54493
+ let col = left2 === 0 ? offset : offset - newlinePositions[left2 - 1] - 1;
54494
+ return { line: left2, character: col };
54495
+ }
54496
+ function offsetToPosForDisplay(offset) {
54497
+ let pos = offsetToPos(offset);
54498
+ pos.line += 1;
54499
+ pos.character += 1;
54500
+ return pos;
54501
+ }
54502
+ }
54140
54503
  const MotionContent = motion.create(SheetPrimitive.Content);
54141
54504
  const overlayVariants = {
54142
54505
  visible: { opacity: 1 },
@@ -54625,7 +54988,7 @@ function NestedApp({
54625
54988
  }
54626
54989
  return null;
54627
54990
  });
54628
- Promise.all(sheetPromises).then((sheets) => {
54991
+ void Promise.all(sheetPromises).then((sheets) => {
54629
54992
  const validSheets = sheets.filter(Boolean);
54630
54993
  shadowRef.current.adoptedStyleSheets = validSheets;
54631
54994
  });
@@ -54744,7 +55107,10 @@ function NestedApp({
54744
55107
  )
54745
55108
  ] });
54746
55109
  }
54747
- function NestedAppRoot({ children, themeStylesToReset }) {
55110
+ function NestedAppRoot({
55111
+ children,
55112
+ themeStylesToReset
55113
+ }) {
54748
55114
  const themeVarReset = useMemo(() => {
54749
55115
  const vars2 = {};
54750
55116
  Object.keys(themeStylesToReset).forEach((key) => {
@@ -54883,7 +55249,7 @@ function AppWithCodeViewNative({
54883
55249
  {
54884
55250
  className: styles$e.headerButton,
54885
55251
  onClick: () => {
54886
- openPlayground();
55252
+ void openPlayground();
54887
55253
  },
54888
55254
  children: /* @__PURE__ */ jsx(RxOpenInNewWindow, {})
54889
55255
  }
@@ -56467,21 +56833,21 @@ const FormItem = memo(function FormItem2({
56467
56833
  return safeBindTo;
56468
56834
  }
56469
56835
  }, [bindTo, defaultId, itemIndex, parentFormItemId]);
56470
- const labelWidthValue = useFormContextPart((value2) => labelWidth || value2.itemLabelWidth);
56836
+ const labelWidthValue = useFormContextPart((value2) => labelWidth || (value2 == null ? void 0 : value2.itemLabelWidth));
56471
56837
  const labelBreakValue = useFormContextPart(
56472
- (value2) => labelBreak2 !== void 0 ? labelBreak2 : value2.itemLabelBreak
56838
+ (value2) => labelBreak2 !== void 0 ? labelBreak2 : value2 == null ? void 0 : value2.itemLabelBreak
56473
56839
  );
56474
56840
  const labelPositionValue = useFormContextPart(
56475
- (value2) => labelPosition || value2.itemLabelPosition || DEFAULT_LABEL_POSITIONS[type]
56841
+ (value2) => labelPosition || (value2 == null ? void 0 : value2.itemLabelPosition) || DEFAULT_LABEL_POSITIONS[type]
56476
56842
  );
56477
56843
  const initialValueFromSubject = useFormContextPart(
56478
- (value2) => getByPath(value2.originalSubject, formItemId)
56844
+ (value2) => getByPath(value2 == null ? void 0 : value2.originalSubject, formItemId)
56479
56845
  );
56480
56846
  const initialValue = initialValueFromSubject === void 0 ? initialValueFromProps : initialValueFromSubject;
56481
- const value = useFormContextPart((value2) => getByPath(value2.subject, formItemId));
56482
- const validationResult = useFormContextPart((value2) => value2.validationResults[formItemId]);
56483
- const dispatch = useFormContextPart((value2) => value2.dispatch);
56484
- const formEnabled = useFormContextPart((value2) => value2.enabled);
56847
+ const value = useFormContextPart((value2) => getByPath(value2 == null ? void 0 : value2.subject, formItemId));
56848
+ const validationResult = useFormContextPart((value2) => value2 == null ? void 0 : value2.validationResults[formItemId]);
56849
+ const dispatch = useFormContextPart((value2) => value2 == null ? void 0 : value2.dispatch);
56850
+ const formEnabled = useFormContextPart((value2) => value2 == null ? void 0 : value2.enabled);
56485
56851
  const isEnabled2 = enabled2 && formEnabled;
56486
56852
  useEffect(() => {
56487
56853
  if (initialValue !== void 0) {
@@ -56751,6 +57117,10 @@ const FormItem = memo(function FormItem2({
56751
57117
  }
56752
57118
  }
56753
57119
  const [animateContainerRef] = useAutoAnimate({ duration: 100 });
57120
+ const isInsideForm = useIsInsideForm();
57121
+ if (!isInsideForm) {
57122
+ throw new Error("FormItem must be used inside a Form");
57123
+ }
56754
57124
  return /* @__PURE__ */ jsx(
56755
57125
  ItemWithLabel,
56756
57126
  {
@@ -56819,7 +57189,7 @@ const filteredValidationSeverityValues = validationSeverityValues.filter(
56819
57189
  const FormItemMd = createMetadata({
56820
57190
  status: "stable",
56821
57191
  allowArbitraryProps: true,
56822
- description: "`FormItem` wraps individual input controls within a `Form`, providing data binding, validation, labeling, and layout functionality. It connects form controls to the parent form's data model and handles validation feedback automatically.",
57192
+ description: "`FormItem` wraps individual input controls within a `Form`, providing data binding, validation, labeling, and layout functionality. It connects form controls to the parent form's data model and handles validation feedback automatically.\n\n> **Note:** `FormItem` must be used inside a `Form` component.",
56823
57193
  props: {
56824
57194
  bindTo: {
56825
57195
  description: "This property binds a particular input field to one of the attributes of the `Form` data. It names the property of the form's `data` data to get the input's initial value.When the field is saved, its value will be stored in the `data` property with this name. If the property is not set, the input will be bound to an internal data field but not submitted."