@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.
Files changed (201) hide show
  1. package/autocomplete/_autocomplete-theme.scss +2 -1
  2. package/autocomplete/autocomplete-trigger.directive.d.ts +7 -1
  3. package/autocomplete/autocomplete.scss +7 -11
  4. package/button/_button-base.scss +10 -10
  5. package/button/_button-theme.scss +32 -32
  6. package/button/button.scss +9 -15
  7. package/button-toggle/_button-toggle-theme.scss +32 -24
  8. package/button-toggle/button-toggle.scss +18 -57
  9. package/card/_card-theme.scss +23 -20
  10. package/card/card.component.scss +2 -1
  11. package/checkbox/_checkbox-theme.scss +33 -29
  12. package/checkbox/checkbox.scss +7 -6
  13. package/code-block/_code-block-theme.scss +201 -113
  14. package/code-block/actionbar.component.scss +5 -7
  15. package/code-block/code-block.scss +5 -6
  16. package/core/forms/_forms-theme.scss +17 -46
  17. package/core/option/_optgroup-theme.scss +5 -5
  18. package/core/option/_option-action-theme.scss +1 -4
  19. package/core/option/_option-theme.scss +8 -10
  20. package/core/option/option.scss +5 -4
  21. package/core/pop-up/pop-up-trigger.d.ts +3 -1
  22. package/core/styles/_mosaic-theme.scss +3 -3
  23. package/core/styles/common/_popup.scss +4 -3
  24. package/core/styles/common/_tokens.scss +39 -0
  25. package/core/styles/theming/_alerts.scss +16 -24
  26. package/core/styles/theming/_badges.scss +7 -8
  27. package/core/styles/theming/_components-theming.scss +4 -2
  28. package/core/styles/theming/_scrollbars.scss +17 -2
  29. package/datepicker/_datepicker-theme.scss +18 -19
  30. package/datepicker/calendar-body.scss +6 -9
  31. package/datepicker/calendar-header.scss +9 -26
  32. package/datepicker/calendar.scss +5 -16
  33. package/datepicker/datepicker-content.scss +2 -4
  34. package/datepicker/datepicker-input.scss +2 -1
  35. package/datepicker/datepicker-toggle.scss +3 -2
  36. package/divider/_divider-theme.scss +4 -2
  37. package/divider/divider.scss +5 -4
  38. package/dl/_dl-theme.scss +12 -36
  39. package/dl/dl.scss +13 -46
  40. package/dropdown/_dropdown-theme.scss +19 -17
  41. package/dropdown/dropdown-item.scss +7 -6
  42. package/dropdown/dropdown.scss +11 -26
  43. package/ellipsis-center/ellipsis-center.directive.d.ts +3 -2
  44. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +14 -2
  45. package/esm2022/button/button.component.mjs +2 -2
  46. package/esm2022/code-block/actionbar.component.mjs +2 -2
  47. package/esm2022/code-block/code-block.component.mjs +2 -2
  48. package/esm2022/core/pop-up/pop-up-trigger.mjs +19 -11
  49. package/esm2022/core/version.mjs +2 -2
  50. package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
  51. package/esm2022/dropdown/dropdown.component.mjs +3 -3
  52. package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -5
  53. package/esm2022/file-upload/file-upload.module.mjs +8 -4
  54. package/esm2022/file-upload/multiple-file-upload.component.mjs +15 -34
  55. package/esm2022/file-upload/single-file-upload.component.mjs +15 -34
  56. package/esm2022/form-field/form-field.mjs +2 -2
  57. package/esm2022/input/input-password.mjs +2 -3
  58. package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
  59. package/esm2022/markdown/markdown.component.mjs +2 -2
  60. package/esm2022/modal/modal.component.mjs +6 -6
  61. package/esm2022/navbar/navbar-item.component.mjs +9 -9
  62. package/esm2022/progress-spinner/progress-spinner.component.mjs +2 -2
  63. package/esm2022/radio/radio.component.mjs +2 -2
  64. package/esm2022/select/select-option.directive.mjs +7 -5
  65. package/esm2022/select/select.component.mjs +16 -9
  66. package/esm2022/tabs/tab-header.component.mjs +2 -2
  67. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  68. package/esm2022/tags/tag-input.mjs +28 -8
  69. package/esm2022/timezone/timezone-option.directive.mjs +7 -5
  70. package/esm2022/timezone/timezone-select.component.mjs +2 -2
  71. package/esm2022/title/title.directive.mjs +2 -3
  72. package/esm2022/tooltip/tooltip.component.mjs +27 -12
  73. package/esm2022/tree-select/tree-select.component.mjs +21 -8
  74. package/fesm2022/ptsecurity-mosaic-autocomplete.mjs +13 -1
  75. package/fesm2022/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
  76. package/fesm2022/ptsecurity-mosaic-button.mjs +2 -2
  77. package/fesm2022/ptsecurity-mosaic-button.mjs.map +1 -1
  78. package/fesm2022/ptsecurity-mosaic-code-block.mjs +4 -4
  79. package/fesm2022/ptsecurity-mosaic-code-block.mjs.map +1 -1
  80. package/fesm2022/ptsecurity-mosaic-core.mjs +19 -11
  81. package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
  82. package/fesm2022/ptsecurity-mosaic-dropdown.mjs +4 -4
  83. package/fesm2022/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  84. package/fesm2022/ptsecurity-mosaic-ellipsis-center.mjs +5 -4
  85. package/fesm2022/ptsecurity-mosaic-ellipsis-center.mjs.map +1 -1
  86. package/fesm2022/ptsecurity-mosaic-file-upload.mjs +26 -58
  87. package/fesm2022/ptsecurity-mosaic-file-upload.mjs.map +1 -1
  88. package/fesm2022/ptsecurity-mosaic-form-field.mjs +2 -2
  89. package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -1
  90. package/fesm2022/ptsecurity-mosaic-input.mjs +1 -2
  91. package/fesm2022/ptsecurity-mosaic-input.mjs.map +1 -1
  92. package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs +2 -2
  93. package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
  94. package/fesm2022/ptsecurity-mosaic-markdown.mjs +2 -2
  95. package/fesm2022/ptsecurity-mosaic-markdown.mjs.map +1 -1
  96. package/fesm2022/ptsecurity-mosaic-modal.mjs +5 -5
  97. package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -1
  98. package/fesm2022/ptsecurity-mosaic-navbar.mjs +8 -8
  99. package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -1
  100. package/fesm2022/ptsecurity-mosaic-progress-spinner.mjs +1 -1
  101. package/fesm2022/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  102. package/fesm2022/ptsecurity-mosaic-radio.mjs +2 -2
  103. package/fesm2022/ptsecurity-mosaic-radio.mjs.map +1 -1
  104. package/fesm2022/ptsecurity-mosaic-select.mjs +25 -17
  105. package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -1
  106. package/fesm2022/ptsecurity-mosaic-tabs.mjs +4 -4
  107. package/fesm2022/ptsecurity-mosaic-tabs.mjs.map +1 -1
  108. package/fesm2022/ptsecurity-mosaic-tags.mjs +26 -7
  109. package/fesm2022/ptsecurity-mosaic-tags.mjs.map +1 -1
  110. package/fesm2022/ptsecurity-mosaic-timezone.mjs +7 -6
  111. package/fesm2022/ptsecurity-mosaic-timezone.mjs.map +1 -1
  112. package/fesm2022/ptsecurity-mosaic-title.mjs +1 -2
  113. package/fesm2022/ptsecurity-mosaic-title.mjs.map +1 -1
  114. package/fesm2022/ptsecurity-mosaic-tooltip.mjs +25 -11
  115. package/fesm2022/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  116. package/fesm2022/ptsecurity-mosaic-tree-select.mjs +20 -7
  117. package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  118. package/file-upload/_file-upload-theme.scss +87 -54
  119. package/file-upload/file-upload.module.d.ts +2 -1
  120. package/file-upload/file-upload.scss +0 -15
  121. package/file-upload/multiple-file-upload.component.d.ts +4 -12
  122. package/file-upload/multiple-file-upload.component.scss +58 -54
  123. package/file-upload/single-file-upload.component.d.ts +4 -12
  124. package/file-upload/single-file-upload.component.scss +15 -24
  125. package/form-field/_form-field-theme.scss +43 -34
  126. package/form-field/form-field.scss +14 -13
  127. package/icon/_icon-theme.scss +26 -25
  128. package/input/_input-base.scss +3 -2
  129. package/input/_input-theme.scss +14 -14
  130. package/input/input-password.d.ts +0 -1
  131. package/input/input.scss +3 -4
  132. package/link/_link-theme.scss +36 -32
  133. package/list/_list-base.scss +4 -3
  134. package/list/_list-theme.scss +8 -8
  135. package/list/list.scss +2 -1
  136. package/loader-overlay/_loader-overlay-theme.scss +8 -8
  137. package/loader-overlay/loader-overlay.scss +7 -12
  138. package/markdown/_markdown-theme.scss +61 -43
  139. package/markdown/markdown.scss +39 -80
  140. package/modal/_modal-confirm.scss +3 -2
  141. package/modal/_modal-theme.scss +20 -21
  142. package/modal/modal.scss +18 -15
  143. package/navbar/_navbar-theme.scss +19 -18
  144. package/navbar/navbar-brand.scss +7 -9
  145. package/navbar/navbar-item.component.d.ts +4 -4
  146. package/navbar/navbar-item.scss +8 -7
  147. package/navbar/vertical-navbar.scss +4 -12
  148. package/package.json +25 -25
  149. package/popover/_popover-theme.scss +35 -35
  150. package/popover/popover.scss +15 -14
  151. package/prebuilt-themes/dark-theme.css +1 -1
  152. package/prebuilt-themes/default-theme.css +1 -1
  153. package/progress-bar/_progress-bar-theme.scss +6 -5
  154. package/progress-bar/progress-bar.scss +2 -1
  155. package/progress-spinner/_progress-spinner-theme.scss +4 -3
  156. package/progress-spinner/progress-spinner.scss +7 -12
  157. package/radio/_radio-theme.scss +32 -24
  158. package/radio/radio.scss +8 -11
  159. package/select/_select-theme.scss +13 -13
  160. package/select/select-option.directive.d.ts +3 -2
  161. package/select/select.component.d.ts +1 -0
  162. package/select/select.scss +19 -42
  163. package/sidepanel/_sidepanel-theme.scss +9 -9
  164. package/sidepanel/sidepanel.scss +11 -10
  165. package/splitter/_splitter-theme.scss +5 -3
  166. package/table/_table-theme.scss +9 -9
  167. package/table/table.scss +11 -14
  168. package/tabs/_tabs-common.scss +15 -14
  169. package/tabs/_tabs-theme.scss +67 -55
  170. package/tabs/tab-group.scss +2 -1
  171. package/tabs/tab-header.scss +16 -3
  172. package/tabs/tab-nav-bar/tab-nav-bar.scss +15 -2
  173. package/tags/_tag-theme.scss +30 -27
  174. package/tags/tag-input.d.ts +9 -4
  175. package/tags/tag-list.scss +4 -3
  176. package/tags/tag.scss +9 -8
  177. package/textarea/_textarea-base.scss +2 -4
  178. package/textarea/_textarea-theme.scss +8 -8
  179. package/textarea/textarea.scss +2 -4
  180. package/timepicker/timepicker.scss +2 -7
  181. package/timezone/_timezone-option-theme.scss +7 -7
  182. package/timezone/timezone-option.component.scss +5 -4
  183. package/timezone/timezone-option.directive.d.ts +3 -2
  184. package/title/title.directive.d.ts +0 -1
  185. package/toast/_toast-theme.scss +13 -16
  186. package/toast/toast-container.component.scss +2 -5
  187. package/toast/toast.component.scss +15 -17
  188. package/toggle/_toggle-theme.scss +22 -21
  189. package/toggle/toggle.scss +19 -21
  190. package/tooltip/_tooltip-theme.scss +26 -31
  191. package/tooltip/tooltip.component.d.ts +12 -8
  192. package/tooltip/tooltip.scss +13 -17
  193. package/tree/_tree-theme.scss +8 -8
  194. package/tree/toggle.scss +3 -5
  195. package/tree/tree-option.scss +5 -4
  196. package/tree-select/_tree-select-theme.scss +9 -9
  197. package/tree-select/tree-select.component.d.ts +1 -0
  198. package/tree-select/tree-select.scss +17 -35
  199. package/_theming.scss +0 -10827
  200. package/_visual.scss +0 -3541
  201. package/prebuilt-visual/default-visual.css +0 -1
@@ -1,61 +1,64 @@
1
1
  @use 'sass:map';
2
+ @use '../core/styles/common/tokens' as *;
2
3
 
3
4
 
4
- @mixin card-type($card) {
5
+ @mixin card-style($component, $style-name) {
6
+ $style: map-get($component, $style-name);
7
+
5
8
  box-shadow:
6
- inset -1px 0 0 0 map.get($card, shadow),
7
- inset 0 1px 0 0 map.get($card, shadow),
8
- inset 0 -1px 0 0 map.get($card, shadow);
9
+ inset -1px 0 0 0 mc-css-variable(card-#{$style-name}-shadow, map-get($style, shadow)),
10
+ inset 0 1px 0 0 mc-css-variable(card-#{$style-name}-shadow, map-get($style, shadow)),
11
+ inset 0 -1px 0 0 mc-css-variable(card-#{$style-name}-shadow, map-get($style, shadow));
9
12
 
10
- background-color: map.get($card, background);
13
+ background-color: mc-css-variable(card-#{$style-name}-background, map-get($style, background));
11
14
 
12
- border-left-color: map.get($card, vertical-line);
15
+ border-left-color: mc-css-variable(card-#{$style-name}-vertical-line, map-get($style, vertical-line));
13
16
  }
14
17
 
15
18
  @mixin mc-card-theme($theme) {
16
- $foreground: map.get($theme, foreground);
17
- $background: map.get($theme, background);
19
+ $theme-states: map-get($theme, states);
18
20
 
19
- $card: map.get(map.get($theme, components), card);
20
- $popup: map.get(map.get($theme, components), popup);
21
+ $foreground: map-get($theme, foreground);
22
+ $background: map-get($theme, background);
21
23
 
22
- $is-dark: map.get($theme, is-dark);
24
+ $card: map-get(map-get($theme, components), card);
25
+ $popup: map-get(map-get($theme, components), popup);
23
26
 
24
27
  .mc-card {
25
- color: map.get($foreground, text);
28
+ color: mc-css-variable(foreground-text, map-get($foreground, text));
26
29
 
27
30
  &.mc-card_error {
28
- @include card-type(map.get($card, error));
31
+ @include card-style($card, error);
29
32
  }
30
33
 
31
34
  &.mc-card_warning {
32
- @include card-type(map.get($card, warning));
35
+ @include card-style($card, warning);
33
36
  }
34
37
 
35
38
  &.mc-card_success {
36
- @include card-type(map.get($card, success));
39
+ @include card-style($card, success);
37
40
  }
38
41
 
39
42
  &.mc-card_info {
40
- @include card-type(map.get($card, info));
43
+ @include card-style($card, info);
41
44
  }
42
45
 
43
46
  &.mc-card_white {
44
- background-color: map.get($popup, background);
47
+ background-color: mc-css-variable(popup-background, map-get($popup, background));
45
48
  }
46
49
 
47
50
  &.mc-selected {
48
- background-color: map.get(map.get($theme, states), selected-color);
51
+ background-color: mc-css-variable(states-selected-color, map-get($theme-states, selected-color));
49
52
  }
50
53
 
51
54
  &:not(.mc-card_readonly):hover {
52
55
  .mc-card__overlay {
53
- background: map.get($background, overlay-hover);
56
+ background: mc-css-variable(background-overlay-hover, map-get($background, overlay-hover));
54
57
  }
55
58
  }
56
59
 
57
60
  &.cdk-keyboard-focused {
58
- box-shadow: 0 0 0 2px map.get(map.get($theme, states), focused-color);
61
+ box-shadow: 0 0 0 2px mc-css-variable(states-focused-color, map-get($theme-states, focused-color));
59
62
  }
60
63
  }
61
64
  }
@@ -4,6 +4,7 @@
4
4
  @use '../core/styles/common/layout';
5
5
 
6
6
  @use '../core/styles/tokens';
7
+ @use '../core/styles/common/tokens' as *;
7
8
 
8
9
 
9
10
  $tokens: meta.module-variables(tokens) !default;
@@ -22,7 +23,7 @@ $tokens: meta.module-variables(tokens) !default;
22
23
  }
23
24
 
24
25
  border-left: {
25
- width: var(--mc-card-size-vertical-line, map.get($tokens, card-size-vertical-line));
26
+ width: mc-css-variable(card-size-vertical-line);
26
27
  style: solid;
27
28
  color: transparent;
28
29
  };
@@ -1,38 +1,42 @@
1
1
  @use 'sass:meta';
2
2
  @use 'sass:map';
3
3
 
4
- @use '../core/styles/typography/typography-utils' as *;
4
+ @use '../core/styles/common/tokens' as *;
5
+
5
6
 
6
7
  /* stylelint-disable no-descending-specificity */
7
- @mixin mc-checkbox-color($states) {
8
+ @mixin mc-checkbox-color($component, $style-name) {
9
+ $style: map-get($component, default);
10
+
8
11
  & .mc-checkbox-frame {
9
- background-color: map.get($states, background);
12
+ background-color: mc-css-variable(checkbox-#{$style-name}-background, map-get($style, background));
10
13
 
11
- border-color: map.get($states, border);
14
+ border-color: mc-css-variable(checkbox-#{$style-name}-border, map-get($style, border));
12
15
 
13
16
  & .mc-checkbox-checkmark,
14
17
  & .mc-checkbox-mixedmark {
15
- color: map.get($states, color);
18
+ color: mc-css-variable(checkbox-#{$style-name}-color, map-get($style, color));
16
19
  }
17
20
  }
18
21
 
19
22
  &.mc-checked,
20
23
  &.mc-indeterminate {
21
24
  & .mc-checkbox-frame {
22
- border-color: map.get($states, checked, border);
25
+ border-color: mc-css-variable(checkbox-#{$style-name}-border, map-get($style, checked, border));
23
26
 
24
- background: map.get($states, checked, background);
27
+ background: mc-css-variable(checkbox-#{$style-name}-background, map-get($style, checked, background));
25
28
  }
26
29
 
27
30
  & .mc-checkbox-input.cdk-keyboard-focused {
28
31
  + .mc-checkbox-frame {
29
- border-color: map.get($states, checked-focused, border);
32
+ border-color: mc-css-variable(checkbox-#{$style-name}-border, map-get($style, checked-focused, border));
30
33
 
31
- box-shadow: map.get($states, checked-focused, shadow);
34
+ box-shadow: mc-css-variable(checkbox-#{$style-name}-shadow, map-get($style, checked-focused, shadow));
32
35
 
33
- background: map.get($states, checked-focused, background);
36
+ background: mc-css-variable(
37
+ checkbox-#{$style-name}-background, map-get($style, checked-focused, background));
34
38
 
35
- outline: map.get($states, checked-focused, outline);
39
+ outline: mc-css-variable(checkbox-#{$style-name}-outline, map-get($style, checked-focused, outline));
36
40
 
37
41
  outline-offset: -2px;
38
42
  }
@@ -41,56 +45,58 @@
41
45
 
42
46
  & .mc-checkbox-input.cdk-keyboard-focused {
43
47
  + .mc-checkbox-frame {
44
- border-color: map.get($states, focused, border);
48
+ border-color: mc-css-variable(checkbox-#{$style-name}-border, map-get($style, focused, border));
45
49
 
46
- box-shadow: map.get($states, focused, shadow);
50
+ box-shadow: mc-css-variable(checkbox-#{$style-name}-shadow, map-get($style, focused, shadow));
47
51
  }
48
52
  }
49
53
  }
50
54
  /* stylelint-enable no-descending-specificity */
51
55
 
52
56
  @mixin mc-checkbox-theme($theme) {
53
- $foreground: map.get($theme, foreground);
54
- $background: map.get($theme, background);
57
+ $foreground: map-get($theme, foreground);
58
+ $background: map-get($theme, background);
55
59
 
56
- $checkbox: map.get(map.get($theme, components), checkbox);
60
+ $checkbox: map-get(map-get($theme, components), checkbox);
57
61
 
58
62
  .mc-checkbox {
59
63
  &:not(.mc-disabled) {
60
64
  .mc-checkbox-overlay:hover {
61
- background-color: map.get($background, overlay-hover);
65
+ background-color: mc-css-variable(background-overlay-hover, map-get($background, overlay-hover));
62
66
  }
63
67
  }
64
68
 
65
69
  & .mc-hint {
66
- color: map-get($foreground, text-less-contrast);
70
+ color: mc-css-variable(foreground-text-less-contrast, map-get($foreground, text-less-contrast));
67
71
  }
68
72
 
69
73
  &.mc-primary {
70
- @include mc-checkbox-color(map.get($checkbox, default));
74
+ @include mc-checkbox-color($checkbox, default);
71
75
 
72
- color: map-get($foreground, text) !important;
76
+ color: mc-css-variable(foreground-text, map-get($foreground, text));
73
77
  }
74
78
 
75
79
  &.mc-error {
76
- @include mc-checkbox-color(map.get($checkbox, error));
80
+ @include mc-checkbox-color($checkbox, error);
77
81
 
78
- color: map-get($foreground, text) !important;
82
+ color: mc-css-variable(foreground-text, map-get($foreground, text));
79
83
  }
80
84
 
81
85
  &.mc-disabled,
82
86
  &.mc-primary.mc-disabled,
83
87
  &.mc-error.mc-disabled {
84
- color: map.get($foreground, text-disabled) !important;
88
+ color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
85
89
 
86
90
  .mc-checkbox-frame {
87
- border-color: map.get($foreground, border);
91
+ border-color: mc-css-variable(foreground-border, map-get($foreground, border));
88
92
 
89
- background-color: map.get($background, background-disabled);
93
+ background-color: mc-css-variable(
94
+ background-background-disabled, map-get($background, background-disabled)
95
+ );
90
96
 
91
97
  & .mc-checkbox-checkmark,
92
98
  & .mc-checkbox-mixedmark {
93
- color: map.get($foreground, text-disabled);
99
+ color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
94
100
  }
95
101
  }
96
102
  }
@@ -98,9 +104,7 @@
98
104
  }
99
105
 
100
106
  @mixin mc-checkbox-typography($config) {
101
- $tokens: map.get($config, tokens);
102
-
103
107
  .mc-checkbox {
104
- @include mc-typography-level-to-styles($config, map.get($tokens, checkbox-font-default));
108
+ @include mc-typography-css-variables(checkbox, default);
105
109
  }
106
110
  }
@@ -5,6 +5,7 @@
5
5
  @use '../core/styles/variables';
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;
@@ -14,7 +15,7 @@ $tokens: meta.module-variables(tokens) !default;
14
15
  %mc-checkbox-outer-box {
15
16
  @include layout.mc-fill;
16
17
 
17
- border-radius: var(--mc-checkbox-size-border-radius, map.get($tokens, checkbox-size-border-radius));
18
+ border-radius: mc-css-variable(checkbox-size-border-radius);
18
19
  box-sizing: border-box;
19
20
  pointer-events: none;
20
21
  }
@@ -33,10 +34,10 @@ $tokens: meta.module-variables(tokens) !default;
33
34
 
34
35
  background-color: transparent;
35
36
  border: {
36
- width: var(--mc-checkbox-size-border-width, map.get($tokens, checkbox-size-border-width));
37
+ width: mc-css-variable(checkbox-size-border-width);
37
38
  style: solid;
38
39
  }
39
- box-shadow: var(--mc-checkbox-size-toggle-box-shadow, map.get($tokens, checkbox-size-toggle-box-shadow));
40
+ box-shadow: mc-css-variable(checkbox-size-toggle-box-shadow);
40
41
  }
41
42
 
42
43
  .mc-checkbox {
@@ -98,14 +99,14 @@ $tokens: meta.module-variables(tokens) !default;
98
99
  top: 2px;
99
100
  left: 0;
100
101
 
101
- height: var(--mc-checkbox-size-width, map.get($tokens, checkbox-size-width));
102
- width: var(--mc-checkbox-size-width, map.get($tokens, checkbox-size-width));
102
+ height: mc-css-variable(checkbox-size-width);
103
+ width: mc-css-variable(checkbox-size-width);
103
104
  }
104
105
 
105
106
  .mc-checkbox-overlay {
106
107
  @include layout.mc-fill;
107
108
 
108
- border-radius: var(--mc-checkbox-size-border-radius, map.get($tokens, checkbox-size-border-radius));
109
+ border-radius: mc-css-variable(checkbox-size-border-radius);
109
110
  background: transparent;
110
111
  }
111
112