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
|
@@ -105,36 +105,36 @@ function generateButtonTones(theme) {
|
|
|
105
105
|
variants.forEach((variant) => {
|
|
106
106
|
const solidTones = mapTones(findClosest(resolvedTheme, `color-Button-${variant}-solid`), (tones) => {
|
|
107
107
|
return {
|
|
108
|
-
[`
|
|
109
|
-
[`
|
|
110
|
-
[`
|
|
111
|
-
[`
|
|
112
|
-
[`
|
|
113
|
-
[`
|
|
114
|
-
[`color-
|
|
115
|
-
[`color-
|
|
116
|
-
[`color-
|
|
108
|
+
[`backgroundColor-Button-${variant}-solid`]: tones.base,
|
|
109
|
+
[`backgroundColor-Button-${variant}-solid--hover`]: tones.tone1,
|
|
110
|
+
[`backgroundColor-Button-${variant}-solid--active`]: tones.tone2,
|
|
111
|
+
[`borderColor-Button-${variant}-solid`]: tones.base,
|
|
112
|
+
[`borderColor-Button-${variant}-solid--hover`]: tones.base,
|
|
113
|
+
[`borderColor-Button-${variant}-solid--active`]: tones.base,
|
|
114
|
+
[`color-Button-${variant}-solid`]: tones.tone3,
|
|
115
|
+
[`color-Button-${variant}-solid--hover`]: tones.tone3,
|
|
116
|
+
[`color-Button-${variant}-solid--active`]: tones.tone3,
|
|
117
117
|
};
|
|
118
118
|
});
|
|
119
119
|
const outlinedTones = mapTones(findClosest(resolvedTheme, `color-Button-${variant}-outlined`), (tones) => {
|
|
120
120
|
return {
|
|
121
|
-
[`
|
|
122
|
-
[`
|
|
123
|
-
[`
|
|
124
|
-
[`
|
|
125
|
-
[`
|
|
126
|
-
[`color-
|
|
127
|
-
[`color-
|
|
128
|
-
[`color-
|
|
121
|
+
[`backgroundColor-Button-${variant}-outlined--hover`]: tones.alpha1,
|
|
122
|
+
[`backgroundColor-Button-${variant}-outlined--active`]: tones.alpha2,
|
|
123
|
+
[`borderColor-Button-${variant}-outlined`]: tones.base,
|
|
124
|
+
[`borderColor-Button-${variant}-outlined--hover`]: tones.tone1,
|
|
125
|
+
[`borderColor-Button-${variant}-outlined--active`]: tones.tone2,
|
|
126
|
+
[`color-Button-${variant}-outlined`]: tones.base,
|
|
127
|
+
[`color-Button-${variant}-outlined--hover`]: tones.tone1,
|
|
128
|
+
[`color-Button-${variant}-outlined--active`]: tones.tone2,
|
|
129
129
|
};
|
|
130
130
|
});
|
|
131
131
|
const ghostTones = mapTones(findClosest(resolvedTheme, `color-Button-${variant}-ghost`), (tones) => {
|
|
132
132
|
return {
|
|
133
|
-
[`
|
|
134
|
-
[`
|
|
135
|
-
[`color-
|
|
136
|
-
[`color-
|
|
137
|
-
[`color-
|
|
133
|
+
[`backgroundColor-Button-${variant}-ghost--active`]: tones.alpha2,
|
|
134
|
+
[`backgroundColor-Button-${variant}-ghost--hover`]: tones.alpha1,
|
|
135
|
+
[`color-Button-${variant}-ghost`]: tones.base,
|
|
136
|
+
[`color-Button-${variant}-ghost--hover`]: tones.tone1,
|
|
137
|
+
[`color-Button-${variant}-ghost--active`]: tones.tone2,
|
|
138
138
|
};
|
|
139
139
|
});
|
|
140
140
|
ret = Object.assign(Object.assign(Object.assign(Object.assign({}, ret), solidTones), outlinedTones), ghostTones);
|
|
@@ -214,22 +214,22 @@ function generatePaddingSegments(theme) {
|
|
|
214
214
|
// --- Done
|
|
215
215
|
return result;
|
|
216
216
|
}
|
|
217
|
-
const borderRegEx = /^border-(
|
|
218
|
-
const thicknessBorderRegEx = /^
|
|
219
|
-
const thicknessBorderHorizontalRegEx = /^
|
|
220
|
-
const thicknessBorderVerticalRegEx = /^
|
|
221
|
-
const styleBorderRegEx = /^
|
|
222
|
-
const styleBorderHorizontalRegEx = /^
|
|
223
|
-
const styleBorderVerticalRegEx = /^
|
|
224
|
-
const borderLeftRegEx = /^
|
|
225
|
-
const borderRightRegEx = /^
|
|
226
|
-
const borderTopRegEx = /^
|
|
227
|
-
const borderBottomRegEx = /^
|
|
228
|
-
const borderHorizontalRegEx = /^
|
|
229
|
-
const borderVerticalRegEx = /^
|
|
230
|
-
const colorBorderRegEx = /^
|
|
231
|
-
const colorBorderHorizontalRegEx = /^
|
|
232
|
-
const colorBorderVerticalRegEx = /^
|
|
217
|
+
const borderRegEx = /^border-(.+)$/;
|
|
218
|
+
const thicknessBorderRegEx = /^borderWidth-(.+)$/;
|
|
219
|
+
const thicknessBorderHorizontalRegEx = /^borderHorizontalWidth-(.+)$/;
|
|
220
|
+
const thicknessBorderVerticalRegEx = /^borderVerticalWidth-(.+)$/;
|
|
221
|
+
const styleBorderRegEx = /^borderStyle-(.+)$/;
|
|
222
|
+
const styleBorderHorizontalRegEx = /^borderHorizontalStyle-(.+)$/;
|
|
223
|
+
const styleBorderVerticalRegEx = /^borderVerticalStyle-(.+)$/;
|
|
224
|
+
const borderLeftRegEx = /^borderLeft-(.+)$/;
|
|
225
|
+
const borderRightRegEx = /^borderRight-(.+)$/;
|
|
226
|
+
const borderTopRegEx = /^borderTop-(.+)$/;
|
|
227
|
+
const borderBottomRegEx = /^borderBottom-(.+)$/;
|
|
228
|
+
const borderHorizontalRegEx = /^borderHorizontal-(.+)$/;
|
|
229
|
+
const borderVerticalRegEx = /^borderVertical-(.+)$/;
|
|
230
|
+
const colorBorderRegEx = /^borderColor-(.+)$/;
|
|
231
|
+
const colorBorderHorizontalRegEx = /^borderHorizontalColor-(.+)$/;
|
|
232
|
+
const colorBorderVerticalRegEx = /^borderVerticalColor-(.+)$/;
|
|
233
233
|
/**
|
|
234
234
|
* Segment the border values to provide consistency
|
|
235
235
|
*/
|
|
@@ -247,201 +247,201 @@ function generateBorderSegments(theme) {
|
|
|
247
247
|
if (match) {
|
|
248
248
|
const remainder = match[1];
|
|
249
249
|
// --- Flow down the border value
|
|
250
|
-
result[`
|
|
251
|
-
result[`
|
|
252
|
-
result[`
|
|
253
|
-
result[`
|
|
250
|
+
result[`borderLeft-${remainder}`] = value;
|
|
251
|
+
result[`borderRight-${remainder}`] = value;
|
|
252
|
+
result[`borderTop-${remainder}`] = value;
|
|
253
|
+
result[`borderBottom-${remainder}`] = value;
|
|
254
254
|
// --- We have a border value to segment
|
|
255
255
|
const border = getBorderSegments(value);
|
|
256
|
-
result[`
|
|
257
|
-
(_a = result[_c = `
|
|
258
|
-
(_b = result[_d = `
|
|
256
|
+
result[`borderWidth-${remainder}`] = border.thickness;
|
|
257
|
+
(_a = result[_c = `borderStyle-${remainder}`]) !== null && _a !== void 0 ? _a : (result[_c] = border.style);
|
|
258
|
+
(_b = result[_d = `borderColor-${remainder}`]) !== null && _b !== void 0 ? _b : (result[_d] = border.color);
|
|
259
259
|
}
|
|
260
|
-
// --- Check "
|
|
260
|
+
// --- Check "borderWidth-" theme variables
|
|
261
|
+
match = thicknessBorderRegEx.exec(key);
|
|
262
|
+
if (match) {
|
|
263
|
+
// --- We have a borderWidth value to flow down
|
|
264
|
+
const remainder = match[1];
|
|
265
|
+
result[`borderLeftWidth-${remainder}`] = value;
|
|
266
|
+
result[`borderRightWidth-${remainder}`] = value;
|
|
267
|
+
result[`borderTopWidth-${remainder}`] = value;
|
|
268
|
+
result[`borderBottomWidth-${remainder}`] = value;
|
|
269
|
+
}
|
|
270
|
+
// --- Check "borderStyle-" theme variables
|
|
271
|
+
match = styleBorderRegEx.exec(key);
|
|
272
|
+
if (match) {
|
|
273
|
+
// --- We have a borderStyle value to flow down
|
|
274
|
+
const remainder = match[1];
|
|
275
|
+
result[`borderLeftStyle-${remainder}`] = value;
|
|
276
|
+
result[`borderRightStyle-${remainder}`] = value;
|
|
277
|
+
result[`borderTopStyle-${remainder}`] = value;
|
|
278
|
+
result[`borderBottomStyle-${remainder}`] = value;
|
|
279
|
+
}
|
|
280
|
+
// --- Check "borderColor-" theme variables
|
|
281
|
+
match = colorBorderRegEx.exec(key);
|
|
282
|
+
if (match) {
|
|
283
|
+
// --- We have a borderColor value to flow down
|
|
284
|
+
const remainder = match[1];
|
|
285
|
+
result[`borderLeftColor-${remainder}`] = value;
|
|
286
|
+
result[`borderRightColor-${remainder}`] = value;
|
|
287
|
+
result[`borderTopColor-${remainder}`] = value;
|
|
288
|
+
result[`borderBottomColor-${remainder}`] = value;
|
|
289
|
+
}
|
|
290
|
+
// --- Check "borderHorizontal" theme variables
|
|
261
291
|
match = borderHorizontalRegEx.exec(key);
|
|
262
292
|
if (match) {
|
|
263
|
-
// --- We have a
|
|
264
|
-
const remainder = match[
|
|
293
|
+
// --- We have a borderHorizontal value to segment
|
|
294
|
+
const remainder = match[1];
|
|
265
295
|
// --- Flow down the border value
|
|
266
|
-
result[`
|
|
267
|
-
result[`
|
|
296
|
+
result[`borderLeft-${remainder}`] = value;
|
|
297
|
+
result[`borderRight-${remainder}`] = value;
|
|
268
298
|
const border = getBorderSegments(value);
|
|
269
299
|
if (border.thickness) {
|
|
270
|
-
result[`
|
|
271
|
-
result[`
|
|
300
|
+
result[`borderLeftWidth-${remainder}`] = border.thickness;
|
|
301
|
+
result[`borderRightWidth-${remainder}`] = border.thickness;
|
|
272
302
|
}
|
|
273
303
|
if (border.style) {
|
|
274
|
-
result[`
|
|
275
|
-
result[`
|
|
304
|
+
result[`borderLeftStyle-${remainder}`] = border.style;
|
|
305
|
+
result[`borderRightStyle-${remainder}`] = border.style;
|
|
276
306
|
}
|
|
277
307
|
if (border.color) {
|
|
278
|
-
result[`
|
|
279
|
-
result[`
|
|
308
|
+
result[`borderLeftColor-${remainder}`] = border.color;
|
|
309
|
+
result[`borderRightColor-${remainder}`] = border.color;
|
|
280
310
|
}
|
|
281
311
|
}
|
|
282
|
-
// --- Check "
|
|
312
|
+
// --- Check "borderVertical" theme variables
|
|
283
313
|
match = borderVerticalRegEx.exec(key);
|
|
284
314
|
if (match) {
|
|
285
|
-
// --- We have a
|
|
286
|
-
const remainder = match[
|
|
315
|
+
// --- We have a borderVertical value to segment
|
|
316
|
+
const remainder = match[1];
|
|
287
317
|
// --- Flow down the border value
|
|
288
|
-
result[`
|
|
289
|
-
result[`
|
|
318
|
+
result[`borderTop-${remainder}`] = value;
|
|
319
|
+
result[`borderBottom-${remainder}`] = value;
|
|
290
320
|
const border = getBorderSegments(value);
|
|
291
321
|
if (border.thickness) {
|
|
292
|
-
result[`
|
|
293
|
-
result[`
|
|
322
|
+
result[`borderTopWidth-${remainder}`] = border.thickness;
|
|
323
|
+
result[`borderBottomWidth-${remainder}`] = border.thickness;
|
|
294
324
|
}
|
|
295
325
|
if (border.style) {
|
|
296
|
-
result[`
|
|
297
|
-
result[`
|
|
326
|
+
result[`borderTopStyle-${remainder}`] = border.style;
|
|
327
|
+
result[`borderBottomStyle-${remainder}`] = border.style;
|
|
298
328
|
}
|
|
299
329
|
if (border.color) {
|
|
300
|
-
result[`
|
|
301
|
-
result[`
|
|
330
|
+
result[`borderTopColor-${remainder}`] = border.color;
|
|
331
|
+
result[`borderBottomColor-${remainder}`] = border.color;
|
|
302
332
|
}
|
|
303
333
|
}
|
|
304
|
-
// --- Check "
|
|
334
|
+
// --- Check "borderLeft" theme variables
|
|
305
335
|
match = borderLeftRegEx.exec(key);
|
|
306
336
|
if (match) {
|
|
307
|
-
// --- We have a
|
|
308
|
-
const remainder = match[
|
|
337
|
+
// --- We have a borderLeft value to segment
|
|
338
|
+
const remainder = match[1];
|
|
309
339
|
const border = getBorderSegments(value);
|
|
310
|
-
if (border.thickness && !theme[`
|
|
311
|
-
result[`
|
|
340
|
+
if (border.thickness && !theme[`borderLeftWidth-${remainder}`]) {
|
|
341
|
+
result[`borderLeftWidth-${remainder}`] = border.thickness;
|
|
312
342
|
}
|
|
313
|
-
if (border.style && !theme[`
|
|
314
|
-
result[`
|
|
343
|
+
if (border.style && !theme[`borderLeftStyle-${remainder}`]) {
|
|
344
|
+
result[`borderLeftStyle-${remainder}`] = border.style;
|
|
315
345
|
}
|
|
316
|
-
if (border.color && !theme[`
|
|
317
|
-
result[`
|
|
346
|
+
if (border.color && !theme[`borderLeftColor-${remainder}`]) {
|
|
347
|
+
result[`borderLeftColor-${remainder}`] = border.color;
|
|
318
348
|
}
|
|
319
349
|
}
|
|
320
|
-
// --- Check "
|
|
350
|
+
// --- Check "borderRight" theme variables
|
|
321
351
|
match = borderRightRegEx.exec(key);
|
|
322
352
|
if (match) {
|
|
323
|
-
// --- We have a
|
|
324
|
-
const remainder = match[
|
|
353
|
+
// --- We have a borderRight value to segment
|
|
354
|
+
const remainder = match[1];
|
|
325
355
|
const border = getBorderSegments(value);
|
|
326
356
|
if (border.thickness) {
|
|
327
|
-
result[`
|
|
357
|
+
result[`borderRightWidth-${remainder}`] = border.thickness;
|
|
328
358
|
}
|
|
329
359
|
if (border.style) {
|
|
330
|
-
result[`
|
|
360
|
+
result[`borderRightStyle-${remainder}`] = border.style;
|
|
331
361
|
}
|
|
332
362
|
if (border.color) {
|
|
333
|
-
result[`
|
|
363
|
+
result[`borderRightColor-${remainder}`] = border.color;
|
|
334
364
|
}
|
|
335
365
|
}
|
|
336
|
-
// --- Check "
|
|
366
|
+
// --- Check "borderTop" theme variables
|
|
337
367
|
match = borderTopRegEx.exec(key);
|
|
338
368
|
if (match) {
|
|
339
|
-
// --- We have a
|
|
340
|
-
const remainder = match[
|
|
369
|
+
// --- We have a borderTop value to segment
|
|
370
|
+
const remainder = match[1];
|
|
341
371
|
const border = getBorderSegments(value);
|
|
342
372
|
if (border.thickness) {
|
|
343
|
-
result[`
|
|
373
|
+
result[`borderTopWidth-${remainder}`] = border.thickness;
|
|
344
374
|
}
|
|
345
375
|
if (border.style) {
|
|
346
|
-
result[`
|
|
376
|
+
result[`borderTopStyle-${remainder}`] = border.style;
|
|
347
377
|
}
|
|
348
378
|
if (border.color) {
|
|
349
|
-
result[`
|
|
379
|
+
result[`borderTopColor-${remainder}`] = border.color;
|
|
350
380
|
}
|
|
351
381
|
}
|
|
352
|
-
// --- Check "
|
|
382
|
+
// --- Check "borderBottom" theme variables
|
|
353
383
|
match = borderBottomRegEx.exec(key);
|
|
354
384
|
if (match) {
|
|
355
|
-
// --- We have a
|
|
356
|
-
const remainder = match[
|
|
385
|
+
// --- We have a borderBottom value to segment
|
|
386
|
+
const remainder = match[1];
|
|
357
387
|
const border = getBorderSegments(value);
|
|
358
388
|
if (border.thickness) {
|
|
359
|
-
result[`
|
|
389
|
+
result[`borderBottomWidth-${remainder}`] = border.thickness;
|
|
360
390
|
}
|
|
361
391
|
if (border.style) {
|
|
362
|
-
result[`
|
|
392
|
+
result[`borderBottomStyle-${remainder}`] = border.style;
|
|
363
393
|
}
|
|
364
394
|
if (border.color) {
|
|
365
|
-
result[`
|
|
395
|
+
result[`borderBottomColor-${remainder}`] = border.color;
|
|
366
396
|
}
|
|
367
397
|
}
|
|
368
|
-
// --- Check "
|
|
369
|
-
match = thicknessBorderRegEx.exec(key);
|
|
370
|
-
if (match) {
|
|
371
|
-
// --- We have a thickness-border value to flow down
|
|
372
|
-
const remainder = match[1];
|
|
373
|
-
result[`thickness-border-left-${remainder}`] = value;
|
|
374
|
-
result[`thickness-border-right-${remainder}`] = value;
|
|
375
|
-
result[`thickness-border-top-${remainder}`] = value;
|
|
376
|
-
result[`thickness-border-bottom-${remainder}`] = value;
|
|
377
|
-
}
|
|
378
|
-
// --- Check "thickness-border-horizontal" theme variables
|
|
398
|
+
// --- Check "borderHorizontalWidth" theme variables
|
|
379
399
|
match = thicknessBorderHorizontalRegEx.exec(key);
|
|
380
400
|
if (match) {
|
|
381
|
-
// --- We have a
|
|
382
|
-
const remainder = match[
|
|
383
|
-
result[`
|
|
384
|
-
result[`
|
|
401
|
+
// --- We have a borderHorizontalWidth value to flow down
|
|
402
|
+
const remainder = match[1];
|
|
403
|
+
result[`borderLeftWidth-${remainder}`] = value;
|
|
404
|
+
result[`borderRightWidth-${remainder}`] = value;
|
|
385
405
|
}
|
|
386
|
-
// --- Check "
|
|
406
|
+
// --- Check "borderVerticalWidth" theme variables
|
|
387
407
|
match = thicknessBorderVerticalRegEx.exec(key);
|
|
388
408
|
if (match) {
|
|
389
|
-
// --- We have a
|
|
390
|
-
const remainder = match[2];
|
|
391
|
-
result[`thickness-border-top-${remainder}`] = value;
|
|
392
|
-
result[`thickness-border-bottom-${remainder}`] = value;
|
|
393
|
-
}
|
|
394
|
-
// --- Check "style-border-" theme variables
|
|
395
|
-
match = styleBorderRegEx.exec(key);
|
|
396
|
-
if (match) {
|
|
397
|
-
// --- We have a style-border value to flow down
|
|
409
|
+
// --- We have a borderVerticalWidth value to flow down
|
|
398
410
|
const remainder = match[1];
|
|
399
|
-
result[`
|
|
400
|
-
result[`
|
|
401
|
-
result[`style-border-top-${remainder}`] = value;
|
|
402
|
-
result[`style-border-bottom-${remainder}`] = value;
|
|
411
|
+
result[`borderTopWidth-${remainder}`] = value;
|
|
412
|
+
result[`borderBottomWidth-${remainder}`] = value;
|
|
403
413
|
}
|
|
404
|
-
// --- Check "
|
|
414
|
+
// --- Check "borderHorizontalStyle" theme variables
|
|
405
415
|
match = styleBorderHorizontalRegEx.exec(key);
|
|
406
416
|
if (match) {
|
|
407
|
-
// --- We have a
|
|
408
|
-
const remainder = match[
|
|
409
|
-
result[`
|
|
410
|
-
result[`
|
|
417
|
+
// --- We have a borderHorizontalStyle value to flow down
|
|
418
|
+
const remainder = match[1];
|
|
419
|
+
result[`borderLeftStyle-${remainder}`] = value;
|
|
420
|
+
result[`borderRightStyle-${remainder}`] = value;
|
|
411
421
|
}
|
|
412
|
-
// --- Check "
|
|
422
|
+
// --- Check "borderVerticalStyle" theme variables
|
|
413
423
|
match = styleBorderVerticalRegEx.exec(key);
|
|
414
424
|
if (match) {
|
|
415
|
-
// --- We have a
|
|
416
|
-
const remainder = match[2];
|
|
417
|
-
result[`style-border-top-${remainder}`] = value;
|
|
418
|
-
result[`style-border-bottom-${remainder}`] = value;
|
|
419
|
-
}
|
|
420
|
-
// --- Check "color-border-" theme variables
|
|
421
|
-
match = colorBorderRegEx.exec(key);
|
|
422
|
-
if (match) {
|
|
423
|
-
// --- We have a color-border value to flow down
|
|
425
|
+
// --- We have a borderVerticalStyle value to flow down
|
|
424
426
|
const remainder = match[1];
|
|
425
|
-
result[`
|
|
426
|
-
result[`
|
|
427
|
-
result[`color-border-top-${remainder}`] = value;
|
|
428
|
-
result[`color-border-bottom-${remainder}`] = value;
|
|
427
|
+
result[`borderTopStyle-${remainder}`] = value;
|
|
428
|
+
result[`borderBottomStyle-${remainder}`] = value;
|
|
429
429
|
}
|
|
430
|
-
// --- Check "
|
|
430
|
+
// --- Check "borderHorizontalColor" theme variables
|
|
431
431
|
match = colorBorderHorizontalRegEx.exec(key);
|
|
432
432
|
if (match) {
|
|
433
|
-
// --- We have a
|
|
434
|
-
const remainder = match[
|
|
435
|
-
result[`
|
|
436
|
-
result[`
|
|
433
|
+
// --- We have a borderHorizontalColor value to flow down
|
|
434
|
+
const remainder = match[1];
|
|
435
|
+
result[`borderLeftColor-${remainder}`] = value;
|
|
436
|
+
result[`borderRightColor-${remainder}`] = value;
|
|
437
437
|
}
|
|
438
|
-
// --- Check "
|
|
438
|
+
// --- Check "borderVerticalColor" theme variables
|
|
439
439
|
match = colorBorderVerticalRegEx.exec(key);
|
|
440
440
|
if (match) {
|
|
441
|
-
// --- We have a
|
|
442
|
-
const remainder = match[
|
|
443
|
-
result[`
|
|
444
|
-
result[`
|
|
441
|
+
// --- We have a borderVerticalColor value to flow down
|
|
442
|
+
const remainder = match[1];
|
|
443
|
+
result[`borderTopColor-${remainder}`] = value;
|
|
444
|
+
result[`borderBottomColor-${remainder}`] = value;
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
// --- Done
|
|
@@ -2708,12 +2708,12 @@ class Parser {
|
|
|
2708
2708
|
if (Array.isArray(prop)) {
|
|
2709
2709
|
}
|
|
2710
2710
|
else {
|
|
2711
|
-
reportError("W018");
|
|
2711
|
+
this.reportError("W018");
|
|
2712
2712
|
return null;
|
|
2713
2713
|
}
|
|
2714
2714
|
const [propKey, propValue] = prop;
|
|
2715
2715
|
if (propKey.type !== "IdE") {
|
|
2716
|
-
reportError("W018");
|
|
2716
|
+
this.reportError("W018");
|
|
2717
2717
|
return null;
|
|
2718
2718
|
}
|
|
2719
2719
|
let objD;
|