@ptsecurity/mosaic 17.2.0 → 17.3.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.
Files changed (128) hide show
  1. package/autocomplete/_autocomplete-theme.scss +2 -2
  2. package/autocomplete/autocomplete.scss +0 -2
  3. package/button/_button-theme.scss +3 -3
  4. package/button-toggle/_button-toggle-theme.scss +2 -2
  5. package/button-toggle/button-toggle.scss +2 -2
  6. package/checkbox/_checkbox-theme.scss +1 -1
  7. package/code-block/_code-block-theme.scss +3 -3
  8. package/core/form-field/form-field-ref.d.ts +13 -0
  9. package/core/form-field/index.d.ts +1 -0
  10. package/core/forms/_forms-theme.scss +3 -3
  11. package/core/option/_optgroup-theme.scss +1 -1
  12. package/core/option/_option-theme.scss +1 -1
  13. package/core/public-api.d.ts +1 -0
  14. package/core/select/common.d.ts +35 -0
  15. package/core/select/index.d.ts +1 -0
  16. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +16 -11
  17. package/core/styles/common/_groups.scss +3 -2
  18. package/core/styles/common/_popup.scss +1 -1
  19. package/core/styles/common/_tokens.scss +33 -14
  20. package/core/styles/theming/_alerts.scss +20 -19
  21. package/core/styles/theming/_badges.scss +38 -36
  22. package/core/styles/theming/_components-theming.scss +13 -13
  23. package/core/styles/theming/_scrollbars.scss +24 -27
  24. package/core/styles/theming/_theming.scss +10 -8
  25. package/core/styles/typography/_typography-utils.scss +1 -1
  26. package/core/styles/typography/_typography.scss +29 -28
  27. package/core/styles/visual/_layout.scss +14 -13
  28. package/datepicker/_datepicker-theme.scss +5 -6
  29. package/divider/_divider-theme.scss +1 -1
  30. package/dl/_dl-theme.scss +9 -9
  31. package/dropdown/_dropdown-theme.scss +4 -4
  32. package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
  33. package/esm2022/core/form-field/form-field-ref.mjs +8 -0
  34. package/esm2022/core/form-field/index.mjs +2 -0
  35. package/esm2022/core/public-api.mjs +2 -1
  36. package/esm2022/core/select/common.mjs +119 -0
  37. package/esm2022/core/select/index.mjs +2 -1
  38. package/esm2022/core/version.mjs +2 -2
  39. package/esm2022/datepicker/calendar-header.component.mjs +1 -1
  40. package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
  41. package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
  42. package/esm2022/form-field/form-field.mjs +5 -11
  43. package/esm2022/form-field/password-hint.mjs +5 -4
  44. package/esm2022/modal/modal.component.mjs +2 -2
  45. package/esm2022/navbar/navbar.component.mjs +2 -2
  46. package/esm2022/navbar/vertical-navbar.component.mjs +3 -3
  47. package/esm2022/select/select.component.mjs +17 -113
  48. package/esm2022/select/select.module.mjs +17 -17
  49. package/esm2022/tabs/tab-header.component.mjs +2 -2
  50. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  51. package/esm2022/tags/tag-default-options.mjs +1 -1
  52. package/esm2022/tags/tag-input.mjs +17 -3
  53. package/esm2022/timepicker/timepicker.directive.mjs +10 -2
  54. package/esm2022/timezone/timezone-select.component.mjs +5 -5
  55. package/esm2022/toast/toast.service.mjs +17 -11
  56. package/esm2022/tree-select/tree-select.component.mjs +6 -7
  57. package/fesm2022/ptsecurity-mosaic-button-toggle.mjs +2 -2
  58. package/fesm2022/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
  59. package/fesm2022/ptsecurity-mosaic-core.mjs +125 -4
  60. package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
  61. package/fesm2022/ptsecurity-mosaic-datepicker.mjs +1 -1
  62. package/fesm2022/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  63. package/fesm2022/ptsecurity-mosaic-file-upload.mjs +4 -4
  64. package/fesm2022/ptsecurity-mosaic-file-upload.mjs.map +1 -1
  65. package/fesm2022/ptsecurity-mosaic-form-field.mjs +7 -13
  66. package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -1
  67. package/fesm2022/ptsecurity-mosaic-modal.mjs +2 -2
  68. package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -1
  69. package/fesm2022/ptsecurity-mosaic-navbar.mjs +4 -4
  70. package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -1
  71. package/fesm2022/ptsecurity-mosaic-select.mjs +35 -131
  72. package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -1
  73. package/fesm2022/ptsecurity-mosaic-tabs.mjs +4 -4
  74. package/fesm2022/ptsecurity-mosaic-tabs.mjs.map +1 -1
  75. package/fesm2022/ptsecurity-mosaic-tags.mjs +17 -4
  76. package/fesm2022/ptsecurity-mosaic-tags.mjs.map +1 -1
  77. package/fesm2022/ptsecurity-mosaic-timepicker.mjs +9 -1
  78. package/fesm2022/ptsecurity-mosaic-timepicker.mjs.map +1 -1
  79. package/fesm2022/ptsecurity-mosaic-timezone.mjs +4 -4
  80. package/fesm2022/ptsecurity-mosaic-timezone.mjs.map +1 -1
  81. package/fesm2022/ptsecurity-mosaic-toast.mjs +15 -9
  82. package/fesm2022/ptsecurity-mosaic-toast.mjs.map +1 -1
  83. package/fesm2022/ptsecurity-mosaic-tree-select.mjs +6 -6
  84. package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  85. package/file-upload/_file-upload-theme.scss +7 -7
  86. package/file-upload/multiple-file-upload.component.scss +9 -9
  87. package/file-upload/single-file-upload.component.scss +3 -3
  88. package/form-field/_form-field-theme.scss +7 -5
  89. package/form-field/form-field.d.ts +1 -7
  90. package/form-field/form-field.scss +1 -1
  91. package/icon/_icon-theme.scss +1 -1
  92. package/input/_input-theme.scss +4 -4
  93. package/link/_link-theme.scss +3 -3
  94. package/list/_list-theme.scss +1 -1
  95. package/loader-overlay/_loader-overlay-theme.scss +2 -2
  96. package/markdown/_markdown-theme.scss +15 -15
  97. package/modal/_modal-theme.scss +4 -4
  98. package/modal/modal.scss +2 -2
  99. package/navbar/_navbar-theme.scss +6 -6
  100. package/navbar/navbar-item.scss +2 -2
  101. package/package.json +5 -5
  102. package/popover/_popover-theme.scss +4 -4
  103. package/prebuilt-themes/dark-theme.css +1 -1
  104. package/prebuilt-themes/default-theme.css +1 -1
  105. package/radio/_radio-theme.scss +2 -2
  106. package/select/_select-theme.scss +4 -4
  107. package/select/select.component.d.ts +2 -32
  108. package/select/select.module.d.ts +1 -1
  109. package/select/select.scss +1 -1
  110. package/sidepanel/_sidepanel-theme.scss +5 -5
  111. package/table/_table-theme.scss +2 -2
  112. package/tabs/_tabs-theme.scss +3 -3
  113. package/tabs/tab-header.scss +16 -12
  114. package/tabs/tab-nav-bar/tab-nav-bar.scss +15 -13
  115. package/tags/_tag-theme.scss +7 -7
  116. package/tags/tag-default-options.d.ts +1 -0
  117. package/tags/tag-input.d.ts +7 -1
  118. package/textarea/_textarea-theme.scss +2 -2
  119. package/timezone/_timezone-option-theme.scss +4 -4
  120. package/timezone/timezone-select.component.d.ts +2 -1
  121. package/toast/_toast-theme.scss +3 -3
  122. package/toast/toast.service.d.ts +8 -4
  123. package/toggle/_toggle-theme.scss +3 -3
  124. package/tooltip/_tooltip-theme.scss +4 -4
  125. package/tree/_tree-theme.scss +1 -1
  126. package/tree-select/_tree-select-theme.scss +1 -1
  127. package/tree-select/tree-select.component.d.ts +1 -2
  128. package/tree-select/tree-select.scss +1 -1
@@ -36,67 +36,67 @@
36
36
  );
37
37
 
38
38
  $badge: (
39
- primary_solid: (
39
+ solid-primary: (
40
40
  color: map-get($tokens, 'badge-#{$scheme}-solid-primary-color'),
41
41
  background: map-get($tokens, 'badge-#{$scheme}-solid-primary-background'),
42
42
  border: map-get($tokens, 'badge-#{$scheme}-solid-primary-border')
43
43
  ),
44
- second_solid: (
44
+ solid-secondary: (
45
45
  color: map-get($tokens, 'badge-#{$scheme}-solid-secondary-color'),
46
46
  background: map-get($tokens, 'badge-#{$scheme}-solid-secondary-background'),
47
47
  border: map-get($tokens, 'badge-#{$scheme}-solid-secondary-border')
48
48
  ),
49
- light_solid: (
49
+ solid-light: (
50
50
  color: map-get($tokens, 'badge-#{$scheme}-solid-light-color'),
51
51
  background: map-get($tokens, 'badge-#{$scheme}-solid-light-background'),
52
52
  border: map-get($tokens, 'badge-#{$scheme}-solid-light-background')
53
53
  ),
54
- info_solid: (
54
+ solid-info: (
55
55
  color: map-get($tokens, 'badge-#{$scheme}-solid-info-color'),
56
56
  background: map-get($tokens, 'badge-#{$scheme}-solid-info-background'),
57
57
  border: map-get($tokens, 'badge-#{$scheme}-solid-info-border')
58
58
  ),
59
- success_solid: (
59
+ solid-success: (
60
60
  color: map-get($tokens, 'badge-#{$scheme}-solid-success-color'),
61
61
  background: map-get($tokens, 'badge-#{$scheme}-solid-success-background'),
62
62
  border: map-get($tokens, 'badge-#{$scheme}-solid-success-border')
63
63
  ),
64
- warning_solid: (
64
+ solid-warning: (
65
65
  color: map-get($tokens, 'badge-#{$scheme}-solid-warning-color'),
66
66
  background: map-get($tokens, 'badge-#{$scheme}-solid-warning-background'),
67
67
  border: map-get($tokens, 'badge-#{$scheme}-solid-warning-border')
68
68
  ),
69
- error_solid: (
69
+ solid-error: (
70
70
  color: map-get($tokens, 'badge-#{$scheme}-solid-error-color'),
71
71
  background: map-get($tokens, 'badge-#{$scheme}-solid-error-background'),
72
72
  border: map-get($tokens, 'badge-#{$scheme}-solid-error-border')
73
73
  ),
74
- transparent_solid: (
74
+ solid-transparent: (
75
75
  color: map-get($tokens, 'badge-#{$scheme}-solid-transparent-color'),
76
76
  border: map-get($tokens, 'badge-#{$scheme}-solid-transparent-border'),
77
77
  background: map-get($tokens, 'badge-#{$scheme}-solid-transparent-background')
78
78
  ),
79
- primary_pastel: (
79
+ pastel-primary: (
80
80
  color: map-get($tokens, 'badge-#{$scheme}-pastel-primary-color'),
81
81
  background: map-get($tokens, 'badge-#{$scheme}-pastel-primary-background'),
82
82
  border: map-get($tokens, 'badge-#{$scheme}-pastel-primary-border')
83
83
  ),
84
- info_pastel: (
84
+ pastel-info: (
85
85
  color: map-get($tokens, 'badge-#{$scheme}-pastel-info-color'),
86
86
  background: map-get($tokens, 'badge-#{$scheme}-pastel-info-background'),
87
87
  border: map-get($tokens, 'badge-#{$scheme}-pastel-info-border')
88
88
  ),
89
- success_pastel: (
89
+ pastel-success: (
90
90
  color: map-get($tokens, 'badge-#{$scheme}-pastel-success-color'),
91
91
  background: map-get($tokens, 'badge-#{$scheme}-pastel-success-background'),
92
92
  border: map-get($tokens, 'badge-#{$scheme}-pastel-success-border')
93
93
  ),
94
- warning_pastel: (
94
+ pastel-warning: (
95
95
  color: map-get($tokens, 'badge-#{$scheme}-pastel-warning-color'),
96
96
  background: map-get($tokens, 'badge-#{$scheme}-pastel-warning-background'),
97
97
  border: map-get($tokens, 'badge-#{$scheme}-pastel-warning-border')
98
98
  ),
99
- error_pastel: (
99
+ pastel-error: (
100
100
  color: map-get($tokens, 'badge-#{$scheme}-pastel-error-color'),
101
101
  background: map-get($tokens, 'badge-#{$scheme}-pastel-error-background'),
102
102
  border: map-get($tokens, 'badge-#{$scheme}-pastel-error-border')
@@ -2,6 +2,8 @@
2
2
  @use 'sass:map';
3
3
 
4
4
  @use '../functions/string' as *;
5
+ @use '../common/tokens' as *;
6
+
5
7
 
6
8
  .mc-scrollbar {
7
9
  //firefox
@@ -11,54 +13,55 @@
11
13
  }
12
14
 
13
15
  @mixin mc-scrollbar-theme($theme) {
14
- $scrollbar: map.get(map.get($theme, components), scrollbar);
16
+ $scrollbar: map.get($theme, components, scrollbar);
15
17
  $thumb: map.get($scrollbar, thumb);
16
18
  $arrow: map.get($scrollbar, arrow);
17
19
 
18
20
  .mc-scrollbar {
19
- @include mc-scrollbar-geometry(map.get($theme, tokens));
21
+ @include mc-scrollbar-geometry();
20
22
 
21
23
  // firefox
22
24
  @supports not selector(::-webkit-scrollbar) {
23
- scrollbar-color: map-get($thumb, normal) map-get($scrollbar, track);
25
+ scrollbar-color: mc-css-variable(thumb-normal, map-get($thumb, normal))
26
+ mc-css-variable(scrollbar-track, map-get($scrollbar, track));
24
27
  }
25
28
 
26
29
  // webkit
27
30
  &::-webkit-scrollbar,
28
31
  ::-webkit-scrollbar {
29
- background-color: map.get($scrollbar, track);
32
+ background-color: mc-css-variable(scrollbar-track, map.get($scrollbar, track));
30
33
  }
31
34
 
32
35
 
33
36
  &::-webkit-scrollbar-corner,
34
37
  ::-webkit-scrollbar-corner {
35
- background-color: map.get($scrollbar, corner-background);
38
+ background-color: mc-css-variable(scrollbar-corner-background, map.get($scrollbar, corner-background));
36
39
  }
37
40
 
38
41
  &::-webkit-scrollbar-thumb,
39
42
  ::-webkit-scrollbar-thumb {
40
- background-color: map.get($thumb, normal);
43
+ background-color: mc-css-variable(thumb-normal, map.get($thumb, normal));
41
44
 
42
- border-color: map.get($scrollbar, track);
45
+ border-color: mc-css-variable(scrollbar-track, map.get($scrollbar, track));
43
46
  border-style: solid;
44
47
 
45
48
  &:hover {
46
- background-color: map.get($thumb, hover);
49
+ background-color: mc-css-variable(thumb-hover, map.get($thumb, hover));
47
50
  }
48
51
 
49
52
  &:disabled {
50
- background-color: map.get($thumb, disabled);
53
+ background-color: mc-css-variable(thumb-disabled, map.get($thumb, disabled));
51
54
  }
52
55
 
53
56
  &:active {
54
- background-color: map.get($thumb, active);
57
+ background-color: mc-css-variable(thumb-active, map.get($thumb, active));
55
58
  }
56
59
  }
57
60
 
58
61
  /* stylelint-disable */
59
62
  &::-webkit-scrollbar-button,
60
63
  ::-webkit-scrollbar-button {
61
- background-color: map.get($arrow, background);
64
+ background-color: mc-css-variable(arrow-background, map.get($arrow, background));
62
65
  background-size: 10px 10px;
63
66
  background-repeat: no-repeat;
64
67
  background-position: center center;
@@ -93,39 +96,33 @@
93
96
  }
94
97
  }
95
98
 
96
- @mixin mc-scrollbar-geometry($tokens) {
99
+ @mixin mc-scrollbar-geometry() {
97
100
  // webkit
98
101
  &::-webkit-scrollbar,
99
102
  ::-webkit-scrollbar {
100
103
  &:vertical {
101
- width: var(--mc-scrollbar-size-track-dimension, map.get($tokens, scrollbar-size-track-dimension));
104
+ width: mc-css-variable(scrollbar-size-track-dimension);
102
105
  }
103
106
 
104
107
  &:horizontal {
105
- height: var(--mc-scrollbar-size-track-dimension, map.get($tokens, scrollbar-size-track-dimension));
108
+ height: mc-css-variable(scrollbar-size-track-dimension);
106
109
  }
107
110
  }
108
111
 
109
112
  /* stylelint-disable no-descending-specificity */
110
113
  &::-webkit-scrollbar-thumb,
111
114
  ::-webkit-scrollbar-thumb {
112
- width: var(--mc-scrollbar-size-thumb-width, map.get($tokens, scrollbar-size-thumb-width));
113
- border-width: var(
114
- --mc-scrollbar-size-thumb-inset-border-width,
115
- map.get($tokens, scrollbar-size-thumb-border-width)
116
- );
117
- border-radius: var(
118
- --mc-scrollbar-size-thumb-inset-border-radius,
119
- map.get($tokens, scrollbar-size-thumb-border-radius)
120
- );
115
+ width: mc-css-variable(scrollbar-size-thumb-width);
116
+ border-width: mc-css-variable(scrollbar-size-thumb-border-width);
117
+ border-radius: mc-css-variable(scrollbar-size-thumb-border-radius);
121
118
 
122
119
  // these props are used to set the user-friendly thumb for long content.
123
120
  &:vertical {
124
- min-height: var(--mc-scrollbar-size-thumb-min-size, map.get($tokens, scrollbar-size-thumb-min-size));
121
+ min-height: mc-css-variable(scrollbar-size-thumb-min-size);
125
122
  }
126
123
 
127
124
  &:horizontal {
128
- min-width: var(--mc-scrollbar-size-thumb-min-size, map.get($tokens, scrollbar-size-thumb-min-size));
125
+ min-width: mc-css-variable(scrollbar-size-thumb-min-size);
129
126
  }
130
127
  }
131
128
 
@@ -133,8 +130,8 @@
133
130
  ::-webkit-scrollbar-button {
134
131
  display: none;
135
132
 
136
- width: var(--mc-scrollbar-size-arrow-icon-width, map.get($tokens, scrollbar-size-arrow-icon-width));
137
- height: var(--mc-scrollbar-size-arrow-icon-height, map.get($tokens, scrollbar-size-arrow-icon-height));
133
+ width: mc-css-variable(scrollbar-size-arrow-icon-width);
134
+ height: mc-css-variable(scrollbar-size-arrow-icon-height);
138
135
  }
139
136
  }
140
137
 
@@ -2,9 +2,11 @@
2
2
  @use 'sass:meta';
3
3
 
4
4
  @use 'components-theming' as *;
5
+ @use '../common/tokens' as *;
6
+
5
7
 
6
8
  @function mc-contrast($palette, $hue) {
7
- @return map.get(map.get($palette, contrast), $hue);
9
+ @return map.get($palette, contrast, $hue);
8
10
  }
9
11
 
10
12
  @function mc-palette($base-palette, $default) {
@@ -37,8 +39,8 @@
37
39
  $background: map.get($theme, background);
38
40
  $foreground: map.get($theme, foreground);
39
41
 
40
- background-color: mc-color($background, background);
41
- color: mc-color($foreground, text);
42
+ background-color: mc-css-variable(background-background, map.get($background, background));
43
+ color: mc-css-variable(foreground-text, map.get($foreground, text));
42
44
  }
43
45
 
44
46
  .mc-theme-loaded-marker {
@@ -46,23 +48,23 @@
46
48
  }
47
49
 
48
50
  .mc-primary {
49
- color: mc-color(map.get($theme, primary));
51
+ color: mc-css-variable(primary-default, map.get($theme, primary, default));
50
52
  }
51
53
 
52
54
  .mc-error {
53
- color: mc-color(map.get($theme, error));
55
+ color: mc-css-variable(error-default, map.get($theme, error, default));
54
56
  }
55
57
 
56
58
  .mc-warning {
57
- color: mc-color(map.get($theme, warning));
59
+ color: mc-css-variable(warning-default, map.get($theme, warning, default));
58
60
  }
59
61
 
60
62
  .mc-success {
61
- color: mc-color(map.get($theme, success));
63
+ color: mc-css-variable(success-default, map.get($theme, success, default));
62
64
  }
63
65
 
64
66
  .mc-info {
65
- color: mc-color(map.get($theme, info));
67
+ color: mc-css-variable(info-default, map.get($theme, info, default));
66
68
  }
67
69
  }
68
70
 
@@ -24,7 +24,7 @@
24
24
  }
25
25
 
26
26
  @function _mc-get-type-value($config, $level, $name) {
27
- @return map.get(map.get($config, $level), $name);
27
+ @return map.get($config, $level, $name);
28
28
  }
29
29
 
30
30
  @function mc-font-size($config, $level) {
@@ -1,11 +1,12 @@
1
1
  @use 'sass:map';
2
2
 
3
3
  @use 'typography-utils' as *;
4
+ @use '../common/tokens' as *;
4
5
 
5
6
 
6
7
  @function mc-typography-config($tokens) {
7
8
  $font-family: map.get($tokens, font-family-base);
8
- $typography: map.get(map.get($tokens, mosaic), typography);
9
+ $typography: map.get($tokens, mosaic, typography);
9
10
 
10
11
  $config: (
11
12
  display-1: map.get($typography, display-1),
@@ -49,7 +50,7 @@
49
50
 
50
51
  @function mc-markdown-typography-config($tokens) {
51
52
  $font-family: map.get($tokens, font-family-base);
52
- $md-typography: map.get(map.get($tokens, md-typography), md-typography);
53
+ $md-typography: map.get($tokens, md-typography, md-typography);
53
54
 
54
55
  $config: (
55
56
  md-h1: map.get($md-typography, md-h1),
@@ -80,83 +81,83 @@
80
81
 
81
82
  @mixin mc-base-typography($config) {
82
83
  .mc-display-1 {
83
- @include mc-typography-level-to-styles($config, display-1);
84
+ @include mc-typography-level-to-styles_css-variables($config, typography, display-1);
84
85
  }
85
86
 
86
87
  .mc-display-2 {
87
- @include mc-typography-level-to-styles($config, display-2);
88
+ @include mc-typography-level-to-styles_css-variables($config, typography, display-2);
88
89
  }
89
90
 
90
91
  .mc-display-3 {
91
- @include mc-typography-level-to-styles($config, display-3);
92
+ @include mc-typography-level-to-styles_css-variables($config, typography, display-3);
92
93
  }
93
94
 
94
95
  .mc-headline {
95
- @include mc-typography-level-to-styles($config, headline);
96
+ @include mc-typography-level-to-styles_css-variables($config, typography, headline);
96
97
  }
97
98
 
98
99
  .mc-subheading {
99
- @include mc-typography-level-to-styles($config, subheading);
100
+ @include mc-typography-level-to-styles_css-variables($config, typography, subheading);
100
101
  }
101
102
 
102
103
  .mc-title {
103
- @include mc-typography-level-to-styles($config, title);
104
+ @include mc-typography-level-to-styles_css-variables($config, typography, title);
104
105
  }
105
106
 
106
107
  .mc-body {
107
- @include mc-typography-level-to-styles($config, body);
108
+ @include mc-typography-level-to-styles_css-variables($config, typography, body);
108
109
  }
109
110
 
110
111
  .mc-body_tabular {
111
- @include mc-typography-level-to-styles($config, body-tabular);
112
+ @include mc-typography-level-to-styles_css-variables($config, typography, body-tabular);
112
113
  }
113
114
 
114
115
  .mc-body_strong {
115
- @include mc-typography-level-to-styles($config, body-strong);
116
+ @include mc-typography-level-to-styles_css-variables($config, typography, body-strong);
116
117
  }
117
118
 
118
119
  .mc-body_caps {
119
- @include mc-typography-level-to-styles($config, body-caps);
120
+ @include mc-typography-level-to-styles_css-variables($config, typography, body-caps);
120
121
  }
121
122
 
122
123
  .mc-body_mono {
123
- @include mc-typography-level-to-styles($config, body-mono);
124
+ @include mc-typography-level-to-styles_css-variables($config, typography, body-mono);
124
125
  }
125
126
 
126
127
  .mc-body_mono_strong {
127
- @include mc-typography-level-to-styles($config, body-mono-strong);
128
+ @include mc-typography-level-to-styles_css-variables($config, typography, body-mono-strong);
128
129
  }
129
130
 
130
131
  .mc-caption {
131
- @include mc-typography-level-to-styles($config, caption);
132
+ @include mc-typography-level-to-styles_css-variables($config, typography, caption);
132
133
  }
133
134
 
134
135
  .mc-caption_tabular {
135
- @include mc-typography-level-to-styles($config, caption-tabular);
136
+ @include mc-typography-level-to-styles_css-variables($config, typography, caption-tabular);
136
137
  }
137
138
 
138
139
  .mc-caption_strong {
139
- @include mc-typography-level-to-styles($config, caption-strong);
140
+ @include mc-typography-level-to-styles_css-variables($config, typography, caption-strong);
140
141
  }
141
142
 
142
143
  .mc-caption_caps {
143
- @include mc-typography-level-to-styles($config, caption-caps);
144
+ @include mc-typography-level-to-styles_css-variables($config, typography, caption-caps);
144
145
  }
145
146
 
146
147
  .mc-caption_mono {
147
- @include mc-typography-level-to-styles($config, caption-mono);
148
+ @include mc-typography-level-to-styles_css-variables($config, typography, caption-mono);
148
149
  }
149
150
 
150
151
  .mc-caption_mono_strong {
151
- @include mc-typography-level-to-styles($config, caption-mono-strong);
152
+ @include mc-typography-level-to-styles_css-variables($config, typography, caption-mono-strong);
152
153
  }
153
154
 
154
155
  .mc-small-text {
155
- @include mc-typography-level-to-styles($config, small-text);
156
+ @include mc-typography-level-to-styles_css-variables($config, typography, small-text);
156
157
  }
157
158
 
158
159
  .mc-extra-small-text {
159
- @include mc-typography-level-to-styles($config, extra-small-text);
160
+ @include mc-typography-level-to-styles_css-variables($config, typography, extra-small-text);
160
161
  }
161
162
  }
162
163
 
@@ -164,27 +165,27 @@
164
165
  // h1, h2, h3, h4, h5, h6
165
166
  @for $i from 1 through 6 {
166
167
  .md-h#{$i} {
167
- @include mc-typography-level-to-styles($config, md-h#{$i});
168
+ @include mc-typography-level-to-styles_css-variables($config, typography, md-h#{$i});
168
169
  }
169
170
  }
170
171
 
171
172
  .md-body {
172
- @include mc-typography-level-to-styles($config, md-body);
173
+ @include mc-typography-level-to-styles_css-variables($config, typography, md-body);
173
174
  }
174
175
 
175
176
  .md-body-mono {
176
- @include mc-typography-level-to-styles($config, md-body-mono);
177
+ @include mc-typography-level-to-styles_css-variables($config, typography, md-body-mono);
177
178
  }
178
179
 
179
180
  .md-caption {
180
- @include mc-typography-level-to-styles($config, md-caption);
181
+ @include mc-typography-level-to-styles_css-variables($config, typography, md-caption);
181
182
  }
182
183
 
183
184
  .md-table-cell {
184
- @include mc-typography-level-to-styles($config, md-table-cell);
185
+ @include mc-typography-level-to-styles_css-variables($config, typography, md-table-cell);
185
186
  }
186
187
 
187
188
  .md-table-header {
188
- @include mc-typography-level-to-styles($config, md-table-header);
189
+ @include mc-typography-level-to-styles_css-variables($config, typography, md-table-header);
189
190
  }
190
191
  }
@@ -2,6 +2,7 @@
2
2
  @use 'sass:map';
3
3
 
4
4
  @use '../../styles/common/rtl';
5
+ @use '../common/tokens' as *;
5
6
 
6
7
  @use '../tokens';
7
8
 
@@ -456,19 +457,19 @@ $tokens: meta.module-variables(tokens) !default;
456
457
 
457
458
  @mixin layout-indents() {
458
459
  $sizes: (
459
- '3xs': map.get($tokens, size-3xs),
460
- 'xxs': map.get($tokens, size-xxs),
461
- 'xs': map.get($tokens, size-xs),
462
- 's': map.get($tokens, size-s),
463
- 'm': map.get($tokens, size-m),
464
- 'l': map.get($tokens, size-l),
465
- 'xl': map.get($tokens, size-xl),
466
- 'xxl': map.get($tokens, size-xxl),
467
- '3xl': map.get($tokens, size-3xl),
468
- '4xl': map.get($tokens, size-4xl),
469
- '5xl': map.get($tokens, size-5xl),
470
- '6xl': map.get($tokens, size-6xl),
471
- '7xl': map.get($tokens, size-7xl)
460
+ '3xs': mc-css-variable(size-3xs),
461
+ 'xxs': mc-css-variable(size-xxs),
462
+ 'xs': mc-css-variable(size-xs),
463
+ 's': mc-css-variable(size-s),
464
+ 'm': mc-css-variable(size-m),
465
+ 'l': mc-css-variable(size-l),
466
+ 'xl': mc-css-variable(size-xl),
467
+ 'xxl': mc-css-variable(size-xxl),
468
+ '3xl': mc-css-variable(size-3xl),
469
+ '4xl': mc-css-variable(size-4xl),
470
+ '5xl': mc-css-variable(size-5xl),
471
+ '6xl': mc-css-variable(size-6xl),
472
+ '7xl': mc-css-variable(size-7xl)
472
473
  );
473
474
 
474
475
  $indents: 'padding', 'margin';
@@ -11,10 +11,9 @@
11
11
  $foreground: map.get($theme, foreground);
12
12
  $background: map.get($theme, background);
13
13
 
14
- $primary: map.get($theme, primary);
15
14
  $secondary: map.get($theme, secondary);
16
15
 
17
- $datepicker: map.get(map.get($theme, components), datepicker);
16
+ $datepicker: map.get($theme, components, datepicker);
18
17
 
19
18
  .mc-calendar__table-header {
20
19
  color: theming.mc-color($secondary, 400);
@@ -48,7 +47,7 @@
48
47
  .cdk-program-focused .mc-calendar__body_active {
49
48
  & > .mc-calendar__body-cell-content {
50
49
  border-color: map-get($theme, states, focused-color);
51
- box-shadow: 0 0 0 1px map-get($theme, states, focused-color);
50
+ box-shadow: 0 0 0.1px 1px map-get($theme, states, focused-color);
52
51
  }
53
52
  }
54
53
 
@@ -88,14 +87,14 @@
88
87
 
89
88
  @mixin mc-datepicker-typography($config) {
90
89
  .mc-calendar {
91
- @include mc-typography-css-variables(datepicker-calendar, default);
90
+ @include mc-typography-css-variables($config, datepicker-calendar, default);
92
91
  }
93
92
 
94
93
  .mc-calendar__table-header th {
95
- @include mc-typography-css-variables(datepicker-calendar, header);
94
+ @include mc-typography-css-variables($config, datepicker-calendar, header);
96
95
  }
97
96
 
98
97
  .mc-calendar__body-today {
99
- @include mc-typography-css-variables(datepicker-body, today);
98
+ @include mc-typography-css-variables($config, datepicker-body, today);
100
99
  }
101
100
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  @mixin mc-divider-theme($theme) {
6
- $divider: map.get(map.get($theme, components), divider);
6
+ $divider: map.get($theme, components, divider);
7
7
 
8
8
  .mc-divider_horizontal {
9
9
  border-top-color: mc-css-variable(divider-color, map-get($divider, color));
package/dl/_dl-theme.scss CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
  @mixin mc-dl-theme($theme) {
9
- $dl: map.get(map.get($theme, components), dl);
9
+ $dl: map.get($theme, components, dl);
10
10
 
11
11
  .mc-dt {
12
12
  color: mc-css-variable(dl-dt, map-get($dl, dt));
@@ -20,20 +20,20 @@
20
20
  @mixin mc-dl-typography($config) {
21
21
  .mc-dl {
22
22
  & .mc-dt {
23
- @include mc-typography-css-variables(description-list, default-horizontal-dt);
23
+ @include mc-typography-css-variables($config, description-list, default-horizontal-dt);
24
24
  }
25
25
 
26
26
  & .mc-dd {
27
- @include mc-typography-css-variables(description-list, default-horizontal-dd);
27
+ @include mc-typography-css-variables($config, description-list, default-horizontal-dd);
28
28
  }
29
29
 
30
30
  &.mc-dl_small {
31
31
  & .mc-dt {
32
- @include mc-typography-css-variables(description-list, small-horizontal-dt);
32
+ @include mc-typography-css-variables($config, description-list, small-horizontal-dt);
33
33
  }
34
34
 
35
35
  & .mc-dd {
36
- @include mc-typography-css-variables(description-list, small-horizontal-dd);
36
+ @include mc-typography-css-variables($config, description-list, small-horizontal-dd);
37
37
  }
38
38
  }
39
39
  }
@@ -41,20 +41,20 @@
41
41
 
42
42
  .mc-dl.mc-dl_vertical {
43
43
  & .mc-dt {
44
- @include mc-typography-css-variables(description-list, default-vertical-dt);
44
+ @include mc-typography-css-variables($config, description-list, default-vertical-dt);
45
45
  }
46
46
 
47
47
  & .mc-dd {
48
- @include mc-typography-css-variables(description-list, default-vertical-dd);
48
+ @include mc-typography-css-variables($config, description-list, default-vertical-dd);
49
49
  }
50
50
 
51
51
  &.mc-dl_small {
52
52
  & .mc-dt {
53
- @include mc-typography-css-variables(description-list, small-vertical-dt);
53
+ @include mc-typography-css-variables($config, description-list, small-vertical-dt);
54
54
  }
55
55
 
56
56
  & .mc-dd {
57
- @include mc-typography-css-variables(description-list, small-vertical-dd);
57
+ @include mc-typography-css-variables($config, description-list, small-vertical-dd);
58
58
  }
59
59
  }
60
60
  }
@@ -69,18 +69,18 @@
69
69
  @mixin mc-dropdown-typography($config) {
70
70
  .mc-dropdown-item,
71
71
  .mc-dropdown__content {
72
- @include mc-typography-css-variables(dropdown-item, default);
72
+ @include mc-typography-css-variables($config, dropdown-item, default);
73
73
  }
74
74
 
75
75
  .mc-dropdown-item__caption {
76
- @include mc-typography-css-variables(dropdown-item, caption);
76
+ @include mc-typography-css-variables($config, dropdown-item, caption);
77
77
  }
78
78
 
79
79
  .mc-dropdown__group-header {
80
- @include mc-typography-css-variables(dropdown-group-header, default);
80
+ @include mc-typography-css-variables($config, dropdown-group-header, default);
81
81
 
82
82
  &.mc-dropdown__group-header_small {
83
- @include mc-typography-css-variables(dropdown-group-header, small);
83
+ @include mc-typography-css-variables($config, dropdown-group-header, small);
84
84
  }
85
85
  }
86
86
  }