xmlui 0.10.19 → 0.10.21

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 (118) hide show
  1. package/dist/lib/{apiInterceptorWorker-DPgtUtdA.mjs → apiInterceptorWorker-QiltRtq1.mjs} +1 -1
  2. package/dist/lib/{index-cuh97e2e.mjs → index-BiS4wEuu.mjs} +1486 -1211
  3. package/dist/lib/index.css +1 -1
  4. package/dist/{metadata/initMock-C-cnv--V.mjs → lib/initMock-CB_cMi6U.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-Cp-9lpnG.mjs → collectedComponentMetadata-MFUg6aSX.mjs} +1655 -1390
  16. package/dist/{lib/initMock-BMxsanHc.mjs → metadata/initMock-Dw9wrVkQ.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 +3 -6
  21. package/dist/scripts/src/components/Animation/AnimationNative.js +28 -28
  22. package/dist/scripts/src/components/App/App.js +4 -4
  23. package/dist/scripts/src/components/App/App.spec.js +17 -17
  24. package/dist/scripts/src/components/App/AppNative.js +1 -1
  25. package/dist/scripts/src/components/AppState/AppState.js +3 -2
  26. package/dist/scripts/src/components/AppState/AppState.spec.js +26 -2
  27. package/dist/scripts/src/components/AppState/AppStateNative.js +3 -4
  28. package/dist/scripts/src/components/AutoComplete/AutoComplete.js +15 -10
  29. package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +4 -4
  30. package/dist/scripts/src/components/Carousel/Carousel.spec.js +214 -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 +6 -6
  35. package/dist/scripts/src/components/DateInput/DateInputNative.js +0 -1
  36. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +3 -3
  37. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +4 -13
  38. package/dist/scripts/src/components/Form/Form.spec.js +25 -9
  39. package/dist/scripts/src/components/Form/FormNative.js +7 -5
  40. package/dist/scripts/src/components/FormItem/FormItem.js +3 -1
  41. package/dist/scripts/src/components/FormItem/FormItem.spec.js +5 -14
  42. package/dist/scripts/src/components/FormItem/FormItemNative.js +12 -8
  43. package/dist/scripts/src/components/FormItem/Validations.js +2 -2
  44. package/dist/scripts/src/components/IFrame/IFrameNative.js +0 -2
  45. package/dist/scripts/src/components/IconRegistryContext.js +1 -1
  46. package/dist/scripts/src/components/List/ListNative.js +2 -2
  47. package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +3 -12
  48. package/dist/scripts/src/components/ModalDialog/ModalDialog.js +2 -2
  49. package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +6 -3
  50. package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +1 -1
  51. package/dist/scripts/src/components/NestedApp/NestedAppNative.js +3 -3
  52. package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +2 -2
  53. package/dist/scripts/src/components/Pagination/Pagination.spec.js +5 -0
  54. package/dist/scripts/src/components/Pagination/PaginationNative.js +1 -3
  55. package/dist/scripts/src/components/Queue/Queue.spec.js +45 -47
  56. package/dist/scripts/src/components/Queue/QueueNative.js +1 -1
  57. package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +5 -5
  58. package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +1 -1
  59. package/dist/scripts/src/components/Select/MultiSelectOption.js +42 -0
  60. package/dist/scripts/src/components/Select/Select.js +3 -3
  61. package/dist/scripts/src/components/Select/SelectContext.js +8 -1
  62. package/dist/scripts/src/components/Select/SelectNative.js +134 -142
  63. package/dist/scripts/src/components/Select/SelectOption.js +34 -0
  64. package/dist/scripts/src/components/Select/SimpleSelect.js +57 -0
  65. package/dist/scripts/src/components/Spinner/Spinner.spec.js +1 -1
  66. package/dist/scripts/src/components/Table/useRowSelection.js +14 -23
  67. package/dist/scripts/src/components/Text/Text.js +5 -1
  68. package/dist/scripts/src/components/Text/Text.spec.js +317 -0
  69. package/dist/scripts/src/components/Text/TextNative.js +112 -1
  70. package/dist/scripts/src/components/TextArea/TextArea.spec.js +8 -8
  71. package/dist/scripts/src/components/Theme/Theme.js +2 -1
  72. package/dist/scripts/src/components/Theme/Theme.spec.js +266 -0
  73. package/dist/scripts/src/components/Theme/ThemeNative.js +8 -1
  74. package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +3 -3
  75. package/dist/scripts/src/components/TimeInput/TimeInputNative.js +0 -1
  76. package/dist/scripts/src/components/Timer/TimerNative.js +0 -1
  77. package/dist/scripts/src/components/Tree/TreeNative.js +16 -23
  78. package/dist/scripts/src/components-core/InspectorContext.js +1 -1
  79. package/dist/scripts/src/components-core/StandaloneApp.js +6 -8
  80. package/dist/scripts/src/components-core/action/FileUploadAction.js +1 -1
  81. package/dist/scripts/src/components-core/behaviors/BehaviorContext.js +50 -0
  82. package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +6 -1
  83. package/dist/scripts/src/components-core/interception/ApiInterceptor.js +9 -11
  84. package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +3 -3
  85. package/dist/scripts/src/components-core/interception/Backend.js +1 -1
  86. package/dist/scripts/src/components-core/interception/IndexedDb.js +64 -66
  87. package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +2 -2
  88. package/dist/scripts/src/components-core/loader/DataLoader.js +6 -14
  89. package/dist/scripts/src/components-core/loader/Loader.js +11 -11
  90. package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +4 -2
  91. package/dist/scripts/src/components-core/loader/PageableLoader.js +10 -9
  92. package/dist/scripts/src/components-core/rendering/AppContent.js +1 -7
  93. package/dist/scripts/src/components-core/rendering/ErrorBoundary.js +1 -1
  94. package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +1 -1
  95. package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +180 -186
  96. package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +6 -6
  97. package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +2 -2
  98. package/dist/scripts/src/components-core/utils/actionUtils.js +1 -1
  99. package/dist/scripts/src/components-core/utils/hooks.js +1 -1
  100. package/dist/scripts/src/components-core/utils/misc.js +4 -4
  101. package/dist/scripts/src/components-core/xmlui-parser.js +47 -31
  102. package/dist/scripts/src/language-server/server-common.js +25 -24
  103. package/dist/scripts/src/language-server/services/common/lsp-utils.js +2 -2
  104. package/dist/scripts/src/language-server/services/completion.js +20 -2
  105. package/dist/scripts/src/language-server/services/diagnostic.js +1 -1
  106. package/dist/scripts/src/language-server/services/hover.js +2 -2
  107. package/dist/scripts/src/parsers/common/utils.js +2 -2
  108. package/dist/scripts/src/parsers/scripting/Lexer.js +21 -15
  109. package/dist/scripts/src/parsers/scripting/Parser.js +8 -9
  110. package/dist/scripts/src/parsers/style-parser/StyleLexer.js +22 -22
  111. package/dist/scripts/src/parsers/style-parser/StyleParser.js +70 -68
  112. package/dist/scripts/src/testing/ComponentDrivers.js +20 -39
  113. package/dist/scripts/src/testing/component-test-helpers.js +34 -50
  114. package/dist/scripts/src/testing/fixtures.js +114 -113
  115. package/dist/scripts/src/testing/themed-app-test-helpers.js +7 -13
  116. package/dist/standalone/xmlui-standalone.es.d.ts +11 -3
  117. package/dist/standalone/xmlui-standalone.umd.js +35 -35
  118. package/package.json +3 -6
@@ -2,14 +2,14 @@ var _a;
2
2
  import "./index.css";
3
3
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
4
4
  import * as React from "react";
5
- import React__default, { useRef, useInsertionEffect, useCallback, forwardRef, useState, useEffect, useId, cloneElement, useMemo, useContext, useLayoutEffect, createContext, memo, Fragment as Fragment$1, useImperativeHandle, useReducer, isValidElement, useDeferredValue, createElement, startTransition, useTransition, Children } from "react";
5
+ import React__default, { useRef, useInsertionEffect, useCallback, forwardRef, useState, useEffect, useId, cloneElement, useMemo, useContext, useLayoutEffect, createContext, memo, Fragment as Fragment$1, useReducer, isValidElement, useDeferredValue, createElement, startTransition, useTransition, Children } from "react";
6
6
  import require$$0, { flushSync, createPortal } from "react-dom";
7
7
  import yaml from "js-yaml";
8
8
  import { useQuery, useInfiniteQuery, QueryClientProvider, QueryClient } from "@tanstack/react-query";
9
9
  import produce, { createDraft, finishDraft, enableMapSet } from "immer";
10
- import { throttle, get, isNil, omitBy, isUndefined, noop as noop$2, isPlainObject, isEqual, isEmpty, union, uniq, orderBy as orderBy$1, isObject, isArray, groupBy, sortBy, omit, isNumber, isString as isString$1, set, isNaN as isNaN$1, cloneDeep, merge, defaultTo, capitalize, unset, setWith, keyBy, pick } from "lodash-es";
10
+ import { throttle, get, isNil, omitBy, isUndefined, noop as noop$2, isPlainObject, isEmpty, isEqual, union, uniq, orderBy as orderBy$1, isObject, isArray, groupBy, sortBy, omit, isNumber, isString as isString$1, set, isNaN as isNaN$1, cloneDeep, merge, defaultTo, capitalize, unset, setWith, keyBy, pick } from "lodash-es";
11
11
  import { formatDistanceToNow, parse, format, parseISO, isValid, isToday, isYesterday, isTomorrow, isThisWeek, formatRelative, isThisYear, isSameDay, differenceInMinutes } from "date-fns";
12
- import { l as labelPositionMd, o as orientationOptionMd, v as validationStatusMd, b as alignmentOptionValues, i as isSizeType, L as LinkTargetMd, c as alignmentOptionMd, d as iconPositionMd, e as buttonTypesMd, s as sizeMd, f as buttonThemeMd, g as buttonVariantMd, h as layoutOptionKeys, T as TextVariantElement, V as VariantPropsKeys, j as variantOptionsMd, k as scrollAnchoringValues, m as buttonThemeNames, n as iconPositionNames, p as buttonVariantNames, t as triggerPositionNames, q as httpMethodNames, r as orientationOptionValues, u as viewportSizeNames, M as MetadataProvider } from "./metadata-utils-CtY0QcvH.mjs";
12
+ import { l as labelPositionMd, o as orientationOptionMd, v as validationStatusMd, b as alignmentOptionValues, i as isSizeType, L as LinkTargetMd, c as alignmentOptionMd, d as iconPositionMd, e as buttonTypesMd, s as sizeMd, f as buttonThemeMd, g as buttonVariantMd, h as layoutOptionKeys, T as TextVariantElement, V as VariantPropsKeys, j as variantOptionsMd, k as scrollAnchoringValues, m as buttonThemeNames, n as iconPositionNames, p as buttonVariantNames, t as triggerPositionNames, q as httpMethodNames, r as orientationOptionValues, u as viewportSizeNames, M as MetadataProvider } from "./metadata-utils-BTIt1_wE.mjs";
13
13
  import classnames from "classnames";
14
14
  import Color from "color";
15
15
  import * as ReactDropdownMenu from "@radix-ui/react-dropdown-menu";
@@ -21,20 +21,17 @@ import { useLocation, NavLink as NavLink$1, Link, useNavigate, Routes, Route, Na
21
21
  import { Helmet, HelmetProvider } from "react-helmet-async";
22
22
  import * as SheetPrimitive from "@radix-ui/react-dialog";
23
23
  import { useContextSelector, createContext as createContext$1 } from "use-context-selector";
24
- import { FixedSizeList } from "react-window";
25
- import AutoSizer from "react-virtualized-auto-sizer";
26
- import { F as Parser, G as T_CALCULATED_MEMBER_ACCESS_EXPRESSION, H as T_MEMBER_ACCESS_EXPRESSION, I as T_IDENTIFIER, J as T_PREFIX_OP_EXPRESSION, K as T_FUNCTION_DECLARATION, L as T_ARROW_EXPRESSION, M as createXmlUiTreeNodeId, O as T_EMPTY_STATEMENT, Q as T_SWITCH_STATEMENT, R as T_TRY_STATEMENT, V as T_THROW_STATEMENT, W as T_FOR_OF_STATEMENT, X as T_FOR_IN_STATEMENT, Y as T_FOR_STATEMENT, Z as T_EXPRESSION_STATEMENT, _ as T_BREAK_STATEMENT, $ as T_CONTINUE_STATEMENT, a0 as T_DO_WHILE_STATEMENT, a1 as T_WHILE_STATEMENT, a2 as T_RETURN_STATEMENT, a3 as T_IF_STATEMENT, a4 as T_CONST_STATEMENT, a5 as T_LET_STATEMENT, a6 as T_ARROW_EXPRESSION_STATEMENT, a7 as T_BLOCK_STATEMENT, a8 as T_VAR_STATEMENT, a9 as T_ASSIGNMENT_EXPRESSION, aa as T_LITERAL, ab as T_SPREAD_EXPRESSION, ac as T_FUNCTION_INVOCATION_EXPRESSION, ad as T_POSTFIX_OP_EXPRESSION, ae as T_CONDITIONAL_EXPRESSION, af as T_BINARY_EXPRESSION, ag as T_UNARY_EXPRESSION, ah as T_OBJECT_LITERAL, ai as T_ARRAY_LITERAL, aj as T_SEQUENCE_EXPRESSION, ak as T_TEMPLATE_LITERAL_EXPRESSION, al as T_VAR_DECLARATION, am as T_DESTRUCTURE, h as createXmlUiParser, w as nodeToComponentDef, D as DiagnosticCategory, E as ErrCodes, S as SyntaxKind, an as PARSED_MARK_PROP, ao as collectCodeBehindFromSource, ap as removeCodeBehindTokensFromTree } from "./transform-bHBjkKSL.mjs";
24
+ import { Virtualizer } from "virtua";
25
+ import { F as Parser, G as T_CALCULATED_MEMBER_ACCESS_EXPRESSION, H as T_MEMBER_ACCESS_EXPRESSION, I as T_IDENTIFIER, J as T_PREFIX_OP_EXPRESSION, K as T_FUNCTION_DECLARATION, L as T_ARROW_EXPRESSION, M as createXmlUiTreeNodeId, O as T_EMPTY_STATEMENT, Q as T_SWITCH_STATEMENT, R as T_TRY_STATEMENT, V as T_THROW_STATEMENT, W as T_FOR_OF_STATEMENT, X as T_FOR_IN_STATEMENT, Y as T_FOR_STATEMENT, Z as T_EXPRESSION_STATEMENT, _ as T_BREAK_STATEMENT, $ as T_CONTINUE_STATEMENT, a0 as T_DO_WHILE_STATEMENT, a1 as T_WHILE_STATEMENT, a2 as T_RETURN_STATEMENT, a3 as T_IF_STATEMENT, a4 as T_CONST_STATEMENT, a5 as T_LET_STATEMENT, a6 as T_ARROW_EXPRESSION_STATEMENT, a7 as T_BLOCK_STATEMENT, a8 as T_VAR_STATEMENT, a9 as T_ASSIGNMENT_EXPRESSION, aa as T_LITERAL, ab as T_SPREAD_EXPRESSION, ac as T_FUNCTION_INVOCATION_EXPRESSION, ad as T_POSTFIX_OP_EXPRESSION, ae as T_CONDITIONAL_EXPRESSION, af as T_BINARY_EXPRESSION, ag as T_UNARY_EXPRESSION, ah as T_OBJECT_LITERAL, ai as T_ARRAY_LITERAL, aj as T_SEQUENCE_EXPRESSION, ak as T_TEMPLATE_LITERAL_EXPRESSION, al as T_VAR_DECLARATION, am as T_DESTRUCTURE, h as createXmlUiParser, w as nodeToComponentDef, D as DiagnosticCategory, E as ErrCodes, S as SyntaxKind, an as PARSED_MARK_PROP, ao as collectCodeBehindFromSource, ap as removeCodeBehindTokensFromTree } from "./transform-Tooy42EB.mjs";
27
26
  import { useReactTable, getPaginationRowModel, getCoreRowModel, flexRender } from "@tanstack/react-table";
28
27
  import { useVirtualizer } from "@tanstack/react-virtual";
29
28
  import { RenderPropSticky } from "react-sticky-el";
30
29
  import * as dropzone from "react-dropzone";
31
30
  import toast, { Toaster, ToastBar } from "react-hot-toast";
32
- import { Virtualizer } from "virtua";
33
31
  import memoizeOne from "memoize-one";
34
- import { Item as Item$1, ItemText, ItemIndicator, Root, Trigger, Icon as Icon$1, Portal as Portal$1, Content, ScrollUpButton, SelectViewport, ScrollDownButton, SelectItemText } from "@radix-ui/react-select";
35
- import { Popover, PopoverTrigger, Portal, PopoverContent, PopoverPortal } from "@radix-ui/react-popover";
36
- import { Command, CommandInput, CommandList, CommandEmpty, CommandItem } from "cmdk";
32
+ import { Popover, PopoverTrigger, Portal as Portal$1, PopoverContent, PopoverPortal } from "@radix-ui/react-popover";
37
33
  import { FocusScope } from "@radix-ui/react-focus-scope";
34
+ import { Item as Item$1, ItemText, ItemIndicator, Root, Trigger, Portal, Content, ScrollUpButton, Viewport, ScrollDownButton, SelectItemText } from "@radix-ui/react-select";
38
35
  import * as InnerRadioGroup from "@radix-ui/react-radio-group";
39
36
  import { DayPicker } from "react-day-picker";
40
37
  import { Root as Root$1, Track, Range, Thumb } from "@radix-ui/react-slider";
@@ -57,7 +54,7 @@ import { Area, ResponsiveContainer, AreaChart as AreaChart$1, XAxis, YAxis, Cart
57
54
  import { MemoryRouter, HashRouter, BrowserRouter } from "react-router-dom";
58
55
  import { useSpring, useInView, animated } from "@react-spring/web";
59
56
  import { AnimatePresence, motion } from "framer-motion";
60
- import { c as componentFileExtension, a as codeBehindFileExtension, g as getLintSeverity, L as LintSeverity, l as lintApp, p as printComponentLints, d as lintErrorsComponent } from "./xmlui-serializer-DB6BLiXK.mjs";
57
+ import { c as componentFileExtension, a as codeBehindFileExtension, g as getLintSeverity, L as LintSeverity, l as lintApp, p as printComponentLints, d as lintErrorsComponent } from "./xmlui-serializer-uCYa8_tZ.mjs";
61
58
  var client = {};
62
59
  var m = require$$0;
63
60
  if (process.env.NODE_ENV === "production") {
@@ -300,10 +297,13 @@ const useEvent = (callback) => {
300
297
  useInsertionEffect(() => {
301
298
  callbackRef.current = callback;
302
299
  }, [callback]);
303
- return useCallback((...args) => {
304
- const latestFn = callbackRef.current;
305
- return latestFn == null ? void 0 : latestFn(...args);
306
- }, [callbackRef]);
300
+ return useCallback(
301
+ (...args) => {
302
+ const latestFn = callbackRef.current;
303
+ return latestFn == null ? void 0 : latestFn(...args);
304
+ },
305
+ [callbackRef]
306
+ );
307
307
  };
308
308
  function humanFileSize(bytes, si = false, dp = 1) {
309
309
  const thresh = si ? 1e3 : 1024;
@@ -592,7 +592,7 @@ function distinct(arr) {
592
592
  function asyncThrottle(func, wait, options2) {
593
593
  const throttled = throttle(
594
594
  (resolve, reject, args) => {
595
- func(...args).then(resolve).catch(reject);
595
+ void func(...args).then(resolve).catch(reject);
596
596
  },
597
597
  wait,
598
598
  options2
@@ -751,18 +751,18 @@ function getElementRef(element) {
751
751
  return element.props.ref || element.ref;
752
752
  }
753
753
  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)"}'`;
754
- const container$3 = "_container_1tt0f_14";
755
- const top$1 = "_top_1tt0f_21";
756
- const end = "_end_1tt0f_26";
757
- const bottom$1 = "_bottom_1tt0f_32";
758
- const start = "_start_1tt0f_37";
759
- const shrinkToLabel = "_shrinkToLabel_1tt0f_43";
760
- const inputLabel = "_inputLabel_1tt0f_46";
761
- const disabled$b = "_disabled_1tt0f_59";
762
- const labelBreak = "_labelBreak_1tt0f_63";
763
- const required = "_required_1tt0f_68";
764
- const requiredMark = "_requiredMark_1tt0f_75";
765
- const itemWithLabel = "_itemWithLabel_1tt0f_79";
754
+ const container$3 = "_container_1pi4w_14";
755
+ const top$1 = "_top_1pi4w_21";
756
+ const end = "_end_1pi4w_26";
757
+ const bottom$1 = "_bottom_1pi4w_32";
758
+ const start = "_start_1pi4w_37";
759
+ const shrinkToLabel = "_shrinkToLabel_1pi4w_43";
760
+ const inputLabel = "_inputLabel_1pi4w_46";
761
+ const disabled$c = "_disabled_1pi4w_59";
762
+ const labelBreak = "_labelBreak_1pi4w_63";
763
+ const required = "_required_1pi4w_68";
764
+ const requiredMark = "_requiredMark_1pi4w_75";
765
+ const itemWithLabel = "_itemWithLabel_1pi4w_79";
766
766
  const styles$1k = {
767
767
  themeVars: themeVars$10,
768
768
  container: container$3,
@@ -772,7 +772,7 @@ const styles$1k = {
772
772
  start,
773
773
  shrinkToLabel,
774
774
  inputLabel,
775
- disabled: disabled$b,
775
+ disabled: disabled$c,
776
776
  labelBreak,
777
777
  required,
778
778
  requiredMark,
@@ -1392,10 +1392,7 @@ const useRealBackground = (element) => {
1392
1392
  useEffect(() => {
1393
1393
  return setCounter((prev) => prev + 1);
1394
1394
  }, [activeThemeTone, activeThemeId]);
1395
- return useMemo(
1396
- () => element ? realBackgroundColor(element) : "transparent",
1397
- [element, counter]
1398
- );
1395
+ return useMemo(() => element ? realBackgroundColor(element) : "transparent", [element]);
1399
1396
  };
1400
1397
  const useStartMargin = (hasOutsideScroll2, parentRef, scrollRef) => {
1401
1398
  const [startMargin, setStartMargin] = useState(0);
@@ -1719,7 +1716,7 @@ const DropdownMenuSubContent = "_DropdownMenuSubContent_iu9k6_19";
1719
1716
  const DropdownMenuItem = "_DropdownMenuItem_iu9k6_29";
1720
1717
  const DropdownMenuSubTrigger = "_DropdownMenuSubTrigger_iu9k6_30";
1721
1718
  const active$3 = "_active_iu9k6_53";
1722
- const disabled$a = "_disabled_iu9k6_63";
1719
+ const disabled$b = "_disabled_iu9k6_63";
1723
1720
  const wrapper$m = "_wrapper_iu9k6_74";
1724
1721
  const DropdownMenuSeparator = "_DropdownMenuSeparator_iu9k6_78";
1725
1722
  const styles$1h = {
@@ -1729,7 +1726,7 @@ const styles$1h = {
1729
1726
  DropdownMenuItem,
1730
1727
  DropdownMenuSubTrigger,
1731
1728
  active: active$3,
1732
- disabled: disabled$a,
1729
+ disabled: disabled$b,
1733
1730
  wrapper: wrapper$m,
1734
1731
  DropdownMenuSeparator
1735
1732
  };
@@ -2132,7 +2129,7 @@ function useCustomSvgIconRenderer(resourceUrl) {
2132
2129
  if (!resourceUrl) {
2133
2130
  return;
2134
2131
  }
2135
- ensureCustomSvgIcon(resourceUrl);
2132
+ void ensureCustomSvgIcon(resourceUrl);
2136
2133
  }, [ensureCustomSvgIcon, resourceUrl]);
2137
2134
  const customSvg = resourceUrl ? customSvgs[resourceUrl] : null;
2138
2135
  const iconRenderer = useCallback(
@@ -2324,7 +2321,6 @@ class StyleLexer {
2324
2321
  * Fetches the next token from the input stream
2325
2322
  */
2326
2323
  fetch() {
2327
- const lexer = this;
2328
2324
  const input2 = this.input;
2329
2325
  const startPos = this._prefetchedPos || input2.position;
2330
2326
  this._lastFetchPosition = this.input.position;
@@ -2334,6 +2330,19 @@ class StyleLexer {
2334
2330
  let ch = null;
2335
2331
  let useResolver = false;
2336
2332
  let stringWrapper = "";
2333
+ const appendTokenChar = () => {
2334
+ text2 += ch;
2335
+ this._prefetched = null;
2336
+ this._prefetchedPos = null;
2337
+ lastEndPos = input2.position;
2338
+ };
2339
+ const fetchNextChar = () => {
2340
+ if (!this._prefetched) {
2341
+ this._prefetchedPos = input2.position;
2342
+ this._prefetched = input2.get();
2343
+ }
2344
+ return this._prefetched;
2345
+ };
2337
2346
  let phase = 0;
2338
2347
  while (true) {
2339
2348
  ch = fetchNextChar();
@@ -2450,19 +2459,6 @@ class StyleLexer {
2450
2459
  }
2451
2460
  appendTokenChar();
2452
2461
  }
2453
- function appendTokenChar() {
2454
- text2 += ch;
2455
- lexer._prefetched = null;
2456
- lexer._prefetchedPos = null;
2457
- lastEndPos = input2.position;
2458
- }
2459
- function fetchNextChar() {
2460
- if (!lexer._prefetched) {
2461
- lexer._prefetchedPos = input2.position;
2462
- lexer._prefetched = input2.get();
2463
- }
2464
- return lexer._prefetched;
2465
- }
2466
2462
  function makeToken() {
2467
2463
  if (useResolver) {
2468
2464
  tokenType = styleKeywords[text2] ?? (isIdStart(text2[0]) ? StyleTokenType.Identifier : StyleTokenType.Unknown);
@@ -2913,7 +2909,78 @@ class StyleParser {
2913
2909
  const startToken = this._lexer.peek();
2914
2910
  const themeIdNode = this.tryThemeId();
2915
2911
  if (themeIdNode) return themeIdNode;
2916
- const parser = this;
2912
+ const parseColorParameters = (pars) => {
2913
+ this._lexer.get();
2914
+ this.expectToken(StyleTokenType.LParent, "S007");
2915
+ for (let i = 0; i < pars.length; i++) {
2916
+ const value = this.getNumber();
2917
+ if (value === null) return false;
2918
+ const unit = this._lexer.peek(true);
2919
+ switch (pars[i]) {
2920
+ case "V%":
2921
+ if (unit.type === StyleTokenType.Percentage) {
2922
+ if (value < 0 || value > 100) {
2923
+ this.reportError("S008");
2924
+ return false;
2925
+ }
2926
+ this._lexer.get();
2927
+ } else {
2928
+ if (value < 0 || value > 255) {
2929
+ this.reportError("S009");
2930
+ return false;
2931
+ }
2932
+ }
2933
+ break;
2934
+ case "%":
2935
+ if (unit.type !== StyleTokenType.Percentage || value < 0 || value > 100) {
2936
+ this.reportError("S008");
2937
+ return false;
2938
+ }
2939
+ this._lexer.get();
2940
+ break;
2941
+ case "angle":
2942
+ if (unit.type === StyleTokenType.Angle) {
2943
+ this._lexer.get();
2944
+ }
2945
+ break;
2946
+ case "alpha":
2947
+ if (unit.type === StyleTokenType.Percentage) {
2948
+ if (value < 0 || value > 100) {
2949
+ this.reportError("S008");
2950
+ return false;
2951
+ }
2952
+ this._lexer.get();
2953
+ } else {
2954
+ if (value < 0 || value > 1) {
2955
+ this.reportError("S011");
2956
+ return false;
2957
+ }
2958
+ }
2959
+ break;
2960
+ }
2961
+ if (i === pars.length - 1) continue;
2962
+ let sepToken = this._lexer.peek(true);
2963
+ if (sepToken.type === StyleTokenType.Ws) {
2964
+ this._lexer.get();
2965
+ sepToken = this._lexer.peek(true);
2966
+ if (sepToken.type === StyleTokenType.Comma) {
2967
+ this._lexer.get();
2968
+ }
2969
+ } else {
2970
+ this.expectToken(StyleTokenType.Comma);
2971
+ }
2972
+ sepToken = this._lexer.peek();
2973
+ if (sepToken.type === StyleTokenType.Ws) {
2974
+ this._lexer.get();
2975
+ }
2976
+ }
2977
+ let aSepToken = this._lexer.peek();
2978
+ if (aSepToken.type === StyleTokenType.Ws) {
2979
+ this._lexer.get();
2980
+ }
2981
+ this.expectToken(StyleTokenType.RParent, "S010");
2982
+ return true;
2983
+ };
2917
2984
  switch (startToken.type) {
2918
2985
  case StyleTokenType.ColorName:
2919
2986
  this._lexer.get();
@@ -2965,78 +3032,6 @@ class StyleParser {
2965
3032
  this.reportError("S005", startToken);
2966
3033
  return null;
2967
3034
  }
2968
- function parseColorParameters(pars) {
2969
- parser._lexer.get();
2970
- parser.expectToken(StyleTokenType.LParent, "S007");
2971
- for (let i = 0; i < pars.length; i++) {
2972
- const value = parser.getNumber();
2973
- if (value === null) return false;
2974
- const unit = parser._lexer.peek(true);
2975
- switch (pars[i]) {
2976
- case "V%":
2977
- if (unit.type === StyleTokenType.Percentage) {
2978
- if (value < 0 || value > 100) {
2979
- parser.reportError("S008");
2980
- return false;
2981
- }
2982
- parser._lexer.get();
2983
- } else {
2984
- if (value < 0 || value > 255) {
2985
- parser.reportError("S009");
2986
- return false;
2987
- }
2988
- }
2989
- break;
2990
- case "%":
2991
- if (unit.type !== StyleTokenType.Percentage || value < 0 || value > 100) {
2992
- parser.reportError("S008");
2993
- return false;
2994
- }
2995
- parser._lexer.get();
2996
- break;
2997
- case "angle":
2998
- if (unit.type === StyleTokenType.Angle) {
2999
- parser._lexer.get();
3000
- }
3001
- break;
3002
- case "alpha":
3003
- if (unit.type === StyleTokenType.Percentage) {
3004
- if (value < 0 || value > 100) {
3005
- parser.reportError("S008");
3006
- return false;
3007
- }
3008
- parser._lexer.get();
3009
- } else {
3010
- if (value < 0 || value > 1) {
3011
- parser.reportError("S011");
3012
- return false;
3013
- }
3014
- }
3015
- break;
3016
- }
3017
- if (i === pars.length - 1) continue;
3018
- let sepToken = parser._lexer.peek(true);
3019
- if (sepToken.type === StyleTokenType.Ws) {
3020
- parser._lexer.get();
3021
- sepToken = parser._lexer.peek(true);
3022
- if (sepToken.type === StyleTokenType.Comma) {
3023
- parser._lexer.get();
3024
- }
3025
- } else {
3026
- parser.expectToken(StyleTokenType.Comma);
3027
- }
3028
- sepToken = parser._lexer.peek();
3029
- if (sepToken.type === StyleTokenType.Ws) {
3030
- parser._lexer.get();
3031
- }
3032
- }
3033
- let aSepToken = parser._lexer.peek();
3034
- if (aSepToken.type === StyleTokenType.Ws) {
3035
- parser._lexer.get();
3036
- }
3037
- parser.expectToken(StyleTokenType.RParent, "S010");
3038
- return true;
3039
- }
3040
3035
  }
3041
3036
  getNumber() {
3042
3037
  const token = this._lexer.get();
@@ -4277,7 +4272,7 @@ const icon$4 = "_icon_8uiju_65";
4277
4272
  const includeHoverIndicator = "_includeHoverIndicator_8uiju_71";
4278
4273
  const displayActive = "_displayActive_8uiju_106";
4279
4274
  const navItemActive = "_navItemActive_8uiju_118";
4280
- const disabled$9 = "_disabled_8uiju_153";
4275
+ const disabled$a = "_disabled_8uiju_153";
4281
4276
  const vertical$6 = "_vertical_8uiju_157";
4282
4277
  const innerContent$1 = "_innerContent_8uiju_170";
4283
4278
  const navLinkStyles = {
@@ -4288,7 +4283,7 @@ const navLinkStyles = {
4288
4283
  includeHoverIndicator,
4289
4284
  displayActive,
4290
4285
  navItemActive,
4291
- disabled: disabled$9,
4286
+ disabled: disabled$a,
4292
4287
  vertical: vertical$6,
4293
4288
  innerContent: innerContent$1
4294
4289
  };
@@ -4853,6 +4848,7 @@ function App({
4853
4848
  name,
4854
4849
  className,
4855
4850
  applyDefaultContentPadding,
4851
+ registerComponentApi,
4856
4852
  ...rest
4857
4853
  }) {
4858
4854
  const { getThemeVar } = useTheme();
@@ -5851,13 +5847,13 @@ const navLinkComponentRenderer = createComponentRenderer(
5851
5847
  const themeVars$N = `'{"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)"}'`;
5852
5848
  const container$2 = "_container_1iujp_14";
5853
5849
  const active$2 = "_active_1iujp_75";
5854
- const disabled$8 = "_disabled_1iujp_79";
5850
+ const disabled$9 = "_disabled_1iujp_79";
5855
5851
  const iconWrapper = "_iconWrapper_1iujp_94";
5856
5852
  const styles$17 = {
5857
5853
  themeVars: themeVars$N,
5858
5854
  container: container$2,
5859
5855
  active: active$2,
5860
- disabled: disabled$8,
5856
+ disabled: disabled$9,
5861
5857
  iconWrapper
5862
5858
  };
5863
5859
  const defaultProps$15 = {
@@ -6032,7 +6028,7 @@ const themeVars$M = `'{"backgroundColor-Tree-row--selected": "var(--xmlui-backgr
6032
6028
  const wrapper$j = "_wrapper_eyur1_14";
6033
6029
  const rowWrapper = "_rowWrapper_eyur1_22";
6034
6030
  const selected$2 = "_selected_eyur1_39";
6035
- const focused$2 = "_focused_eyur1_46";
6031
+ const focused$3 = "_focused_eyur1_46";
6036
6032
  const gutter = "_gutter_eyur1_56";
6037
6033
  const toggleWrapper = "_toggleWrapper_eyur1_63";
6038
6034
  const hidden$2 = "_hidden_eyur1_72";
@@ -6044,7 +6040,7 @@ const styles$16 = {
6044
6040
  wrapper: wrapper$j,
6045
6041
  rowWrapper,
6046
6042
  selected: selected$2,
6047
- focused: focused$2,
6043
+ focused: focused$3,
6048
6044
  gutter,
6049
6045
  toggleWrapper,
6050
6046
  hidden: hidden$2,
@@ -6252,7 +6248,7 @@ function hierarchyToNative(hierarchyData, fieldConfig) {
6252
6248
  treeItemsById
6253
6249
  };
6254
6250
  }
6255
- const TreeRow = memo(({ index, style: style2, data }) => {
6251
+ const TreeRow = memo(({ index, data }) => {
6256
6252
  const {
6257
6253
  nodes,
6258
6254
  toggleNode,
@@ -6309,7 +6305,7 @@ const TreeRow = memo(({ index, style: style2, data }) => {
6309
6305
  );
6310
6306
  const nodeWithState = treeItem;
6311
6307
  const isLoading = nodeWithState.loadingState === "loading";
6312
- return /* @__PURE__ */ jsx("div", { style: { ...style2, width: "auto", minWidth: "100%", display: "flex" }, children: /* @__PURE__ */ jsxs(
6308
+ return /* @__PURE__ */ jsx("div", { style: { width: "100%", display: "flex" }, children: /* @__PURE__ */ jsxs(
6313
6309
  "div",
6314
6310
  {
6315
6311
  className: classnames(styles$16.rowWrapper, {
@@ -6810,7 +6806,7 @@ const TreeComponent = memo((props) => {
6810
6806
  if (currentIndex >= 0) {
6811
6807
  const currentNode = flatTreeData[currentIndex];
6812
6808
  if (currentNode.hasChildren && !currentNode.isExpanded) {
6813
- toggleNode(currentNode);
6809
+ void toggleNode(currentNode);
6814
6810
  } else if (currentNode.hasChildren && currentNode.isExpanded && currentIndex + 1 < flatTreeData.length) {
6815
6811
  newIndex = currentIndex + 1;
6816
6812
  }
@@ -6822,7 +6818,7 @@ const TreeComponent = memo((props) => {
6822
6818
  if (currentIndex >= 0) {
6823
6819
  const currentNode = flatTreeData[currentIndex];
6824
6820
  if (currentNode.hasChildren && currentNode.isExpanded) {
6825
- toggleNode(currentNode);
6821
+ void toggleNode(currentNode);
6826
6822
  } else if (currentNode.depth > 0) {
6827
6823
  for (let i = currentIndex - 1; i >= 0; i--) {
6828
6824
  if (flatTreeData[i].depth < currentNode.depth) {
@@ -6854,7 +6850,7 @@ const TreeComponent = memo((props) => {
6854
6850
  newIndex = currentIndex;
6855
6851
  }
6856
6852
  if (e.key === "Enter" && currentNode.hasChildren) {
6857
- toggleNode(currentNode);
6853
+ void toggleNode(currentNode);
6858
6854
  }
6859
6855
  }
6860
6856
  handled = true;
@@ -6900,10 +6896,6 @@ const TreeComponent = memo((props) => {
6900
6896
  animateExpand,
6901
6897
  expandRotation
6902
6898
  ]);
6903
- const getItemKey = useCallback((index, data2) => {
6904
- const node = data2.nodes[index];
6905
- return (node == null ? void 0 : node.key) || (node == null ? void 0 : node.id) || `fallback-${index}`;
6906
- }, []);
6907
6899
  const treeApiMethods = useMemo(() => {
6908
6900
  return {
6909
6901
  // Expansion methods
@@ -7079,14 +7071,14 @@ const TreeComponent = memo((props) => {
7079
7071
  (item2) => String(item2.key) === String(nodeId)
7080
7072
  );
7081
7073
  if (nodeIndex >= 0 && listRef.current) {
7082
- listRef.current.scrollToItem(nodeIndex, "center");
7074
+ listRef.current.scrollToIndex(nodeIndex, { align: "center" });
7083
7075
  }
7084
7076
  }, 0);
7085
7077
  },
7086
7078
  scrollToItem: (nodeId) => {
7087
7079
  const nodeIndex = findNodeIndexById(nodeId);
7088
7080
  if (nodeIndex >= 0 && listRef.current) {
7089
- listRef.current.scrollToItem(nodeIndex, "center");
7081
+ listRef.current.scrollToIndex(nodeIndex, { align: "center" });
7090
7082
  }
7091
7083
  },
7092
7084
  appendNode: (parentNodeId, nodeData) => {
@@ -7403,19 +7395,8 @@ const TreeComponent = memo((props) => {
7403
7395
  onFocus: handleTreeFocus,
7404
7396
  onBlur: handleTreeBlur,
7405
7397
  onKeyDown: handleKeyDown,
7406
- children: /* @__PURE__ */ jsx(AutoSizer, { children: ({ width, height }) => /* @__PURE__ */ jsx(
7407
- FixedSizeList,
7408
- {
7409
- ref: listRef,
7410
- height,
7411
- itemCount: itemData.nodes.length,
7412
- itemData,
7413
- itemSize: itemHeight,
7414
- itemKey: getItemKey,
7415
- width,
7416
- children: TreeRow
7417
- }
7418
- ) })
7398
+ style: { height: "100%", overflow: "auto" },
7399
+ children: /* @__PURE__ */ jsx(Virtualizer, { ref: listRef, children: flatTreeData.map((node, index) => /* @__PURE__ */ jsx(TreeRow, { index, data: itemData }, node.key)) })
7419
7400
  }
7420
7401
  );
7421
7402
  });
@@ -9168,7 +9149,7 @@ function processStatementQueue(statements, evalContext, thread) {
9168
9149
  thread.breakLabelValue = queue.length > 0 ? queue.peek().label : -1;
9169
9150
  let outcome;
9170
9151
  try {
9171
- (_a2 = evalContext == null ? void 0 : evalContext.onStatementStarted) == null ? void 0 : _a2.call(evalContext, evalContext, queueItem.statement);
9152
+ void ((_a2 = evalContext == null ? void 0 : evalContext.onStatementStarted) == null ? void 0 : _a2.call(evalContext, evalContext, queueItem.statement));
9172
9153
  outcome = processStatement(
9173
9154
  queueItem.statement,
9174
9155
  queueItem.execInfo ?? {},
@@ -9208,7 +9189,7 @@ function processStatementQueue(statements, evalContext, thread) {
9208
9189
  diagInfo.clearToLabels++;
9209
9190
  }
9210
9191
  }
9211
- (_b = evalContext == null ? void 0 : evalContext.onStatementCompleted) == null ? void 0 : _b.call(evalContext, evalContext, queueItem.statement);
9192
+ void ((_b = evalContext == null ? void 0 : evalContext.onStatementCompleted) == null ? void 0 : _b.call(evalContext, evalContext, queueItem.statement));
9212
9193
  if (queue.length > diagInfo.maxQueueLength) {
9213
9194
  diagInfo.maxQueueLength = queue.length;
9214
9195
  }
@@ -9925,7 +9906,7 @@ function evalAssignment(evaluator, thisStack, expr, evalContext, thread) {
9925
9906
  const rootScope = getRootIdScope(leftValue, evalContext, thread);
9926
9907
  const updatesState = rootScope && rootScope.type !== "block";
9927
9908
  if (updatesState && evalContext.onWillUpdate) {
9928
- evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
9909
+ void evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
9929
9910
  }
9930
9911
  evaluator(thisStack, leftValue, evalContext, thread);
9931
9912
  thisStack.pop();
@@ -9933,7 +9914,7 @@ function evalAssignment(evaluator, thisStack, expr, evalContext, thread) {
9933
9914
  thisStack.pop();
9934
9915
  const value = evalAssignmentCore(thisStack, expr, evalContext, thread);
9935
9916
  if (updatesState && evalContext.onDidUpdate) {
9936
- evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
9917
+ void evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
9937
9918
  }
9938
9919
  return value;
9939
9920
  }
@@ -9941,13 +9922,13 @@ function evalPreOrPost(evaluator, thisStack, expr, evalContext, thread) {
9941
9922
  const rootScope = getRootIdScope(expr.expr, evalContext, thread);
9942
9923
  const updatesState = rootScope && rootScope.type !== "block";
9943
9924
  if (updatesState && evalContext.onWillUpdate) {
9944
- evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
9925
+ void evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
9945
9926
  }
9946
9927
  evaluator(thisStack, expr.expr, evalContext, thread);
9947
9928
  thisStack.pop();
9948
9929
  const value = evalPreOrPostCore(thisStack, expr, evalContext, thread);
9949
9930
  if (updatesState && evalContext.onDidUpdate) {
9950
- evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
9931
+ void evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
9951
9932
  }
9952
9933
  return value;
9953
9934
  }
@@ -10026,11 +10007,11 @@ function evalFunctionInvocation(evaluator, thisStack, expr, evalContext, thread)
10026
10007
  const rootScope = getRootIdScope(expr.obj, evalContext, thread);
10027
10008
  const updatesState = rootScope && rootScope.type !== "block";
10028
10009
  if (updatesState && evalContext.onWillUpdate) {
10029
- evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
10010
+ void evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
10030
10011
  }
10031
10012
  const value = ((_b = evalContext.options) == null ? void 0 : _b.defaultToOptionalMemberAccess) ? functionObj == null ? void 0 : functionObj.call(currentContext, ...functionArgs) : functionObj.call(currentContext, ...functionArgs);
10032
10013
  if (updatesState && evalContext.onDidUpdate) {
10033
- evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
10014
+ void evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
10034
10015
  }
10035
10016
  setExprValue(expr, { value }, thread);
10036
10017
  thisStack.push(value);
@@ -10801,6 +10782,576 @@ const styles$13 = {
10801
10782
  breakKeep,
10802
10783
  breakHyphenate
10803
10784
  };
10785
+ function hashString(str) {
10786
+ let hash = 5381;
10787
+ let i = str.length;
10788
+ while (i) {
10789
+ hash = hash * 33 ^ str.charCodeAt(--i);
10790
+ }
10791
+ let s = (hash >>> 0).toString(36);
10792
+ return s;
10793
+ }
10794
+ function toKebabCase(str) {
10795
+ if (str.startsWith("--")) {
10796
+ return str;
10797
+ }
10798
+ return str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
10799
+ }
10800
+ function stableJSONStringify(obj) {
10801
+ return JSON.stringify(obj);
10802
+ }
10803
+ class StyleRegistry {
10804
+ constructor() {
10805
+ this.cache = /* @__PURE__ */ new Map();
10806
+ this.rootClasses = /* @__PURE__ */ new Set();
10807
+ this.injected = /* @__PURE__ */ new Set();
10808
+ this.refCounts = /* @__PURE__ */ new Map();
10809
+ this.ssrHashes = /* @__PURE__ */ new Set();
10810
+ }
10811
+ register(styles2) {
10812
+ const key = stableJSONStringify(styles2);
10813
+ const styleHash = hashString(key);
10814
+ const cachedEntry = this.cache.get(styleHash);
10815
+ if (cachedEntry) {
10816
+ return cachedEntry;
10817
+ }
10818
+ const className = `css-${styleHash}`;
10819
+ const css = this._generateCss(`.${className}`, styles2);
10820
+ const entry = { className, styleHash, css };
10821
+ this.cache.set(styleHash, entry);
10822
+ return entry;
10823
+ }
10824
+ /**
10825
+ * [PRIVATE] Recursively generates CSS rules from a style object.
10826
+ * This is the new, more powerful engine.
10827
+ * @param selector - The CSS selector for the current context (e.g., '.css-123' or '&:hover').
10828
+ * @param styles - The style object to process.
10829
+ * @returns A string of CSS rules.
10830
+ */
10831
+ _generateCss(selector, styles2) {
10832
+ const directProps = [];
10833
+ const nestedRules = [];
10834
+ for (const key in styles2) {
10835
+ const value = styles2[key];
10836
+ if (typeof value === "object" && value !== null) {
10837
+ nestedRules.push(this._processNestedRule(selector, key, value));
10838
+ } else {
10839
+ directProps.push(`${toKebabCase(key)}:${value};`);
10840
+ }
10841
+ }
10842
+ let finalCss = "";
10843
+ if (directProps.length > 0) {
10844
+ finalCss += `${selector} {${directProps.join("")}}`;
10845
+ }
10846
+ finalCss += nestedRules.join("");
10847
+ return finalCss;
10848
+ }
10849
+ _processNestedRule(parentSelector, nestedKey, nestedStyles) {
10850
+ if (nestedKey.startsWith("@")) {
10851
+ return `${nestedKey}{${this._generateCss(parentSelector, nestedStyles)}}`;
10852
+ }
10853
+ const newSelector = nestedKey.replace(/&/g, parentSelector);
10854
+ return this._generateCss(newSelector, nestedStyles);
10855
+ }
10856
+ getSsrStyles() {
10857
+ const allCss = Array.from(this.cache.values()).map((entry) => entry.css).join("");
10858
+ return `@layer dynamic {${allCss}}`;
10859
+ }
10860
+ /**
10861
+ * Adds a class name to be applied to the <html> tag.
10862
+ */
10863
+ addRootClasses(classNames) {
10864
+ classNames.forEach((className) => {
10865
+ this.rootClasses.add(className);
10866
+ });
10867
+ }
10868
+ /**
10869
+ * Returns a space-separated string of all collected html classes.
10870
+ */
10871
+ getRootClasses() {
10872
+ return Array.from(this.rootClasses).join(" ");
10873
+ }
10874
+ // NEW: A helper to safely get the current reference count.
10875
+ getRefCount(styleHash) {
10876
+ return this.refCounts.get(styleHash) || 0;
10877
+ }
10878
+ /**
10879
+ * Increments the reference count for a given style hash.
10880
+ */
10881
+ incrementRef(styleHash) {
10882
+ const newCount = (this.refCounts.get(styleHash) || 0) + 1;
10883
+ this.refCounts.set(styleHash, newCount);
10884
+ }
10885
+ /**
10886
+ * Decrements the reference count for a given style hash.
10887
+ * @returns {number} The new reference count.
10888
+ */
10889
+ decrementRef(styleHash) {
10890
+ const currentCount = this.refCounts.get(styleHash) || 0;
10891
+ const newCount = Math.max(0, currentCount - 1);
10892
+ if (newCount > 0) {
10893
+ this.refCounts.set(styleHash, newCount);
10894
+ } else {
10895
+ this.refCounts.delete(styleHash);
10896
+ }
10897
+ return newCount;
10898
+ }
10899
+ }
10900
+ const IndexerContext = React__default.createContext({
10901
+ indexing: false
10902
+ });
10903
+ function useIndexerContext() {
10904
+ return useContext(IndexerContext);
10905
+ }
10906
+ const StyleContext = createContext(null);
10907
+ function StyleProvider({
10908
+ children,
10909
+ styleRegistry = new StyleRegistry(),
10910
+ forceNew = false
10911
+ // Optional prop to force a new registry
10912
+ }) {
10913
+ const parentRegistry = useContext(StyleContext);
10914
+ const [registry] = useState(() => {
10915
+ const newRegistry = styleRegistry;
10916
+ if (typeof window !== "undefined") {
10917
+ const ssrTag = document.querySelector('style[data-style-registry="true"]');
10918
+ const ssrHashes = ssrTag == null ? void 0 : ssrTag.getAttribute("data-ssr-hashes");
10919
+ if (ssrHashes) {
10920
+ let hashes = ssrHashes.split(",");
10921
+ newRegistry.ssrHashes = new Set(hashes);
10922
+ newRegistry.injected = new Set(hashes);
10923
+ }
10924
+ }
10925
+ return newRegistry;
10926
+ });
10927
+ if (parentRegistry && !forceNew) {
10928
+ return /* @__PURE__ */ jsx(Fragment, { children });
10929
+ }
10930
+ return /* @__PURE__ */ jsx(StyleContext.Provider, { value: registry, children });
10931
+ }
10932
+ function useStyleRegistry() {
10933
+ const registry = useContext(StyleContext);
10934
+ if (registry === null) {
10935
+ throw new Error("Component must be used within a StyleProvider");
10936
+ }
10937
+ return registry;
10938
+ }
10939
+ function useComponentStyle(styles2) {
10940
+ const rootStyle = useMemo(() => {
10941
+ return !styles2 || Object.keys(styles2).length === 0 ? EMPTY_OBJECT : {
10942
+ "&": styles2
10943
+ // "@container style(--screenSize: 1) or @container style(--screenSize: 2) ... etc": responsiveSizes,
10944
+ };
10945
+ }, [styles2]);
10946
+ return useStyles(rootStyle);
10947
+ }
10948
+ const StyleInjectionTargetContext = createContext(null);
10949
+ function useDomRoot() {
10950
+ const domRoot = useContext(StyleInjectionTargetContext);
10951
+ return domRoot;
10952
+ }
10953
+ function useStyles(styles2, { prepend } = EMPTY_OBJECT) {
10954
+ const { indexing } = useIndexerContext();
10955
+ const domRoot = useDomRoot();
10956
+ const injectionTarget = typeof document === "undefined" ? null : domRoot instanceof ShadowRoot ? domRoot : document.head;
10957
+ const registry = useStyleRegistry();
10958
+ const { className, styleHash } = useMemo(() => {
10959
+ if (indexing || !styles2 || styles2 === EMPTY_OBJECT || Object.keys(styles2).length === 0) {
10960
+ return { className: void 0, styleHash: void 0 };
10961
+ }
10962
+ return registry.register(styles2);
10963
+ }, [indexing, registry, styles2]);
10964
+ useInsertionEffect(() => {
10965
+ if (!styleHash || registry.injected.has(styleHash)) {
10966
+ return;
10967
+ }
10968
+ const { css } = registry.cache.get(styleHash) || {};
10969
+ if (css) {
10970
+ const styleElement = document.createElement("style");
10971
+ styleElement.setAttribute("data-style-hash", styleHash);
10972
+ styleElement.innerHTML = `@layer dynamic {
10973
+ ${css}
10974
+ }`;
10975
+ if (prepend) {
10976
+ injectionTarget.insertBefore(styleElement, injectionTarget.firstChild.nextSibling);
10977
+ } else {
10978
+ injectionTarget.appendChild(styleElement);
10979
+ }
10980
+ registry.injected.add(styleHash);
10981
+ }
10982
+ }, [registry, styleHash, injectionTarget]);
10983
+ useEffect(() => {
10984
+ if (!styleHash) {
10985
+ return;
10986
+ }
10987
+ registry.incrementRef(styleHash);
10988
+ return () => {
10989
+ registry.decrementRef(styleHash);
10990
+ setTimeout(() => {
10991
+ var _a2;
10992
+ if (registry.getRefCount(styleHash) === 0 && !registry.ssrHashes.has(styleHash)) {
10993
+ registry.injected.delete(styleHash);
10994
+ (_a2 = injectionTarget.querySelector(`style[data-style-hash="${styleHash}"]`)) == null ? void 0 : _a2.remove();
10995
+ }
10996
+ }, 0);
10997
+ };
10998
+ }, [injectionTarget, registry, styleHash]);
10999
+ return className;
11000
+ }
11001
+ const THEME_VAR_PREFIX = "xmlui";
11002
+ const themeVarCapturesRegex = /(\$[a-zA-Z][a-zA-Z0-9-_]*)/g;
11003
+ const booleanRegex = /^(true|false)$/;
11004
+ const starSizeRegex = /^\d*\*$/;
11005
+ const defaultCompResult = {
11006
+ cssProps: {},
11007
+ issues: /* @__PURE__ */ new Set()
11008
+ };
11009
+ function resolveLayoutProps(layoutProps = EMPTY_OBJECT, layoutContext) {
11010
+ const result = {
11011
+ cssProps: {},
11012
+ issues: /* @__PURE__ */ new Set()
11013
+ };
11014
+ if (!!getOrientation(layoutContext)) {
11015
+ result.cssProps.flexShrink = 0;
11016
+ }
11017
+ collectCss("width");
11018
+ const horizontalStarSize = getHorizontalStarSize(result.cssProps.width, layoutContext);
11019
+ if (horizontalStarSize !== null) {
11020
+ result.cssProps.flex = horizontalStarSize;
11021
+ result.cssProps.flexShrink = 1;
11022
+ }
11023
+ collectCss("minWidth");
11024
+ collectCss("maxWidth");
11025
+ collectCss("height");
11026
+ const verticalStarSize = getVerticalStarSize(result.cssProps.height, layoutContext);
11027
+ if (verticalStarSize !== null) {
11028
+ result.cssProps.flex = verticalStarSize;
11029
+ result.cssProps.flexShrink = 1;
11030
+ }
11031
+ collectCss("minHeight");
11032
+ collectCss("maxHeight");
11033
+ collectCss("top");
11034
+ collectCss("right");
11035
+ collectCss("bottom");
11036
+ collectCss("left");
11037
+ collectCss("gap");
11038
+ collectCss("padding");
11039
+ const paddingHorizontal = transformLayoutValue("paddingHorizontal");
11040
+ if (paddingHorizontal) {
11041
+ result.cssProps.paddingLeft = paddingHorizontal;
11042
+ result.cssProps.paddingRight = paddingHorizontal;
11043
+ }
11044
+ collectCss("paddingRight");
11045
+ collectCss("paddingLeft");
11046
+ const paddingVertical = transformLayoutValue("paddingVertical");
11047
+ if (paddingVertical) {
11048
+ result.cssProps.paddingTop = paddingVertical;
11049
+ result.cssProps.paddingBottom = paddingVertical;
11050
+ }
11051
+ collectCss("paddingTop");
11052
+ collectCss("paddingBottom");
11053
+ collectCss("margin");
11054
+ const marginHorizontal = transformLayoutValue("marginHorizontal");
11055
+ if (marginHorizontal) {
11056
+ result.cssProps.marginLeft = marginHorizontal;
11057
+ result.cssProps.marginRight = marginHorizontal;
11058
+ }
11059
+ collectCss("marginRight");
11060
+ collectCss("marginLeft");
11061
+ const marginVertical = transformLayoutValue("marginVertical");
11062
+ if (marginVertical) {
11063
+ result.cssProps.marginTop = marginVertical;
11064
+ result.cssProps.marginBottom = marginVertical;
11065
+ }
11066
+ collectCss("marginTop");
11067
+ collectCss("marginBottom");
11068
+ collectCss("border");
11069
+ const horizontalBorder = transformLayoutValue("borderHorizontal");
11070
+ if (horizontalBorder) {
11071
+ result.cssProps.borderLeft = horizontalBorder;
11072
+ result.cssProps.borderRight = horizontalBorder;
11073
+ }
11074
+ collectCss("borderRight");
11075
+ collectCss("borderLeft");
11076
+ const verticalBorder = transformLayoutValue("borderVertical");
11077
+ if (verticalBorder) {
11078
+ result.cssProps.borderTop = verticalBorder;
11079
+ result.cssProps.borderBottom = verticalBorder;
11080
+ }
11081
+ collectCss("borderTop");
11082
+ collectCss("borderBottom");
11083
+ collectCss("borderColor");
11084
+ collectCss("borderStyle");
11085
+ collectCss("borderWidth");
11086
+ collectCss("borderRadius");
11087
+ collectCss("radiusTopLeft", "borderTopLeftRadius");
11088
+ collectCss("radiusTopRight", "borderTopRightRadius");
11089
+ collectCss("radiusBottomLeft", "borderBottomLeftRadius");
11090
+ collectCss("radiusBottomRight", "borderBottomRightRadius");
11091
+ collectCss("color");
11092
+ collectCss("fontFamily");
11093
+ collectCss("fontSize");
11094
+ collectCss("fontWeight");
11095
+ collectCss("fontStyle");
11096
+ collectCss("fontVariant");
11097
+ collectCss("lineBreak");
11098
+ collectCss("textDecoration");
11099
+ collectCss("textDecorationLine");
11100
+ collectCss("textDecorationColor");
11101
+ collectCss("textDecorationStyle");
11102
+ collectCss("textDecorationThickness");
11103
+ collectCss("textIndent");
11104
+ collectCss("textShadow");
11105
+ collectCss("textUnderlineOffset");
11106
+ collectCss("userSelect");
11107
+ collectCss("letterSpacing");
11108
+ collectCss("textTransform");
11109
+ collectCss("lineHeight");
11110
+ collectCss("textAlign");
11111
+ collectCss("textAlignLast");
11112
+ collectCss("textWrap");
11113
+ collectCss("wordBreak");
11114
+ collectCss("wordSpacing");
11115
+ collectCss("wordWrap");
11116
+ collectCss("writingMode");
11117
+ collectCss("backgroundColor");
11118
+ collectCss("background");
11119
+ collectCss("boxShadow");
11120
+ collectCss("direction");
11121
+ collectCss("overflowX");
11122
+ collectCss("overflowY");
11123
+ collectCss("zIndex");
11124
+ collectCss("opacity");
11125
+ collectCss("zoom");
11126
+ collectCss("cursor");
11127
+ collectCss("whiteSpace");
11128
+ collectCss("transform");
11129
+ collectCss("outline");
11130
+ collectCss("outlineWidth");
11131
+ collectCss("outlineColor");
11132
+ collectCss("outlineStyle");
11133
+ collectCss("outlineOffset");
11134
+ const wrapContent = transformLayoutValue("wrapContent");
11135
+ if (wrapContent) {
11136
+ result.cssProps.flexWrap = wrapContent === "true" ? "wrap" : "nowrap";
11137
+ }
11138
+ collectCss("canShrink", "flexShrink");
11139
+ const canShrink = transformLayoutValue("canShrink");
11140
+ if (canShrink) {
11141
+ result.cssProps.flexShrink = canShrink === "true" ? 1 : 0;
11142
+ }
11143
+ if (isEmpty(result.cssProps) && isEmpty(result.issues)) {
11144
+ return defaultCompResult;
11145
+ }
11146
+ return result;
11147
+ function transformLayoutValue(prop) {
11148
+ var _a2, _b;
11149
+ const defValue = resolveSingleValue();
11150
+ if (((_a2 = layoutContext == null ? void 0 : layoutContext.mediaSize) == null ? void 0 : _a2.sizeIndex) !== void 0) {
11151
+ const sizeIndex = (_b = layoutContext.mediaSize) == null ? void 0 : _b.sizeIndex;
11152
+ const xsValue = resolveSingleValue("xs");
11153
+ const smValue = resolveSingleValue("sm");
11154
+ const mdValue = resolveSingleValue("md");
11155
+ const lgValue = resolveSingleValue("lg");
11156
+ const xlValue = resolveSingleValue("xl");
11157
+ const xxlValue = resolveSingleValue("xxl");
11158
+ let mergedValue;
11159
+ switch (sizeIndex) {
11160
+ case 0:
11161
+ mergedValue = xsValue ?? smValue ?? mdValue;
11162
+ break;
11163
+ case 1:
11164
+ mergedValue = smValue ?? mdValue;
11165
+ break;
11166
+ case 2:
11167
+ mergedValue = mdValue;
11168
+ break;
11169
+ case 3:
11170
+ mergedValue = lgValue;
11171
+ break;
11172
+ case 4:
11173
+ mergedValue = xlValue ?? lgValue;
11174
+ break;
11175
+ case 5:
11176
+ mergedValue = xxlValue ?? xlValue ?? lgValue;
11177
+ break;
11178
+ }
11179
+ return mergedValue ?? defValue;
11180
+ }
11181
+ return defValue;
11182
+ function resolveSingleValue(sizeTag = "") {
11183
+ const fullProp = sizeTag ? `${prop}-${sizeTag}` : prop;
11184
+ let singleInput = layoutProps[fullProp];
11185
+ if (singleInput == void 0) {
11186
+ return;
11187
+ }
11188
+ if (typeof singleInput === "string") {
11189
+ singleInput = singleInput.trim();
11190
+ } else {
11191
+ singleInput = singleInput.toString();
11192
+ }
11193
+ const value = singleInput ? singleInput.replace(
11194
+ themeVarCapturesRegex,
11195
+ (match) => toCssVar(match.trim())
11196
+ ) : void 0;
11197
+ if (singleInput !== value) {
11198
+ return value;
11199
+ }
11200
+ const propPatterns = layoutPatterns[prop];
11201
+ if (!propPatterns || propPatterns.length === 0) {
11202
+ return value;
11203
+ }
11204
+ for (const pattern of propPatterns) {
11205
+ if (pattern.test(value)) {
11206
+ return value;
11207
+ }
11208
+ }
11209
+ result.issues.add(fullProp);
11210
+ return value;
11211
+ }
11212
+ }
11213
+ function collectCss(prop, propCssName = "") {
11214
+ const value = transformLayoutValue(prop);
11215
+ if (value) {
11216
+ result.cssProps[propCssName || prop] = value;
11217
+ }
11218
+ }
11219
+ function getHorizontalStarSize(size, layoutContext2) {
11220
+ if (!size) return null;
11221
+ const orientation = getOrientation(layoutContext2);
11222
+ return orientation === "horizontal" && starSizeRegex.test(size.toString()) ? getStarSizeNumber(size.toString()) : null;
11223
+ }
11224
+ function getVerticalStarSize(size, layoutContext2) {
11225
+ if (!size) return null;
11226
+ const orientation = getOrientation(layoutContext2);
11227
+ return orientation === "vertical" && starSizeRegex.test(size.toString()) ? getStarSizeNumber(size.toString()) : null;
11228
+ }
11229
+ function getStarSizeNumber(input2) {
11230
+ if (starSizeRegex.test(input2)) {
11231
+ const numberPart = input2.slice(0, -1);
11232
+ return numberPart === "" ? 1 : parseInt(numberPart, 10);
11233
+ }
11234
+ return null;
11235
+ }
11236
+ function getOrientation(layoutContext2) {
11237
+ if (!layoutContext2) return;
11238
+ let orientation = (layoutContext2 == null ? void 0 : layoutContext2.type) === "Stack" && (layoutContext2 == null ? void 0 : layoutContext2.orientation);
11239
+ return orientation == null ? void 0 : orientation.toString();
11240
+ }
11241
+ }
11242
+ function toCssVar(c) {
11243
+ return `var(--${THEME_VAR_PREFIX}-${c.substring(1)})`;
11244
+ }
11245
+ const layoutPatterns = {
11246
+ // --- Dimensions
11247
+ width: [],
11248
+ minWidth: [],
11249
+ maxWidth: [],
11250
+ height: [],
11251
+ minHeight: [],
11252
+ maxHeight: [],
11253
+ gap: [],
11254
+ // --- Positions
11255
+ top: [],
11256
+ right: [],
11257
+ bottom: [],
11258
+ left: [],
11259
+ // --- Border
11260
+ border: [],
11261
+ borderTop: [],
11262
+ borderRight: [],
11263
+ borderBottom: [],
11264
+ borderLeft: [],
11265
+ borderColor: [],
11266
+ borderStyle: [],
11267
+ borderWidth: [],
11268
+ borderHorizontal: [],
11269
+ borderVertical: [],
11270
+ // --- Border radius
11271
+ borderRadius: [],
11272
+ radiusTopLeft: [],
11273
+ radiusTopRight: [],
11274
+ radiusBottomLeft: [],
11275
+ radiusBottomRight: [],
11276
+ // --- Padding
11277
+ padding: [],
11278
+ paddingHorizontal: [],
11279
+ paddingVertical: [],
11280
+ paddingTop: [],
11281
+ paddingRight: [],
11282
+ paddingBottom: [],
11283
+ paddingLeft: [],
11284
+ // --- Margin
11285
+ margin: [],
11286
+ marginHorizontal: [],
11287
+ marginVertical: [],
11288
+ marginTop: [],
11289
+ marginRight: [],
11290
+ marginBottom: [],
11291
+ marginLeft: [],
11292
+ // --- Other
11293
+ backgroundColor: [],
11294
+ background: [],
11295
+ boxShadow: [],
11296
+ direction: [],
11297
+ overflowX: [],
11298
+ overflowY: [],
11299
+ zIndex: [],
11300
+ opacity: [],
11301
+ // --- Typography
11302
+ color: [],
11303
+ fontFamily: [],
11304
+ fontSize: [],
11305
+ fontWeight: [],
11306
+ fontStyle: [booleanRegex],
11307
+ fontVariant: [],
11308
+ lineBreak: [],
11309
+ textDecoration: [],
11310
+ userSelect: [],
11311
+ letterSpacing: [],
11312
+ textTransform: [],
11313
+ lineHeight: [],
11314
+ textAlign: [],
11315
+ textWrap: [],
11316
+ textAlignLast: [],
11317
+ textIndent: [],
11318
+ textShadow: [],
11319
+ wordBreak: [],
11320
+ wordSpacing: [],
11321
+ wordWrap: [],
11322
+ writingMode: [],
11323
+ // --- Content rendering
11324
+ wrapContent: [],
11325
+ canShrink: [],
11326
+ // --- Other
11327
+ cursor: [],
11328
+ zoom: [],
11329
+ whiteSpace: [],
11330
+ textDecorationLine: [],
11331
+ textDecorationColor: [],
11332
+ textDecorationStyle: [],
11333
+ textDecorationThickness: [],
11334
+ textUnderlineOffset: [],
11335
+ transform: [],
11336
+ // --- Outline
11337
+ outline: [],
11338
+ outlineWidth: [],
11339
+ outlineColor: [],
11340
+ outlineStyle: [],
11341
+ outlineOffset: [],
11342
+ // --- Animation
11343
+ transition: []
11344
+ };
11345
+ const customVariantCache = /* @__PURE__ */ new Map();
11346
+ function setCustomVariantCache(variant, entry) {
11347
+ customVariantCache.set(variant, {
11348
+ ...entry,
11349
+ createdAt: Date.now()
11350
+ });
11351
+ }
11352
+ function hasCustomVariantCache(variant) {
11353
+ return customVariantCache.has(variant);
11354
+ }
10804
11355
  const defaultProps$11 = {
10805
11356
  maxLines: 0,
10806
11357
  preserveLinebreaks: false,
@@ -10841,6 +11392,56 @@ const Text = forwardRef(function Text2({
10841
11392
  if (!variant || !TextVariantElement[variant]) return "div";
10842
11393
  return TextVariantElement[variant];
10843
11394
  }, [variant]);
11395
+ const isCustomVariant = useMemo(() => {
11396
+ return variant && !TextVariantElement[variant];
11397
+ }, [variant]);
11398
+ const variantSpec = useMemo(
11399
+ () => {
11400
+ if (!isCustomVariant) return EMPTY_OBJECT;
11401
+ const subject = `-Text-${variant}`;
11402
+ const cssInput = {
11403
+ color: toCssVar(`$textColor${subject}`),
11404
+ "font-family": toCssVar(`$fontFamily${subject}`),
11405
+ "font-size": toCssVar(`$fontSize${subject}`),
11406
+ "font-style": toCssVar(`$fontStyle${subject}`),
11407
+ "font-weight": toCssVar(`$fontWeight${subject}`),
11408
+ "font-stretch": toCssVar(`$fontStretch${subject}`),
11409
+ "text-decoration-line": toCssVar(`$textDecorationLine${subject}`),
11410
+ "text-decoration-color": toCssVar(`$textDecorationColor${subject}`),
11411
+ "text-decoration-style": toCssVar(`$textDecorationStyle${subject}`),
11412
+ "text-decoration-thickness": toCssVar(`$textDecorationThickness${subject}`),
11413
+ "text-underline-offset": toCssVar(`$textUnderlineOffset${subject}`),
11414
+ "line-height": toCssVar(`$lineHeight${subject}`),
11415
+ "background-color": toCssVar(`$backgroundColor${subject}`),
11416
+ "text-transform": toCssVar(`$textTransform${subject}`),
11417
+ "letter-spacing": toCssVar(`$letterSpacing${subject}`),
11418
+ "word-spacing": toCssVar(`$wordSpacing${subject}`),
11419
+ "text-shadow": toCssVar(`$textShadow${subject}`),
11420
+ "text-indent": toCssVar(`$textIndent${subject}`),
11421
+ "text-align": toCssVar(`$textAlign${subject}`),
11422
+ "text-align-last": toCssVar(`$textAlignLast${subject}`),
11423
+ "word-break": toCssVar(`$wordBreak${subject}`),
11424
+ "word-wrap": toCssVar(`$wordWrap${subject}`),
11425
+ direction: toCssVar(`$direction${subject}`),
11426
+ "writing-mode": toCssVar(`$writingMode${subject}`),
11427
+ "line-break": toCssVar(`$lineBreak${subject}`)
11428
+ };
11429
+ return cssInput;
11430
+ },
11431
+ [isCustomVariant, variant]
11432
+ );
11433
+ const customVariantClassName = useComponentStyle(variantSpec);
11434
+ useEffect(() => {
11435
+ if (isCustomVariant && variant && customVariantClassName) {
11436
+ if (!hasCustomVariantCache(variant)) {
11437
+ setCustomVariantCache(variant, {
11438
+ className: customVariantClassName,
11439
+ cssText: ""
11440
+ // Will be populated when CSS generation is implemented
11441
+ });
11442
+ }
11443
+ }
11444
+ }, [isCustomVariant, variant, customVariantClassName]);
10844
11445
  const overflowClasses = useMemo(() => {
10845
11446
  const classes = {};
10846
11447
  if (!overflowMode) {
@@ -10896,7 +11497,8 @@ const Text = forwardRef(function Text2({
10896
11497
  className: classnames(
10897
11498
  syntaxHighlightClasses,
10898
11499
  styles$13.text,
10899
- styles$13[variant || "default"],
11500
+ // Use custom variant className if it's a custom variant, otherwise use predefined variant style
11501
+ isCustomVariant ? customVariantClassName : styles$13[variant || "default"],
10900
11502
  {
10901
11503
  [styles$13.preserveLinebreaks]: preserveLinebreaks2,
10902
11504
  ...overflowClasses,
@@ -10923,7 +11525,7 @@ const TextMd = createMetadata({
10923
11525
  `The text to be displayed. This value can also be set via nesting the text into the \`${COMP$1n}\` component.`
10924
11526
  ),
10925
11527
  variant: {
10926
- description: "An optional string value that provides named presets for text variants with a unique combination of font style, weight, size, color, and other parameters. If not defined, the text uses the current style of its context.",
11528
+ description: "An optional string value that provides named presets for text variants with a unique combination of font style, weight, size, color, and other parameters. If not defined, the text uses the current style of its context. In addition to predefined variants, you can specify custom variant names and style them using theme variables with the pattern `{cssProperty}-Text-{variantName}` (e.g., `textColor-Text-brandTitle`, `fontSize-Text-highlight`). See the documentation for a complete list of supported CSS properties.",
10927
11529
  availableValues: variantOptionsMd
10928
11530
  },
10929
11531
  maxLines: d(
@@ -11125,8 +11727,8 @@ const showInHeader = "_showInHeader_1ylgd_138";
11125
11727
  const selected$1 = "_selected_1ylgd_142";
11126
11728
  const allSelected = "_allSelected_1ylgd_142";
11127
11729
  const cellContent = "_cellContent_1ylgd_173";
11128
- const focused$1 = "_focused_1ylgd_200";
11129
- const disabled$7 = "_disabled_1ylgd_212";
11730
+ const focused$2 = "_focused_1ylgd_200";
11731
+ const disabled$8 = "_disabled_1ylgd_212";
11130
11732
  const noBottomBorder = "_noBottomBorder_1ylgd_219";
11131
11733
  const noRows$1 = "_noRows_1ylgd_244";
11132
11734
  const loadingWrapper$1 = "_loadingWrapper_1ylgd_283";
@@ -11154,8 +11756,8 @@ const styles$12 = {
11154
11756
  selected: selected$1,
11155
11757
  allSelected,
11156
11758
  cellContent,
11157
- focused: focused$1,
11158
- disabled: disabled$7,
11759
+ focused: focused$2,
11760
+ disabled: disabled$8,
11159
11761
  noBottomBorder,
11160
11762
  noRows: noRows$1,
11161
11763
  loadingWrapper: loadingWrapper$1,
@@ -11334,350 +11936,6 @@ function matchThemeVar(themeVar, availableThemeVars = []) {
11334
11936
  from
11335
11937
  };
11336
11938
  }
11337
- const THEME_VAR_PREFIX = "xmlui";
11338
- const themeVarCapturesRegex = /(\$[a-zA-Z][a-zA-Z0-9-_]*)/g;
11339
- const booleanRegex = /^(true|false)$/;
11340
- const starSizeRegex = /^\d*\*$/;
11341
- const defaultCompResult = {
11342
- cssProps: {},
11343
- issues: /* @__PURE__ */ new Set()
11344
- };
11345
- function resolveLayoutProps(layoutProps = EMPTY_OBJECT, layoutContext) {
11346
- const result = {
11347
- cssProps: {},
11348
- issues: /* @__PURE__ */ new Set()
11349
- };
11350
- if (!!getOrientation(layoutContext)) {
11351
- result.cssProps.flexShrink = 0;
11352
- }
11353
- collectCss("width");
11354
- const horizontalStarSize = getHorizontalStarSize(result.cssProps.width, layoutContext);
11355
- if (horizontalStarSize !== null) {
11356
- result.cssProps.flex = horizontalStarSize;
11357
- result.cssProps.flexShrink = 1;
11358
- }
11359
- collectCss("minWidth");
11360
- collectCss("maxWidth");
11361
- collectCss("height");
11362
- const verticalStarSize = getVerticalStarSize(result.cssProps.height, layoutContext);
11363
- if (verticalStarSize !== null) {
11364
- result.cssProps.flex = verticalStarSize;
11365
- result.cssProps.flexShrink = 1;
11366
- }
11367
- collectCss("minHeight");
11368
- collectCss("maxHeight");
11369
- collectCss("top");
11370
- collectCss("right");
11371
- collectCss("bottom");
11372
- collectCss("left");
11373
- collectCss("gap");
11374
- collectCss("padding");
11375
- const paddingHorizontal = transformLayoutValue("paddingHorizontal");
11376
- if (paddingHorizontal) {
11377
- result.cssProps.paddingLeft = paddingHorizontal;
11378
- result.cssProps.paddingRight = paddingHorizontal;
11379
- }
11380
- collectCss("paddingRight");
11381
- collectCss("paddingLeft");
11382
- const paddingVertical = transformLayoutValue("paddingVertical");
11383
- if (paddingVertical) {
11384
- result.cssProps.paddingTop = paddingVertical;
11385
- result.cssProps.paddingBottom = paddingVertical;
11386
- }
11387
- collectCss("paddingTop");
11388
- collectCss("paddingBottom");
11389
- collectCss("margin");
11390
- const marginHorizontal = transformLayoutValue("marginHorizontal");
11391
- if (marginHorizontal) {
11392
- result.cssProps.marginLeft = marginHorizontal;
11393
- result.cssProps.marginRight = marginHorizontal;
11394
- }
11395
- collectCss("marginRight");
11396
- collectCss("marginLeft");
11397
- const marginVertical = transformLayoutValue("marginVertical");
11398
- if (marginVertical) {
11399
- result.cssProps.marginTop = marginVertical;
11400
- result.cssProps.marginBottom = marginVertical;
11401
- }
11402
- collectCss("marginTop");
11403
- collectCss("marginBottom");
11404
- collectCss("border");
11405
- const horizontalBorder = transformLayoutValue("borderHorizontal");
11406
- if (horizontalBorder) {
11407
- result.cssProps.borderLeft = horizontalBorder;
11408
- result.cssProps.borderRight = horizontalBorder;
11409
- }
11410
- collectCss("borderRight");
11411
- collectCss("borderLeft");
11412
- const verticalBorder = transformLayoutValue("borderVertical");
11413
- if (verticalBorder) {
11414
- result.cssProps.borderTop = verticalBorder;
11415
- result.cssProps.borderBottom = verticalBorder;
11416
- }
11417
- collectCss("borderTop");
11418
- collectCss("borderBottom");
11419
- collectCss("borderColor");
11420
- collectCss("borderStyle");
11421
- collectCss("borderWidth");
11422
- collectCss("borderRadius");
11423
- collectCss("radiusTopLeft", "borderTopLeftRadius");
11424
- collectCss("radiusTopRight", "borderTopRightRadius");
11425
- collectCss("radiusBottomLeft", "borderBottomLeftRadius");
11426
- collectCss("radiusBottomRight", "borderBottomRightRadius");
11427
- collectCss("color");
11428
- collectCss("fontFamily");
11429
- collectCss("fontSize");
11430
- collectCss("fontWeight");
11431
- collectCss("fontStyle");
11432
- collectCss("fontVariant");
11433
- collectCss("lineBreak");
11434
- collectCss("textDecoration");
11435
- collectCss("textDecorationLine");
11436
- collectCss("textDecorationColor");
11437
- collectCss("textDecorationStyle");
11438
- collectCss("textDecorationThickness");
11439
- collectCss("textIndent");
11440
- collectCss("textShadow");
11441
- collectCss("textUnderlineOffset");
11442
- collectCss("userSelect");
11443
- collectCss("letterSpacing");
11444
- collectCss("textTransform");
11445
- collectCss("lineHeight");
11446
- collectCss("textAlign");
11447
- collectCss("textAlignLast");
11448
- collectCss("textWrap");
11449
- collectCss("wordBreak");
11450
- collectCss("wordSpacing");
11451
- collectCss("wordWrap");
11452
- collectCss("writingMode");
11453
- collectCss("backgroundColor");
11454
- collectCss("background");
11455
- collectCss("boxShadow");
11456
- collectCss("direction");
11457
- collectCss("overflowX");
11458
- collectCss("overflowY");
11459
- collectCss("zIndex");
11460
- collectCss("opacity");
11461
- collectCss("zoom");
11462
- collectCss("cursor");
11463
- collectCss("whiteSpace");
11464
- collectCss("transform");
11465
- collectCss("outline");
11466
- collectCss("outlineWidth");
11467
- collectCss("outlineColor");
11468
- collectCss("outlineStyle");
11469
- collectCss("outlineOffset");
11470
- const wrapContent = transformLayoutValue("wrapContent");
11471
- if (wrapContent) {
11472
- result.cssProps.flexWrap = wrapContent === "true" ? "wrap" : "nowrap";
11473
- }
11474
- collectCss("canShrink", "flexShrink");
11475
- const canShrink = transformLayoutValue("canShrink");
11476
- if (canShrink) {
11477
- result.cssProps.flexShrink = canShrink === "true" ? 1 : 0;
11478
- }
11479
- if (isEmpty(result.cssProps) && isEmpty(result.issues)) {
11480
- return defaultCompResult;
11481
- }
11482
- return result;
11483
- function transformLayoutValue(prop) {
11484
- var _a2, _b;
11485
- const defValue = resolveSingleValue();
11486
- if (((_a2 = layoutContext == null ? void 0 : layoutContext.mediaSize) == null ? void 0 : _a2.sizeIndex) !== void 0) {
11487
- const sizeIndex = (_b = layoutContext.mediaSize) == null ? void 0 : _b.sizeIndex;
11488
- const xsValue = resolveSingleValue("xs");
11489
- const smValue = resolveSingleValue("sm");
11490
- const mdValue = resolveSingleValue("md");
11491
- const lgValue = resolveSingleValue("lg");
11492
- const xlValue = resolveSingleValue("xl");
11493
- const xxlValue = resolveSingleValue("xxl");
11494
- let mergedValue;
11495
- switch (sizeIndex) {
11496
- case 0:
11497
- mergedValue = xsValue ?? smValue ?? mdValue;
11498
- break;
11499
- case 1:
11500
- mergedValue = smValue ?? mdValue;
11501
- break;
11502
- case 2:
11503
- mergedValue = mdValue;
11504
- break;
11505
- case 3:
11506
- mergedValue = lgValue;
11507
- break;
11508
- case 4:
11509
- mergedValue = xlValue ?? lgValue;
11510
- break;
11511
- case 5:
11512
- mergedValue = xxlValue ?? xlValue ?? lgValue;
11513
- break;
11514
- }
11515
- return mergedValue ?? defValue;
11516
- }
11517
- return defValue;
11518
- function resolveSingleValue(sizeTag = "") {
11519
- const fullProp = sizeTag ? `${prop}-${sizeTag}` : prop;
11520
- let singleInput = layoutProps[fullProp];
11521
- if (singleInput == void 0) {
11522
- return;
11523
- }
11524
- if (typeof singleInput === "string") {
11525
- singleInput = singleInput.trim();
11526
- } else {
11527
- singleInput = singleInput.toString();
11528
- }
11529
- const value = singleInput ? singleInput.replace(
11530
- themeVarCapturesRegex,
11531
- (match) => toCssVar(match.trim())
11532
- ) : void 0;
11533
- if (singleInput !== value) {
11534
- return value;
11535
- }
11536
- const propPatterns = layoutPatterns[prop];
11537
- if (!propPatterns || propPatterns.length === 0) {
11538
- return value;
11539
- }
11540
- for (const pattern of propPatterns) {
11541
- if (pattern.test(value)) {
11542
- return value;
11543
- }
11544
- }
11545
- result.issues.add(fullProp);
11546
- return value;
11547
- }
11548
- }
11549
- function collectCss(prop, propCssName = "") {
11550
- const value = transformLayoutValue(prop);
11551
- if (value) {
11552
- result.cssProps[propCssName || prop] = value;
11553
- }
11554
- }
11555
- function getHorizontalStarSize(size, layoutContext2) {
11556
- if (!size) return null;
11557
- const orientation = getOrientation(layoutContext2);
11558
- return orientation === "horizontal" && starSizeRegex.test(size.toString()) ? getStarSizeNumber(size.toString()) : null;
11559
- }
11560
- function getVerticalStarSize(size, layoutContext2) {
11561
- if (!size) return null;
11562
- const orientation = getOrientation(layoutContext2);
11563
- return orientation === "vertical" && starSizeRegex.test(size.toString()) ? getStarSizeNumber(size.toString()) : null;
11564
- }
11565
- function getStarSizeNumber(input2) {
11566
- if (starSizeRegex.test(input2)) {
11567
- const numberPart = input2.slice(0, -1);
11568
- return numberPart === "" ? 1 : parseInt(numberPart, 10);
11569
- }
11570
- return null;
11571
- }
11572
- function getOrientation(layoutContext2) {
11573
- if (!layoutContext2) return;
11574
- let orientation = (layoutContext2 == null ? void 0 : layoutContext2.type) === "Stack" && (layoutContext2 == null ? void 0 : layoutContext2.orientation);
11575
- return orientation == null ? void 0 : orientation.toString();
11576
- }
11577
- }
11578
- function toCssVar(c) {
11579
- return `var(--${THEME_VAR_PREFIX}-${c.substring(1)})`;
11580
- }
11581
- const layoutPatterns = {
11582
- // --- Dimensions
11583
- width: [],
11584
- minWidth: [],
11585
- maxWidth: [],
11586
- height: [],
11587
- minHeight: [],
11588
- maxHeight: [],
11589
- gap: [],
11590
- // --- Positions
11591
- top: [],
11592
- right: [],
11593
- bottom: [],
11594
- left: [],
11595
- // --- Border
11596
- border: [],
11597
- borderTop: [],
11598
- borderRight: [],
11599
- borderBottom: [],
11600
- borderLeft: [],
11601
- borderColor: [],
11602
- borderStyle: [],
11603
- borderWidth: [],
11604
- borderHorizontal: [],
11605
- borderVertical: [],
11606
- // --- Border radius
11607
- borderRadius: [],
11608
- radiusTopLeft: [],
11609
- radiusTopRight: [],
11610
- radiusBottomLeft: [],
11611
- radiusBottomRight: [],
11612
- // --- Padding
11613
- padding: [],
11614
- paddingHorizontal: [],
11615
- paddingVertical: [],
11616
- paddingTop: [],
11617
- paddingRight: [],
11618
- paddingBottom: [],
11619
- paddingLeft: [],
11620
- // --- Margin
11621
- margin: [],
11622
- marginHorizontal: [],
11623
- marginVertical: [],
11624
- marginTop: [],
11625
- marginRight: [],
11626
- marginBottom: [],
11627
- marginLeft: [],
11628
- // --- Other
11629
- backgroundColor: [],
11630
- background: [],
11631
- boxShadow: [],
11632
- direction: [],
11633
- overflowX: [],
11634
- overflowY: [],
11635
- zIndex: [],
11636
- opacity: [],
11637
- // --- Typography
11638
- color: [],
11639
- fontFamily: [],
11640
- fontSize: [],
11641
- fontWeight: [],
11642
- fontStyle: [booleanRegex],
11643
- fontVariant: [],
11644
- lineBreak: [],
11645
- textDecoration: [],
11646
- userSelect: [],
11647
- letterSpacing: [],
11648
- textTransform: [],
11649
- lineHeight: [],
11650
- textAlign: [],
11651
- textWrap: [],
11652
- textAlignLast: [],
11653
- textIndent: [],
11654
- textShadow: [],
11655
- wordBreak: [],
11656
- wordSpacing: [],
11657
- wordWrap: [],
11658
- writingMode: [],
11659
- // --- Content rendering
11660
- wrapContent: [],
11661
- canShrink: [],
11662
- // --- Other
11663
- cursor: [],
11664
- zoom: [],
11665
- whiteSpace: [],
11666
- textDecorationLine: [],
11667
- textDecorationColor: [],
11668
- textDecorationStyle: [],
11669
- textDecorationThickness: [],
11670
- textUnderlineOffset: [],
11671
- transform: [],
11672
- // --- Outline
11673
- outline: [],
11674
- outlineWidth: [],
11675
- outlineColor: [],
11676
- outlineStyle: [],
11677
- outlineOffset: [],
11678
- // --- Animation
11679
- transition: []
11680
- };
11681
11939
  function isThemeVarName(varName) {
11682
11940
  return typeof varName === "string" && (varName == null ? void 0 : varName.startsWith("$"));
11683
11941
  }
@@ -12621,14 +12879,7 @@ function useRowSelection({
12621
12879
  lastUpdateSourceRef.current = "table";
12622
12880
  (_a3 = syncWithAppState.update) == null ? void 0 : _a3.call(syncWithAppState, { selectedIds: currentSelectionIds });
12623
12881
  }
12624
- }, [
12625
- selectedItems,
12626
- syncWithAppState,
12627
- appStateSelection,
12628
- idKey,
12629
- rowsSelectable,
12630
- syncState
12631
- ]);
12882
+ }, [selectedItems, syncWithAppState, appStateSelection, idKey, rowsSelectable, syncState]);
12632
12883
  useEffect(() => {
12633
12884
  if (syncState !== "idle") {
12634
12885
  const resetTimer = requestAnimationFrame(() => {
@@ -12807,7 +13058,7 @@ function useRowSelection({
12807
13058
  }
12808
13059
  });
12809
13060
  useEffect(() => {
12810
- onSelectionDidChange == null ? void 0 : onSelectionDidChange(selectedItems);
13061
+ void (onSelectionDidChange == null ? void 0 : onSelectionDidChange(selectedItems));
12811
13062
  }, [selectedItems, onSelectionDidChange]);
12812
13063
  const checkAllRows = useEvent((checked) => {
12813
13064
  if (!rowsSelectable) {
@@ -13212,7 +13463,6 @@ const PaginationNative = forwardRef(function PaginationNative2({
13212
13463
  style: style2,
13213
13464
  className,
13214
13465
  labelPosition: orientation === "vertical" ? "top" : "start",
13215
- isInputTemplateUsed: true,
13216
13466
  children: /* @__PURE__ */ jsx(
13217
13467
  "select",
13218
13468
  {
@@ -14696,10 +14946,10 @@ const avatarComponentRenderer = createComponentRenderer(
14696
14946
  );
14697
14947
  }
14698
14948
  );
14699
- const themeVars$C = `'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)"}'`;
14700
- const separator = "_separator_k49rs_14";
14701
- const horizontal$3 = "_horizontal_k49rs_17";
14702
- const vertical$3 = "_vertical_k49rs_21";
14949
+ const themeVars$C = `'{"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)"}'`;
14950
+ const separator = "_separator_13z1k_14";
14951
+ const horizontal$3 = "_horizontal_13z1k_21";
14952
+ const vertical$3 = "_vertical_13z1k_25";
14703
14953
  const styles$Y = {
14704
14954
  themeVars: themeVars$C,
14705
14955
  separator,
@@ -14753,6 +15003,8 @@ const ContentSeparatorMd = createMetadata({
14753
15003
  defaultThemeVars: {
14754
15004
  [`backgroundColor-${COMP$1h}`]: "$color-surface-200",
14755
15005
  [`size-${COMP$1h}`]: "1px",
15006
+ [`marginVertical-${COMP$1h}`]: "0",
15007
+ [`marginHorizontal-${COMP$1h}`]: "0",
14756
15008
  light: {
14757
15009
  // --- No light-specific theme vars
14758
15010
  },
@@ -15129,14 +15381,15 @@ const flowLayoutComponentRenderer = createComponentRenderer(
15129
15381
  }
15130
15382
  );
15131
15383
  const themeVars$z = `'{"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)"}'`;
15132
- const overlay$2 = "_overlay_r7ppn_14";
15133
- const fullScreen = "_fullScreen_r7ppn_22";
15134
- const content$5 = "_content_r7ppn_28";
15135
- const overlayBg$1 = "_overlayBg_r7ppn_37";
15136
- const nested = "_nested_r7ppn_43";
15137
- const dialogTitle = "_dialogTitle_r7ppn_78";
15138
- const innerContent = "_innerContent_r7ppn_83";
15139
- const closeButton = "_closeButton_r7ppn_108";
15384
+ const overlay$2 = "_overlay_do4x4_14";
15385
+ const fullScreen = "_fullScreen_do4x4_22";
15386
+ const content$5 = "_content_do4x4_28";
15387
+ const overlayBg$1 = "_overlayBg_do4x4_37";
15388
+ const nested = "_nested_do4x4_43";
15389
+ const contentAnimation = "_contentAnimation_do4x4_74";
15390
+ const dialogTitle = "_dialogTitle_do4x4_80";
15391
+ const innerContent = "_innerContent_do4x4_85";
15392
+ const closeButton = "_closeButton_do4x4_110";
15140
15393
  const styles$V = {
15141
15394
  themeVars: themeVars$z,
15142
15395
  overlay: overlay$2,
@@ -15144,6 +15397,7 @@ const styles$V = {
15144
15397
  content: content$5,
15145
15398
  overlayBg: overlayBg$1,
15146
15399
  nested,
15400
+ contentAnimation,
15147
15401
  dialogTitle,
15148
15402
  innerContent,
15149
15403
  closeButton
@@ -15253,6 +15507,7 @@ const ModalDialog = React__default.forwardRef(
15253
15507
  className,
15254
15508
  onOpen,
15255
15509
  onClose,
15510
+ externalAnimation = true,
15256
15511
  ...rest
15257
15512
  }, ref) => {
15258
15513
  const { root: root2 } = useTheme();
@@ -15301,7 +15556,13 @@ const ModalDialog = React__default.forwardRef(
15301
15556
  {
15302
15557
  ...rest,
15303
15558
  "data-part-id": PART_CONTENT,
15304
- className: classnames(styles$V.content, className),
15559
+ className: classnames(
15560
+ {
15561
+ [styles$V.contentAnimation]: !externalAnimation
15562
+ },
15563
+ styles$V.content,
15564
+ className
15565
+ ),
15305
15566
  onPointerDownOutside: (event) => {
15306
15567
  if (event.target instanceof Element && (event.target.closest("._debug-inspect-button") !== null || event.target.localName === "com-1password-button")) {
15307
15568
  event.preventDefault();
@@ -15462,6 +15723,7 @@ const modalViewComponentRenderer = createComponentRenderer(
15462
15723
  fullScreen: extractValue.asOptionalBoolean((_a2 = node.props) == null ? void 0 : _a2.fullScreen),
15463
15724
  title: extractValue((_b = node.props) == null ? void 0 : _b.title),
15464
15725
  closeButtonVisible: extractValue.asOptionalBoolean(node.props.closeButtonVisible),
15726
+ externalAnimation: extractValue.asOptionalBoolean(node.props.externalAnimation),
15465
15727
  children: renderChild2(node.children, { type: "Stack" })
15466
15728
  }
15467
15729
  );
@@ -15580,7 +15842,7 @@ const FileUploadDropZone = forwardRef(function FileUploadDropZone2({
15580
15842
  }, forwardedRef) {
15581
15843
  const accept = acceptedFileTypes ? acceptedFileTypes.split(",").reduce((acc, type) => ({ ...acc, [type.trim()]: [] }), {}) : void 0;
15582
15844
  const onDrop = useCallback(
15583
- async (acceptedFiles) => {
15845
+ (acceptedFiles) => {
15584
15846
  if (!acceptedFiles.length) {
15585
15847
  return;
15586
15848
  }
@@ -15780,7 +16042,6 @@ const IFrame = memo(forwardRef(function IFrame2({
15780
16042
  ...rest
15781
16043
  }, ref) {
15782
16044
  const iframeRef = useRef(null);
15783
- useImperativeHandle(ref, () => iframeRef.current, []);
15784
16045
  useEffect(() => {
15785
16046
  registerComponentApi == null ? void 0 : registerComponentApi({
15786
16047
  postMessage: (message, targetOrigin = "*") => {
@@ -16823,7 +17084,7 @@ function Queue({
16823
17084
  return;
16824
17085
  }
16825
17086
  let queueItem = queue[0];
16826
- (async () => {
17087
+ void (async () => {
16827
17088
  await doSingle(queueItem);
16828
17089
  })();
16829
17090
  }, [doComplete, doSingle, prevQueue, queue]);
@@ -17323,26 +17584,26 @@ const ListNative = forwardRef(function DynamicHeightList({
17323
17584
  const tryToFetchPrevPage = useCallback(() => {
17324
17585
  if (virtualizerRef.current && virtualizerRef.current.findStartIndex() < 10 && pageInfo && pageInfo.hasPrevPage && !pageInfo.isFetchingPrevPage && !isFetchingPrevPage.current) {
17325
17586
  isFetchingPrevPage.current = true;
17326
- (async function doFetch() {
17587
+ void async function doFetch() {
17327
17588
  try {
17328
17589
  await requestFetchPrevPage();
17329
17590
  } finally {
17330
17591
  isFetchingPrevPage.current = false;
17331
17592
  }
17332
- })();
17593
+ }();
17333
17594
  }
17334
17595
  }, [pageInfo, requestFetchPrevPage]);
17335
17596
  const isFetchingNextPage = useRef(false);
17336
17597
  const tryToFetchNextPage = useCallback(() => {
17337
17598
  if (virtualizerRef.current && virtualizerRef.current.findEndIndex() + 10 > rows.length && pageInfo && pageInfo.hasNextPage && !pageInfo.isFetchingNextPage && !isFetchingNextPage.current) {
17338
17599
  isFetchingNextPage.current = true;
17339
- (async function doFetch() {
17600
+ void async function doFetch() {
17340
17601
  try {
17341
17602
  await requestFetchNextPage();
17342
17603
  } finally {
17343
17604
  isFetchingNextPage.current = false;
17344
17605
  }
17345
- })();
17606
+ }();
17346
17607
  }
17347
17608
  }, [rows.length, pageInfo, requestFetchNextPage]);
17348
17609
  const initiallyFetchedExtraPages = useRef(false);
@@ -18247,7 +18508,7 @@ function useValidation(validations, onValidate, value, dispatch, bindTo, throttl
18247
18508
  if (!ignore) {
18248
18509
  dispatch(fieldValidated(bindTo, partialResult));
18249
18510
  if (partialResult.partial) {
18250
- (async () => {
18511
+ void (async () => {
18251
18512
  const result = await throttledAsyncValidate(validations, onValidate, deferredValue);
18252
18513
  if (!ignore) {
18253
18514
  dispatch(fieldValidated(bindTo, result));
@@ -18263,7 +18524,7 @@ function useValidation(validations, onValidate, value, dispatch, bindTo, throttl
18263
18524
  );
18264
18525
  }
18265
18526
  function useValidationDisplay(bindTo, value, validationResult, validationMode = defaultValidationMode) {
18266
- const interactionFlags = useFormContextPart((value2) => value2.interactionFlags[bindTo]) || EMPTY_OBJECT;
18527
+ const interactionFlags = useFormContextPart((value2) => value2 == null ? void 0 : value2.interactionFlags[bindTo]) || EMPTY_OBJECT;
18267
18528
  const forceShowValidationResult = interactionFlags.forceShowValidationResult;
18268
18529
  const focused2 = interactionFlags.focused;
18269
18530
  const afterFirstDirtyBlur = interactionFlags.afterFirstDirtyBlur;
@@ -20249,62 +20510,99 @@ function useLongPress(elementRef, action2, delay2 = 500) {
20249
20510
  };
20250
20511
  }, [elementRef, action2, delay2]);
20251
20512
  }
20252
- const themeVars$o = `'{"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)"}'`;
20253
- const selectValue = "_selectValue_11axh_14";
20254
- const error$9 = "_error_11axh_22";
20255
- const warning$a = "_warning_11axh_30";
20256
- const valid$9 = "_valid_11axh_38";
20257
- const selectTrigger = "_selectTrigger_11axh_46";
20258
- const badgeListContainer = "_badgeListContainer_11axh_175";
20259
- const badgeList$1 = "_badgeList_11axh_175";
20260
- const badge$1 = "_badge_11axh_175";
20261
- const actions$1 = "_actions_11axh_212";
20262
- const placeholder$1 = "_placeholder_11axh_217";
20263
- const emptyList = "_emptyList_11axh_221";
20264
- const selectScrollUpButton = "_selectScrollUpButton_11axh_230";
20265
- const selectScrollDownButton = "_selectScrollDownButton_11axh_238";
20266
- const command$1 = "_command_11axh_246";
20267
- const commandInputContainer = "_commandInputContainer_11axh_255";
20268
- const commandInput$1 = "_commandInput_11axh_255";
20269
- const commandList$1 = "_commandList_11axh_278";
20270
- const selectContent = "_selectContent_11axh_282";
20271
- const fadeIn = "_fadeIn_11axh_1";
20272
- const zoomIn = "_zoomIn_11axh_1";
20273
- const fadeOut = "_fadeOut_11axh_1";
20274
- const zoomOut = "_zoomOut_11axh_1";
20275
- const slideInFromTop = "_slideInFromTop_11axh_1";
20276
- const slideInFromRight = "_slideInFromRight_11axh_1";
20277
- const slideInFromLeft = "_slideInFromLeft_11axh_1";
20278
- const slideInFromBottom = "_slideInFromBottom_11axh_1";
20279
- const multiComboboxOption = "_multiComboboxOption_11axh_323";
20280
- const multiComboboxOptionContent = "_multiComboboxOptionContent_11axh_323";
20281
- const selectItem = "_selectItem_11axh_347";
20282
- const selectItemContent = "_selectItemContent_11axh_362";
20283
- const selectItemIndicator = "_selectItemIndicator_11axh_381";
20284
- const selectViewport = "_selectViewport_11axh_391";
20285
- const selectEmpty = "_selectEmpty_11axh_396";
20286
- const loading = "_loading_11axh_406";
20287
- const srOnly = "_srOnly_11axh_409";
20513
+ const SelectContext = createContext({
20514
+ value: null,
20515
+ onChange: (selectedValue) => {
20516
+ },
20517
+ setOpen: (open) => {
20518
+ },
20519
+ setSelectedIndex: (index) => {
20520
+ },
20521
+ options: /* @__PURE__ */ new Set(),
20522
+ optionRenderer: void 0
20523
+ });
20524
+ function useSelect() {
20525
+ return useContext(SelectContext);
20526
+ }
20527
+ const OptionContext = createContext({
20528
+ onOptionAdd: () => {
20529
+ },
20530
+ onOptionRemove: () => {
20531
+ }
20532
+ });
20533
+ function useOption() {
20534
+ return useContext(OptionContext);
20535
+ }
20536
+ const themeVars$o = `'{"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)"}'`;
20537
+ const selectTrigger = "_selectTrigger_1v71t_17";
20538
+ const error$9 = "_error_1v71t_54";
20539
+ const warning$a = "_warning_1v71t_80";
20540
+ const valid$9 = "_valid_1v71t_106";
20541
+ const disabled$7 = "_disabled_1v71t_132";
20542
+ const focused$1 = "_focused_1v71t_139";
20543
+ const placeholder$1 = "_placeholder_1v71t_145";
20544
+ const actions$1 = "_actions_1v71t_162";
20545
+ const action$1 = "_action_1v71t_162";
20546
+ const emptyList = "_emptyList_1v71t_173";
20547
+ const badgeListContainer = "_badgeListContainer_1v71t_185";
20548
+ const badgeList$1 = "_badgeList_1v71t_185";
20549
+ const inputWrapper$1 = "_inputWrapper_1v71t_198";
20550
+ const badge$1 = "_badge_1v71t_185";
20551
+ const selectContent = "_selectContent_1v71t_233";
20552
+ const command$1 = "_command_1v71t_241";
20553
+ const commandInputContainer = "_commandInputContainer_1v71t_246";
20554
+ const commandInput$1 = "_commandInput_1v71t_246";
20555
+ const commandList$1 = "_commandList_1v71t_265";
20556
+ const multiSelectOption = "_multiSelectOption_1v71t_272";
20557
+ const multiSelectOptionContent = "_multiSelectOptionContent_1v71t_286";
20558
+ const highlighted$1 = "_highlighted_1v71t_295";
20559
+ const disabledOption$1 = "_disabledOption_1v71t_301";
20560
+ const selectValue = "_selectValue_1v71t_316";
20561
+ const selectDropdownContent = "_selectDropdownContent_1v71t_331";
20562
+ const fadeIn = "_fadeIn_1v71t_1";
20563
+ const zoomIn = "_zoomIn_1v71t_1";
20564
+ const fadeOut = "_fadeOut_1v71t_1";
20565
+ const zoomOut = "_zoomOut_1v71t_1";
20566
+ const slideInFromTop = "_slideInFromTop_1v71t_1";
20567
+ const slideInFromRight = "_slideInFromRight_1v71t_1";
20568
+ const slideInFromLeft = "_slideInFromLeft_1v71t_1";
20569
+ const slideInFromBottom = "_slideInFromBottom_1v71t_1";
20570
+ const selectViewport = "_selectViewport_1v71t_364";
20571
+ const selectScrollUpButton = "_selectScrollUpButton_1v71t_368";
20572
+ const selectScrollDownButton = "_selectScrollDownButton_1v71t_376";
20573
+ const selectEmpty = "_selectEmpty_1v71t_384";
20574
+ const selectOption = "_selectOption_1v71t_397";
20575
+ const selectOptionContent = "_selectOptionContent_1v71t_420";
20576
+ const selectOptionIndicator = "_selectOptionIndicator_1v71t_434";
20577
+ const loading = "_loading_1v71t_444";
20578
+ const srOnly = "_srOnly_1v71t_447";
20288
20579
  const styles$J = {
20289
20580
  themeVars: themeVars$o,
20290
- selectValue,
20581
+ selectTrigger,
20291
20582
  error: error$9,
20292
20583
  warning: warning$a,
20293
20584
  valid: valid$9,
20294
- selectTrigger,
20585
+ disabled: disabled$7,
20586
+ focused: focused$1,
20587
+ placeholder: placeholder$1,
20588
+ actions: actions$1,
20589
+ action: action$1,
20590
+ emptyList,
20295
20591
  badgeListContainer,
20296
20592
  badgeList: badgeList$1,
20593
+ inputWrapper: inputWrapper$1,
20297
20594
  badge: badge$1,
20298
- actions: actions$1,
20299
- placeholder: placeholder$1,
20300
- emptyList,
20301
- selectScrollUpButton,
20302
- selectScrollDownButton,
20595
+ selectContent,
20303
20596
  command: command$1,
20304
20597
  commandInputContainer,
20305
20598
  commandInput: commandInput$1,
20306
20599
  commandList: commandList$1,
20307
- selectContent,
20600
+ multiSelectOption,
20601
+ multiSelectOptionContent,
20602
+ highlighted: highlighted$1,
20603
+ disabledOption: disabledOption$1,
20604
+ selectValue,
20605
+ selectDropdownContent,
20308
20606
  fadeIn,
20309
20607
  zoomIn,
20310
20608
  fadeOut,
@@ -20313,20 +20611,67 @@ const styles$J = {
20313
20611
  slideInFromRight,
20314
20612
  slideInFromLeft,
20315
20613
  slideInFromBottom,
20316
- multiComboboxOption,
20317
- multiComboboxOptionContent,
20318
- selectItem,
20319
- selectItemContent,
20320
- selectItemIndicator,
20321
20614
  selectViewport,
20615
+ selectScrollUpButton,
20616
+ selectScrollDownButton,
20322
20617
  selectEmpty,
20618
+ selectOption,
20619
+ selectOptionContent,
20620
+ selectOptionIndicator,
20323
20621
  loading,
20324
20622
  srOnly
20325
20623
  };
20326
- const SelectContext = createContext(null);
20327
- function useSelect() {
20328
- return useContext(SelectContext);
20329
- }
20624
+ const SelectOption = forwardRef(
20625
+ function SelectOption2(option, ref) {
20626
+ const visibleContentRef = useRef(null);
20627
+ const { value, label: label2, enabled: enabled2 = true, children, className } = option;
20628
+ const { value: selectedValue, optionRenderer } = useSelect();
20629
+ const { onOptionRemove, onOptionAdd } = useOption();
20630
+ const opt = useMemo(() => {
20631
+ return {
20632
+ ...option,
20633
+ label: label2 ?? "",
20634
+ keywords: [label2 ?? ""]
20635
+ };
20636
+ }, [option, label2]);
20637
+ useEffect(() => {
20638
+ onOptionAdd(opt);
20639
+ return () => onOptionRemove(opt);
20640
+ }, [opt, onOptionAdd, onOptionRemove]);
20641
+ return /* @__PURE__ */ jsxs(
20642
+ Item$1,
20643
+ {
20644
+ ref,
20645
+ className: classnames(className, styles$J.selectOption),
20646
+ value,
20647
+ textValue: label2,
20648
+ disabled: !enabled2,
20649
+ onClick: (event) => {
20650
+ event.stopPropagation();
20651
+ },
20652
+ "data-state": selectedValue === value && "checked",
20653
+ children: [
20654
+ /* @__PURE__ */ jsx("span", { style: { display: "none" }, children: /* @__PURE__ */ jsx(ItemText, { children: label2 }) }),
20655
+ children ? /* @__PURE__ */ jsxs(Fragment, { children: [
20656
+ /* @__PURE__ */ jsx("div", { className: styles$J.selectOptionContent, ref: visibleContentRef, children }),
20657
+ selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$J.selectOptionIndicator, children: /* @__PURE__ */ jsx(Icon, { name: "checkmark" }) })
20658
+ ] }) : optionRenderer ? /* @__PURE__ */ jsx("div", { className: styles$J.selectOptionContent, ref: visibleContentRef, children: optionRenderer(
20659
+ {
20660
+ label: label2,
20661
+ value,
20662
+ enabled: enabled2
20663
+ },
20664
+ selectedValue,
20665
+ false
20666
+ ) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
20667
+ /* @__PURE__ */ jsx("div", { className: styles$J.selectOptionContent, ref: visibleContentRef, children: label2 }),
20668
+ selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$J.selectItemIndicator, children: /* @__PURE__ */ jsx(Icon, { name: "checkmark" }) })
20669
+ ] })
20670
+ ]
20671
+ }
20672
+ );
20673
+ }
20674
+ );
20330
20675
  const OptionTypeContext = React__default.createContext(null);
20331
20676
  function useOptionType() {
20332
20677
  return React__default.useContext(OptionTypeContext);
@@ -20337,15 +20682,6 @@ function OptionTypeProvider({
20337
20682
  }) {
20338
20683
  return /* @__PURE__ */ jsx(OptionTypeContext.Provider, { value: Component, children });
20339
20684
  }
20340
- const OptionContext = createContext({
20341
- onOptionAdd: () => {
20342
- },
20343
- onOptionRemove: () => {
20344
- }
20345
- });
20346
- function useOption() {
20347
- return useContext(OptionContext);
20348
- }
20349
20685
  function HiddenOption(option) {
20350
20686
  const { label: label2 } = option;
20351
20687
  const { onOptionRemove, onOptionAdd } = useOption();
@@ -20364,18 +20700,6 @@ function HiddenOption(option) {
20364
20700
  }, [opt, onOptionAdd, onOptionRemove]);
20365
20701
  return /* @__PURE__ */ jsx("div", { ref: (el) => setNode(el), style: { display: "none" }, children: option.children });
20366
20702
  }
20367
- const defaultProps$F = {
20368
- enabled: true,
20369
- placeholder: "",
20370
- autoFocus: false,
20371
- searchable: false,
20372
- multiSelect: false,
20373
- required: false,
20374
- inProgress: false,
20375
- inProgressNotificationMessage: "",
20376
- readOnly: false,
20377
- validationStatus: "none"
20378
- };
20379
20703
  const SimpleSelect = forwardRef(
20380
20704
  function SimpleSelect2(props, forwardedRef) {
20381
20705
  const { root: root2 } = useTheme();
@@ -20441,25 +20765,24 @@ const SimpleSelect = forwardRef(
20441
20765
  "div",
20442
20766
  {
20443
20767
  className: classnames(styles$J.selectValue, {
20444
- [styles$J.selectValue]: value !== void 0,
20445
20768
  [styles$J.placeholder]: value === void 0
20446
20769
  }),
20447
20770
  children: selectedOption ? selectedOption.label : readOnly2 ? "" : placeholder2
20448
20771
  }
20449
20772
  ),
20450
- /* @__PURE__ */ jsx(Icon$1, { asChild: true, children: /* @__PURE__ */ jsx(Icon, { name: "chevrondown" }) })
20773
+ /* @__PURE__ */ jsx("span", { className: styles$J.action, children: /* @__PURE__ */ jsx(Icon, { name: "chevrondown" }) })
20451
20774
  ]
20452
20775
  }
20453
20776
  ),
20454
- /* @__PURE__ */ jsx(Portal$1, { container: root2, children: /* @__PURE__ */ jsxs(
20777
+ /* @__PURE__ */ jsx(Portal, { container: root2, children: /* @__PURE__ */ jsxs(
20455
20778
  Content,
20456
20779
  {
20457
- className: styles$J.selectContent,
20780
+ className: styles$J.selectDropdownContent,
20458
20781
  position: "popper",
20459
20782
  style: { maxHeight: height, minWidth: width },
20460
20783
  children: [
20461
20784
  /* @__PURE__ */ jsx(ScrollUpButton, { className: styles$J.selectScrollUpButton, children: /* @__PURE__ */ jsx(Icon, { name: "chevronup" }) }),
20462
- /* @__PURE__ */ jsxs(SelectViewport, { className: styles$J.selectViewport, role: "listbox", children: [
20785
+ /* @__PURE__ */ jsxs(Viewport, { className: styles$J.selectViewport, role: "listbox", children: [
20463
20786
  children,
20464
20787
  optionsArray.length === 0 && emptyListNode
20465
20788
  ] }),
@@ -20470,6 +20793,148 @@ const SimpleSelect = forwardRef(
20470
20793
  ] });
20471
20794
  }
20472
20795
  );
20796
+ const MultiSelectOption = forwardRef(function MultiSelectOption2(option, forwardedRef) {
20797
+ const id = useId();
20798
+ const {
20799
+ label: label2,
20800
+ value,
20801
+ enabled: enabled2 = true,
20802
+ keywords,
20803
+ readOnly: readOnly2,
20804
+ children,
20805
+ isHighlighted = false,
20806
+ itemIndex
20807
+ } = option;
20808
+ const {
20809
+ value: selectedValue,
20810
+ onChange,
20811
+ multiSelect,
20812
+ setOpen,
20813
+ setSelectedIndex,
20814
+ optionRenderer
20815
+ } = useSelect();
20816
+ const selected2 = useMemo(() => {
20817
+ return Array.isArray(selectedValue) && multiSelect ? selectedValue.map((v) => String(v)).includes(value) : String(selectedValue) === String(value);
20818
+ }, [selectedValue, value, multiSelect]);
20819
+ const handleClick = () => {
20820
+ if (readOnly2) {
20821
+ setOpen(false);
20822
+ return;
20823
+ }
20824
+ if (enabled2) {
20825
+ onChange(value);
20826
+ }
20827
+ };
20828
+ return /* @__PURE__ */ jsx(
20829
+ "div",
20830
+ {
20831
+ id,
20832
+ ref: forwardedRef,
20833
+ role: "option",
20834
+ "aria-disabled": !enabled2,
20835
+ "aria-selected": selected2,
20836
+ className: classnames(styles$J.multiSelectOption, {
20837
+ [styles$J.disabledOption]: !enabled2,
20838
+ [styles$J.highlighted]: isHighlighted
20839
+ }),
20840
+ onMouseDown: (e) => {
20841
+ e.preventDefault();
20842
+ e.stopPropagation();
20843
+ },
20844
+ onMouseEnter: () => {
20845
+ if (itemIndex !== void 0 && setSelectedIndex && enabled2) {
20846
+ setSelectedIndex(itemIndex);
20847
+ }
20848
+ },
20849
+ onClick: handleClick,
20850
+ "data-state": selected2 ? "checked" : void 0,
20851
+ children: /* @__PURE__ */ jsx("div", { className: styles$J.multiSelectOptionContent, children: optionRenderer ? optionRenderer({ label: label2, value, enabled: enabled2, keywords }, selectedValue, false) : /* @__PURE__ */ jsxs(Fragment, { children: [
20852
+ children || label2,
20853
+ selected2 && /* @__PURE__ */ jsx(Icon, { name: "checkmark" })
20854
+ ] }) })
20855
+ }
20856
+ );
20857
+ });
20858
+ const defaultProps$F = {
20859
+ enabled: true,
20860
+ placeholder: "",
20861
+ autoFocus: false,
20862
+ searchable: false,
20863
+ multiSelect: false,
20864
+ required: false,
20865
+ inProgress: false,
20866
+ inProgressNotificationMessage: "",
20867
+ readOnly: false,
20868
+ validationStatus: "none"
20869
+ };
20870
+ const SelectTriggerValue = ({
20871
+ value,
20872
+ placeholder: placeholder2,
20873
+ readOnly: readOnly2,
20874
+ multiSelect,
20875
+ options: options2,
20876
+ valueRenderer,
20877
+ toggleOption
20878
+ }) => {
20879
+ if (multiSelect) {
20880
+ if (Array.isArray(value) && value.length > 0) {
20881
+ return /* @__PURE__ */ jsx("div", { className: styles$J.badgeListContainer, children: /* @__PURE__ */ jsx("div", { className: styles$J.badgeList, children: value.map(
20882
+ (v) => {
20883
+ var _a2;
20884
+ return valueRenderer ? valueRenderer(
20885
+ Array.from(options2).find((o) => o.value === `${v}`),
20886
+ () => {
20887
+ toggleOption(v);
20888
+ }
20889
+ ) : /* @__PURE__ */ jsxs("span", { className: styles$J.badge, children: [
20890
+ (_a2 = Array.from(options2).find((o) => o.value === `${v}`)) == null ? void 0 : _a2.label,
20891
+ /* @__PURE__ */ jsx(
20892
+ Icon,
20893
+ {
20894
+ name: "close",
20895
+ size: "sm",
20896
+ onClick: (event) => {
20897
+ event.stopPropagation();
20898
+ toggleOption(v);
20899
+ }
20900
+ }
20901
+ )
20902
+ ] }, v);
20903
+ }
20904
+ ) }) });
20905
+ }
20906
+ return /* @__PURE__ */ jsx("span", { placeholder: placeholder2, className: styles$J.placeholder, children: placeholder2 });
20907
+ }
20908
+ if (value !== void 0 && value !== null && value !== "") {
20909
+ const selectedOption = Array.from(options2).find((o) => o.value === value);
20910
+ return /* @__PURE__ */ jsx("div", { className: styles$J.selectValue, children: selectedOption == null ? void 0 : selectedOption.label });
20911
+ }
20912
+ return /* @__PURE__ */ jsx("div", { "aria-placeholder": placeholder2, className: styles$J.placeholder, children: readOnly2 ? "" : placeholder2 || "" });
20913
+ };
20914
+ const SelectTriggerActions = ({
20915
+ value,
20916
+ multiSelect,
20917
+ enabled: enabled2,
20918
+ readOnly: readOnly2,
20919
+ clearValue,
20920
+ showChevron = true
20921
+ }) => {
20922
+ const hasValue = multiSelect ? Array.isArray(value) && value.length > 0 : value !== void 0 && value !== null && value !== "";
20923
+ return /* @__PURE__ */ jsxs("div", { className: styles$J.actions, children: [
20924
+ hasValue && enabled2 && !readOnly2 && /* @__PURE__ */ jsx(
20925
+ "span",
20926
+ {
20927
+ className: styles$J.action,
20928
+ onClick: (event) => {
20929
+ event.stopPropagation();
20930
+ clearValue();
20931
+ },
20932
+ children: /* @__PURE__ */ jsx(Icon, { name: "close" })
20933
+ }
20934
+ ),
20935
+ showChevron && /* @__PURE__ */ jsx("span", { className: styles$J.action, children: /* @__PURE__ */ jsx(Icon, { name: "chevrondown" }) })
20936
+ ] });
20937
+ };
20473
20938
  const Select = forwardRef(function Select2({
20474
20939
  // Basic props
20475
20940
  id,
@@ -20505,7 +20970,6 @@ const Select = forwardRef(function Select2({
20505
20970
  children,
20506
20971
  ...rest
20507
20972
  }, forwardedRef) {
20508
- var _a2;
20509
20973
  const [referenceElement, setReferenceElement] = useState(null);
20510
20974
  const [open, setOpen] = useState(false);
20511
20975
  const [width, setWidth] = useState(0);
@@ -20513,22 +20977,40 @@ const Select = forwardRef(function Select2({
20513
20977
  const { root: root2 } = useTheme();
20514
20978
  const [options2, setOptions] = useState(/* @__PURE__ */ new Set());
20515
20979
  const isInForm = useIsInsideForm();
20980
+ const [searchTerm, setSearchTerm] = useState("");
20981
+ const [selectedIndex, setSelectedIndex] = useState(-1);
20982
+ const filteredOptions = useMemo(() => {
20983
+ if (!searchTerm || searchTerm.trim() === "") {
20984
+ return Array.from(options2);
20985
+ }
20986
+ const searchLower = searchTerm.toLowerCase();
20987
+ return Array.from(options2).filter((option) => {
20988
+ const extendedValue = option.value + " " + option.label + " " + (option.keywords || []).join(" ");
20989
+ return extendedValue.toLowerCase().includes(searchLower);
20990
+ });
20991
+ }, [options2, searchTerm]);
20992
+ useEffect(() => {
20993
+ if (!open) {
20994
+ setSelectedIndex(-1);
20995
+ setSearchTerm("");
20996
+ }
20997
+ }, [open]);
20516
20998
  useEffect(() => {
20517
20999
  if (initialValue !== void 0) {
20518
21000
  updateState({ value: initialValue }, { initial: true });
20519
21001
  }
20520
21002
  }, [initialValue, updateState]);
20521
21003
  useEffect(() => {
20522
- var _a3;
21004
+ var _a2;
20523
21005
  const current = referenceElement;
20524
- (_a3 = observer.current) == null ? void 0 : _a3.disconnect();
21006
+ (_a2 = observer.current) == null ? void 0 : _a2.disconnect();
20525
21007
  if (current) {
20526
21008
  observer.current = new ResizeObserver(() => setWidth(current.clientWidth));
20527
21009
  observer.current.observe(current);
20528
21010
  }
20529
21011
  return () => {
20530
- var _a4;
20531
- (_a4 = observer.current) == null ? void 0 : _a4.disconnect();
21012
+ var _a3;
21013
+ (_a3 = observer.current) == null ? void 0 : _a3.disconnect();
20532
21014
  };
20533
21015
  }, [referenceElement]);
20534
21016
  const toggleOption = useCallback(
@@ -20547,6 +21029,84 @@ const Select = forwardRef(function Select2({
20547
21029
  updateState({ value: newValue });
20548
21030
  onDidChange(newValue);
20549
21031
  }, [multiSelect, updateState, onDidChange]);
21032
+ const findNextEnabledIndex = useCallback(
21033
+ (currentIndex) => {
21034
+ for (let i = currentIndex + 1; i < filteredOptions.length; i++) {
21035
+ const item2 = filteredOptions[i];
21036
+ if (item2.enabled !== false) {
21037
+ return i;
21038
+ }
21039
+ }
21040
+ for (let i = 0; i <= currentIndex; i++) {
21041
+ const item2 = filteredOptions[i];
21042
+ if (item2.enabled !== false) {
21043
+ return i;
21044
+ }
21045
+ }
21046
+ return -1;
21047
+ },
21048
+ [filteredOptions]
21049
+ );
21050
+ const findPreviousEnabledIndex = useCallback(
21051
+ (currentIndex) => {
21052
+ for (let i = currentIndex - 1; i >= 0; i--) {
21053
+ const item2 = filteredOptions[i];
21054
+ if (item2.enabled !== false) {
21055
+ return i;
21056
+ }
21057
+ }
21058
+ for (let i = filteredOptions.length - 1; i >= currentIndex; i--) {
21059
+ const item2 = filteredOptions[i];
21060
+ if (item2.enabled !== false) {
21061
+ return i;
21062
+ }
21063
+ }
21064
+ return -1;
21065
+ },
21066
+ [filteredOptions]
21067
+ );
21068
+ const handleKeyDown = useCallback(
21069
+ (event) => {
21070
+ if (!open) return;
21071
+ switch (event.key) {
21072
+ case "ArrowDown":
21073
+ event.preventDefault();
21074
+ setSelectedIndex((prev) => {
21075
+ const nextIndex = findNextEnabledIndex(prev);
21076
+ return nextIndex !== -1 ? nextIndex : prev;
21077
+ });
21078
+ break;
21079
+ case "ArrowUp":
21080
+ event.preventDefault();
21081
+ setSelectedIndex((prev) => {
21082
+ const prevIndex = findPreviousEnabledIndex(prev);
21083
+ return prevIndex !== -1 ? prevIndex : prev;
21084
+ });
21085
+ break;
21086
+ case "Enter":
21087
+ event.preventDefault();
21088
+ if (selectedIndex >= 0 && selectedIndex < filteredOptions.length) {
21089
+ const selectedItem = filteredOptions[selectedIndex];
21090
+ if (selectedItem.enabled !== false) {
21091
+ toggleOption(selectedItem.value);
21092
+ }
21093
+ }
21094
+ break;
21095
+ case "Escape":
21096
+ event.preventDefault();
21097
+ setOpen(false);
21098
+ break;
21099
+ }
21100
+ },
21101
+ [
21102
+ open,
21103
+ selectedIndex,
21104
+ filteredOptions,
21105
+ toggleOption,
21106
+ findNextEnabledIndex,
21107
+ findPreviousEnabledIndex
21108
+ ]
21109
+ );
20550
21110
  const focus = useCallback(() => {
20551
21111
  referenceElement == null ? void 0 : referenceElement.focus();
20552
21112
  }, [referenceElement]);
@@ -20598,14 +21158,15 @@ const Select = forwardRef(function Select2({
20598
21158
  value,
20599
21159
  onChange: toggleOption,
20600
21160
  setOpen,
21161
+ setSelectedIndex,
20601
21162
  options: options2,
20602
21163
  optionRenderer
20603
21164
  }),
20604
- [multiSelect, toggleOption, value, options2]
21165
+ [multiSelect, toggleOption, value, options2, optionRenderer]
20605
21166
  );
20606
21167
  return /* @__PURE__ */ jsx(SelectContext.Provider, { value: selectContextValue, children: /* @__PURE__ */ jsx(OptionContext.Provider, { value: optionContextValue, children: searchable || multiSelect ? /* @__PURE__ */ jsxs(OptionTypeProvider, { Component: HiddenOption, children: [
20607
21168
  /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, modal: false, children: [
20608
- /* @__PURE__ */ jsx(
21169
+ /* @__PURE__ */ jsxs(
20609
21170
  PopoverTrigger,
20610
21171
  {
20611
21172
  ...rest,
@@ -20631,96 +21192,71 @@ const Select = forwardRef(function Select2({
20631
21192
  className
20632
21193
  ),
20633
21194
  autoFocus,
20634
- children: /* @__PURE__ */ jsxs(Fragment, { children: [
20635
- multiSelect ? Array.isArray(value) && value.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$J.badgeListContainer, children: /* @__PURE__ */ jsx("div", { className: styles$J.badgeList, children: value.map(
20636
- (v) => {
20637
- var _a3;
20638
- return valueRenderer ? valueRenderer(
20639
- Array.from(options2).find((o) => o.value === `${v}`),
20640
- () => {
20641
- toggleOption(v);
20642
- }
20643
- ) : /* @__PURE__ */ jsxs("span", { className: styles$J.badge, children: [
20644
- (_a3 = Array.from(options2).find((o) => o.value === `${v}`)) == null ? void 0 : _a3.label,
20645
- /* @__PURE__ */ jsx(
20646
- Icon,
20647
- {
20648
- name: "close",
20649
- size: "sm",
20650
- onClick: (event) => {
20651
- event.stopPropagation();
20652
- toggleOption(v);
20653
- }
20654
- }
20655
- )
20656
- ] }, v);
21195
+ children: [
21196
+ /* @__PURE__ */ jsx(
21197
+ SelectTriggerValue,
21198
+ {
21199
+ value,
21200
+ placeholder: placeholder2,
21201
+ readOnly: readOnly2,
21202
+ multiSelect,
21203
+ options: options2,
21204
+ valueRenderer,
21205
+ toggleOption
20657
21206
  }
20658
- ) }) }) : /* @__PURE__ */ jsx("span", { placeholder: placeholder2, className: styles$J.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$J.placeholder, children: placeholder2 || "" }),
20659
- /* @__PURE__ */ jsxs("div", { className: styles$J.actions, children: [
20660
- multiSelect && Array.isArray(value) && value.length > 0 && /* @__PURE__ */ jsx(
20661
- Icon,
20662
- {
20663
- name: "close",
20664
- onClick: (event) => {
20665
- event.stopPropagation();
20666
- clearValue();
20667
- }
20668
- }
20669
- ),
20670
- /* @__PURE__ */ jsx(Icon, { name: "chevrondown" })
20671
- ] })
20672
- ] })
21207
+ ),
21208
+ /* @__PURE__ */ jsx(
21209
+ SelectTriggerActions,
21210
+ {
21211
+ value,
21212
+ multiSelect,
21213
+ enabled: enabled2,
21214
+ readOnly: readOnly2,
21215
+ clearValue
21216
+ }
21217
+ )
21218
+ ]
20673
21219
  }
20674
21220
  ),
20675
- open && /* @__PURE__ */ jsx(Portal, { container: root2, children: /* @__PURE__ */ jsx(FocusScope, { asChild: true, loop: true, trapped: true, children: /* @__PURE__ */ jsx(
21221
+ open && /* @__PURE__ */ jsx(Portal$1, { container: root2, children: /* @__PURE__ */ jsx(FocusScope, { asChild: true, loop: true, trapped: true, children: /* @__PURE__ */ jsx(
20676
21222
  PopoverContent,
20677
21223
  {
20678
21224
  style: { minWidth: width, height: dropdownHeight },
20679
21225
  className: styles$J.selectContent,
20680
- children: /* @__PURE__ */ jsxs(
20681
- Command,
20682
- {
20683
- className: styles$J.command,
20684
- shouldFilter: searchable,
20685
- filter: (_, search, keywords) => {
20686
- const lowSearch = search.toLowerCase();
20687
- for (const kw of keywords) {
20688
- if (kw.toLowerCase().includes(lowSearch)) return 1;
21226
+ onKeyDown: handleKeyDown,
21227
+ children: /* @__PURE__ */ jsxs("div", { className: styles$J.command, children: [
21228
+ searchable ? /* @__PURE__ */ jsxs("div", { className: styles$J.commandInputContainer, children: [
21229
+ /* @__PURE__ */ jsx(Icon, { name: "search" }),
21230
+ /* @__PURE__ */ jsx(
21231
+ "input",
21232
+ {
21233
+ role: "combobox",
21234
+ className: classnames(styles$J.commandInput),
21235
+ placeholder: "Search...",
21236
+ value: searchTerm,
21237
+ onChange: (e) => setSearchTerm(e.target.value),
21238
+ autoFocus: true
20689
21239
  }
20690
- return 0;
20691
- },
20692
- children: [
20693
- searchable ? /* @__PURE__ */ jsxs("div", { className: styles$J.commandInputContainer, children: [
20694
- /* @__PURE__ */ jsx(Icon, { name: "search" }),
20695
- /* @__PURE__ */ jsx(
20696
- CommandInput,
20697
- {
20698
- className: classnames(styles$J.commandInput),
20699
- placeholder: "Search..."
20700
- }
20701
- )
20702
- ] }) : (
20703
- // https://github.com/pacocoursey/cmdk/issues/322#issuecomment-2444703817
20704
- /* @__PURE__ */ jsx("button", { autoFocus: true, "aria-hidden": "true", className: styles$J.srOnly })
20705
- ),
20706
- /* @__PURE__ */ jsxs(CommandList, { className: styles$J.commandList, children: [
20707
- inProgress && /* @__PURE__ */ jsx("div", { className: styles$J.loading, children: inProgressNotificationMessage }),
20708
- Array.from(options2).map(({ value: value2, label: label2, enabled: enabled22, keywords }) => /* @__PURE__ */ jsx(
20709
- ComboboxOption,
20710
- {
20711
- readOnly: readOnly2,
20712
- value: value2,
20713
- label: label2,
20714
- enabled: enabled22,
20715
- keywords
20716
- },
20717
- value2
20718
- )),
20719
- !inProgress && /* @__PURE__ */ jsx(CommandEmpty, { children: emptyListNode })
20720
- ] })
20721
- ]
20722
- }
20723
- )
21240
+ )
21241
+ ] }) : /* @__PURE__ */ jsx("button", { autoFocus: true, "aria-hidden": "true", className: styles$J.srOnly }),
21242
+ /* @__PURE__ */ jsxs("div", { role: "listbox", className: styles$J.commandList, children: [
21243
+ inProgress && /* @__PURE__ */ jsx("div", { className: styles$J.loading, children: inProgressNotificationMessage }),
21244
+ filteredOptions.map(({ value: value2, label: label2, enabled: enabled22, keywords }, index) => /* @__PURE__ */ jsx(
21245
+ MultiSelectOption,
21246
+ {
21247
+ readOnly: readOnly2,
21248
+ value: value2,
21249
+ label: label2,
21250
+ enabled: enabled22,
21251
+ keywords,
21252
+ isHighlighted: selectedIndex === index,
21253
+ itemIndex: index
21254
+ },
21255
+ value2
21256
+ )),
21257
+ !inProgress && filteredOptions.length === 0 && /* @__PURE__ */ jsx("div", { children: emptyListNode })
21258
+ ] })
21259
+ ] })
20724
21260
  }
20725
21261
  ) }) })
20726
21262
  ] }),
@@ -20751,104 +21287,6 @@ const Select = forwardRef(function Select2({
20751
21287
  children
20752
21288
  ) }) }) });
20753
21289
  });
20754
- const ComboboxOption = forwardRef(function Combobox(option, forwardedRef) {
20755
- const id = useId();
20756
- const { label: label2, value, enabled: enabled2 = true, keywords, readOnly: readOnly2, children } = option;
20757
- const { value: selectedValue, onChange, multiSelect, setOpen, optionRenderer } = useSelect();
20758
- const selected2 = useMemo(() => {
20759
- return Array.isArray(selectedValue) && multiSelect ? selectedValue.map((v) => String(v)).includes(value) : String(selectedValue) === String(value);
20760
- }, [selectedValue, value, multiSelect]);
20761
- return /* @__PURE__ */ jsx(
20762
- CommandItem,
20763
- {
20764
- id,
20765
- ref: forwardedRef,
20766
- disabled: !enabled2,
20767
- value,
20768
- className: styles$J.multiComboboxOption,
20769
- onSelect: () => {
20770
- if (readOnly2) {
20771
- setOpen(false);
20772
- return;
20773
- }
20774
- onChange(value);
20775
- },
20776
- onClick: (event) => {
20777
- event.stopPropagation();
20778
- },
20779
- "data-state": selected2 ? "checked" : void 0,
20780
- keywords: [...keywords, label2],
20781
- children: /* @__PURE__ */ jsx("div", { className: styles$J.multiComboboxOptionContent, children: optionRenderer ? optionRenderer({ label: label2, value, enabled: enabled2, keywords }, selectedValue, false) : /* @__PURE__ */ jsxs(Fragment, { children: [
20782
- children || label2,
20783
- selected2 && /* @__PURE__ */ jsx(Icon, { name: "checkmark" })
20784
- ] }) })
20785
- },
20786
- id
20787
- );
20788
- });
20789
- const SelectOption = React__default.forwardRef(
20790
- (option, ref) => {
20791
- var _a2;
20792
- const visibleContentRef = useRef(null);
20793
- const { value, label: label2, enabled: enabled2 = true, children, className } = option;
20794
- const { value: selectedValue, optionRenderer } = useSelect();
20795
- const { onOptionRemove, onOptionAdd } = useOption();
20796
- const opt = useMemo(() => {
20797
- var _a3, _b;
20798
- return {
20799
- ...option,
20800
- label: label2 ?? ((_a3 = visibleContentRef.current) == null ? void 0 : _a3.textContent) ?? "",
20801
- keywords: [label2 ?? ((_b = visibleContentRef.current) == null ? void 0 : _b.textContent) ?? ""]
20802
- // Store the rendered ReactNode for dropdown display
20803
- };
20804
- }, [option, label2, visibleContentRef.current]);
20805
- useEffect(() => {
20806
- onOptionAdd(opt);
20807
- return () => onOptionRemove(opt);
20808
- }, [opt, onOptionAdd, onOptionRemove]);
20809
- return /* @__PURE__ */ jsxs(
20810
- Item$1,
20811
- {
20812
- ref,
20813
- className: classnames(styles$J.selectItem, className),
20814
- value,
20815
- textValue: label2 || ((_a2 = visibleContentRef.current) == null ? void 0 : _a2.textContent),
20816
- disabled: !enabled2,
20817
- onClick: (event) => {
20818
- event.stopPropagation();
20819
- },
20820
- onMouseEnter: (event) => {
20821
- const target2 = event.currentTarget;
20822
- target2.setAttribute("data-highlighted", "");
20823
- },
20824
- onMouseLeave: (event) => {
20825
- const target2 = event.currentTarget;
20826
- target2.removeAttribute("data-highlighted");
20827
- },
20828
- "data-state": selectedValue === value && "checked",
20829
- children: [
20830
- /* @__PURE__ */ jsx("span", { style: { display: "none" }, children: /* @__PURE__ */ jsx(ItemText, { children: label2 }) }),
20831
- children ? /* @__PURE__ */ jsxs(Fragment, { children: [
20832
- /* @__PURE__ */ jsx("div", { className: styles$J.selectItemContent, ref: visibleContentRef, children }),
20833
- selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$J.selectItemIndicator, children: /* @__PURE__ */ jsx(Icon, { name: "checkmark" }) })
20834
- ] }) : optionRenderer ? /* @__PURE__ */ jsx("div", { className: styles$J.selectItemContent, ref: visibleContentRef, children: optionRenderer(
20835
- {
20836
- label: label2,
20837
- value,
20838
- enabled: enabled2
20839
- },
20840
- selectedValue,
20841
- false
20842
- ) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
20843
- /* @__PURE__ */ jsx("div", { className: styles$J.selectItemContent, ref: visibleContentRef, children: label2 }),
20844
- selectedValue === value && /* @__PURE__ */ jsx(ItemIndicator, { className: styles$J.selectItemIndicator, children: /* @__PURE__ */ jsx(Icon, { name: "checkmark" }) })
20845
- ] })
20846
- ]
20847
- }
20848
- );
20849
- }
20850
- );
20851
- SelectOption.displayName = "SelectOption";
20852
21290
  const themeVars$n = `'{"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)"}'`;
20853
21291
  const radioGroupContainer = "_radioGroupContainer_fn2iu_14";
20854
21292
  const radioOptionContainer = "_radioOptionContainer_fn2iu_20";
@@ -21929,7 +22367,6 @@ const Form = forwardRef(function({
21929
22367
  ...rest
21930
22368
  }, ref) {
21931
22369
  const formRef = useRef(null);
21932
- useImperativeHandle(ref, () => formRef.current);
21933
22370
  const [confirmSubmitModalVisible, setConfirmSubmitModalVisible] = useState(false);
21934
22371
  const requestModalFormClose = useModalFormClose();
21935
22372
  const isEnabled2 = enabled2 && !formState.submitInProgress;
@@ -21966,7 +22403,7 @@ const Form = forwardRef(function({
21966
22403
  ]);
21967
22404
  const doCancel = useEvent(() => {
21968
22405
  onCancel == null ? void 0 : onCancel();
21969
- requestModalFormClose();
22406
+ void requestModalFormClose();
21970
22407
  });
21971
22408
  const doSubmit = useEvent(async (event) => {
21972
22409
  var _a2;
@@ -21996,7 +22433,7 @@ const Form = forwardRef(function({
21996
22433
  dispatch(formSubmitted());
21997
22434
  await (onSuccess == null ? void 0 : onSuccess(result));
21998
22435
  if (!keepModalOpenOnSubmit) {
21999
- requestModalFormClose();
22436
+ void requestModalFormClose();
22000
22437
  }
22001
22438
  if (initialValue === EMPTY_OBJECT) {
22002
22439
  flushSync(() => {
@@ -22176,13 +22613,15 @@ const FormWithContextVar = forwardRef(function({
22176
22613
  const completedNotificationMessage = extractValue.asOptionalString(node.props.completedNotificationMessage) || "";
22177
22614
  const errorNotificationMessage = extractValue.asOptionalString(node.props.errorNotificationMessage) || "";
22178
22615
  const submitUrl = extractValue.asOptionalString(node.props.submitUrl) || extractValue.asOptionalString(node.props._data_url);
22616
+ const itemLabelWidth = extractValue.asOptionalString(node.props.itemLabelWidth);
22617
+ const { cssProps: itemLabelWidthCssProps } = resolveLayoutProps({ width: itemLabelWidth });
22179
22618
  return /* @__PURE__ */ jsx(Slot, { ref, style: style2, children: /* @__PURE__ */ jsx(
22180
22619
  Form,
22181
22620
  {
22182
22621
  keepModalOpenOnSubmit: extractValue.asOptionalBoolean(node.props.keepModalOpenOnSubmit),
22183
22622
  itemLabelPosition: extractValue.asOptionalString(node.props.itemLabelPosition),
22184
22623
  itemLabelBreak: extractValue.asOptionalBoolean(node.props.itemLabelBreak),
22185
- itemLabelWidth: extractValue.asOptionalString(node.props.itemLabelWidth),
22624
+ itemLabelWidth: itemLabelWidthCssProps.width,
22186
22625
  hideButtonRowUntilDirty: extractValue.asOptionalBoolean(node.props.hideButtonRowUntilDirty),
22187
22626
  formState,
22188
22627
  dispatch,
@@ -22222,24 +22661,25 @@ const FormWithContextVar = forwardRef(function({
22222
22661
  ) });
22223
22662
  });
22224
22663
  FormWithContextVar.displayName = "FormWithContextVar";
22225
- const themeVars$k = `'{"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)"}'`;
22226
- const command = "_command_eqfil_14";
22227
- const badgeListWrapper = "_badgeListWrapper_eqfil_20";
22228
- const error$5 = "_error_eqfil_53";
22229
- const warning$6 = "_warning_eqfil_73";
22230
- const valid$5 = "_valid_eqfil_93";
22231
- const disabled$4 = "_disabled_eqfil_113";
22232
- const focused = "_focused_eqfil_120";
22233
- const badgeList = "_badgeList_eqfil_20";
22234
- const inputWrapper = "_inputWrapper_eqfil_133";
22235
- const badge = "_badge_eqfil_20";
22236
- const commandInput = "_commandInput_eqfil_165";
22237
- const actions = "_actions_eqfil_180";
22238
- const action = "_action_eqfil_180";
22239
- const autoCompleteEmpty = "_autoCompleteEmpty_eqfil_188";
22240
- const commandList = "_commandList_eqfil_197";
22241
- const autoCompleteOption = "_autoCompleteOption_eqfil_210";
22242
- const disabledOption = "_disabledOption_eqfil_223";
22664
+ const themeVars$k = `'{"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)"}'`;
22665
+ const command = "_command_1gtkp_14";
22666
+ const badgeListWrapper = "_badgeListWrapper_1gtkp_20";
22667
+ const error$5 = "_error_1gtkp_51";
22668
+ const warning$6 = "_warning_1gtkp_71";
22669
+ const valid$5 = "_valid_1gtkp_91";
22670
+ const disabled$4 = "_disabled_1gtkp_111";
22671
+ const focused = "_focused_1gtkp_118";
22672
+ const badgeList = "_badgeList_1gtkp_20";
22673
+ const inputWrapper = "_inputWrapper_1gtkp_131";
22674
+ const badge = "_badge_1gtkp_20";
22675
+ const commandInput = "_commandInput_1gtkp_163";
22676
+ const actions = "_actions_1gtkp_178";
22677
+ const action = "_action_1gtkp_178";
22678
+ const autoCompleteEmpty = "_autoCompleteEmpty_1gtkp_186";
22679
+ const commandList = "_commandList_1gtkp_195";
22680
+ const autoCompleteOption = "_autoCompleteOption_1gtkp_208";
22681
+ const highlighted = "_highlighted_1gtkp_225";
22682
+ const disabledOption = "_disabledOption_1gtkp_228";
22243
22683
  const styles$E = {
22244
22684
  themeVars: themeVars$k,
22245
22685
  command,
@@ -22257,8 +22697,9 @@ const styles$E = {
22257
22697
  action,
22258
22698
  autoCompleteEmpty,
22259
22699
  commandList,
22260
- "fade-in": "_fade-in_eqfil_1",
22700
+ "fade-in": "_fade-in_1gtkp_1",
22261
22701
  autoCompleteOption,
22702
+ highlighted,
22262
22703
  disabledOption
22263
22704
  };
22264
22705
  const AutoCompleteContext = createContext({
@@ -22619,12 +23060,18 @@ const AutoComplete = forwardRef(function AutoComplete2({
22619
23060
  /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, ref: setReferenceElement, children: /* @__PURE__ */ jsxs(
22620
23061
  "div",
22621
23062
  {
23063
+ ref: forwardedRef,
22622
23064
  style: style2,
22623
23065
  "data-part-id": PART_LIST_WRAPPER,
22624
- className: classnames(className, styles$E.badgeListWrapper, styles$E[validationStatus], {
22625
- [styles$E.disabled]: !enabled2,
22626
- [styles$E.focused]: isFocused
22627
- }),
23066
+ className: classnames(
23067
+ className,
23068
+ styles$E.badgeListWrapper,
23069
+ styles$E[validationStatus],
23070
+ {
23071
+ [styles$E.disabled]: !enabled2,
23072
+ [styles$E.focused]: isFocused
23073
+ }
23074
+ ),
22628
23075
  "aria-expanded": open,
22629
23076
  children: [
22630
23077
  Array.isArray(selectedValue) && selectedValue.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$E.badgeList, children: selectedValue.map((v, index) => /* @__PURE__ */ jsxs("span", { className: styles$E.badge, children: [
@@ -22723,7 +23170,7 @@ const AutoComplete = forwardRef(function AutoComplete2({
22723
23170
  ]
22724
23171
  }
22725
23172
  ) }),
22726
- open && /* @__PURE__ */ jsx(Portal, { container: root2, children: /* @__PURE__ */ jsx(
23173
+ open && /* @__PURE__ */ jsx(Portal$1, { container: root2, children: /* @__PURE__ */ jsx(
22727
23174
  PopoverContent,
22728
23175
  {
22729
23176
  style: { width, height: dropdownHeight },
@@ -22802,7 +23249,7 @@ function CreatableItem({ onNewItem, isHighlighted = false }) {
22802
23249
  },
22803
23250
  onClick: handleClick,
22804
23251
  role: "option",
22805
- "aria-selected": isHighlighted,
23252
+ "aria-selected": false,
22806
23253
  children: `Create "${searchTerm}"`
22807
23254
  }
22808
23255
  );
@@ -22816,7 +23263,6 @@ function AutoCompleteOption(option) {
22816
23263
  value,
22817
23264
  label: label2,
22818
23265
  enabled: enabled2 = true,
22819
- keywords,
22820
23266
  readOnly: readOnly2,
22821
23267
  children,
22822
23268
  isHighlighted = false,
@@ -22844,7 +23290,7 @@ function AutoCompleteOption(option) {
22844
23290
  id,
22845
23291
  role: "option",
22846
23292
  "aria-disabled": !enabled2,
22847
- "aria-selected": isHighlighted,
23293
+ "aria-selected": selected2,
22848
23294
  className: classnames(styles$E.autoCompleteOption, {
22849
23295
  [styles$E.disabledOption]: !enabled2,
22850
23296
  [styles$E.highlighted]: isHighlighted
@@ -23266,7 +23712,7 @@ function CodeBlock({
23266
23712
  icon: /* @__PURE__ */ jsx(Icon, { name: "copy", "aria-hidden": true }),
23267
23713
  onClick: () => {
23268
23714
  if (!textToCopy) return;
23269
- navigator.clipboard.writeText(textToCopy);
23715
+ void navigator.clipboard.writeText(textToCopy);
23270
23716
  toast.success("Code copied!");
23271
23717
  }
23272
23718
  }
@@ -23518,13 +23964,7 @@ function xmlUiMarkupToComponent(source, fileId = 0) {
23518
23964
  const { parse: parse2, getText } = createXmlUiParser(source);
23519
23965
  const { node, errors } = parse2();
23520
23966
  if (errors.length > 0) {
23521
- const newlinePositions = [];
23522
- for (let i = 0; i < source.length; ++i) {
23523
- if (source[i] === "\n") {
23524
- newlinePositions.push(i);
23525
- }
23526
- }
23527
- const errorsForDisplay = addDisplayFieldsToErrors(errors, source, newlinePositions);
23967
+ const errorsForDisplay = addDisplayFieldsToErrors(errors, source);
23528
23968
  const erroneousCompoundComponentName = getCompoundCompName(node, getText);
23529
23969
  return { component: null, errors: errorsForDisplay, erroneousCompoundComponentName };
23530
23970
  }
@@ -23953,21 +24393,6 @@ function errReportModuleErrors(errors, fileName) {
23953
24393
  comp.component = createModuleErrorsComponent(errors, fileName);
23954
24394
  return comp;
23955
24395
  }
23956
- function offsetToPosition(offset, newlinePositions) {
23957
- let left2 = 0;
23958
- let right2 = newlinePositions.length;
23959
- while (left2 < right2) {
23960
- const mid = Math.floor((left2 + right2) / 2);
23961
- if (newlinePositions[mid] < offset) {
23962
- left2 = mid + 1;
23963
- } else {
23964
- right2 = mid;
23965
- }
23966
- }
23967
- let line2 = left2 + 1;
23968
- let col = left2 === 0 ? offset + 1 : offset - newlinePositions[left2 - 1];
23969
- return { line: line2, col };
23970
- }
23971
24396
  function getCompoundCompName(node, getText) {
23972
24397
  var _a2, _b, _c, _d, _e, _f;
23973
24398
  const rootTag = (_a2 = node == null ? void 0 : node.children) == null ? void 0 : _a2[0];
@@ -23989,10 +24414,11 @@ function getCompoundCompName(node, getText) {
23989
24414
  }
23990
24415
  return void 0;
23991
24416
  }
23992
- function addDisplayFieldsToErrors(errors, source, newlinePositions) {
24417
+ function addDisplayFieldsToErrors(errors, source) {
24418
+ const { offsetToPosForDisplay } = createDocumentCursor(source);
23993
24419
  return errors.map((err) => {
23994
- const { line: errPosLine, col: errPosCol } = offsetToPosition(err.pos, newlinePositions);
23995
- const { line: contextStartLine } = offsetToPosition(err.contextPos, newlinePositions);
24420
+ const { line: errPosLine, character: errPosCol } = offsetToPosForDisplay(err.pos);
24421
+ const { line: contextStartLine } = offsetToPosForDisplay(err.contextPos);
23996
24422
  return {
23997
24423
  ...err,
23998
24424
  errPosLine,
@@ -24002,6 +24428,38 @@ function addDisplayFieldsToErrors(errors, source, newlinePositions) {
24002
24428
  };
24003
24429
  });
24004
24430
  }
24431
+ function createDocumentCursor(text2) {
24432
+ const newlinePositions = [];
24433
+ for (let i = 0; i < text2.length; ++i) {
24434
+ if (text2[i] === "\n") {
24435
+ newlinePositions.push(i);
24436
+ }
24437
+ }
24438
+ return {
24439
+ offsetToPos,
24440
+ offsetToPosForDisplay
24441
+ };
24442
+ function offsetToPos(offset) {
24443
+ let left2 = 0;
24444
+ let right2 = newlinePositions.length;
24445
+ while (left2 < right2) {
24446
+ const mid = Math.floor((left2 + right2) / 2);
24447
+ if (newlinePositions[mid] < offset) {
24448
+ left2 = mid + 1;
24449
+ } else {
24450
+ right2 = mid;
24451
+ }
24452
+ }
24453
+ let col = left2 === 0 ? offset : offset - newlinePositions[left2 - 1] - 1;
24454
+ return { line: left2, character: col };
24455
+ }
24456
+ function offsetToPosForDisplay(offset) {
24457
+ let pos = offsetToPos(offset);
24458
+ pos.line += 1;
24459
+ pos.character += 1;
24460
+ return pos;
24461
+ }
24462
+ }
24005
24463
  const ApiInterceptorContext = createContext(null);
24006
24464
  function useApiInterceptorContext() {
24007
24465
  return useContext(ApiInterceptorContext);
@@ -24027,8 +24485,8 @@ function ApiInterceptorProvider({
24027
24485
  if (!interceptor) {
24028
24486
  return;
24029
24487
  }
24030
- (async () => {
24031
- const { initMock } = await import("./initMock-BMxsanHc.mjs");
24488
+ void (async () => {
24489
+ const { initMock } = await import("./initMock-CB_cMi6U.mjs");
24032
24490
  const apiInstance2 = await initMock(interceptor);
24033
24491
  setApiInstance(apiInstance2);
24034
24492
  setInitialized(true);
@@ -24041,11 +24499,11 @@ function ApiInterceptorProvider({
24041
24499
  if (!hasParentInterceptorContext) {
24042
24500
  if (interceptor || forceInitialize) {
24043
24501
  let interceptorWorker2;
24044
- (async () => {
24502
+ void (async () => {
24045
24503
  if (process.env.VITE_MOCK_ENABLED) {
24046
24504
  const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
24047
- useWorker ? import("./apiInterceptorWorker-DPgtUtdA.mjs") : Promise.resolve({ createApiInterceptorWorker: () => null }),
24048
- import("./initMock-BMxsanHc.mjs")
24505
+ useWorker ? import("./apiInterceptorWorker-QiltRtq1.mjs") : Promise.resolve({ createApiInterceptorWorker: () => null }),
24506
+ import("./initMock-CB_cMi6U.mjs")
24049
24507
  ]);
24050
24508
  if (interceptor || forceInitialize) {
24051
24509
  const apiInstance2 = await initMock(interceptor || {});
@@ -24079,10 +24537,10 @@ function ApiInterceptorProvider({
24079
24537
  return;
24080
24538
  }
24081
24539
  if (parentInterceptorWorker) {
24082
- (async () => {
24540
+ void (async () => {
24083
24541
  const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
24084
- import("./apiInterceptorWorker-DPgtUtdA.mjs"),
24085
- import("./initMock-BMxsanHc.mjs")
24542
+ import("./apiInterceptorWorker-QiltRtq1.mjs"),
24543
+ import("./initMock-CB_cMi6U.mjs")
24086
24544
  ]);
24087
24545
  const apiInstance2 = await initMock(interceptor);
24088
24546
  await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
@@ -24140,8 +24598,8 @@ class ErrorBoundary extends React__default.Component {
24140
24598
  * This method implements the Error Boundaries for the React application.
24141
24599
  * It is invoked if errors occur during the rendering phase of any lifecycle
24142
24600
  * methods or children components.
24143
- *
24144
- * DO NOT DELETE this method! Though it is not referenced directly from the code,
24601
+ *
24602
+ * DO NOT DELETE this method! Though it is not referenced directly from the code,
24145
24603
  * it is a required part of the React component lifecycle.
24146
24604
  */
24147
24605
  static getDerivedStateFromError(error2) {
@@ -24174,7 +24632,7 @@ class ErrorBoundary extends React__default.Component {
24174
24632
  */
24175
24633
  render() {
24176
24634
  var _a2;
24177
- return this.state.hasError ? /* @__PURE__ */ jsxs("div", { className: styles$x.errorOverlay, children: [
24635
+ return this.state.hasError ? /* @__PURE__ */ jsxs("div", { "data-error-boundary": true, className: styles$x.errorOverlay, children: [
24178
24636
  /* @__PURE__ */ jsx("div", { className: styles$x.title, children: "There was an error!" }),
24179
24637
  /* @__PURE__ */ jsx("div", { className: styles$x.errorItem, children: (_a2 = this.state.error) == null ? void 0 : _a2.message })
24180
24638
  ] }) : this.props.children;
@@ -24184,12 +24642,6 @@ const ComponentRegistryContext = React__default.createContext(null);
24184
24642
  function useComponentRegistry() {
24185
24643
  return useContext(ComponentRegistryContext);
24186
24644
  }
24187
- const IndexerContext = React__default.createContext({
24188
- indexing: false
24189
- });
24190
- function useIndexerContext() {
24191
- return useContext(IndexerContext);
24192
- }
24193
24645
  const themeVars$e = `'{"padding-NestedApp": "var(--xmlui-padding-NestedApp)", "paddingHorizontal-NestedApp": "var(--xmlui-paddingHorizontal-NestedApp, var(--xmlui-padding-NestedApp))", "paddingVertical-NestedApp": "var(--xmlui-paddingVertical-NestedApp, var(--xmlui-padding-NestedApp))", "paddingLeft-NestedApp": "var(--xmlui-paddingLeft-NestedApp, var(--xmlui-paddingHorizontal-NestedApp, var(--xmlui-padding-NestedApp)))", "paddingRight-NestedApp": "var(--xmlui-paddingRight-NestedApp, var(--xmlui-paddingHorizontal-NestedApp, var(--xmlui-padding-NestedApp)))", "paddingTop-NestedApp": "var(--xmlui-paddingTop-NestedApp, var(--xmlui-paddingVertical-NestedApp, var(--xmlui-padding-NestedApp)))", "paddingBottom-NestedApp": "var(--xmlui-paddingBottom-NestedApp, var(--xmlui-paddingVertical-NestedApp, var(--xmlui-padding-NestedApp)))", "border-NestedApp": "var(--xmlui-border-NestedApp)", "borderHorizontal-NestedApp": "var(--xmlui-borderHorizontal-NestedApp, var(--xmlui-border-NestedApp))", "borderVertical-NestedApp": "var(--xmlui-borderVertical-NestedApp, var(--xmlui-border-NestedApp))", "borderLeft-NestedApp": "var(--xmlui-borderLeft-NestedApp, var(--xmlui-borderHorizontal-NestedApp, var(--xmlui-border-NestedApp)))", "borderRight-NestedApp": "var(--xmlui-borderRight-NestedApp, var(--xmlui-borderHorizontal-NestedApp, var(--xmlui-border-NestedApp)))", "borderTop-NestedApp": "var(--xmlui-borderTop-NestedApp, var(--xmlui-borderVertical-NestedApp, var(--xmlui-border-NestedApp)))", "borderBottom-NestedApp": "var(--xmlui-borderBottom-NestedApp, var(--xmlui-borderVertical-NestedApp, var(--xmlui-border-NestedApp)))", "borderWidth-NestedApp": "var(--xmlui-borderWidth-NestedApp)", "borderHorizontalWidth-NestedApp": "var(--xmlui-borderHorizontalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp))", "borderLeftWidth-NestedApp": "var(--xmlui-borderLeftWidth-NestedApp, var(--xmlui-borderHorizontalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp)))", "borderRightWidth-NestedApp": "var(--xmlui-borderRightWidth-NestedApp, var(--xmlui-borderHorizontalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp)))", "borderVerticalWidth-NestedApp": "var(--xmlui-borderVerticalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp))", "borderTopWidth-NestedApp": "var(--xmlui-borderTopWidth-NestedApp, var(--xmlui-borderVerticalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp)))", "borderBottomWidth-NestedApp": "var(--xmlui-borderBottomWidth-NestedApp, var(--xmlui-borderVerticalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp)))", "borderStyle-NestedApp": "var(--xmlui-borderStyle-NestedApp)", "borderHorizontalStyle-NestedApp": "var(--xmlui-borderHorizontalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp))", "borderLeftStyle-NestedApp": "var(--xmlui-borderLeftStyle-NestedApp, var(--xmlui-borderHorizontalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp)))", "borderRightStyle-NestedApp": "var(--xmlui-borderRightStyle-NestedApp, var(--xmlui-borderHorizontalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp)))", "borderVerticalStyle-NestedApp": "var(--xmlui-borderVerticalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp))", "borderTopStyle-NestedApp": "var(--xmlui-borderTopStyle-NestedApp, var(--xmlui-borderVerticalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp)))", "borderBottomStyle-NestedApp": "var(--xmlui-borderBottomStyle-NestedApp, var(--xmlui-borderVerticalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp)))", "borderColor-NestedApp": "var(--xmlui-borderColor-NestedApp)", "borderHorizontalColor-NestedApp": "var(--xmlui-borderHorizontalColor-NestedApp, var(--xmlui-borderColor-NestedApp))", "borderLeftColor-NestedApp": "var(--xmlui-borderLeftColor-NestedApp, var(--xmlui-borderHorizontalColor-NestedApp, var(--xmlui-borderColor-NestedApp)))", "borderRightColor-NestedApp": "var(--xmlui-borderRightColor-NestedApp, var(--xmlui-borderHorizontalColor-NestedApp, var(--xmlui-borderColor-NestedApp)))", "borderVerticalColor-NestedApp": "var(--xmlui-borderVerticalColor-NestedApp, var(--xmlui-borderColor-NestedApp))", "borderTopColor-NestedApp": "var(--xmlui-borderTopColor-NestedApp, var(--xmlui-borderVerticalColor-NestedApp, var(--xmlui-borderColor-NestedApp)))", "borderBottomColor-NestedApp": "var(--xmlui-borderBottomColor-NestedApp, var(--xmlui-borderVerticalColor-NestedApp, var(--xmlui-borderColor-NestedApp)))", "borderStartStartRadius-NestedApp": "var(--xmlui-borderStartStartRadius-NestedApp, var(--xmlui-borderRadius-NestedApp))", "borderStartEndRadius-NestedApp": "var(--xmlui-borderStartEndRadius-NestedApp, var(--xmlui-borderRadius-NestedApp))", "borderEndStartRadius-NestedApp": "var(--xmlui-borderEndStartRadius-NestedApp, var(--xmlui-borderRadius-NestedApp))", "borderEndEndRadius-NestedApp": "var(--xmlui-borderEndEndRadius-NestedApp, var(--xmlui-borderRadius-NestedApp))", "textColor-header-NestedApp": "var(--xmlui-textColor-header-NestedApp)", "fontFamily-header-NestedApp": "var(--xmlui-fontFamily-header-NestedApp)", "fontSize-header-NestedApp": "var(--xmlui-fontSize-header-NestedApp)", "fontStyle-header-NestedApp": "var(--xmlui-fontStyle-header-NestedApp)", "fontVariant-header-NestedApp": "var(--xmlui-fontVariant-header-NestedApp)", "fontWeight-header-NestedApp": "var(--xmlui-fontWeight-header-NestedApp)", "fontStretch-header-NestedApp": "var(--xmlui-fontStretch-header-NestedApp)", "textDecorationLine-header-NestedApp": "var(--xmlui-textDecorationLine-header-NestedApp)", "textDecorationColor-header-NestedApp": "var(--xmlui-textDecorationColor-header-NestedApp)", "textDecorationStyle-header-NestedApp": "var(--xmlui-textDecorationStyle-header-NestedApp)", "textDecorationThickness-header-NestedApp": "var(--xmlui-textDecorationThickness-header-NestedApp)", "textUnderlineOffset-header-NestedApp": "var(--xmlui-textUnderlineOffset-header-NestedApp)", "lineHeight-header-NestedApp": "var(--xmlui-lineHeight-header-NestedApp)", "backgroundColor-header-NestedApp": "var(--xmlui-backgroundColor-header-NestedApp)", "textTransform-header-NestedApp": "var(--xmlui-textTransform-header-NestedApp)", "letterSpacing-header-NestedApp": "var(--xmlui-letterSpacing-header-NestedApp)", "wordSpacing-header-NestedApp": "var(--xmlui-wordSpacing-header-NestedApp)", "textShadow-header-NestedApp": "var(--xmlui-textShadow-header-NestedApp)", "textIndent-header-NestedApp": "var(--xmlui-textIndent-header-NestedApp)", "textAlign-header-NestedApp": "var(--xmlui-textAlign-header-NestedApp)", "textAlignLast-header-NestedApp": "var(--xmlui-textAlignLast-header-NestedApp)", "wordBreak-header-NestedApp": "var(--xmlui-wordBreak-header-NestedApp)", "wordWrap-header-NestedApp": "var(--xmlui-wordWrap-header-NestedApp)", "direction-header-NestedApp": "var(--xmlui-direction-header-NestedApp)", "writingMode-header-NestedApp": "var(--xmlui-writingMode-header-NestedApp)", "lineBreak-header-NestedApp": "var(--xmlui-lineBreak-header-NestedApp)", "backgroundColor-frame-NestedApp": "var(--xmlui-backgroundColor-frame-NestedApp)", "gap-frame-NestedApp": "var(--xmlui-gap-frame-NestedApp)", "marginTop-NestedApp": "var(--xmlui-marginTop-NestedApp)", "marginBottom-NestedApp": "var(--xmlui-marginBottom-NestedApp)", "boxShadow-NestedApp": "var(--xmlui-boxShadow-NestedApp)", "backgroundColor-viewControls-NestedApp": "var(--xmlui-backgroundColor-viewControls-NestedApp)", "borderRadius-viewControls-NestedApp": "var(--xmlui-borderRadius-viewControls-NestedApp)", "padding-viewControls-NestedApp": "var(--xmlui-padding-viewControls-NestedApp)", "paddingVertical-viewControls-button-NestedApp": "var(--xmlui-paddingVertical-viewControls-button-NestedApp)", "paddingHorizontal-viewControls-button-NestedApp": "var(--xmlui-paddingHorizontal-viewControls-button-NestedApp)", "borderRadius-NestedApp": "var(--xmlui-borderRadius-NestedApp)", "borderBottom-header-NestedApp": "var(--xmlui-borderBottom-header-NestedApp)", "height-logo-splitView-NestedApp": "var(--xmlui-height-logo-splitView-NestedApp)", "width-logo-splitView-NestedApp": "var(--xmlui-width-logo-splitView-NestedApp)", "width-controls-NestedApp": "var(--xmlui-width-controls-NestedApp)", "padding-button-splitView-NestedApp": "var(--xmlui-padding-button-splitView-NestedApp)", "width-button-splitView-NestedApp": "var(--xmlui-width-button-splitView-NestedApp)", "height-button-splitView-NestedApp": "var(--xmlui-height-button-splitView-NestedApp)", "backgroundColor-code-splitView-NestedApp": "var(--xmlui-backgroundColor-code-splitView-NestedApp)", "backgroundColor-button-splitView-NestedApp--active": "var(--xmlui-backgroundColor-button-splitView-NestedApp--active)", "color-button-splitView-NestedApp": "var(--xmlui-color-button-splitView-NestedApp)", "color-button-splitView-NestedApp--active": "var(--xmlui-color-button-splitView-NestedApp--active)", "borderRadius-button-splitView-NestedApp": "var(--xmlui-borderRadius-button-splitView-NestedApp)", "borderColor-button-splitView-NestedApp": "var(--xmlui-borderColor-button-splitView-NestedApp)", "color-loadingText-NestedApp": "var(--xmlui-color-loadingText-NestedApp)"}'`;
24194
24646
  const nestedAppPlaceholder = "_nestedAppPlaceholder_2bz33_14";
24195
24647
  const loadingContainer = "_loadingContainer_2bz33_21";
@@ -24240,216 +24692,6 @@ const styles$w = {
24240
24692
  shadowRoot,
24241
24693
  content: content$2
24242
24694
  };
24243
- function hashString(str) {
24244
- let hash = 5381;
24245
- let i = str.length;
24246
- while (i) {
24247
- hash = hash * 33 ^ str.charCodeAt(--i);
24248
- }
24249
- let s = (hash >>> 0).toString(36);
24250
- return s;
24251
- }
24252
- function toKebabCase(str) {
24253
- if (str.startsWith("--")) {
24254
- return str;
24255
- }
24256
- return str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
24257
- }
24258
- function stableJSONStringify(obj) {
24259
- return JSON.stringify(obj);
24260
- }
24261
- class StyleRegistry {
24262
- constructor() {
24263
- this.cache = /* @__PURE__ */ new Map();
24264
- this.rootClasses = /* @__PURE__ */ new Set();
24265
- this.injected = /* @__PURE__ */ new Set();
24266
- this.refCounts = /* @__PURE__ */ new Map();
24267
- this.ssrHashes = /* @__PURE__ */ new Set();
24268
- }
24269
- register(styles2) {
24270
- const key = stableJSONStringify(styles2);
24271
- const styleHash = hashString(key);
24272
- const cachedEntry = this.cache.get(styleHash);
24273
- if (cachedEntry) {
24274
- return cachedEntry;
24275
- }
24276
- const className = `css-${styleHash}`;
24277
- const css = this._generateCss(`.${className}`, styles2);
24278
- const entry = { className, styleHash, css };
24279
- this.cache.set(styleHash, entry);
24280
- return entry;
24281
- }
24282
- /**
24283
- * [PRIVATE] Recursively generates CSS rules from a style object.
24284
- * This is the new, more powerful engine.
24285
- * @param selector - The CSS selector for the current context (e.g., '.css-123' or '&:hover').
24286
- * @param styles - The style object to process.
24287
- * @returns A string of CSS rules.
24288
- */
24289
- _generateCss(selector, styles2) {
24290
- const directProps = [];
24291
- const nestedRules = [];
24292
- for (const key in styles2) {
24293
- const value = styles2[key];
24294
- if (typeof value === "object" && value !== null) {
24295
- nestedRules.push(this._processNestedRule(selector, key, value));
24296
- } else {
24297
- directProps.push(`${toKebabCase(key)}:${value};`);
24298
- }
24299
- }
24300
- let finalCss = "";
24301
- if (directProps.length > 0) {
24302
- finalCss += `${selector} {${directProps.join("")}}`;
24303
- }
24304
- finalCss += nestedRules.join("");
24305
- return finalCss;
24306
- }
24307
- _processNestedRule(parentSelector, nestedKey, nestedStyles) {
24308
- if (nestedKey.startsWith("@")) {
24309
- return `${nestedKey}{${this._generateCss(parentSelector, nestedStyles)}}`;
24310
- }
24311
- const newSelector = nestedKey.replace(/&/g, parentSelector);
24312
- return this._generateCss(newSelector, nestedStyles);
24313
- }
24314
- getSsrStyles() {
24315
- const allCss = Array.from(this.cache.values()).map((entry) => entry.css).join("");
24316
- return `@layer dynamic {${allCss}}`;
24317
- }
24318
- /**
24319
- * Adds a class name to be applied to the <html> tag.
24320
- */
24321
- addRootClasses(classNames) {
24322
- classNames.forEach((className) => {
24323
- this.rootClasses.add(className);
24324
- });
24325
- }
24326
- /**
24327
- * Returns a space-separated string of all collected html classes.
24328
- */
24329
- getRootClasses() {
24330
- return Array.from(this.rootClasses).join(" ");
24331
- }
24332
- // NEW: A helper to safely get the current reference count.
24333
- getRefCount(styleHash) {
24334
- return this.refCounts.get(styleHash) || 0;
24335
- }
24336
- /**
24337
- * Increments the reference count for a given style hash.
24338
- */
24339
- incrementRef(styleHash) {
24340
- const newCount = (this.refCounts.get(styleHash) || 0) + 1;
24341
- this.refCounts.set(styleHash, newCount);
24342
- }
24343
- /**
24344
- * Decrements the reference count for a given style hash.
24345
- * @returns {number} The new reference count.
24346
- */
24347
- decrementRef(styleHash) {
24348
- const currentCount = this.refCounts.get(styleHash) || 0;
24349
- const newCount = Math.max(0, currentCount - 1);
24350
- if (newCount > 0) {
24351
- this.refCounts.set(styleHash, newCount);
24352
- } else {
24353
- this.refCounts.delete(styleHash);
24354
- }
24355
- return newCount;
24356
- }
24357
- }
24358
- const StyleContext = createContext(null);
24359
- function StyleProvider({
24360
- children,
24361
- styleRegistry = new StyleRegistry(),
24362
- forceNew = false
24363
- // Optional prop to force a new registry
24364
- }) {
24365
- const parentRegistry = useContext(StyleContext);
24366
- const [registry] = useState(() => {
24367
- const newRegistry = styleRegistry;
24368
- if (typeof window !== "undefined") {
24369
- const ssrTag = document.querySelector('style[data-style-registry="true"]');
24370
- const ssrHashes = ssrTag == null ? void 0 : ssrTag.getAttribute("data-ssr-hashes");
24371
- if (ssrHashes) {
24372
- let hashes = ssrHashes.split(",");
24373
- newRegistry.ssrHashes = new Set(hashes);
24374
- newRegistry.injected = new Set(hashes);
24375
- }
24376
- }
24377
- return newRegistry;
24378
- });
24379
- if (parentRegistry && !forceNew) {
24380
- return /* @__PURE__ */ jsx(Fragment, { children });
24381
- }
24382
- return /* @__PURE__ */ jsx(StyleContext.Provider, { value: registry, children });
24383
- }
24384
- function useStyleRegistry() {
24385
- const registry = useContext(StyleContext);
24386
- if (registry === null) {
24387
- throw new Error("Component must be used within a StyleProvider");
24388
- }
24389
- return registry;
24390
- }
24391
- function useComponentStyle(styles2) {
24392
- const rootStyle = useMemo(() => {
24393
- return !styles2 || Object.keys(styles2).length === 0 ? EMPTY_OBJECT : {
24394
- "&": styles2
24395
- // "@container style(--screenSize: 1) or @container style(--screenSize: 2) ... etc": responsiveSizes,
24396
- };
24397
- }, [styles2]);
24398
- return useStyles(rootStyle);
24399
- }
24400
- const StyleInjectionTargetContext = createContext(null);
24401
- function useDomRoot() {
24402
- const domRoot = useContext(StyleInjectionTargetContext);
24403
- return domRoot;
24404
- }
24405
- function useStyles(styles2, { prepend } = EMPTY_OBJECT) {
24406
- const { indexing } = useIndexerContext();
24407
- const domRoot = useDomRoot();
24408
- const injectionTarget = typeof document === "undefined" ? null : domRoot instanceof ShadowRoot ? domRoot : document.head;
24409
- const registry = useStyleRegistry();
24410
- const { className, styleHash } = useMemo(() => {
24411
- if (indexing || !styles2 || styles2 === EMPTY_OBJECT || Object.keys(styles2).length === 0) {
24412
- return { className: void 0, styleHash: void 0 };
24413
- }
24414
- return registry.register(styles2);
24415
- }, [indexing, registry, styles2]);
24416
- useInsertionEffect(() => {
24417
- if (!styleHash || registry.injected.has(styleHash)) {
24418
- return;
24419
- }
24420
- const { css } = registry.cache.get(styleHash) || {};
24421
- if (css) {
24422
- const styleElement = document.createElement("style");
24423
- styleElement.setAttribute("data-style-hash", styleHash);
24424
- styleElement.innerHTML = `@layer dynamic {
24425
- ${css}
24426
- }`;
24427
- if (prepend) {
24428
- injectionTarget.insertBefore(styleElement, injectionTarget.firstChild.nextSibling);
24429
- } else {
24430
- injectionTarget.appendChild(styleElement);
24431
- }
24432
- registry.injected.add(styleHash);
24433
- }
24434
- }, [registry, styleHash, injectionTarget]);
24435
- useEffect(() => {
24436
- if (!styleHash) {
24437
- return;
24438
- }
24439
- registry.incrementRef(styleHash);
24440
- return () => {
24441
- registry.decrementRef(styleHash);
24442
- setTimeout(() => {
24443
- var _a2;
24444
- if (registry.getRefCount(styleHash) === 0 && !registry.ssrHashes.has(styleHash)) {
24445
- registry.injected.delete(styleHash);
24446
- (_a2 = injectionTarget.querySelector(`style[data-style-hash="${styleHash}"]`)) == null ? void 0 : _a2.remove();
24447
- }
24448
- }, 0);
24449
- };
24450
- }, [injectionTarget, registry, styleHash]);
24451
- return className;
24452
- }
24453
24695
  function AnimatedLogo() {
24454
24696
  return /* @__PURE__ */ jsxs("div", { className: styles$w.loadingContainer, children: [
24455
24697
  /* @__PURE__ */ jsx("div", { className: styles$w.loadingText, children: "Loading XMLUI App..." }),
@@ -24569,7 +24811,7 @@ function NestedApp({
24569
24811
  }
24570
24812
  return null;
24571
24813
  });
24572
- Promise.all(sheetPromises).then((sheets) => {
24814
+ void Promise.all(sheetPromises).then((sheets) => {
24573
24815
  const validSheets = sheets.filter(Boolean);
24574
24816
  shadowRef.current.adoptedStyleSheets = validSheets;
24575
24817
  });
@@ -24688,7 +24930,10 @@ function NestedApp({
24688
24930
  )
24689
24931
  ] });
24690
24932
  }
24691
- function NestedAppRoot({ children, themeStylesToReset }) {
24933
+ function NestedAppRoot({
24934
+ children,
24935
+ themeStylesToReset
24936
+ }) {
24692
24937
  const themeVarReset = useMemo(() => {
24693
24938
  const vars2 = {};
24694
24939
  Object.keys(themeStylesToReset).forEach((key) => {
@@ -24911,7 +25156,7 @@ function AppWithCodeViewNative({
24911
25156
  {
24912
25157
  className: styles$w.headerButton,
24913
25158
  onClick: () => {
24914
- openPlayground();
25159
+ void openPlayground();
24915
25160
  },
24916
25161
  children: /* @__PURE__ */ jsx(RxOpenInNewWindow, {})
24917
25162
  }
@@ -26642,21 +26887,21 @@ const FormItem = memo(function FormItem2({
26642
26887
  return safeBindTo;
26643
26888
  }
26644
26889
  }, [bindTo, defaultId, itemIndex, parentFormItemId]);
26645
- const labelWidthValue = useFormContextPart((value2) => labelWidth || value2.itemLabelWidth);
26890
+ const labelWidthValue = useFormContextPart((value2) => labelWidth || (value2 == null ? void 0 : value2.itemLabelWidth));
26646
26891
  const labelBreakValue = useFormContextPart(
26647
- (value2) => labelBreak2 !== void 0 ? labelBreak2 : value2.itemLabelBreak
26892
+ (value2) => labelBreak2 !== void 0 ? labelBreak2 : value2 == null ? void 0 : value2.itemLabelBreak
26648
26893
  );
26649
26894
  const labelPositionValue = useFormContextPart(
26650
- (value2) => labelPosition || value2.itemLabelPosition || DEFAULT_LABEL_POSITIONS[type]
26895
+ (value2) => labelPosition || (value2 == null ? void 0 : value2.itemLabelPosition) || DEFAULT_LABEL_POSITIONS[type]
26651
26896
  );
26652
26897
  const initialValueFromSubject = useFormContextPart(
26653
- (value2) => getByPath(value2.originalSubject, formItemId)
26898
+ (value2) => getByPath(value2 == null ? void 0 : value2.originalSubject, formItemId)
26654
26899
  );
26655
26900
  const initialValue = initialValueFromSubject === void 0 ? initialValueFromProps : initialValueFromSubject;
26656
- const value = useFormContextPart((value2) => getByPath(value2.subject, formItemId));
26657
- const validationResult = useFormContextPart((value2) => value2.validationResults[formItemId]);
26658
- const dispatch = useFormContextPart((value2) => value2.dispatch);
26659
- const formEnabled = useFormContextPart((value2) => value2.enabled);
26901
+ const value = useFormContextPart((value2) => getByPath(value2 == null ? void 0 : value2.subject, formItemId));
26902
+ const validationResult = useFormContextPart((value2) => value2 == null ? void 0 : value2.validationResults[formItemId]);
26903
+ const dispatch = useFormContextPart((value2) => value2 == null ? void 0 : value2.dispatch);
26904
+ const formEnabled = useFormContextPart((value2) => value2 == null ? void 0 : value2.enabled);
26660
26905
  const isEnabled2 = enabled2 && formEnabled;
26661
26906
  useEffect(() => {
26662
26907
  if (initialValue !== void 0) {
@@ -26926,6 +27171,10 @@ const FormItem = memo(function FormItem2({
26926
27171
  }
26927
27172
  }
26928
27173
  const [animateContainerRef] = useAutoAnimate({ duration: 100 });
27174
+ const isInsideForm = useIsInsideForm();
27175
+ if (!isInsideForm) {
27176
+ throw new Error("FormItem must be used inside a Form");
27177
+ }
26929
27178
  return /* @__PURE__ */ jsx(
26930
27179
  ItemWithLabel,
26931
27180
  {
@@ -26994,7 +27243,7 @@ const filteredValidationSeverityValues = validationSeverityValues.filter(
26994
27243
  const FormItemMd = createMetadata({
26995
27244
  status: "stable",
26996
27245
  allowArbitraryProps: true,
26997
- 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.",
27246
+ 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.",
26998
27247
  props: {
26999
27248
  bindTo: {
27000
27249
  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."
@@ -27953,7 +28202,7 @@ class PollClient {
27953
28202
  this.polling = true;
27954
28203
  this.tries = 0;
27955
28204
  this.abortController = new AbortController();
27956
- this.poll(this.abortController.signal);
28205
+ void this.poll(this.abortController.signal);
27957
28206
  }
27958
28207
  stopPoll() {
27959
28208
  this.polling = false;
@@ -28486,7 +28735,7 @@ const AppMd = createMetadata({
28486
28735
  }
28487
28736
  }
28488
28737
  });
28489
- function AppNode({ node, extractValue, renderChild: renderChild2, className, lookupEventHandler }) {
28738
+ function AppNode({ node, extractValue, renderChild: renderChild2, className, lookupEventHandler, registerComponentApi }) {
28490
28739
  const processedNavRef = useRef(false);
28491
28740
  const layoutType = useMemo(
28492
28741
  () => extractValue(node.props.layout),
@@ -28702,6 +28951,7 @@ function AppNode({ node, extractValue, renderChild: renderChild2, className, loo
28702
28951
  navPanelDef: NavPanel3,
28703
28952
  logoContentDef: node.props.logoTemplate,
28704
28953
  renderChild: renderChild2,
28954
+ registerComponentApi,
28705
28955
  children: [
28706
28956
  renderedContent,
28707
28957
  /* @__PURE__ */ jsx(SearchIndexCollector, { Pages: Pages2, renderChild: renderChild2 })
@@ -28833,7 +29083,7 @@ function PageIndexer({
28833
29083
  const appRenderer = createComponentRenderer(
28834
29084
  COMP$T,
28835
29085
  AppMd,
28836
- ({ node, extractValue, renderChild: renderChild2, className, lookupEventHandler }) => {
29086
+ ({ node, extractValue, renderChild: renderChild2, className, lookupEventHandler, registerComponentApi }) => {
28837
29087
  return /* @__PURE__ */ jsx(
28838
29088
  AppNode,
28839
29089
  {
@@ -28841,7 +29091,8 @@ const appRenderer = createComponentRenderer(
28841
29091
  renderChild: renderChild2,
28842
29092
  extractValue,
28843
29093
  className,
28844
- lookupEventHandler
29094
+ lookupEventHandler,
29095
+ registerComponentApi
28845
29096
  }
28846
29097
  );
28847
29098
  }
@@ -29701,7 +29952,7 @@ const SelectMd = createMetadata({
29701
29952
  [`backgroundColor-${COMP$I}-badge--hover`]: "$color-primary-400",
29702
29953
  [`backgroundColor-${COMP$I}-badge--active`]: "$color-primary-500",
29703
29954
  [`textColor-item-${COMP$I}--disabled`]: "$color-surface-200",
29704
- [`textColor-${COMP$I}-badge`]: "$color-surface-50",
29955
+ [`textColor-${COMP$I}-badge`]: "$const-color-surface-50",
29705
29956
  [`backgroundColor-item-${COMP$I}`]: "$backgroundColor-dropdown-item",
29706
29957
  [`backgroundColor-item-${COMP$I}--hover`]: "$backgroundColor-dropdown-item--hover",
29707
29958
  [`backgroundColor-item-${COMP$I}--active`]: "$backgroundColor-dropdown-item--active",
@@ -32058,6 +32309,7 @@ const NotificationToast = ({ toastDuration }) => {
32058
32309
  };
32059
32310
  const defaultProps$n = {
32060
32311
  isRoot: false,
32312
+ applyIf: true,
32061
32313
  toastDuration: 5e3,
32062
32314
  themeVars: EMPTY_OBJECT,
32063
32315
  root: false
@@ -32065,6 +32317,7 @@ const defaultProps$n = {
32065
32317
  function Theme({
32066
32318
  id,
32067
32319
  isRoot = defaultProps$n.isRoot,
32320
+ applyIf,
32068
32321
  renderChild: renderChild2,
32069
32322
  node,
32070
32323
  tone,
@@ -32185,6 +32438,13 @@ function Theme({
32185
32438
  if (indexing) {
32186
32439
  return children;
32187
32440
  }
32441
+ const shouldApplyTheme = applyIf ?? defaultProps$n.applyIf;
32442
+ if (!shouldApplyTheme) {
32443
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
32444
+ renderChild2 && renderChild2(node.children),
32445
+ children
32446
+ ] });
32447
+ }
32188
32448
  if (isRoot) {
32189
32449
  const faviconUrl = getResourceUrl("resource:favicon") || "/resources/favicon.ico";
32190
32450
  return /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -32255,6 +32515,12 @@ const ThemeMd = createMetadata({
32255
32515
  void 0,
32256
32516
  "boolean",
32257
32517
  defaultProps$n.root
32518
+ ),
32519
+ applyIf: d(
32520
+ `This property controls whether the theme wrapper is applied. When true (default), the theme wraps the children. When false, children are rendered unwrapped.`,
32521
+ void 0,
32522
+ "boolean",
32523
+ true
32258
32524
  )
32259
32525
  },
32260
32526
  opaque: true
@@ -32275,6 +32541,7 @@ const themeComponentRenderer = createComponentRenderer(
32275
32541
  {
32276
32542
  id: extractValue.asOptionalString(node.props.themeId),
32277
32543
  isRoot: extractValue.asOptionalBoolean(node.props.root),
32544
+ applyIf: extractValue.asOptionalBoolean(node.props.applyIf),
32278
32545
  layoutContext,
32279
32546
  renderChild: renderChild2,
32280
32547
  tone: themeTone,
@@ -32462,7 +32729,7 @@ async function invalidateQueries(invalidates, appContext, state) {
32462
32729
  }
32463
32730
  arrayToInvalidate.forEach((invalidate) => {
32464
32731
  var _a3;
32465
- (_a3 = appContext.queryClient) == null ? void 0 : _a3.invalidateQueries(
32732
+ void ((_a3 = appContext.queryClient) == null ? void 0 : _a3.invalidateQueries(
32466
32733
  new DataLoaderQueryKeyGenerator(
32467
32734
  extractParam(state, invalidate, appContext),
32468
32735
  void 0,
@@ -32470,7 +32737,7 @@ async function invalidateQueries(invalidates, appContext, state) {
32470
32737
  void 0,
32471
32738
  void 0
32472
32739
  ).asPredicate()
32473
- );
32740
+ ));
32474
32741
  });
32475
32742
  } else {
32476
32743
  await ((_a2 = appContext.queryClient) == null ? void 0 : _a2.invalidateQueries());
@@ -32938,7 +33205,7 @@ async function uploadFile({ appContext, state, lookupAction, uid }, {
32938
33205
  throw e;
32939
33206
  }
32940
33207
  }
32941
- invalidateQueries(invalidates, appContext, state);
33208
+ void invalidateQueries(invalidates, appContext, state);
32942
33209
  return result;
32943
33210
  }
32944
33211
  const uploadAction = createAction("upload", uploadFile);
@@ -33020,7 +33287,7 @@ function Loader({
33020
33287
  let intervalId;
33021
33288
  if (pollIntervalInSeconds) {
33022
33289
  intervalId = setInterval(() => {
33023
- refetch();
33290
+ void refetch();
33024
33291
  }, pollIntervalInSeconds * 1e3);
33025
33292
  }
33026
33293
  return () => {
@@ -33054,8 +33321,8 @@ function Loader({
33054
33321
  }, [loaderLoaded2, uid]);
33055
33322
  useEffect(() => {
33056
33323
  registerComponentApi == null ? void 0 : registerComponentApi({
33057
- refetch: async (options2) => {
33058
- refetch(options2);
33324
+ refetch: (options2) => {
33325
+ void refetch(options2);
33059
33326
  },
33060
33327
  update: async (updater) => {
33061
33328
  var _a2, _b;
@@ -33073,7 +33340,7 @@ function Loader({
33073
33340
  }
33074
33341
  (_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryId, newData);
33075
33342
  },
33076
- addItem: async (element, indexToInsert) => {
33343
+ addItem: (element, indexToInsert) => {
33077
33344
  var _a2, _b;
33078
33345
  const oldData = (_a2 = appContext.queryClient) == null ? void 0 : _a2.getQueryData(queryId);
33079
33346
  const draft = createDraft(oldData);
@@ -33085,10 +33352,10 @@ function Loader({
33085
33352
  const newData = finishDraft(draft);
33086
33353
  (_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryId, newData);
33087
33354
  },
33088
- getItems: async () => {
33355
+ getItems: () => {
33089
33356
  return data;
33090
33357
  },
33091
- deleteItem: async (element) => {
33358
+ deleteItem: (element) => {
33092
33359
  throw new Error("not implemented");
33093
33360
  }
33094
33361
  });
@@ -33249,7 +33516,9 @@ function MockLoader({
33249
33516
  const waitTime = extractParam(state, loader.props.waitTime, appContext);
33250
33517
  const responseObj = extractParam(state, loader.props.data, appContext);
33251
33518
  const doLoad = useCallback(async () => {
33252
- waitTime && await asyncWait(waitTime);
33519
+ if (waitTime) {
33520
+ await asyncWait(waitTime);
33521
+ }
33253
33522
  return responseObj;
33254
33523
  }, [responseObj, waitTime]);
33255
33524
  return /* @__PURE__ */ jsx(
@@ -33397,7 +33666,7 @@ function PageableLoader({
33397
33666
  const queryKey2 = thizRef.current;
33398
33667
  return () => {
33399
33668
  var _a2, _b;
33400
- (_a2 = appContext.queryClient) == null ? void 0 : _a2.cancelQueries(queryKey2);
33669
+ void ((_a2 = appContext.queryClient) == null ? void 0 : _a2.cancelQueries(queryKey2));
33401
33670
  (_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryKey2, (old) => {
33402
33671
  if (!old) {
33403
33672
  return old;
@@ -33439,6 +33708,7 @@ function PageableLoader({
33439
33708
  }, [
33440
33709
  data,
33441
33710
  error2,
33711
+ isRefetching,
33442
33712
  loaderError2,
33443
33713
  loaderLoaded2,
33444
33714
  onLoaded,
@@ -33452,7 +33722,7 @@ function PageableLoader({
33452
33722
  let intervalId;
33453
33723
  if (pollIntervalInSeconds) {
33454
33724
  intervalId = setInterval(() => {
33455
- refetch();
33725
+ void refetch();
33456
33726
  }, pollIntervalInSeconds * 1e3);
33457
33727
  }
33458
33728
  return () => {
@@ -33471,8 +33741,8 @@ function PageableLoader({
33471
33741
  registerComponentApi({
33472
33742
  fetchPrevPage,
33473
33743
  fetchNextPage: stableFetchNextPage,
33474
- refetch: async (options2) => {
33475
- refetch(options2);
33744
+ refetch: (options2) => {
33745
+ void refetch(options2);
33476
33746
  },
33477
33747
  update: async (updater) => {
33478
33748
  var _a2, _b;
@@ -33496,7 +33766,7 @@ function PageableLoader({
33496
33766
  const newData = finishDraft(draft);
33497
33767
  (_b = appContext.queryClient) == null ? void 0 : _b.setQueryData(queryId, newData);
33498
33768
  },
33499
- addItem: async (element, indexToInsert) => {
33769
+ addItem: (element, indexToInsert) => {
33500
33770
  var _a2, _b;
33501
33771
  const oldData = (_a2 = appContext.queryClient) == null ? void 0 : _a2.getQueryData(queryId);
33502
33772
  const draft = createDraft(oldData);
@@ -33511,7 +33781,7 @@ function PageableLoader({
33511
33781
  getItems: () => {
33512
33782
  return data;
33513
33783
  },
33514
- deleteItem: async (element) => {
33784
+ deleteItem: (element) => {
33515
33785
  throw new Error("not implemented");
33516
33786
  }
33517
33787
  });
@@ -33655,8 +33925,14 @@ function DataLoader({
33655
33925
  }
33656
33926
  const response = await fetch(queryUrl, fetchOptions);
33657
33927
  if (!response.ok) {
33658
- console.error("[SQL DataLoader] Failed response:", response.status, response.statusText);
33659
- throw new Error(`Failed to execute SQL query: ${response.status} ${response.statusText}`);
33928
+ console.error(
33929
+ "[SQL DataLoader] Failed response:",
33930
+ response.status,
33931
+ response.statusText
33932
+ );
33933
+ throw new Error(
33934
+ `Failed to execute SQL query: ${response.status} ${response.statusText}`
33935
+ );
33660
33936
  }
33661
33937
  const jsonResult = await response.json();
33662
33938
  if (jsonResult && typeof jsonResult === "object") {
@@ -33684,15 +33960,7 @@ function DataLoader({
33684
33960
  });
33685
33961
  }
33686
33962
  },
33687
- [
33688
- api,
33689
- loader.props,
33690
- state,
33691
- url,
33692
- body,
33693
- rawBody,
33694
- appContext
33695
- ]
33963
+ [api, loader.props, state, url, body, rawBody, appContext]
33696
33964
  );
33697
33965
  const queryId = useMemo(() => {
33698
33966
  return new DataLoaderQueryKeyGenerator(
@@ -33725,7 +33993,7 @@ function DataLoader({
33725
33993
  }
33726
33994
  }
33727
33995
  },
33728
- [loader.props.inProgressNotificationMessage, loaderInProgressChanged2, loader.props.dataType]
33996
+ [loader.props.inProgressNotificationMessage, loaderInProgressChanged2]
33729
33997
  );
33730
33998
  const loaded = useCallback(
33731
33999
  (data, pageInfo) => {
@@ -33748,7 +34016,7 @@ function DataLoader({
33748
34016
  }
33749
34017
  }
33750
34018
  },
33751
- [loader.props.completedNotificationMessage, loaderLoaded2, loader.props.dataType]
34019
+ [loader.props.completedNotificationMessage, loaderLoaded2]
33752
34020
  );
33753
34021
  const error2 = useCallback(
33754
34022
  async (error22) => {
@@ -33873,7 +34141,9 @@ const dataLoaderRenderer = createLoaderRenderer(
33873
34141
  }) => {
33874
34142
  var _a2, _b, _c;
33875
34143
  if (!((_a2 = loader.props) == null ? void 0 : _a2.url) || !loader.props.url.trim()) {
33876
- throw new Error("You must specify a non-empty (not whitespace-only) 'url' property for DataSource");
34144
+ throw new Error(
34145
+ "You must specify a non-empty (not whitespace-only) 'url' property for DataSource"
34146
+ );
33877
34147
  }
33878
34148
  return /* @__PURE__ */ jsx(
33879
34149
  IndexAwareDataLoader,
@@ -34612,7 +34882,6 @@ const DateInput = forwardRef(function DateInputNative({
34612
34882
  return null;
34613
34883
  }
34614
34884
  }, [day2, month2, year2]);
34615
- useImperativeHandle(ref, () => dateInputRef.current);
34616
34885
  useEffect(() => {
34617
34886
  if (registerComponentApi) {
34618
34887
  registerComponentApi({
@@ -35939,7 +36208,6 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
35939
36208
  const s24 = (second2 || "00").padStart(2, "0");
35940
36209
  return `${h24}:${m24}:${s24}`;
35941
36210
  }, [hour2, minute2, second2, amPm, is12HourFormat]);
35942
- useImperativeHandle(ref, () => timeInputRef.current);
35943
36211
  useEffect(() => {
35944
36212
  if (registerComponentApi) {
35945
36213
  registerComponentApi({
@@ -36686,7 +36954,6 @@ const Timer = forwardRef(function Timer2({
36686
36954
  isPaused: () => isPaused,
36687
36955
  isRunning: () => isRunning && !isPaused
36688
36956
  }), [pause, resume, isPaused, isRunning]);
36689
- useImperativeHandle(forwardedRef, () => timerApi, [timerApi]);
36690
36957
  useEffect(() => {
36691
36958
  if (registerComponentApi) {
36692
36959
  registerComponentApi(timerApi);
@@ -37248,14 +37515,16 @@ function AppState({
37248
37515
  registerComponentApi,
37249
37516
  onDidUpdate
37250
37517
  }) {
37251
- const registerAppState = useAppStateContextPart((value2) => value2.registerAppState);
37252
37518
  const update = useAppStateContextPart((value2) => value2.update);
37519
+ const value = useAppStateContextPart((value2) => {
37520
+ var _a2;
37521
+ return (_a2 = value2 == null ? void 0 : value2.appState) == null ? void 0 : _a2[bucket];
37522
+ });
37253
37523
  useIsomorphicLayoutEffect(() => {
37254
37524
  if (initialValue !== void 0) {
37255
- registerAppState(bucket, initialValue);
37525
+ update(bucket, initialValue);
37256
37526
  }
37257
- }, [bucket, initialValue, registerAppState]);
37258
- const value = useAppStateContextPart((value2) => value2.appState[bucket]);
37527
+ }, [bucket, initialValue]);
37259
37528
  useIsomorphicLayoutEffect(() => {
37260
37529
  updateState({ value });
37261
37530
  if (onDidUpdate) {
@@ -37304,7 +37573,7 @@ const AppStateMd = createMetadata({
37304
37573
  defaultValue: defaultProps$f.bucket
37305
37574
  },
37306
37575
  initialValue: {
37307
- description: `This property contains the initial state value. Though you can use multiple \`${COMP$u}\`component instances for the same bucket with their \`initialValue\` set, it may result in faulty app logic. When xmlui instantiates an \`${COMP$u}\` 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.`
37576
+ description: `This property contains the initial state value. Though you can use multiple \`${COMP$u}\`component instances for the same bucket with their \`initialValue\` set, it may result in faulty app logic. When xmlui instantiates an \`${COMP$u}\` 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.`
37308
37577
  }
37309
37578
  },
37310
37579
  apis: {
@@ -39107,26 +39376,31 @@ const AutoCompleteMd = createMetadata({
39107
39376
  },
39108
39377
  themeVars: parseScssVar(styles$E.themeVars),
39109
39378
  defaultThemeVars: {
39110
- [`backgroundColor-menu-${COMP$h}`]: "$backgroundColor-primary",
39379
+ [`backgroundColor-menu-${COMP$h}`]: "$color-surface-raised",
39111
39380
  [`boxShadow-menu-${COMP$h}`]: "$boxShadow-md",
39112
39381
  [`borderRadius-menu-${COMP$h}`]: "$borderRadius",
39113
39382
  [`borderWidth-menu-${COMP$h}`]: "1px",
39114
39383
  [`borderColor-menu-${COMP$h}`]: "$borderColor",
39115
- [`backgroundColor-item-${COMP$h}`]: "$backgroundColor-dropdown-item",
39116
- [`backgroundColor-item-${COMP$h}--hover`]: "$backgroundColor-dropdown-item--active",
39117
- [`backgroundColor-item-${COMP$h}--active`]: "$backgroundColor-dropdown-item--active",
39118
- [`minHeight-Input`]: "39px",
39119
39384
  [`backgroundColor-${COMP$h}-badge`]: "$color-primary-500",
39120
39385
  [`fontSize-${COMP$h}-badge`]: "$fontSize-sm",
39386
+ [`paddingHorizontal-${COMP$h}-badge`]: "$space-2_5",
39387
+ [`paddingVertical-${COMP$h}-badge`]: "$space-0_5",
39121
39388
  [`borderRadius-${COMP$h}-badge`]: "$borderRadius",
39122
- [`paddingHorizontal-${COMP$h}-badge`]: "$space-2",
39123
- [`paddingVertical-${COMP$h}-badge`]: "$space-1",
39124
- [`paddingHorizontal-${COMP$h}`]: "$space-1",
39389
+ [`paddingHorizontal-item-${COMP$h}`]: "$space-2",
39390
+ [`paddingVertical-item-${COMP$h}`]: "$space-2",
39391
+ [`paddingHorizontal-${COMP$h}`]: "$space-2",
39125
39392
  [`paddingVertical-${COMP$h}`]: "$space-2",
39393
+ [`opacity-text-item-${COMP$h}--disabled`]: "0.5",
39394
+ [`opacity-${COMP$h}--disabled`]: "0.5",
39126
39395
  [`backgroundColor-${COMP$h}-badge--hover`]: "$color-primary-400",
39127
39396
  [`backgroundColor-${COMP$h}-badge--active`]: "$color-primary-500",
39128
39397
  [`textColor-item-${COMP$h}--disabled`]: "$color-surface-200",
39129
- [`textColor-${COMP$h}-badge`]: "$const-color-surface-50"
39398
+ [`textColor-${COMP$h}-badge`]: "$const-color-surface-50",
39399
+ [`backgroundColor-item-${COMP$h}`]: "$backgroundColor-dropdown-item",
39400
+ [`backgroundColor-item-${COMP$h}--hover`]: "$backgroundColor-dropdown-item--hover",
39401
+ [`backgroundColor-item-${COMP$h}--active`]: "$backgroundColor-dropdown-item--active",
39402
+ // Default borderColor-Input--disabled is too light so the disabled component is barely visible
39403
+ [`borderColor-${COMP$h}--disabled`]: "initial"
39130
39404
  }
39131
39405
  });
39132
39406
  const autoCompleteComponentRenderer = createComponentRenderer(
@@ -41454,7 +41728,7 @@ function InspectButton$1({
41454
41728
  htmlElement.removeEventListener("mouseenter", mouseenter);
41455
41729
  htmlElement.removeEventListener("mouseleave", mouseleave);
41456
41730
  };
41457
- }, [inspectId, node, inspectMode, setShowCode]);
41731
+ }, [inspectId, node, inspectMode, setShowCode, setInspectedNode]);
41458
41732
  return /* @__PURE__ */ jsx(Fragment, { children: inspectMode ? null : visible && !!root2 && createPortal(
41459
41733
  /* @__PURE__ */ jsx(
41460
41734
  Button,
@@ -44718,7 +44992,7 @@ const Dialog = ({
44718
44992
  ] });
44719
44993
  };
44720
44994
  const ConfirmationModalContext = React__default.createContext({
44721
- confirm: async (title2, message, actionLabel) => false
44995
+ confirm: (title2, message, actionLabel) => Promise.resolve(false)
44722
44996
  });
44723
44997
  const useConfirm = () => useContext(ConfirmationModalContext);
44724
44998
  const ConfirmationModalContextProvider = ({ children }) => {
@@ -44740,7 +45014,7 @@ const ConfirmationModalContextProvider = ({ children }) => {
44740
45014
  }
44741
45015
  }, [showConfirmationModal]);
44742
45016
  const handleShow = useCallback(
44743
- async (title22, message2, actionLabel) => {
45017
+ (title22, message2, actionLabel) => {
44744
45018
  if (typeof title22 === "string") {
44745
45019
  setTitle(title22);
44746
45020
  setButtons([
@@ -45524,7 +45798,7 @@ function IconProvider({ children }) {
45524
45798
  /* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
45525
45799
  ] });
45526
45800
  }
45527
- const version = "0.10.19";
45801
+ const version = "0.10.21";
45528
45802
  const miscellaneousUtils = {
45529
45803
  capitalize,
45530
45804
  pluralize: pluralize$1,
@@ -46031,7 +46305,7 @@ async function evalCalculatedMemberAccessAsync(evaluator, thisStack, expr, evalC
46031
46305
  await completeExprValue(expr.member, thread);
46032
46306
  return evalCalculatedMemberAccessCore(thisStack, expr, evalContext, thread);
46033
46307
  }
46034
- async function evalSequenceAsync(evaluator, thisStack, expr, evalContext, thread) {
46308
+ function evalSequenceAsync(evaluator, thisStack, expr, evalContext, thread) {
46035
46309
  if (!expr.exprs || expr.exprs.length === 0) {
46036
46310
  throw new Error(`Missing expression sequence`);
46037
46311
  }
@@ -46143,7 +46417,7 @@ async function evalAssignmentAsync(evaluator, thisStack, expr, evalContext, thre
46143
46417
  const rootScope = getRootIdScope(leftValue, evalContext, thread);
46144
46418
  const updatesState = rootScope && rootScope.type !== "block";
46145
46419
  if (updatesState && evalContext.onWillUpdate) {
46146
- evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
46420
+ void evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
46147
46421
  }
46148
46422
  await evaluator(thisStack, leftValue, evalContext, thread);
46149
46423
  thisStack.pop();
@@ -46153,7 +46427,7 @@ async function evalAssignmentAsync(evaluator, thisStack, expr, evalContext, thre
46153
46427
  await completeExprValue(expr.expr, thread);
46154
46428
  const value = evalAssignmentCore(thisStack, expr, evalContext, thread);
46155
46429
  if (updatesState && evalContext.onDidUpdate) {
46156
- evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
46430
+ void evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
46157
46431
  }
46158
46432
  return value;
46159
46433
  }
@@ -46161,14 +46435,14 @@ async function evalPreOrPostAsync(evaluator, thisStack, expr, evalContext, threa
46161
46435
  const rootScope = getRootIdScope(expr.expr, evalContext, thread);
46162
46436
  const updatesState = rootScope && rootScope.type !== "block";
46163
46437
  if (updatesState && evalContext.onWillUpdate) {
46164
- evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
46438
+ void evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
46165
46439
  }
46166
46440
  await evaluator(thisStack, expr.expr, evalContext, thread);
46167
46441
  thisStack.pop();
46168
46442
  await completeExprValue(expr.expr, thread);
46169
46443
  const value = evalPreOrPostCore(thisStack, expr, evalContext, thread);
46170
46444
  if (updatesState && evalContext.onDidUpdate) {
46171
- evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
46445
+ void evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
46172
46446
  }
46173
46447
  return value;
46174
46448
  }
@@ -46216,8 +46490,8 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
46216
46490
  functionArgs.push(...funcArg);
46217
46491
  } else {
46218
46492
  if (arg.type === T_ARROW_EXPRESSION) {
46219
- const funcArg = await createArrowFunctionAsync(evaluator, arg);
46220
- const wrappedFunc = async (...args) => {
46493
+ const funcArg = createArrowFunctionAsync(evaluator, arg);
46494
+ const wrappedFunc = (...args) => {
46221
46495
  return funcArg(arg.args, evalContext, thread, ...args);
46222
46496
  };
46223
46497
  functionArgs.push(wrappedFunc);
@@ -46225,7 +46499,7 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
46225
46499
  await evaluator([], arg, evalContext, thread);
46226
46500
  const funcArg = await completeExprValue(arg, thread);
46227
46501
  if (funcArg == null ? void 0 : funcArg._ARROW_EXPR_) {
46228
- const wrappedFuncArg = await createArrowFunctionAsync(evaluator, funcArg);
46502
+ const wrappedFuncArg = createArrowFunctionAsync(evaluator, funcArg);
46229
46503
  const wrappedFunc = (...args) => wrappedFuncArg(funcArg.args, evalContext, thread, ...args);
46230
46504
  functionArgs.push(wrappedFunc);
46231
46505
  } else {
@@ -46254,18 +46528,18 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
46254
46528
  const rootScope = getRootIdScope(expr.obj, evalContext, thread);
46255
46529
  const updatesState = rootScope && rootScope.type !== "block";
46256
46530
  if (updatesState && evalContext.onWillUpdate) {
46257
- evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
46531
+ void evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
46258
46532
  }
46259
46533
  const value = ((_b = evalContext.options) == null ? void 0 : _b.defaultToOptionalMemberAccess) ? functionObj == null ? void 0 : functionObj.call(currentContext, ...functionArgs) : functionObj.call(currentContext, ...functionArgs);
46260
46534
  let returnValue = await completePromise(value);
46261
46535
  if (updatesState && evalContext.onDidUpdate) {
46262
- evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
46536
+ void evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
46263
46537
  }
46264
46538
  setExprValue(expr, { value: returnValue }, thread);
46265
46539
  thisStack.push(returnValue);
46266
46540
  return returnValue;
46267
46541
  }
46268
- async function createArrowFunctionAsync(evaluator, expr) {
46542
+ function createArrowFunctionAsync(evaluator, expr) {
46269
46543
  return async (...args) => {
46270
46544
  const runTimeEvalContext = args[1];
46271
46545
  const runtimeThread = args[2];
@@ -46391,7 +46665,7 @@ async function createArrowFunctionAsync(evaluator, expr) {
46391
46665
  return returnValue;
46392
46666
  };
46393
46667
  }
46394
- async function completePromise(input2) {
46668
+ function completePromise(input2) {
46395
46669
  const visited = /* @__PURE__ */ new Map();
46396
46670
  return completePromiseInternal(input2);
46397
46671
  async function completePromiseInternal(input22) {
@@ -48872,7 +49146,7 @@ const Animation$1 = forwardRef(function Animation2({
48872
49146
  const [reset, setReset] = useState(false);
48873
49147
  const [count, setCount] = useState(0);
48874
49148
  const times = 1;
48875
- const animationId = useId();
49149
+ useId();
48876
49150
  const animationSettings = useMemo(
48877
49151
  () => ({
48878
49152
  from: _animation.from,
@@ -48915,9 +49189,9 @@ const Animation$1 = forwardRef(function Animation2({
48915
49189
  onStart,
48916
49190
  onStop,
48917
49191
  reset,
49192
+ once,
48918
49193
  reverse2,
48919
- toggle,
48920
- animationId
49194
+ toggle
48921
49195
  ]
48922
49196
  );
48923
49197
  const [springs, api] = useSpring(
@@ -48931,7 +49205,7 @@ const Animation$1 = forwardRef(function Animation2({
48931
49205
  });
48932
49206
  const composedRef = ref ? composeRefs(ref, forwardedRef) : forwardedRef;
48933
49207
  const startAnimation = useCallback(() => {
48934
- api.start(_animation);
49208
+ void api.start(_animation);
48935
49209
  return () => {
48936
49210
  api.stop();
48937
49211
  };
@@ -48950,7 +49224,7 @@ const Animation$1 = forwardRef(function Animation2({
48950
49224
  children,
48951
49225
  (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)
48952
49226
  );
48953
- }, [animateWhenInView, animationStyles, children, springs, rest]);
49227
+ }, [animateWhenInView, animationStyles, children, springs, rest, composedRef, forwardedRef]);
48954
49228
  return content2;
48955
49229
  });
48956
49230
  const tooltipBehavior = {
@@ -48981,12 +49255,11 @@ const animationBehavior = {
48981
49255
  var _a2, _b;
48982
49256
  const { extractValue } = context;
48983
49257
  const animation = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.animation, true);
48984
- const animationOptions = extractValue(
48985
- (_b = context.node.props) == null ? void 0 : _b.animationOptions,
48986
- true
48987
- );
49258
+ const animationOptions = extractValue((_b = context.node.props) == null ? void 0 : _b.animationOptions, true);
48988
49259
  const parsedOptions = parseAnimationOptions(animationOptions);
48989
- return /* @__PURE__ */ jsx(Animation$1, { animation: parseAnimation(animation), ...parsedOptions, children: node });
49260
+ return /* @__PURE__ */ jsx(Animation$1, { animation: parseAnimation(animation), ...parsedOptions, children: context.node.type === "ModalDialog" ? cloneElement(node, {
49261
+ externalAnimation: true
49262
+ }) : node });
48990
49263
  }
48991
49264
  };
48992
49265
  const labelBehavior = {
@@ -49980,11 +50253,6 @@ function AppContent({
49980
50253
  root2
49981
50254
  ]);
49982
50255
  const [appState, setAppState] = useState(EMPTY_OBJECT);
49983
- const registerAppState = useCallback((bucket, initialValue) => {
49984
- setAppState((prev) => {
49985
- return { ...prev, [bucket]: initialValue };
49986
- });
49987
- }, []);
49988
50256
  const update = useCallback((bucket, patch) => {
49989
50257
  setAppState((prev) => {
49990
50258
  return {
@@ -49998,11 +50266,10 @@ function AppContent({
49998
50266
  }, []);
49999
50267
  const appStateContextValue = useMemo(() => {
50000
50268
  return {
50001
- registerAppState,
50002
50269
  appState,
50003
50270
  update
50004
50271
  };
50005
- }, [appState, registerAppState, update]);
50272
+ }, [appState, update]);
50006
50273
  return /* @__PURE__ */ jsx(AppContext.Provider, { value: appContextValue, children: /* @__PURE__ */ jsx(AppStateContext.Provider, { value: appStateContextValue, children: /* @__PURE__ */ jsx(StandaloneComponent, { node: rootContainer, children }) }) });
50007
50274
  }
50008
50275
  function signError(error2) {
@@ -51068,26 +51335,34 @@ function StandaloneApp({
51068
51335
  const shouldDecorateWithTestId = decorateComponentsWithTestId || // @ts-ignore
51069
51336
  (typeof window !== "undefined" ? window.XMLUI_MOCK_TEST_ID : false);
51070
51337
  const useHashBasedRouting = (appGlobals == null ? void 0 : appGlobals.useHashBasedRouting) ?? true;
51071
- return /* @__PURE__ */ jsx(ApiInterceptorProvider, { interceptor: mockedApi, useHashBasedRouting, waitForApiInterceptor, children: /* @__PURE__ */ jsx(
51072
- AppRoot,
51338
+ return /* @__PURE__ */ jsx(
51339
+ ApiInterceptorProvider,
51073
51340
  {
51074
- projectCompilation,
51075
- decorateComponentsWithTestId: shouldDecorateWithTestId,
51076
- node: entryPoint,
51077
- standalone: true,
51078
- debugEnabled,
51079
- routerBaseName: typeof window !== "undefined" ? window.__PUBLIC_PATH || "" : "",
51080
- globalProps,
51081
- defaultTheme,
51082
- defaultTone,
51083
- resources,
51084
- resourceMap,
51085
- sources,
51086
- extensionManager,
51087
- contributes,
51088
- children
51341
+ interceptor: mockedApi,
51342
+ useHashBasedRouting,
51343
+ waitForApiInterceptor,
51344
+ children: /* @__PURE__ */ jsx(
51345
+ AppRoot,
51346
+ {
51347
+ projectCompilation,
51348
+ decorateComponentsWithTestId: shouldDecorateWithTestId,
51349
+ node: entryPoint,
51350
+ standalone: true,
51351
+ debugEnabled,
51352
+ routerBaseName: typeof window !== "undefined" ? window.__PUBLIC_PATH || "" : "",
51353
+ globalProps,
51354
+ defaultTheme,
51355
+ defaultTone,
51356
+ resources,
51357
+ resourceMap,
51358
+ sources,
51359
+ extensionManager,
51360
+ contributes,
51361
+ children
51362
+ }
51363
+ )
51089
51364
  }
51090
- ) });
51365
+ );
51091
51366
  }
51092
51367
  async function parseComponentMarkupResponse(response) {
51093
51368
  if (!response.ok) {
@@ -51316,7 +51591,7 @@ async function loadThemeFile(url) {
51316
51591
  }
51317
51592
  }
51318
51593
  }
51319
- async function fetchWithoutCache(url) {
51594
+ function fetchWithoutCache(url) {
51320
51595
  return fetch(normalizePath(url), {
51321
51596
  headers: {
51322
51597
  "Cache-Control": "no-cache, no-store"
@@ -51337,7 +51612,7 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
51337
51612
  });
51338
51613
  const [projectCompilation, setProjectCompilation] = useState(null);
51339
51614
  useIsomorphicLayoutEffect(() => {
51340
- (async function() {
51615
+ void async function() {
51341
51616
  var _a2, _b, _c, _d, _e;
51342
51617
  const resolvedRuntime = resolveRuntime(runtime);
51343
51618
  const appDef = mergeAppDefWithRuntime(resolvedRuntime.standaloneApp, standaloneAppDef);
@@ -51623,7 +51898,7 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
51623
51898
  });
51624
51899
  setProjectCompilation(resolvedRuntime.projectCompilation);
51625
51900
  setStandaloneApp(newAppDef);
51626
- })();
51901
+ }();
51627
51902
  }, [runtime, standaloneAppDef]);
51628
51903
  return { standaloneApp, projectCompilation };
51629
51904
  }