xmlui 0.7.34 → 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.
- package/dist/_commonjsHelpers-BkfeUUK-.mjs +28 -0
- package/dist/{apiInterceptorWorker-DHDoRL37.mjs → apiInterceptorWorker-C5K2aqZR.mjs} +1 -1
- package/dist/{index-B90aqc2f.mjs → index-DG5iykVX.mjs} +11215 -11222
- package/dist/index.css +1 -1
- package/dist/language-server.d.ts +24 -0
- package/dist/language-server.mjs +14331 -0
- package/dist/lint-BN6SMVda.mjs +4902 -0
- package/dist/parser-Bko8vvFS.mjs +746 -0
- package/dist/scripts/src/components/Accordion/Accordion.js +9 -9
- package/dist/scripts/src/components/App/App.js +3 -3
- package/dist/scripts/src/components/AppHeader/AppHeader.js +3 -3
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +14 -14
- package/dist/scripts/src/components/Avatar/Avatar.js +4 -4
- package/dist/scripts/src/components/Badge/Badge.js +5 -5
- package/dist/scripts/src/components/Button/Button.js +64 -64
- package/dist/scripts/src/components/Card/Card.js +3 -3
- package/dist/scripts/src/components/Carousel/Carousel.js +14 -14
- package/dist/scripts/src/components/Checkbox/Checkbox.js +14 -14
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +1 -1
- package/dist/scripts/src/components/DatePicker/DatePicker.js +8 -8
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +8 -8
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +3 -3
- package/dist/scripts/src/components/Footer/Footer.js +4 -4
- package/dist/scripts/src/components/Form/Form.js +16 -16
- package/dist/scripts/src/components/FormItem/FormItem.js +2 -2
- package/dist/scripts/src/components/Heading/Heading.js +1 -1
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +11 -11
- package/dist/scripts/src/components/Link/Link.js +6 -6
- package/dist/scripts/src/components/List/ListNative.js +53 -39
- package/dist/scripts/src/components/Markdown/Markdown.js +3 -3
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +2 -2
- package/dist/scripts/src/components/NavGroup/NavGroup.js +2 -2
- package/dist/scripts/src/components/NavLink/NavLink.js +3 -3
- package/dist/scripts/src/components/NavPanel/NavPanel.js +2 -2
- package/dist/scripts/src/components/NoResult/NoResult.js +1 -1
- package/dist/scripts/src/components/OffCanvas/OffCanvas.js +1 -1
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +2 -2
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +16 -16
- package/dist/scripts/src/components/Select/Select.js +16 -16
- package/dist/scripts/src/components/Slider/Slider.js +11 -11
- package/dist/scripts/src/components/Spinner/Spinner.js +2 -2
- package/dist/scripts/src/components/Splitter/Splitter.js +1 -1
- package/dist/scripts/src/components/StickyBox/StickyBox.js +1 -1
- package/dist/scripts/src/components/Switch/Switch.js +18 -18
- package/dist/scripts/src/components/Table/Table.js +17 -17
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +6 -6
- package/dist/scripts/src/components/Tabs/Tabs.js +12 -12
- package/dist/scripts/src/components/Text/Text.js +21 -21
- package/dist/scripts/src/components/TextBox/TextBox.js +11 -11
- package/dist/scripts/src/components-core/theming/themes/base-utils.js +0 -16
- package/dist/scripts/src/components-core/theming/themes/root.js +73 -86
- package/dist/scripts/src/components-core/theming/themes/solid.js +1 -1
- package/dist/scripts/src/components-core/theming/themes/xmlui.js +3 -3
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +152 -152
- package/dist/scripts/src/parsers/scripting/Parser.js +2 -2
- package/dist/style.css +1 -1
- package/dist/xmlui-metadata.mjs +7916 -7916
- package/dist/xmlui-metadata.umd.js +11 -11
- package/dist/xmlui-parser.mjs +53 -52
- package/dist/xmlui-standalone.umd.js +144 -144
- package/dist/xmlui.d.ts +2 -2
- package/dist/xmlui.mjs +1 -1
- package/package.json +11 -5
- package/dist/lint-D3rXRbP1.mjs +0 -5645
- package/dist/scripts/bin/language-server.js +0 -11
- package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
- package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
- package/dist/scripts/src/language-server/metadata.js +0 -8206
- package/dist/scripts/src/language-server/server.js +0 -135
- package/dist/scripts/src/language-server/services/completion.js +0 -100
- package/dist/scripts/src/language-server/services/hover.js +0 -170
- package/dist/scripts/src/language-server/services/syntax-node-utilities.js +0 -22
- package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
- package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -177
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
|
@@ -1155,8 +1155,8 @@ exports.HtmlTableMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
1155
1155
|
},
|
|
1156
1156
|
themeVars: (0, themeVars_1.parseScssVar)(HtmlTags_module_scss_1.default.themeVarsTable),
|
|
1157
1157
|
defaultThemeVars: {
|
|
1158
|
-
"
|
|
1159
|
-
"border-HtmlTable": "1px solid $
|
|
1158
|
+
"backgroundColor-HtmlTable": "$backgroundColor",
|
|
1159
|
+
"border-HtmlTable": "1px solid $borderColor",
|
|
1160
1160
|
"marginBottom-HtmlTable": "$space-4",
|
|
1161
1161
|
"marginTop-HtmlTable": "$space-4",
|
|
1162
1162
|
},
|
|
@@ -1195,7 +1195,7 @@ exports.HtmlTdMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
1195
1195
|
themeVars: (0, themeVars_1.parseScssVar)(HtmlTags_module_scss_1.default.themeVarsTd),
|
|
1196
1196
|
defaultThemeVars: {
|
|
1197
1197
|
"padding-HtmlTd": "$space-2",
|
|
1198
|
-
"
|
|
1198
|
+
"borderBottom-HtmlTd": "1px solid $borderColor",
|
|
1199
1199
|
},
|
|
1200
1200
|
});
|
|
1201
1201
|
exports.htmlTdTagRenderer = (0, renderers_1.createComponentRenderer)("td", exports.HtmlTdMd, ({ node, renderChild, extractValue, extractResourceUrl, layoutCss }) => {
|
|
@@ -1270,10 +1270,10 @@ exports.HtmlThMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
1270
1270
|
"fontSize-HtmlTh": "$fontSize-tiny",
|
|
1271
1271
|
"fontWeight-HtmlTh": "$fontWeight-bold",
|
|
1272
1272
|
light: {
|
|
1273
|
-
"
|
|
1273
|
+
"backgroundColor-HtmlTh--hover": "$color-surface-200",
|
|
1274
1274
|
},
|
|
1275
1275
|
dark: {
|
|
1276
|
-
"
|
|
1276
|
+
"backgroundColor-HtmlTh--hover": "$color-surface-800",
|
|
1277
1277
|
},
|
|
1278
1278
|
},
|
|
1279
1279
|
});
|
|
@@ -1290,11 +1290,11 @@ exports.HtmlTheadMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
1290
1290
|
defaultThemeVars: {
|
|
1291
1291
|
"textTransform-HtmlThead": "uppercase",
|
|
1292
1292
|
light: {
|
|
1293
|
-
"
|
|
1294
|
-
"color-
|
|
1293
|
+
"backgroundColor-HtmlThead": "$color-surface-100",
|
|
1294
|
+
"color-HtmlThead": "$color-surface-500",
|
|
1295
1295
|
},
|
|
1296
1296
|
dark: {
|
|
1297
|
-
"
|
|
1297
|
+
"backgroundColor-HtmlThead": "$color-surface-950",
|
|
1298
1298
|
},
|
|
1299
1299
|
},
|
|
1300
1300
|
});
|
|
@@ -1323,12 +1323,12 @@ exports.HtmlTrMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
1323
1323
|
themeVars: (0, themeVars_1.parseScssVar)(HtmlTags_module_scss_1.default.themeVarsTr),
|
|
1324
1324
|
defaultThemeVars: {
|
|
1325
1325
|
"fontSize-HtmlTr": "$fontSize-small",
|
|
1326
|
-
"
|
|
1326
|
+
"backgroundColor-row-HtmlTr": "inherit",
|
|
1327
1327
|
light: {
|
|
1328
|
-
"
|
|
1328
|
+
"backgroundColor-HtmlTr--hover": "$color-primary-50",
|
|
1329
1329
|
},
|
|
1330
1330
|
dark: {
|
|
1331
|
-
"
|
|
1331
|
+
"backgroundColor-HtmlTr--hover": "$color-primary-900",
|
|
1332
1332
|
},
|
|
1333
1333
|
},
|
|
1334
1334
|
});
|
|
@@ -39,8 +39,8 @@ exports.LinkMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
39
39
|
[`gap-icon-${COMP}`]: "This property defines the size of the gap between the icon and the label.",
|
|
40
40
|
},
|
|
41
41
|
defaultThemeVars: {
|
|
42
|
-
[`border-${COMP}`]: "0px solid $
|
|
43
|
-
[`color
|
|
42
|
+
[`border-${COMP}`]: "0px solid $borderColor",
|
|
43
|
+
[`color-${COMP}--hover--active`]: `$color-${COMP}--active`,
|
|
44
44
|
[`textDecorationColor-${COMP}--hover`]: "$color-surface-400A80",
|
|
45
45
|
[`textDecorationColor-${COMP}--active`]: "$color-surface200",
|
|
46
46
|
[`fontWeight-${COMP}--active`]: "$fontWeight-bold",
|
|
@@ -57,12 +57,12 @@ exports.LinkMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
57
57
|
[`gap-icon-${COMP}`]: "$gap-tight",
|
|
58
58
|
[`padding-icon-${COMP}`]: "$space-0_5",
|
|
59
59
|
light: {
|
|
60
|
-
[`color
|
|
61
|
-
[`color
|
|
60
|
+
[`color-${COMP}`]: "$color-primary-500",
|
|
61
|
+
[`color-${COMP}--active`]: "$color-primary-500",
|
|
62
62
|
},
|
|
63
63
|
dark: {
|
|
64
|
-
[`color
|
|
65
|
-
[`color
|
|
64
|
+
[`color-${COMP}`]: "$color-primary-500",
|
|
65
|
+
[`color-${COMP}--active`]: "$color-primary-500",
|
|
66
66
|
},
|
|
67
67
|
},
|
|
68
68
|
});
|
|
@@ -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 =
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
175
|
-
const getItemType = (0,
|
|
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,
|
|
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,
|
|
199
|
-
const shouldShift = (0,
|
|
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,
|
|
212
|
-
var _a
|
|
213
|
-
const virtualizerRef = (0,
|
|
214
|
-
const scrollRef = (0,
|
|
215
|
-
const parentRef = (0,
|
|
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,
|
|
223
|
-
const [expanded, setExpanded] = (0,
|
|
224
|
-
const toggleExpanded = (0,
|
|
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,
|
|
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,
|
|
245
|
-
(0,
|
|
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,
|
|
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,
|
|
269
|
-
const tryToFetchPrevPage = (0,
|
|
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,
|
|
290
|
-
const tryToFetchNextPage = (0,
|
|
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,
|
|
311
|
-
(0,
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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,
|
|
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:
|
|
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,
|
|
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,
|
|
401
|
+
const sectionContext = (0, react_1.useMemo)(() => {
|
|
388
402
|
return {
|
|
389
403
|
isExpanded: expanded,
|
|
390
404
|
toggle: () => {
|
|
@@ -26,9 +26,9 @@ exports.MarkdownMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
defaultThemeVars: {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
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",
|
|
@@ -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" })), { [`
|
|
55
|
-
[`
|
|
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
|
-
[`
|
|
27
|
+
[`backgroundColor-dropdown-${COMP}`]: "$backgroundColor-primary",
|
|
28
28
|
[`borderRadius-dropdown-${COMP}`]: "$borderRadius",
|
|
29
|
-
[`boxShadow-dropdown-${COMP}`]: "$
|
|
29
|
+
[`boxShadow-dropdown-${COMP}`]: "$boxShadow-spread",
|
|
30
30
|
},
|
|
31
31
|
});
|
|
32
32
|
exports.navGroupComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.NavGroupMd, ({ node, extractValue, renderChild }) => {
|
|
@@ -57,15 +57,15 @@ exports.NavLinkMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
57
57
|
[`color-indicator-${COMP}`]: "Provides the following states: `--hover`, `--active`, `--pressed`",
|
|
58
58
|
},
|
|
59
59
|
defaultThemeVars: {
|
|
60
|
-
[`border-${COMP}`]: "0px solid $
|
|
60
|
+
[`border-${COMP}`]: "0px solid $borderColor",
|
|
61
61
|
[`borderRadius-${COMP}`]: "$borderRadius",
|
|
62
|
-
[`
|
|
62
|
+
[`backgroundColor-${COMP}`]: "transparent",
|
|
63
63
|
[`paddingHorizontal-${COMP}`]: "$space-4",
|
|
64
64
|
[`paddingVertical-${COMP}`]: "$space-2",
|
|
65
65
|
[`fontSize-${COMP}`]: "$fontSize-small",
|
|
66
66
|
[`fontWeight-${COMP}`]: "$fontWeight-normal",
|
|
67
67
|
[`fontFamily-${COMP}`]: "$fontFamily",
|
|
68
|
-
[`color
|
|
68
|
+
[`color-${COMP}`]: "$textColor-primary",
|
|
69
69
|
[`fontWeight-${COMP}--pressed`]: "$fontWeight-normal",
|
|
70
70
|
[`thickness-indicator-${COMP}`]: "$space-0_5",
|
|
71
71
|
[`outlineColor-${COMP}--focus`]: "$outlineColor--focus",
|
|
@@ -20,8 +20,8 @@ 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
|
-
[`
|
|
24
|
-
[`border-${COMP}`]: '0px solid $
|
|
23
|
+
[`backgroundColor-${COMP}`]: "transparent",
|
|
24
|
+
[`border-${COMP}`]: '0px solid $borderColor',
|
|
25
25
|
[`paddingHorizontal-${COMP}`]: "$space-4",
|
|
26
26
|
[`paddingVertical-logo-${COMP}`]: "$space-4",
|
|
27
27
|
[`paddingHorizontal-logo-${COMP}`]: "$space-4",
|
|
@@ -26,7 +26,7 @@ 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 $
|
|
29
|
+
[`border-${COMP}`]: "0px solid $borderColor",
|
|
30
30
|
[`paddingVertical-${COMP}`]: "$space-2",
|
|
31
31
|
[`gap-icon-${COMP}`]: "$space-2",
|
|
32
32
|
[`size-icon-${COMP}`]: "$space-8",
|
|
@@ -45,7 +45,7 @@ exports.OffCanvasMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
45
45
|
"padding-OffCanvas": "$padding-tight",
|
|
46
46
|
"paddingVertical-OffCanvas": "$padding-tight",
|
|
47
47
|
"paddingHorizontal-OffCanvas": "$padding-normal",
|
|
48
|
-
"
|
|
48
|
+
"backgroundColor-OffCanvas": "$backgroundColor",
|
|
49
49
|
"boxShadow-horizontal-OffCanvas": "0 2px 10px rgba(0, 0, 0, 0.2)",
|
|
50
50
|
"boxShadow-vertical-OffCanvas": "0 2px 10px rgba(0, 0, 0, 0.2)",
|
|
51
51
|
light: {},
|
|
@@ -26,11 +26,11 @@ exports.ProgressBarMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
26
26
|
[`borderRadius-indicator-${COMP}`]: "0px",
|
|
27
27
|
[`thickness-${COMP}`]: "$space-2",
|
|
28
28
|
light: {
|
|
29
|
-
[`
|
|
29
|
+
[`backgroundColor-${COMP}`]: "$color-surface-200",
|
|
30
30
|
[`color-indicator-${COMP}`]: "$color-primary-500",
|
|
31
31
|
},
|
|
32
32
|
dark: {
|
|
33
|
-
[`
|
|
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
|
-
[`
|
|
43
|
-
[`
|
|
44
|
-
[`
|
|
45
|
-
[`
|
|
46
|
-
[`
|
|
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
47
|
[`fontSize-${RGOption}`]: "$fontSize-small",
|
|
48
48
|
[`fontWeight-${RGOption}`]: "$fontWeight-bold",
|
|
49
|
-
[`color
|
|
50
|
-
[`color
|
|
51
|
-
[`color
|
|
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
|
-
[`
|
|
54
|
-
[`
|
|
55
|
-
[`
|
|
56
|
-
[`
|
|
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
|
-
[`
|
|
60
|
-
[`
|
|
61
|
-
[`
|
|
62
|
-
[`
|
|
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
|
});
|
|
@@ -54,32 +54,32 @@ exports.SelectMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
54
54
|
},
|
|
55
55
|
themeVars: (0, themeVars_1.parseScssVar)(Select_module_scss_1.default.themeVars),
|
|
56
56
|
defaultThemeVars: {
|
|
57
|
-
[`
|
|
58
|
-
[`boxShadow-menu-${COMP}`]: "$
|
|
57
|
+
[`backgroundColor-menu-${COMP}`]: "$backgroundColor-primary",
|
|
58
|
+
[`boxShadow-menu-${COMP}`]: "$boxShadow-md",
|
|
59
59
|
[`borderRadius-menu-${COMP}`]: "$borderRadius",
|
|
60
|
-
[`
|
|
61
|
-
[`
|
|
62
|
-
[`
|
|
63
|
-
[`
|
|
64
|
-
[`
|
|
60
|
+
[`borderWidth-menu-${COMP}`]: "1px",
|
|
61
|
+
[`borderColor-menu-${COMP}`]: "$borderColor",
|
|
62
|
+
[`backgroundColor-item-${COMP}`]: "$backgroundColor-dropdown-item",
|
|
63
|
+
[`backgroundColor-item-${COMP}--hover`]: "$backgroundColor-dropdown-item--active",
|
|
64
|
+
[`backgroundColor-item-${COMP}--active`]: "$backgroundColor-dropdown-item--active",
|
|
65
65
|
[`minHeight-Input`]: "39px",
|
|
66
|
-
[`
|
|
66
|
+
[`backgroundColor-${COMP}-badge`]: "$color-primary-500",
|
|
67
67
|
[`fontSize-${COMP}-badge`]: "$fontSize-small",
|
|
68
68
|
[`paddingHorizontal-${COMP}-badge`]: "$space-1",
|
|
69
69
|
[`paddingVertical-${COMP}-badge`]: "$space-1",
|
|
70
70
|
[`opacity-text-item-${COMP}--disabled`]: "0.5",
|
|
71
71
|
[`opacity-${COMP}--disabled`]: "0.5",
|
|
72
72
|
light: {
|
|
73
|
-
[`
|
|
74
|
-
[`
|
|
75
|
-
[`color-
|
|
76
|
-
[`color
|
|
73
|
+
[`backgroundColor-${COMP}-badge--hover`]: "$color-primary-400",
|
|
74
|
+
[`backgroundColor-${COMP}-badge--active`]: "$color-primary-500",
|
|
75
|
+
[`color-item-${COMP}--disabled`]: "$color-surface-200",
|
|
76
|
+
[`color-${COMP}-badge`]: "$color-surface-50",
|
|
77
77
|
},
|
|
78
78
|
dark: {
|
|
79
|
-
[`
|
|
80
|
-
[`
|
|
81
|
-
[`color
|
|
82
|
-
[`color-
|
|
79
|
+
[`backgroundColor-${COMP}-badge--hover`]: "$color-primary-600",
|
|
80
|
+
[`backgroundColor-${COMP}-badge--active`]: "$color-primary-500",
|
|
81
|
+
[`color-${COMP}-badge`]: "$color-surface-50",
|
|
82
|
+
[`color-item-${COMP}--disabled`]: "$color-surface-800",
|
|
83
83
|
},
|
|
84
84
|
},
|
|
85
85
|
});
|
|
@@ -46,20 +46,20 @@ exports.SliderMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
46
46
|
},
|
|
47
47
|
themeVars: (0, themeVars_1.parseScssVar)(Slider_module_scss_1.default.themeVars),
|
|
48
48
|
defaultThemeVars: {
|
|
49
|
-
[`
|
|
50
|
-
[`
|
|
51
|
-
[`
|
|
52
|
-
[`
|
|
53
|
-
[`
|
|
54
|
-
[`
|
|
55
|
-
[`boxShadow-thumb-${COMP}`]: "$
|
|
49
|
+
[`backgroundColor-track-${COMP}`]: "$color-surface-200",
|
|
50
|
+
[`backgroundColor-range-${COMP}`]: "$color-primary",
|
|
51
|
+
[`borderWidth-thumb-${COMP}`]: "2px",
|
|
52
|
+
[`borderStyle-thumb-${COMP}`]: "solid",
|
|
53
|
+
[`borderColor-thumb-${COMP}`]: "$color-surface-50",
|
|
54
|
+
[`backgroundColor-thumb-${COMP}`]: "$color-primary",
|
|
55
|
+
[`boxShadow-thumb-${COMP}`]: "$boxShadow-md",
|
|
56
56
|
light: {
|
|
57
|
-
[`
|
|
58
|
-
[`
|
|
57
|
+
[`backgroundColor-track-${COMP}--disabled`]: "$color-surface-300",
|
|
58
|
+
[`backgroundColor-range-${COMP}--disabled`]: "$color-surface-400",
|
|
59
59
|
},
|
|
60
60
|
dark: {
|
|
61
|
-
[`
|
|
62
|
-
[`
|
|
61
|
+
[`backgroundColor-track-${COMP}--disabled`]: "$color-surface-600",
|
|
62
|
+
[`backgroundColor-range-${COMP}--disabled`]: "$color-surface-800",
|
|
63
63
|
},
|
|
64
64
|
},
|
|
65
65
|
});
|
|
@@ -32,10 +32,10 @@ exports.SpinnerMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
32
32
|
[`size-${COMP}`]: "$space-10",
|
|
33
33
|
[`thickness-${COMP}`]: "$space-0_5",
|
|
34
34
|
light: {
|
|
35
|
-
[`
|
|
35
|
+
[`borderColor-${COMP}`]: "$color-surface-400",
|
|
36
36
|
},
|
|
37
37
|
dark: {
|
|
38
|
-
[`
|
|
38
|
+
[`borderColor-${COMP}`]: "$color-surface-600",
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
41
|
});
|
|
@@ -63,7 +63,7 @@ const baseSplitterMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
63
63
|
},
|
|
64
64
|
themeVars: (0, themeVars_1.parseScssVar)(Splitter_module_scss_1.default.themeVars),
|
|
65
65
|
defaultThemeVars: {
|
|
66
|
-
[`
|
|
66
|
+
[`backgroundColor-resizer-${COMP}`]: "$backgroundColor-Card",
|
|
67
67
|
[`thickness-resizer-${COMP}`]: "5px",
|
|
68
68
|
[`cursor-resizer-horizontal-${COMP}`]: "ew-resize",
|
|
69
69
|
[`cursor-resizer-vertical-${COMP}`]: "ns-resize",
|
|
@@ -26,7 +26,7 @@ exports.StickyBoxMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
26
26
|
},
|
|
27
27
|
themeVars: (0, themeVars_1.parseScssVar)(StickyBox_module_scss_1.default.themeVars),
|
|
28
28
|
defaultThemeVars: {
|
|
29
|
-
[`
|
|
29
|
+
[`backgroundColor-${COMP}`]: "$backgroundColor",
|
|
30
30
|
},
|
|
31
31
|
});
|
|
32
32
|
exports.stickyBoxComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.StickyBoxMd, ({ node, renderChild, extractValue, layoutCss }) => {
|