@ptsecurity/mosaic 17.0.0 → 17.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/_autocomplete-theme.scss +2 -1
- package/autocomplete/autocomplete-trigger.directive.d.ts +7 -1
- package/autocomplete/autocomplete.scss +7 -11
- package/button/_button-base.scss +10 -10
- package/button/_button-theme.scss +32 -32
- package/button/button.scss +9 -15
- package/button-toggle/_button-toggle-theme.scss +32 -24
- package/button-toggle/button-toggle.scss +18 -57
- package/card/_card-theme.scss +23 -20
- package/card/card.component.scss +2 -1
- package/checkbox/_checkbox-theme.scss +33 -29
- package/checkbox/checkbox.scss +7 -6
- package/code-block/_code-block-theme.scss +201 -113
- package/code-block/actionbar.component.scss +5 -7
- package/code-block/code-block.scss +5 -6
- package/core/forms/_forms-theme.scss +17 -46
- package/core/option/_optgroup-theme.scss +5 -5
- package/core/option/_option-action-theme.scss +1 -4
- package/core/option/_option-theme.scss +8 -10
- package/core/option/option.scss +5 -4
- package/core/pop-up/pop-up-trigger.d.ts +3 -1
- package/core/styles/_mosaic-theme.scss +3 -3
- package/core/styles/common/_popup.scss +4 -3
- package/core/styles/common/_tokens.scss +39 -0
- package/core/styles/theming/_alerts.scss +16 -24
- package/core/styles/theming/_badges.scss +7 -8
- package/core/styles/theming/_components-theming.scss +4 -2
- package/core/styles/theming/_scrollbars.scss +17 -2
- package/datepicker/_datepicker-theme.scss +18 -19
- package/datepicker/calendar-body.scss +6 -9
- package/datepicker/calendar-header.scss +9 -26
- package/datepicker/calendar.scss +5 -16
- package/datepicker/datepicker-content.scss +2 -4
- package/datepicker/datepicker-input.scss +2 -1
- package/datepicker/datepicker-toggle.scss +3 -2
- package/divider/_divider-theme.scss +4 -2
- package/divider/divider.scss +5 -4
- package/dl/_dl-theme.scss +12 -36
- package/dl/dl.scss +13 -46
- package/dropdown/_dropdown-theme.scss +19 -17
- package/dropdown/dropdown-item.scss +7 -6
- package/dropdown/dropdown.scss +11 -26
- package/ellipsis-center/ellipsis-center.directive.d.ts +3 -2
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +14 -2
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/code-block/actionbar.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +2 -2
- package/esm2022/core/pop-up/pop-up-trigger.mjs +19 -11
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -5
- package/esm2022/file-upload/file-upload.module.mjs +8 -4
- package/esm2022/file-upload/multiple-file-upload.component.mjs +15 -34
- package/esm2022/file-upload/single-file-upload.component.mjs +15 -34
- package/esm2022/form-field/form-field.mjs +2 -2
- package/esm2022/input/input-password.mjs +2 -3
- package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/modal/modal.component.mjs +6 -6
- package/esm2022/navbar/navbar-item.component.mjs +9 -9
- package/esm2022/progress-spinner/progress-spinner.component.mjs +2 -2
- package/esm2022/radio/radio.component.mjs +2 -2
- package/esm2022/select/select-option.directive.mjs +7 -5
- package/esm2022/select/select.component.mjs +16 -9
- package/esm2022/tabs/tab-header.component.mjs +2 -2
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2022/tags/tag-input.mjs +28 -8
- package/esm2022/timezone/timezone-option.directive.mjs +7 -5
- package/esm2022/timezone/timezone-select.component.mjs +2 -2
- package/esm2022/title/title.directive.mjs +2 -3
- package/esm2022/tooltip/tooltip.component.mjs +27 -12
- package/esm2022/tree-select/tree-select.component.mjs +21 -8
- package/fesm2022/ptsecurity-mosaic-autocomplete.mjs +13 -1
- package/fesm2022/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-button.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-button.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-code-block.mjs +4 -4
- package/fesm2022/ptsecurity-mosaic-code-block.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-core.mjs +19 -11
- package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-dropdown.mjs +4 -4
- package/fesm2022/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-ellipsis-center.mjs +5 -4
- package/fesm2022/ptsecurity-mosaic-ellipsis-center.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-file-upload.mjs +26 -58
- package/fesm2022/ptsecurity-mosaic-file-upload.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-form-field.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-input.mjs +1 -2
- package/fesm2022/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-markdown.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-markdown.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-modal.mjs +5 -5
- package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-navbar.mjs +8 -8
- package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-progress-spinner.mjs +1 -1
- package/fesm2022/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-radio.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-select.mjs +25 -17
- package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tabs.mjs +4 -4
- package/fesm2022/ptsecurity-mosaic-tabs.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tags.mjs +26 -7
- package/fesm2022/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-timezone.mjs +7 -6
- package/fesm2022/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-title.mjs +1 -2
- package/fesm2022/ptsecurity-mosaic-title.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tooltip.mjs +25 -11
- package/fesm2022/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs +20 -7
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +87 -54
- package/file-upload/file-upload.module.d.ts +2 -1
- package/file-upload/file-upload.scss +0 -15
- package/file-upload/multiple-file-upload.component.d.ts +4 -12
- package/file-upload/multiple-file-upload.component.scss +58 -54
- package/file-upload/single-file-upload.component.d.ts +4 -12
- package/file-upload/single-file-upload.component.scss +15 -24
- package/form-field/_form-field-theme.scss +43 -34
- package/form-field/form-field.scss +14 -13
- package/icon/_icon-theme.scss +26 -25
- package/input/_input-base.scss +3 -2
- package/input/_input-theme.scss +14 -14
- package/input/input-password.d.ts +0 -1
- package/input/input.scss +3 -4
- package/link/_link-theme.scss +36 -32
- package/list/_list-base.scss +4 -3
- package/list/_list-theme.scss +8 -8
- package/list/list.scss +2 -1
- package/loader-overlay/_loader-overlay-theme.scss +8 -8
- package/loader-overlay/loader-overlay.scss +7 -12
- package/markdown/_markdown-theme.scss +61 -43
- package/markdown/markdown.scss +39 -80
- package/modal/_modal-confirm.scss +3 -2
- package/modal/_modal-theme.scss +20 -21
- package/modal/modal.scss +18 -15
- package/navbar/_navbar-theme.scss +19 -18
- package/navbar/navbar-brand.scss +7 -9
- package/navbar/navbar-item.component.d.ts +4 -4
- package/navbar/navbar-item.scss +8 -7
- package/navbar/vertical-navbar.scss +4 -12
- package/package.json +25 -25
- package/popover/_popover-theme.scss +35 -35
- package/popover/popover.scss +15 -14
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +6 -5
- package/progress-bar/progress-bar.scss +2 -1
- package/progress-spinner/_progress-spinner-theme.scss +4 -3
- package/progress-spinner/progress-spinner.scss +7 -12
- package/radio/_radio-theme.scss +32 -24
- package/radio/radio.scss +8 -11
- package/select/_select-theme.scss +13 -13
- package/select/select-option.directive.d.ts +3 -2
- package/select/select.component.d.ts +1 -0
- package/select/select.scss +19 -42
- package/sidepanel/_sidepanel-theme.scss +9 -9
- package/sidepanel/sidepanel.scss +11 -10
- package/splitter/_splitter-theme.scss +5 -3
- package/table/_table-theme.scss +9 -9
- package/table/table.scss +11 -14
- package/tabs/_tabs-common.scss +15 -14
- package/tabs/_tabs-theme.scss +67 -55
- package/tabs/tab-group.scss +2 -1
- package/tabs/tab-header.scss +16 -3
- package/tabs/tab-nav-bar/tab-nav-bar.scss +15 -2
- package/tags/_tag-theme.scss +30 -27
- package/tags/tag-input.d.ts +9 -4
- package/tags/tag-list.scss +4 -3
- package/tags/tag.scss +9 -8
- package/textarea/_textarea-base.scss +2 -4
- package/textarea/_textarea-theme.scss +8 -8
- package/textarea/textarea.scss +2 -4
- package/timepicker/timepicker.scss +2 -7
- package/timezone/_timezone-option-theme.scss +7 -7
- package/timezone/timezone-option.component.scss +5 -4
- package/timezone/timezone-option.directive.d.ts +3 -2
- package/title/title.directive.d.ts +0 -1
- package/toast/_toast-theme.scss +13 -16
- package/toast/toast-container.component.scss +2 -5
- package/toast/toast.component.scss +15 -17
- package/toggle/_toggle-theme.scss +22 -21
- package/toggle/toggle.scss +19 -21
- package/tooltip/_tooltip-theme.scss +26 -31
- package/tooltip/tooltip.component.d.ts +12 -8
- package/tooltip/tooltip.scss +13 -17
- package/tree/_tree-theme.scss +8 -8
- package/tree/toggle.scss +3 -5
- package/tree/tree-option.scss +5 -4
- package/tree-select/_tree-select-theme.scss +9 -9
- package/tree-select/tree-select.component.d.ts +1 -0
- package/tree-select/tree-select.scss +17 -35
- package/_theming.scss +0 -10827
- package/_visual.scss +0 -3541
- package/prebuilt-visual/default-visual.css +0 -1
@@ -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
6
|
$divider: map.get(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
9
|
$dl: map.get(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
|
}
|
@@ -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;
|
@@ -48,10 +49,10 @@ $tokens: meta.module-variables(tokens) !default;
|
|
48
49
|
|
49
50
|
width: 100%;
|
50
51
|
|
51
|
-
padding:
|
52
|
+
padding: mc-css-variable(dropdown-item-size-padding);
|
52
53
|
|
53
54
|
& [mc-icon] {
|
54
|
-
padding:
|
55
|
+
padding: mc-css-variable(dropdown-item-size-icon-padding);
|
55
56
|
}
|
56
57
|
}
|
57
58
|
|
@@ -69,14 +70,14 @@ $tokens: meta.module-variables(tokens) !default;
|
|
69
70
|
.mc-dropdown__group-header {
|
70
71
|
@include common.user-select(none);
|
71
72
|
|
72
|
-
padding:
|
73
|
+
padding: mc-css-variable(dropdown-group-header-size-default-padding);
|
73
74
|
|
74
75
|
&.mc-dropdown__group-header_small {
|
75
|
-
padding:
|
76
|
+
padding: mc-css-variable(dropdown-group-header-size-small-padding);
|
76
77
|
}
|
77
78
|
}
|
78
79
|
|
79
80
|
.mc-dropdown__divider {
|
80
|
-
height:
|
81
|
-
margin:
|
81
|
+
height: mc-css-variable(dropdown-divider-size-height);
|
82
|
+
margin: mc-css-variable(dropdown-divider-size-margin);
|
82
83
|
}
|
package/dropdown/dropdown.scss
CHANGED
@@ -2,21 +2,17 @@
|
|
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-dropdown-trigger {
|
10
11
|
&.mc-icon-button_right {
|
11
|
-
padding-right:
|
12
|
-
--mc-dropdown-trigger-size-button-right-padding,
|
13
|
-
map.get($tokens, dropdown-trigger-size-button-right-padding)
|
14
|
-
);
|
12
|
+
padding-right: mc-css-variable(dropdown-trigger-size-button-right-padding);
|
15
13
|
|
16
14
|
& .mc-icon_right {
|
17
|
-
margin-left:
|
18
|
-
--dropdown-trigger-size-right-icon-padding, map.get($tokens, dropdown-trigger-size-right-icon-padding)
|
19
|
-
);
|
15
|
+
margin-left: mc-css-variable(dropdown-trigger-size-right-icon-padding);
|
20
16
|
}
|
21
17
|
}
|
22
18
|
|
@@ -27,38 +23,27 @@ $tokens: meta.module-variables(tokens) !default;
|
|
27
23
|
|
28
24
|
.mc-dropdown-trigger__icon {
|
29
25
|
margin-left: auto;
|
30
|
-
padding-right:
|
31
|
-
--mc-dropdown-trigger-size-right-icon-padding,
|
32
|
-
map.get($tokens, dropdown-trigger-size-right-icon-padding)
|
33
|
-
);
|
26
|
+
padding-right: mc-css-variable(dropdown-trigger-size-right-icon-padding);
|
34
27
|
}
|
35
28
|
|
36
29
|
.mc-dropdown__panel {
|
37
30
|
margin-top: -1px;
|
38
31
|
|
39
|
-
max-width:
|
32
|
+
max-width: mc-css-variable(dropdown-panel-size-max-width);
|
40
33
|
|
41
34
|
border: {
|
42
|
-
width:
|
35
|
+
width: mc-css-variable(dropdown-panel-size-border-width);
|
43
36
|
style: solid;
|
44
37
|
}
|
45
38
|
|
46
|
-
border-bottom-left-radius:
|
47
|
-
|
48
|
-
);
|
49
|
-
border-bottom-right-radius: var(
|
50
|
-
--mc-dropdown-panel-size-border-radius, map.get($tokens, dropdown-panel-size-border-radius)
|
51
|
-
);
|
39
|
+
border-bottom-left-radius: mc-css-variable(dropdown-panel-size-border-radius);
|
40
|
+
border-bottom-right-radius: mc-css-variable(dropdown-panel-size-border-radius);
|
52
41
|
|
53
|
-
padding:
|
42
|
+
padding: mc-css-variable(dropdown-panel-size-padding);
|
54
43
|
|
55
44
|
&.mc-dropdown__panel_nested {
|
56
|
-
border-top-left-radius:
|
57
|
-
|
58
|
-
);
|
59
|
-
border-top-right-radius: var(
|
60
|
-
--mc-dropdown-panel-size-border-radius, map.get($tokens, dropdown-panel-size-border-radius)
|
61
|
-
);
|
45
|
+
border-top-left-radius: mc-css-variable(dropdown-panel-size-border-radius);
|
46
|
+
border-top-right-radius: mc-css-variable(dropdown-panel-size-border-radius);
|
62
47
|
}
|
63
48
|
|
64
49
|
// Prevent users from interacting with the panel while it's animating. Note that
|