xmlui 0.7.33 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/_commonjsHelpers-BkfeUUK-.mjs +28 -0
  2. package/dist/{apiInterceptorWorker-CE7NtDJI.mjs → apiInterceptorWorker-C5K2aqZR.mjs} +1 -1
  3. package/dist/index-DG5iykVX.mjs +28210 -0
  4. package/dist/index.css +1 -1
  5. package/dist/language-server.d.ts +24 -0
  6. package/dist/language-server.mjs +14331 -0
  7. package/dist/lint-BN6SMVda.mjs +4902 -0
  8. package/dist/parser-Bko8vvFS.mjs +746 -0
  9. package/dist/scripts/src/abstractions/ComponentDefs.js +2 -1
  10. package/dist/scripts/src/components/Accordion/Accordion.js +14 -14
  11. package/dist/scripts/src/components/App/App.js +3 -3
  12. package/dist/scripts/src/components/App/AppNative.js +2 -2
  13. package/dist/scripts/src/components/AppHeader/AppHeader.js +6 -3
  14. package/dist/scripts/src/components/AutoComplete/AutoComplete.js +19 -19
  15. package/dist/scripts/src/components/Avatar/Avatar.js +7 -7
  16. package/dist/scripts/src/components/Badge/Badge.js +8 -8
  17. package/dist/scripts/src/components/Button/Button.js +79 -79
  18. package/dist/scripts/src/components/Card/Card.js +5 -5
  19. package/dist/scripts/src/components/Carousel/Carousel.js +18 -15
  20. package/dist/scripts/src/components/Checkbox/Checkbox.js +14 -14
  21. package/dist/scripts/src/components/ComponentProvider.js +2 -1
  22. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +1 -1
  23. package/dist/scripts/src/components/DatePicker/DatePicker.js +9 -9
  24. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +17 -17
  25. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +3 -3
  26. package/dist/scripts/src/components/Footer/Footer.js +5 -5
  27. package/dist/scripts/src/components/Form/Form.js +16 -16
  28. package/dist/scripts/src/components/FormItem/FormItem.js +5 -5
  29. package/dist/scripts/src/components/Heading/Heading.js +22 -28
  30. package/dist/scripts/src/components/Heading/HeadingNative.js +2 -1
  31. package/dist/scripts/src/components/HtmlTags/HtmlTags.js +68 -31
  32. package/dist/scripts/src/components/IconRegistryContext.js +243 -242
  33. package/dist/scripts/src/components/Link/Link.js +22 -19
  34. package/dist/scripts/src/components/List/ListNative.js +53 -39
  35. package/dist/scripts/src/components/Markdown/Markdown.js +6 -6
  36. package/dist/scripts/src/components/Markdown/MarkdownNative.js +73 -17
  37. package/dist/scripts/src/components/ModalDialog/ModalDialog.js +2 -2
  38. package/dist/scripts/src/components/NavGroup/NavGroup.js +3 -3
  39. package/dist/scripts/src/components/NavLink/NavLink.js +26 -23
  40. package/dist/scripts/src/components/NavPanel/NavPanel.js +8 -8
  41. package/dist/scripts/src/components/NoResult/NoResult.js +2 -2
  42. package/dist/scripts/src/components/OffCanvas/OffCanvas.js +5 -5
  43. package/dist/scripts/src/components/ProgressBar/ProgressBar.js +4 -4
  44. package/dist/scripts/src/components/RadioGroup/RadioGroup.js +18 -18
  45. package/dist/scripts/src/components/Select/Select.js +21 -21
  46. package/dist/scripts/src/components/Select/SelectNative.js +16 -15
  47. package/dist/scripts/src/components/Slider/Slider.js +11 -11
  48. package/dist/scripts/src/components/Spinner/Spinner.js +2 -2
  49. package/dist/scripts/src/components/Splitter/Splitter.js +1 -1
  50. package/dist/scripts/src/components/StickyBox/StickyBox.js +1 -1
  51. package/dist/scripts/src/components/Switch/Switch.js +18 -18
  52. package/dist/scripts/src/components/Table/Table.js +29 -29
  53. package/dist/scripts/src/components/TableOfContents/TableOfContents.js +27 -27
  54. package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +2 -1
  55. package/dist/scripts/src/components/Tabs/Tabs.js +12 -12
  56. package/dist/scripts/src/components/Text/Text.js +60 -61
  57. package/dist/scripts/src/components/TextBox/TextBox.js +17 -17
  58. package/dist/scripts/src/components/Theme/ThemeNative.js +1 -1
  59. package/dist/scripts/src/components-core/descriptorHelper.js +7 -7
  60. package/dist/scripts/src/components-core/theming/layout-resolver.js +26 -26
  61. package/dist/scripts/src/components-core/theming/themes/base-utils.js +7 -23
  62. package/dist/scripts/src/components-core/theming/themes/root.js +101 -114
  63. package/dist/scripts/src/components-core/theming/themes/solid.js +3 -3
  64. package/dist/scripts/src/components-core/theming/themes/xmlui.js +4 -4
  65. package/dist/scripts/src/components-core/theming/transformThemeVars.js +189 -189
  66. package/dist/scripts/src/components-core/utils/hooks.js +2 -2
  67. package/dist/scripts/src/parsers/scripting/Parser.js +2 -2
  68. package/dist/style.css +1 -1
  69. package/dist/xmlui-metadata.mjs +8534 -8204
  70. package/dist/xmlui-metadata.umd.js +11 -11
  71. package/dist/xmlui-parser.d.ts +1 -0
  72. package/dist/xmlui-parser.mjs +53 -52
  73. package/dist/xmlui-standalone.umd.js +174 -174
  74. package/dist/xmlui.d.ts +5 -4
  75. package/dist/xmlui.mjs +13 -12
  76. package/package.json +11 -5
  77. package/dist/index-lMqf6HyK.mjs +0 -27841
  78. package/dist/lint-DgP_MIP6.mjs +0 -5645
  79. package/dist/scripts/bin/language-server.js +0 -11
  80. package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
  81. package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
  82. package/dist/scripts/src/language-server/metadata.js +0 -8206
  83. package/dist/scripts/src/language-server/server.js +0 -135
  84. package/dist/scripts/src/language-server/services/completion.js +0 -100
  85. package/dist/scripts/src/language-server/services/hover.js +0 -170
  86. package/dist/scripts/src/language-server/services/syntax-node-utilities.js +0 -22
  87. package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
  88. package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -177
  89. package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
  90. package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
@@ -49,12 +49,12 @@ exports.ListNative = exports.ListContext = void 0;
49
49
  exports.useListData = useListData;
50
50
  exports.MemoizedSection = MemoizedSection;
51
51
  const jsx_runtime_1 = require("react/jsx-runtime");
52
- const react_1 = require("react");
53
- const react_2 = __importStar(require("react"));
52
+ const react_1 = __importStar(require("react"));
54
53
  const lodash_es_1 = require("lodash-es");
55
54
  const constants_1 = require("../../components-core/constants");
56
55
  const CardNative_1 = require("../Card/CardNative");
57
56
  const virtua_1 = require("virtua");
57
+ const hooks_1 = require("../../components-core/utils/hooks");
58
58
  const ScrollContext_1 = require("../../components-core/ScrollContext");
59
59
  const react_compose_refs_1 = require("@radix-ui/react-compose-refs");
60
60
  const List_module_scss_1 = __importDefault(require("./List.module.scss"));
@@ -63,7 +63,7 @@ const misc_1 = require("../../components-core/utils/misc");
63
63
  const SpinnerNative_1 = require("../Spinner/SpinnerNative");
64
64
  const TextNative_1 = require("../Text/TextNative");
65
65
  const container_helpers_1 = require("../container-helpers");
66
- exports.ListContext = react_2.default.createContext({
66
+ exports.ListContext = react_1.default.createContext({
67
67
  isExpanded: (id) => false,
68
68
  toggleExpanded: (id, isExpanded) => { },
69
69
  });
@@ -74,7 +74,7 @@ var RowType;
74
74
  RowType["ITEM"] = "ITEM";
75
75
  })(RowType || (RowType = {}));
76
76
  function useListData({ groupsInitiallyExpanded = true, expanded = constants_1.EMPTY_OBJECT, items, limit, groupBy, orderBy, availableGroups, defaultGroups = constants_1.EMPTY_ARRAY, }) {
77
- const sortedItems = (0, react_2.useMemo)(() => {
77
+ const sortedItems = (0, react_1.useMemo)(() => {
78
78
  if (!orderBy) {
79
79
  return items;
80
80
  }
@@ -90,19 +90,19 @@ function useListData({ groupsInitiallyExpanded = true, expanded = constants_1.EM
90
90
  const fieldDirectionsToOrderBy = arrayOrderBy.map((ob) => ob.direction);
91
91
  return (0, lodash_es_1.orderBy)(items, fieldSelectorsToOrderBy, fieldDirectionsToOrderBy);
92
92
  }, [items, orderBy]);
93
- const cappedItems = (0, react_2.useMemo)(() => {
93
+ const cappedItems = (0, react_1.useMemo)(() => {
94
94
  if (!limit) {
95
95
  return sortedItems;
96
96
  }
97
97
  return sortedItems.slice(0, limit - 1);
98
98
  }, [sortedItems, limit]);
99
- const sectionedItems = (0, react_2.useMemo)(() => {
99
+ const sectionedItems = (0, react_1.useMemo)(() => {
100
100
  if (groupBy === undefined) {
101
101
  return constants_1.EMPTY_OBJECT;
102
102
  }
103
103
  return (0, lodash_es_1.groupBy)(cappedItems, (item) => item[groupBy]);
104
104
  }, [cappedItems, groupBy]);
105
- const sections = (0, react_2.useMemo)(() => {
105
+ const sections = (0, react_1.useMemo)(() => {
106
106
  if (groupBy === undefined) {
107
107
  return constants_1.EMPTY_ARRAY;
108
108
  }
@@ -114,7 +114,7 @@ function useListData({ groupsInitiallyExpanded = true, expanded = constants_1.EM
114
114
  }
115
115
  return foundSectionKeys;
116
116
  }, [groupBy, sectionedItems, defaultGroups, availableGroups]);
117
- const rows = (0, react_2.useMemo)(() => {
117
+ const rows = (0, react_1.useMemo)(() => {
118
118
  if (groupBy === undefined) {
119
119
  return cappedItems;
120
120
  }
@@ -171,8 +171,8 @@ const defaultItemRenderer = (item, id) => {
171
171
  return (0, jsx_runtime_1.jsx)(CardNative_1.Card, { title: title, subtitle: subtitle });
172
172
  };
173
173
  // eslint-disable-next-line react/display-name
174
- const Item = (0, react_2.forwardRef)(({ children, style, index }, forwardedRef) => {
175
- const getItemType = (0, react_2.useContext)(ListItemTypeContext);
174
+ const Item = (0, react_1.forwardRef)(({ children, style, index }, forwardedRef) => {
175
+ const getItemType = (0, react_1.useContext)(ListItemTypeContext);
176
176
  const itemType = getItemType(index) || RowType.ITEM;
177
177
  return ((0, jsx_runtime_1.jsx)("div", { style: style, ref: forwardedRef, className: (0, classnames_1.default)({
178
178
  [List_module_scss_1.default.row]: itemType === RowType.ITEM,
@@ -180,7 +180,7 @@ const Item = (0, react_2.forwardRef)(({ children, style, index }, forwardedRef)
180
180
  [List_module_scss_1.default.sectionFooter]: itemType === RowType.SECTION_FOOTER,
181
181
  }), "data-list-item-type": itemType, "data-index": index, children: children }));
182
182
  });
183
- const ListItemTypeContext = (0, react_2.createContext)((index) => RowType.ITEM);
183
+ const ListItemTypeContext = (0, react_1.createContext)((index) => RowType.ITEM);
184
184
  /**
185
185
  * Virtua's `shift` prop helps maintain scroll position when prepending items (like message history).
186
186
  * Unfortunately it's finicky and must only be `true` when the beginning of the list changes, otherwise
@@ -195,8 +195,8 @@ const ListItemTypeContext = (0, react_2.createContext)((index) => RowType.ITEM);
195
195
  */
196
196
  const useShift = (listData, idKey) => {
197
197
  var _a, _b, _c;
198
- const previousListData = (0, react_2.useRef)();
199
- const shouldShift = (0, react_2.useRef)();
198
+ const previousListData = (0, react_1.useRef)();
199
+ const shouldShift = (0, react_1.useRef)();
200
200
  if (listData !== previousListData.current) {
201
201
  if (((_a = listData === null || listData === void 0 ? void 0 : listData[0]) === null || _a === void 0 ? void 0 : _a[idKey]) !== ((_c = (_b = previousListData.current) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c[idKey])) {
202
202
  shouldShift.current = true;
@@ -208,23 +208,26 @@ const useShift = (listData, idKey) => {
208
208
  }
209
209
  return shouldShift.current;
210
210
  };
211
- exports.ListNative = (0, react_2.forwardRef)(function DynamicHeightList({ items = constants_1.EMPTY_ARRAY, itemRenderer = defaultItemRenderer, sectionRenderer, sectionFooterRenderer, loading, limit, groupBy, orderBy, availableGroups, scrollAnchor = "top", requestFetchPrevPage = lodash_es_1.noop, requestFetchNextPage = lodash_es_1.noop, pageInfo, idKey = "id", style, emptyListPlaceholder, groupsInitiallyExpanded = true, defaultGroups = constants_1.EMPTY_ARRAY, registerComponentApi, borderCollapse = true, }, ref) {
212
- var _a, _b;
213
- const virtualizerRef = (0, react_2.useRef)(null);
214
- const scrollRef = (0, react_2.useContext)(ScrollContext_1.ScrollContext);
215
- const parentRef = (0, react_2.useRef)(null);
211
+ exports.ListNative = (0, react_1.forwardRef)(function DynamicHeightList({ items = constants_1.EMPTY_ARRAY, itemRenderer = defaultItemRenderer, sectionRenderer, sectionFooterRenderer, loading, limit, groupBy, orderBy, availableGroups, scrollAnchor = "top", requestFetchPrevPage = lodash_es_1.noop, requestFetchNextPage = lodash_es_1.noop, pageInfo, idKey = "id", style, emptyListPlaceholder, groupsInitiallyExpanded = true, defaultGroups = constants_1.EMPTY_ARRAY, registerComponentApi, borderCollapse = true, }, ref) {
212
+ var _a;
213
+ const virtualizerRef = (0, react_1.useRef)(null);
214
+ const scrollRef = (0, react_1.useContext)(ScrollContext_1.ScrollContext);
215
+ const parentRef = (0, react_1.useRef)(null);
216
216
  const rootRef = ref ? (0, react_compose_refs_1.composeRefs)(parentRef, ref) : parentRef;
217
+ const offsetsRef = (0, react_1.useRef)({
218
+ offsetTop: 0,
219
+ });
217
220
  const hasOutsideScroll = scrollRef &&
218
221
  (style === null || style === void 0 ? void 0 : style.maxHeight) === undefined &&
219
222
  (style === null || style === void 0 ? void 0 : style.height) === undefined &&
220
223
  (style === null || style === void 0 ? void 0 : style.flex) === undefined;
221
224
  const scrollElementRef = hasOutsideScroll ? scrollRef : parentRef;
222
- const shouldStickToBottom = (0, react_2.useRef)(scrollAnchor === "bottom");
223
- const [expanded, setExpanded] = (0, react_2.useState)(constants_1.EMPTY_OBJECT);
224
- const toggleExpanded = (0, react_2.useCallback)((id, isExpanded) => {
225
+ const shouldStickToBottom = (0, react_1.useRef)(scrollAnchor === "bottom");
226
+ const [expanded, setExpanded] = (0, react_1.useState)(constants_1.EMPTY_OBJECT);
227
+ const toggleExpanded = (0, react_1.useCallback)((id, isExpanded) => {
225
228
  setExpanded((prev) => (Object.assign(Object.assign({}, prev), { [id]: isExpanded })));
226
229
  }, []);
227
- const expandContextValue = (0, react_2.useMemo)(() => {
230
+ const expandContextValue = (0, react_1.useMemo)(() => {
228
231
  return {
229
232
  isExpanded: (id) => expanded[id] || (expanded[id] === undefined && groupsInitiallyExpanded),
230
233
  toggleExpanded,
@@ -241,8 +244,8 @@ exports.ListNative = (0, react_2.forwardRef)(function DynamicHeightList({ items
241
244
  availableGroups,
242
245
  });
243
246
  const shift = useShift(rows, idKey);
244
- const initiallyScrolledToBottom = (0, react_2.useRef)(false);
245
- (0, react_2.useEffect)(() => {
247
+ const initiallyScrolledToBottom = (0, react_1.useRef)(false);
248
+ (0, react_1.useEffect)(() => {
246
249
  if (rows.length && scrollAnchor === "bottom" && !initiallyScrolledToBottom.current) {
247
250
  initiallyScrolledToBottom.current = true;
248
251
  requestAnimationFrame(() => {
@@ -253,7 +256,7 @@ exports.ListNative = (0, react_2.forwardRef)(function DynamicHeightList({ items
253
256
  });
254
257
  }
255
258
  }, [rows.length, scrollAnchor]);
256
- (0, react_2.useEffect)(() => {
259
+ (0, react_1.useEffect)(() => {
257
260
  if (!virtualizerRef.current)
258
261
  return;
259
262
  if (!shouldStickToBottom.current)
@@ -265,8 +268,8 @@ exports.ListNative = (0, react_2.forwardRef)(function DynamicHeightList({ items
265
268
  });
266
269
  });
267
270
  }, [rows]);
268
- const isFetchingPrevPage = (0, react_2.useRef)(false);
269
- const tryToFetchPrevPage = (0, react_2.useCallback)(() => {
271
+ const isFetchingPrevPage = (0, react_1.useRef)(false);
272
+ const tryToFetchPrevPage = (0, react_1.useCallback)(() => {
270
273
  if (virtualizerRef.current &&
271
274
  virtualizerRef.current.findStartIndex() < 10 &&
272
275
  pageInfo &&
@@ -286,8 +289,8 @@ exports.ListNative = (0, react_2.forwardRef)(function DynamicHeightList({ items
286
289
  })();
287
290
  }
288
291
  }, [pageInfo, requestFetchPrevPage]);
289
- const isFetchingNextPage = (0, react_2.useRef)(false);
290
- const tryToFetchNextPage = (0, react_2.useCallback)(() => {
292
+ const isFetchingNextPage = (0, react_1.useRef)(false);
293
+ const tryToFetchNextPage = (0, react_1.useCallback)(() => {
291
294
  if (virtualizerRef.current &&
292
295
  virtualizerRef.current.findEndIndex() + 10 > rows.length &&
293
296
  pageInfo &&
@@ -307,14 +310,14 @@ exports.ListNative = (0, react_2.forwardRef)(function DynamicHeightList({ items
307
310
  })();
308
311
  }
309
312
  }, [rows.length, pageInfo, requestFetchNextPage]);
310
- const initiallyFetchedExtraPages = (0, react_2.useRef)(false);
311
- (0, react_2.useEffect)(() => {
313
+ const initiallyFetchedExtraPages = (0, react_1.useRef)(false);
314
+ (0, react_1.useEffect)(() => {
312
315
  if (rows.length && !initiallyFetchedExtraPages.current) {
313
316
  initiallyFetchedExtraPages.current = true;
314
317
  tryToFetchPrevPage();
315
318
  }
316
319
  }, [rows.length, tryToFetchNextPage, tryToFetchPrevPage]);
317
- const onScroll = (0, react_2.useCallback)((offset) => {
320
+ const onScroll = (0, react_1.useCallback)((offset) => {
318
321
  if (!virtualizerRef.current)
319
322
  return;
320
323
  if (scrollAnchor === "bottom") {
@@ -335,13 +338,17 @@ exports.ListNative = (0, react_2.forwardRef)(function DynamicHeightList({ items
335
338
  });
336
339
  const scrollToTop = (0, misc_1.useEvent)(() => {
337
340
  var _a;
341
+ const scrollPaddingTop = parseInt(getComputedStyle(scrollRef.current).scrollPaddingTop, 10) || 0;
338
342
  if (rows.length) {
339
- (_a = virtualizerRef.current) === null || _a === void 0 ? void 0 : _a.scrollToIndex(0);
343
+ (_a = virtualizerRef.current) === null || _a === void 0 ? void 0 : _a.scrollToIndex(0, { align: "start", offset: -scrollPaddingTop });
340
344
  }
341
345
  });
342
346
  const scrollToIndex = (0, misc_1.useEvent)((index) => {
343
347
  var _a;
344
- (_a = virtualizerRef.current) === null || _a === void 0 ? void 0 : _a.scrollToIndex(index);
348
+ const scrollPaddingTop = parseInt(getComputedStyle(scrollRef.current).scrollPaddingTop, 10) || 0;
349
+ (_a = virtualizerRef.current) === null || _a === void 0 ? void 0 : _a.scrollToIndex(index, {
350
+ offset: -scrollPaddingTop,
351
+ });
345
352
  });
346
353
  const scrollToId = (0, misc_1.useEvent)((id) => {
347
354
  const index = rows === null || rows === void 0 ? void 0 : rows.findIndex((row) => row[idKey] === id);
@@ -349,7 +356,14 @@ exports.ListNative = (0, react_2.forwardRef)(function DynamicHeightList({ items
349
356
  scrollToIndex(index);
350
357
  }
351
358
  });
352
- (0, react_2.useLayoutEffect)(() => {
359
+ (0, hooks_1.useIsomorphicLayoutEffect)(() => {
360
+ if (parentRef.current && hasOutsideScroll && scrollRef.current) {
361
+ offsetsRef.current.offsetTop =
362
+ parentRef.current.getBoundingClientRect().top -
363
+ scrollRef.current.getBoundingClientRect().top;
364
+ }
365
+ }, [hasOutsideScroll]);
366
+ (0, hooks_1.useIsomorphicLayoutEffect)(() => {
353
367
  registerComponentApi === null || registerComponentApi === void 0 ? void 0 : registerComponentApi({
354
368
  scrollToBottom,
355
369
  scrollToTop,
@@ -357,7 +371,7 @@ exports.ListNative = (0, react_2.forwardRef)(function DynamicHeightList({ items
357
371
  scrollToId,
358
372
  });
359
373
  }, [registerComponentApi, scrollToBottom, scrollToId, scrollToIndex, scrollToTop]);
360
- const rowTypeContextValue = (0, react_2.useCallback)((index) => rows[index]._row_type, [rows]);
374
+ const rowTypeContextValue = (0, react_1.useCallback)((index) => rows[index]._row_type, [rows]);
361
375
  return ((0, jsx_runtime_1.jsx)(ListItemTypeContext.Provider, { value: rowTypeContextValue, children: (0, jsx_runtime_1.jsx)(exports.ListContext.Provider, { value: expandContextValue, children: (0, jsx_runtime_1.jsxs)("div", { ref: rootRef, style: style, className: (0, classnames_1.default)(List_module_scss_1.default.outerWrapper, {
362
376
  [List_module_scss_1.default.hasOutsideScroll]: hasOutsideScroll,
363
377
  }), children: [loading && rows.length === 0 && ((0, jsx_runtime_1.jsx)("div", { className: List_module_scss_1.default.loadingWrapper, children: (0, jsx_runtime_1.jsx)(SpinnerNative_1.Spinner, {}) })), !loading &&
@@ -366,7 +380,7 @@ exports.ListNative = (0, react_2.forwardRef)(function DynamicHeightList({ items
366
380
  [List_module_scss_1.default.reverse]: scrollAnchor === "bottom",
367
381
  [List_module_scss_1.default.borderCollapse]: borderCollapse,
368
382
  [List_module_scss_1.default.sectioned]: groupBy !== undefined,
369
- }), "data-list-container": true, children: (0, jsx_runtime_1.jsx)(virtua_1.Virtualizer, { ref: virtualizerRef, scrollRef: scrollElementRef, shift: shift, onScroll: onScroll, startMargin: !hasOutsideScroll ? 0 : ((_a = parentRef.current) === null || _a === void 0 ? void 0 : _a.offsetTop) || 0, item: Item, count: (_b = rows.length) !== null && _b !== void 0 ? _b : 0, children: (rowIndex) => {
383
+ }), "data-list-container": true, children: (0, jsx_runtime_1.jsx)(virtua_1.Virtualizer, { ref: virtualizerRef, scrollRef: scrollElementRef, shift: shift, onScroll: onScroll, startMargin: offsetsRef.current.offsetTop, item: Item, count: (_a = rows.length) !== null && _a !== void 0 ? _a : 0, children: (rowIndex) => {
370
384
  const row = rows[rowIndex];
371
385
  const key = row[idKey];
372
386
  switch (row._row_type) {
@@ -381,10 +395,10 @@ exports.ListNative = (0, react_2.forwardRef)(function DynamicHeightList({ items
381
395
  });
382
396
  // --- Helper function for List item rendering
383
397
  function MemoizedSection({ node, renderChild, item, }) {
384
- const { isExpanded, toggleExpanded } = (0, react_2.useContext)(exports.ListContext);
398
+ const { isExpanded, toggleExpanded } = (0, react_1.useContext)(exports.ListContext);
385
399
  const id = item.id;
386
400
  const expanded = isExpanded(id);
387
- const sectionContext = (0, react_2.useMemo)(() => {
401
+ const sectionContext = (0, react_1.useMemo)(() => {
388
402
  return {
389
403
  isExpanded: expanded,
390
404
  toggle: () => {
@@ -26,15 +26,15 @@ exports.MarkdownMd = (0, ComponentDefs_1.createMetadata)({
26
26
  },
27
27
  },
28
28
  defaultThemeVars: {
29
- "color-border-HorizontalRule": "$color-border",
30
- "thickness-border-HorizontalRule": "1px",
31
- "style-border-HorizontalRule": "solid",
29
+ "borderColor-HorizontalRule": "$borderColor",
30
+ "borderWidth-HorizontalRule": "1px",
31
+ "borderStyle-HorizontalRule": "solid",
32
32
  "accent-Blockquote": "$color-primary",
33
33
  "padding-Blockquote": "$space-2 $space-6",
34
34
  "margin-Blockquote": "$space-2",
35
- "padding-left-UnorderedList": "$space-6",
36
- "padding-left-OrderedList": "$space-6",
37
- "padding-left-ListItem": "$space-1",
35
+ "paddingLeft-UnorderedList": "$space-6",
36
+ "paddingLeft-OrderedList": "$space-6",
37
+ "paddingLeft-ListItem": "$space-1",
38
38
  light: {
39
39
  // --- No light-specific theme vars
40
40
  },
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Markdown = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const react_1 = require("react");
9
+ const react_2 = __importDefault(require("react"));
9
10
  const react_markdown_1 = __importDefault(require("react-markdown"));
10
11
  const remark_gfm_1 = __importDefault(require("remark-gfm"));
11
12
  const unist_util_visit_1 = require("unist-util-visit");
12
13
  const Markdown_module_scss_1 = __importDefault(require("./Markdown.module.scss"));
13
14
  const HtmlTags_module_scss_1 = __importDefault(require("../HtmlTags/HtmlTags.module.scss"));
14
- const HeadingNative_1 = require("../Heading/HeadingNative");
15
15
  const TextNative_1 = require("../Text/TextNative");
16
16
  const LinkNative_1 = require("../Link/LinkNative");
17
17
  const ImageNative_1 = require("../Image/ImageNative");
@@ -21,24 +21,24 @@ exports.Markdown = (0, react_1.memo)(function Markdown({ extractValue, removeInd
21
21
  return null;
22
22
  }
23
23
  children = removeIndents ? removeTextIndents(children) : children;
24
- return ((0, jsx_runtime_1.jsx)("div", { style: style, children: (0, jsx_runtime_1.jsx)(react_markdown_1.default, { remarkPlugins: [remark_gfm_1.default, [bindingExpression, { extractValue }]], components: {
25
- h1({ id, children }) {
26
- return ((0, jsx_runtime_1.jsx)(HeadingNative_1.Heading, { uid: id, level: "h1", sx: { lineHeight: "initial" }, children: children }));
24
+ return ((0, jsx_runtime_1.jsx)("div", { className: Markdown_module_scss_1.default.markdownContent, style: Object.assign({}, style), children: (0, jsx_runtime_1.jsx)(react_markdown_1.default, { remarkPlugins: [remark_gfm_1.default, [bindingExpression, { extractValue }]], components: {
25
+ h1({ children }) {
26
+ return (0, jsx_runtime_1.jsx)("h1", { className: HtmlTags_module_scss_1.default.htmlH1, children: children });
27
27
  },
28
- h2({ id, children }) {
29
- return ((0, jsx_runtime_1.jsx)(HeadingNative_1.Heading, { uid: id, level: "h2", sx: { lineHeight: "initial" }, children: children }));
28
+ h2({ children }) {
29
+ return (0, jsx_runtime_1.jsx)("h2", { className: HtmlTags_module_scss_1.default.htmlH2, children: children });
30
30
  },
31
- h3({ id, children }) {
32
- return ((0, jsx_runtime_1.jsx)(HeadingNative_1.Heading, { uid: id, level: "h3", sx: { lineHeight: "initial" }, children: children }));
31
+ h3({ children }) {
32
+ return (0, jsx_runtime_1.jsx)("h3", { className: HtmlTags_module_scss_1.default.htmlH3, children: children });
33
33
  },
34
- h4({ id, children }) {
35
- return ((0, jsx_runtime_1.jsx)(HeadingNative_1.Heading, { uid: id, level: "h4", sx: { lineHeight: "initial" }, children: children }));
34
+ h4({ children }) {
35
+ return (0, jsx_runtime_1.jsx)("h4", { className: HtmlTags_module_scss_1.default.htmlH4, children: children });
36
36
  },
37
- h5({ id, children }) {
38
- return ((0, jsx_runtime_1.jsx)(HeadingNative_1.Heading, { uid: id, level: "h5", sx: { lineHeight: "initial" }, children: children }));
37
+ h5({ children }) {
38
+ return (0, jsx_runtime_1.jsx)("h5", { className: HtmlTags_module_scss_1.default.htmlH5, children: children });
39
39
  },
40
- h6({ id, children }) {
41
- return ((0, jsx_runtime_1.jsx)(HeadingNative_1.Heading, { uid: id, level: "h6", sx: { lineHeight: "initial" }, children: children }));
40
+ h6({ children }) {
41
+ return (0, jsx_runtime_1.jsx)("h6", { className: HtmlTags_module_scss_1.default.htmlH6, children: children });
42
42
  },
43
43
  p({ id, children }) {
44
44
  return ((0, jsx_runtime_1.jsx)(TextNative_1.Text, { uid: id, children: children }));
@@ -62,13 +62,13 @@ exports.Markdown = (0, react_1.memo)(function Markdown({ extractValue, removeInd
62
62
  return (0, jsx_runtime_1.jsx)(Blockquote, { children: children });
63
63
  },
64
64
  ol({ children }) {
65
- return (0, jsx_runtime_1.jsx)(OrderedList, { children: children });
65
+ return (0, jsx_runtime_1.jsx)("ol", { className: HtmlTags_module_scss_1.default.htmlOl, children: children });
66
66
  },
67
67
  ul({ children }) {
68
- return (0, jsx_runtime_1.jsx)(UnorderedList, { children: children });
68
+ return (0, jsx_runtime_1.jsx)("ul", { className: HtmlTags_module_scss_1.default.htmlUl, children: children });
69
69
  },
70
70
  li({ children }) {
71
- return (0, jsx_runtime_1.jsx)(ListItem, { children: children });
71
+ return (0, jsx_runtime_1.jsx)("li", { children: children }); // No custom styling for li elements
72
72
  },
73
73
  hr() {
74
74
  return (0, jsx_runtime_1.jsx)(HorizontalRule, {});
@@ -122,6 +122,62 @@ const HorizontalRule = () => {
122
122
  return (0, jsx_runtime_1.jsx)("hr", { className: Markdown_module_scss_1.default.horizontalRule });
123
123
  };
124
124
  const Blockquote = ({ children, style }) => {
125
+ // Helper function to extract text content from React nodes
126
+ const extractTextContent = (node) => {
127
+ if (typeof node === 'string') {
128
+ return node;
129
+ }
130
+ if (react_2.default.isValidElement(node) && node.props && node.props.children) {
131
+ if (Array.isArray(node.props.children)) {
132
+ return node.props.children.map(extractTextContent).join('');
133
+ }
134
+ return extractTextContent(node.props.children);
135
+ }
136
+ return '';
137
+ };
138
+ // Extract all text content
139
+ const allText = react_2.default.Children.toArray(children).map(extractTextContent).join('');
140
+ // Check for admonition pattern
141
+ const match = allText.match(/\[!([A-Z]+)\]/);
142
+ const isAdmonition = !!match;
143
+ if (isAdmonition && match && match[1]) {
144
+ const type = match[1].toLowerCase();
145
+ // Map admonition type to emoji
146
+ const emojiMap = {
147
+ info: '💡',
148
+ warning: '⚠️',
149
+ danger: '🚫',
150
+ note: '📝',
151
+ tip: '💬'
152
+ };
153
+ // Process children to remove the admonition marker
154
+ const processNode = (node) => {
155
+ if (typeof node === 'string') {
156
+ return node.replace(/\[!([A-Z]+)\]\s*/, '');
157
+ }
158
+ if (react_2.default.isValidElement(node)) {
159
+ // Handle React elements with children
160
+ if (node.props && node.props.children) {
161
+ let newChildren;
162
+ if (Array.isArray(node.props.children)) {
163
+ newChildren = node.props.children.map(processNode);
164
+ }
165
+ else {
166
+ newChildren = processNode(node.props.children);
167
+ }
168
+ return react_2.default.cloneElement(node, node.props, newChildren);
169
+ }
170
+ // Element without children, return as is
171
+ return node;
172
+ }
173
+ // Other node types (null, undefined, etc.)
174
+ return node;
175
+ };
176
+ const processedChildren = react_2.default.Children.map(children, processNode);
177
+ // Render admonition blockquote with the updated structure
178
+ return ((0, jsx_runtime_1.jsx)("blockquote", { className: Markdown_module_scss_1.default.admonitionBlockquote, style: style, children: (0, jsx_runtime_1.jsxs)("div", { className: Markdown_module_scss_1.default.admonitionContainer, children: [(0, jsx_runtime_1.jsx)("div", { className: `${Markdown_module_scss_1.default.admonitionIcon} ${Markdown_module_scss_1.default[type] || ''}`, children: emojiMap[type] || '💡' }), (0, jsx_runtime_1.jsx)("div", { className: Markdown_module_scss_1.default.admonitionContent, children: processedChildren })] }) }));
179
+ }
180
+ // Render regular blockquote
125
181
  return ((0, jsx_runtime_1.jsx)("blockquote", { className: Markdown_module_scss_1.default.blockquote, style: style, children: children }));
126
182
  };
127
183
  const UnorderedList = ({ children, style }) => {
@@ -51,8 +51,8 @@ exports.ModalDialogMd = (0, ComponentDefs_1.createMetadata)({
51
51
  "second (and so on) parameters. \`$param\` is the same as \`$params[0]\`."),
52
52
  },
53
53
  themeVars: (0, themeVars_1.parseScssVar)(ModalDialog_module_scss_1.default.themeVars),
54
- defaultThemeVars: Object.assign(Object.assign({}, (0, base_utils_1.paddingSubject)(COMP, { all: "$space-7" })), { [`color-bg-${COMP}`]: "$color-bg-primary", [`color-bg-overlay-${COMP}`]: "$color-bg-overlay", [`color-text-${COMP}`]: "$color-text-primary", [`radius-${COMP}`]: "$radius", [`font-family-${COMP}`]: "$font-family", [`max-width-${COMP}`]: "450px", [`margin-bottom-title-${COMP}`]: "0", dark: {
55
- [`color-bg-${COMP}`]: "$color-bg-primary",
54
+ defaultThemeVars: Object.assign(Object.assign({}, (0, base_utils_1.paddingSubject)(COMP, { all: "$space-7" })), { [`backgroundColor-${COMP}`]: "$backgroundColor-primary", [`backgroundColor-overlay-${COMP}`]: "$backgroundColor-overlay", [`color-${COMP}`]: "$textColor-primary", [`borderRadius-${COMP}`]: "$borderRadius", [`fontFamily-${COMP}`]: "$fontFamily", [`maxWidth-${COMP}`]: "450px", [`marginBottom-title-${COMP}`]: "0", dark: {
55
+ [`backgroundColor-${COMP}`]: "$backgroundColor-primary",
56
56
  } }),
57
57
  });
58
58
  exports.modalViewComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.ModalDialogMd, ({ node, extractValue, layoutCss, renderChild, lookupEventHandler, registerComponentApi, layoutContext, }) => {
@@ -24,9 +24,9 @@ exports.NavGroupMd = (0, ComponentDefs_1.createMetadata)({
24
24
  },
25
25
  themeVars: (0, themeVars_1.parseScssVar)(NavGroup_module_scss_1.default.themeVars),
26
26
  defaultThemeVars: {
27
- [`color-bg-dropdown-${COMP}`]: "$color-bg-primary",
28
- [`radius-dropdown-${COMP}`]: "$radius",
29
- [`shadow-dropdown-${COMP}`]: "$shadow-spread",
27
+ [`backgroundColor-dropdown-${COMP}`]: "$backgroundColor-primary",
28
+ [`borderRadius-dropdown-${COMP}`]: "$borderRadius",
29
+ [`boxShadow-dropdown-${COMP}`]: "$boxShadow-spread",
30
30
  },
31
31
  });
32
32
  exports.navGroupComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.NavGroupMd, ({ node, extractValue, renderChild }) => {
@@ -53,33 +53,36 @@ exports.NavLinkMd = (0, ComponentDefs_1.createMetadata)({
53
53
  click: (0, metadata_helpers_1.dClick)(COMP),
54
54
  },
55
55
  themeVars: (0, themeVars_1.parseScssVar)(NavLink_module_scss_1.default.themeVars),
56
+ themeVarDescriptions: {
57
+ [`color-indicator-${COMP}`]: "Provides the following states: `--hover`, `--active`, `--pressed`",
58
+ },
56
59
  defaultThemeVars: {
57
- [`border-NavLink`]: "0px solid $color-border",
58
- "radius-NavLink": "$radius",
59
- "color-bg-NavLink": "transparent",
60
- "padding-horizontal-NavLink": "$space-4",
61
- "padding-vertical-NavLink": "$space-2",
62
- "font-size-NavLink": "$font-size-small",
63
- "font-weight-NavLink": "$font-weight-normal",
64
- "font-family-NavLink": "$font-family",
65
- "color-text-NavLink": "$color-text-primary",
66
- "font-weight-NavLink--pressed": "$font-weight-normal",
67
- "thickness-indicator-NavLink": "$space-0_5",
68
- "color-outline-NavLink--focus": "$color-outline--focus",
69
- "thickness-outline-NavLink--focus": "$thickness-outline--focus",
70
- "style-outline-NavLink--focus": "$style-outline--focus",
71
- "offset-outline-NavLink--focus": "-1px",
72
- "radius-indicator-NavLink": "$radius",
60
+ [`border-${COMP}`]: "0px solid $borderColor",
61
+ [`borderRadius-${COMP}`]: "$borderRadius",
62
+ [`backgroundColor-${COMP}`]: "transparent",
63
+ [`paddingHorizontal-${COMP}`]: "$space-4",
64
+ [`paddingVertical-${COMP}`]: "$space-2",
65
+ [`fontSize-${COMP}`]: "$fontSize-small",
66
+ [`fontWeight-${COMP}`]: "$fontWeight-normal",
67
+ [`fontFamily-${COMP}`]: "$fontFamily",
68
+ [`color-${COMP}`]: "$textColor-primary",
69
+ [`fontWeight-${COMP}--pressed`]: "$fontWeight-normal",
70
+ [`thickness-indicator-${COMP}`]: "$space-0_5",
71
+ [`outlineColor-${COMP}--focus`]: "$outlineColor--focus",
72
+ [`outlineWidth-${COMP}--focus`]: "$outlineWidth--focus",
73
+ [`outlineStyle-${COMP}--focus`]: "$outlineStyle--focus",
74
+ [`outlineOffset-${COMP}--focus`]: "-1px",
75
+ [`borderRadius-indicator-${COMP}`]: "$borderRadius",
73
76
  light: {
74
- "color-icon-NavLink": "$color-surface-500",
75
- "color-indicator-NavLink--active": "$color-primary-500",
76
- "color-indicator-NavLink--pressed": "$color-primary-500",
77
- "color-indicator-NavLink--hover": "$color-primary-600",
77
+ [`color-icon-${COMP}`]: "$color-surface-500",
78
+ [`color-indicator-${COMP}--active`]: "$color-primary-500",
79
+ [`color-indicator-${COMP}--pressed`]: "$color-primary-500",
80
+ [`color-indicator-${COMP}--hover`]: "$color-primary-600",
78
81
  },
79
82
  dark: {
80
- "color-indicator-NavLink--active": "$color-primary-500",
81
- "color-indicator-NavLink--pressed": "$color-primary-500",
82
- "color-indicator-NavLink--hover": "$color-primary-400",
83
+ [`color-indicator-${COMP}--active`]: "$color-primary-500",
84
+ [`color-indicator-${COMP}--pressed`]: "$color-primary-500",
85
+ [`color-indicator-${COMP}--hover`]: "$color-primary-400",
83
86
  },
84
87
  },
85
88
  });
@@ -20,17 +20,17 @@ exports.NavPanelMd = (0, ComponentDefs_1.createMetadata)({
20
20
  },
21
21
  themeVars: (0, themeVars_1.parseScssVar)(NavPanel_module_scss_1.default.themeVars),
22
22
  defaultThemeVars: {
23
- [`color-bg-${COMP}`]: "transparent",
24
- [`border-${COMP}`]: '0px solid $color-border',
25
- [`padding-horizontal-${COMP}`]: "$space-4",
26
- [`padding-vertical-logo-${COMP}`]: "$space-4",
27
- [`padding-horizontal-logo-${COMP}`]: "$space-4",
28
- [`margin-bottom-logo-${COMP}`]: "$space-4",
23
+ [`backgroundColor-${COMP}`]: "transparent",
24
+ [`border-${COMP}`]: '0px solid $borderColor',
25
+ [`paddingHorizontal-${COMP}`]: "$space-4",
26
+ [`paddingVertical-logo-${COMP}`]: "$space-4",
27
+ [`paddingHorizontal-logo-${COMP}`]: "$space-4",
28
+ [`marginBottom-logo-${COMP}`]: "$space-4",
29
29
  light: {
30
- [`shadow-${COMP}-vertical`]: "4px 0 4px 0 rgb(0 0 0 / 10%)",
30
+ [`boxShadow-${COMP}-vertical`]: "4px 0 4px 0 rgb(0 0 0 / 10%)",
31
31
  },
32
32
  dark: {
33
- [`shadow-${COMP}-vertical`]: "4px 0 6px 0 rgba(0, 0, 0, 0.2)",
33
+ [`boxShadow-${COMP}-vertical`]: "4px 0 6px 0 rgba(0, 0, 0, 0.2)",
34
34
  },
35
35
  },
36
36
  });
@@ -26,8 +26,8 @@ exports.NoResultMd = (0, ComponentDefs_1.createMetadata)({
26
26
  },
27
27
  themeVars: (0, themeVars_1.parseScssVar)(NoResult_module_scss_1.default.themeVars),
28
28
  defaultThemeVars: {
29
- [`border-${COMP}`]: "0px solid $color-border",
30
- [`padding-vertical-${COMP}`]: "$space-2",
29
+ [`border-${COMP}`]: "0px solid $borderColor",
30
+ [`paddingVertical-${COMP}`]: "$space-2",
31
31
  [`gap-icon-${COMP}`]: "$space-2",
32
32
  [`size-icon-${COMP}`]: "$space-8",
33
33
  light: {
@@ -43,11 +43,11 @@ exports.OffCanvasMd = (0, ComponentDefs_1.createMetadata)({
43
43
  defaultThemeVars: {
44
44
  "width-OffCanvas": "600px",
45
45
  "padding-OffCanvas": "$padding-tight",
46
- "padding-vertical-OffCanvas": "$padding-tight",
47
- "padding-horizontal-OffCanvas": "$padding-normal",
48
- "color-bg-OffCanvas": "$color-bg",
49
- "shadow-horizontal-OffCanvas": "0 2px 10px rgba(0, 0, 0, 0.2)",
50
- "shadow-vertical-OffCanvas": "0 2px 10px rgba(0, 0, 0, 0.2)",
46
+ "paddingVertical-OffCanvas": "$padding-tight",
47
+ "paddingHorizontal-OffCanvas": "$padding-normal",
48
+ "backgroundColor-OffCanvas": "$backgroundColor",
49
+ "boxShadow-horizontal-OffCanvas": "0 2px 10px rgba(0, 0, 0, 0.2)",
50
+ "boxShadow-vertical-OffCanvas": "0 2px 10px rgba(0, 0, 0, 0.2)",
51
51
  light: {},
52
52
  dark: {},
53
53
  },
@@ -22,15 +22,15 @@ exports.ProgressBarMd = (0, ComponentDefs_1.createMetadata)({
22
22
  },
23
23
  themeVars: (0, themeVars_1.parseScssVar)(ProgressBar_module_scss_1.default.themeVars),
24
24
  defaultThemeVars: {
25
- [`radius-${COMP}`]: "$radius",
26
- [`radius-indicator-${COMP}`]: "0px",
25
+ [`borderRadius-${COMP}`]: "$borderRadius",
26
+ [`borderRadius-indicator-${COMP}`]: "0px",
27
27
  [`thickness-${COMP}`]: "$space-2",
28
28
  light: {
29
- [`color-bg-${COMP}`]: "$color-surface-200",
29
+ [`backgroundColor-${COMP}`]: "$color-surface-200",
30
30
  [`color-indicator-${COMP}`]: "$color-primary-500",
31
31
  },
32
32
  dark: {
33
- [`color-bg-${COMP}`]: "$color-surface-700",
33
+ [`backgroundColor-${COMP}`]: "$color-surface-700",
34
34
  [`color-indicator-${COMP}`]: "$color-primary-500",
35
35
  },
36
36
  },
@@ -39,27 +39,27 @@ exports.RadioGroupMd = (0, ComponentDefs_1.createMetadata)({
39
39
  themeVars: (0, themeVars_1.parseScssVar)(RadioGroup_module_scss_1.default.themeVars),
40
40
  defaultThemeVars: {
41
41
  [`gap-${RGOption}`]: "$space-1_5",
42
- [`thickness-border-${RGOption}`]: "2px",
43
- [`color-bg-checked-${RGOption}--disabled]`]: `$color-border-${RGOption}--disabled`,
44
- [`color-bg-checked-${RGOption}-error`]: `$color-border-${RGOption}-error`,
45
- [`color-bg-checked-${RGOption}-warning`]: `$color-border-${RGOption}-warning`,
46
- [`color-bg-checked-${RGOption}-success`]: `$color-border-${RGOption}-success`,
47
- [`font-size-${RGOption}`]: "$font-size-small",
48
- [`font-weight-${RGOption}`]: "$font-weight-bold",
49
- [`color-text-${RGOption}-error`]: `$color-border-${RGOption}-error`,
50
- [`color-text-${RGOption}-warning`]: `$color-border-${RGOption}-warning`,
51
- [`color-text-${RGOption}-success`]: `$color-border-${RGOption}-success`,
42
+ [`borderWidth-${RGOption}`]: "2px",
43
+ [`backgroundColor-checked-${RGOption}--disabled]`]: `$borderColor-${RGOption}--disabled`,
44
+ [`backgroundColor-checked-${RGOption}-error`]: `$borderColor-${RGOption}-error`,
45
+ [`backgroundColor-checked-${RGOption}-warning`]: `$borderColor-${RGOption}-warning`,
46
+ [`backgroundColor-checked-${RGOption}-success`]: `$borderColor-${RGOption}-success`,
47
+ [`fontSize-${RGOption}`]: "$fontSize-small",
48
+ [`fontWeight-${RGOption}`]: "$fontWeight-bold",
49
+ [`color-${RGOption}-error`]: `$borderColor-${RGOption}-error`,
50
+ [`color-${RGOption}-warning`]: `$borderColor-${RGOption}-warning`,
51
+ [`color-${RGOption}-success`]: `$borderColor-${RGOption}-success`,
52
52
  light: {
53
- [`color-bg-checked-${RGOption}-default`]: "$color-primary-500",
54
- [`color-border-${RGOption}-default`]: "$color-surface-500",
55
- [`color-border-${RGOption}-default--hover`]: "$color-surface-700",
56
- [`color-border-${RGOption}-default--active`]: "$color-primary-500",
53
+ [`backgroundColor-checked-${RGOption}-default`]: "$color-primary-500",
54
+ [`borderColor-${RGOption}-default`]: "$color-surface-500",
55
+ [`borderColor-${RGOption}-default--hover`]: "$color-surface-700",
56
+ [`borderColor-${RGOption}-default--active`]: "$color-primary-500",
57
57
  },
58
58
  dark: {
59
- [`color-bg-checked-${RGOption}-default`]: "$color-primary-500",
60
- [`color-border-${RGOption}-default`]: "$color-surface-500",
61
- [`color-border-${RGOption}-default--hover`]: "$color-surface-300",
62
- [`color-border-${RGOption}-default--active`]: "$color-primary-400",
59
+ [`backgroundColor-checked-${RGOption}-default`]: "$color-primary-500",
60
+ [`borderColor-${RGOption}-default`]: "$color-surface-500",
61
+ [`borderColor-${RGOption}-default--hover`]: "$color-surface-300",
62
+ [`borderColor-${RGOption}-default--active`]: "$color-primary-400",
63
63
  },
64
64
  },
65
65
  });