@ptsecurity/mosaic 17.0.0 → 17.2.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/autocomplete/_autocomplete-theme.scss +2 -1
- package/autocomplete/autocomplete-trigger.directive.d.ts +7 -1
- package/autocomplete/autocomplete.scss +7 -11
- package/button/_button-base.scss +10 -10
- package/button/_button-theme.scss +32 -32
- package/button/button.scss +9 -15
- package/button-toggle/_button-toggle-theme.scss +32 -24
- package/button-toggle/button-toggle.scss +18 -57
- package/card/_card-theme.scss +23 -20
- package/card/card.component.scss +2 -1
- package/checkbox/_checkbox-theme.scss +33 -29
- package/checkbox/checkbox.scss +7 -6
- package/code-block/_code-block-theme.scss +201 -113
- package/code-block/actionbar.component.scss +5 -7
- package/code-block/code-block.scss +5 -6
- package/core/forms/_forms-theme.scss +17 -46
- package/core/option/_optgroup-theme.scss +5 -5
- package/core/option/_option-action-theme.scss +1 -4
- package/core/option/_option-theme.scss +8 -10
- package/core/option/option.scss +5 -4
- package/core/pop-up/pop-up-trigger.d.ts +3 -1
- package/core/styles/_mosaic-theme.scss +3 -3
- package/core/styles/common/_popup.scss +4 -3
- package/core/styles/common/_tokens.scss +39 -0
- package/core/styles/theming/_alerts.scss +16 -24
- package/core/styles/theming/_badges.scss +7 -8
- package/core/styles/theming/_components-theming.scss +4 -2
- package/core/styles/theming/_scrollbars.scss +17 -2
- package/datepicker/_datepicker-theme.scss +18 -19
- package/datepicker/calendar-body.scss +6 -9
- package/datepicker/calendar-header.scss +9 -26
- package/datepicker/calendar.scss +5 -16
- package/datepicker/datepicker-content.scss +2 -4
- package/datepicker/datepicker-input.scss +2 -1
- package/datepicker/datepicker-toggle.scss +3 -2
- package/divider/_divider-theme.scss +4 -2
- package/divider/divider.scss +5 -4
- package/dl/_dl-theme.scss +12 -36
- package/dl/dl.scss +13 -46
- package/dropdown/_dropdown-theme.scss +19 -17
- package/dropdown/dropdown-item.scss +7 -6
- package/dropdown/dropdown.scss +11 -26
- package/ellipsis-center/ellipsis-center.directive.d.ts +3 -2
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +14 -2
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/code-block/actionbar.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +2 -2
- package/esm2022/core/pop-up/pop-up-trigger.mjs +19 -11
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -5
- package/esm2022/file-upload/file-upload.module.mjs +8 -4
- package/esm2022/file-upload/multiple-file-upload.component.mjs +15 -34
- package/esm2022/file-upload/single-file-upload.component.mjs +15 -34
- package/esm2022/form-field/form-field.mjs +2 -2
- package/esm2022/input/input-password.mjs +2 -3
- package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/modal/modal.component.mjs +6 -6
- package/esm2022/navbar/navbar-item.component.mjs +9 -9
- package/esm2022/progress-spinner/progress-spinner.component.mjs +2 -2
- package/esm2022/radio/radio.component.mjs +2 -2
- package/esm2022/select/select-option.directive.mjs +7 -5
- package/esm2022/select/select.component.mjs +16 -9
- package/esm2022/tabs/tab-header.component.mjs +2 -2
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2022/tags/tag-input.mjs +28 -8
- package/esm2022/timezone/timezone-option.directive.mjs +7 -5
- package/esm2022/timezone/timezone-select.component.mjs +2 -2
- package/esm2022/title/title.directive.mjs +2 -3
- package/esm2022/tooltip/tooltip.component.mjs +27 -12
- package/esm2022/tree-select/tree-select.component.mjs +21 -8
- package/fesm2022/ptsecurity-mosaic-autocomplete.mjs +13 -1
- package/fesm2022/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-button.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-button.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-code-block.mjs +4 -4
- package/fesm2022/ptsecurity-mosaic-code-block.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-core.mjs +19 -11
- package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-dropdown.mjs +4 -4
- package/fesm2022/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-ellipsis-center.mjs +5 -4
- package/fesm2022/ptsecurity-mosaic-ellipsis-center.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-file-upload.mjs +26 -58
- package/fesm2022/ptsecurity-mosaic-file-upload.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-form-field.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-input.mjs +1 -2
- package/fesm2022/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-markdown.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-markdown.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-modal.mjs +5 -5
- package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-navbar.mjs +8 -8
- package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-progress-spinner.mjs +1 -1
- package/fesm2022/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-radio.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-select.mjs +25 -17
- package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tabs.mjs +4 -4
- package/fesm2022/ptsecurity-mosaic-tabs.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tags.mjs +26 -7
- package/fesm2022/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-timezone.mjs +7 -6
- package/fesm2022/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-title.mjs +1 -2
- package/fesm2022/ptsecurity-mosaic-title.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tooltip.mjs +25 -11
- package/fesm2022/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs +20 -7
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +87 -54
- package/file-upload/file-upload.module.d.ts +2 -1
- package/file-upload/file-upload.scss +0 -15
- package/file-upload/multiple-file-upload.component.d.ts +4 -12
- package/file-upload/multiple-file-upload.component.scss +58 -54
- package/file-upload/single-file-upload.component.d.ts +4 -12
- package/file-upload/single-file-upload.component.scss +15 -24
- package/form-field/_form-field-theme.scss +43 -34
- package/form-field/form-field.scss +14 -13
- package/icon/_icon-theme.scss +26 -25
- package/input/_input-base.scss +3 -2
- package/input/_input-theme.scss +14 -14
- package/input/input-password.d.ts +0 -1
- package/input/input.scss +3 -4
- package/link/_link-theme.scss +36 -32
- package/list/_list-base.scss +4 -3
- package/list/_list-theme.scss +8 -8
- package/list/list.scss +2 -1
- package/loader-overlay/_loader-overlay-theme.scss +8 -8
- package/loader-overlay/loader-overlay.scss +7 -12
- package/markdown/_markdown-theme.scss +61 -43
- package/markdown/markdown.scss +39 -80
- package/modal/_modal-confirm.scss +3 -2
- package/modal/_modal-theme.scss +20 -21
- package/modal/modal.scss +18 -15
- package/navbar/_navbar-theme.scss +19 -18
- package/navbar/navbar-brand.scss +7 -9
- package/navbar/navbar-item.component.d.ts +4 -4
- package/navbar/navbar-item.scss +8 -7
- package/navbar/vertical-navbar.scss +4 -12
- package/package.json +25 -25
- package/popover/_popover-theme.scss +35 -35
- package/popover/popover.scss +15 -14
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +6 -5
- package/progress-bar/progress-bar.scss +2 -1
- package/progress-spinner/_progress-spinner-theme.scss +4 -3
- package/progress-spinner/progress-spinner.scss +7 -12
- package/radio/_radio-theme.scss +32 -24
- package/radio/radio.scss +8 -11
- package/select/_select-theme.scss +13 -13
- package/select/select-option.directive.d.ts +3 -2
- package/select/select.component.d.ts +1 -0
- package/select/select.scss +19 -42
- package/sidepanel/_sidepanel-theme.scss +9 -9
- package/sidepanel/sidepanel.scss +11 -10
- package/splitter/_splitter-theme.scss +5 -3
- package/table/_table-theme.scss +9 -9
- package/table/table.scss +11 -14
- package/tabs/_tabs-common.scss +15 -14
- package/tabs/_tabs-theme.scss +67 -55
- package/tabs/tab-group.scss +2 -1
- package/tabs/tab-header.scss +16 -3
- package/tabs/tab-nav-bar/tab-nav-bar.scss +15 -2
- package/tags/_tag-theme.scss +30 -27
- package/tags/tag-input.d.ts +9 -4
- package/tags/tag-list.scss +4 -3
- package/tags/tag.scss +9 -8
- package/textarea/_textarea-base.scss +2 -4
- package/textarea/_textarea-theme.scss +8 -8
- package/textarea/textarea.scss +2 -4
- package/timepicker/timepicker.scss +2 -7
- package/timezone/_timezone-option-theme.scss +7 -7
- package/timezone/timezone-option.component.scss +5 -4
- package/timezone/timezone-option.directive.d.ts +3 -2
- package/title/title.directive.d.ts +0 -1
- package/toast/_toast-theme.scss +13 -16
- package/toast/toast-container.component.scss +2 -5
- package/toast/toast.component.scss +15 -17
- package/toggle/_toggle-theme.scss +22 -21
- package/toggle/toggle.scss +19 -21
- package/tooltip/_tooltip-theme.scss +26 -31
- package/tooltip/tooltip.component.d.ts +12 -8
- package/tooltip/tooltip.scss +13 -17
- package/tree/_tree-theme.scss +8 -8
- package/tree/toggle.scss +3 -5
- package/tree/tree-option.scss +5 -4
- package/tree-select/_tree-select-theme.scss +9 -9
- package/tree-select/tree-select.component.d.ts +1 -0
- package/tree-select/tree-select.scss +17 -35
- package/_theming.scss +0 -10827
- package/_visual.scss +0 -3541
- package/prebuilt-visual/default-visual.css +0 -1
package/markdown/markdown.scss
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
4
|
@use '../core/styles/tokens';
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
5
6
|
|
6
7
|
|
7
8
|
$tokens: meta.module-variables(tokens) !default;
|
@@ -20,11 +21,12 @@ $tokens: meta.module-variables(tokens) !default;
|
|
20
21
|
// h1, h2, h3, h4, h5, h6
|
21
22
|
@for $i from 1 through 6 {
|
22
23
|
.mc-markdown__h#{$i} {
|
23
|
-
max-width:
|
24
|
-
|
25
|
-
margin-
|
26
|
-
|
27
|
-
|
24
|
+
max-width: mc-css-variable(
|
25
|
+
mc-markdown-h#{$i}-size-max-width, map.get($tokens, markdown-h#{$i}-size-max-width));
|
26
|
+
margin-top: mc-css-variable(
|
27
|
+
mc-markdown-h#{$i}-size-margin-top, map.get($tokens, markdown-h#{$i}-size-margin-top));
|
28
|
+
margin-bottom: mc-css-variable(
|
29
|
+
mc-markdown-h#{$i}-size-margin-bottom, map.get($tokens, markdown-h#{$i}-size-margin-bottom));
|
28
30
|
}
|
29
31
|
}
|
30
32
|
|
@@ -40,29 +42,26 @@ $tokens: meta.module-variables(tokens) !default;
|
|
40
42
|
}
|
41
43
|
|
42
44
|
.mc-markdown__p {
|
43
|
-
max-width:
|
44
|
-
margin-top:
|
45
|
-
margin-bottom:
|
45
|
+
max-width: mc-css-variable(markdown-p-size-max-width);
|
46
|
+
margin-top: mc-css-variable(markdown-p-size-margin-top);
|
47
|
+
margin-bottom: mc-css-variable(markdown-p-size-margin-bottom);
|
46
48
|
}
|
47
49
|
|
48
50
|
.mc-markdown__ul,
|
49
51
|
.mc-markdown__ol {
|
50
|
-
max-width:
|
51
|
-
margin-top:
|
52
|
-
margin-bottom:
|
52
|
+
max-width: mc-css-variable(markdown-list-size-max-width);
|
53
|
+
margin-top: mc-css-variable(markdown-list-size-margin-top);
|
54
|
+
margin-bottom: mc-css-variable(markdown-list-size-margin-bottom);
|
53
55
|
|
54
56
|
> li {
|
55
|
-
margin-bottom:
|
56
|
-
--mc-markdown-list-size-item-margin-bottom,
|
57
|
-
map.get($tokens, markdown-list-size-item-margin-bottom)
|
58
|
-
);
|
57
|
+
margin-bottom: mc-css-variable(markdown-list-size-item-margin-bottom);
|
59
58
|
}
|
60
59
|
}
|
61
60
|
|
62
61
|
.mc-markdown__ul {
|
63
62
|
position: relative;
|
64
63
|
list-style: none;
|
65
|
-
padding:
|
64
|
+
padding: mc-css-variable(markdown-list-size-ul-padding);
|
66
65
|
}
|
67
66
|
|
68
67
|
.mc-markdown__ul > li:before {
|
@@ -84,10 +83,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
84
83
|
&:before {
|
85
84
|
content:counter(li) ".";
|
86
85
|
counter-increment: li;
|
87
|
-
padding-right:
|
88
|
-
--mc-markdown-list-size-ol-number-padding-right,
|
89
|
-
map.get($tokens, markdown-list-size-ol-number-padding-right)
|
90
|
-
);
|
86
|
+
padding-right: mc-css-variable(markdown-list-size-ol-number-padding-right);
|
91
87
|
}
|
92
88
|
|
93
89
|
> * {
|
@@ -98,33 +94,20 @@ $tokens: meta.module-variables(tokens) !default;
|
|
98
94
|
|
99
95
|
.mc-markdown__p + .mc-markdown__ul,
|
100
96
|
.mc-markdown__p + .mc-markdown__ol {
|
101
|
-
margin-top:
|
102
|
-
--mc-markdown-list-size-margin-top-after-paragraph,
|
103
|
-
map.get($tokens, markdown-list-size-margin-top-after-paragraph)
|
104
|
-
);
|
97
|
+
margin-top: mc-css-variable(markdown-list-size-margin-top-after-paragraph);
|
105
98
|
}
|
106
99
|
|
107
100
|
.mc-markdown__blockquote {
|
108
|
-
max-width:
|
109
|
-
|
110
|
-
);
|
111
|
-
margin-top: var(
|
112
|
-
--mc-markdown-blockquote-size-margin-top, map.get($tokens, markdown-blockquote-size-margin-top)
|
113
|
-
);
|
101
|
+
max-width: mc-css-variable(markdown-blockquote-size-max-width);
|
102
|
+
margin-top: mc-css-variable(markdown-blockquote-size-margin-top);
|
114
103
|
|
115
|
-
margin-bottom:
|
116
|
-
--mc-markdown-blockquote-size-margin-bottom, map.get($tokens, markdown-blockquote-size-margin-bottom)
|
117
|
-
);
|
104
|
+
margin-bottom: mc-css-variable(markdown-blockquote-size-margin-bottom);
|
118
105
|
|
119
|
-
border-left-width:
|
120
|
-
--mc-markdown-blockquote-size-line-width, map.get($tokens, markdown-blockquote-size-line-width)
|
121
|
-
);
|
106
|
+
border-left-width: mc-css-variable(markdown-blockquote-size-line-width);
|
122
107
|
|
123
108
|
border-left-style: solid;
|
124
109
|
|
125
|
-
padding:
|
126
|
-
--mc-markdown-blockquote-size-padding, map.get($tokens, markdown-blockquote-size-padding)
|
127
|
-
);
|
110
|
+
padding: mc-css-variable(markdown-blockquote-size-padding);
|
128
111
|
|
129
112
|
margin-left: 0;
|
130
113
|
margin-right: 0;
|
@@ -139,53 +122,33 @@ $tokens: meta.module-variables(tokens) !default;
|
|
139
122
|
position: relative;
|
140
123
|
overflow-x: auto;
|
141
124
|
|
142
|
-
margin-top:
|
143
|
-
|
144
|
-
map.get($tokens, markdown-code-size-multiline-margin-top)
|
145
|
-
);
|
146
|
-
margin-bottom: var(
|
147
|
-
--mc-markdown-code-size-multiline-margin-bottom,
|
148
|
-
map.get($tokens, markdown-code-size-multiline-margin-bottom)
|
149
|
-
);
|
125
|
+
margin-top: mc-css-variable(markdown-code-size-multiline-margin-top);
|
126
|
+
margin-bottom: mc-css-variable(markdown-code-size-multiline-margin-bottom);
|
150
127
|
|
151
|
-
padding:
|
152
|
-
--mc-markdown-code-size-multiline-padding,
|
153
|
-
map.get($tokens, markdown-code-size-multiline-padding)
|
154
|
-
);
|
128
|
+
padding: mc-css-variable(markdown-code-size-multiline-padding);
|
155
129
|
}
|
156
130
|
|
157
131
|
.mc-markdown__pre,
|
158
132
|
.mc-markdown__p > .mc-markdown__code {
|
159
|
-
border-radius:
|
160
|
-
|
161
|
-
);
|
162
|
-
border-width: var(
|
163
|
-
--mc-markdown-code-size-border-width, map.get($tokens, markdown-code-size-border-width)
|
164
|
-
);
|
133
|
+
border-radius: mc-css-variable(markdown-code-size-border-radius);
|
134
|
+
border-width: mc-css-variable(markdown-code-size-border-width);
|
165
135
|
border-style: solid;
|
166
136
|
}
|
167
137
|
|
168
138
|
.mc-markdown__p > .mc-markdown__code {
|
169
|
-
max-width:
|
170
|
-
padding:
|
139
|
+
max-width: mc-css-variable(markdown-code-size-max-width);
|
140
|
+
padding: mc-css-variable(markdown-code-size-inline-padding);
|
171
141
|
}
|
172
142
|
|
173
143
|
.mc-markdown__img {
|
174
|
-
max-width:
|
175
|
-
margin-top:
|
176
|
-
margin-bottom:
|
177
|
-
--mc-markdown-image-size-margin-bottom, map.get($tokens, markdown-image-size-margin-bottom)
|
178
|
-
);
|
144
|
+
max-width: mc-css-variable(markdown-image-size-max-width);
|
145
|
+
margin-top: mc-css-variable(markdown-image-size-margin-top);
|
146
|
+
margin-bottom: mc-css-variable(markdown-image-size-margin-bottom);
|
179
147
|
|
180
148
|
+ em {
|
181
149
|
display: block;
|
182
|
-
margin-top:
|
183
|
-
|
184
|
-
);
|
185
|
-
margin-bottom: var(
|
186
|
-
--mc-markdown-image-size-caption-margin-bottom,
|
187
|
-
map.get($tokens, markdown-image-size-caption-margin-bottom)
|
188
|
-
);
|
150
|
+
margin-top: mc-css-variable(markdown-image-size-caption-margin-top);
|
151
|
+
margin-bottom: mc-css-variable(markdown-image-size-caption-margin-bottom);
|
189
152
|
}
|
190
153
|
}
|
191
154
|
|
@@ -194,10 +157,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
194
157
|
border-left: none;
|
195
158
|
border-right: none;
|
196
159
|
border-bottom-style: solid;
|
197
|
-
border-bottom-width:
|
198
|
-
margin:
|
199
|
-
--mc-markdown-hr-size-margin-vertical, map.get($tokens, markdown-hr-size-margin-vertical)
|
200
|
-
) 0;
|
160
|
+
border-bottom-width: mc-css-variable(markdown-hr-size-width);
|
161
|
+
margin: mc-css-variable(markdown-hr-size-margin-vertical) 0;
|
201
162
|
}
|
202
163
|
|
203
164
|
.mc-markdown__table {
|
@@ -205,23 +166,21 @@ $tokens: meta.module-variables(tokens) !default;
|
|
205
166
|
overflow-x: auto;
|
206
167
|
display: table;
|
207
168
|
border-collapse: collapse;
|
208
|
-
margin-bottom:
|
169
|
+
margin-bottom: mc-css-variable(markdown-table-size-margin-bottom);
|
209
170
|
|
210
171
|
td {
|
211
172
|
vertical-align: top;
|
212
173
|
}
|
213
174
|
|
214
175
|
th, td {
|
215
|
-
padding:
|
176
|
+
padding: mc-css-variable(markdown-table-size-padding);
|
216
177
|
font-weight: 400;
|
217
178
|
}
|
218
179
|
}
|
219
180
|
|
220
181
|
.mc-markdown__table > .mc-markdown__thead {
|
221
182
|
border-bottom-style: solid;
|
222
|
-
border-bottom-width:
|
223
|
-
--mc-markdown-table-size-border-width, map.get($tokens, markdown-table-size-border-width)
|
224
|
-
);
|
183
|
+
border-bottom-width: mc-css-variable(markdown-table-size-border-width);
|
225
184
|
|
226
185
|
text-align: left;
|
227
186
|
|
@@ -2,6 +2,7 @@
|
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
4
|
@use '../core/styles/tokens';
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
5
6
|
|
6
7
|
|
7
8
|
$tokens: meta.module-variables(tokens) !default;
|
@@ -16,7 +17,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
16
17
|
}
|
17
18
|
|
18
19
|
.mc-modal-body {
|
19
|
-
padding:
|
20
|
+
padding: mc-css-variable(modal-confirm-size-padding);
|
20
21
|
}
|
21
22
|
|
22
23
|
// TODO
|
@@ -43,7 +44,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
43
44
|
}
|
44
45
|
|
45
46
|
.mc-confirm-btns {
|
46
|
-
border-radius:
|
47
|
+
border-radius: mc-css-variable(modal-footer-size-border-radius);
|
47
48
|
text-align: right;
|
48
49
|
|
49
50
|
button + button, button:only-child {
|
package/modal/_modal-theme.scss
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
6
|
+
|
5
7
|
|
6
8
|
@mixin mc-modal-theme($theme) {
|
7
9
|
$foreground: map.get($theme, foreground);
|
@@ -9,48 +11,47 @@
|
|
9
11
|
|
10
12
|
$modal: map.get(map.get($theme, components), modal);
|
11
13
|
$popup: map.get(map.get($theme, components), popup);
|
12
|
-
$tokens: map.get($theme, tokens);
|
13
14
|
|
14
15
|
.mc-modal {
|
15
16
|
.mc-modal-content {
|
16
17
|
// У модалки должен быть фон background. Чтобы поповеры и дропдауны было видно поверх модалки
|
17
|
-
background-color: map
|
18
|
+
background-color: mc-css-variable(background-background, map-get($background, background));
|
18
19
|
|
19
|
-
box-shadow: map
|
20
|
+
box-shadow: mc-css-variable(modal-shadow, map-get($modal, shadow));
|
20
21
|
}
|
21
22
|
|
22
23
|
.mc-modal-title {
|
23
|
-
color: map
|
24
|
+
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
24
25
|
}
|
25
26
|
|
26
27
|
.mc-modal-header {
|
27
|
-
border-bottom-width:
|
28
|
+
border-bottom-width: mc-css-variable(modal-size-border-width);
|
28
29
|
border-bottom-style: solid;
|
29
|
-
border-bottom-color: map
|
30
|
+
border-bottom-color: mc-css-variable(modal-header-border, map-get($modal, header-border));
|
30
31
|
}
|
31
32
|
|
32
33
|
.mc-modal-header.mc-modal-body_top-overflow {
|
33
|
-
box-shadow: map
|
34
|
+
box-shadow: mc-css-variable(modal-body-top-shadow, map-get($modal, body-top-shadow));
|
34
35
|
}
|
35
36
|
|
36
37
|
.mc-modal-footer.mc-modal-body_bottom-overflow {
|
37
|
-
box-shadow: map
|
38
|
+
box-shadow: mc-css-variable(modal-body-bottom-shadow, map-get($modal, body-bottom-shadow));
|
38
39
|
}
|
39
40
|
|
40
41
|
.mc-modal-footer {
|
41
|
-
border-top-width:
|
42
|
+
border-top-width: mc-css-variable(modal-size-border-width);
|
42
43
|
border-top-style: solid;
|
43
|
-
border-top-color: map
|
44
|
+
border-top-color: mc-css-variable(modal-footer-border, map-get($modal, footer-border));
|
44
45
|
|
45
|
-
background-color: map
|
46
|
+
background-color: mc-css-variable(popup-footer-background, map-get($popup, footer-background));
|
46
47
|
}
|
47
48
|
|
48
49
|
.mc-modal-close {
|
49
|
-
border:
|
50
|
+
border: mc-css-variable(modal-size-border-width) solid transparent;
|
50
51
|
|
51
52
|
&:hover {
|
52
53
|
.mc-button-overlay {
|
53
|
-
background: map
|
54
|
+
background: mc-css-variable(background-overlay-hover, map-get($background, overlay-hover));
|
54
55
|
}
|
55
56
|
|
56
57
|
.mc-icon {
|
@@ -61,28 +62,26 @@
|
|
61
62
|
}
|
62
63
|
|
63
64
|
.mc-modal-mask {
|
64
|
-
background-color: map
|
65
|
+
background-color: mc-css-variable(modal-background-mask, map-get($modal, background-mask));
|
65
66
|
}
|
66
67
|
|
67
68
|
.mc-confirm {
|
68
69
|
.mc-confirm-btns {
|
69
|
-
border-top-width:
|
70
|
+
border-top-width: mc-css-variable(modal-size-border-width);
|
70
71
|
border-top-style: solid;
|
71
|
-
border-top-color: map
|
72
|
+
border-top-color: mc-css-variable(modal-footer-border, map-get($modal, footer-border));
|
72
73
|
|
73
|
-
background-color: map
|
74
|
+
background-color: mc-css-variable(popup-footer-background, map-get($popup, footer-background));
|
74
75
|
}
|
75
76
|
}
|
76
77
|
}
|
77
78
|
|
78
79
|
@mixin mc-modal-typography($config) {
|
79
|
-
$tokens: map.get($config, tokens);
|
80
|
-
|
81
80
|
.mc-modal-title {
|
82
|
-
@include mc-typography-
|
81
|
+
@include mc-typography-css-variables(modal-header, default);
|
83
82
|
}
|
84
83
|
|
85
84
|
.mc-modal-body {
|
86
|
-
@include mc-typography-
|
85
|
+
@include mc-typography-css-variables(modal-body, default);
|
87
86
|
}
|
88
87
|
}
|
package/modal/modal.scss
CHANGED
@@ -7,6 +7,9 @@
|
|
7
7
|
|
8
8
|
@use './modal-confirm';
|
9
9
|
|
10
|
+
@use '../core/styles/common/tokens' as *;
|
11
|
+
|
12
|
+
|
10
13
|
$tokens: meta.module-variables(tokens) !default;
|
11
14
|
|
12
15
|
.mc-modal {
|
@@ -14,7 +17,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
14
17
|
|
15
18
|
position: relative;
|
16
19
|
|
17
|
-
top:
|
20
|
+
top: mc-css-variable(modal-size-top);
|
18
21
|
|
19
22
|
width: auto;
|
20
23
|
|
@@ -31,15 +34,15 @@ $tokens: meta.module-variables(tokens) !default;
|
|
31
34
|
}
|
32
35
|
|
33
36
|
&.mc-modal_small {
|
34
|
-
width:
|
37
|
+
width: mc-css-variable(modal-size-small);
|
35
38
|
}
|
36
39
|
|
37
40
|
&.mc-modal_medium {
|
38
|
-
width:
|
41
|
+
width: mc-css-variable(modal-size-medium);
|
39
42
|
}
|
40
43
|
|
41
44
|
&.mc-modal_large {
|
42
|
-
width:
|
45
|
+
width: mc-css-variable(modal-size-large);
|
43
46
|
}
|
44
47
|
|
45
48
|
& .mc-modal-close {
|
@@ -49,8 +52,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
49
52
|
top: 0;
|
50
53
|
right: 0;
|
51
54
|
|
52
|
-
width:
|
53
|
-
height:
|
55
|
+
width: mc-css-variable(modal-size-close-width);
|
56
|
+
height: mc-css-variable(modal-size-close-width);
|
54
57
|
}
|
55
58
|
}
|
56
59
|
|
@@ -82,7 +85,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
82
85
|
.mc-modal-content {
|
83
86
|
position: relative;
|
84
87
|
|
85
|
-
border-radius:
|
88
|
+
border-radius: mc-css-variable(modal-size-border-radius);
|
86
89
|
|
87
90
|
background-clip: padding-box;
|
88
91
|
background-color: white;
|
@@ -92,11 +95,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
92
95
|
display: flex;
|
93
96
|
align-items: center;
|
94
97
|
|
95
|
-
min-height:
|
98
|
+
min-height: mc-css-variable(modal-header-size-height);
|
96
99
|
|
97
|
-
border-radius:
|
100
|
+
border-radius: mc-css-variable(modal-header-size-border-radius);
|
98
101
|
|
99
|
-
padding:
|
102
|
+
padding: mc-css-variable(modal-header-size-padding);
|
100
103
|
|
101
104
|
&.mc-modal-header_closable {
|
102
105
|
$size-s: map.get($tokens, size-s);
|
@@ -109,9 +112,9 @@ $tokens: meta.module-variables(tokens) !default;
|
|
109
112
|
display: block;
|
110
113
|
overflow-y: auto;
|
111
114
|
|
112
|
-
max-height:
|
115
|
+
max-height: mc-css-variable(modal-body-size-max-height);
|
113
116
|
|
114
|
-
padding:
|
117
|
+
padding: mc-css-variable(modal-body-size-padding);
|
115
118
|
|
116
119
|
word-wrap: break-word;
|
117
120
|
}
|
@@ -121,11 +124,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
121
124
|
align-items: center;
|
122
125
|
justify-content: flex-end;
|
123
126
|
|
124
|
-
height:
|
127
|
+
height: mc-css-variable(modal-footer-size-height);
|
125
128
|
|
126
|
-
border-radius:
|
129
|
+
border-radius: mc-css-variable(modal-footer-size-border-radius);
|
127
130
|
|
128
|
-
padding:
|
131
|
+
padding: mc-css-variable(modal-footer-size-padding);
|
129
132
|
|
130
133
|
button + button {
|
131
134
|
margin-left: 16px;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
@use 'sass:map';
|
2
2
|
|
3
3
|
@use '../core/styles/typography/typography-utils' as *;
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
5
|
+
|
4
6
|
|
5
7
|
@mixin mc-navbar-theme($theme) {
|
6
8
|
$background: map.get($theme, background);
|
@@ -11,51 +13,51 @@
|
|
11
13
|
|
12
14
|
.mc-navbar,
|
13
15
|
.mc-vertical-navbar .mc-vertical-navbar__container {
|
14
|
-
background-color: map
|
16
|
+
background-color: mc-css-variable(navbar-background, map-get($navbar, background));
|
15
17
|
}
|
16
18
|
|
17
19
|
.mc-navbar-brand.mc-hovered:not(.mc-collapsed) {
|
18
|
-
background-color: map
|
20
|
+
background-color: mc-css-variable(navbar-item-state-hover, map-get($navbar-item, state-hover));
|
19
21
|
}
|
20
22
|
|
21
23
|
.mc-navbar-brand.mc-vertical.mc-collapsed {
|
22
24
|
& .mc-navbar-logo:hover {
|
23
|
-
background-color: map
|
25
|
+
background-color: mc-css-variable(navbar-item-state-hover, map-get($navbar-item, state-hover));
|
24
26
|
}
|
25
27
|
}
|
26
28
|
|
27
29
|
.mc-navbar-title {
|
28
|
-
color: map
|
30
|
+
color: mc-css-variable(navbar-item-color, map-get($navbar-item, color));
|
29
31
|
}
|
30
32
|
|
31
33
|
.mc-navbar-item,
|
32
34
|
.mc-navbar-brand,
|
33
35
|
.mc-navbar-toggle {
|
34
|
-
color: map
|
36
|
+
color: mc-css-variable(navbar-item-color, map-get($navbar-item, color));
|
35
37
|
|
36
38
|
& > .mc-icon {
|
37
|
-
color: map
|
39
|
+
color: mc-css-variable(navbar-item-icon-color, map-get($navbar-item, icon-color));
|
38
40
|
}
|
39
41
|
|
40
42
|
& .mc-navbar-item__arrow-icon {
|
41
|
-
color: map
|
43
|
+
color: mc-css-variable(navbar-item-color, map-get($navbar-item, color));
|
42
44
|
}
|
43
45
|
|
44
46
|
&.mc-active {
|
45
|
-
background: map
|
47
|
+
background: mc-css-variable(navbar-item-state-selected, map-get($navbar-item, state-selected));
|
46
48
|
}
|
47
49
|
|
48
50
|
&:hover:not(.mc-navbar-item_has-nested) {
|
49
51
|
cursor: pointer;
|
50
52
|
|
51
53
|
& .mc-navbar-item__overlay {
|
52
|
-
background-color: map
|
54
|
+
background-color: mc-css-variable(navbar-item-state-hover, map-get($navbar-item, state-hover));
|
53
55
|
}
|
54
56
|
}
|
55
57
|
|
56
58
|
&:active:not(.mc-navbar-item_has-nested) {
|
57
59
|
& .mc-navbar-item__overlay {
|
58
|
-
background: map
|
60
|
+
background: mc-css-variable(navbar-item-state-active, map-get($navbar-item, state-active));
|
59
61
|
}
|
60
62
|
}
|
61
63
|
|
@@ -65,7 +67,8 @@
|
|
65
67
|
|
66
68
|
.mc-navbar-item__title,
|
67
69
|
.mc-icon {
|
68
|
-
opacity:
|
70
|
+
opacity: mc-css-variable(
|
71
|
+
navbar-item-state-disabled-opacity, map-get($navbar-item, state-disabled-opacity));
|
69
72
|
}
|
70
73
|
}
|
71
74
|
}
|
@@ -76,14 +79,14 @@
|
|
76
79
|
/* stylelint-disable no-descending-specificity */
|
77
80
|
&.cdk-keyboard-focused .mc-navbar-item__overlay {
|
78
81
|
box-shadow:
|
79
|
-
inset 0 0 0 2px
|
80
|
-
inset 0 0 0 3px map
|
82
|
+
inset 0 0 0 2px mc-css-variable(states-focused-color, map-get($theme, states, focused-color)),
|
83
|
+
inset 0 0 0 3px mc-css-variable(background-background, map-get($background, background));
|
81
84
|
}
|
82
85
|
/* stylelint-enable no-descending-specificity */
|
83
86
|
}
|
84
87
|
|
85
88
|
.mc-navbar-divider {
|
86
|
-
background-color: map
|
89
|
+
background-color: mc-css-variable(navbar-divider-background, map-get($navbar, divider-background));
|
87
90
|
}
|
88
91
|
}
|
89
92
|
|
@@ -97,10 +100,8 @@ button {
|
|
97
100
|
}
|
98
101
|
|
99
102
|
@mixin mc-navbar-typography($config) {
|
100
|
-
$tokens: map.get($config, tokens);
|
101
|
-
|
102
103
|
.mc-navbar-title {
|
103
|
-
@include mc-typography-
|
104
|
+
@include mc-typography-css-variables(navbar, title);
|
104
105
|
}
|
105
106
|
|
106
107
|
.mc-navbar-subtitle {
|
@@ -109,7 +110,7 @@ button {
|
|
109
110
|
|
110
111
|
.mc-navbar-brand {
|
111
112
|
.mc-navbar-title {
|
112
|
-
@include mc-typography-
|
113
|
+
@include mc-typography-css-variables(navbar-brand, title);
|
113
114
|
|
114
115
|
&.mc-navbar-title_small {
|
115
116
|
@include mc-typography-level-to-styles($config, subheading);
|
package/navbar/navbar-brand.scss
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
4
|
@use '../core/styles/tokens';
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
5
6
|
|
6
7
|
|
7
8
|
$tokens: meta.module-variables(tokens) !default;
|
@@ -26,12 +27,12 @@ a.mc-navbar-brand {
|
|
26
27
|
}
|
27
28
|
|
28
29
|
.mc-navbar-brand.mc-horizontal {
|
29
|
-
height:
|
30
|
+
height: mc-css-variable(navbar-item-size-height);
|
30
31
|
|
31
|
-
padding-right:
|
32
|
+
padding-right: mc-css-variable(navbar-brand-size-margin-right);
|
32
33
|
|
33
34
|
& .mc-navbar-title {
|
34
|
-
padding-left:
|
35
|
+
padding-left: mc-css-variable(navbar-brand-size-padding);
|
35
36
|
padding-right: 0;
|
36
37
|
}
|
37
38
|
}
|
@@ -42,18 +43,15 @@ a.mc-navbar-brand {
|
|
42
43
|
justify-content: center;
|
43
44
|
align-items: center;
|
44
45
|
|
45
|
-
min-height:
|
46
|
-
min-width:
|
47
|
-
--mc-vertical-navbar-size-states-collapsed-width,
|
48
|
-
map.get($tokens, vertical-navbar-size-states-collapsed-width)
|
49
|
-
);
|
46
|
+
min-height: mc-css-variable(navbar-item-size-height-vertical);
|
47
|
+
min-width: mc-css-variable(vertical-navbar-size-states-collapsed-width);
|
50
48
|
}
|
51
49
|
|
52
50
|
& .mc-navbar-title {
|
53
51
|
display: flex;
|
54
52
|
align-items: center;
|
55
53
|
|
56
|
-
height:
|
54
|
+
height: mc-css-variable(navbar-item-size-height-vertical);
|
57
55
|
|
58
56
|
padding-left: 0;
|
59
57
|
}
|
@@ -142,13 +142,13 @@ export declare class McNavbarItem extends McTooltipTrigger {
|
|
142
142
|
get showVerticalDropDownAngle(): boolean;
|
143
143
|
get showHorizontalDropDownAngle(): boolean;
|
144
144
|
get hasCroppedText(): boolean;
|
145
|
-
constructor(rectangleElement: McNavbarRectangleElement, navbarFocusableItem: McNavbarFocusableItem, changeDetectorRef: ChangeDetectorRef, overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, dropdownTrigger: McDropdownTrigger, bento: McNavbarBento);
|
145
|
+
constructor(rectangleElement: McNavbarRectangleElement, navbarFocusableItem: McNavbarFocusableItem, changeDetectorRef: ChangeDetectorRef, overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, focusMonitor: FocusMonitor, scrollStrategy: any, direction: Directionality, dropdownTrigger: McDropdownTrigger, bento: McNavbarBento);
|
146
146
|
ngAfterContentInit(): void;
|
147
147
|
updateTooltip(): void;
|
148
148
|
getTitleWidth(): number;
|
149
149
|
onKeyDown($event: KeyboardEvent): void;
|
150
150
|
private updateCollapsedState;
|
151
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McNavbarItem, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McNavbarItem, [null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
152
152
|
static ɵcmp: i0.ɵɵComponentDeclaration<McNavbarItem, "mc-navbar-item, [mc-navbar-item]", ["mcNavbarItem"], { "collapsedText": { "alias": "collapsedText"; "required": false; }; "trigger": { "alias": "mcTrigger"; "required": false; }; "collapsable": { "alias": "collapsable"; "required": false; }; }, {}, ["title", "subTitle", "icon"], ["[mc-icon]", "mc-navbar-title, [mc-navbar-title]", "mc-navbar-subtitle, [mc-navbar-subtitle]", "*"], false, never>;
|
153
153
|
}
|
154
154
|
export declare class McNavbarToggle extends McTooltipTrigger implements OnDestroy {
|
@@ -160,12 +160,12 @@ export declare class McNavbarToggle extends McTooltipTrigger implements OnDestro
|
|
160
160
|
set content(content: string | TemplateRef<any>);
|
161
161
|
get disabled(): boolean;
|
162
162
|
protected modifier: TooltipModifier;
|
163
|
-
constructor(navbar: McVerticalNavbar, changeDetectorRef: ChangeDetectorRef, overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, document: any);
|
163
|
+
constructor(navbar: McVerticalNavbar, changeDetectorRef: ChangeDetectorRef, overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, focusMonitor: FocusMonitor, direction: Directionality, document: any);
|
164
164
|
onKeydown($event: KeyboardEvent): void;
|
165
165
|
ngOnDestroy(): void;
|
166
166
|
toggle: () => void;
|
167
167
|
private getWindow;
|
168
168
|
private windowToggleHandler;
|
169
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McNavbarToggle, [null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
169
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McNavbarToggle, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
170
170
|
static ɵcmp: i0.ɵɵComponentDeclaration<McNavbarToggle, "mc-navbar-toggle", never, { "content": { "alias": "mcCollapsedTooltip"; "required": false; }; }, {}, ["customIcon"], ["[mc-icon]", "mc-navbar-title"], false, never>;
|
171
171
|
}
|