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.
- package/dist/_commonjsHelpers-BkfeUUK-.mjs +28 -0
- package/dist/{apiInterceptorWorker-CE7NtDJI.mjs → apiInterceptorWorker-C5K2aqZR.mjs} +1 -1
- package/dist/index-DG5iykVX.mjs +28210 -0
- 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/abstractions/ComponentDefs.js +2 -1
- package/dist/scripts/src/components/Accordion/Accordion.js +14 -14
- package/dist/scripts/src/components/App/App.js +3 -3
- package/dist/scripts/src/components/App/AppNative.js +2 -2
- package/dist/scripts/src/components/AppHeader/AppHeader.js +6 -3
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +19 -19
- package/dist/scripts/src/components/Avatar/Avatar.js +7 -7
- package/dist/scripts/src/components/Badge/Badge.js +8 -8
- package/dist/scripts/src/components/Button/Button.js +79 -79
- package/dist/scripts/src/components/Card/Card.js +5 -5
- package/dist/scripts/src/components/Carousel/Carousel.js +18 -15
- package/dist/scripts/src/components/Checkbox/Checkbox.js +14 -14
- package/dist/scripts/src/components/ComponentProvider.js +2 -1
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +1 -1
- package/dist/scripts/src/components/DatePicker/DatePicker.js +9 -9
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +17 -17
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +3 -3
- package/dist/scripts/src/components/Footer/Footer.js +5 -5
- package/dist/scripts/src/components/Form/Form.js +16 -16
- package/dist/scripts/src/components/FormItem/FormItem.js +5 -5
- package/dist/scripts/src/components/Heading/Heading.js +22 -28
- package/dist/scripts/src/components/Heading/HeadingNative.js +2 -1
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +68 -31
- package/dist/scripts/src/components/IconRegistryContext.js +243 -242
- package/dist/scripts/src/components/Link/Link.js +22 -19
- package/dist/scripts/src/components/List/ListNative.js +53 -39
- package/dist/scripts/src/components/Markdown/Markdown.js +6 -6
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +73 -17
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +2 -2
- package/dist/scripts/src/components/NavGroup/NavGroup.js +3 -3
- package/dist/scripts/src/components/NavLink/NavLink.js +26 -23
- package/dist/scripts/src/components/NavPanel/NavPanel.js +8 -8
- package/dist/scripts/src/components/NoResult/NoResult.js +2 -2
- package/dist/scripts/src/components/OffCanvas/OffCanvas.js +5 -5
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +4 -4
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +18 -18
- package/dist/scripts/src/components/Select/Select.js +21 -21
- package/dist/scripts/src/components/Select/SelectNative.js +16 -15
- 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 +29 -29
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +27 -27
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +2 -1
- package/dist/scripts/src/components/Tabs/Tabs.js +12 -12
- package/dist/scripts/src/components/Text/Text.js +60 -61
- package/dist/scripts/src/components/TextBox/TextBox.js +17 -17
- package/dist/scripts/src/components/Theme/ThemeNative.js +1 -1
- package/dist/scripts/src/components-core/descriptorHelper.js +7 -7
- package/dist/scripts/src/components-core/theming/layout-resolver.js +26 -26
- package/dist/scripts/src/components-core/theming/themes/base-utils.js +7 -23
- package/dist/scripts/src/components-core/theming/themes/root.js +101 -114
- package/dist/scripts/src/components-core/theming/themes/solid.js +3 -3
- package/dist/scripts/src/components-core/theming/themes/xmlui.js +4 -4
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +189 -189
- package/dist/scripts/src/components-core/utils/hooks.js +2 -2
- package/dist/scripts/src/parsers/scripting/Parser.js +2 -2
- package/dist/style.css +1 -1
- package/dist/xmlui-metadata.mjs +8534 -8204
- package/dist/xmlui-metadata.umd.js +11 -11
- package/dist/xmlui-parser.d.ts +1 -0
- package/dist/xmlui-parser.mjs +53 -52
- package/dist/xmlui-standalone.umd.js +174 -174
- package/dist/xmlui.d.ts +5 -4
- package/dist/xmlui.mjs +13 -12
- package/package.json +11 -5
- package/dist/index-lMqf6HyK.mjs +0 -27841
- package/dist/lint-DgP_MIP6.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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createMetadata = createMetadata;
|
|
4
4
|
exports.d = d;
|
|
5
|
-
function createMetadata({ description, shortDescription, specializedFrom, status, props, events, contextVars, apis, nonVisual, opaque, themeVars, defaultThemeVars, toneSpecificThemeVars, allowArbitraryProps, docFolder, isHtmlTag, }) {
|
|
5
|
+
function createMetadata({ description, shortDescription, specializedFrom, status, props, events, contextVars, apis, nonVisual, opaque, themeVars, themeVarDescriptions, defaultThemeVars, toneSpecificThemeVars, allowArbitraryProps, docFolder, isHtmlTag, }) {
|
|
6
6
|
return {
|
|
7
7
|
description,
|
|
8
8
|
shortDescription,
|
|
@@ -16,6 +16,7 @@ function createMetadata({ description, shortDescription, specializedFrom, status
|
|
|
16
16
|
opaque,
|
|
17
17
|
themeVars,
|
|
18
18
|
defaultThemeVars,
|
|
19
|
+
themeVarDescriptions,
|
|
19
20
|
toneSpecificThemeVars,
|
|
20
21
|
allowArbitraryProps,
|
|
21
22
|
docFolder,
|
|
@@ -61,29 +61,29 @@ exports.AccordionMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
61
61
|
},
|
|
62
62
|
themeVars: (0, themeVars_1.parseScssVar)(Accordion_module_scss_1.default.themeVars),
|
|
63
63
|
defaultThemeVars: {
|
|
64
|
-
[`
|
|
65
|
-
[`
|
|
64
|
+
[`paddingHorizontal-header-${COMP}`]: "$space-3",
|
|
65
|
+
[`paddingVertical-header-${COMP}`]: "$space-3",
|
|
66
66
|
[`align-vertical-header-${COMP}`]: "center",
|
|
67
|
-
[`
|
|
68
|
-
[`
|
|
69
|
-
[`
|
|
70
|
-
[`border-${COMP}`]: "0px solid $
|
|
67
|
+
[`fontSize-header-${COMP}`]: "$fontSize-normal",
|
|
68
|
+
[`fontWeight-header-${COMP}`]: "$fontWeight-normal",
|
|
69
|
+
[`fontFamily-header-${COMP}`]: "$fontFamily",
|
|
70
|
+
[`border-${COMP}`]: "0px solid $borderColor",
|
|
71
71
|
[`width-icon-${COMP}`]: "",
|
|
72
72
|
[`height-icon-${COMP}`]: "",
|
|
73
73
|
light: {
|
|
74
|
-
[`
|
|
75
|
-
[`
|
|
74
|
+
[`backgroundColor-header-${COMP}`]: "$color-primary-500",
|
|
75
|
+
[`backgroundColor-header-${COMP}-hover`]: "$color-primary-400",
|
|
76
76
|
[`color-header-${COMP}`]: "$color-surface-50",
|
|
77
|
-
[`color-content-${COMP}`]: "$
|
|
78
|
-
[`
|
|
77
|
+
[`color-content-${COMP}`]: "$textColor-primary",
|
|
78
|
+
[`backgroundColor-content-${COMP}`]: "transparent",
|
|
79
79
|
[`color-icon-${COMP}`]: "$color-surface-50",
|
|
80
80
|
},
|
|
81
81
|
dark: {
|
|
82
|
-
[`
|
|
83
|
-
[`
|
|
82
|
+
[`backgroundColor-header-${COMP}`]: "$color-primary-500",
|
|
83
|
+
[`backgroundColor-header-${COMP}-hover`]: "$color-primary-600",
|
|
84
84
|
[`color-header-${COMP}`]: "$color-surface-50",
|
|
85
|
-
[`color-content-${COMP}`]: "$
|
|
86
|
-
[`
|
|
85
|
+
[`color-content-${COMP}`]: "$textColor-primary",
|
|
86
|
+
[`backgroundColor-content-${COMP}`]: "transparent",
|
|
87
87
|
[`color-icon-${COMP}`]: "$color-surface-50",
|
|
88
88
|
},
|
|
89
89
|
},
|
|
@@ -75,9 +75,9 @@ exports.AppMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
75
75
|
themeVars: (0, themeVars_1.parseScssVar)(App_module_scss_1.default.themeVars),
|
|
76
76
|
defaultThemeVars: {
|
|
77
77
|
[`width-navPanel-${COMP}`]: "$space-64",
|
|
78
|
-
[`
|
|
79
|
-
[`
|
|
80
|
-
[`
|
|
78
|
+
[`maxWidth-content-${COMP}`]: "$maxWidth-content",
|
|
79
|
+
[`boxShadow-header-${COMP}`]: "$boxShadow-spread",
|
|
80
|
+
[`boxShadow-pages-${COMP}`]: "$boxShadow-spread",
|
|
81
81
|
[`scroll-padding-block-Pages`]: "$space-4",
|
|
82
82
|
light: {
|
|
83
83
|
// --- No light-specific theme vars
|
|
@@ -97,7 +97,7 @@ function App({ children, style, layout, loggedInUser, scrollWholePage, noScrollb
|
|
|
97
97
|
"--footer-height": !scrollWholePage ? 0 : footerHeight + "px",
|
|
98
98
|
"--header-abs-height": headerHeight + "px",
|
|
99
99
|
"--footer-abs-height": footerHeight + "px",
|
|
100
|
-
"--scrollbar-width": noScrollbarGutters ? 0 :
|
|
100
|
+
"--scrollbar-width": noScrollbarGutters ? 0 : scrollbarWidth + "px",
|
|
101
101
|
};
|
|
102
102
|
}, [footerHeight, headerHeight, noScrollbarGutters, scrollWholePage, scrollbarWidth]);
|
|
103
103
|
const [drawerVisible, setDrawerVisible] = (0, react_1.useState)(false);
|
|
@@ -105,7 +105,7 @@ function App({ children, style, layout, loggedInUser, scrollWholePage, noScrollb
|
|
|
105
105
|
const toggleDrawer = (0, react_1.useCallback)(() => {
|
|
106
106
|
setDrawerVisible((prev) => !prev);
|
|
107
107
|
}, []);
|
|
108
|
-
(0,
|
|
108
|
+
(0, hooks_1.useIsomorphicLayoutEffect)(() => {
|
|
109
109
|
var _a;
|
|
110
110
|
(_a = scrollContainerRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo({
|
|
111
111
|
top: 0,
|
|
@@ -34,10 +34,13 @@ exports.AppHeaderMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
themeVars: (0, themeVars_1.parseScssVar)(AppHeader_module_scss_1.default.themeVars),
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
themeVarDescriptions: {
|
|
38
|
+
[`width-logo-${COMP}`]: "Sets the width of the displayed logo",
|
|
39
|
+
},
|
|
40
|
+
defaultThemeVars: Object.assign(Object.assign(Object.assign({ [`height-${COMP}`]: "$space-14", [`maxWidth-content-${COMP}`]: "$maxWidth-content-App", [`borderBottom-${COMP}`]: "1px solid $borderColor" }, (0, base_utils_1.paddingSubject)(`logo-${COMP}`, { horizontal: "$space-0", vertical: "$space-4" })), (0, base_utils_1.paddingSubject)(COMP, { horizontal: "$space-4", vertical: "$space-0" })), { [`borderRadius-${COMP}`]: "0px", light: {
|
|
41
|
+
[`backgroundColor-${COMP}`]: "white",
|
|
39
42
|
}, dark: {
|
|
40
|
-
|
|
43
|
+
[`backgroundColor-${COMP}`]: "$color-surface-900",
|
|
41
44
|
} }),
|
|
42
45
|
});
|
|
43
46
|
exports.appHeaderComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.AppHeaderMd, ({ node, renderChild, layoutCss, layoutContext, extractValue }) => {
|
|
@@ -49,28 +49,28 @@ exports.AutoCompleteMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
49
49
|
},
|
|
50
50
|
themeVars: (0, themeVars_1.parseScssVar)(AutoComplete_module_scss_1.default.themeVars),
|
|
51
51
|
defaultThemeVars: {
|
|
52
|
-
[`
|
|
53
|
-
[`
|
|
54
|
-
[`
|
|
55
|
-
[`
|
|
56
|
-
[`
|
|
57
|
-
[`
|
|
58
|
-
[`
|
|
59
|
-
[`
|
|
60
|
-
[`
|
|
61
|
-
[`
|
|
62
|
-
[`
|
|
52
|
+
[`backgroundColor-menu-${COMP}`]: "$backgroundColor-primary",
|
|
53
|
+
[`boxShadow-menu-${COMP}`]: "$boxShadow-md",
|
|
54
|
+
[`borderRadius-menu-${COMP}`]: "$borderRadius",
|
|
55
|
+
[`backgroundColor-item-${COMP}`]: "$backgroundColor-dropdown-item",
|
|
56
|
+
[`backgroundColor-item-${COMP}--hover`]: "$backgroundColor-dropdown-item--active",
|
|
57
|
+
[`backgroundColor-item-${COMP}--active`]: "$backgroundColor-dropdown-item--active",
|
|
58
|
+
[`minHeight-Input`]: "39px",
|
|
59
|
+
[`backgroundColor-${COMP}-badge`]: "$color-primary-500",
|
|
60
|
+
[`fontSize-${COMP}-badge`]: "$fontSize-small",
|
|
61
|
+
[`paddingHorizontal-${COMP}-badge`]: "$space-1",
|
|
62
|
+
[`paddingVertical-${COMP}-badge`]: "$space-1",
|
|
63
63
|
light: {
|
|
64
|
-
[`
|
|
65
|
-
[`
|
|
66
|
-
[`color-
|
|
67
|
-
[`color
|
|
64
|
+
[`backgroundColor-${COMP}-badge--hover`]: "$color-primary-400",
|
|
65
|
+
[`backgroundColor-${COMP}-badge--active`]: "$color-primary-500",
|
|
66
|
+
[`color-item-${COMP}--disabled`]: "$color-surface-200",
|
|
67
|
+
[`color-${COMP}-badge`]: "$color-surface-50",
|
|
68
68
|
},
|
|
69
69
|
dark: {
|
|
70
|
-
[`
|
|
71
|
-
[`
|
|
72
|
-
[`color
|
|
73
|
-
[`color-
|
|
70
|
+
[`backgroundColor-${COMP}-badge--hover`]: "$color-primary-600",
|
|
71
|
+
[`backgroundColor-${COMP}-badge--active`]: "$color-primary-500",
|
|
72
|
+
[`color-${COMP}-badge`]: "$color-surface-50",
|
|
73
|
+
[`color-item-${COMP}--disabled`]: "$color-surface-800",
|
|
74
74
|
},
|
|
75
75
|
},
|
|
76
76
|
});
|
|
@@ -35,18 +35,18 @@ exports.AvatarMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
35
35
|
},
|
|
36
36
|
themeVars: (0, themeVars_1.parseScssVar)(Avatar_module_scss_1.default.themeVars),
|
|
37
37
|
defaultThemeVars: {
|
|
38
|
-
[`
|
|
39
|
-
[`
|
|
40
|
-
[`color
|
|
41
|
-
[`
|
|
38
|
+
[`borderRadius-${COMP}`]: "4px",
|
|
39
|
+
[`boxShadow-${COMP}`]: "inset 0 0 0 1px rgba(4,32,69,0.1)",
|
|
40
|
+
[`color-${COMP}`]: "$textColor-secondary",
|
|
41
|
+
[`fontWeight-${COMP}`]: "$fontWeight-bold",
|
|
42
42
|
light: {
|
|
43
43
|
[`border-${COMP}`]: "0px solid $color-surface-400A80",
|
|
44
|
-
[`
|
|
44
|
+
[`backgroundColor-${COMP}`]: "$color-surface-100",
|
|
45
45
|
},
|
|
46
46
|
dark: {
|
|
47
47
|
[`border-${COMP}`]: "0px solid $color-surface-700",
|
|
48
|
-
[`
|
|
49
|
-
[`
|
|
48
|
+
[`backgroundColor-${COMP}`]: "$color-surface-800",
|
|
49
|
+
[`borderColor-${COMP}`]: "$color-surface-700",
|
|
50
50
|
},
|
|
51
51
|
},
|
|
52
52
|
});
|
|
@@ -44,18 +44,18 @@ exports.BadgeMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
44
44
|
themeVars: (0, themeVars_1.parseScssVar)(Badge_module_scss_1.default.themeVars),
|
|
45
45
|
defaultThemeVars: {
|
|
46
46
|
[`padding-${COMP}`]: `$space-0_5 $space-2`,
|
|
47
|
-
[`border-${COMP}`]: `0px solid $
|
|
47
|
+
[`border-${COMP}`]: `0px solid $borderColor`,
|
|
48
48
|
[`padding-${COMP}-pill`]: `$space-0_5 $space-2`,
|
|
49
|
-
[`
|
|
50
|
-
[`
|
|
51
|
-
[`
|
|
49
|
+
[`borderRadius-${COMP}`]: "4px",
|
|
50
|
+
[`fontSize-${COMP}`]: "0.8em",
|
|
51
|
+
[`fontSize-${COMP}-pill`]: "0.8em",
|
|
52
52
|
light: {
|
|
53
|
-
[`
|
|
54
|
-
[`color
|
|
53
|
+
[`backgroundColor-${COMP}`]: "rgba($color-secondary-500-rgb, .6)",
|
|
54
|
+
[`color-${COMP}`]: "white",
|
|
55
55
|
},
|
|
56
56
|
dark: {
|
|
57
|
-
[`
|
|
58
|
-
[`color
|
|
57
|
+
[`backgroundColor-${COMP}`]: "rgba($color-secondary-500-rgb, .6)",
|
|
58
|
+
[`color-${COMP}`]: "$color-surface-50",
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
61
|
});
|
|
@@ -95,88 +95,88 @@ exports.ButtonMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
95
95
|
defaultThemeVars: {
|
|
96
96
|
[`width-${COMP}`]: "fit-content",
|
|
97
97
|
[`height-${COMP}`]: "fit-content",
|
|
98
|
-
[`
|
|
99
|
-
[`
|
|
100
|
-
[`
|
|
101
|
-
[`
|
|
102
|
-
[`
|
|
103
|
-
[`
|
|
104
|
-
[`
|
|
105
|
-
[`
|
|
106
|
-
[`
|
|
107
|
-
[`color
|
|
108
|
-
[`
|
|
109
|
-
[`
|
|
110
|
-
[`
|
|
111
|
-
[`
|
|
112
|
-
[`
|
|
113
|
-
[`
|
|
114
|
-
[`
|
|
115
|
-
[`
|
|
116
|
-
[`
|
|
117
|
-
[`
|
|
118
|
-
[`
|
|
119
|
-
[`
|
|
120
|
-
[`
|
|
98
|
+
[`borderRadius-${COMP}`]: "$borderRadius",
|
|
99
|
+
[`fontSize-${COMP}`]: "$fontSize-small",
|
|
100
|
+
[`fontWeight-${COMP}`]: "$fontWeight-medium",
|
|
101
|
+
[`backgroundColor-${COMP}-primary`]: "$color-primary-500",
|
|
102
|
+
[`backgroundColor-${COMP}-attention`]: "$backgroundColor-attention",
|
|
103
|
+
[`borderColor-${COMP}-attention`]: "$color-attention",
|
|
104
|
+
[`backgroundColor-${COMP}--disabled`]: "$backgroundColor--disabled",
|
|
105
|
+
[`borderColor-${COMP}--disabled`]: "$borderColor--disabled",
|
|
106
|
+
[`borderStyle-${COMP}`]: "solid",
|
|
107
|
+
[`color-${COMP}--disabled`]: "$textColor--disabled",
|
|
108
|
+
[`outlineColor-${COMP}--focus`]: "$outlineColor--focus",
|
|
109
|
+
[`borderWidth-${COMP}`]: "1px",
|
|
110
|
+
[`outlineWidth-${COMP}--focus`]: "$outlineWidth--focus",
|
|
111
|
+
[`outlineStyle-${COMP}--focus`]: "$outlineStyle--focus",
|
|
112
|
+
[`outlineOffset-${COMP}--focus`]: "$outlineOffset--focus",
|
|
113
|
+
[`paddingHorizontal-${COMP}-xs`]: "$space-1",
|
|
114
|
+
[`paddingVertical-${COMP}-xs`]: "$space-0_5",
|
|
115
|
+
[`paddingHorizontal-${COMP}-sm`]: "$space-4",
|
|
116
|
+
[`paddingVertical-${COMP}-sm`]: "$space-2",
|
|
117
|
+
[`paddingHorizontal-${COMP}-md`]: "$space-4",
|
|
118
|
+
[`paddingVertical-${COMP}-md`]: "$space-3",
|
|
119
|
+
[`paddingHorizontal-${COMP}-lg`]: "$space-5",
|
|
120
|
+
[`paddingVertical-${COMP}-lg`]: "$space-4",
|
|
121
121
|
light: {
|
|
122
|
-
[`color
|
|
123
|
-
[`color
|
|
124
|
-
[`
|
|
125
|
-
[`
|
|
126
|
-
[`
|
|
127
|
-
[`
|
|
128
|
-
[`
|
|
129
|
-
[`
|
|
130
|
-
[`
|
|
131
|
-
[`color
|
|
132
|
-
[`color
|
|
133
|
-
[`color
|
|
134
|
-
[`
|
|
135
|
-
[`
|
|
136
|
-
[`
|
|
137
|
-
[`
|
|
138
|
-
[`
|
|
139
|
-
[`
|
|
140
|
-
[`
|
|
141
|
-
[`
|
|
142
|
-
[`
|
|
143
|
-
[`
|
|
144
|
-
[`
|
|
145
|
-
[`
|
|
146
|
-
[`
|
|
147
|
-
[`
|
|
148
|
-
[`
|
|
149
|
-
[`
|
|
122
|
+
[`color-${COMP}`]: "$color-surface-950",
|
|
123
|
+
[`color-${COMP}-solid`]: "$color-surface-50",
|
|
124
|
+
[`borderColor-${COMP}-primary`]: "$color-primary-500",
|
|
125
|
+
[`backgroundColor-${COMP}-primary--hover`]: "$color-primary-400",
|
|
126
|
+
[`backgroundColor-${COMP}-primary--active`]: "$color-primary-500",
|
|
127
|
+
[`backgroundColor-${COMP}-primary-outlined--hover`]: "$color-primary-50",
|
|
128
|
+
[`backgroundColor-${COMP}-primary-outlined--active`]: "$color-primary-100",
|
|
129
|
+
[`borderColor-${COMP}-primary-outlined`]: "$color-primary-600",
|
|
130
|
+
[`borderColor-${COMP}-primary-outlined--hover`]: "$color-primary-500",
|
|
131
|
+
[`color-${COMP}-primary-outlined`]: "$color-primary-900",
|
|
132
|
+
[`color-${COMP}-primary-outlined--hover`]: "$color-primary-950",
|
|
133
|
+
[`color-${COMP}-primary-outlined--active`]: "$color-primary-900",
|
|
134
|
+
[`backgroundColor-${COMP}-primary-ghost--hover`]: "$color-primary-50",
|
|
135
|
+
[`backgroundColor-${COMP}-primary-ghost--active`]: "$color-primary-100",
|
|
136
|
+
[`borderColor-${COMP}-secondary`]: "$color-secondary-100",
|
|
137
|
+
[`backgroundColor-${COMP}-secondary`]: "$color-secondary-500",
|
|
138
|
+
[`backgroundColor-${COMP}-secondary--hover`]: "$color-secondary-400",
|
|
139
|
+
[`backgroundColor-${COMP}-secondary--active`]: "$color-secondary-500",
|
|
140
|
+
[`backgroundColor-${COMP}-secondary-outlined--hover`]: "$color-secondary-50",
|
|
141
|
+
[`backgroundColor-${COMP}-secondary-outlined--active`]: "$color-secondary-100",
|
|
142
|
+
[`backgroundColor-${COMP}-secondary-ghost--hover`]: "$color-secondary-100",
|
|
143
|
+
[`backgroundColor-${COMP}-secondary-ghost--active`]: "$color-secondary-100",
|
|
144
|
+
[`backgroundColor-${COMP}-attention--hover`]: "$color-danger-400",
|
|
145
|
+
[`backgroundColor-${COMP}-attention--active`]: "$color-danger-500",
|
|
146
|
+
[`backgroundColor-${COMP}-attention-outlined--hover`]: "$color-danger-50",
|
|
147
|
+
[`backgroundColor-${COMP}-attention-outlined--active`]: "$color-danger-100",
|
|
148
|
+
[`backgroundColor-${COMP}-attention-ghost--hover`]: "$color-danger-50",
|
|
149
|
+
[`backgroundColor-${COMP}-attention-ghost--active`]: "$color-danger-100",
|
|
150
150
|
},
|
|
151
151
|
dark: {
|
|
152
|
-
[`color
|
|
153
|
-
[`color
|
|
154
|
-
[`
|
|
155
|
-
[`
|
|
156
|
-
[`
|
|
157
|
-
[`
|
|
158
|
-
[`
|
|
159
|
-
[`
|
|
160
|
-
[`
|
|
161
|
-
[`color
|
|
162
|
-
[`color
|
|
163
|
-
[`color
|
|
164
|
-
[`
|
|
165
|
-
[`
|
|
166
|
-
[`
|
|
167
|
-
[`
|
|
168
|
-
[`
|
|
169
|
-
[`
|
|
170
|
-
[`
|
|
171
|
-
[`
|
|
172
|
-
[`
|
|
173
|
-
[`
|
|
174
|
-
[`
|
|
175
|
-
[`
|
|
176
|
-
[`
|
|
177
|
-
[`
|
|
178
|
-
[`
|
|
179
|
-
[`
|
|
152
|
+
[`color-${COMP}`]: "$color-surface-50",
|
|
153
|
+
[`color-${COMP}-solid`]: "$color-surface-50",
|
|
154
|
+
[`borderColor-${COMP}-primary`]: "$color-primary-500",
|
|
155
|
+
[`backgroundColor-${COMP}-primary--hover`]: "$color-primary-600",
|
|
156
|
+
[`backgroundColor-${COMP}-primary--active`]: "$color-primary-500",
|
|
157
|
+
[`backgroundColor-${COMP}-primary-outlined--hover`]: "$color-primary-900",
|
|
158
|
+
[`backgroundColor-${COMP}-primary-outlined--active`]: "$color-primary-950",
|
|
159
|
+
[`borderColor-${COMP}-primary-outlined`]: "$color-primary-600",
|
|
160
|
+
[`borderColor-${COMP}-primary-outlined--hover`]: "$color-primary-500",
|
|
161
|
+
[`color-${COMP}-primary-outlined`]: "$color-primary-100",
|
|
162
|
+
[`color-${COMP}-primary-outlined--hover`]: "$color-primary-50",
|
|
163
|
+
[`color-${COMP}-primary-outlined--active`]: "$color-primary-100",
|
|
164
|
+
[`backgroundColor-${COMP}-primary-ghost--hover`]: "$color-primary-900",
|
|
165
|
+
[`backgroundColor-${COMP}-primary-ghost--active`]: "$color-primary-950",
|
|
166
|
+
[`borderColor-${COMP}-secondary`]: "$color-secondary-500",
|
|
167
|
+
[`backgroundColor-${COMP}-secondary`]: "$color-secondary-500",
|
|
168
|
+
[`backgroundColor-${COMP}-secondary--hover`]: "$color-secondary-400",
|
|
169
|
+
[`backgroundColor-${COMP}-secondary--active`]: "$color-secondary-500",
|
|
170
|
+
[`backgroundColor-${COMP}-secondary-outlined--hover`]: "$color-secondary-600",
|
|
171
|
+
[`backgroundColor-${COMP}-secondary-outlined--active`]: "$color-secondary-500",
|
|
172
|
+
[`backgroundColor-${COMP}-secondary-ghost--hover`]: "$color-secondary-900",
|
|
173
|
+
[`backgroundColor-${COMP}-secondary-ghost--active`]: "$color-secondary-950",
|
|
174
|
+
[`backgroundColor-${COMP}-attention--hover`]: "$color-danger-400",
|
|
175
|
+
[`backgroundColor-${COMP}-attention--active`]: "$color-danger-500",
|
|
176
|
+
[`backgroundColor-${COMP}-attention-outlined--hover`]: "$color-danger-900",
|
|
177
|
+
[`backgroundColor-${COMP}-attention-outlined--active`]: "$color-danger-950",
|
|
178
|
+
[`backgroundColor-${COMP}-attention-ghost--hover`]: "$color-danger-900",
|
|
179
|
+
[`backgroundColor-${COMP}-attention-ghost--active`]: "$color-danger-950",
|
|
180
180
|
},
|
|
181
181
|
},
|
|
182
182
|
});
|
|
@@ -54,14 +54,14 @@ exports.CardMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
54
54
|
themeVars: (0, themeVars_1.parseScssVar)(Card_module_scss_1.default.themeVars),
|
|
55
55
|
defaultThemeVars: {
|
|
56
56
|
[`padding-${COMP}`]: "$space-4",
|
|
57
|
-
[`border-${COMP}`]: "1px solid $
|
|
58
|
-
[`
|
|
59
|
-
[`
|
|
57
|
+
[`border-${COMP}`]: "1px solid $borderColor",
|
|
58
|
+
[`borderRadius-${COMP}`]: "$borderRadius",
|
|
59
|
+
[`boxShadow-${COMP}`]: "none",
|
|
60
60
|
light: {
|
|
61
|
-
[`
|
|
61
|
+
[`backgroundColor-${COMP}`]: "white",
|
|
62
62
|
},
|
|
63
63
|
dark: {
|
|
64
|
-
[`
|
|
64
|
+
[`backgroundColor-${COMP}`]: "$color-surface-900",
|
|
65
65
|
},
|
|
66
66
|
},
|
|
67
67
|
});
|
|
@@ -90,26 +90,29 @@ exports.CarouselMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
90
90
|
scrollNext: (0, ComponentDefs_1.d)("This method scrolls the carousel to the next slide."),
|
|
91
91
|
},
|
|
92
92
|
themeVars: (0, themeVars_1.parseScssVar)(Carousel_module_scss_1.default.themeVars),
|
|
93
|
+
themeVarDescriptions: {
|
|
94
|
+
[`width-indicator-${COMP}`]: "Sets the width of the indicator.",
|
|
95
|
+
},
|
|
93
96
|
defaultThemeVars: {
|
|
94
|
-
[`
|
|
95
|
-
[`color-
|
|
96
|
-
[`
|
|
97
|
-
[`color-
|
|
98
|
-
[`
|
|
99
|
-
[`
|
|
100
|
-
[`color-
|
|
101
|
-
[`color-
|
|
102
|
-
[`
|
|
103
|
-
[`
|
|
104
|
-
[`color-
|
|
105
|
-
[`color-
|
|
106
|
-
[`
|
|
107
|
-
[`color-
|
|
97
|
+
[`backgroundColor-control-${COMP}`]: "$color-primary",
|
|
98
|
+
[`color-control-${COMP}`]: "$textColor",
|
|
99
|
+
[`backgroundColor-control-hover-${COMP}`]: "$color-primary",
|
|
100
|
+
[`color-control-hover-${COMP}`]: "$textColor",
|
|
101
|
+
[`backgroundColor-control-active-${COMP}`]: "$color-primary",
|
|
102
|
+
[`backgroundColor-control-disabled-${COMP}`]: "$color-surface-200",
|
|
103
|
+
[`color-control-disabled-${COMP}`]: "$textColor-disabled",
|
|
104
|
+
[`color-control-active-${COMP}`]: "$color-primary",
|
|
105
|
+
[`backgroundColor-indicator-${COMP}`]: "$color-surface-200",
|
|
106
|
+
[`backgroundColor-indicator-active-${COMP}`]: "$color-primary",
|
|
107
|
+
[`color-indicator-${COMP}`]: "$color-primary",
|
|
108
|
+
[`color-indicator-active-${COMP}`]: "$color-primary",
|
|
109
|
+
[`backgroundColor-indicator-hover-${COMP}`]: "$color-surface-200",
|
|
110
|
+
[`color-indicator-hover-${COMP}`]: "$color-primary",
|
|
108
111
|
[`width-indicator-${COMP}`]: "25px",
|
|
109
112
|
[`height-indicator-${COMP}`]: "6px",
|
|
110
113
|
[`height-control-${COMP}`]: "36px",
|
|
111
114
|
[`width-control-${COMP}`]: "36px",
|
|
112
|
-
[`
|
|
115
|
+
[`borderRadius-control-${COMP}`]: "50%",
|
|
113
116
|
[`height-${COMP}`]: "100%",
|
|
114
117
|
[`width-${COMP}`]: "100%",
|
|
115
118
|
},
|
|
@@ -46,23 +46,23 @@ exports.CheckboxMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
46
46
|
},
|
|
47
47
|
themeVars: (0, themeVars_1.parseScssVar)(Toggle_module_scss_1.default.themeVars),
|
|
48
48
|
defaultThemeVars: {
|
|
49
|
-
[`
|
|
50
|
-
[`
|
|
51
|
-
[`
|
|
52
|
-
[`
|
|
53
|
-
[`
|
|
54
|
-
[`
|
|
49
|
+
[`borderColor-checked-${COMP}-error`]: `$borderColor-${COMP}-error`,
|
|
50
|
+
[`backgroundColor-checked-${COMP}-error`]: `$borderColor-${COMP}-error`,
|
|
51
|
+
[`borderColor-checked-${COMP}-warning`]: `$borderColor-${COMP}-warning`,
|
|
52
|
+
[`backgroundColor-checked-${COMP}-warning`]: `$borderColor-${COMP}-warning`,
|
|
53
|
+
[`borderColor-checked-${COMP}-success`]: `$borderColor-${COMP}-success`,
|
|
54
|
+
[`backgroundColor-checked-${COMP}-success`]: `$borderColor-${COMP}-success`,
|
|
55
55
|
light: {
|
|
56
|
-
[`
|
|
57
|
-
[`
|
|
58
|
-
[`
|
|
59
|
-
[`
|
|
56
|
+
[`backgroundColor-indicator-${COMP}`]: "$backgroundColor-primary",
|
|
57
|
+
[`borderColor-checked-${COMP}`]: "$color-primary-500",
|
|
58
|
+
[`backgroundColor-checked-${COMP}`]: "$color-primary-500",
|
|
59
|
+
[`backgroundColor-${COMP}--disabled`]: "$color-surface-200",
|
|
60
60
|
},
|
|
61
61
|
dark: {
|
|
62
|
-
[`
|
|
63
|
-
[`
|
|
64
|
-
[`
|
|
65
|
-
[`
|
|
62
|
+
[`backgroundColor-indicator-${COMP}`]: "$backgroundColor-primary",
|
|
63
|
+
[`borderColor-checked-${COMP}`]: "$color-primary-400",
|
|
64
|
+
[`backgroundColor-checked-${COMP}`]: "$color-primary-400",
|
|
65
|
+
[`backgroundColor-${COMP}--disabled`]: "$color-surface-800",
|
|
66
66
|
},
|
|
67
67
|
},
|
|
68
68
|
});
|
|
@@ -141,7 +141,8 @@ class ComponentRegistry {
|
|
|
141
141
|
// --- The pool of available loader renderers
|
|
142
142
|
this.loaders = new Map();
|
|
143
143
|
this.extensionRegistered = (extension) => {
|
|
144
|
-
|
|
144
|
+
var _a;
|
|
145
|
+
(_a = extension.components) === null || _a === void 0 ? void 0 : _a.forEach((c) => {
|
|
145
146
|
if ("type" in c) {
|
|
146
147
|
//we handle just the js components for now
|
|
147
148
|
this.registerComponentRenderer(c, extension.namespace);
|
|
@@ -31,7 +31,7 @@ exports.ContentSeparatorMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
31
31
|
},
|
|
32
32
|
themeVars: (0, themeVars_1.parseScssVar)(ContentSeparator_module_scss_1.default.themeVars),
|
|
33
33
|
defaultThemeVars: {
|
|
34
|
-
[`
|
|
34
|
+
[`backgroundColor-${COMP}`]: "$borderColor",
|
|
35
35
|
[`size-${COMP}`]: "1px",
|
|
36
36
|
light: {
|
|
37
37
|
// --- No light-specific theme vars
|
|
@@ -108,18 +108,18 @@ exports.DatePickerMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
108
108
|
},
|
|
109
109
|
themeVars: (0, themeVars_1.parseScssVar)(DatePicker_module_scss_1.default.themeVars),
|
|
110
110
|
defaultThemeVars: {
|
|
111
|
-
[`
|
|
112
|
-
[`
|
|
113
|
-
[`color-
|
|
111
|
+
[`boxShadow-menu-${COMP}`]: "$boxShadow-md",
|
|
112
|
+
[`borderRadius-menu-${COMP}`]: "$borderRadius",
|
|
113
|
+
[`color-value-${COMP}`]: "$textColor-primary",
|
|
114
114
|
light: {
|
|
115
|
-
[`
|
|
116
|
-
[`
|
|
117
|
-
[`
|
|
115
|
+
[`backgroundColor-menu-${COMP}`]: "$color-surface-50",
|
|
116
|
+
[`backgroundColor-item-${COMP}--hover`]: "$color-surface-100",
|
|
117
|
+
[`backgroundColor-item-${COMP}--active`]: "$color-surface-200",
|
|
118
118
|
},
|
|
119
119
|
dark: {
|
|
120
|
-
[`
|
|
121
|
-
[`
|
|
122
|
-
[`
|
|
120
|
+
[`backgroundColor-menu-${COMP}`]: "$color-surface-950",
|
|
121
|
+
[`backgroundColor-item-${COMP}--hover`]: "$color-surface-600",
|
|
122
|
+
[`backgroundColor-item-${COMP}--active`]: "$color-surface-700",
|
|
123
123
|
},
|
|
124
124
|
},
|
|
125
125
|
});
|
|
@@ -62,11 +62,11 @@ exports.DropdownMenuMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
62
62
|
},
|
|
63
63
|
themeVars: (0, themeVars_1.parseScssVar)(DropdownMenu_module_scss_1.default.themeVars),
|
|
64
64
|
defaultThemeVars: {
|
|
65
|
-
[`
|
|
66
|
-
[`
|
|
67
|
-
[`
|
|
68
|
-
[`
|
|
69
|
-
[`
|
|
65
|
+
[`backgroundColor-${DDMCOMP}`]: "$backgroundColor-primary",
|
|
66
|
+
[`minWidth-${DDMCOMP}`]: "160px",
|
|
67
|
+
[`boxShadow-${DDMCOMP}`]: "$boxShadow-xl",
|
|
68
|
+
[`borderStyle-${DDMCOMP}-content`]: "solid",
|
|
69
|
+
[`borderRadius-${DDMCOMP}`]: "$borderRadius",
|
|
70
70
|
},
|
|
71
71
|
});
|
|
72
72
|
exports.dropdownMenuComponentRenderer = (0, renderers_1.createComponentRenderer)(DDMCOMP, exports.DropdownMenuMd, ({ node, extractValue, renderChild, registerComponentApi, layoutCss, lookupEventHandler }) => {
|
|
@@ -105,17 +105,17 @@ exports.MenuItemMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
105
105
|
},
|
|
106
106
|
themeVars: (0, themeVars_1.parseScssVar)(DropdownMenu_module_scss_1.default.themeVars),
|
|
107
107
|
defaultThemeVars: {
|
|
108
|
-
[`
|
|
109
|
-
[`color-${MICOMP}`]: "$
|
|
110
|
-
[`
|
|
111
|
-
[`
|
|
112
|
-
[`
|
|
113
|
-
[`
|
|
114
|
-
[`
|
|
108
|
+
[`backgroundColor-${MICOMP}`]: "$backgroundColor-dropdown-item",
|
|
109
|
+
[`color-${MICOMP}`]: "$textColor-primary",
|
|
110
|
+
[`fontFamily-${MICOMP}`]: "$fontFamily",
|
|
111
|
+
[`fontSize-${MICOMP}`]: "$fontSize-small",
|
|
112
|
+
[`paddingVertical-${MICOMP}`]: "$space-2",
|
|
113
|
+
[`paddingHorizontal-${MICOMP}`]: "$space-3",
|
|
114
|
+
[`backgroundColor-${MICOMP}--hover`]: "$backgroundColor-dropdown-item--hover",
|
|
115
115
|
[`color-${MICOMP}--hover`]: "inherit",
|
|
116
116
|
[`gap-${MICOMP}`]: "$space-2",
|
|
117
117
|
[`color-${MICOMP}--active`]: "$color-primary",
|
|
118
|
-
[`
|
|
118
|
+
[`backgroundColor-${MICOMP}--active`]: "$backgroundColor-dropdown-item--active",
|
|
119
119
|
light: {},
|
|
120
120
|
dark: {},
|
|
121
121
|
},
|
|
@@ -152,12 +152,12 @@ exports.MenuSeparatorMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
152
152
|
docFolder: DDMCOMP,
|
|
153
153
|
themeVars: (0, themeVars_1.parseScssVar)(DropdownMenu_module_scss_1.default.themeVars),
|
|
154
154
|
defaultThemeVars: {
|
|
155
|
-
[`
|
|
156
|
-
[`
|
|
155
|
+
[`marginTop-${MSEP}`]: "$space-1",
|
|
156
|
+
[`marginBottom-${MSEP}`]: "$space-1",
|
|
157
157
|
[`width-${MSEP}`]: "100%",
|
|
158
158
|
[`height-${MSEP}`]: "1px",
|
|
159
|
-
[`color-${MSEP}`]: "$
|
|
160
|
-
[`
|
|
159
|
+
[`color-${MSEP}`]: "$borderColor-dropdown-item",
|
|
160
|
+
[`marginHorizontal-${MSEP}`]: "12px",
|
|
161
161
|
},
|
|
162
162
|
});
|
|
163
163
|
exports.menuSeparatorRenderer = (0, renderers_1.createComponentRenderer)(MSEP, exports.MenuSeparatorMd, () => {
|