@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/tabs/tab-header.scss
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
@use 'tabs-common' as *;
|
6
6
|
|
7
7
|
@use '../core/styles/tokens';
|
8
|
+
@use '../core/styles/common/tokens' as *;
|
8
9
|
|
9
10
|
|
10
11
|
$tokens: meta.module-variables(tokens) !default;
|
@@ -26,24 +27,28 @@ $tokens: meta.module-variables(tokens) !default;
|
|
26
27
|
.mc-tab-group_align-labels-end & {
|
27
28
|
justify-content: flex-end;
|
28
29
|
}
|
29
|
-
|
30
|
-
&:after {
|
31
|
-
display: flex;
|
32
|
-
content: "";
|
33
|
-
|
34
|
-
flex: 1;
|
35
|
-
|
36
|
-
border: {
|
37
|
-
bottom-style: solid;
|
38
|
-
bottom-width: var(--mc-tabs-size-border-width, map.get($tokens, tabs-size-border-width));
|
39
|
-
};
|
40
|
-
}
|
41
30
|
}
|
42
31
|
|
43
32
|
.mc-tab-header_vertical .mc-tab-list__content {
|
44
33
|
flex-direction: column;
|
45
34
|
}
|
46
35
|
|
36
|
+
.mc-tab-header .mc-tab-list__content {
|
37
|
+
.mc-tab-group:not(.mc-tab-group_stretch-labels) & {
|
38
|
+
&:after {
|
39
|
+
display: flex;
|
40
|
+
content: "";
|
41
|
+
|
42
|
+
flex: 1;
|
43
|
+
|
44
|
+
border: {
|
45
|
+
bottom-style: solid;
|
46
|
+
bottom-width: mc-css-variable(tabs-size-border-width);
|
47
|
+
};
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
47
52
|
.mc-tab-header__pagination {
|
48
53
|
@include vendor-prefixes.user-select(none);
|
49
54
|
|
@@ -61,20 +66,20 @@ $tokens: meta.module-variables(tokens) !default;
|
|
61
66
|
|
62
67
|
border: {
|
63
68
|
bottom-style: solid;
|
64
|
-
bottom-width:
|
69
|
+
bottom-width: mc-css-variable(tabs-size-border-width);
|
65
70
|
};
|
66
71
|
|
67
72
|
&.mc-tab-header__pagination_before {
|
68
73
|
border: {
|
69
74
|
right-style: solid;
|
70
|
-
right-width:
|
75
|
+
right-width: mc-css-variable(tabs-size-border-width);
|
71
76
|
};
|
72
77
|
}
|
73
78
|
|
74
79
|
&.mc-tab-header__pagination_after {
|
75
80
|
border: {
|
76
81
|
left-style: solid;
|
77
|
-
left-width:
|
82
|
+
left-width: mc-css-variable(tabs-size-border-width);
|
78
83
|
};
|
79
84
|
}
|
80
85
|
|
@@ -4,6 +4,7 @@
|
|
4
4
|
@use '../tabs-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;
|
@@ -22,11 +23,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
22
23
|
|
23
24
|
& > .mc-icon {
|
24
25
|
&.mc-icon_left {
|
25
|
-
margin-right:
|
26
|
+
margin-right: mc-css-variable(tabs-size-label-icon-margin);
|
26
27
|
}
|
27
28
|
|
28
29
|
&.mc-icon_right {
|
29
|
-
margin-left:
|
30
|
+
margin-left: mc-css-variable(tabs-size-label-icon-margin);
|
30
31
|
}
|
31
32
|
}
|
32
33
|
}
|
@@ -47,20 +48,22 @@ $tokens: meta.module-variables(tokens) !default;
|
|
47
48
|
justify-content: flex-end;
|
48
49
|
}
|
49
50
|
|
50
|
-
|
51
|
-
|
52
|
-
|
51
|
+
&.mc-tab-group_vertical {
|
52
|
+
flex-direction: column;
|
53
|
+
flex-grow: 0;
|
54
|
+
}
|
53
55
|
|
54
|
-
|
56
|
+
&:not(.mc-tab-group_vertical) {
|
57
|
+
&:after {
|
58
|
+
display: flex;
|
59
|
+
content: "";
|
55
60
|
|
56
|
-
|
57
|
-
bottom-style: solid;
|
58
|
-
bottom-width: var(--mc-tabs-size-border-width, map.get($tokens, tabs-size-border-width));
|
59
|
-
};
|
60
|
-
}
|
61
|
-
}
|
61
|
+
flex: 1;
|
62
62
|
|
63
|
-
|
64
|
-
|
65
|
-
|
63
|
+
border: {
|
64
|
+
bottom-style: solid;
|
65
|
+
bottom-width: mc-css-variable(tabs-size-border-width);
|
66
|
+
};
|
67
|
+
}
|
68
|
+
}
|
66
69
|
}
|
package/tags/_tag-theme.scss
CHANGED
@@ -3,36 +3,40 @@
|
|
3
3
|
|
4
4
|
@use '../core/styles/theming/theming' as *;
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
|
9
|
+
@mixin mc-tag-color($component, $style-name) {
|
10
|
+
$style: map-get($component, $style-name);
|
11
|
+
|
12
|
+
background: mc-css-variable(tags-#{$style-name}-background, map-get($style, background));
|
13
|
+
border-color: mc-css-variable(tags-#{$style-name}-border, map-get($style, border));
|
10
14
|
|
11
15
|
& .mc-tag__text {
|
12
|
-
color: map
|
16
|
+
color: mc-css-variable(tags-#{$style-name}-text, map-get($style, text));
|
13
17
|
}
|
14
18
|
|
15
19
|
&.mc-active,
|
16
20
|
&.mc-focused {
|
17
|
-
border-color: map
|
18
|
-
box-shadow: 0 0 0 1px map
|
21
|
+
border-color: mc-css-variable(tags-#{$style-name}-focused, map-get($style, focused));
|
22
|
+
box-shadow: 0 0 0 1px mc-css-variable(tags-#{$style-name}-focused, map-get($style, focused));
|
19
23
|
}
|
20
24
|
|
21
25
|
&:not(.mc-disabled) .mc-icon {
|
22
|
-
color: map
|
26
|
+
color: mc-css-variable(tags-#{$style-name}-icon, map-get($style, icon));
|
23
27
|
|
24
28
|
&.mc-tag-remove:hover {
|
25
|
-
color: map
|
29
|
+
color: mc-css-variable(tags-#{$style-name}-icon_hovered, map-get($style, icon_hovered));
|
26
30
|
}
|
27
31
|
}
|
28
32
|
|
29
33
|
&.mc-disabled {
|
30
|
-
border-color: map
|
31
|
-
background: map
|
34
|
+
border-color: mc-css-variable(tags-#{$style-name}-border_disabled, map-get($style, border_disabled));
|
35
|
+
background: mc-css-variable(tags-#{$style-name}-background_disabled, map-get($style, background_disabled));
|
32
36
|
|
33
37
|
& .mc-icon,
|
34
38
|
& .mc-tag__text {
|
35
|
-
color: map
|
39
|
+
color: mc-css-variable(tags-#{$style-name}-disabled, map-get($style, disabled));
|
36
40
|
}
|
37
41
|
|
38
42
|
& .mc-tag-overlay {
|
@@ -45,75 +49,74 @@
|
|
45
49
|
$foreground: map.get($theme, foreground);
|
46
50
|
$background: map.get($theme, background);
|
47
51
|
|
48
|
-
$tags: map.get(
|
52
|
+
$tags: map.get($theme, components, tags);
|
49
53
|
|
50
54
|
.mc-tag {
|
51
55
|
&.mc-primary {
|
52
|
-
@include mc-tag-color(
|
56
|
+
@include mc-tag-color($tags, primary);
|
53
57
|
}
|
54
58
|
|
55
59
|
&.mc-secondary {
|
56
|
-
@include mc-tag-color(
|
60
|
+
@include mc-tag-color($tags, secondary);
|
57
61
|
}
|
58
62
|
|
59
63
|
&.mc-error {
|
60
|
-
@include mc-tag-color(
|
64
|
+
@include mc-tag-color($tags, error);
|
61
65
|
}
|
62
66
|
|
63
67
|
&:hover,
|
64
68
|
&.mc-hovered {
|
65
69
|
& .mc-tag-overlay {
|
66
|
-
background: map
|
70
|
+
background: mc-css-variable(background-overlay-hover, map-get($background, overlay-hover));
|
67
71
|
}
|
68
72
|
}
|
69
73
|
|
70
74
|
&.mc-disabled {
|
71
|
-
color: map
|
75
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
72
76
|
|
73
77
|
border-color: transparent;
|
74
78
|
|
75
|
-
background-color:
|
79
|
+
background-color: mc-css-variable(
|
80
|
+
background-background-disabled, map-get($background, background-disabled));
|
76
81
|
|
77
82
|
& .mc-tag-overlay {
|
78
|
-
background: mc-color($background, overlay-disabled);
|
83
|
+
background: mc-css-variable(background-overlay-disabled, mc-color($background, overlay-disabled));
|
79
84
|
}
|
80
85
|
}
|
81
86
|
}
|
82
87
|
|
83
88
|
.mc-tag-input {
|
84
|
-
color: map
|
89
|
+
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
85
90
|
|
86
91
|
&::placeholder {
|
87
|
-
color: map
|
92
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
88
93
|
}
|
89
94
|
|
90
95
|
&::-ms-input-placeholder {
|
91
|
-
color: map
|
96
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
92
97
|
}
|
93
98
|
|
94
99
|
&::-webkit-input-placeholder {
|
95
|
-
color: map
|
100
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
96
101
|
}
|
97
102
|
}
|
98
103
|
}
|
99
104
|
|
100
105
|
@mixin mc-tag-typography($config) {
|
101
|
-
$tokens: map.get($config, tokens);
|
102
|
-
|
103
106
|
.mc-tag:not(.mc-tag_mono):not(.mc-tag_caps) {
|
104
|
-
@include mc-typography-
|
107
|
+
@include mc-typography-css-variables(tags, default);
|
105
108
|
}
|
106
109
|
|
107
110
|
.mc-tag_mono {
|
108
|
-
@include mc-typography-
|
111
|
+
@include mc-typography-css-variables(tags, mono);
|
109
112
|
}
|
110
113
|
|
111
114
|
.mc-tag_caps {
|
112
|
-
@include mc-typography-
|
115
|
+
@include mc-typography-css-variables(tags, caps);
|
113
116
|
}
|
114
117
|
|
115
118
|
.mc-tag-input {
|
116
|
-
@include mc-typography-
|
119
|
+
@include mc-typography-css-variables(tag-input, default);
|
117
120
|
}
|
118
121
|
}
|
119
122
|
|
package/tags/tag-list.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;
|
@@ -42,14 +43,14 @@ $tokens: meta.module-variables(tokens) !default;
|
|
42
43
|
|
43
44
|
flex: 1 1 auto;
|
44
45
|
|
45
|
-
height:
|
46
|
-
margin:
|
46
|
+
height: mc-css-variable(tag-input-size-height);
|
47
|
+
margin: mc-css-variable(tag-input-size-margin);
|
47
48
|
}
|
48
49
|
}
|
49
50
|
|
50
51
|
.mc-form-field-type-tag-list {
|
51
52
|
.mc-tags-list__list-container {
|
52
|
-
padding:
|
53
|
+
padding: mc-css-variable(tag-list-size-padding);
|
53
54
|
}
|
54
55
|
}
|
55
56
|
|
package/tags/tag.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,14 +14,14 @@ $tokens: meta.module-variables(tokens) !default;
|
|
13
14
|
|
14
15
|
max-width: 100%;
|
15
16
|
|
16
|
-
margin:
|
17
|
+
margin: mc-css-variable(tags-size-margin);
|
17
18
|
|
18
|
-
height:
|
19
|
+
height: mc-css-variable(tags-size-height);
|
19
20
|
|
20
21
|
border: {
|
21
|
-
width:
|
22
|
+
width: mc-css-variable(tags-size-border-width);
|
22
23
|
style: solid;
|
23
|
-
radius:
|
24
|
+
radius: mc-css-variable(tags-size-border-radius);
|
24
25
|
}
|
25
26
|
|
26
27
|
cursor: default;
|
@@ -67,15 +68,15 @@ $tokens: meta.module-variables(tokens) !default;
|
|
67
68
|
|
68
69
|
flex-shrink: 0;
|
69
70
|
|
70
|
-
height:
|
71
|
+
height: mc-css-variable(tags-size-height);
|
71
72
|
|
72
|
-
padding-left:
|
73
|
-
padding-right:
|
73
|
+
padding-left: mc-css-variable(tags-size-icon-padding);
|
74
|
+
padding-right: mc-css-variable(tags-size-icon-padding);
|
74
75
|
}
|
75
76
|
/* stylelint-enable no-descending-specificity */
|
76
77
|
|
77
78
|
.mc-icon_left {
|
78
|
-
margin-right:
|
79
|
+
margin-right: mc-css-variable(tags-size-icon-padding);
|
79
80
|
}
|
80
81
|
|
81
82
|
& > .mc-icon:first-child {
|
@@ -1,11 +1,9 @@
|
|
1
1
|
@use 'sass:meta';
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
|
-
@use '../core/styles/tokens'
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
5
5
|
|
6
6
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
8
|
-
|
9
7
|
%mc-textarea-base {
|
10
8
|
background: transparent;
|
11
9
|
margin: 0;
|
@@ -18,5 +16,5 @@ $tokens: meta.module-variables(tokens) !default;
|
|
18
16
|
width: 100%;
|
19
17
|
|
20
18
|
box-sizing: border-box;
|
21
|
-
padding:
|
19
|
+
padding: mc-css-variable(textarea-size-padding);
|
22
20
|
}
|
@@ -3,35 +3,35 @@
|
|
3
3
|
|
4
4
|
@use '../core/styles/theming/theming' as *;
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
7
|
+
|
6
8
|
|
7
9
|
@mixin mc-textarea-theme($theme) {
|
8
10
|
$foreground: map.get($theme, foreground);
|
9
11
|
|
10
12
|
.mc-textarea {
|
11
|
-
color: map
|
13
|
+
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
12
14
|
|
13
15
|
&::placeholder {
|
14
|
-
color: map
|
16
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
15
17
|
}
|
16
18
|
|
17
19
|
&::-ms-input-placeholder {
|
18
|
-
color: map
|
20
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
19
21
|
}
|
20
22
|
|
21
23
|
&::-webkit-input-placeholder {
|
22
|
-
color: map
|
24
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
23
25
|
}
|
24
26
|
}
|
25
27
|
}
|
26
28
|
|
27
29
|
@mixin mc-textarea-typography($config) {
|
28
|
-
$tokens: map.get($config, tokens);
|
29
|
-
|
30
30
|
textarea.mc-textarea {
|
31
|
-
@include mc-typography-
|
31
|
+
@include mc-typography-css-variables(textarea, default);
|
32
32
|
}
|
33
33
|
|
34
34
|
.mc-textarea.mc-textarea_monospace {
|
35
|
-
@include mc-typography-
|
35
|
+
@include mc-typography-css-variables(textarea, mono);
|
36
36
|
}
|
37
37
|
}
|
package/textarea/textarea.scss
CHANGED
@@ -3,11 +3,9 @@
|
|
3
3
|
|
4
4
|
@use 'textarea-base' as *;
|
5
5
|
|
6
|
-
@use '../core/styles/tokens'
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
7
7
|
|
8
8
|
|
9
|
-
$tokens: meta.module-variables(tokens) !default;
|
10
|
-
|
11
9
|
.mc-textarea {
|
12
10
|
@extend %mc-textarea-base;
|
13
11
|
|
@@ -22,7 +20,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
22
20
|
|
23
21
|
&.mc-textarea-resizable {
|
24
22
|
resize: vertical;
|
25
|
-
min-height:
|
23
|
+
min-height: mc-css-variable(textarea-size-min-height);
|
26
24
|
}
|
27
25
|
}
|
28
26
|
|
@@ -1,16 +1,11 @@
|
|
1
1
|
@use 'sass:meta';
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
|
-
@use '../core/styles/tokens'
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
5
5
|
|
6
6
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
8
|
-
|
9
7
|
.mc-timepicker {
|
10
|
-
padding-right:
|
11
|
-
var(--mc-timepicker-size-padding-right, #{map.get($tokens, timepicker-size-padding-right)}) -
|
12
|
-
var(--mc-form-field-size-border-width, #{map.get($tokens, form-field-size-border-width)})
|
13
|
-
);
|
8
|
+
padding-right: mc-css-variable(timepicker-size-padding-right);
|
14
9
|
}
|
15
10
|
|
16
11
|
.mc-form-field-type-timepicker {
|
@@ -2,32 +2,32 @@
|
|
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-timezone-option-theme($theme) {
|
7
|
-
$timezone: map.get(
|
9
|
+
$timezone: map.get($theme, components, timezone);
|
8
10
|
|
9
11
|
.mc-timezone-option__offset,
|
10
12
|
.mc-timezone-option__city {
|
11
|
-
color: map
|
13
|
+
color: mc-css-variable(timezone-text, map-get($timezone, text));
|
12
14
|
}
|
13
15
|
|
14
16
|
.mc-timezone-option__cities {
|
15
|
-
color: map
|
17
|
+
color: mc-css-variable(timezone-caption, map-get($timezone, caption));
|
16
18
|
}
|
17
19
|
}
|
18
20
|
|
19
21
|
@mixin mc-timezone-option-typography($config) {
|
20
|
-
$tokens: map.get($config, tokens);
|
21
|
-
|
22
22
|
.mc-timezone-option__offset {
|
23
|
-
@include mc-typography-
|
23
|
+
@include mc-typography-css-variables(timezone-option, offset-text);
|
24
24
|
}
|
25
25
|
|
26
26
|
.mc-timezone-option__city {
|
27
|
-
@include mc-typography-
|
27
|
+
@include mc-typography-css-variables(timezone-option, text);
|
28
28
|
}
|
29
29
|
|
30
30
|
.mc-timezone-option__cities {
|
31
|
-
@include mc-typography-
|
31
|
+
@include mc-typography-css-variables(timezone-option, caption);
|
32
32
|
}
|
33
33
|
}
|
@@ -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
|
flex-direction: row;
|
12
13
|
align-items: flex-start;
|
13
14
|
|
14
|
-
padding:
|
15
|
-
column-gap:
|
15
|
+
padding: mc-css-variable(timezone-option-size-padding);
|
16
|
+
column-gap: mc-css-variable(timezone-option-size-column-gap);
|
16
17
|
}
|
17
18
|
|
18
19
|
.mc-timezone-option__label {
|
@@ -26,10 +27,10 @@ $tokens: meta.module-variables(tokens) !default;
|
|
26
27
|
.mc-timezone-option__cities {
|
27
28
|
display: -webkit-box;
|
28
29
|
-webkit-box-orient: vertical;
|
29
|
-
max-height:
|
30
|
+
max-height: mc-css-variable(timezone-option-size-max-height);
|
30
31
|
overflow: hidden;
|
31
32
|
}
|
32
33
|
|
33
34
|
.mc-select__panel .mc-timezone-option {
|
34
|
-
height:
|
35
|
+
height: mc-css-variable(timezone-option-size-height);
|
35
36
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
1
2
|
import { Directionality } from '@angular/cdk/bidi';
|
2
3
|
import { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';
|
3
4
|
import { AfterViewInit, ElementRef, NgZone, OnDestroy, ViewContainerRef, ChangeDetectorRef } from '@angular/core';
|
@@ -9,12 +10,12 @@ export declare class McTimezoneOptionTooltip extends McTooltipTrigger implements
|
|
9
10
|
private changeDetectorRef;
|
10
11
|
private option;
|
11
12
|
private resizeObserver;
|
12
|
-
constructor(changeDetectorRef: ChangeDetectorRef, option: McTimezoneOption, overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality);
|
13
|
+
constructor(changeDetectorRef: ChangeDetectorRef, option: McTimezoneOption, overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, focusMonitor: FocusMonitor);
|
13
14
|
ngAfterViewInit(): void;
|
14
15
|
ngOnDestroy(): void;
|
15
16
|
onMouseEnter(): void;
|
16
17
|
onMouseLeave(): void;
|
17
18
|
private checkTooltipDisabled;
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McTimezoneOptionTooltip, [null, null, null, null, null, null, null, null, { optional: true; }]>;
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McTimezoneOptionTooltip, [null, null, null, null, null, null, null, null, { optional: true; }, null]>;
|
19
20
|
static ɵdir: i0.ɵɵDirectiveDeclaration<McTimezoneOptionTooltip, "mc-timezone-option", never, {}, {}, never, never, false, never>;
|
20
21
|
}
|
@@ -7,7 +7,6 @@ import { McTooltipTrigger } from '@ptsecurity/mosaic/tooltip';
|
|
7
7
|
import { Subject } from 'rxjs';
|
8
8
|
import * as i0 from "@angular/core";
|
9
9
|
export declare class McTitleDirective extends McTooltipTrigger implements AfterViewInit {
|
10
|
-
private focusMonitor;
|
11
10
|
private componentInstance?;
|
12
11
|
get isOverflown(): boolean;
|
13
12
|
get viewValue(): string;
|
package/toast/_toast-theme.scss
CHANGED
@@ -2,60 +2,57 @@
|
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
5
6
|
|
6
7
|
|
7
8
|
@mixin mc-toast-theme($theme) {
|
8
|
-
$
|
9
|
-
|
10
|
-
$toast: map.get(map.get($theme, components), toast);
|
9
|
+
$toast: map-get(map-get($theme, components), toast);
|
11
10
|
|
12
11
|
.mc-toast {
|
13
12
|
&.mc-toast_info .mc-toast__icon {
|
14
|
-
color: map
|
13
|
+
color: mc-css-variable(toast-icon_info, map-get($toast, icon_info));
|
15
14
|
}
|
16
15
|
|
17
16
|
&.mc-toast_success .mc-toast__icon {
|
18
|
-
color: map
|
17
|
+
color: mc-css-variable(toast-icon_success, map-get($toast, icon_success));
|
19
18
|
}
|
20
19
|
|
21
20
|
&.mc-toast_warning .mc-toast__icon {
|
22
|
-
color: map
|
21
|
+
color: mc-css-variable(toast-icon_warning, map-get($toast, icon_warning));
|
23
22
|
}
|
24
23
|
|
25
24
|
&.mc-toast_error .mc-toast__icon {
|
26
|
-
color: map
|
25
|
+
color: mc-css-variable(toast-icon_error, map-get($toast, icon_error));
|
27
26
|
}
|
28
27
|
}
|
29
28
|
|
30
29
|
.mc-toast__wrapper {
|
31
|
-
border-color: map
|
30
|
+
border-color: mc-css-variable(toast-border, map-get($toast, border));
|
32
31
|
|
33
|
-
background: map
|
32
|
+
background: mc-css-variable(toast-background, map-get($toast, background));
|
34
33
|
|
35
|
-
box-shadow: map
|
34
|
+
box-shadow: mc-css-variable(toast-shadow, map-get($toast, shadow));
|
36
35
|
}
|
37
36
|
|
38
37
|
.mc-toast__title {
|
39
|
-
color: map
|
38
|
+
color: mc-css-variable(toast-text, map-get($toast, text));
|
40
39
|
}
|
41
40
|
|
42
41
|
.mc-toast__caption {
|
43
|
-
color: map
|
42
|
+
color: mc-css-variable(toast-text-caption, map-get($toast, text-caption));
|
44
43
|
}
|
45
44
|
}
|
46
45
|
|
47
46
|
@mixin mc-toast-typography($config) {
|
48
|
-
$tokens: map.get($config, tokens);
|
49
|
-
|
50
47
|
.mc-toast {
|
51
|
-
@include mc-typography-level-to-
|
48
|
+
@include mc-typography-level-to-styles_css-variables(typography, body);
|
52
49
|
}
|
53
50
|
|
54
51
|
.mc-toast__title {
|
55
|
-
@include mc-typography-
|
52
|
+
@include mc-typography-css-variables(toast, title);
|
56
53
|
}
|
57
54
|
|
58
55
|
.mc-toast__caption {
|
59
|
-
@include mc-typography-
|
56
|
+
@include mc-typography-css-variables(toast, caption);
|
60
57
|
}
|
61
58
|
}
|
@@ -1,18 +1,15 @@
|
|
1
1
|
@use 'sass:meta';
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
|
-
@use '../core/styles/tokens';
|
5
4
|
@use '../core/styles/variables';
|
6
|
-
|
7
|
-
|
8
|
-
$tokens: meta.module-variables(tokens) !default;
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
9
6
|
|
10
7
|
|
11
8
|
.mc-toast-container {
|
12
9
|
display: flex;
|
13
10
|
flex-direction: column;
|
14
11
|
|
15
|
-
gap:
|
12
|
+
gap: mc-css-variable(toast-size-gap);
|
16
13
|
}
|
17
14
|
|
18
15
|
.cdk-overlay-container {
|