@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
@@ -4,18 +4,16 @@
|
|
4
4
|
@use '../core/styles/common/popup';
|
5
5
|
@use '../core/styles/theming/theming';
|
6
6
|
@use '../core/styles/typography/typography-utils' as *;
|
7
|
+
@use '../core/styles/common/tokens' as *;
|
7
8
|
|
8
|
-
$mc-datepicker-selected-fade-amount: 0.6;
|
9
|
-
$mc-datepicker-today-fade-amount: 0.2;
|
10
9
|
|
11
10
|
@mixin mc-datepicker-theme($theme) {
|
12
11
|
$foreground: map.get($theme, foreground);
|
13
12
|
$background: map.get($theme, background);
|
14
13
|
|
15
|
-
$primary: map.get($theme, primary);
|
16
14
|
$secondary: map.get($theme, secondary);
|
17
15
|
|
18
|
-
$datepicker: map.get(
|
16
|
+
$datepicker: map.get($theme, components, datepicker);
|
19
17
|
|
20
18
|
.mc-calendar__table-header {
|
21
19
|
color: theming.mc-color($secondary, 400);
|
@@ -28,28 +26,28 @@ $mc-datepicker-today-fade-amount: 0.2;
|
|
28
26
|
opacity: 1;
|
29
27
|
|
30
28
|
.mc-icon {
|
31
|
-
color:
|
29
|
+
color: mc-css-variable(foreground-icon, map-get($foreground, icon));
|
32
30
|
}
|
33
31
|
}
|
34
32
|
|
35
33
|
.mc-calendar__table-header-divider::after {
|
36
|
-
background: map
|
34
|
+
background: mc-css-variable(foreground-divider, map-get($foreground, divider));
|
37
35
|
}
|
38
36
|
|
39
37
|
.mc-calendar__body-cell-content {
|
40
|
-
color: map
|
38
|
+
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
41
39
|
border-color: transparent;
|
42
40
|
}
|
43
41
|
|
44
42
|
.mc-calendar__body_disabled > .mc-calendar__body-cell-content:not(.mc-selected) {
|
45
|
-
color: map
|
43
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
46
44
|
}
|
47
45
|
|
48
46
|
.cdk-keyboard-focused .mc-calendar__body_active,
|
49
47
|
.cdk-program-focused .mc-calendar__body_active {
|
50
48
|
& > .mc-calendar__body-cell-content {
|
51
|
-
border-color: map
|
52
|
-
box-shadow: 0 0 0 1px map
|
49
|
+
border-color: map-get($theme, states, focused-color);
|
50
|
+
box-shadow: 0 0 0 1px map-get($theme, states, focused-color);
|
53
51
|
}
|
54
52
|
}
|
55
53
|
|
@@ -60,43 +58,43 @@ $mc-datepicker-today-fade-amount: 0.2;
|
|
60
58
|
}
|
61
59
|
|
62
60
|
.mc-calendar__body-today {
|
63
|
-
color: map
|
61
|
+
color: mc-css-variable(datepicker-state-today-color, map-get($datepicker, state-today-color));
|
64
62
|
// now tokens have wrong color for dark theme
|
65
63
|
//background: map.get($datepicker, state-today-background);
|
66
64
|
}
|
67
65
|
|
68
66
|
.mc-calendar__body_disabled > .mc-calendar__body-today:not(.mc-selected) {
|
69
|
-
border-color: map
|
67
|
+
border-color: mc-css-variable(background-background-disabled, map-get($background, background-disabled));
|
70
68
|
}
|
71
69
|
|
72
70
|
.mc-calendar__body-cell-content.mc-selected {
|
73
|
-
color: map
|
74
|
-
background:
|
71
|
+
color: mc-css-variable(datepicker-state-selected-color, map-get($datepicker, state-selected-color));
|
72
|
+
background: mc-css-variable(
|
73
|
+
datepicker-state-selected-background, map-get($datepicker, state-selected-background));
|
75
74
|
}
|
76
75
|
|
77
76
|
.mc-calendar__body_disabled > .mc-selected {
|
78
|
-
background-color:
|
77
|
+
background-color: mc-css-variable(
|
78
|
+
datepicker-state-selected-background, map-get($datepicker, state-selected-background));
|
79
79
|
}
|
80
80
|
|
81
81
|
.mc-datepicker__content {
|
82
82
|
@include popup.popup-params($theme);
|
83
83
|
|
84
|
-
color: map
|
84
|
+
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
85
85
|
}
|
86
86
|
}
|
87
87
|
|
88
88
|
@mixin mc-datepicker-typography($config) {
|
89
|
-
$tokens: map.get($config, tokens);
|
90
|
-
|
91
89
|
.mc-calendar {
|
92
|
-
@include mc-typography-
|
90
|
+
@include mc-typography-css-variables(datepicker-calendar, default);
|
93
91
|
}
|
94
92
|
|
95
93
|
.mc-calendar__table-header th {
|
96
|
-
@include mc-typography-
|
94
|
+
@include mc-typography-css-variables(datepicker-calendar, header);
|
97
95
|
}
|
98
96
|
|
99
97
|
.mc-calendar__body-today {
|
100
|
-
@include mc-typography-
|
98
|
+
@include mc-typography-css-variables(datepicker-body, today);
|
101
99
|
}
|
102
100
|
}
|
@@ -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;
|
@@ -29,10 +30,10 @@ $mc-calendar-body-cell-content-size: 100% - map.get($tokens, datepicker-body-siz
|
|
29
30
|
|
30
31
|
.mc-calendar__body-cell-content {
|
31
32
|
position: absolute;
|
32
|
-
top:
|
33
|
-
left:
|
33
|
+
top: mc-css-variable(datepicker-body-size-cell-margin);
|
34
|
+
left: mc-css-variable(datepicker-body-size-cell-margin);
|
34
35
|
|
35
|
-
padding:
|
36
|
+
padding: mc-css-variable(datepicker-body-size-cell-padding);
|
36
37
|
|
37
38
|
display: flex;
|
38
39
|
align-items: center;
|
@@ -45,12 +46,8 @@ $mc-calendar-body-cell-content-size: 100% - map.get($tokens, datepicker-body-siz
|
|
45
46
|
// Prevents text being off-center on Android.
|
46
47
|
line-height: 1;
|
47
48
|
|
48
|
-
border-width:
|
49
|
-
|
50
|
-
);
|
51
|
-
border-radius: var(
|
52
|
-
--mc-datepicker-body-size-cell-border-radius, map.get($tokens, datepicker-body-size-cell-border-radius)
|
53
|
-
);
|
49
|
+
border-width: mc-css-variable(datepicker-body-size-cell-border-width);
|
50
|
+
border-radius: mc-css-variable(datepicker-body-size-cell-border-radius);
|
54
51
|
border-style: solid;
|
55
52
|
}
|
56
53
|
|
@@ -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;
|
@@ -12,40 +13,22 @@ $tokens: meta.module-variables(tokens) !default;
|
|
12
13
|
justify-content: space-between;
|
13
14
|
|
14
15
|
padding:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
)
|
20
|
-
var(--mc-datepicker-calendar-size-padding-blocks, map.get($tokens, datepicker-calendar-size-padding-blocks))
|
21
|
-
var(
|
22
|
-
--mc-datepicker-calendar-size-padding-horizontal,
|
23
|
-
map.get($tokens, datepicker-calendar-size-padding-horizontal)
|
24
|
-
);
|
16
|
+
mc-css-variable(datepicker-calendar-size-padding-top)
|
17
|
+
mc-css-variable(datepicker-calendar-size-padding-horizontal)
|
18
|
+
mc-css-variable(datepicker-calendar-size-padding-blocks)
|
19
|
+
mc-css-variable(datepicker-calendar-size-padding-horizontal);
|
25
20
|
}
|
26
21
|
|
27
22
|
.mc-calendar-header__previous-button::after {
|
28
|
-
border-left-width:
|
29
|
-
--mc-datepicker-calendar-size-icon-border-width,
|
30
|
-
map.get($tokens, datepicker-calendar-size-icon-border-width)
|
31
|
-
);
|
23
|
+
border-left-width: mc-css-variable(datepicker-calendar-size-icon-border-width);
|
32
24
|
|
33
|
-
transform:
|
34
|
-
--mc-datepicker-calendar-size-icon-prev-icon-transform,
|
35
|
-
map.get($tokens, datepicker-calendar-size-icon-prev-icon-transform)
|
36
|
-
);
|
25
|
+
transform: mc-css-variable(datepicker-calendar-size-icon-prev-icon-transform);
|
37
26
|
}
|
38
27
|
|
39
28
|
.mc-calendar-header__next-button::after {
|
40
|
-
border-right-width:
|
41
|
-
--mc-datepicker-calendar-size-icon-border-width,
|
42
|
-
map.get($tokens, datepicker-calendar-size-icon-border-width)
|
43
|
-
);
|
29
|
+
border-right-width: mc-css-variable(datepicker-calendar-size-icon-border-width);
|
44
30
|
|
45
|
-
transform:
|
46
|
-
--mc-datepicker-calendar-size-icon-nex-icon-transform,
|
47
|
-
map.get($tokens, datepicker-calendar-size-icon-nex-icon-transform)
|
48
|
-
);
|
31
|
+
transform: mc-css-variable(datepicker-calendar-size-icon-nex-icon-transform);
|
49
32
|
}
|
50
33
|
|
51
34
|
.mc-calendar-header__select {
|
package/datepicker/calendar.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;
|
@@ -13,18 +14,9 @@ $tokens: meta.module-variables(tokens) !default;
|
|
13
14
|
.mc-calendar__content {
|
14
15
|
padding:
|
15
16
|
0
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
)
|
20
|
-
var(
|
21
|
-
--mc-datepicker-calendar-size-padding-horizontal,
|
22
|
-
map.get($tokens, datepicker-calendar-size-padding-horizontal)
|
23
|
-
)
|
24
|
-
var(
|
25
|
-
--mc-datepicker-calendar-size-padding-horizontal,
|
26
|
-
map.get($tokens, datepicker-calendar-size-padding-horizontal)
|
27
|
-
);
|
17
|
+
mc-css-variable(datepicker-calendar-size-padding-horizontal)
|
18
|
+
mc-css-variable(datepicker-calendar-size-padding-horizontal)
|
19
|
+
mc-css-variable(datepicker-calendar-size-padding-horizontal);
|
28
20
|
outline: none;
|
29
21
|
}
|
30
22
|
|
@@ -59,10 +51,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
59
51
|
left: calc(-1 * var(--mc-datepicker-calendar-size-padding-horizontal, #{$horizontal-padding}));
|
60
52
|
right: calc(-1 * var(--mc-datepicker-calendar-size-padding-horizontal, #{$horizontal-padding}));
|
61
53
|
|
62
|
-
height:
|
63
|
-
--mc-datepicker-calendar-size-divider-width,
|
64
|
-
map.get($tokens, datepicker-calendar-size-divider-width)
|
65
|
-
);
|
54
|
+
height: mc-css-variable(datepicker-calendar-size-divider-width);
|
66
55
|
}
|
67
56
|
}
|
68
57
|
}
|
@@ -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;
|
@@ -19,10 +20,7 @@ $mc-datepicker-non-touch-calendar-height: 348px;
|
|
19
20
|
border: {
|
20
21
|
width: 1px;
|
21
22
|
style: solid;
|
22
|
-
radius:
|
23
|
-
--mc-datepicker-calendar-size-border-radius,
|
24
|
-
map.get($tokens, datepicker-calendar-size-border-radius)
|
25
|
-
);
|
23
|
+
radius: mc-css-variable(datepicker-calendar-size-border-radius);
|
26
24
|
}
|
27
25
|
|
28
26
|
.mc-calendar {
|
@@ -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;
|
@@ -11,5 +12,5 @@ $tokens: meta.module-variables(tokens) !default;
|
|
11
12
|
}
|
12
13
|
|
13
14
|
.mc-datepicker {
|
14
|
-
width:
|
15
|
+
width: mc-css-variable(datepicker-input-size-width);
|
15
16
|
}
|
@@ -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;
|
@@ -11,8 +12,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
11
12
|
}
|
12
13
|
|
13
14
|
.mc-datepicker-toggle__button.mc-icon-button {
|
14
|
-
width:
|
15
|
-
height:
|
15
|
+
width: mc-css-variable(datepicker-toggle-size-width);
|
16
|
+
height: mc-css-variable(datepicker-toggle-size-height);
|
16
17
|
margin-left: 2px;
|
17
18
|
}
|
18
19
|
|
@@ -1,13 +1,15 @@
|
|
1
1
|
@use 'sass:map';
|
2
|
+
@use '../core/styles/common/tokens' as *;
|
3
|
+
|
2
4
|
|
3
5
|
@mixin mc-divider-theme($theme) {
|
4
|
-
$divider: map.get(
|
6
|
+
$divider: map.get($theme, components, divider);
|
5
7
|
|
6
8
|
.mc-divider_horizontal {
|
7
|
-
border-top-color: map
|
9
|
+
border-top-color: mc-css-variable(divider-color, map-get($divider, color));
|
8
10
|
}
|
9
11
|
|
10
12
|
.mc-divider_vertical {
|
11
|
-
border-right-color: map
|
13
|
+
border-right-color: mc-css-variable(divider-color, map-get($divider, color));
|
12
14
|
}
|
13
15
|
}
|
package/divider/divider.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;
|
@@ -25,23 +26,23 @@ $tokens: meta.module-variables(tokens) !default;
|
|
25
26
|
margin: 0;
|
26
27
|
|
27
28
|
&.mc-divider_horizontal {
|
28
|
-
border-top-width:
|
29
|
+
border-top-width: mc-css-variable(divider-size-width);
|
29
30
|
border-top-style: solid;
|
30
31
|
}
|
31
32
|
|
32
33
|
&.mc-divider_vertical {
|
33
34
|
height: 100%;
|
34
35
|
|
35
|
-
border-right-width:
|
36
|
+
border-right-width: mc-css-variable(divider-size-width);
|
36
37
|
border-right-style: solid;
|
37
38
|
}
|
38
39
|
|
39
40
|
&.mc-divider_inset {
|
40
|
-
margin-left:
|
41
|
+
margin-left: mc-css-variable(divider-size-inset-margin);
|
41
42
|
|
42
43
|
[dir='rtl'] & {
|
43
44
|
margin-left: auto;
|
44
|
-
margin-right:
|
45
|
+
margin-right: mc-css-variable(divider-size-inset-margin);
|
45
46
|
}
|
46
47
|
}
|
47
48
|
}
|
package/dl/_dl-theme.scss
CHANGED
@@ -2,50 +2,38 @@
|
|
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-dl-theme($theme) {
|
7
|
-
$dl: map.get(
|
9
|
+
$dl: map.get($theme, components, dl);
|
8
10
|
|
9
11
|
.mc-dt {
|
10
|
-
color: map
|
12
|
+
color: mc-css-variable(dl-dt, map-get($dl, dt));
|
11
13
|
}
|
12
14
|
|
13
15
|
.mc-dd {
|
14
|
-
color: map
|
16
|
+
color: mc-css-variable(dl-dd, map-get($dl, dd));
|
15
17
|
}
|
16
18
|
}
|
17
19
|
|
18
20
|
@mixin mc-dl-typography($config) {
|
19
|
-
$tokens: map.get($config, tokens);
|
20
|
-
|
21
21
|
.mc-dl {
|
22
22
|
& .mc-dt {
|
23
|
-
@include mc-typography-
|
24
|
-
$config,
|
25
|
-
map.get($tokens, description-list-font-default-horizontal-dt)
|
26
|
-
);
|
23
|
+
@include mc-typography-css-variables(description-list, default-horizontal-dt);
|
27
24
|
}
|
28
25
|
|
29
26
|
& .mc-dd {
|
30
|
-
@include mc-typography-
|
31
|
-
$config,
|
32
|
-
map.get($tokens, description-list-font-default-horizontal-dd)
|
33
|
-
);
|
27
|
+
@include mc-typography-css-variables(description-list, default-horizontal-dd);
|
34
28
|
}
|
35
29
|
|
36
30
|
&.mc-dl_small {
|
37
31
|
& .mc-dt {
|
38
|
-
@include mc-typography-
|
39
|
-
$config,
|
40
|
-
map.get($tokens, description-list-font-small-horizontal-dt)
|
41
|
-
);
|
32
|
+
@include mc-typography-css-variables(description-list, small-horizontal-dt);
|
42
33
|
}
|
43
34
|
|
44
35
|
& .mc-dd {
|
45
|
-
@include mc-typography-
|
46
|
-
$config,
|
47
|
-
map.get($tokens, description-list-font-small-horizontal-dd)
|
48
|
-
);
|
36
|
+
@include mc-typography-css-variables(description-list, small-horizontal-dd);
|
49
37
|
}
|
50
38
|
}
|
51
39
|
}
|
@@ -53,32 +41,20 @@
|
|
53
41
|
|
54
42
|
.mc-dl.mc-dl_vertical {
|
55
43
|
& .mc-dt {
|
56
|
-
@include mc-typography-
|
57
|
-
$config,
|
58
|
-
map.get($tokens, description-list-font-default-vertical-dt)
|
59
|
-
);
|
44
|
+
@include mc-typography-css-variables(description-list, default-vertical-dt);
|
60
45
|
}
|
61
46
|
|
62
47
|
& .mc-dd {
|
63
|
-
@include mc-typography-
|
64
|
-
$config,
|
65
|
-
map.get($tokens, description-list-font-default-vertical-dd)
|
66
|
-
);
|
48
|
+
@include mc-typography-css-variables(description-list, default-vertical-dd);
|
67
49
|
}
|
68
50
|
|
69
51
|
&.mc-dl_small {
|
70
52
|
& .mc-dt {
|
71
|
-
@include mc-typography-
|
72
|
-
$config,
|
73
|
-
map.get($tokens, description-list-font-small-vertical-dt)
|
74
|
-
);
|
53
|
+
@include mc-typography-css-variables(description-list, small-vertical-dt);
|
75
54
|
}
|
76
55
|
|
77
56
|
& .mc-dd {
|
78
|
-
@include mc-typography-
|
79
|
-
$config,
|
80
|
-
map.get($tokens, description-list-font-small-vertical-dd)
|
81
|
-
);
|
57
|
+
@include mc-typography-css-variables(description-list, small-vertical-dd);
|
82
58
|
}
|
83
59
|
}
|
84
60
|
}
|
package/dl/dl.scss
CHANGED
@@ -2,44 +2,29 @@
|
|
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;
|
8
9
|
|
9
10
|
.mc-dl {
|
10
11
|
display: grid;
|
11
|
-
column-gap:
|
12
|
-
|
13
|
-
map.get($tokens, description-list-size-default-horizontal-column-gap)
|
14
|
-
);
|
15
|
-
row-gap: var(
|
16
|
-
--mc-description-list-size-default-horizontal-row-gap,
|
17
|
-
map.get($tokens, description-list-size-default-horizontal-row-gap)
|
18
|
-
);
|
12
|
+
column-gap: mc-css-variable(description-list-size-default-horizontal-column-gap);
|
13
|
+
row-gap: mc-css-variable(description-list-size-default-horizontal-row-gap);
|
19
14
|
|
20
15
|
grid-template-columns: repeat(4, 1fr);
|
21
16
|
|
22
17
|
.mc-dt {
|
23
|
-
grid-column:
|
24
|
-
--mc-description-list-size-dt-grid-column, map.get($tokens, description-list-size-dt-grid-column)
|
25
|
-
);
|
18
|
+
grid-column: mc-css-variable(description-list-size-dt-grid-column);
|
26
19
|
}
|
27
20
|
|
28
21
|
.mc-dd {
|
29
|
-
grid-column:
|
30
|
-
--mc-description-list-size-dd-grid-column, map.get($tokens, description-list-size-dd-grid-column)
|
31
|
-
);
|
22
|
+
grid-column: mc-css-variable(description-list-size-dd-grid-column);
|
32
23
|
}
|
33
24
|
|
34
25
|
&.mc-dl_small {
|
35
|
-
column-gap:
|
36
|
-
|
37
|
-
map.get($tokens, description-list-size-small-horizontal-column-gap)
|
38
|
-
);
|
39
|
-
row-gap: var(
|
40
|
-
--mc-description-list-size-small-horizontal-row-gap,
|
41
|
-
map.get($tokens, description-list-size-small-horizontal-row-gap)
|
42
|
-
);
|
26
|
+
column-gap: mc-css-variable(description-list-size-small-horizontal-column-gap);
|
27
|
+
row-gap: mc-css-variable(description-list-size-small-horizontal-row-gap);
|
43
28
|
}
|
44
29
|
|
45
30
|
&.mc-dl_wide {
|
@@ -57,14 +42,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
57
42
|
&.mc-dl_vertical {
|
58
43
|
grid-template-columns: repeat(1, 1fr);
|
59
44
|
|
60
|
-
column-gap:
|
61
|
-
|
62
|
-
map.get($tokens, description-list-size-default-vertical-column-gap)
|
63
|
-
);
|
64
|
-
row-gap: var(
|
65
|
-
--mc-description-list-size-default-vertical-row-gap,
|
66
|
-
map.get($tokens, description-list-size-default-vertical-row-gap)
|
67
|
-
);
|
45
|
+
column-gap: mc-css-variable(description-list-size-default-vertical-column-gap);
|
46
|
+
row-gap: mc-css-variable(description-list-size-default-vertical-row-gap);
|
68
47
|
|
69
48
|
.mc-dt,
|
70
49
|
.mc-dd {
|
@@ -72,27 +51,15 @@ $tokens: meta.module-variables(tokens) !default;
|
|
72
51
|
}
|
73
52
|
|
74
53
|
.mc-dd {
|
75
|
-
margin-bottom:
|
76
|
-
--mc-description-list-size-default-vertical-dd-margin-bottom,
|
77
|
-
map.get($tokens, description-list-size-default-vertical-dd-margin-bottom)
|
78
|
-
);
|
54
|
+
margin-bottom: mc-css-variable(description-list-size-default-vertical-dd-margin-bottom);
|
79
55
|
}
|
80
56
|
|
81
57
|
&.mc-dl_small {
|
82
|
-
column-gap:
|
83
|
-
|
84
|
-
map.get($tokens, description-list-size-small-vertical-column-gap)
|
85
|
-
);
|
86
|
-
row-gap: var(
|
87
|
-
--mc-description-list-size-small-vertical-row-gap,
|
88
|
-
map.get($tokens, description-list-size-small-vertical-row-gap)
|
89
|
-
);
|
58
|
+
column-gap: mc-css-variable(description-list-size-small-vertical-column-gap);
|
59
|
+
row-gap: mc-css-variable(description-list-size-small-vertical-row-gap);
|
90
60
|
|
91
61
|
.mc-dd {
|
92
|
-
margin-bottom:
|
93
|
-
--mc-description-list-size-small-vertical-dd-margin-bottom,
|
94
|
-
map.get($tokens, description-list-size-small-vertical-dd-margin-bottom)
|
95
|
-
);
|
62
|
+
margin-bottom: mc-css-variable(description-list-size-small-vertical-dd-margin-bottom);
|
96
63
|
}
|
97
64
|
}
|
98
65
|
}
|
@@ -4,47 +4,51 @@
|
|
4
4
|
@use '../core/styles/common/popup' as *;
|
5
5
|
@use '../core/styles/theming/theming' as *;
|
6
6
|
@use '../core/styles/typography/typography-utils' as *;
|
7
|
+
@use '../core/styles/common/tokens' as *;
|
8
|
+
|
7
9
|
|
8
10
|
@mixin mc-dropdown-theme($theme) {
|
9
|
-
$foreground: map
|
10
|
-
$background: map
|
11
|
-
$secondary: map
|
11
|
+
$foreground: map-get($theme, foreground);
|
12
|
+
$background: map-get($theme, background);
|
13
|
+
$secondary: map-get($theme, secondary);
|
14
|
+
|
15
|
+
$theme-states: map-get($theme, states);
|
12
16
|
|
13
17
|
.mc-dropdown__panel {
|
14
18
|
@include popup-params($theme);
|
15
19
|
}
|
16
20
|
|
17
21
|
.mc-dropdown-item {
|
18
|
-
color: map
|
22
|
+
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
19
23
|
|
20
24
|
background: transparent;
|
21
25
|
|
22
26
|
&:hover {
|
23
|
-
background: map
|
27
|
+
background: mc-css-variable(background-overlay-hover, map-get($background, overlay-hover));
|
24
28
|
}
|
25
29
|
|
26
30
|
&.cdk-keyboard-focused {
|
27
|
-
outline:
|
31
|
+
outline: mc-css-variable(states-focused-color, map-get($theme-states, focused-color)) solid 2px;
|
28
32
|
outline-offset: -2px !important;
|
29
33
|
}
|
30
34
|
|
31
35
|
&.mc-selected {
|
32
|
-
background:
|
36
|
+
background: mc-css-variable(states-selected-color, map-get($theme-states, selected-color));
|
33
37
|
}
|
34
38
|
|
35
39
|
&[disabled] {
|
36
|
-
color: map
|
40
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
37
41
|
|
38
42
|
background: transparent;
|
39
43
|
}
|
40
44
|
|
41
45
|
.mc-dropdown-item__caption {
|
42
|
-
color: map
|
46
|
+
color: mc-css-variable(foreground-text-less-contrast, map-get($foreground, text-less-contrast));
|
43
47
|
}
|
44
48
|
}
|
45
49
|
|
46
50
|
.mc-dropdown-item_highlighted {
|
47
|
-
background: map
|
51
|
+
background: mc-css-variable(background-overlay-hover, map-get($background, overlay-hover));
|
48
52
|
}
|
49
53
|
|
50
54
|
.mc-dropdown-item-overlay {
|
@@ -52,7 +56,7 @@
|
|
52
56
|
}
|
53
57
|
|
54
58
|
.mc-dropdown__divider {
|
55
|
-
background-color: map
|
59
|
+
background-color: mc-css-variable(foreground-divider, map-get($foreground, divider));
|
56
60
|
}
|
57
61
|
|
58
62
|
.mc-dropdown-trigger.mc-pressed {
|
@@ -63,22 +67,20 @@
|
|
63
67
|
}
|
64
68
|
|
65
69
|
@mixin mc-dropdown-typography($config) {
|
66
|
-
$tokens: map.get($config, tokens);
|
67
|
-
|
68
70
|
.mc-dropdown-item,
|
69
71
|
.mc-dropdown__content {
|
70
|
-
@include mc-typography-
|
72
|
+
@include mc-typography-css-variables(dropdown-item, default);
|
71
73
|
}
|
72
74
|
|
73
75
|
.mc-dropdown-item__caption {
|
74
|
-
@include mc-typography-
|
76
|
+
@include mc-typography-css-variables(dropdown-item, caption);
|
75
77
|
}
|
76
78
|
|
77
79
|
.mc-dropdown__group-header {
|
78
|
-
@include mc-typography-
|
80
|
+
@include mc-typography-css-variables(dropdown-group-header, default);
|
79
81
|
|
80
82
|
&.mc-dropdown__group-header_small {
|
81
|
-
@include mc-typography-
|
83
|
+
@include mc-typography-css-variables(dropdown-group-header, small);
|
82
84
|
}
|
83
85
|
}
|
84
86
|
}
|