xmlui 0.7.34 → 0.8.1
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-CJUgtSE2.mjs} +1 -1
- package/dist/index-B09mlAcY.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/components/Accordion/Accordion.js +10 -10
- 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 +5 -5
- 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 +7 -7
- package/dist/scripts/src/components/Tabs/Tabs.js +12 -12
- package/dist/scripts/src/components/Text/Text.js +23 -23
- 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 +146 -146
- package/dist/xmlui.d.ts +3 -3
- package/dist/xmlui.mjs +1 -1
- package/package.json +11 -5
- package/dist/index-B90aqc2f.mjs +0 -28217
- 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
|
@@ -42,27 +42,27 @@ exports.SwitchMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
42
42
|
},
|
|
43
43
|
themeVars: (0, themeVars_1.parseScssVar)(Toggle_module_scss_1.default.themeVars),
|
|
44
44
|
defaultThemeVars: {
|
|
45
|
-
[`
|
|
46
|
-
[`
|
|
47
|
-
[`
|
|
48
|
-
[`
|
|
49
|
-
[`
|
|
50
|
-
[`
|
|
45
|
+
[`borderColor-checked-${COMP}-error`]: `$borderColor-${COMP}-error`,
|
|
46
|
+
[`backgroundColor-checked-${COMP}-error`]: `$borderColor-${COMP}-error`,
|
|
47
|
+
[`borderColor-checked-${COMP}-warning`]: `$borderColor-${COMP}-warning`,
|
|
48
|
+
[`backgroundColor-checked-${COMP}-warning`]: `$borderColor-${COMP}-warning`,
|
|
49
|
+
[`borderColor-checked-${COMP}-success`]: `$borderColor-${COMP}-success`,
|
|
50
|
+
[`backgroundColor-checked-${COMP}-success`]: `$borderColor-${COMP}-success`,
|
|
51
51
|
light: {
|
|
52
|
-
[`
|
|
53
|
-
[`
|
|
54
|
-
[`
|
|
55
|
-
[`
|
|
56
|
-
[`
|
|
57
|
-
[`
|
|
52
|
+
[`backgroundColor-${COMP}`]: "$color-surface-400",
|
|
53
|
+
[`borderColor-${COMP}`]: "$color-surface-400",
|
|
54
|
+
[`backgroundColor-indicator-${COMP}`]: "$backgroundColor-primary",
|
|
55
|
+
[`borderColor-checked-${COMP}`]: "$color-primary-500",
|
|
56
|
+
[`backgroundColor-checked-${COMP}`]: "$color-primary-500",
|
|
57
|
+
[`backgroundColor-${COMP}--disabled`]: "$color-surface-200",
|
|
58
58
|
},
|
|
59
59
|
dark: {
|
|
60
|
-
[`
|
|
61
|
-
[`
|
|
62
|
-
[`
|
|
63
|
-
[`
|
|
64
|
-
[`
|
|
65
|
-
[`
|
|
60
|
+
[`backgroundColor-${COMP}`]: "$color-surface-500",
|
|
61
|
+
[`borderColor-${COMP}`]: "$color-surface-500",
|
|
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
|
});
|
|
@@ -102,7 +102,7 @@ exports.TableMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
102
102
|
[`paddingHorizontal-cell-first-${COMP}`]: "$space-5",
|
|
103
103
|
[`paddingHorizontal-cell-last-${COMP}`]: "$space-5",
|
|
104
104
|
[`paddingVertical-cell-${COMP}`]: "$space-2",
|
|
105
|
-
[`border-cell-${COMP}`]: "1px solid $
|
|
105
|
+
[`border-cell-${COMP}`]: "1px solid $borderColor",
|
|
106
106
|
[`outlineWidth-heading-${COMP}--focus`]: "$outlineWidth--focus",
|
|
107
107
|
[`outlineStyle-heading-${COMP}--focus`]: "$outlineStyle--focus",
|
|
108
108
|
[`outlineOffset-heading-${COMP}--focus`]: "$outlineOffset--focus",
|
|
@@ -110,26 +110,26 @@ exports.TableMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
110
110
|
[`fontWeight-heading-${COMP}`]: "$fontWeight-bold",
|
|
111
111
|
[`textTransform-heading-${COMP}`]: "uppercase",
|
|
112
112
|
[`fontSize-row-${COMP}`]: "$fontSize-small",
|
|
113
|
-
[`
|
|
114
|
-
[`
|
|
115
|
-
[`
|
|
116
|
-
[`
|
|
113
|
+
[`backgroundColor-${COMP}`]: "$backgroundColor",
|
|
114
|
+
[`backgroundColor-row-${COMP}`]: "inherit",
|
|
115
|
+
[`backgroundColor-selected-${COMP}--hover`]: `$backgroundColor-row-${COMP}--hover`,
|
|
116
|
+
[`backgroundColor-pagination-${COMP}`]: `$backgroundColor-${COMP}`,
|
|
117
117
|
[`outlineColor-heading-${COMP}--focus`]: "$outlineColor--focus",
|
|
118
|
-
[`color-
|
|
118
|
+
[`color-pagination-${COMP}`]: "$color-secondary",
|
|
119
119
|
light: {
|
|
120
|
-
[`
|
|
121
|
-
[`
|
|
122
|
-
[`
|
|
123
|
-
[`
|
|
124
|
-
[`
|
|
125
|
-
[`color-
|
|
120
|
+
[`backgroundColor-row-${COMP}--hover`]: "$color-primary-50",
|
|
121
|
+
[`backgroundColor-selected-${COMP}`]: "$color-primary-100",
|
|
122
|
+
[`backgroundColor-heading-${COMP}--hover`]: "$color-surface-200",
|
|
123
|
+
[`backgroundColor-heading-${COMP}--active`]: "$color-surface-300",
|
|
124
|
+
[`backgroundColor-heading-${COMP}`]: "$color-surface-100",
|
|
125
|
+
[`color-heading-${COMP}`]: "$color-surface-500",
|
|
126
126
|
},
|
|
127
127
|
dark: {
|
|
128
|
-
[`
|
|
129
|
-
[`
|
|
130
|
-
[`
|
|
131
|
-
[`
|
|
132
|
-
[`
|
|
128
|
+
[`backgroundColor-row-${COMP}--hover`]: "$color-primary-900",
|
|
129
|
+
[`backgroundColor-selected-${COMP}`]: "$color-primary-800",
|
|
130
|
+
[`backgroundColor-heading-${COMP}--hover`]: "$color-surface-800",
|
|
131
|
+
[`backgroundColor-heading-${COMP}`]: "$color-surface-950",
|
|
132
|
+
[`backgroundColor-heading-${COMP}--active`]: "$color-surface-700",
|
|
133
133
|
},
|
|
134
134
|
},
|
|
135
135
|
});
|
|
@@ -45,7 +45,7 @@ exports.TableOfContentsMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
45
45
|
[`border-width-${COMP}Item--active`]: "$space-0_5",
|
|
46
46
|
[`border-style-${COMP}Item--active`]: "solid",
|
|
47
47
|
[`fontWeight-${COMP}Item--active`]: "$fontWeight-bold",
|
|
48
|
-
[`
|
|
48
|
+
[`backgroundColor-${COMP}`]: "transparent",
|
|
49
49
|
[`paddingHorizontal-${COMP}`]: "$space-8",
|
|
50
50
|
[`paddingVertical-${COMP}`]: "$space-4",
|
|
51
51
|
[`paddingHorizontal-${COMP}Item`]: "$space-2",
|
|
@@ -63,19 +63,19 @@ exports.TableOfContentsMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
63
63
|
[`border-color-${COMP}`]: "transparent",
|
|
64
64
|
[`border-style-${COMP}`]: "solid",
|
|
65
65
|
[`textTransform-${COMP}Item`]: "none",
|
|
66
|
-
[`
|
|
66
|
+
[`verticalAlign-${COMP}Item`]: "baseline",
|
|
67
67
|
[`letterSpacing-${COMP}Item`]: "0",
|
|
68
68
|
light: {
|
|
69
|
-
[`color-${COMP}Item`]: "$
|
|
70
|
-
[`border-color-${COMP}Item`]: "$
|
|
69
|
+
[`color-${COMP}Item`]: "$textColor-primary",
|
|
70
|
+
[`border-color-${COMP}Item`]: "$borderColor",
|
|
71
71
|
[`border-color-${COMP}Item--active`]: "$color-primary-500",
|
|
72
72
|
[`color-${COMP}Item--active`]: "$color-primary-500",
|
|
73
73
|
},
|
|
74
74
|
dark: {
|
|
75
|
-
[`color-${COMP}Item`]: "$
|
|
76
|
-
[`border-color-${COMP}Item`]: "$
|
|
75
|
+
[`color-${COMP}Item`]: "$textColor-primary",
|
|
76
|
+
[`border-color-${COMP}Item`]: "$borderColor",
|
|
77
77
|
[`border-color-${COMP}Item--active`]: "$color-primary-500",
|
|
78
|
-
[`color-${COMP}Item--active`]: "$
|
|
78
|
+
[`color-${COMP}Item--active`]: "$textColor-secondary",
|
|
79
79
|
},
|
|
80
80
|
},
|
|
81
81
|
});
|
|
@@ -34,21 +34,21 @@ exports.TabsMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
34
34
|
},
|
|
35
35
|
themeVars: (0, themeVars_1.parseScssVar)(Tabs_module_scss_1.default.themeVars),
|
|
36
36
|
defaultThemeVars: {
|
|
37
|
-
[`
|
|
38
|
-
[`
|
|
39
|
-
[`
|
|
40
|
-
[`
|
|
41
|
-
[`
|
|
42
|
-
[`
|
|
37
|
+
[`backgroundColor-${COMP}`]: "$backgroundColor-primary",
|
|
38
|
+
[`borderStyle-${COMP}`]: "solid",
|
|
39
|
+
[`borderColor-${COMP}`]: "$borderColor",
|
|
40
|
+
[`borderColor-active-${COMP}`]: "$color-primary",
|
|
41
|
+
[`borderWidth-${COMP}`]: "2px",
|
|
42
|
+
[`backgroundColor-trigger-${COMP}`]: "$backgroundColor-primary",
|
|
43
43
|
light: {
|
|
44
|
-
[`
|
|
45
|
-
[`
|
|
46
|
-
[`color-
|
|
44
|
+
[`backgroundColor-trigger-${COMP}--hover`]: "$color-primary-50",
|
|
45
|
+
[`backgroundColor-list-${COMP}`]: "$color-primary-50",
|
|
46
|
+
[`color-trigge-r${COMP}`]: "$color-primary-100",
|
|
47
47
|
},
|
|
48
48
|
dark: {
|
|
49
|
-
[`
|
|
50
|
-
[`
|
|
51
|
-
[`color-
|
|
49
|
+
[`backgroundColor-trigger-${COMP}--hover`]: "$color-primary-800",
|
|
50
|
+
[`backgroundColor-list-${COMP}`]: "$color-primary-800",
|
|
51
|
+
[`color-trigge-r${COMP}`]: "$color-primary-100",
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
});
|
|
@@ -53,33 +53,33 @@ exports.TextMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
53
53
|
themeVars: (0, themeVars_1.parseScssVar)(Text_module_scss_1.default.themeVars),
|
|
54
54
|
defaultThemeVars: {
|
|
55
55
|
[`borderRadius-${COMP}`]: "$borderRadius",
|
|
56
|
-
[`
|
|
56
|
+
[`borderStyle-${COMP}`]: "solid",
|
|
57
57
|
[`fontSize-${COMP}`]: "$fontSize-small",
|
|
58
|
-
[`
|
|
58
|
+
[`borderWidth-${COMP}`]: "$space-0",
|
|
59
59
|
[`fontWeight-${COMP}-abbr`]: "$fontWeight-bold",
|
|
60
60
|
[`textTransform-${COMP}-abbr`]: "uppercase",
|
|
61
61
|
[`fontSize-${COMP}-secondary`]: "$fontSize-small",
|
|
62
62
|
[`font-style-${COMP}-cite`]: "italic",
|
|
63
|
-
[`color-${COMP}`]: "$
|
|
63
|
+
[`color-${COMP}`]: "$textColor-primary",
|
|
64
64
|
[`fontFamily-${COMP}`]: "$fontFamily",
|
|
65
65
|
[`fontWeight-${COMP}`]: "$fontWeight-normal",
|
|
66
66
|
[`fontFamily-${COMP}-code`]: "$fontFamily-monospace",
|
|
67
67
|
[`fontSize-${COMP}-code`]: "$fontSize-small",
|
|
68
|
-
[`
|
|
68
|
+
[`borderWidth-${COMP}-code`]: "1px",
|
|
69
69
|
[`paddingHorizontal-${COMP}-code`]: "$space-1",
|
|
70
70
|
[`textDecorationLine-${COMP}-deleted`]: "line-through",
|
|
71
71
|
[`textDecorationLine-${COMP}-inserted`]: "underline",
|
|
72
72
|
[`fontFamily-${COMP}-keyboard`]: "$fontFamily-monospace",
|
|
73
73
|
[`fontSize-${COMP}-keyboard`]: "$fontSize-small",
|
|
74
74
|
[`fontWeight-${COMP}-keyboard`]: "$fontWeight-bold",
|
|
75
|
-
[`
|
|
75
|
+
[`borderWidth-${COMP}-keyboard`]: "1px",
|
|
76
76
|
[`paddingHorizontal-${COMP}-keyboard`]: "$space-1",
|
|
77
77
|
[`fontFamily-${COMP}-sample`]: "$fontFamily-monospace",
|
|
78
78
|
[`fontSize-${COMP}-sample`]: "$fontSize-small",
|
|
79
79
|
[`fontSize-${COMP}-sup`]: "$fontSize-smaller",
|
|
80
|
-
[`
|
|
80
|
+
[`verticalAlign-${COMP}-sup`]: "super",
|
|
81
81
|
[`fontSize-${COMP}-sub`]: "$fontSize-smaller",
|
|
82
|
-
[`
|
|
82
|
+
[`verticalAlign-${COMP}-sub`]: "sub",
|
|
83
83
|
[`font-style-${COMP}-var`]: "italic",
|
|
84
84
|
[`fontFamily-${COMP}-mono`]: "$fontFamily-monospace",
|
|
85
85
|
[`fontSize-${COMP}-title`]: "$fontSize-large",
|
|
@@ -101,28 +101,28 @@ exports.TextMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
101
101
|
[`paddingHorizontal-${COMP}-tableheading`]: "$space-1",
|
|
102
102
|
[`fontWeight-${COMP}-tableheading`]: "$fontWeight-bold",
|
|
103
103
|
light: {
|
|
104
|
-
[`
|
|
105
|
-
[`
|
|
106
|
-
[`
|
|
107
|
-
[`
|
|
108
|
-
[`
|
|
104
|
+
[`backgroundColor-${COMP}-code`]: "$color-surface-100",
|
|
105
|
+
[`borderColor-${COMP}-code`]: "$color-surface-200",
|
|
106
|
+
[`backgroundColor-${COMP}-keyboard`]: "$color-surface-200",
|
|
107
|
+
[`borderColor-${COMP}-keyboard`]: "$color-surface-300",
|
|
108
|
+
[`backgroundColor-${COMP}-marked`]: "yellow",
|
|
109
109
|
[`color-${COMP}-placeholder`]: "$color-surface-500",
|
|
110
|
-
[`
|
|
110
|
+
[`backgroundColor-${COMP}-codefence`]: "$color-primary-100",
|
|
111
111
|
[`color-${COMP}-codefence`]: "$color-surface-900",
|
|
112
|
-
[`color-${COMP}-subheading`]: "$
|
|
113
|
-
[`color-${COMP}-secondary`]: "$
|
|
112
|
+
[`color-${COMP}-subheading`]: "$textColor-secondary",
|
|
113
|
+
[`color-${COMP}-secondary`]: "$textColor-secondary",
|
|
114
114
|
},
|
|
115
115
|
dark: {
|
|
116
|
-
[`
|
|
117
|
-
[`
|
|
118
|
-
[`
|
|
119
|
-
[`
|
|
120
|
-
[`
|
|
116
|
+
[`backgroundColor-${COMP}-code`]: "$color-surface-800",
|
|
117
|
+
[`borderColor-${COMP}-code`]: "$color-surface-700",
|
|
118
|
+
[`backgroundColor-${COMP}-keyboard`]: "$color-surface-800",
|
|
119
|
+
[`borderColor-${COMP}-keyboard`]: "$color-surface-700",
|
|
120
|
+
[`backgroundColor-${COMP}-marked`]: "orange",
|
|
121
121
|
[`color-${COMP}-placeholder`]: "$color-surface-500",
|
|
122
|
-
[`
|
|
122
|
+
[`backgroundColor-${COMP}-codefence`]: "$color-primary-800",
|
|
123
123
|
[`color-${COMP}-codefence`]: "$color-surface-200",
|
|
124
|
-
[`color-${COMP}-subheading`]: "$
|
|
125
|
-
[`color-${COMP}-secondary`]: "$
|
|
124
|
+
[`color-${COMP}-subheading`]: "$textColor-secondary",
|
|
125
|
+
[`color-${COMP}-secondary`]: "$textColor-secondary",
|
|
126
126
|
},
|
|
127
127
|
},
|
|
128
128
|
});
|
|
@@ -47,19 +47,19 @@ exports.TextBoxMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
47
47
|
defaultThemeVars: {
|
|
48
48
|
// TODO: When FormItem is themed, move these defaults there
|
|
49
49
|
"borderRadius-Input": "$borderRadius",
|
|
50
|
-
"color-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
50
|
+
"color-Input": "$textColor-primary",
|
|
51
|
+
"backgroundColor-Input--disabled": "$backgroundColor--disabled",
|
|
52
|
+
"borderWidth-Input": "1px",
|
|
53
53
|
"minHeight-Input": "39px",
|
|
54
54
|
"padding-Input": "$space-2",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"color-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"color-placeholder-Input": "$
|
|
62
|
-
"color-adornment-Input": "$
|
|
55
|
+
"borderStyle-Input": "solid",
|
|
56
|
+
"borderColor-Input--disabled": "$borderColor--disabled",
|
|
57
|
+
"color-Input--disabled": "$textColor--disabled",
|
|
58
|
+
"borderColor-Input-error": "$borderColor-Input-default--error",
|
|
59
|
+
"borderColor-Input-warning": "$borderColor-Input-default--warning",
|
|
60
|
+
"borderColor-Input-success": "$borderColor-Input-default--success",
|
|
61
|
+
"color-placeholder-Input": "$textColor-subtitle",
|
|
62
|
+
"color-adornment-Input": "$textColor-subtitle",
|
|
63
63
|
"outlineColor-Input--focus": "$outlineColor--focus",
|
|
64
64
|
"outlineWidth-Input--focus": "$outlineWidth--focus",
|
|
65
65
|
"outlineStyle-Input--focus": "$outlineStyle--focus",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paddingSubject = paddingSubject;
|
|
4
|
-
exports.borderSubject = borderSubject;
|
|
5
4
|
function paddingSubject(name, valueSpec) {
|
|
6
5
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
7
6
|
return {
|
|
@@ -14,18 +13,3 @@ function paddingSubject(name, valueSpec) {
|
|
|
14
13
|
[`padding-${name}`]: (_g = valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.all) !== null && _g !== void 0 ? _g : `$paddingTop-${name} $paddingRight-${name} $paddingBottom-${name} $paddingLeft-${name}`,
|
|
15
14
|
};
|
|
16
15
|
}
|
|
17
|
-
function borderSubject(name, valueSpec) {
|
|
18
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
19
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ [`borderRadius-${name}`]: "$borderRadius" }, borderEdgeSubject("left", (_b = (_a = valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.left) !== null && _a !== void 0 ? _a : valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.horizontal) !== null && _b !== void 0 ? _b : valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.all)), borderEdgeSubject("right", (_d = (_c = valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.right) !== null && _c !== void 0 ? _c : valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.horizontal) !== null && _d !== void 0 ? _d : valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.all)), borderEdgeSubject("top", (_f = (_e = valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.top) !== null && _e !== void 0 ? _e : valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.vertical) !== null && _f !== void 0 ? _f : valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.all)), borderEdgeSubject("bottom", (_h = (_g = valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.bottom) !== null && _g !== void 0 ? _g : valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.vertical) !== null && _h !== void 0 ? _h : valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.all)), borderEdgeSubject("horizontal", (_j = valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.horizontal) !== null && _j !== void 0 ? _j : valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.all)), borderEdgeSubject("vertical", (_k = valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.vertical) !== null && _k !== void 0 ? _k : valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.all)), { [`color-border-${name}`]: (_m = (_l = valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.all) === null || _l === void 0 ? void 0 : _l.color) !== null && _m !== void 0 ? _m : "", [`thickness-border-${name}`]: (_p = (_o = valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.all) === null || _o === void 0 ? void 0 : _o.thickness) !== null && _p !== void 0 ? _p : "", [`style-border-${name}`]: (_r = (_q = valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.all) === null || _q === void 0 ? void 0 : _q.style) !== null && _r !== void 0 ? _r : "", [`border-${name}`]: `${(_t = (_s = valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.all) === null || _s === void 0 ? void 0 : _s.thickness) !== null && _t !== void 0 ? _t : `$thickness-border-${name}`} ` +
|
|
20
|
-
`${(_v = (_u = valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.all) === null || _u === void 0 ? void 0 : _u.style) !== null && _v !== void 0 ? _v : `$style-border-${name}`} ` +
|
|
21
|
-
`${(_x = (_w = valueSpec === null || valueSpec === void 0 ? void 0 : valueSpec.all) === null || _w === void 0 ? void 0 : _w.color) !== null && _x !== void 0 ? _x : `$color-border-${name}`} ` });
|
|
22
|
-
function borderEdgeSubject(edge, edgeSpec) {
|
|
23
|
-
var _a, _b, _c, _d;
|
|
24
|
-
return {
|
|
25
|
-
[`color-border-${edge}-${name}`]: (_a = edgeSpec === null || edgeSpec === void 0 ? void 0 : edgeSpec.color) !== null && _a !== void 0 ? _a : "",
|
|
26
|
-
[`thickness-border-${edge}-${name}`]: (_b = edgeSpec === null || edgeSpec === void 0 ? void 0 : edgeSpec.thickness) !== null && _b !== void 0 ? _b : "",
|
|
27
|
-
[`style-border-${edge}-${name}`]: (_c = edgeSpec === null || edgeSpec === void 0 ? void 0 : edgeSpec.style) !== null && _c !== void 0 ? _c : "",
|
|
28
|
-
[`border-${edge}-${name}`]: (_d = edgeSpec === null || edgeSpec === void 0 ? void 0 : edgeSpec.all) !== null && _d !== void 0 ? _d : `$thickness-border-${edge}-${name} $style-border-${edge}-${name} $color-border-${edge}-${name}`,
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -110,16 +110,16 @@ exports.RootThemeDefinition = {
|
|
|
110
110
|
"fontWeight-bold": "600",
|
|
111
111
|
"fontWeight-extra-bold": "900",
|
|
112
112
|
// --- Default text colors (component use these values as their defaults)
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
113
|
+
"textColor-primary": "$color-surface-950",
|
|
114
|
+
"textColor-attention": "$color-danger-600",
|
|
115
|
+
"textColor-subtitle": "$color-surface-500",
|
|
116
|
+
"textColor--disabled": "$color-surface-400",
|
|
117
117
|
// --- Default background colors (component use these values as their defaults)
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
118
|
+
"backgroundColor-primary": "$color-surface-50",
|
|
119
|
+
"backgroundColor-secondary": "$color-surface-50",
|
|
120
|
+
"backgroundColor-attention": "$color-attention",
|
|
121
|
+
"backgroundColor--disabled": "$color-surface-50",
|
|
122
|
+
"backgroundColor--selected": "$color-primary-50",
|
|
123
123
|
// --- Various default colors
|
|
124
124
|
"color-info": "$color-info-500",
|
|
125
125
|
"color-valid": "$color-success-600",
|
|
@@ -138,11 +138,11 @@ exports.RootThemeDefinition = {
|
|
|
138
138
|
"fontFamily-monospace": "Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",
|
|
139
139
|
"font-feature-settings": "'cv03', 'cv04', 'cv11'",
|
|
140
140
|
// --- Some media breakpoints (review them)
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
141
|
+
"maxWidth-phone": "576px",
|
|
142
|
+
"maxWidth-landscape-phone": "768px",
|
|
143
|
+
"maxWidth-tablet": "992px",
|
|
144
|
+
"maxWidth-desktop": "1200px",
|
|
145
|
+
"maxWidth-large-desktop": "1400px",
|
|
146
146
|
// --- The app's default radius value
|
|
147
147
|
borderRadius: "4px",
|
|
148
148
|
"outlineColor--focus": "rgba($color-primary-500-rgb, .5)",
|
|
@@ -179,108 +179,95 @@ exports.RootThemeDefinition = {
|
|
|
179
179
|
// --- Font used for body
|
|
180
180
|
"fontWeight": "$fontWeight-normal",
|
|
181
181
|
// --- Various default values (review them)
|
|
182
|
-
"
|
|
182
|
+
"borderColor-dropdown-item": "$borderColor",
|
|
183
183
|
// --- Various predefined shadow values
|
|
184
|
-
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
184
|
+
boxShadow: "0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06)",
|
|
185
|
+
"boxShadow-md": "0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06)",
|
|
186
|
+
"boxShadow-xl": "0 16px 24px 2px rgba(0, 0, 0, 0.07), 0 6px 30px 5px rgba(0, 0, 0, 0.06), 0 8px 10px -5px rgba(0, 0, 0, 0.1)",
|
|
187
|
+
"boxShadow-xxl": "0 8px 17px 0 rgba(0, 0, 0, .2), 0 6px 20px 0 rgba(0, 0, 0, .19)",
|
|
188
|
+
"boxShadow-spread": "0px 0px 30px rgba(0, 0, 0, 0.1)",
|
|
189
|
+
"boxShadow-spread-2": "-6px -4px 40px 10px rgba(0, 0, 0, 0.1)",
|
|
190
|
+
"boxShadow-spread-2-xl": "-6px -4px 40px 18px rgba(0, 0, 0, 0.1)",
|
|
191
191
|
// --- The default maximum content width
|
|
192
|
-
"
|
|
193
|
-
"size-Icon": "1.25em",
|
|
194
|
-
"boxShadow-Avatar": "inset 0 0 0 1px rgba(4, 32, 69, 0.1)",
|
|
195
|
-
"border-size-Avatar": "0px",
|
|
196
|
-
"borderRadius-Avatar": "4px",
|
|
197
|
-
"boxShadow-header-App": "none",
|
|
198
|
-
// "height-AppHeader": "3.5rem",
|
|
199
|
-
"paddingHorizontal-NavPanel-horizontal": "1rem",
|
|
200
|
-
"paddingVertical-HeaderLogo": "0.7rem",
|
|
201
|
-
"padding-TableCell": ".75rem",
|
|
202
|
-
"padding-TableHeading": ".5rem .75rem .5rem .75rem",
|
|
203
|
-
"color-bg-TableRow--hover": "transparent",
|
|
204
|
-
"boxShadow-NavPanel-vertical": "none",
|
|
205
|
-
"width-NavPanel-vertical": "15rem",
|
|
192
|
+
"maxWidth-content": "1320px",
|
|
206
193
|
},
|
|
207
194
|
tones: {
|
|
208
195
|
light: {
|
|
209
196
|
themeVars: {
|
|
210
197
|
// --- Background colors
|
|
211
|
-
"
|
|
212
|
-
"
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
"
|
|
220
|
-
"
|
|
198
|
+
"backgroundColor": $colorSurface50,
|
|
199
|
+
"backgroundColor-primary": $colorSurface50,
|
|
200
|
+
"backgroundColor-secondary": $colorSurface50,
|
|
201
|
+
"backgroundColor--disabled": $colorSurface50,
|
|
202
|
+
"backgroundColor--selected": $colorPrimary50,
|
|
203
|
+
"backgroundColor-overlay": "rgba(0, 0, 0, 0.2)",
|
|
204
|
+
"backgroundColor-dropdown-item--hover": $colorSurface100,
|
|
205
|
+
"backgroundColor-dropdown-item--active": $colorSurface100,
|
|
206
|
+
"backgroundColor-dropdown-item--active-hover": $colorSurface50,
|
|
207
|
+
"backgroundColor-tree-row--selected--before": $colorPrimary50,
|
|
221
208
|
// --- Various default colors
|
|
222
209
|
"color-info": "$color-info-800",
|
|
223
210
|
"color-valid": $colorSuccess600,
|
|
224
211
|
"color-warning": $colorWarn700,
|
|
225
212
|
"color-error": $colorDanger700,
|
|
226
213
|
// --- Border colors
|
|
227
|
-
"
|
|
228
|
-
"
|
|
229
|
-
"
|
|
214
|
+
"borderColor": $colorSurface200,
|
|
215
|
+
"borderColor--disabled": $colorSurface200,
|
|
216
|
+
"borderColor-dropdown-item": $colorSurface200,
|
|
230
217
|
// --- Text colors
|
|
231
|
-
"
|
|
232
|
-
"
|
|
233
|
-
"
|
|
234
|
-
"
|
|
235
|
-
"
|
|
218
|
+
"textColor-primary": $colorSurface950,
|
|
219
|
+
"textColor-secondary": $colorSurface600,
|
|
220
|
+
"textColor-attention": $colorDanger600,
|
|
221
|
+
"textColor-subtitle": $colorSurface500,
|
|
222
|
+
"textColor--disabled": $colorSurface400,
|
|
236
223
|
// --- Input is an abstract component, so we define its default theme variables here
|
|
237
|
-
"
|
|
238
|
-
"
|
|
239
|
-
"
|
|
240
|
-
"
|
|
241
|
-
"
|
|
242
|
-
"
|
|
243
|
-
"
|
|
224
|
+
"backgroundColor-Input-default": "white",
|
|
225
|
+
"borderColor-Input-default": $colorSurface200,
|
|
226
|
+
"borderColor-Input-default--hover": $colorSurface600,
|
|
227
|
+
"borderColor-Input-default--focus": $colorSurface600,
|
|
228
|
+
"borderColor-Input-default--success": $colorSuccess600,
|
|
229
|
+
"borderColor-Input-default--warning": $colorWarn700,
|
|
230
|
+
"borderColor-Input-default--error": $colorDanger600,
|
|
244
231
|
// --- InputLabel is a React component, so we define its default theme variables here
|
|
245
|
-
"color-
|
|
232
|
+
"color-InputLabel-required": $colorDanger600,
|
|
246
233
|
},
|
|
247
234
|
},
|
|
248
235
|
dark: {
|
|
249
236
|
themeVars: {
|
|
250
237
|
// --- Background colors
|
|
251
|
-
"
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
"
|
|
255
|
-
"
|
|
256
|
-
"
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"
|
|
238
|
+
"backgroundColor": $colorSurface950,
|
|
239
|
+
"backgroundColor-primary": $colorSurface900,
|
|
240
|
+
"backgroundColor-secondary": $colorSurface800,
|
|
241
|
+
"backgroundColor--disabled": $colorSurface800,
|
|
242
|
+
"backgroundColor--selected": $colorSurface700,
|
|
243
|
+
"backgroundColor-overlay": "rgba(0, 0, 0, 0.4)",
|
|
244
|
+
"backgroundColor-dropdown-item--hover": $colorSurface500A60,
|
|
245
|
+
"backgroundColor-dropdown-item--active": $colorSurface500A80,
|
|
246
|
+
"backgroundColor-tree-row--selected--before": $colorPrimary950,
|
|
260
247
|
// --- Various default colors
|
|
261
248
|
"color-info": $colorInfo600,
|
|
262
249
|
"color-valid": $colorSuccess600,
|
|
263
250
|
"color-warning": $colorWarn700,
|
|
264
251
|
"color-error": $colorDanger700,
|
|
265
252
|
// --- Border colors
|
|
266
|
-
"
|
|
267
|
-
"
|
|
268
|
-
"
|
|
253
|
+
"borderColor": $colorSurface800,
|
|
254
|
+
"borderColor--disabled": $colorSurface700,
|
|
255
|
+
"borderColor-dropdown-item": $colorSurface300,
|
|
269
256
|
// --- Text colors
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"
|
|
274
|
-
"
|
|
257
|
+
"textColor-primary": $colorSurface100,
|
|
258
|
+
"textColor-secondary": $colorSurface400,
|
|
259
|
+
"textColor-attention": $colorDanger400,
|
|
260
|
+
"textColor-subtitle": $colorSurface500,
|
|
261
|
+
"textColor--disabled": $colorSurface500,
|
|
275
262
|
// --- Input is an abstract component, so we define its default theme variables here
|
|
276
|
-
"
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"
|
|
263
|
+
"borderColor-Input-default": $colorSurface800,
|
|
264
|
+
"borderColor-Input-default--hover": $colorSurface500,
|
|
265
|
+
"borderColor-Input-default--focus": $colorSurface500,
|
|
266
|
+
"borderColor-Input-default--success": $colorSuccess600,
|
|
267
|
+
"borderColor-Input-default--warning": $colorWarn700,
|
|
268
|
+
"borderColor-Input-default--error": $colorDanger500,
|
|
282
269
|
// --- InputLabel is a React component, so we define its default theme variables here
|
|
283
|
-
"color-
|
|
270
|
+
"color-InputLabel-required": $colorDanger400,
|
|
284
271
|
},
|
|
285
272
|
},
|
|
286
273
|
},
|
|
@@ -8,7 +8,7 @@ exports.SolidThemeDefinition = {
|
|
|
8
8
|
"color-secondary": "#98a9bc",
|
|
9
9
|
"color-surface": "hsl(0,0%,49%)",
|
|
10
10
|
"color-success": "#45a249",
|
|
11
|
-
"
|
|
11
|
+
"maxWidth-content": "100%",
|
|
12
12
|
borderRadius: "0",
|
|
13
13
|
"fontSize": "$fontSize-normal",
|
|
14
14
|
"size-Icon": "1rem",
|
|
@@ -10,13 +10,13 @@ exports.XmlUiThemeDefinition = {
|
|
|
10
10
|
themeVars: {
|
|
11
11
|
"boxShadow-header-App": "none",
|
|
12
12
|
"font-size": "15px",
|
|
13
|
-
"boxShadow-Input": "$
|
|
13
|
+
"boxShadow-Input": "$boxShadow-sm",
|
|
14
14
|
},
|
|
15
15
|
tones: {
|
|
16
16
|
light: {
|
|
17
17
|
themeVars: {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"backgroundColor-ModalDialog": "white",
|
|
19
|
+
"backgroundColor-checked-RadioGroupOption": "$color-primary-400",
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
dark: {
|