@ptsecurity/mosaic 17.1.0 → 17.2.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/autocomplete/_autocomplete-theme.scss +4 -3
- 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 +21 -60
- 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 +203 -115
- package/code-block/actionbar.component.scss +5 -7
- package/code-block/code-block.scss +5 -6
- package/core/forms/_forms-theme.scss +18 -47
- 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/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +16 -11
- package/core/styles/_mosaic-theme.scss +3 -3
- package/core/styles/common/_groups.scss +3 -2
- package/core/styles/common/_popup.scss +5 -4
- package/core/styles/common/_tokens.scss +49 -0
- package/core/styles/theming/_alerts.scss +28 -35
- package/core/styles/theming/_badges.scss +39 -38
- package/core/styles/theming/_components-theming.scss +13 -13
- package/core/styles/theming/_scrollbars.scss +24 -27
- package/core/styles/theming/_theming.scss +10 -8
- package/core/styles/typography/_typography-utils.scss +1 -1
- package/core/styles/typography/_typography.scss +29 -28
- package/core/styles/visual/_layout.scss +14 -13
- package/datepicker/_datepicker-theme.scss +19 -21
- 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 +5 -3
- package/divider/divider.scss +5 -4
- package/dl/_dl-theme.scss +13 -37
- 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/button/button.component.mjs +2 -2
- package/esm2022/button-toggle/button-toggle.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/multiple-file-upload.component.mjs +2 -2
- package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
- 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 +8 -8
- package/esm2022/navbar/navbar-item.component.mjs +9 -9
- package/esm2022/navbar/navbar.component.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +3 -3
- 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 +3 -3
- package/esm2022/tabs/tab-header.component.mjs +2 -2
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- 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 +3 -3
- package/fesm2022/ptsecurity-mosaic-button-toggle.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-button-toggle.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 +4 -4
- 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 +7 -7
- package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-navbar.mjs +12 -12
- 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 +12 -11
- 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-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 +2 -2
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +87 -54
- package/file-upload/file-upload.scss +0 -7
- package/file-upload/multiple-file-upload.component.scss +23 -51
- package/file-upload/single-file-upload.component.scss +12 -27
- package/form-field/_form-field-theme.scss +45 -36
- package/form-field/form-field.scss +13 -14
- package/icon/_icon-theme.scss +27 -26
- 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 +35 -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 +62 -44
- package/markdown/markdown.scss +39 -80
- package/modal/_modal-confirm.scss +3 -2
- package/modal/_modal-theme.scss +22 -23
- package/modal/modal.scss +20 -17
- package/navbar/_navbar-theme.scss +23 -22
- package/navbar/navbar-brand.scss +7 -9
- package/navbar/navbar-item.component.d.ts +4 -4
- package/navbar/navbar-item.scss +10 -9
- package/navbar/vertical-navbar.scss +4 -12
- package/package.json +18 -18
- package/popover/_popover-theme.scss +36 -36
- 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 +33 -25
- package/radio/radio.scss +8 -11
- package/select/_select-theme.scss +15 -15
- package/select/select-option.directive.d.ts +3 -2
- package/select/select.scss +20 -43
- package/sidepanel/_sidepanel-theme.scss +11 -11
- 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 +65 -58
- package/tabs/tab-group.scss +2 -1
- package/tabs/tab-header.scss +20 -15
- package/tabs/tab-nav-bar/tab-nav-bar.scss +18 -15
- package/tags/_tag-theme.scss +32 -29
- 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 +8 -8
- 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 +14 -17
- package/toast/toast-container.component.scss +2 -5
- package/toast/toast.component.scss +15 -17
- package/toggle/_toggle-theme.scss +23 -22
- package/toggle/toggle.scss +19 -21
- package/tooltip/_tooltip-theme.scss +27 -32
- 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.scss +18 -36
- package/_theming.scss +0 -10923
- package/_visual.scss +0 -3604
- package/prebuilt-visual/default-visual.css +0 -1
package/sidepanel/sidepanel.scss
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
@use '../core/styles/common';
|
5
5
|
|
6
6
|
@use '../core/styles/tokens';
|
7
|
+
@use '../core/styles/common/tokens' as *;
|
7
8
|
|
8
9
|
|
9
10
|
$tokens: meta.module-variables(tokens) !default;
|
@@ -39,18 +40,18 @@ $tokens: meta.module-variables(tokens) !default;
|
|
39
40
|
top: 0;
|
40
41
|
|
41
42
|
&.mc-sidepanel_small {
|
42
|
-
width:
|
43
|
-
max-width:
|
43
|
+
width: mc-css-variable(sidepanel-size-small);
|
44
|
+
max-width: mc-css-variable(sidepanel-size-small);
|
44
45
|
}
|
45
46
|
|
46
47
|
&.mc-sidepanel_medium {
|
47
|
-
width:
|
48
|
-
max-width:
|
48
|
+
width: mc-css-variable(sidepanel-size-medium);
|
49
|
+
max-width: mc-css-variable(sidepanel-size-medium);
|
49
50
|
}
|
50
51
|
|
51
52
|
&.mc-sidepanel_large {
|
52
|
-
width:
|
53
|
-
max-width:
|
53
|
+
width: mc-css-variable(sidepanel-size-large);
|
54
|
+
max-width: mc-css-variable(sidepanel-size-large);
|
54
55
|
}
|
55
56
|
|
56
57
|
.mc-sidepanel-indent {
|
@@ -136,7 +137,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
136
137
|
flex-flow: row nowrap;
|
137
138
|
flex: 0 0 auto;
|
138
139
|
|
139
|
-
height:
|
140
|
+
height: mc-css-variable(sidepanel-header-size-height);
|
140
141
|
|
141
142
|
.mc-sidepanel-close {
|
142
143
|
@include common.mc-button-reset();
|
@@ -159,7 +160,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
159
160
|
|
160
161
|
@include common.mc-truncate-line();
|
161
162
|
|
162
|
-
padding:
|
163
|
+
padding: mc-css-variable(sidepanel-header-size-padding);
|
163
164
|
}
|
164
165
|
|
165
166
|
.mc-sidepanel-body {
|
@@ -178,9 +179,9 @@ $tokens: meta.module-variables(tokens) !default;
|
|
178
179
|
flex-flow: row nowrap;
|
179
180
|
flex: 0 0 auto;
|
180
181
|
|
181
|
-
height:
|
182
|
+
height: mc-css-variable(sidepanel-footer-size-height);
|
182
183
|
|
183
|
-
padding:
|
184
|
+
padding: mc-css-variable(sidepanel-footer-size-padding);
|
184
185
|
|
185
186
|
.mc-sidepanel-actions {
|
186
187
|
display: flex;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
@use 'sass:map';
|
2
2
|
|
3
3
|
@use '../core/styles/theming/theming' as *;
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
4
5
|
|
5
6
|
|
6
7
|
@mixin mc-splitter-theme($theme) {
|
@@ -11,7 +12,8 @@
|
|
11
12
|
|
12
13
|
&:hover,
|
13
14
|
&.mc-gutter_dragged {
|
14
|
-
background-color:
|
15
|
+
background-color: mc-css-variable(
|
16
|
+
background-background-disabled, map-get($background, background-disabled));
|
15
17
|
}
|
16
18
|
|
17
19
|
&.mc-gutter_vertical {
|
@@ -19,13 +21,13 @@
|
|
19
21
|
}
|
20
22
|
|
21
23
|
&[disabled] {
|
22
|
-
background-color: mc-
|
24
|
+
background-color: mc-css-variable(background-overlay-disabled, map-get($background, overlay-disabled));
|
23
25
|
|
24
26
|
cursor: default;
|
25
27
|
}
|
26
28
|
}
|
27
29
|
|
28
30
|
.mc-gutter-ghost {
|
29
|
-
background: mc-
|
31
|
+
background: mc-css-variable(background-overlay-disabled, map-get($background, overlay-disabled));
|
30
32
|
}
|
31
33
|
}
|
package/table/_table-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-table-theme($theme) {
|
7
9
|
$foreground: map.get($theme, foreground);
|
@@ -9,22 +11,22 @@
|
|
9
11
|
|
10
12
|
.mc-table {
|
11
13
|
& > thead {
|
12
|
-
color: map
|
14
|
+
color: mc-css-variable(foreground-text-less-contrast, map-get($foreground, text-less-contrast));
|
13
15
|
|
14
16
|
& > tr > th {
|
15
|
-
border-color: map
|
17
|
+
border-color: mc-css-variable(foreground-divider, map-get($foreground, divider));
|
16
18
|
}
|
17
19
|
}
|
18
20
|
|
19
21
|
& > tbody {
|
20
22
|
& > tr {
|
21
23
|
&:hover {
|
22
|
-
background-color: map
|
24
|
+
background-color: mc-css-variable(background-overlay-hover, map-get($background, overlay-hover));
|
23
25
|
}
|
24
26
|
|
25
27
|
& > th,
|
26
28
|
& > td {
|
27
|
-
color: map
|
29
|
+
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
28
30
|
}
|
29
31
|
}
|
30
32
|
}
|
@@ -33,7 +35,7 @@
|
|
33
35
|
& > tbody > tr {
|
34
36
|
& th,
|
35
37
|
& td {
|
36
|
-
border-
|
38
|
+
border-color: mc-css-variable(foreground-divider, map-get($foreground, divider));
|
37
39
|
}
|
38
40
|
}
|
39
41
|
}
|
@@ -41,15 +43,13 @@
|
|
41
43
|
}
|
42
44
|
|
43
45
|
@mixin mc-table-typography($config) {
|
44
|
-
$tokens: map.get($config, tokens);
|
45
|
-
|
46
46
|
.mc-table {
|
47
47
|
& > thead {
|
48
48
|
& > tr > th {
|
49
49
|
font-weight: normal;
|
50
50
|
}
|
51
51
|
|
52
|
-
@include mc-typography-
|
52
|
+
@include mc-typography-css-variables(table, header);
|
53
53
|
}
|
54
54
|
|
55
55
|
& > tbody {
|
@@ -57,7 +57,7 @@
|
|
57
57
|
font-weight: normal;
|
58
58
|
}
|
59
59
|
|
60
|
-
@include mc-typography-
|
60
|
+
@include mc-typography-css-variables(table, body);
|
61
61
|
}
|
62
62
|
}
|
63
63
|
}
|
package/table/table.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;
|
@@ -16,7 +17,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
16
17
|
& > th,
|
17
18
|
& > td {
|
18
19
|
padding: {
|
19
|
-
top:
|
20
|
+
top: mc-css-variable(table-size-row-padding-vertical);
|
20
21
|
right: calc((var(
|
21
22
|
--mc-table-size-row-padding-horizontal,
|
22
23
|
map.get($tokens, table-size-row-padding-horizontal)
|
@@ -37,14 +38,12 @@ $tokens: meta.module-variables(tokens) !default;
|
|
37
38
|
|
38
39
|
& > th:first-child,
|
39
40
|
& > td:first-child {
|
40
|
-
padding-left:
|
41
|
-
var(--mc-table-size-row-padding-horizontal, map.get($tokens, table-size-row-padding-horizontal));
|
41
|
+
padding-left: mc-css-variable(table-size-row-padding-horizontal);
|
42
42
|
}
|
43
43
|
|
44
44
|
& > th:last-child,
|
45
45
|
& > td:last-child {
|
46
|
-
padding-right:
|
47
|
-
var(--mc-table-size-row-padding-horizontal, map.get($tokens, table-size-row-padding-horizontal));
|
46
|
+
padding-right: mc-css-variable(table-size-row-padding-horizontal);
|
48
47
|
}
|
49
48
|
}
|
50
49
|
}
|
@@ -53,23 +52,21 @@ $tokens: meta.module-variables(tokens) !default;
|
|
53
52
|
& > thead {
|
54
53
|
& > tr > th {
|
55
54
|
padding: {
|
56
|
-
top:
|
57
|
-
bottom: (
|
58
|
-
|
59
|
-
var(--mc-table-size-border-width, map.get($tokens, table-size-border-width))
|
60
|
-
);
|
55
|
+
top: mc-css-variable(table-size-row-padding-vertical);
|
56
|
+
bottom: (calc(
|
57
|
+
var(--mc-table-size-row-padding-vertical, map.get($tokens, table-size-row-padding-vertical)) -
|
58
|
+
var(--mc-table-size-border-width, map.get($tokens, table-size-border-width))
|
59
|
+
));
|
61
60
|
}
|
62
61
|
|
63
|
-
border-bottom:
|
64
|
-
var(--mc-table-size-border-width, map.get($tokens, table-size-border-width)) solid transparent;
|
62
|
+
border-bottom: mc-css-variable(table-size-border-width) solid transparent;
|
65
63
|
}
|
66
64
|
}
|
67
65
|
|
68
66
|
& > tbody > tr {
|
69
67
|
& th,
|
70
68
|
& td {
|
71
|
-
border-bottom:
|
72
|
-
var(--mc-table-size-border-width, map.get($tokens, table-size-border-width)) solid transparent;
|
69
|
+
border-bottom: mc-css-variable(table-size-border-width) solid transparent;
|
73
70
|
}
|
74
71
|
}
|
75
72
|
/* stylelint-enable no-descending-specificity */
|
package/tabs/_tabs-common.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;
|
@@ -24,8 +25,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
24
25
|
width: calc(var(--mc-tabs-size-border-width, #{map.get($tokens, tabs-size-border-width)}) * 2);
|
25
26
|
style: solid;
|
26
27
|
top: {
|
27
|
-
left-radius:
|
28
|
-
right-radius:
|
28
|
+
left-radius: mc-css-variable(tabs-size-border-radius);
|
29
|
+
right-radius: mc-css-variable(tabs-size-border-radius);
|
29
30
|
}
|
30
31
|
};
|
31
32
|
|
@@ -43,7 +44,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
43
44
|
justify-content: center;
|
44
45
|
align-items: center;
|
45
46
|
|
46
|
-
height:
|
47
|
+
height: mc-css-variable(tabs-size-height);
|
47
48
|
|
48
49
|
text-align: center;
|
49
50
|
white-space: nowrap;
|
@@ -51,8 +52,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
51
52
|
cursor: pointer;
|
52
53
|
|
53
54
|
padding: {
|
54
|
-
right:
|
55
|
-
left:
|
55
|
+
right: mc-css-variable(tabs-size-padding-horizontal);
|
56
|
+
left: mc-css-variable(tabs-size-padding-horizontal);
|
56
57
|
}
|
57
58
|
|
58
59
|
outline: none;
|
@@ -90,17 +91,17 @@ $tokens: meta.module-variables(tokens) !default;
|
|
90
91
|
|
91
92
|
& .mc-tab-label__content > .mc-icon {
|
92
93
|
&.mc-icon_left {
|
93
|
-
margin-right:
|
94
|
+
margin-right: mc-css-variable(tabs-size-label-icon-margin);
|
94
95
|
}
|
95
96
|
|
96
97
|
&.mc-icon_right {
|
97
|
-
margin-left:
|
98
|
+
margin-left: mc-css-variable(tabs-size-label-icon-margin);
|
98
99
|
}
|
99
100
|
}
|
100
101
|
|
101
102
|
&.mc-tab-label_horizontal {
|
102
103
|
border-bottom: {
|
103
|
-
width:
|
104
|
+
width: mc-css-variable(tabs-size-border-width);
|
104
105
|
style: solid;
|
105
106
|
}
|
106
107
|
|
@@ -109,7 +110,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
109
110
|
left: 0;
|
110
111
|
right: 0;
|
111
112
|
|
112
|
-
height:
|
113
|
+
height: mc-css-variable(tabs-size-highlight-height);
|
113
114
|
}
|
114
115
|
|
115
116
|
&.cdk-keyboard-focused:after {
|
@@ -148,17 +149,17 @@ $tokens: meta.module-variables(tokens) !default;
|
|
148
149
|
|
149
150
|
@mixin tab-label-old {
|
150
151
|
border-bottom: {
|
151
|
-
width:
|
152
|
+
width: mc-css-variable(tabs-size-border-width);
|
152
153
|
style: solid;
|
153
154
|
}
|
154
155
|
|
155
156
|
border: {
|
156
|
-
width:
|
157
|
+
width: mc-css-variable(tabs-size-border-width);
|
157
158
|
style: solid;
|
158
159
|
|
159
160
|
top: {
|
160
|
-
left-radius:
|
161
|
-
right-radius:
|
161
|
+
left-radius: mc-css-variable(tabs-size-border-radius);
|
162
|
+
right-radius: mc-css-variable(tabs-size-border-radius);
|
162
163
|
}
|
163
164
|
|
164
165
|
left: none;
|
@@ -169,7 +170,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
169
170
|
|
170
171
|
&.mc-active {
|
171
172
|
border: {
|
172
|
-
width:
|
173
|
+
width: mc-css-variable(tabs-size-border-width);
|
173
174
|
style: solid;
|
174
175
|
}
|
175
176
|
|
package/tabs/_tabs-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
|
//noinspection ALL
|
7
9
|
@mixin mc-tabs-theme($theme) {
|
@@ -9,39 +11,39 @@
|
|
9
11
|
$background: map.get($theme, background);
|
10
12
|
$states: map.get($theme, states);
|
11
13
|
|
12
|
-
$tabs: map.get(
|
13
|
-
$vertical-tabs: map.get(
|
14
|
+
$tabs: map.get($theme, components, tabs);
|
15
|
+
$vertical-tabs: map.get($theme, components, vertical-tabs);
|
14
16
|
|
15
17
|
.mc-tab-group_vertical .mc-tab-header__content {
|
16
|
-
border-right-color: map
|
18
|
+
border-right-color: mc-css-variable(foreground-divider, map-get($foreground, divider));
|
17
19
|
}
|
18
20
|
|
19
21
|
.mc-tab-nav-bar:after,
|
20
22
|
.mc-tab-list__content:after {
|
21
|
-
border-bottom-color: map-get($tabs, border);
|
23
|
+
border-bottom-color: mc-css-variable(tabs-border, map-get($tabs, border));
|
22
24
|
}
|
23
25
|
|
24
26
|
.mc-tab-header__pagination {
|
25
|
-
border-bottom-color: map
|
27
|
+
border-bottom-color: mc-css-variable(tabs-border, map-get($tabs, border));
|
26
28
|
|
27
29
|
&:hover {
|
28
|
-
background: map
|
30
|
+
background: mc-css-variable(background-overlay-hover, map-get($background, overlay-hover));
|
29
31
|
|
30
32
|
& .mc-icon {
|
31
|
-
color: map
|
33
|
+
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
32
34
|
}
|
33
35
|
}
|
34
36
|
|
35
37
|
&:active {
|
36
|
-
background: map
|
38
|
+
background: mc-css-variable(foreground-divider, map-get($foreground, divider));
|
37
39
|
}
|
38
40
|
|
39
41
|
&.mc-tab-header__pagination_before {
|
40
|
-
border-right-color: map
|
42
|
+
border-right-color: mc-css-variable(foreground-divider, map-get($foreground, divider));
|
41
43
|
}
|
42
44
|
|
43
45
|
&.mc-tab-header__pagination_after {
|
44
|
-
border-left-color: map
|
46
|
+
border-left-color: mc-css-variable(foreground-divider, map-get($foreground, divider));
|
45
47
|
}
|
46
48
|
|
47
49
|
&[disabled],
|
@@ -49,44 +51,44 @@
|
|
49
51
|
pointer-events: none;
|
50
52
|
|
51
53
|
& .mc-icon {
|
52
|
-
color: map
|
54
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
53
55
|
}
|
54
56
|
}
|
55
57
|
}
|
56
58
|
|
57
59
|
/* stylelint-disable no-descending-specificity */
|
58
60
|
.mc-tab-label_old {
|
59
|
-
color: map
|
61
|
+
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
60
62
|
|
61
63
|
border-top-color: transparent;
|
62
|
-
border-bottom-color: map
|
64
|
+
border-bottom-color: mc-css-variable(tabs-border, map-get($tabs, border));
|
63
65
|
|
64
66
|
&.cdk-keyboard-focused:after {
|
65
|
-
border-color:
|
67
|
+
border-color: mc-css-variable(states-focused-color, map-get($theme, states, focused-color));
|
66
68
|
border-bottom-color: transparent;
|
67
69
|
}
|
68
70
|
|
69
71
|
&.mc-tab-label_empty {
|
70
|
-
color: map
|
72
|
+
color: mc-css-variable(tabs-state-empty-text, map-get($tabs, state-empty-text));
|
71
73
|
|
72
74
|
& .mc-icon {
|
73
|
-
color: map
|
75
|
+
color: mc-css-variable(tabs-state-empty-icon, map-get($tabs, state-empty-icon));
|
74
76
|
}
|
75
77
|
}
|
76
78
|
|
77
79
|
&:hover {
|
78
|
-
background: map
|
80
|
+
background: mc-css-variable(background-overlay-hover, map-get($background, overlay-hover));
|
79
81
|
|
80
|
-
color: map
|
82
|
+
color: mc-css-variable(tabs-state-hover-text, map-get($tabs, state-hover-text));
|
81
83
|
|
82
84
|
& .mc-icon {
|
83
|
-
color: map
|
85
|
+
color: mc-css-variable(tabs-state-hover-icon, map-get($tabs, state-hover-icon));
|
84
86
|
}
|
85
87
|
}
|
86
88
|
|
87
89
|
&.mc-active {
|
88
90
|
border: {
|
89
|
-
color: map
|
91
|
+
color: mc-css-variable(tabs-border, map-get($tabs, border));
|
90
92
|
bottom-color: transparent;
|
91
93
|
}
|
92
94
|
}
|
@@ -95,58 +97,58 @@
|
|
95
97
|
&.mc-disabled {
|
96
98
|
cursor: default;
|
97
99
|
|
98
|
-
color: map
|
100
|
+
color: mc-css-variable(tabs-state-disabled-text, map-get($tabs, state-disabled-text));
|
99
101
|
|
100
102
|
& .mc-icon {
|
101
|
-
color: map
|
103
|
+
color: mc-css-variable(tabs-state-disabled-icon, map-get($tabs, state-disabled-icon));
|
102
104
|
}
|
103
105
|
}
|
104
106
|
}
|
105
107
|
|
106
108
|
.mc-tab-link,
|
107
109
|
.mc-tab-label_horizontal {
|
108
|
-
color: map
|
110
|
+
color: mc-css-variable(tabs-state-normal-text, map-get($tabs, state-normal-text));
|
109
111
|
|
110
112
|
& .mc-icon {
|
111
|
-
color: map
|
113
|
+
color: mc-css-variable(tabs-state-normal-icon, map-get($tabs, state-normal-icon));
|
112
114
|
}
|
113
115
|
|
114
|
-
border-bottom-color: map
|
116
|
+
border-bottom-color: mc-css-variable(tabs-border, map-get($tabs, border));
|
115
117
|
|
116
118
|
&.cdk-keyboard-focused:after {
|
117
|
-
border-color: map
|
119
|
+
border-color: map-get(map-get($theme, states), focused-color);
|
118
120
|
border-bottom-color: transparent;
|
119
121
|
}
|
120
122
|
|
121
123
|
&.mc-tab-label_empty {
|
122
|
-
color: map
|
124
|
+
color: mc-css-variable(tabs-state-empty-text, map-get($tabs, state-empty-text));
|
123
125
|
|
124
126
|
& .mc-icon {
|
125
|
-
color: map
|
127
|
+
color: mc-css-variable(tabs-state-empty-icon, map-get($tabs, state-empty-icon));
|
126
128
|
}
|
127
129
|
}
|
128
130
|
|
129
131
|
&.mc-active {
|
130
132
|
border-bottom-color: transparent;
|
131
133
|
|
132
|
-
color: map
|
134
|
+
color: mc-css-variable(tabs-state-normal-text, map-get($tabs, state-normal-text));
|
133
135
|
|
134
136
|
& .mc-icon {
|
135
|
-
color: map
|
137
|
+
color: mc-css-variable(tabs-state-normal-icon, map-get($tabs, state-normal-icon));
|
136
138
|
}
|
137
139
|
|
138
140
|
&:before {
|
139
|
-
background-color: map
|
141
|
+
background-color: mc-css-variable(tabs-state-active-marker, map-get($tabs, state-active-marker));
|
140
142
|
}
|
141
143
|
}
|
142
144
|
|
143
145
|
&:hover {
|
144
|
-
background: map
|
146
|
+
background: mc-css-variable(background-overlay-hover, map-get($background, overlay-hover));
|
145
147
|
|
146
|
-
color: map
|
148
|
+
color: mc-css-variable(tabs-state-hover-text, map-get($tabs, state-hover-text));
|
147
149
|
|
148
150
|
& .mc-icon {
|
149
|
-
color: map
|
151
|
+
color: mc-css-variable(tabs-state-hover-icon, map-get($tabs, state-hover-icon));
|
150
152
|
}
|
151
153
|
}
|
152
154
|
|
@@ -154,65 +156,71 @@
|
|
154
156
|
&.mc-disabled {
|
155
157
|
cursor: default;
|
156
158
|
|
157
|
-
color: map
|
159
|
+
color: mc-css-variable(tabs-state-disabled-text, map-get($tabs, state-disabled-text));
|
158
160
|
|
159
161
|
&:before {
|
160
|
-
opacity:
|
162
|
+
opacity: mc-css-variable(
|
163
|
+
tabs-state-disabled-marker-opacity, map-get($tabs, state-disabled-marker-opacity));
|
161
164
|
}
|
162
165
|
|
163
166
|
& .mc-icon {
|
164
|
-
color: map
|
167
|
+
color: mc-css-variable(tabs-state-disabled-icon, map-get($tabs, state-disabled-icon));
|
165
168
|
}
|
166
169
|
}
|
167
170
|
}
|
168
171
|
|
169
172
|
.mc-tab-label_vertical {
|
170
|
-
background:
|
171
|
-
|
173
|
+
background: mc-css-variable(
|
174
|
+
vertical-tabs-state-normal-background, map-get($vertical-tabs, state-normal-background));
|
175
|
+
color: mc-css-variable(tabs-state-normal-text, map-get($tabs, state-normal-text));
|
172
176
|
|
173
177
|
& .mc-icon {
|
174
|
-
color: map
|
178
|
+
color: mc-css-variable(tabs-state-normal-icon, map-get($tabs, state-normal-icon));
|
175
179
|
}
|
176
180
|
|
177
181
|
&.cdk-keyboard-focused:after {
|
178
|
-
border-color: map
|
182
|
+
border-color: map-get(map-get($theme, states), focused-color);
|
179
183
|
}
|
180
184
|
|
181
185
|
&.mc-tab-label_empty {
|
182
|
-
color: map
|
186
|
+
color: mc-css-variable(tabs-state-empty-text, map-get($tabs, state-empty-text));
|
183
187
|
|
184
188
|
& .mc-icon {
|
185
|
-
color: map
|
189
|
+
color: mc-css-variable(tabs-state-empty-icon, map-get($tabs, state-empty-icon));
|
186
190
|
}
|
187
191
|
}
|
188
192
|
|
189
193
|
&:hover {
|
190
|
-
background:
|
194
|
+
background: mc-css-variable(
|
195
|
+
vertical-tabs-state-hover-background, map-get($vertical-tabs, state-hover-background));
|
191
196
|
|
192
|
-
color: map
|
197
|
+
color: mc-css-variable(tabs-state-hover-text, map-get($tabs, state-hover-text));
|
193
198
|
|
194
199
|
& .mc-icon {
|
195
|
-
color: map
|
200
|
+
color: mc-css-variable(tabs-state-hover-icon, map-get($tabs, state-hover-icon));
|
196
201
|
}
|
197
202
|
}
|
198
203
|
|
199
204
|
&.mc-active {
|
200
|
-
color: map
|
201
|
-
background: map
|
205
|
+
color: mc-css-variable(tabs-state-normal-text, map-get($tabs, state-normal-text));
|
206
|
+
background: map-get($theme, states, selected-color);
|
202
207
|
|
203
208
|
& .mc-icon {
|
204
|
-
color: map
|
209
|
+
color: mc-css-variable(tabs-state-normal-icon, map-get($tabs, state-normal-icon));
|
205
210
|
}
|
206
211
|
|
207
212
|
&:before {
|
208
|
-
background-color: map
|
213
|
+
background-color: mc-css-variable(tabs-state-active-marker, map-get($tabs, state-active-marker));
|
209
214
|
}
|
210
215
|
|
211
216
|
&:hover {
|
212
|
-
background:
|
217
|
+
background: mc-css-variable(
|
218
|
+
vertical-tabs-state-hover-selected-background,
|
219
|
+
map-get($vertical-tabs, state-hover-selected-background)
|
220
|
+
);
|
213
221
|
|
214
222
|
& .mc-icon {
|
215
|
-
color: map
|
223
|
+
color: mc-css-variable(tabs-state-hover-icon, map-get($tabs, state-hover-icon));
|
216
224
|
}
|
217
225
|
}
|
218
226
|
}
|
@@ -220,12 +228,13 @@
|
|
220
228
|
&[disabled],
|
221
229
|
&.mc-disabled {
|
222
230
|
cursor: default;
|
223
|
-
background:
|
231
|
+
background: mc-css-variable(
|
232
|
+
vertical-tabs-state-normal-background, map-get($vertical-tabs, state-normal-background));
|
224
233
|
|
225
|
-
color: map
|
234
|
+
color: mc-css-variable(tabs-state-disabled-text, map-get($tabs, state-disabled-text));
|
226
235
|
|
227
236
|
& .mc-icon {
|
228
|
-
color: map
|
237
|
+
color: mc-css-variable(tabs-state-disabled-icon, map-get($tabs, state-disabled-icon));
|
229
238
|
}
|
230
239
|
}
|
231
240
|
}
|
@@ -233,11 +242,9 @@
|
|
233
242
|
}
|
234
243
|
|
235
244
|
@mixin mc-tabs-typography($config) {
|
236
|
-
$tokens: map.get($config, tokens);
|
237
|
-
|
238
245
|
.mc-tab-label,
|
239
246
|
.mc-tab-label_old,
|
240
247
|
.mc-tab-link {
|
241
|
-
@include mc-typography-
|
248
|
+
@include mc-typography-css-variables(tabs, default);
|
242
249
|
}
|
243
250
|
}
|
package/tabs/tab-group.scss
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
@use '../core/styles/common/layout';
|
5
5
|
|
6
6
|
@use '../core/styles/tokens';
|
7
|
+
@use '../core/styles/common/tokens' as *;
|
7
8
|
|
8
9
|
|
9
10
|
$tokens: meta.module-variables(tokens) !default;
|
@@ -29,7 +30,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
29
30
|
padding-top: 8px;
|
30
31
|
padding-bottom: 1px;
|
31
32
|
|
32
|
-
border-right-width:
|
33
|
+
border-right-width: mc-css-variable(tabs-size-border-width);
|
33
34
|
border-right-style: solid;
|
34
35
|
}
|
35
36
|
}
|